Class: WhopSDK::Models::CheckoutConfigurationCreateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/whop_sdk/models/checkout_configuration_create_params.rb,
sig/whop_sdk/models/checkout_configuration_create_params.rbs

Overview

See Also:

  • WhopSDK::Resources::CheckoutConfigurations#create

Defined Under Namespace

Modules: Mode Classes: PaymentMethodConfiguration, Plan

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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 uses the plan or platform defaults.

Parameters:

  • disabled (Array<String>) (defaults to: nil)

    Payment methods explicitly disabled for checkout.

  • enabled (Array<String>) (defaults to: nil)

    Payment methods explicitly enabled for checkout.

  • include_platform_defaults (Boolean) (defaults to: nil)

    Whether platform default payment methods are included.



# File 'lib/whop_sdk/models/checkout_configuration_create_params.rb', line 75

Instance Attribute Details

#affiliate_codeString?

Affiliate code to apply to the checkout.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


14
# File 'lib/whop_sdk/models/checkout_configuration_create_params.rb', line 14

optional :affiliate_code, String, nil?: true

#company_idString?

Account ID, prefixed biz_.

Parameters:

  • (String)

Returns:

  • (String, nil)


20
# File 'lib/whop_sdk/models/checkout_configuration_create_params.rb', line 20

optional :company_id, String

#currencyString?

Currency used for setup-mode payment method availability.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


26
# File 'lib/whop_sdk/models/checkout_configuration_create_params.rb', line 26

optional :currency, String, nil?: true

#metadataObject?

Custom key-value metadata copied to payments and memberships.

Parameters:

  • value (top, nil)

Returns:

  • (Object, nil)


32
# File 'lib/whop_sdk/models/checkout_configuration_create_params.rb', line 32

optional :metadata, WhopSDK::Internal::Type::Unknown, nil?: true

#modeSymbol, ...

Checkout mode: payment collects payment for a plan now; setup saves payment details without charging. Defaults to payment.



39
# File 'lib/whop_sdk/models/checkout_configuration_create_params.rb', line 39

optional :mode, enum: -> { WhopSDK::CheckoutConfigurationCreateParams::Mode }

#payment_method_configurationWhopSDK::Models::CheckoutConfigurationCreateParams::PaymentMethodConfiguration?

Payment method overrides for this checkout. null uses the plan or platform defaults.

Parameters:

  • value (WhopSDK::CheckoutConfigurationCreateParams::PaymentMethodConfiguration, nil)

Returns:



46
47
48
# File 'lib/whop_sdk/models/checkout_configuration_create_params.rb', line 46

optional :payment_method_configuration,
-> { WhopSDK::CheckoutConfigurationCreateParams::PaymentMethodConfiguration },
nil?: true

#planWhopSDK::Models::CheckoutConfigurationCreateParams::Plan?

Plan attributes used to create or find a plan for this checkout configuration. Mutually exclusive with plan_id.

Parameters:

  • value (WhopSDK::CheckoutConfigurationCreateParams::Plan, nil)

Returns:



55
# File 'lib/whop_sdk/models/checkout_configuration_create_params.rb', line 55

optional :plan, -> { WhopSDK::CheckoutConfigurationCreateParams::Plan }, nil?: true

#plan_idString?

Existing plan ID, prefixed plan_. Mutually exclusive with plan.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


61
# File 'lib/whop_sdk/models/checkout_configuration_create_params.rb', line 61

optional :plan_id, String, nil?: true

#redirect_urlString?

URL customers are sent to after checkout.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


67
# File 'lib/whop_sdk/models/checkout_configuration_create_params.rb', line 67

optional :redirect_url, String, nil?: true

#three_ds_levelString?

3D Secure behavior for this checkout.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


73
# File 'lib/whop_sdk/models/checkout_configuration_create_params.rb', line 73

optional :three_ds_level, String, nil?: true

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/whop_sdk/models/checkout_configuration_create_params.rb', line 109

Instance Method Details

#to_hash{

Returns:

  • ({)


62
# File 'sig/whop_sdk/models/checkout_configuration_create_params.rbs', line 62

def to_hash: -> {