Class Session.Permissions
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- Session
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
For more details about Update, please refer to the API Reference. -
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Permissions for updating the Checkout Session.Determines which entity is allowed to update the line items.Determines which entity is allowed to update the shipping details.int
hashCode()
void
setUpdate
(Session.Permissions.Update update) Permissions for updating the Checkout Session.void
setUpdateLineItems
(String updateLineItems) Determines which entity is allowed to update the line items.void
setUpdateShippingDetails
(String updateShippingDetails) Determines which entity is allowed to update the shipping details.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
Permissions
public Permissions()
-
-
Method Details
-
getUpdate
Permissions for updating the Checkout Session. -
getUpdateLineItems
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.One of
client_only
, orserver_only
. -
getUpdateShippingDetails
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.One of
client_only
, orserver_only
. -
setUpdate
Permissions for updating the Checkout Session. -
setUpdateLineItems
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.One of
client_only
, orserver_only
. -
setUpdateShippingDetails
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.One of
client_only
, orserver_only
. -
equals
-
canEqual
-
hashCode
public int hashCode()
-