Class: MetronomeSDK::Models::V1::CustomerCreateParams::CustomerBillingProviderConfiguration

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/metronome_sdk/models/v1/customer_create_params.rb

Defined Under Namespace

Modules: BillingProvider, DeliveryMethod, TaxProvider

Instance Attribute Summary collapse

Class Method 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(billing_provider: , configuration: nil, delivery_method: nil, delivery_method_id: nil, tax_provider: nil) ⇒ Object

Some parameter documentations has been truncated, see MetronomeSDK::Models::V1::CustomerCreateParams::CustomerBillingProviderConfiguration for more details.

Parameters:



# File 'lib/metronome_sdk/models/v1/customer_create_params.rb', line 229

Instance Attribute Details

#billing_providerSymbol, MetronomeSDK::Models::V1::CustomerCreateParams::CustomerBillingProviderConfiguration::BillingProvider

The billing provider set for this configuration.



192
193
# File 'lib/metronome_sdk/models/v1/customer_create_params.rb', line 192

required :billing_provider,
enum: -> { MetronomeSDK::V1::CustomerCreateParams::CustomerBillingProviderConfiguration::BillingProvider }

#configurationHash{Symbol=>Object}?

Configuration for the billing provider. The structure of this object is specific to the billing provider and delivery provider combination. Defaults to an empty object, however, for most billing provider + delivery method combinations, it will not be a valid configuration.

Returns:

  • (Hash{Symbol=>Object}, nil)


202
# File 'lib/metronome_sdk/models/v1/customer_create_params.rb', line 202

optional :configuration, MetronomeSDK::Internal::Type::HashOf[MetronomeSDK::Internal::Type::Unknown]

#delivery_methodSymbol, ...

The method to use for delivering invoices to this customer. If not provided, the ‘delivery_method_id` must be provided.



209
210
# File 'lib/metronome_sdk/models/v1/customer_create_params.rb', line 209

optional :delivery_method,
enum: -> { MetronomeSDK::V1::CustomerCreateParams::CustomerBillingProviderConfiguration::DeliveryMethod }

#delivery_method_idString?

ID of the delivery method to use for this customer. If not provided, the ‘delivery_method` must be provided.

Returns:

  • (String, nil)


217
# File 'lib/metronome_sdk/models/v1/customer_create_params.rb', line 217

optional :delivery_method_id, String

#tax_providerSymbol, ...

Specifies which tax provider Metronome should use for tax calculation when billing through Stripe. This is only supported for Stripe billing provider configurations with auto_charge_payment_intent or manual_charge_payment_intent collection methods.



226
227
# File 'lib/metronome_sdk/models/v1/customer_create_params.rb', line 226

optional :tax_provider,
enum: -> { MetronomeSDK::V1::CustomerCreateParams::CustomerBillingProviderConfiguration::TaxProvider }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/metronome_sdk/models/v1/customer_create_params.rb', line 256