public class AmountBreakdown extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AmountBreakdown.Builder
Class to build instances of
AmountBreakdown. |
| Constructor and Description |
|---|
AmountBreakdown()
Default constructor.
|
AmountBreakdown(Money itemTotal,
Money shipping,
Money handling,
Money taxTotal,
Money insurance,
Money shippingDiscount,
Money discount)
Initialization constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Money |
getDiscount()
Getter for Discount.
|
Money |
getHandling()
Getter for Handling.
|
Money |
getInsurance()
Getter for Insurance.
|
Money |
getItemTotal()
Getter for ItemTotal.
|
Money |
getShipping()
Getter for Shipping.
|
Money |
getShippingDiscount()
Getter for ShippingDiscount.
|
Money |
getTaxTotal()
Getter for TaxTotal.
|
void |
setDiscount(Money discount)
Setter for Discount.
|
void |
setHandling(Money handling)
Setter for Handling.
|
void |
setInsurance(Money insurance)
Setter for Insurance.
|
void |
setItemTotal(Money itemTotal)
Setter for ItemTotal.
|
void |
setShipping(Money shipping)
Setter for Shipping.
|
void |
setShippingDiscount(Money shippingDiscount)
Setter for ShippingDiscount.
|
void |
setTaxTotal(Money taxTotal)
Setter for TaxTotal.
|
AmountBreakdown.Builder |
toBuilder()
Builds a new
AmountBreakdown.Builder object. |
String |
toString()
Converts this AmountBreakdown into string format.
|
public AmountBreakdown()
public AmountBreakdown(Money itemTotal, Money shipping, Money handling, Money taxTotal, Money insurance, Money shippingDiscount, Money discount)
itemTotal - Money value for itemTotal.shipping - Money value for shipping.handling - Money value for handling.taxTotal - Money value for taxTotal.insurance - Money value for insurance.shippingDiscount - Money value for shippingDiscount.discount - Money value for discount.public Money getItemTotal()
public void setItemTotal(Money itemTotal)
itemTotal - Value for Moneypublic Money getShipping()
public void setShipping(Money shipping)
shipping - Value for Moneypublic Money getHandling()
public void setHandling(Money handling)
handling - Value for Moneypublic Money getTaxTotal()
public void setTaxTotal(Money taxTotal)
taxTotal - Value for Moneypublic Money getInsurance()
public void setInsurance(Money insurance)
insurance - Value for Moneypublic Money getShippingDiscount()
public void setShippingDiscount(Money shippingDiscount)
shippingDiscount - Value for Moneypublic Money getDiscount()
public void setDiscount(Money discount)
discount - Value for Moneypublic String toString()
public AmountBreakdown.Builder toBuilder()
AmountBreakdown.Builder object.
Creates the instance with the state of the current model.AmountBreakdown.Builder objectCopyright © 2025. All rights reserved.