Class: Dodopayments::Models::CustomerLimitedDetails

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

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

Parameters:

  • customer_id (String) (defaults to: )

    Unique identifier for the customer

  • email (String) (defaults to: )

    Email address of the customer

  • name (String) (defaults to: )

    Full name of the customer

  • metadata (Hash{Symbol=>String}) (defaults to: nil)

    Additional metadata associated with the customer

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

    Phone number of the customer



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

Instance Attribute Details

#customer_idString

Unique identifier for the customer

Returns:

  • (String)


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

required :customer_id, String

#emailString

Email address of the customer

Returns:

  • (String)


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

required :email, String

#metadataHash{Symbol=>String}?

Additional metadata associated with the customer

Returns:

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


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

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

#nameString

Full name of the customer

Returns:

  • (String)


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

required :name, String

#phone_numberString?

Phone number of the customer

Returns:

  • (String, nil)


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

optional :phone_number, String, nil?: true