Class Item
java.lang.Object
com.broadleafcommerce.paypal.micro.gateway.domain.orders.Item
- All Implemented Interfaces:
Serializable
- Author:
- Dima Myroniuk (dmyroniuk)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe item category type.The detailed item description.getName()
The item name or title.The item quantity.getSku()
The stock keeping unit (SKU) for the item.getTax()
The item tax for each unit.The item price or rate per unit.void
setCategory
(String category) The item category type.void
setDescription
(String description) The detailed item description.void
The item name or title.void
setQuantity
(String quantity) The item quantity.void
The stock keeping unit (SKU) for the item.void
The item tax for each unit.void
setUnitAmount
(Money unitAmount) The item price or rate per unit.
-
Constructor Details
-
Item
public Item()
-
-
Method Details
-
setName
The item name or title. -
setQuantity
The item quantity. Must be a whole number. -
setUnitAmount
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
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
The detailed item description. -
setSku
The stock keeping unit (SKU) for the item. -
setTax
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
The item name or title. -
getQuantity
The item quantity. Must be a whole number. -
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
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
The detailed item description. -
getSku
The stock keeping unit (SKU) for the item. -
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.
-