Returned directly or within a successful result object from the following requests:

Attributes
getCommodityCode() string

Code used to classify items purchased and track the total amount spent across various categories of products and services. Different corporate purchasing organizations may use different standards, but the United Nations Standard Products and Services Code (UNSPSC) is frequently used. Maximum 12 characters.

getDescription() string

Item description. Maximum 127 characters.

getDiscountAmount() BigDecimal

Discount amount for the line item. Can include up to 2 decimal places. This value can't be negative or zero.

getKind() string

Indicates whether the line item is a debit (sale) or credit (refund) to the customer. Accepted values:

  • "debit"
  • "credit"
getName() string

Item name. Maximum 35 characters, or 127 characters for PayPal transactions.

getProductCode() string

Product or UPC code for the item. Maximum 12 characters, or 127 characters for PayPal transactions.

getQuantity() BigDecimal

Number of units of the item purchased. Can include up to 4 decimal places. This value can't be negative or zero.

getTaxAmount() BigDecimal

Tax amount for the line item. Can include up to 2 decimal places. This value can't be negative or zero.

getTotalAmount() BigDecimal

Quantity x unit amount. Can include up to 2 decimal places.

getUnitAmount() BigDecimal

Per-unit price of the item. Maximum 4 decimal places, or 2 decimal places for PayPal transactions. This value can't be negative or zero.

getUnitOfMeasure()

The unit of measure or the unit of measure code. Maximum 12 characters.

getUnitTaxAmount() BigDecimal

Per-unit tax price of the item. Can include up to 2 decimal places. This value can't be negative or zero.

getUrl() string

The URL to product information.