Package com.stripe.param.checkout
Class SessionCreateParams.LineItem
java.lang.Object
com.stripe.param.checkout.SessionCreateParams.LineItem
- Enclosing class:
SessionCreateParams
The ID of a promotion code to apply to this Session.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
The minimum quantity the customer must purchase for the Checkout Session. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
When set, provides configuration for this item’s quantity to be adjusted by the customer during Checkout.[Deprecated] The amount to be collected per unit of the line item.[Deprecated] Three-letter ISO currency code, in lowercase.[Deprecated] The description for the line item, to be displayed on the Checkout page.The tax rates that will be applied to this line item depending on the customer's billing/shipping address.Map of extra parameters for custom features not available in this client library.[Deprecated] A list of image URLs representing this line item.getName()
[Deprecated] The name for the item to be displayed on the Checkout page.getPrice()
Data used to generate a new Price object inline.The quantity of the line item being purchased.The tax rates which apply to this line item.
-
Method Details
-
builder
-
getAdjustableQuantity
When set, provides configuration for this item’s quantity to be adjusted by the customer during Checkout. -
getAmount
[Deprecated] The amount to be collected per unit of the line item. If specified, must also passcurrency
andname
. -
getCurrency
[Deprecated] Three-letter ISO currency code, in lowercase. Must be a supported currency. Required ifamount
is passed. -
getDescription
[Deprecated] The description for the line item, to be displayed on the Checkout page. -
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
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
[Deprecated] 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
[Deprecated] The name for the item to be displayed on the Checkout page. Required ifamount
is passed. -
getPrice
-
getPriceData
-
getQuantity
The quantity of the line item being purchased. Quantity should not be defined whenrecurring.usage_type=metered
. -
getTaxRates
The tax rates which apply to this line item.
-