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

public class Item extends Object implements Serializable
Author:
Dima Myroniuk (dmyroniuk)
See Also:
  • Constructor Details

    • Item

      public Item()
  • Method Details

    • setName

      public void setName(String name)
      The item name or title.
    • setQuantity

      public void setQuantity(String quantity)
      The item quantity. Must be a whole number.
    • setUnitAmount

      public void setUnitAmount(Money unitAmount)
      The item price or rate per unit. If you specify "unit_amount", "purchase_units[].amount.breakdown.item_total" is required. Must equal "unit_amount * quantity" for all items. "unit_amount.value" can not be a negative number.
    • setCategory

      public void setCategory(String category)
      The item category type. The possible values are:
      • "DIGITAL_GOODS". Goods that are stored, delivered, and used in their electronic format. This value is not currently supported for API callers that leverage the PayPal for Commerce Platform product.
      • "PHYSICAL_GOODS". A tangible item that can be shipped with proof of delivery.
      • "DONATION". A contribution or gift for which no good or service is exchanged, usually to a not for profit organization.
    • setDescription

      public void setDescription(String description)
      The detailed item description.
    • setSku

      public void setSku(String sku)
      The stock keeping unit (SKU) for the item.
    • setTax

      public void setTax(Money tax)
      The item tax for each unit. If "tax" is specified, "purchase_units[].amount.breakdown.tax_total" is required. Must equal "tax * quantity" for all items. "tax.value" can not be a negative number.
    • getName

      public String getName()
      The item name or title.
    • getQuantity

      public String getQuantity()
      The item quantity. Must be a whole number.
    • getUnitAmount

      public Money getUnitAmount()
      The item price or rate per unit. If you specify "unit_amount", "purchase_units[].amount.breakdown.item_total" is required. Must equal "unit_amount * quantity" for all items. "unit_amount.value" can not be a negative number.
    • getCategory

      public String getCategory()
      The item category type. The possible values are:
      • "DIGITAL_GOODS". Goods that are stored, delivered, and used in their electronic format. This value is not currently supported for API callers that leverage the PayPal for Commerce Platform product.
      • "PHYSICAL_GOODS". A tangible item that can be shipped with proof of delivery.
      • "DONATION". A contribution or gift for which no good or service is exchanged, usually to a not for profit organization.
    • getDescription

      public String getDescription()
      The detailed item description.
    • getSku

      public String getSku()
      The stock keeping unit (SKU) for the item.
    • getTax

      public Money getTax()
      The item tax for each unit. If "tax" is specified, "purchase_units[].amount.breakdown.tax_total" is required. Must equal "tax * quantity" for all items. "tax.value" can not be a negative number.