Class: Lithic::Models::ExternalPayment

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

Overview

Defined Under Namespace

Modules: Category, Family, PaymentType, Result, Status Classes: Event

Instance Attribute Summary collapse

Class Method 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:, created:, status:, updated:, category: nil, currency: nil, events: nil, family: nil, financial_account_token: nil, payment_type: nil, pending_amount: nil, result: nil, settled_amount: nil, user_defined_id: nil) ⇒ Object

Parameters:



# File 'lib/lithic/models/external_payment.rb', line 82

Instance Attribute Details

#categorySymbol, ...



34
# File 'lib/lithic/models/external_payment.rb', line 34

optional :category, enum: -> { Lithic::ExternalPayment::Category }

#createdTime

ISO 8601 timestamp of when the transaction was created

Returns:

  • (Time)


17
# File 'lib/lithic/models/external_payment.rb', line 17

required :created, Time

#currencyString?

Returns:

  • (String, nil)


39
# File 'lib/lithic/models/external_payment.rb', line 39

optional :currency, String

#eventsArray<Lithic::Models::ExternalPayment::Event>?



44
# File 'lib/lithic/models/external_payment.rb', line 44

optional :events, -> { Lithic::Internal::Type::ArrayOf[Lithic::ExternalPayment::Event] }

#familySymbol, ...

EXTERNAL_PAYMENT - External Payment Response

Returns:



50
# File 'lib/lithic/models/external_payment.rb', line 50

optional :family, enum: -> { Lithic::ExternalPayment::Family }

#financial_account_tokenString?

Returns:

  • (String, nil)


55
# File 'lib/lithic/models/external_payment.rb', line 55

optional :financial_account_token, String

#payment_typeSymbol, ...



60
# File 'lib/lithic/models/external_payment.rb', line 60

optional :payment_type, enum: -> { Lithic::ExternalPayment::PaymentType }

#pending_amountInteger?

Returns:

  • (Integer, nil)


65
# File 'lib/lithic/models/external_payment.rb', line 65

optional :pending_amount, Integer

#resultSymbol, ...

Returns:



70
# File 'lib/lithic/models/external_payment.rb', line 70

optional :result, enum: -> { Lithic::ExternalPayment::Result }

#settled_amountInteger?

Returns:

  • (Integer, nil)


75
# File 'lib/lithic/models/external_payment.rb', line 75

optional :settled_amount, Integer

#statusSymbol, Lithic::Models::ExternalPayment::Status

The status of the transaction



23
# File 'lib/lithic/models/external_payment.rb', line 23

required :status, enum: -> { Lithic::ExternalPayment::Status }

#tokenString

Unique identifier for the transaction

Returns:

  • (String)


11
# File 'lib/lithic/models/external_payment.rb', line 11

required :token, String

#updatedTime

ISO 8601 timestamp of when the transaction was last updated

Returns:

  • (Time)


29
# File 'lib/lithic/models/external_payment.rb', line 29

required :updated, Time

#user_defined_idString?

Returns:

  • (String, nil)


80
# File 'lib/lithic/models/external_payment.rb', line 80

optional :user_defined_id, String, nil?: true

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/lithic/models/external_payment.rb', line 124