Class: Dodopayments::Models::CustomerLimitedDetails

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/dodopayments/models/customer_limited_details.rb,
sig/dodopayments/models/customer_limited_details.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(customer_id:, email:, name:, metadata: nil, phone_number: nil) ⇒ Object



# File 'lib/dodopayments/models/customer_limited_details.rb', line 36


Instance Attribute Details

#customer_idString

Unique identifier for the customer



10
# File 'lib/dodopayments/models/customer_limited_details.rb', line 10

required :customer_id, String

#emailString

Email address of the customer



16
# File 'lib/dodopayments/models/customer_limited_details.rb', line 16

required :email, String

#metadataHash{Symbol=>String, Float, Boolean}?

Additional metadata associated with the customer



28
# File 'lib/dodopayments/models/customer_limited_details.rb', line 28

optional :metadata, -> { Dodopayments::Internal::Type::HashOf[union: Dodopayments::MetadataItem] }

#nameString

Full name of the customer



22
# File 'lib/dodopayments/models/customer_limited_details.rb', line 22

required :name, String

#phone_numberString?

Phone number of the customer



34
# File 'lib/dodopayments/models/customer_limited_details.rb', line 34

optional :phone_number, String, nil?: true

Instance Method Details

#to_hash{



35
# File 'sig/dodopayments/models/customer_limited_details.rbs', line 35

def to_hash: -> {