Class: Dodopayments::Models::CheckoutSessionRequest
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Dodopayments::Models::CheckoutSessionRequest
- Defined in:
- lib/dodopayments/models/checkout_session_request.rb
Direct Known Subclasses
Defined Under Namespace
Classes: BillingAddress, Customization, FeatureFlags, ProductCart, SubscriptionData
Instance Attribute Summary collapse
-
#allowed_payment_method_types ⇒ Array<Symbol, Dodopayments::Models::PaymentMethodTypes>?
Customers will never see payment methods that are not in this list.
-
#billing_address ⇒ Dodopayments::Models::CheckoutSessionRequest::BillingAddress?
Billing address information for the session.
-
#billing_currency ⇒ Symbol, ...
This field is ingored if adaptive pricing is disabled.
-
#confirm ⇒ Boolean?
If confirm is true, all the details will be finalized.
-
#customer ⇒ Dodopayments::Models::AttachExistingCustomer, ...
Customer details for the session.
-
#customization ⇒ Dodopayments::Models::CheckoutSessionRequest::Customization?
Customization for the checkout session page.
- #discount_code ⇒ String?
- #feature_flags ⇒ Dodopayments::Models::CheckoutSessionRequest::FeatureFlags?
-
#force_3ds ⇒ Boolean?
Override merchant default 3DS behaviour for this session.
-
#metadata ⇒ Hash{Symbol=>String}?
Additional metadata associated with the payment.
- #product_cart ⇒ Array<Dodopayments::Models::CheckoutSessionRequest::ProductCart>
-
#return_url ⇒ String?
The url to redirect after payment failure or success.
-
#show_saved_payment_methods ⇒ Boolean?
Display saved payment methods of a returning customer False by default.
- #subscription_data ⇒ Dodopayments::Models::CheckoutSessionRequest::SubscriptionData?
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(allow_currency_selection: nil, allow_customer_editing_city: nil, allow_customer_editing_country: nil, allow_customer_editing_email: nil, allow_customer_editing_name: nil, allow_customer_editing_state: nil, allow_customer_editing_street: nil, allow_customer_editing_zipcode: nil, allow_discount_code: nil, allow_phone_number_collection: nil, allow_tax_id: nil, always_create_new_customer: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see FeatureFlags for more details.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(allow_currency_selection: nil, allow_customer_editing_city: nil, allow_customer_editing_country: nil, allow_customer_editing_email: nil, allow_customer_editing_name: nil, allow_customer_editing_state: nil, allow_customer_editing_street: nil, allow_customer_editing_zipcode: nil, allow_discount_code: nil, allow_phone_number_collection: nil, allow_tax_id: nil, always_create_new_customer: nil) ⇒ Object
Some parameter documentations has been truncated, see FeatureFlags for more details.
|
|
# File 'lib/dodopayments/models/checkout_session_request.rb', line 158
|
Instance Attribute Details
#allowed_payment_method_types ⇒ Array<Symbol, Dodopayments::Models::PaymentMethodTypes>?
Customers will never see payment methods that are not in this list. However, adding a method here does not guarantee customers will see it. Availability still depends on other factors (e.g., customer location, merchant settings).
Disclaimar: Always provide ‘credit’ and ‘debit’ as a fallback. If all payment methods are unavailable, checkout session will fail.
21 22 23 |
# File 'lib/dodopayments/models/checkout_session_request.rb', line 21 optional :allowed_payment_method_types, -> { Dodopayments::Internal::Type::ArrayOf[enum: Dodopayments::PaymentMethodTypes] }, nil?: true |
#billing_address ⇒ Dodopayments::Models::CheckoutSessionRequest::BillingAddress?
Billing address information for the session
29 |
# File 'lib/dodopayments/models/checkout_session_request.rb', line 29 optional :billing_address, -> { Dodopayments::CheckoutSessionRequest::BillingAddress }, nil?: true |
#billing_currency ⇒ Symbol, ...
This field is ingored if adaptive pricing is disabled
35 |
# File 'lib/dodopayments/models/checkout_session_request.rb', line 35 optional :billing_currency, enum: -> { Dodopayments::Currency }, nil?: true |
#confirm ⇒ Boolean?
If confirm is true, all the details will be finalized. If required data is missing, an API error is thrown.
42 |
# File 'lib/dodopayments/models/checkout_session_request.rb', line 42 optional :confirm, Dodopayments::Internal::Type::Boolean |
#customer ⇒ Dodopayments::Models::AttachExistingCustomer, ...
Customer details for the session
48 |
# File 'lib/dodopayments/models/checkout_session_request.rb', line 48 optional :customer, union: -> { Dodopayments::CustomerRequest }, nil?: true |
#customization ⇒ Dodopayments::Models::CheckoutSessionRequest::Customization?
Customization for the checkout session page
54 |
# File 'lib/dodopayments/models/checkout_session_request.rb', line 54 optional :customization, -> { Dodopayments::CheckoutSessionRequest::Customization } |
#discount_code ⇒ String?
59 |
# File 'lib/dodopayments/models/checkout_session_request.rb', line 59 optional :discount_code, String, nil?: true |
#feature_flags ⇒ Dodopayments::Models::CheckoutSessionRequest::FeatureFlags?
64 |
# File 'lib/dodopayments/models/checkout_session_request.rb', line 64 optional :feature_flags, -> { Dodopayments::CheckoutSessionRequest::FeatureFlags } |
#force_3ds ⇒ Boolean?
Override merchant default 3DS behaviour for this session
70 |
# File 'lib/dodopayments/models/checkout_session_request.rb', line 70 optional :force_3ds, Dodopayments::Internal::Type::Boolean, nil?: true |
#metadata ⇒ Hash{Symbol=>String}?
Additional metadata associated with the payment. Defaults to empty if not provided.
77 |
# File 'lib/dodopayments/models/checkout_session_request.rb', line 77 optional :metadata, Dodopayments::Internal::Type::HashOf[String], nil?: true |
#product_cart ⇒ Array<Dodopayments::Models::CheckoutSessionRequest::ProductCart>
9 10 |
# File 'lib/dodopayments/models/checkout_session_request.rb', line 9 required :product_cart, -> { Dodopayments::Internal::Type::ArrayOf[Dodopayments::CheckoutSessionRequest::ProductCart] } |
#return_url ⇒ String?
The url to redirect after payment failure or success.
83 |
# File 'lib/dodopayments/models/checkout_session_request.rb', line 83 optional :return_url, String, nil?: true |
#show_saved_payment_methods ⇒ Boolean?
Display saved payment methods of a returning customer False by default
89 |
# File 'lib/dodopayments/models/checkout_session_request.rb', line 89 optional :show_saved_payment_methods, Dodopayments::Internal::Type::Boolean |
#subscription_data ⇒ Dodopayments::Models::CheckoutSessionRequest::SubscriptionData?
94 |
# File 'lib/dodopayments/models/checkout_session_request.rb', line 94 optional :subscription_data, -> { Dodopayments::CheckoutSessionRequest::SubscriptionData }, nil?: true |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/dodopayments/models/checkout_session_request.rb', line 275
|