public static class SessionCreateParams.LineItem
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SessionCreateParams.LineItem.Builder |
static class |
SessionCreateParams.LineItem.PriceData |
Modifier and Type | Method and Description |
---|---|
static SessionCreateParams.LineItem.Builder |
builder() |
java.lang.Long |
getAmount()
The amount to be collected per unit of the line item.
|
java.lang.String |
getCurrency()
Three-letter ISO currency
code, in lowercase.
|
java.lang.String |
getDescription()
The description for the line item, to be displayed on the Checkout page.
|
java.util.Map<java.lang.String,java.lang.Object> |
getExtraParams()
Map of extra parameters for custom features not available in this client library.
|
java.util.List<java.lang.String> |
getImages()
A list of image URLs representing this line item.
|
java.lang.String |
getName()
The name for the item to be displayed on the Checkout page.
|
java.lang.String |
getPrice()
|
SessionCreateParams.LineItem.PriceData |
getPriceData()
Data used to generate a new Price object
inline.
|
java.lang.Long |
getQuantity()
The quantity of the line item being purchased.
|
java.util.List<java.lang.String> |
getTaxRates()
The tax rates which apply to this line
item.
|
public static SessionCreateParams.LineItem.Builder builder()
public java.lang.Long getAmount()
currency
and name
.public java.lang.String getCurrency()
amount
is passed.public java.lang.String getDescription()
If using price
or price_data
, will default to the name of the associated
product.
public java.util.Map<java.lang.String,java.lang.Object> getExtraParams()
@SerializedName
value. Instead, each
key/value pair is serialized as if the key is a root-level field (serialized) name in this
param object. Effectively, this map is flattened to its parent instance.public java.util.List<java.lang.String> getImages()
price
or price_data
, specify images on the associated product
instead.public java.lang.String getName()
amount
is
passed.public java.lang.String getPrice()
public SessionCreateParams.LineItem.PriceData getPriceData()
public java.lang.Long getQuantity()
public java.util.List<java.lang.String> getTaxRates()