Class: Straddle::Models::PayoutEventV1WebhookEvent::Data::CustomerDetails

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/straddle/models/payout_event_v1_webhook_event.rb,
sig/straddle/models/payout_event_v1_webhook_event.rbs

Overview

See Also:

  • Straddle::Models::PayoutEventV1WebhookEvent::Data#customer_details

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 ⇒ Object



458
# File 'sig/straddle/models/payout_event_v1_webhook_event.rbs', line 458

def initialize: (

Instance Attribute Details

#customer_type ⇒ Symbol, Straddle::Models::CustomerType

Whether the customer is an individual or a business.

Parameters:

  • value (Straddle::Models::customer_type)

Returns:



470
# File 'lib/straddle/models/payout_event_v1_webhook_event.rb', line 470

required :customer_type, enum: -> { Straddle::CustomerType }

#email ⇒ String

Customer's email address.

Parameters:

  • value (String)

Returns:

  • (String)


476
# File 'lib/straddle/models/payout_event_v1_webhook_event.rb', line 476

required :email, String

#id ⇒ String

Unique identifier for the customer.

Parameters:

  • value (String)

Returns:

  • (String)


464
# File 'lib/straddle/models/payout_event_v1_webhook_event.rb', line 464

required :id, String

#name ⇒ String

Customer's full name or business name.

Parameters:

  • value (String)

Returns:

  • (String)


482
# File 'lib/straddle/models/payout_event_v1_webhook_event.rb', line 482

required :name, String

#phone ⇒ String

Customer's phone number in E.164 format.

Parameters:

  • value (String)

Returns:

  • (String)


488
# File 'lib/straddle/models/payout_event_v1_webhook_event.rb', line 488

required :phone, String

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


466
# File 'sig/straddle/models/payout_event_v1_webhook_event.rbs', line 466

def to_hash: -> {