Package com.stripe.param.checkout
Class SessionCreateParams.LineItem
- java.lang.Object
-
- com.stripe.param.checkout.SessionCreateParams.LineItem
-
- Enclosing class:
- SessionCreateParams
public static class SessionCreateParams.LineItem extends java.lang.Object
The ID of a promotion code to apply to this Session.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SessionCreateParams.LineItem.AdjustableQuantity
static class
SessionCreateParams.LineItem.Builder
static class
SessionCreateParams.LineItem.PriceData
The minimum quantity the customer must purchase for the Checkout Session.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SessionCreateParams.LineItem.Builder
builder()
SessionCreateParams.LineItem.AdjustableQuantity
getAdjustableQuantity()
When set, provides configuration for this item’s quantity to be adjusted by the customer during Checkout.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.List<java.lang.String>
getDynamicTaxRates()
The tax rates that will be applied to this line item depending on the customer's billing/shipping address.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.
-
-
-
Method Detail
-
builder
public static SessionCreateParams.LineItem.Builder builder()
-
getAdjustableQuantity
public SessionCreateParams.LineItem.AdjustableQuantity getAdjustableQuantity()
When set, provides configuration for this item’s quantity to be adjusted by the customer during Checkout.
-
getAmount
public java.lang.Long getAmount()
The amount to be collected per unit of the line item. If specified, must also passcurrency
andname
.
-
getCurrency
public java.lang.String getCurrency()
Three-letter ISO currency code, in lowercase. Must be a supported currency. Required ifamount
is passed.
-
getDescription
public java.lang.String getDescription()
The description for the line item, to be displayed on the Checkout page.If using
price
orprice_data
, will default to the name of the associated product.
-
getDynamicTaxRates
public java.util.List<java.lang.String> getDynamicTaxRates()
The tax rates that will be applied to this line item depending on the customer's billing/shipping address. We currently support the following countries: US, GB, AU, and all countries in the EU.
-
getExtraParams
public java.util.Map<java.lang.String,java.lang.Object> getExtraParams()
Map of extra parameters for custom features not available in this client library. The content in this map is not serialized under this field's@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.
-
getImages
public java.util.List<java.lang.String> getImages()
A list of image URLs representing this line item. Each image can be up to 5 MB in size. If passingprice
orprice_data
, specify images on the associated product instead.
-
getName
public java.lang.String getName()
The name for the item to be displayed on the Checkout page. Required ifamount
is passed.
-
getPrice
public java.lang.String getPrice()
-
getPriceData
public SessionCreateParams.LineItem.PriceData getPriceData()
-
getQuantity
public java.lang.Long getQuantity()
The quantity of the line item being purchased. Quantity should not be defined whenrecurring.usage_type=metered
.
-
getTaxRates
public java.util.List<java.lang.String> getTaxRates()
The tax rates which apply to this line item.
-
-