Class AmountBreakdown
java.lang.Object
com.broadleafcommerce.paypal.micro.gateway.domain.orders.AmountBreakdown
- All Implemented Interfaces:
Serializable
The breakdown of the amount. Breakdown provides details such as total item amount, total tax
amount, shipping, handling, insurance, and discounts, if any.
- Author:
- Dima Myroniuk (dmyroniuk)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe discount for all items within a given "purchase_unit".The handling fee for all items within a given "purchase_unit".The insurance fee for all items within a given "purchase_unit".The subtotal for all items.The shipping fee for all items within a given "purchase_unit".The shipping discount for all items within a given "purchase_unit".The total tax for all items.void
setDiscount
(Money discount) The discount for all items within a given "purchase_unit".void
setHandling
(Money handling) The handling fee for all items within a given "purchase_unit".void
setInsurance
(Money insurance) The insurance fee for all items within a given "purchase_unit".void
setItemTotal
(Money itemTotal) The subtotal for all items.void
setShipping
(Money shipping) The shipping fee for all items within a given "purchase_unit".void
setShippingDiscount
(Money shippingDiscount) The shipping discount for all items within a given "purchase_unit".void
setTaxTotal
(Money taxTotal) The total tax for all items.
-
Constructor Details
-
AmountBreakdown
public AmountBreakdown()
-
-
Method Details
-
setDiscount
The discount for all items within a given "purchase_unit". "discount.value" can not be a negative number. -
setHandling
The handling fee for all items within a given "purchase_unit". "handling.value" can not be a negative number. -
setInsurance
The insurance fee for all items within a given "purchase_unit". "insurance.value" can not be a negative number. -
setItemTotal
The subtotal for all items. Required if the request includes "purchase_units[].items[].unit_amount". Must equal the sum of ("items[].unit_amount * items[].quantity") for all items. "item_total.value" can not be a negative number. -
setShipping
The shipping fee for all items within a given "purchase_unit". "shipping.value" can not be a negative number. -
setShippingDiscount
The shipping discount for all items within a given "purchase_unit". "shipping_discount.value" can not be a negative number. -
setTaxTotal
The total tax for all items. Required if the request includes "purchase_units.items.tax". Must equal the sum of ("items[].tax * items[].quantity") for all items. "tax_total.value" can not be a negative number. -
getDiscount
The discount for all items within a given "purchase_unit". "discount.value" can not be a negative number. -
getHandling
The handling fee for all items within a given "purchase_unit". "handling.value" can not be a negative number. -
getInsurance
The insurance fee for all items within a given "purchase_unit". "insurance.value" can not be a negative number. -
getItemTotal
The subtotal for all items. Required if the request includes "purchase_units[].items[].unit_amount". Must equal the sum of ("items[].unit_amount * items[].quantity") for all items. "item_total.value" can not be a negative number. -
getShipping
The shipping fee for all items within a given "purchase_unit". "shipping.value" can not be a negative number. -
getShippingDiscount
The shipping discount for all items within a given "purchase_unit". "shipping_discount.value" can not be a negative number. -
getTaxTotal
The total tax for all items. Required if the request includes "purchase_units.items.tax". Must equal the sum of ("items[].tax * items[].quantity") for all items. "tax_total.value" can not be a negative number.
-