Package com.stripe.model
Class LineItem
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.LineItem
- All Implemented Interfaces:
HasId
,StripeObjectInterface
A line item.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
For more details about AdjustableQuantity, please refer to the API Reference.static class
For more details about Discount, please refer to the API Reference.static class
For more details about Display, please refer to the API Reference.static class
For more details about Tax, please refer to the API Reference.static class
For more details about TaxCalculationReference, please refer to the API Reference. -
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Total discount amount applied.Total before any discounts or taxes are applied.Total tax amount applied.Total after discounts and taxes.Three-letter ISO currency code, in lowercase.An arbitrary string attached to the object.The discounts applied to the line item.getId()
Unique identifier for the object.Set of key-value pairs that you can attach to an object.String representing the object's type.getPrice()
The price used to generate the line item.Get ID of expandableproduct
object.Get expandedproduct
.The quantity of products being purchased.The tax calculation identifiers of the line item.getTaxes()
The taxes applied to the line item.int
hashCode()
void
setAdjustableQuantity
(LineItem.AdjustableQuantity adjustableQuantity) void
setAmountDiscount
(Long amountDiscount) Total discount amount applied.void
setAmountSubtotal
(Long amountSubtotal) Total before any discounts or taxes are applied.void
setAmountTax
(Long amountTax) Total tax amount applied.void
setAmountTotal
(Long amountTotal) Total after discounts and taxes.void
setCurrency
(String currency) Three-letter ISO currency code, in lowercase.void
setDescription
(String description) An arbitrary string attached to the object.void
setDiscounts
(List<LineItem.Discount> discounts) The discounts applied to the line item.void
setDisplay
(LineItem.Display display) void
Unique identifier for the object.void
setMetadata
(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.void
String representing the object's type.void
The price used to generate the line item.void
setProduct
(String id) void
setProductObject
(Product expandableObject) void
setQuantity
(Long quantity) The quantity of products being purchased.void
setTaxCalculationReference
(LineItem.TaxCalculationReference taxCalculationReference) The tax calculation identifiers of the line item.void
setTaxes
(List<LineItem.Tax> taxes) The taxes applied to the line item.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
-
getProduct
Get ID of expandableproduct
object. -
setProduct
-
getProductObject
Get expandedproduct
. -
setProductObject
-
getAdjustableQuantity
-
getAmountDiscount
Total discount amount applied. If no discounts were applied, defaults to 0. -
getAmountSubtotal
Total before any discounts or taxes are applied. -
getAmountTax
Total tax amount applied. If no tax was applied, defaults to 0. -
getAmountTotal
Total after discounts and taxes. -
getCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
getDescription
An arbitrary string attached to the object. Often useful for displaying to users. Defaults to product name. -
getDiscounts
The discounts applied to the line item. -
getDisplay
-
getMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
item
. -
getPrice
The price used to generate the line item. -
getQuantity
The quantity of products being purchased. -
getTaxCalculationReference
The tax calculation identifiers of the line item. -
getTaxes
The taxes applied to the line item. -
setAdjustableQuantity
-
setAmountDiscount
Total discount amount applied. If no discounts were applied, defaults to 0. -
setAmountSubtotal
Total before any discounts or taxes are applied. -
setAmountTax
Total tax amount applied. If no tax was applied, defaults to 0. -
setAmountTotal
Total after discounts and taxes. -
setCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
setDescription
An arbitrary string attached to the object. Often useful for displaying to users. Defaults to product name. -
setDiscounts
The discounts applied to the line item. -
setDisplay
-
setId
Unique identifier for the object. -
setMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
item
. -
setPrice
The price used to generate the line item. -
setQuantity
The quantity of products being purchased. -
setTaxCalculationReference
The tax calculation identifiers of the line item. -
setTaxes
The taxes applied to the line item. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-