Class Session.Permissions

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.checkout.Session.Permissions
All Implemented Interfaces:
StripeObjectInterface
Enclosing class:
Session

public static class Session.Permissions extends StripeObject
For more details about Permissions, please refer to the API Reference.
  • Constructor Details

    • Permissions

      public Permissions()
  • Method Details

    • getUpdate

      public Session.Permissions.Update getUpdate()
      Permissions for updating the Checkout Session.
    • getUpdateLineItems

      public String 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 to server_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, or server_only.

    • getUpdateShippingDetails

      public String 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 to server_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, or server_only.

    • setUpdate

      public void setUpdate(Session.Permissions.Update update)
      Permissions for updating the Checkout Session.
    • setUpdateLineItems

      public void setUpdateLineItems(String updateLineItems)
      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 to server_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, or server_only.

    • setUpdateShippingDetails

      public void setUpdateShippingDetails(String updateShippingDetails)
      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 to server_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, or server_only.

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object