Class: Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::CheckoutOptions

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/stigg/models/v1/contract_create_params.rb,
sig/stigg/models/v1/contract_create_params.rbs

Overview

See Also:

  • Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription#checkout_options

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#initializeObject



968
# File 'sig/stigg/models/v1/contract_create_params.rbs', line 968

def initialize: (

Instance Attribute Details

#allow_promo_codesBoolean?

Allow promotional codes during checkout

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


947
# File 'lib/stigg/models/v1/contract_create_params.rb', line 947

optional :allow_promo_codes, Stigg::Internal::Type::Boolean, api_name: :allowPromoCodes

#allow_tax_id_collectionBoolean?

Allow tax ID collection during checkout

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


953
954
955
# File 'lib/stigg/models/v1/contract_create_params.rb', line 953

optional :allow_tax_id_collection,
Stigg::Internal::Type::Boolean,
api_name: :allowTaxIdCollection

#cancel_urlString

URL to redirect to if checkout is canceled

Parameters:

  • value (String)

Returns:

  • (String)


935
# File 'lib/stigg/models/v1/contract_create_params.rb', line 935

required :cancel_url, String, api_name: :cancelUrl

#collect_billing_addressBoolean?

Collect billing address during checkout

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


961
962
963
# File 'lib/stigg/models/v1/contract_create_params.rb', line 961

optional :collect_billing_address,
Stigg::Internal::Type::Boolean,
api_name: :collectBillingAddress

#collect_phone_numberBoolean?

Collect phone number during checkout

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


969
# File 'lib/stigg/models/v1/contract_create_params.rb', line 969

optional :collect_phone_number, Stigg::Internal::Type::Boolean, api_name: :collectPhoneNumber

#reference_idString?

Optional reference ID for the checkout session

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


975
# File 'lib/stigg/models/v1/contract_create_params.rb', line 975

optional :reference_id, String, api_name: :referenceId, nil?: true

#success_urlString

URL to redirect to after successful checkout

Parameters:

  • value (String)

Returns:

  • (String)


941
# File 'lib/stigg/models/v1/contract_create_params.rb', line 941

required :success_url, String, api_name: :successUrl

Instance Method Details

#to_hash{

Returns:

  • ({)


978
# File 'sig/stigg/models/v1/contract_create_params.rbs', line 978

def to_hash: -> {