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 class
LineItem.Discount
static class
LineItem.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 boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.Long
getAmountSubtotal()
Total before any discounts or taxes are applied.java.lang.Long
getAmountTotal()
Total after discounts and taxes.java.lang.String
getCurrency()
Three-letter ISO currency code, in lowercase.java.lang.Boolean
getDeleted()
Always true for a deleted object.java.lang.String
getDescription()
An arbitrary string attached to the object.java.util.List<LineItem.Discount>
getDiscounts()
The discounts applied to the line item.java.lang.String
getId()
Unique identifier for the object.java.lang.String
getObject()
String representing the object's type.Price
getPrice()
The price used to generate the line item.java.lang.Long
getQuantity()
The quantity of products being purchased.java.util.List<LineItem.Tax>
getTaxes()
The taxes applied to the line item.int
hashCode()
void
setAmountSubtotal(java.lang.Long amountSubtotal)
Total before any discounts or taxes are applied.void
setAmountTotal(java.lang.Long amountTotal)
Total after discounts and taxes.void
setCurrency(java.lang.String currency)
Three-letter ISO currency code, in lowercase.void
setDeleted(java.lang.Boolean deleted)
Always true for a deleted object.void
setDescription(java.lang.String description)
An arbitrary string attached to the object.void
setDiscounts(java.util.List<LineItem.Discount> discounts)
The discounts applied to the line item.void
setId(java.lang.String id)
Unique identifier for the object.void
setObject(java.lang.String object)
String representing the object's type.void
setPrice(Price price)
The price used to generate the line item.void
setQuantity(java.lang.Long quantity)
The quantity of products being purchased.void
setTaxes(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:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-