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

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/metronome_sdk/models/v1/customer_create_params.rb

Overview

Defined Under Namespace

Classes: BillingConfig, CustomerBillingProviderConfiguration

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Class 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, #initialize, 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

This class inherits a constructor from MetronomeSDK::Internal::Type::BaseModel

Instance Attribute Details

#billing_configMetronomeSDK::Models::V1::CustomerCreateParams::BillingConfig?



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

optional :billing_config, -> { MetronomeSDK::V1::CustomerCreateParams::BillingConfig }

#custom_fieldsHash{Symbol=>String}?

Custom fields to be added eg. { “key1”: “value1”, “key2”: “value2” }

Returns:

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


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

optional :custom_fields, MetronomeSDK::Internal::Type::HashOf[String]

#customer_billing_provider_configurationsArray<MetronomeSDK::Models::V1::CustomerCreateParams::CustomerBillingProviderConfiguration>?



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

optional :customer_billing_provider_configurations,
-> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::V1::CustomerCreateParams::CustomerBillingProviderConfiguration] }

#external_idString?

(deprecated, use ingest_aliases instead) an alias that can be used to refer to this customer in usage events

Returns:

  • (String, nil)


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

optional :external_id, String

#ingest_aliasesArray<String>?

Aliases that can be used to refer to this customer in usage events

Returns:

  • (Array<String>, nil)


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

optional :ingest_aliases, MetronomeSDK::Internal::Type::ArrayOf[String]

#nameString

This will be truncated to 160 characters if the provided name is longer.

Returns:

  • (String)


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

required :name, String

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


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