Class: Stripe::Checkout::SessionCreateParams::Permissions
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Checkout::SessionCreateParams::Permissions
- Defined in:
- lib/stripe/params/checkout/session_create_params.rb
Instance Attribute Summary collapse
-
#update_shipping_details ⇒ Object
Determines which entity is allowed to update the shipping details.
Instance Method Summary collapse
-
#initialize(update_shipping_details: nil) ⇒ Permissions
constructor
A new instance of Permissions.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h
Constructor Details
#initialize(update_shipping_details: nil) ⇒ Permissions
Returns a new instance of Permissions.
2047 2048 2049 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 2047 def initialize(update_shipping_details: nil) @update_shipping_details = update_shipping_details end |
Instance Attribute Details
#update_shipping_details ⇒ Object
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.
2045 2046 2047 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 2045 def update_shipping_details @update_shipping_details end |