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 classFor more details about Discount, please refer to the API Reference.static classFor more details about Tax, 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 booleanbooleanTotal 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.The quantity of products being purchased.getTaxes()The taxes applied to the line item.inthashCode()voidsetAmountDiscount(Long amountDiscount) Total discount amount applied.voidsetAmountSubtotal(Long amountSubtotal) Total before any discounts or taxes are applied.voidsetAmountTax(Long amountTax) Total tax amount applied.voidsetAmountTotal(Long amountTotal) Total after discounts and taxes.voidsetCurrency(String currency) Three-letter ISO currency code, in lowercase.voidsetDescription(String description) An arbitrary string attached to the object.voidsetDiscounts(List<LineItem.Discount> discounts) The discounts applied to the line item.voidUnique identifier for the object.voidsetMetadata(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.voidString representing the object's type.voidThe price used to generate the line item.voidsetQuantity(Long quantity) The quantity of products being purchased.voidsetTaxes(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
-
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. -
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. -
getTaxes
The taxes applied to the line item. -
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. -
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. -
setTaxes
The taxes applied to the line item. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-