Class SessionCreateParams.Permissions.Update.Builder
- Enclosing class:
- SessionCreateParams.Permissions.Update
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finalize and obtain parameter instance from this builder.putAllExtraParam
(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.Determines which entity is allowed to update the line items.setShippingDetails
(SessionCreateParams.Permissions.Update.ShippingDetails shippingDetails) Determines which entity is allowed to update the shipping details.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
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. SeeSessionCreateParams.Permissions.Update.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. SeeSessionCreateParams.Permissions.Update.extraParams
for the field documentation. -
setLineItems
public SessionCreateParams.Permissions.Update.Builder setLineItems(SessionCreateParams.Permissions.Update.LineItems lineItems) Determines which entity is allowed to update the line items.Default is
client_only
. Stripe Checkout client will automatically update the line items. If set toserver_only
, only your server is allowed to update the line items.When set to
server_only
, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API. -
setShippingDetails
public SessionCreateParams.Permissions.Update.Builder setShippingDetails(SessionCreateParams.Permissions.Update.ShippingDetails shippingDetails) Determines which entity is allowed to update the shipping details.Default is
client_only
. Stripe Checkout client will automatically update the shipping details. If set toserver_only
, only your server is allowed to update the shipping details.When set to
server_only
, you must add the onShippingDetailsChange event handler when initializing the Stripe Checkout client and manually update the shipping details from your server using the Stripe API.
-