public class LineItem extends StripeObject implements HasId
| Modifier and Type | Class and Description |
|---|---|
static class |
LineItem.Discount |
static class |
LineItem.Tax |
PRETTY_PRINT_GSON| Constructor and Description |
|---|
LineItem() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
java.lang.Long |
getAmountSubtotal()
Total before any discounts or taxes is 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()
Prices define the unit cost, currency, and (optional) billing cycle for both recurring and
one-time purchases of products.
|
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 is 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)
Prices define the unit cost, currency, and (optional) billing cycle for both recurring and
one-time purchases of products.
|
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.
|
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringpublic java.lang.Long getAmountSubtotal()
public java.lang.Long getAmountTotal()
public java.lang.String getCurrency()
public java.lang.Boolean getDeleted()
public java.lang.String getDescription()
public java.util.List<LineItem.Discount> getDiscounts()
public java.lang.String getObject()
Equal to item.
public Price getPrice()
For example, you might have a single "gold" product that has prices for $10/month, $100/year, and €9 once.
Related guides: Set up a subscription, create an invoice, and more about products and prices.
public java.lang.Long getQuantity()
public java.util.List<LineItem.Tax> getTaxes()
public void setAmountSubtotal(java.lang.Long amountSubtotal)
public void setAmountTotal(java.lang.Long amountTotal)
public void setCurrency(java.lang.String currency)
public void setDeleted(java.lang.Boolean deleted)
public void setDescription(java.lang.String description)
public void setDiscounts(java.util.List<LineItem.Discount> discounts)
public void setId(java.lang.String id)
public void setObject(java.lang.String object)
Equal to item.
public void setPrice(Price price)
For example, you might have a single "gold" product that has prices for $10/month, $100/year, and €9 once.
Related guides: Set up a subscription, create an invoice, and more about products and prices.
public void setQuantity(java.lang.Long quantity)
public void setTaxes(java.util.List<LineItem.Tax> taxes)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectprotected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode in class java.lang.Object