Class: Dodopayments::Models::CreateNewCustomer
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Dodopayments::Models::CreateNewCustomer
- Defined in:
- lib/dodopayments/models/create_new_customer.rb
Instance Attribute Summary collapse
-
#create_new_customer ⇒ Boolean?
When false, the most recently created customer object with the given email is used if exists.
- #email ⇒ String
- #name ⇒ String
- #phone_number ⇒ String?
Instance Method Summary collapse
-
#initialize(email: , name: , create_new_customer: nil, phone_number: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see CreateNewCustomer for more details.
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(email: , name: , create_new_customer: nil, phone_number: nil) ⇒ Object
Some parameter documentations has been truncated, see Dodopayments::Models::CreateNewCustomer for more details.
|
|
# File 'lib/dodopayments/models/create_new_customer.rb', line 29
|
Instance Attribute Details
#create_new_customer ⇒ Boolean?
When false, the most recently created customer object with the given email is used if exists. When true, a new customer object is always created False by default
22 |
# File 'lib/dodopayments/models/create_new_customer.rb', line 22 optional :create_new_customer, Dodopayments::Internal::Type::Boolean |
#email ⇒ String
9 |
# File 'lib/dodopayments/models/create_new_customer.rb', line 9 required :email, String |
#name ⇒ String
14 |
# File 'lib/dodopayments/models/create_new_customer.rb', line 14 required :name, String |
#phone_number ⇒ String?
27 |
# File 'lib/dodopayments/models/create_new_customer.rb', line 27 optional :phone_number, String, nil?: true |