java.lang.Object
com.broadleafcommerce.paypal.micro.gateway.domain.orders.PurchaseUnitInfo
All Implemented Interfaces:
Serializable

public class PurchaseUnitInfo extends Object implements Serializable
See Also:
  • Constructor Details

    • PurchaseUnitInfo

      public PurchaseUnitInfo()
  • Method Details

    • setReferenceId

      public void setReferenceId(String referenceId)
      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

      public void setAmountWithBreakdown(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. 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

      public void setShippingOptions(List<ShippingOption> shippingOptions)
      The list of shipping options that are offered to the customer to ship or pick up their items.
    • getReferenceId

      public String 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

      public AmountWithBreakdown 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

      public List<ShippingOption> getShippingOptions()
      The list of shipping options that are offered to the customer to ship or pick up their items.