Package com.stripe.model
Class LineItem
- java.lang.Object
-
- com.stripe.model.StripeObject
-
- com.stripe.model.LineItem
-
- All Implemented Interfaces:
HasId,StripeObjectInterface
public class LineItem extends StripeObject implements HasId
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLineItem.Discountstatic classLineItem.Tax
-
Field Summary
-
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
-
Constructor Summary
Constructors Constructor Description LineItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.LonggetAmountSubtotal()Total before any discounts or taxes are applied.java.lang.LonggetAmountTotal()Total after discounts and taxes.java.lang.StringgetCurrency()Three-letter ISO currency code, in lowercase.java.lang.BooleangetDeleted()Always true for a deleted object.java.lang.StringgetDescription()An arbitrary string attached to the object.java.util.List<LineItem.Discount>getDiscounts()The discounts applied to the line item.java.lang.StringgetId()Unique identifier for the object.java.lang.StringgetObject()String representing the object's type.PricegetPrice()The price used to generate the line item.java.lang.LonggetQuantity()The quantity of products being purchased.java.util.List<LineItem.Tax>getTaxes()The taxes applied to the line item.inthashCode()voidsetAmountSubtotal(java.lang.Long amountSubtotal)Total before any discounts or taxes are applied.voidsetAmountTotal(java.lang.Long amountTotal)Total after discounts and taxes.voidsetCurrency(java.lang.String currency)Three-letter ISO currency code, in lowercase.voidsetDeleted(java.lang.Boolean deleted)Always true for a deleted object.voidsetDescription(java.lang.String description)An arbitrary string attached to the object.voidsetDiscounts(java.util.List<LineItem.Discount> discounts)The discounts applied to the line item.voidsetId(java.lang.String id)Unique identifier for the object.voidsetObject(java.lang.String object)String representing the object's type.voidsetPrice(Price price)The price used to generate the line item.voidsetQuantity(java.lang.Long quantity)The quantity of products being purchased.voidsetTaxes(java.util.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
-
-
-
-
Method Detail
-
getAmountSubtotal
public java.lang.Long getAmountSubtotal()
Total before any discounts or taxes are applied.
-
getAmountTotal
public java.lang.Long getAmountTotal()
Total after discounts and taxes.
-
getCurrency
public java.lang.String getCurrency()
Three-letter ISO currency code, in lowercase. Must be a supported currency.
-
getDeleted
public java.lang.Boolean getDeleted()
Always true for a deleted object.
-
getDescription
public java.lang.String getDescription()
An arbitrary string attached to the object. Often useful for displaying to users. Defaults to product name.
-
getDiscounts
public java.util.List<LineItem.Discount> getDiscounts()
The discounts applied to the line item.
-
getObject
public java.lang.String getObject()
String representing the object's type. Objects of the same type share the same value.Equal to
item.
-
getPrice
public Price getPrice()
The price used to generate the line item.
-
getQuantity
public java.lang.Long getQuantity()
The quantity of products being purchased.
-
getTaxes
public java.util.List<LineItem.Tax> getTaxes()
The taxes applied to the line item.
-
setAmountSubtotal
public void setAmountSubtotal(java.lang.Long amountSubtotal)
Total before any discounts or taxes are applied.
-
setAmountTotal
public void setAmountTotal(java.lang.Long amountTotal)
Total after discounts and taxes.
-
setCurrency
public void setCurrency(java.lang.String currency)
Three-letter ISO currency code, in lowercase. Must be a supported currency.
-
setDeleted
public void setDeleted(java.lang.Boolean deleted)
Always true for a deleted object.
-
setDescription
public void setDescription(java.lang.String description)
An arbitrary string attached to the object. Often useful for displaying to users. Defaults to product name.
-
setDiscounts
public void setDiscounts(java.util.List<LineItem.Discount> discounts)
The discounts applied to the line item.
-
setId
public void setId(java.lang.String id)
Unique identifier for the object.
-
setObject
public void setObject(java.lang.String object)
String representing the object's type. Objects of the same type share the same value.Equal to
item.
-
setPrice
public void setPrice(Price price)
The price used to generate the line item.
-
setQuantity
public void setQuantity(java.lang.Long quantity)
The quantity of products being purchased.
-
setTaxes
public void setTaxes(java.util.List<LineItem.Tax> taxes)
The taxes applied to the line item.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-