Class: Dodopayments::Models::Customer

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/dodopayments/models/customer.rb

Overview

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(business_id:, created_at:, customer_id:, email:, name:, metadata: nil, phone_number: nil) ⇒ Object

Parameters:

  • business_id (String)
  • created_at (Time)
  • customer_id (String)
  • email (String)
  • name (String)
  • metadata (Hash{Symbol=>String}) (defaults to: nil)

    Additional metadata for the customer

  • phone_number (String, nil) (defaults to: nil)


# File 'lib/dodopayments/models/customer.rb', line 43

Instance Attribute Details

#business_idString

Returns:

  • (String)


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

required :business_id, String

#created_atTime

Returns:

  • (Time)


15
# File 'lib/dodopayments/models/customer.rb', line 15

required :created_at, Time

#customer_idString

Returns:

  • (String)


20
# File 'lib/dodopayments/models/customer.rb', line 20

required :customer_id, String

#emailString

Returns:

  • (String)


25
# File 'lib/dodopayments/models/customer.rb', line 25

required :email, String

#metadataHash{Symbol=>String}?

Additional metadata for the customer

Returns:

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


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

optional :metadata, Dodopayments::Internal::Type::HashOf[String]

#nameString

Returns:

  • (String)


30
# File 'lib/dodopayments/models/customer.rb', line 30

required :name, String

#phone_numberString?

Returns:

  • (String, nil)


41
# File 'lib/dodopayments/models/customer.rb', line 41

optional :phone_number, String, nil?: true