Class: WhopSDK::Models::CheckoutConfigurationCreateResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::CheckoutConfigurationCreateResponse
- Defined in:
- lib/whop_sdk/models/checkout_configuration_create_response.rb,
sig/whop_sdk/models/checkout_configuration_create_response.rbs
Overview
Defined Under Namespace
Modules: Mode Classes: PaymentMethodConfiguration, Plan
Instance Attribute Summary collapse
-
#affiliate_code ⇒ String?
Affiliate code applied at checkout, or
nullwhen none is set. -
#company_id ⇒ String
Account ID, prefixed
biz_. -
#created_at ⇒ String
When the checkout configuration was created, as an ISO 8601 timestamp.
-
#currency ⇒ String?
Currency used for setup-mode payment method availability; defaults to
usdwhen omitted. -
#id ⇒ String
Checkout configuration ID, prefixed
ch_. -
#metadata ⇒ Object?
Custom key-value metadata copied to payments and memberships.
-
#mode ⇒ Symbol, WhopSDK::Models::CheckoutConfigurationCreateResponse::Mode
Checkout mode:
paymentcollects payment now;setupsaves payment details for later. -
#payment_method_configuration ⇒ WhopSDK::Models::CheckoutConfigurationCreateResponse::PaymentMethodConfiguration?
Payment method overrides for this checkout.
-
#plan ⇒ WhopSDK::Models::CheckoutConfigurationCreateResponse::Plan?
Plan used for payment checkout.
-
#purchase_url ⇒ String?
Checkout URL you can send to customers.
-
#redirect_url ⇒ String?
URL customers are sent to after checkout, or
nullwhen no redirect is configured. -
#three_ds_level ⇒ String?
3D Secure behavior for this checkout, or
nullto use the account default. -
#updated_at ⇒ String
When the checkout configuration was last updated, as an ISO 8601 timestamp.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(disabled: nil, enabled: nil, include_platform_defaults: nil) ⇒ Object
constructor
Payment method overrides for this checkout.
- #to_hash ⇒ {
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(disabled: nil, enabled: nil, include_platform_defaults: nil) ⇒ Object
Payment method overrides for this checkout. null when it uses the plan or
platform defaults.
|
|
# File 'lib/whop_sdk/models/checkout_configuration_create_response.rb', line 92
|
Instance Attribute Details
#affiliate_code ⇒ String?
Affiliate code applied at checkout, or null when none is set.
42 |
# File 'lib/whop_sdk/models/checkout_configuration_create_response.rb', line 42 optional :affiliate_code, String, nil?: true |
#company_id ⇒ String
Account ID, prefixed biz_.
17 |
# File 'lib/whop_sdk/models/checkout_configuration_create_response.rb', line 17 required :company_id, String |
#created_at ⇒ String
When the checkout configuration was created, as an ISO 8601 timestamp.
23 |
# File 'lib/whop_sdk/models/checkout_configuration_create_response.rb', line 23 required :created_at, String |
#currency ⇒ String?
Currency used for setup-mode payment method availability; defaults to usd when
omitted.
49 |
# File 'lib/whop_sdk/models/checkout_configuration_create_response.rb', line 49 optional :currency, String, nil?: true |
#id ⇒ String
Checkout configuration ID, prefixed ch_.
11 |
# File 'lib/whop_sdk/models/checkout_configuration_create_response.rb', line 11 required :id, String |
#metadata ⇒ Object?
Custom key-value metadata copied to payments and memberships. null without the
checkout_configuration:basic:read scope.
56 |
# File 'lib/whop_sdk/models/checkout_configuration_create_response.rb', line 56 optional :metadata, WhopSDK::Internal::Type::Unknown, nil?: true |
#mode ⇒ Symbol, WhopSDK::Models::CheckoutConfigurationCreateResponse::Mode
Checkout mode: payment collects payment now; setup saves payment details for
later.
30 |
# File 'lib/whop_sdk/models/checkout_configuration_create_response.rb', line 30 required :mode, enum: -> { WhopSDK::Models::CheckoutConfigurationCreateResponse::Mode } |
#payment_method_configuration ⇒ WhopSDK::Models::CheckoutConfigurationCreateResponse::PaymentMethodConfiguration?
Payment method overrides for this checkout. null when it uses the plan or
platform defaults.
63 64 65 |
# File 'lib/whop_sdk/models/checkout_configuration_create_response.rb', line 63 optional :payment_method_configuration, -> { WhopSDK::Models::CheckoutConfigurationCreateResponse::PaymentMethodConfiguration }, nil?: true |
#plan ⇒ WhopSDK::Models::CheckoutConfigurationCreateResponse::Plan?
Plan used for payment checkout. null in setup mode.
71 |
# File 'lib/whop_sdk/models/checkout_configuration_create_response.rb', line 71 optional :plan, -> { WhopSDK::Models::CheckoutConfigurationCreateResponse::Plan }, nil?: true |
#purchase_url ⇒ String?
Checkout URL you can send to customers.
77 |
# File 'lib/whop_sdk/models/checkout_configuration_create_response.rb', line 77 optional :purchase_url, String, nil?: true |
#redirect_url ⇒ String?
URL customers are sent to after checkout, or null when no redirect is
configured.
84 |
# File 'lib/whop_sdk/models/checkout_configuration_create_response.rb', line 84 optional :redirect_url, String, nil?: true |
#three_ds_level ⇒ String?
3D Secure behavior for this checkout, or null to use the account default.
90 |
# File 'lib/whop_sdk/models/checkout_configuration_create_response.rb', line 90 optional :three_ds_level, String, nil?: true |
#updated_at ⇒ String
When the checkout configuration was last updated, as an ISO 8601 timestamp.
36 |
# File 'lib/whop_sdk/models/checkout_configuration_create_response.rb', line 36 required :updated_at, String |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/whop_sdk/models/checkout_configuration_create_response.rb', line 132
|
Instance Method Details
#to_hash ⇒ {
63 |
# File 'sig/whop_sdk/models/checkout_configuration_create_response.rbs', line 63
def to_hash: -> {
|