Class: Lithic::Models::Payment
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Lithic::Models::Payment
- Defined in:
- lib/lithic/models/payment.rb
Overview
Direct Known Subclasses
PaymentCreateResponse, PaymentRetryResponse, PaymentTransactionCreatedWebhookEvent, PaymentTransactionUpdatedWebhookEvent
Defined Under Namespace
Modules: Category, Direction, Method, MethodAttributes, Result, Source, Status, Type Classes: Event, RelatedAccountTokens
Instance Attribute Summary collapse
-
#category ⇒ Symbol, Lithic::Models::Payment::Category
Transaction category.
-
#created ⇒ Time
ISO 8601 timestamp of when the transaction was created.
-
#currency ⇒ String?
Currency of the transaction in ISO 4217 format.
-
#descriptor ⇒ String
Transaction descriptor.
-
#direction ⇒ Symbol, Lithic::Models::Payment::Direction
Transfer direction.
-
#events ⇒ Array<Lithic::Models::Payment::Event>
List of transaction events.
-
#expected_release_date ⇒ Date?
Expected release date for the transaction.
-
#external_bank_account_token ⇒ String?
External bank account token.
-
#family ⇒ Symbol, :PAYMENT
PAYMENT - Payment Transaction.
-
#financial_account_token ⇒ String
Financial account token.
-
#method_ ⇒ Symbol, Lithic::Models::Payment::Method
Transfer method.
-
#method_attributes ⇒ Lithic::Models::Payment::MethodAttributes::ACHMethodAttributes, Lithic::Models::Payment::MethodAttributes::WireMethodAttributes
Method-specific attributes.
-
#pending_amount ⇒ Integer
Pending amount in cents.
-
#related_account_tokens ⇒ Lithic::Models::Payment::RelatedAccountTokens?
Account tokens related to a payment transaction.
-
#result ⇒ Symbol, Lithic::Models::Payment::Result
Transaction result.
-
#settled_amount ⇒ Integer
Settled amount in cents.
-
#source ⇒ Symbol, Lithic::Models::Payment::Source
Transaction source.
-
#status ⇒ Symbol, Lithic::Models::Payment::Status
The status of the transaction.
-
#token ⇒ String
Unique identifier for the transaction.
- #type ⇒ Symbol, ...
-
#updated ⇒ Time
ISO 8601 timestamp of when the transaction was last updated.
-
#user_defined_id ⇒ String?
User-defined identifier.
Class Method Summary collapse
- .values ⇒ Array<Symbol>
- .variants ⇒ Array(Lithic::Models::Payment::MethodAttributes::ACHMethodAttributes, Lithic::Models::Payment::MethodAttributes::WireMethodAttributes)
Instance Method Summary collapse
-
#initialize(account_token:, business_account_token:) ⇒ Object
constructor
Account tokens related to a payment transaction.
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(account_token:, business_account_token:) ⇒ Object
Account tokens related to a payment transaction
|
|
# File 'lib/lithic/models/payment.rb', line 138
|
Instance Attribute Details
#category ⇒ Symbol, Lithic::Models::Payment::Category
Transaction category
17 |
# File 'lib/lithic/models/payment.rb', line 17 required :category, enum: -> { Lithic::Payment::Category } |
#created ⇒ Time
ISO 8601 timestamp of when the transaction was created
23 |
# File 'lib/lithic/models/payment.rb', line 23 required :created, Time |
#currency ⇒ String?
Currency of the transaction in ISO 4217 format
113 |
# File 'lib/lithic/models/payment.rb', line 113 optional :currency, String |
#descriptor ⇒ String
Transaction descriptor
29 |
# File 'lib/lithic/models/payment.rb', line 29 required :descriptor, String |
#direction ⇒ Symbol, Lithic::Models::Payment::Direction
Transfer direction
35 |
# File 'lib/lithic/models/payment.rb', line 35 required :direction, enum: -> { Lithic::Payment::Direction } |
#events ⇒ Array<Lithic::Models::Payment::Event>
List of transaction events
41 |
# File 'lib/lithic/models/payment.rb', line 41 required :events, -> { Lithic::Internal::Type::ArrayOf[Lithic::Payment::Event] } |
#expected_release_date ⇒ Date?
Expected release date for the transaction
119 |
# File 'lib/lithic/models/payment.rb', line 119 optional :expected_release_date, Date, nil?: true |
#external_bank_account_token ⇒ String?
External bank account token
125 |
# File 'lib/lithic/models/payment.rb', line 125 optional :external_bank_account_token, String, nil?: true |
#family ⇒ Symbol, :PAYMENT
PAYMENT - Payment Transaction
47 |
# File 'lib/lithic/models/payment.rb', line 47 required :family, const: :PAYMENT |
#financial_account_token ⇒ String
Financial account token
53 |
# File 'lib/lithic/models/payment.rb', line 53 required :financial_account_token, String |
#method_ ⇒ Symbol, Lithic::Models::Payment::Method
Transfer method
59 |
# File 'lib/lithic/models/payment.rb', line 59 required :method_, enum: -> { Lithic::Payment::Method }, api_name: :method |
#method_attributes ⇒ Lithic::Models::Payment::MethodAttributes::ACHMethodAttributes, Lithic::Models::Payment::MethodAttributes::WireMethodAttributes
Method-specific attributes
65 |
# File 'lib/lithic/models/payment.rb', line 65 required :method_attributes, union: -> { Lithic::Payment::MethodAttributes } |
#pending_amount ⇒ Integer
Pending amount in cents
71 |
# File 'lib/lithic/models/payment.rb', line 71 required :pending_amount, Integer |
#related_account_tokens ⇒ Lithic::Models::Payment::RelatedAccountTokens?
Account tokens related to a payment transaction
77 |
# File 'lib/lithic/models/payment.rb', line 77 required :related_account_tokens, -> { Lithic::Payment:: }, nil?: true |
#result ⇒ Symbol, Lithic::Models::Payment::Result
Transaction result
83 |
# File 'lib/lithic/models/payment.rb', line 83 required :result, enum: -> { Lithic::Payment::Result } |
#settled_amount ⇒ Integer
Settled amount in cents
89 |
# File 'lib/lithic/models/payment.rb', line 89 required :settled_amount, Integer |
#source ⇒ Symbol, Lithic::Models::Payment::Source
Transaction source
95 |
# File 'lib/lithic/models/payment.rb', line 95 required :source, enum: -> { Lithic::Payment::Source } |
#status ⇒ Symbol, Lithic::Models::Payment::Status
The status of the transaction
101 |
# File 'lib/lithic/models/payment.rb', line 101 required :status, enum: -> { Lithic::Payment::Status } |
#token ⇒ String
Unique identifier for the transaction
11 |
# File 'lib/lithic/models/payment.rb', line 11 required :token, String |
#type ⇒ Symbol, ...
130 |
# File 'lib/lithic/models/payment.rb', line 130 optional :type, enum: -> { Lithic::Payment::Type } |
#updated ⇒ Time
ISO 8601 timestamp of when the transaction was last updated
107 |
# File 'lib/lithic/models/payment.rb', line 107 required :updated, Time |
#user_defined_id ⇒ String?
User-defined identifier
136 |
# File 'lib/lithic/models/payment.rb', line 136 optional :user_defined_id, String, nil?: true |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/lithic/models/payment.rb', line 212
|
.variants ⇒ Array(Lithic::Models::Payment::MethodAttributes::ACHMethodAttributes, Lithic::Models::Payment::MethodAttributes::WireMethodAttributes)
|
|
# File 'lib/lithic/models/payment.rb', line 563
|