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
-
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
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.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.getTaxes()
The taxes applied to the line item.int
hashCode()
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
Unique identifier for the 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
setTaxes
(List<LineItem.Tax> taxes) The taxes applied to the line item.Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
LineItem
public LineItem()
-
-
Method Details
-
getProduct
Get ID of expandableproduct
object. -
setProduct
-
getProductObject
Get expandedproduct
. -
setProductObject
-
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. -
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. -
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.
-