Class: Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Stripe

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/orb/models/customer_update_by_external_id_params.rb,
sig/orb/models/customer_update_by_external_id_params.rbs

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

#initialize(tax_exempt:, automatic_tax_enabled: nil, tax_provider: :stripe) ⇒ Object

Some parameter documentations has been truncated, see Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Stripe for more details.

Parameters:

  • tax_exempt (Boolean)
  • automatic_tax_enabled (Boolean, nil) (defaults to: nil)

    Whether to automatically calculate tax for this customer. When null, inherits fr

  • tax_provider (Symbol, :stripe) (defaults to: :stripe)


# File 'lib/orb/models/customer_update_by_external_id_params.rb', line 538

Instance Attribute Details

#automatic_tax_enabledBoolean?

Whether to automatically calculate tax for this customer. When null, inherits from account-level setting. When true or false, overrides the account setting.

Parameters:

  • value (Boolean, nil)

Returns:

  • (Boolean, nil)


536
# File 'lib/orb/models/customer_update_by_external_id_params.rb', line 536

optional :automatic_tax_enabled, Orb::Internal::Type::Boolean, nil?: true

#tax_exemptBoolean

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


524
# File 'lib/orb/models/customer_update_by_external_id_params.rb', line 524

required :tax_exempt, Orb::Internal::Type::Boolean

#tax_providerSymbol, :stripe

Parameters:

  • value (:stripe)

Returns:

  • (Symbol, :stripe)


529
# File 'lib/orb/models/customer_update_by_external_id_params.rb', line 529

required :tax_provider, const: :stripe

Instance Method Details

#to_hash{

Returns:

  • ({)


293
# File 'sig/orb/models/customer_update_by_external_id_params.rbs', line 293

def to_hash: -> {