Class: Lithic::Models::ParsedWebhookEvent::LegacyPayload

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/lithic/models/parsed_webhook_event.rb

Defined Under Namespace

Modules: EventType

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(token:, business_account_token: nil, created: nil, email: nil, event_type: nil, external_id: nil, first_name: nil, last_name: nil, legal_business_name: nil, phone_number: nil) ⇒ Object

Some parameter documentations has been truncated, see Lithic::Models::ParsedWebhookEvent::LegacyPayload for more details.

Legacy payload for an updated account holder.

Parameters:

  • token (String)

    The token of the account_holder that was created.

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

    If applicable, represents the business account token associated with the account

  • created (Time) (defaults to: nil)

    When the account_holder updated event was created

  • email (String) (defaults to: nil)

    If updated, the newly updated email associated with the account_holder otherwise

  • event_type (Symbol, Lithic::Models::ParsedWebhookEvent::LegacyPayload::EventType) (defaults to: nil)

    The type of event that occurred.

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

    If applicable, represents the external_id associated with the account_holder.

  • first_name (String) (defaults to: nil)

    If applicable, represents the account_holder’s first name.

  • last_name (String) (defaults to: nil)

    If applicable, represents the account_holder’s last name.

  • legal_business_name (String) (defaults to: nil)

    If applicable, represents the account_holder’s business name.

  • phone_number (String) (defaults to: nil)

    If updated, the newly updated phone_number associated with the account_holder ot



# File 'lib/lithic/models/parsed_webhook_event.rb', line 775


Instance Attribute Details

#business_account_tokenString?

If applicable, represents the business account token associated with the account_holder.

Returns:

  • (String, nil)


723
# File 'lib/lithic/models/parsed_webhook_event.rb', line 723

optional :business_account_token, String, nil?: true

#createdTime?

When the account_holder updated event was created

Returns:

  • (Time, nil)


729
# File 'lib/lithic/models/parsed_webhook_event.rb', line 729

optional :created, Time

#emailString?

If updated, the newly updated email associated with the account_holder otherwise the existing email is provided.

Returns:

  • (String, nil)


736
# File 'lib/lithic/models/parsed_webhook_event.rb', line 736

optional :email, String

#event_typeSymbol, ...

The type of event that occurred.



742
# File 'lib/lithic/models/parsed_webhook_event.rb', line 742

optional :event_type, enum: -> { Lithic::ParsedWebhookEvent::LegacyPayload::EventType }

#external_idString?

If applicable, represents the external_id associated with the account_holder.

Returns:

  • (String, nil)


748
# File 'lib/lithic/models/parsed_webhook_event.rb', line 748

optional :external_id, String, nil?: true

#first_nameString?

If applicable, represents the account_holder’s first name.

Returns:

  • (String, nil)


754
# File 'lib/lithic/models/parsed_webhook_event.rb', line 754

optional :first_name, String

#last_nameString?

If applicable, represents the account_holder’s last name.

Returns:

  • (String, nil)


760
# File 'lib/lithic/models/parsed_webhook_event.rb', line 760

optional :last_name, String

If applicable, represents the account_holder’s business name.

Returns:

  • (String, nil)


766
# File 'lib/lithic/models/parsed_webhook_event.rb', line 766

optional :legal_business_name, String

#phone_numberString?

If updated, the newly updated phone_number associated with the account_holder otherwise the existing phone_number is provided.

Returns:

  • (String, nil)


773
# File 'lib/lithic/models/parsed_webhook_event.rb', line 773

optional :phone_number, String

#tokenString

The token of the account_holder that was created.

Returns:

  • (String)


716
# File 'lib/lithic/models/parsed_webhook_event.rb', line 716

required :token, String