public static class Session.DisplayItem extends StripeObject
| Modifier and Type | Class and Description |
|---|---|
static class |
Session.DisplayItem.Custom |
PRETTY_PRINT_GSON| Constructor and Description |
|---|
DisplayItem() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
java.lang.Long |
getAmount()
Amount for the display item.
|
java.lang.String |
getCurrency()
Three-letter ISO currency
code, in lowercase.
|
Session.DisplayItem.Custom |
getCustom() |
Plan |
getPlan()
You can now model subscriptions more flexibly using the Prices API.
|
java.lang.Long |
getQuantity()
Quantity of the display item being purchased.
|
Sku |
getSku()
Stores representations of stock
keeping units.
|
java.lang.String |
getType()
The type of display item.
|
int |
hashCode() |
void |
setAmount(java.lang.Long amount)
Amount for the display item.
|
void |
setCurrency(java.lang.String currency)
Three-letter ISO currency
code, in lowercase.
|
void |
setCustom(Session.DisplayItem.Custom custom) |
void |
setPlan(Plan plan)
You can now model subscriptions more flexibly using the Prices API.
|
void |
setQuantity(java.lang.Long quantity)
Quantity of the display item being purchased.
|
void |
setSku(Sku sku)
Stores representations of stock
keeping units.
|
void |
setType(java.lang.String type)
The type of display item.
|
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringpublic java.lang.Long getAmount()
public java.lang.String getCurrency()
public Session.DisplayItem.Custom getCustom()
public Plan getPlan()
Plans define the base price, currency, and billing cycle for recurring purchases of products. Products help you track inventory or provisioning, and plans help you track pricing. Different physical goods or levels of service should be represented by products, and pricing options should be represented by plans. This approach lets you change prices without having to change your provisioning scheme.
For example, you might have a single "gold" product that has plans for $10/month, $100/year, €9/month, and €90/year.
Related guides: Set up a subscription and more about products and prices.
public java.lang.Long getQuantity()
public Sku getSku()
size: large, color: red version of that
shirt.
Can also be used to manage inventory.
Related guide: Tax, Shipping, and Inventory.
public java.lang.String getType()
custom, plan or skupublic void setAmount(java.lang.Long amount)
public void setCurrency(java.lang.String currency)
public void setCustom(Session.DisplayItem.Custom custom)
public void setPlan(Plan plan)
Plans define the base price, currency, and billing cycle for recurring purchases of products. Products help you track inventory or provisioning, and plans help you track pricing. Different physical goods or levels of service should be represented by products, and pricing options should be represented by plans. This approach lets you change prices without having to change your provisioning scheme.
For example, you might have a single "gold" product that has plans for $10/month, $100/year, €9/month, and €90/year.
Related guides: Set up a subscription and more about products and prices.
public void setQuantity(java.lang.Long quantity)
public void setSku(Sku sku)
size: large, color: red version of that
shirt.
Can also be used to manage inventory.
Related guide: Tax, Shipping, and Inventory.
public void setType(java.lang.String type)
custom, plan or skupublic 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