Package com.stripe.param.checkout
Class SessionUpdateParams.Builder
java.lang.Object
com.stripe.param.checkout.SessionUpdateParams.Builder
- Enclosing class:
- SessionUpdateParams
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllDiscount
(List<SessionUpdateParams.Discount> elements) Add all elements to `discounts` list.addAllExpand
(List<String> elements) Add all elements to `expand` list.addAllLineItem
(List<SessionUpdateParams.LineItem> elements) Add all elements to `lineItems` list.Add all elements to `shippingOptions` list.addDiscount
(SessionUpdateParams.Discount element) Add an element to `discounts` list.Add an element to `expand` list.addLineItem
(SessionUpdateParams.LineItem element) Add an element to `lineItems` list.Add an element to `shippingOptions` list.build()
Finalize and obtain parameter instance from this builder.putAllExtraParam
(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putAllMetadata
(Map<String, String> map) Add all map key/value pairs to `metadata` map.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.putMetadata
(String key, String value) Add a key/value pair to `metadata` map.setAutomaticTax
(SessionUpdateParams.AutomaticTax automaticTax) Settings for automatic tax lookup for this session and resulting payments, invoices, and subscriptions.setCollectedInformation
(SessionUpdateParams.CollectedInformation collectedInformation) Information about the customer collected within the Checkout Session.setDiscounts
(EmptyParam discounts) List of coupons and promotion codes attached to the Checkout Session.setDiscounts
(List<SessionUpdateParams.Discount> discounts) List of coupons and promotion codes attached to the Checkout Session.setInvoiceCreation
(SessionUpdateParams.InvoiceCreation invoiceCreation) Generate a post-purchase Invoice for one-time payments.setMetadata
(EmptyParam metadata) Set of key-value pairs that you can attach to an object.setMetadata
(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.setShippingOptions
(EmptyParam shippingOptions) The shipping rate options to apply to this Session.setShippingOptions
(List<SessionUpdateParams.ShippingOption> shippingOptions) The shipping rate options to apply to this Session.setSubscriptionData
(SessionUpdateParams.SubscriptionData subscriptionData) A subset of parameters to be passed to subscription creation for Checkout Sessions insubscription
mode.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAutomaticTax
Settings for automatic tax lookup for this session and resulting payments, invoices, and subscriptions. -
setCollectedInformation
public SessionUpdateParams.Builder setCollectedInformation(SessionUpdateParams.CollectedInformation collectedInformation) Information about the customer collected within the Checkout Session. Can only be set when updatingembedded
orcustom
sessions. -
addDiscount
Add an element to `discounts` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSessionUpdateParams.discounts
for the field documentation. -
addAllDiscount
Add all elements to `discounts` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSessionUpdateParams.discounts
for the field documentation. -
setDiscounts
List of coupons and promotion codes attached to the Checkout Session. -
setDiscounts
List of coupons and promotion codes attached to the Checkout Session. -
addExpand
Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSessionUpdateParams.expand
for the field documentation. -
addAllExpand
Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSessionUpdateParams.expand
for the field documentation. -
putExtraParam
Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeSessionUpdateParams.extraParams
for the field documentation. -
putAllExtraParam
Add all map key/value pairs to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeSessionUpdateParams.extraParams
for the field documentation. -
setInvoiceCreation
public SessionUpdateParams.Builder setInvoiceCreation(SessionUpdateParams.InvoiceCreation invoiceCreation) Generate a post-purchase Invoice for one-time payments. -
addLineItem
Add an element to `lineItems` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSessionUpdateParams.lineItems
for the field documentation. -
addAllLineItem
Add all elements to `lineItems` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSessionUpdateParams.lineItems
for the field documentation. -
putMetadata
Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeSessionUpdateParams.metadata
for the field documentation. -
putAllMetadata
Add all map key/value pairs to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeSessionUpdateParams.metadata
for the field documentation. -
setMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value tometadata
. -
setMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value tometadata
. -
addShippingOption
Add an element to `shippingOptions` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSessionUpdateParams.shippingOptions
for the field documentation. -
addAllShippingOption
public SessionUpdateParams.Builder addAllShippingOption(List<SessionUpdateParams.ShippingOption> elements) Add all elements to `shippingOptions` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSessionUpdateParams.shippingOptions
for the field documentation. -
setShippingOptions
The shipping rate options to apply to this Session. Up to a maximum of 5. -
setShippingOptions
public SessionUpdateParams.Builder setShippingOptions(List<SessionUpdateParams.ShippingOption> shippingOptions) The shipping rate options to apply to this Session. Up to a maximum of 5. -
setSubscriptionData
public SessionUpdateParams.Builder setSubscriptionData(SessionUpdateParams.SubscriptionData subscriptionData) A subset of parameters to be passed to subscription creation for Checkout Sessions insubscription
mode.
-