Package com.stripe.model.v2.payments
Class OffSessionPayment.AmountDetails.LineItem
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.v2.payments.OffSessionPayment.AmountDetails.LineItem
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- OffSessionPayment.AmountDetails
For more details about LineItem, please refer to the API Reference.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Contains information about the tax on the item. -
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The amount an item was discounted for.Unique identifier of the product.Name of the product.Number of items of the product.getTax()
Contains information about the tax on the item.Cost of the product.int
hashCode()
void
setDiscountAmount
(Long discountAmount) The amount an item was discounted for.void
setProductCode
(String productCode) Unique identifier of the product.void
setProductName
(String productName) Name of the product.void
setQuantity
(Long quantity) Number of items of the product.void
Contains information about the tax on the item.void
setUnitCost
(Long unitCost) Cost of the product.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
LineItem
public LineItem()
-
-
Method Details
-
getDiscountAmount
The amount an item was discounted for. Positive integer. -
getProductCode
Unique identifier of the product. At most 12 characters long. -
getProductName
Name of the product. At most 100 characters long. -
getQuantity
Number of items of the product. Positive integer. -
getTax
Contains information about the tax on the item. -
getUnitCost
Cost of the product. Non-negative integer. -
setDiscountAmount
The amount an item was discounted for. Positive integer. -
setProductCode
Unique identifier of the product. At most 12 characters long. -
setProductName
Name of the product. At most 100 characters long. -
setQuantity
Number of items of the product. Positive integer. -
setTax
Contains information about the tax on the item. -
setUnitCost
Cost of the product. Non-negative integer. -
equals
-
canEqual
-
hashCode
public int hashCode()
-