Class PurchaseUnitInfo
java.lang.Object
com.broadleafcommerce.paypal.micro.gateway.domain.orders.PurchaseUnitInfo
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe total order amount with an optional breakdown that provides details, such as the total item amount, total tax amount, shipping, handling, insurance, and discounts, if any.The API caller-provided external ID for the purchase unit.The list of shipping options that are offered to the customer to ship or pick up their items.voidsetAmountWithBreakdown(AmountWithBreakdown amountWithBreakdown) The total order amount with an optional breakdown that provides details, such as the total item amount, total tax amount, shipping, handling, insurance, and discounts, if any.voidsetReferenceId(String referenceId) The API caller-provided external ID for the purchase unit.voidsetShippingOptions(List<ShippingOption> shippingOptions) The list of shipping options that are offered to the customer to ship or pick up their items.
-
Constructor Details
-
PurchaseUnitInfo
public PurchaseUnitInfo()
-
-
Method Details
-
setReferenceId
The API caller-provided external ID for the purchase unit. Required for multiple purchase units when you must update the order through "PATCH". If you omit this value and the order contains only one purchase unit, PayPal sets this value to "default". -
setAmountWithBreakdown
The total order amount with an optional breakdown that provides details, such as the total item amount, total tax amount, shipping, handling, insurance, and discounts, if any. If you specify "amount.breakdown", the amount equals "item_total" plus "tax_total" plus "shipping" plus "handling" plus "insurance" minus "shipping_discount" minus discount. The amount must be a positive number. For listed of supported currencies and decimal precision, see the PayPal REST APIs Currency Codes. -
setShippingOptions
The list of shipping options that are offered to the customer to ship or pick up their items. -
getReferenceId
The API caller-provided external ID for the purchase unit. Required for multiple purchase units when you must update the order through "PATCH". If you omit this value and the order contains only one purchase unit, PayPal sets this value to "default". -
getAmountWithBreakdown
The total order amount with an optional breakdown that provides details, such as the total item amount, total tax amount, shipping, handling, insurance, and discounts, if any. If you specify "amount.breakdown", the amount equals "item_total" plus "tax_total" plus "shipping" plus "handling" plus "insurance" minus "shipping_discount" minus discount. The amount must be a positive number. For listed of supported currencies and decimal precision, see the PayPal REST APIs Currency Codes. -
getShippingOptions
The list of shipping options that are offered to the customer to ship or pick up their items.
-