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

public class AmountBreakdown extends Object implements 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 Details

    • AmountBreakdown

      public AmountBreakdown()
  • Method Details

    • setDiscount

      public void setDiscount(Money discount)
      The discount for all items within a given "purchase_unit". "discount.value" can not be a negative number.
    • setHandling

      public void setHandling(Money handling)
      The handling fee for all items within a given "purchase_unit". "handling.value" can not be a negative number.
    • setInsurance

      public void setInsurance(Money insurance)
      The insurance fee for all items within a given "purchase_unit". "insurance.value" can not be a negative number.
    • setItemTotal

      public void setItemTotal(Money itemTotal)
      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

      public void setShipping(Money shipping)
      The shipping fee for all items within a given "purchase_unit". "shipping.value" can not be a negative number.
    • setShippingDiscount

      public void setShippingDiscount(Money shippingDiscount)
      The shipping discount for all items within a given "purchase_unit". "shipping_discount.value" can not be a negative number.
    • setTaxTotal

      public void setTaxTotal(Money taxTotal)
      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

      public Money getDiscount()
      The discount for all items within a given "purchase_unit". "discount.value" can not be a negative number.
    • getHandling

      public Money getHandling()
      The handling fee for all items within a given "purchase_unit". "handling.value" can not be a negative number.
    • getInsurance

      public Money getInsurance()
      The insurance fee for all items within a given "purchase_unit". "insurance.value" can not be a negative number.
    • getItemTotal

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

      public Money getShipping()
      The shipping fee for all items within a given "purchase_unit". "shipping.value" can not be a negative number.
    • getShippingDiscount

      public Money getShippingDiscount()
      The shipping discount for all items within a given "purchase_unit". "shipping_discount.value" can not be a negative number.
    • getTaxTotal

      public Money 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.