Package com.stripe.model
Class LineItem
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.LineItem
- All Implemented Interfaces:
HasId,StripeObjectInterface
-
Nested Class Summary
Nested Classes -
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.Always true for a deleted object.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 expandableproductobject.Get expandedproduct.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.voidsetDeleted(Boolean deleted) Always true for a deleted object.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.voidString representing the object's type.voidThe price used to generate the line item.voidsetProduct(String id) voidsetProductObject(Product expandableObject) 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
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
LineItem
public LineItem()
-
-
Method Details
-
getProduct
Get ID of expandableproductobject. -
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. -
getDeleted
Always true for a deleted object. -
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. -
setDeleted
Always true for a deleted object. -
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.
-