Class: Dodopayments::Models::Customer
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Dodopayments::Models::Customer
- Defined in:
- lib/dodopayments/models/customer.rb,
sig/dodopayments/models/customer.rbs
Overview
Instance Attribute Summary collapse
-
#blocked_at ⇒ Time?
When the merchant blocked this customer.
-
#blocklist_entry_id ⇒ String?
Blocklist entry behind
blocked_at, so the dashboard can link to it. - #business_id ⇒ String
- #created_at ⇒ Time
- #customer_id ⇒ String
- #email ⇒ String
-
#metadata ⇒ Hash{Symbol=>String, Float, Boolean}?
Additional metadata for the customer.
- #name ⇒ String
- #phone_number ⇒ String?
Instance Method Summary collapse
-
#initialize(business_id:, created_at:, customer_id:, email:, name:, blocked_at: nil, blocklist_entry_id: nil, metadata: nil, phone_number: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see Customer for more details.
- #to_hash ⇒ {
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:, blocked_at: nil, blocklist_entry_id: nil, metadata: nil, phone_number: nil) ⇒ Object
Some parameter documentations has been truncated, see Dodopayments::Models::Customer for more details.
|
|
# File 'lib/dodopayments/models/customer.rb', line 57
|
Instance Attribute Details
#blocked_at ⇒ Time?
When the merchant blocked this customer. The dashboard shows the "Blocked" badge and the unblock action from it. The list route leaves it empty; only the single-customer route resolves it.
38 |
# File 'lib/dodopayments/models/customer.rb', line 38 optional :blocked_at, Time, nil?: true |
#blocklist_entry_id ⇒ String?
Blocklist entry behind blocked_at, so the dashboard can link to it.
44 |
# File 'lib/dodopayments/models/customer.rb', line 44 optional :blocklist_entry_id, String, nil?: true |
#business_id ⇒ String
10 |
# File 'lib/dodopayments/models/customer.rb', line 10 required :business_id, String |
#created_at ⇒ Time
15 |
# File 'lib/dodopayments/models/customer.rb', line 15 required :created_at, Time |
#customer_id ⇒ String
20 |
# File 'lib/dodopayments/models/customer.rb', line 20 required :customer_id, String |
#email ⇒ String
25 |
# File 'lib/dodopayments/models/customer.rb', line 25 required :email, String |
#metadata ⇒ Hash{Symbol=>String, Float, Boolean}?
Additional metadata for the customer
50 |
# File 'lib/dodopayments/models/customer.rb', line 50 optional :metadata, -> { Dodopayments::Internal::Type::HashOf[union: Dodopayments::MetadataItem] } |
#name ⇒ String
30 |
# File 'lib/dodopayments/models/customer.rb', line 30 required :name, String |
#phone_number ⇒ String?
55 |
# File 'lib/dodopayments/models/customer.rb', line 55 optional :phone_number, String, nil?: true |
Instance Method Details
#to_hash ⇒ {
51 |
# File 'sig/dodopayments/models/customer.rbs', line 51
def to_hash: -> {
|