diff --git a/.release-please-manifest.json b/.release-please-manifest.json index de2352fe..50b34035 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-alpha.52" + ".": "0.1.0-alpha.53" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 13cfc26b..f728fc48 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ -configured_endpoints: 170 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-b1839661d8405911184d5cb7230f16e626a616e5b744634bd7f0bb4e730bf899.yml -openapi_spec_hash: c1c2c5a5c2a4067a714b35f873e3846f -config_hash: 98214f2eab6804b5c0048331e32c08e3 +configured_endpoints: 169 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-6432801dcf017d9234739b9f6153a8cfecd91255af4765f24ba5209f3e320b5c.yml +openapi_spec_hash: c2cfee2f044ba15d15b5bfdbd37280c0 +config_hash: 8ac73ccdb428816c89c84802c794a3f8 diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f9ff314..234a405c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 0.1.0-alpha.53 (2025-10-23) + +Full Changelog: [v0.1.0-alpha.52...v0.1.0-alpha.53](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0-alpha.52...v0.1.0-alpha.53) + +### Features + +* **api:** updates to Auth Rules and Card provisioning ([fe22047](https://github.com/lithic-com/lithic-ruby/commit/fe22047b0689b63872eb7454cb4fc733aabe81cc)) +* handle thread interrupts in the core HTTP client ([1f9867e](https://github.com/lithic-com/lithic-ruby/commit/1f9867e2708d86c52e212e11a55d04ef03410b5d)) + ## 0.1.0-alpha.52 (2025-10-15) Full Changelog: [v0.1.0-alpha.51...v0.1.0-alpha.52](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0-alpha.51...v0.1.0-alpha.52) diff --git a/Gemfile.lock b/Gemfile.lock index fce856db..c8c9b3ba 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - lithic (0.1.0.pre.alpha.52) + lithic (0.1.0.pre.alpha.53) connection_pool GEM diff --git a/README.md b/README.md index 71e94f32..c8c9d4fc 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "lithic", "~> 0.1.0.pre.alpha.52" +gem "lithic", "~> 0.1.0.pre.alpha.53" ``` diff --git a/lib/lithic.rb b/lib/lithic.rb index efb1b4f1..3acbb376 100644 --- a/lib/lithic.rb +++ b/lib/lithic.rb @@ -108,8 +108,6 @@ require_relative "lithic/models/auth_rules/v2_list_response" require_relative "lithic/models/auth_rules/v2_promote_params" require_relative "lithic/models/auth_rules/v2_promote_response" -require_relative "lithic/models/auth_rules/v2_report_params" -require_relative "lithic/models/auth_rules/v2_report_response" require_relative "lithic/models/auth_rules/v2_retrieve_features_params" require_relative "lithic/models/auth_rules/v2_retrieve_features_response" require_relative "lithic/models/auth_rules/v2_retrieve_params" @@ -285,6 +283,7 @@ require_relative "lithic/models/payment_simulate_release_response" require_relative "lithic/models/payment_simulate_return_params" require_relative "lithic/models/payment_simulate_return_response" +require_relative "lithic/models/provision_response" require_relative "lithic/models/reports/settlement/network_total_list_params" require_relative "lithic/models/reports/settlement/network_total_list_response" require_relative "lithic/models/reports/settlement/network_total_retrieve_params" diff --git a/lib/lithic/internal/transport/pooled_net_requester.rb b/lib/lithic/internal/transport/pooled_net_requester.rb index 40f39231..94f17a12 100644 --- a/lib/lithic/internal/transport/pooled_net_requester.rb +++ b/lib/lithic/internal/transport/pooled_net_requester.rb @@ -128,40 +128,48 @@ def execute(request) url, deadline = request.fetch_values(:url, :deadline) req = nil - eof = false finished = false - closing = nil # rubocop:disable Metrics/BlockLength enum = Enumerator.new do |y| next if finished with_pool(url, deadline: deadline) do |conn| - req, closing = self.class.build_request(request) do - self.class.calibrate_socket_timeout(conn, deadline) - end - - self.class.calibrate_socket_timeout(conn, deadline) - unless conn.started? - conn.keep_alive_timeout = self.class::KEEP_ALIVE_TIMEOUT - conn.start - end + eof = false + closing = nil + ::Thread.handle_interrupt(Object => :never) do + ::Thread.handle_interrupt(Object => :immediate) do + req, closing = self.class.build_request(request) do + self.class.calibrate_socket_timeout(conn, deadline) + end - self.class.calibrate_socket_timeout(conn, deadline) - conn.request(req) do |rsp| - y << [req, rsp] - break if finished - - rsp.read_body do |bytes| - y << bytes.force_encoding(Encoding::BINARY) - break if finished + self.class.calibrate_socket_timeout(conn, deadline) + unless conn.started? + conn.keep_alive_timeout = self.class::KEEP_ALIVE_TIMEOUT + conn.start + end self.class.calibrate_socket_timeout(conn, deadline) + conn.request(req) do |rsp| + y << [req, rsp] + break if finished + + rsp.read_body do |bytes| + y << bytes.force_encoding(Encoding::BINARY) + break if finished + + self.class.calibrate_socket_timeout(conn, deadline) + end + eof = true + end + end + ensure + begin + conn.finish if !eof && conn&.started? + ensure + closing&.call end - eof = true end - ensure - conn.finish if !eof && conn&.started? end rescue Timeout::Error raise Lithic::Errors::APITimeoutError.new(url: url, request: req) @@ -174,8 +182,6 @@ def execute(request) body = Lithic::Internal::Util.fused_enum(enum, external: true) do finished = true loop { enum.next } - ensure - closing&.call end [Integer(response.code), response, body] end diff --git a/lib/lithic/internal/type/union.rb b/lib/lithic/internal/type/union.rb index a154de99..7cf59a53 100644 --- a/lib/lithic/internal/type/union.rb +++ b/lib/lithic/internal/type/union.rb @@ -8,15 +8,27 @@ module Type # @example # # `account_activity_list_response` is a `Lithic::Models::AccountActivityListResponse` # case account_activity_list_response - # when Lithic::Models::AccountActivityListResponse::FinancialTransaction + # when Lithic::Models::AccountActivityListResponse::Internal # puts(account_activity_list_response.token) - # when Lithic::Models::AccountActivityListResponse::BookTransferTransaction + # when Lithic::BookTransferResponse # puts(account_activity_list_response.category) - # when Lithic::Models::AccountActivityListResponse::CardTransaction + # when Lithic::Models::AccountActivityListResponse::Card # # ... # else # puts(account_activity_list_response) # end + # + # @example + # case account_activity_list_response + # in {family: :INTERNAL, token: token, category: category, created: created} + # puts(token) + # in {family: :TRANSFER, token: token, category: category, created: created} + # puts(category) + # in {family: :PAYMENT, token: token, category: category, created: created} + # puts(created) + # else + # puts(account_activity_list_response) + # end module Union include Lithic::Internal::Type::Converter include Lithic::Internal::Util::SorbetRuntimeSupport diff --git a/lib/lithic/models.rb b/lib/lithic/models.rb index 60c0a9bb..8028fa19 100644 --- a/lib/lithic/models.rb +++ b/lib/lithic/models.rb @@ -308,6 +308,8 @@ module Lithic PaymentSimulateReturnParams = Lithic::Models::PaymentSimulateReturnParams + ProvisionResponse = Lithic::Models::ProvisionResponse + Reports = Lithic::Models::Reports RequiredDocument = Lithic::Models::RequiredDocument diff --git a/lib/lithic/models/account_activity_list_response.rb b/lib/lithic/models/account_activity_list_response.rb index 5d41eee0..9e121432 100644 --- a/lib/lithic/models/account_activity_list_response.rb +++ b/lib/lithic/models/account_activity_list_response.rb @@ -2,7 +2,11 @@ module Lithic module Models - # Response containing multiple transaction types + # Response containing multiple transaction types. The `family` field determines + # which transaction type is returned: INTERNAL returns FinancialTransaction, + # TRANSFER returns BookTransferTransaction, CARD returns CardTransaction, PAYMENT + # returns PaymentTransaction, EXTERNAL_PAYMENT returns ExternalPaymentResponse, + # and MANAGEMENT_OPERATION returns ManagementOperationTransaction # # @see Lithic::Resources::AccountActivity#list module AccountActivityListResponse @@ -11,22 +15,22 @@ module AccountActivityListResponse discriminator :family # Financial transaction with inheritance from unified base transaction - variant -> { Lithic::Models::AccountActivityListResponse::FinancialTransaction } + variant :INTERNAL, -> { Lithic::Models::AccountActivityListResponse::Internal } # Book transfer transaction - variant -> { Lithic::Models::AccountActivityListResponse::BookTransferTransaction } + variant :TRANSFER, -> { Lithic::BookTransferResponse } - # Base class for all transaction types in the ledger service - variant -> { Lithic::Models::AccountActivityListResponse::CardTransaction } + # Card transaction with ledger base properties + variant :CARD, -> { Lithic::Models::AccountActivityListResponse::Card } # Payment transaction - variant -> { Lithic::Models::AccountActivityListResponse::PaymentTransaction } + variant :PAYMENT, -> { Lithic::Payment } - variant -> { Lithic::ExternalPayment } + variant :EXTERNAL_PAYMENT, -> { Lithic::ExternalPayment } - variant -> { Lithic::ManagementOperationTransaction } + variant :MANAGEMENT_OPERATION, -> { Lithic::ManagementOperationTransaction } - class FinancialTransaction < Lithic::Internal::Type::BaseModel + class Internal < Lithic::Internal::Type::BaseModel # @!attribute token # Unique identifier for the transaction # @@ -36,9 +40,8 @@ class FinancialTransaction < Lithic::Internal::Type::BaseModel # @!attribute category # Transaction category # - # @return [Symbol, Lithic::Models::AccountActivityListResponse::FinancialTransaction::Category] - required :category, - enum: -> { Lithic::Models::AccountActivityListResponse::FinancialTransaction::Category } + # @return [Symbol, Lithic::Models::AccountActivityListResponse::Internal::Category] + required :category, enum: -> { Lithic::Models::AccountActivityListResponse::Internal::Category } # @!attribute created # ISO 8601 timestamp of when the transaction was created @@ -61,14 +64,15 @@ class FinancialTransaction < Lithic::Internal::Type::BaseModel # @!attribute events # List of transaction events # - # @return [Array] + # @return [Array] required :events, - -> { Lithic::Internal::Type::ArrayOf[Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event] } + -> { Lithic::Internal::Type::ArrayOf[Lithic::Models::AccountActivityListResponse::Internal::Event] } # @!attribute family + # INTERNAL - Financial Transaction # - # @return [Symbol, Lithic::Models::AccountActivityListResponse::FinancialTransaction::Family] - required :family, enum: -> { Lithic::Models::AccountActivityListResponse::FinancialTransaction::Family } + # @return [Symbol, :INTERNAL] + required :family, const: :INTERNAL # @!attribute financial_account_token # Financial account token associated with the transaction @@ -85,8 +89,8 @@ class FinancialTransaction < Lithic::Internal::Type::BaseModel # @!attribute result # Transaction result # - # @return [Symbol, Lithic::Models::AccountActivityListResponse::FinancialTransaction::Result] - required :result, enum: -> { Lithic::Models::AccountActivityListResponse::FinancialTransaction::Result } + # @return [Symbol, Lithic::Models::AccountActivityListResponse::Internal::Result] + required :result, enum: -> { Lithic::Models::AccountActivityListResponse::Internal::Result } # @!attribute settled_amount # Settled amount in cents @@ -97,8 +101,8 @@ class FinancialTransaction < Lithic::Internal::Type::BaseModel # @!attribute status # The status of the transaction # - # @return [Symbol, Lithic::Models::AccountActivityListResponse::FinancialTransaction::Status] - required :status, enum: -> { Lithic::Models::AccountActivityListResponse::FinancialTransaction::Status } + # @return [Symbol, Lithic::Models::AccountActivityListResponse::Internal::Status] + required :status, enum: -> { Lithic::Models::AccountActivityListResponse::Internal::Status } # @!attribute updated # ISO 8601 timestamp of when the transaction was last updated @@ -106,12 +110,12 @@ class FinancialTransaction < Lithic::Internal::Type::BaseModel # @return [Time] required :updated, Time - # @!method initialize(token:, category:, created:, currency:, descriptor:, events:, family:, financial_account_token:, pending_amount:, result:, settled_amount:, status:, updated:) + # @!method initialize(token:, category:, created:, currency:, descriptor:, events:, financial_account_token:, pending_amount:, result:, settled_amount:, status:, updated:, family: :INTERNAL) # Financial transaction with inheritance from unified base transaction # # @param token [String] Unique identifier for the transaction # - # @param category [Symbol, Lithic::Models::AccountActivityListResponse::FinancialTransaction::Category] Transaction category + # @param category [Symbol, Lithic::Models::AccountActivityListResponse::Internal::Category] Transaction category # # @param created [Time] ISO 8601 timestamp of when the transaction was created # @@ -119,25 +123,25 @@ class FinancialTransaction < Lithic::Internal::Type::BaseModel # # @param descriptor [String] Transaction descriptor # - # @param events [Array] List of transaction events - # - # @param family [Symbol, Lithic::Models::AccountActivityListResponse::FinancialTransaction::Family] + # @param events [Array] List of transaction events # # @param financial_account_token [String] Financial account token associated with the transaction # # @param pending_amount [Integer] Pending amount in cents # - # @param result [Symbol, Lithic::Models::AccountActivityListResponse::FinancialTransaction::Result] Transaction result + # @param result [Symbol, Lithic::Models::AccountActivityListResponse::Internal::Result] Transaction result # # @param settled_amount [Integer] Settled amount in cents # - # @param status [Symbol, Lithic::Models::AccountActivityListResponse::FinancialTransaction::Status] The status of the transaction + # @param status [Symbol, Lithic::Models::AccountActivityListResponse::Internal::Status] The status of the transaction # # @param updated [Time] ISO 8601 timestamp of when the transaction was last updated + # + # @param family [Symbol, :INTERNAL] INTERNAL - Financial Transaction # Transaction category # - # @see Lithic::Models::AccountActivityListResponse::FinancialTransaction#category + # @see Lithic::Models::AccountActivityListResponse::Internal#category module Category extend Lithic::Internal::Type::Enum @@ -188,20 +192,17 @@ class Event < Lithic::Internal::Type::BaseModel # APPROVED financial events were successful while DECLINED financial events were # declined by user, Lithic, or the network. # - # @return [Symbol, Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Result, nil] - optional :result, - enum: -> { Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Result } + # @return [Symbol, Lithic::Models::AccountActivityListResponse::Internal::Event::Result, nil] + optional :result, enum: -> { Lithic::Models::AccountActivityListResponse::Internal::Event::Result } # @!attribute type # - # @return [Symbol, Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type, nil] - optional :type, - enum: -> { Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type } + # @return [Symbol, Lithic::Models::AccountActivityListResponse::Internal::Event::Type, nil] + optional :type, enum: -> { Lithic::Models::AccountActivityListResponse::Internal::Event::Type } # @!method initialize(token: nil, amount: nil, created: nil, result: nil, type: nil) # Some parameter documentations has been truncated, see - # {Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event} for - # more details. + # {Lithic::Models::AccountActivityListResponse::Internal::Event} for more details. # # Financial Event # @@ -211,14 +212,14 @@ class Event < Lithic::Internal::Type::BaseModel # # @param created [Time] Date and time when the financial event occurred. UTC time zone. # - # @param result [Symbol, Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Result] APPROVED financial events were successful while DECLINED financial events were d + # @param result [Symbol, Lithic::Models::AccountActivityListResponse::Internal::Event::Result] APPROVED financial events were successful while DECLINED financial events were d # - # @param type [Symbol, Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type] + # @param type [Symbol, Lithic::Models::AccountActivityListResponse::Internal::Event::Type] # APPROVED financial events were successful while DECLINED financial events were # declined by user, Lithic, or the network. # - # @see Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event#result + # @see Lithic::Models::AccountActivityListResponse::Internal::Event#result module Result extend Lithic::Internal::Type::Enum @@ -229,7 +230,7 @@ module Result # @return [Array] end - # @see Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event#type + # @see Lithic::Models::AccountActivityListResponse::Internal::Event#type module Type extend Lithic::Internal::Type::Enum @@ -309,368 +310,9 @@ module Type end end - # @see Lithic::Models::AccountActivityListResponse::FinancialTransaction#family - module Family - extend Lithic::Internal::Type::Enum - - CARD = :CARD - PAYMENT = :PAYMENT - TRANSFER = :TRANSFER - INTERNAL = :INTERNAL - EXTERNAL_PAYMENT = :EXTERNAL_PAYMENT - MANAGEMENT_OPERATION = :MANAGEMENT_OPERATION - - # @!method self.values - # @return [Array] - end - # Transaction result # - # @see Lithic::Models::AccountActivityListResponse::FinancialTransaction#result - module Result - extend Lithic::Internal::Type::Enum - - APPROVED = :APPROVED - DECLINED = :DECLINED - - # @!method self.values - # @return [Array] - end - - # The status of the transaction - # - # @see Lithic::Models::AccountActivityListResponse::FinancialTransaction#status - module Status - extend Lithic::Internal::Type::Enum - - PENDING = :PENDING - SETTLED = :SETTLED - DECLINED = :DECLINED - REVERSED = :REVERSED - CANCELED = :CANCELED - - # @!method self.values - # @return [Array] - end - end - - class BookTransferTransaction < Lithic::Internal::Type::BaseModel - # @!attribute token - # Unique identifier for the transaction - # - # @return [String] - required :token, String - - # @!attribute category - # - # @return [Symbol, Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Category] - required :category, - enum: -> { Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Category } - - # @!attribute created - # ISO 8601 timestamp of when the transaction was created - # - # @return [Time] - required :created, Time - - # @!attribute currency - # Currency of the transaction in ISO 4217 format - # - # @return [String] - required :currency, String - - # @!attribute events - # List of events associated with this book transfer - # - # @return [Array] - required :events, - -> { Lithic::Internal::Type::ArrayOf[Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event] } - - # @!attribute family - # - # @return [Symbol, Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Family] - required :family, - enum: -> { Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Family } - - # @!attribute from_financial_account_token - # Source account token - # - # @return [String] - required :from_financial_account_token, String - - # @!attribute pending_amount - # The pending amount of the transaction in cents - # - # @return [Integer] - required :pending_amount, Integer - - # @!attribute result - # - # @return [Symbol, Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Result] - required :result, - enum: -> { Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Result } - - # @!attribute settled_amount - # The settled amount of the transaction in cents - # - # @return [Integer] - required :settled_amount, Integer - - # @!attribute status - # The status of the transaction - # - # @return [Symbol, Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Status] - required :status, - enum: -> { Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Status } - - # @!attribute to_financial_account_token - # Destination account token - # - # @return [String] - required :to_financial_account_token, String - - # @!attribute updated - # ISO 8601 timestamp of when the transaction was last updated - # - # @return [Time] - required :updated, Time - - # @!attribute external_id - # External identifier for the transaction - # - # @return [String, nil] - optional :external_id, String - - # @!attribute external_resource - # External resource associated with the management operation - # - # @return [Lithic::Models::ExternalResource, nil] - optional :external_resource, -> { Lithic::ExternalResource }, nil?: true - - # @!attribute transaction_series - # - # @return [Lithic::Models::AccountActivityListResponse::BookTransferTransaction::TransactionSeries, nil] - optional :transaction_series, - -> { Lithic::Models::AccountActivityListResponse::BookTransferTransaction::TransactionSeries }, - nil?: true - - # @!method initialize(token:, category:, created:, currency:, events:, family:, from_financial_account_token:, pending_amount:, result:, settled_amount:, status:, to_financial_account_token:, updated:, external_id: nil, external_resource: nil, transaction_series: nil) - # Book transfer transaction - # - # @param token [String] Unique identifier for the transaction - # - # @param category [Symbol, Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Category] - # - # @param created [Time] ISO 8601 timestamp of when the transaction was created - # - # @param currency [String] Currency of the transaction in ISO 4217 format - # - # @param events [Array] List of events associated with this book transfer - # - # @param family [Symbol, Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Family] - # - # @param from_financial_account_token [String] Source account token - # - # @param pending_amount [Integer] The pending amount of the transaction in cents - # - # @param result [Symbol, Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Result] - # - # @param settled_amount [Integer] The settled amount of the transaction in cents - # - # @param status [Symbol, Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Status] The status of the transaction - # - # @param to_financial_account_token [String] Destination account token - # - # @param updated [Time] ISO 8601 timestamp of when the transaction was last updated - # - # @param external_id [String] External identifier for the transaction - # - # @param external_resource [Lithic::Models::ExternalResource, nil] External resource associated with the management operation - # - # @param transaction_series [Lithic::Models::AccountActivityListResponse::BookTransferTransaction::TransactionSeries, nil] - - # @see Lithic::Models::AccountActivityListResponse::BookTransferTransaction#category - module Category - extend Lithic::Internal::Type::Enum - - ADJUSTMENT = :ADJUSTMENT - BALANCE_OR_FUNDING = :BALANCE_OR_FUNDING - DERECOGNITION = :DERECOGNITION - DISPUTE = :DISPUTE - FEE = :FEE - INTERNAL = :INTERNAL - REWARD = :REWARD - PROGRAM_FUNDING = :PROGRAM_FUNDING - TRANSFER = :TRANSFER - - # @!method self.values - # @return [Array] - end - - class Event < Lithic::Internal::Type::BaseModel - # @!attribute token - # Globally unique identifier. - # - # @return [String] - required :token, String - - # @!attribute amount - # Amount of the financial event that has been settled in the currency's smallest - # unit (e.g., cents). - # - # @return [Integer] - required :amount, Integer - - # @!attribute created - # Date and time when the financial event occurred. UTC time zone. - # - # @return [Time] - required :created, Time - - # @!attribute detailed_results - # - # @return [Symbol, Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::DetailedResults] - required :detailed_results, - enum: -> { Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::DetailedResults } - - # @!attribute memo - # Memo for the transfer. - # - # @return [String] - required :memo, String - - # @!attribute result - # APPROVED financial events were successful while DECLINED financial events were - # declined by user, Lithic, or the network. - # - # @return [Symbol, Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Result] - required :result, - enum: -> { Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Result } - - # @!attribute subtype - # The program specific subtype code for the specified category/type. - # - # @return [String] - required :subtype, String - - # @!attribute type - # Type of the book transfer - # - # @return [Symbol, Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type] - required :type, - enum: -> { Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type } - - # @!method initialize(token:, amount:, created:, detailed_results:, memo:, result:, subtype:, type:) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event} - # for more details. - # - # Book transfer Event - # - # @param token [String] Globally unique identifier. - # - # @param amount [Integer] Amount of the financial event that has been settled in the currency's smallest u - # - # @param created [Time] Date and time when the financial event occurred. UTC time zone. - # - # @param detailed_results [Symbol, Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::DetailedResults] - # - # @param memo [String] Memo for the transfer. - # - # @param result [Symbol, Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Result] APPROVED financial events were successful while DECLINED financial events were d - # - # @param subtype [String] The program specific subtype code for the specified category/type. - # - # @param type [Symbol, Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type] Type of the book transfer - - # @see Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event#detailed_results - module DetailedResults - extend Lithic::Internal::Type::Enum - - APPROVED = :APPROVED - FUNDS_INSUFFICIENT = :FUNDS_INSUFFICIENT - - # @!method self.values - # @return [Array] - end - - # APPROVED financial events were successful while DECLINED financial events were - # declined by user, Lithic, or the network. - # - # @see Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event#result - module Result - extend Lithic::Internal::Type::Enum - - APPROVED = :APPROVED - DECLINED = :DECLINED - - # @!method self.values - # @return [Array] - end - - # Type of the book transfer - # - # @see Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event#type - module Type - extend Lithic::Internal::Type::Enum - - ATM_BALANCE_INQUIRY = :ATM_BALANCE_INQUIRY - ATM_WITHDRAWAL = :ATM_WITHDRAWAL - ATM_DECLINE = :ATM_DECLINE - INTERNATIONAL_ATM_WITHDRAWAL = :INTERNATIONAL_ATM_WITHDRAWAL - INACTIVITY = :INACTIVITY - STATEMENT = :STATEMENT - MONTHLY = :MONTHLY - QUARTERLY = :QUARTERLY - ANNUAL = :ANNUAL - CUSTOMER_SERVICE = :CUSTOMER_SERVICE - ACCOUNT_MAINTENANCE = :ACCOUNT_MAINTENANCE - ACCOUNT_ACTIVATION = :ACCOUNT_ACTIVATION - ACCOUNT_CLOSURE = :ACCOUNT_CLOSURE - CARD_REPLACEMENT = :CARD_REPLACEMENT - CARD_DELIVERY = :CARD_DELIVERY - CARD_CREATE = :CARD_CREATE - CURRENCY_CONVERSION = :CURRENCY_CONVERSION - INTEREST = :INTEREST - LATE_PAYMENT = :LATE_PAYMENT - BILL_PAYMENT = :BILL_PAYMENT - CASH_BACK = :CASH_BACK - ACCOUNT_TO_ACCOUNT = :ACCOUNT_TO_ACCOUNT - CARD_TO_CARD = :CARD_TO_CARD - DISBURSE = :DISBURSE - BILLING_ERROR = :BILLING_ERROR - LOSS_WRITE_OFF = :LOSS_WRITE_OFF - EXPIRED_CARD = :EXPIRED_CARD - EARLY_DERECOGNITION = :EARLY_DERECOGNITION - ESCHEATMENT = :ESCHEATMENT - INACTIVITY_FEE_DOWN = :INACTIVITY_FEE_DOWN - PROVISIONAL_CREDIT = :PROVISIONAL_CREDIT - DISPUTE_WON = :DISPUTE_WON - SERVICE = :SERVICE - TRANSFER = :TRANSFER - COLLECTION = :COLLECTION - - # @!method self.values - # @return [Array] - end - end - - # @see Lithic::Models::AccountActivityListResponse::BookTransferTransaction#family - module Family - extend Lithic::Internal::Type::Enum - - CARD = :CARD - PAYMENT = :PAYMENT - TRANSFER = :TRANSFER - INTERNAL = :INTERNAL - EXTERNAL_PAYMENT = :EXTERNAL_PAYMENT - MANAGEMENT_OPERATION = :MANAGEMENT_OPERATION - - # @!method self.values - # @return [Array] - end - - # @see Lithic::Models::AccountActivityListResponse::BookTransferTransaction#result + # @see Lithic::Models::AccountActivityListResponse::Internal#result module Result extend Lithic::Internal::Type::Enum @@ -683,7 +325,7 @@ module Result # The status of the transaction # - # @see Lithic::Models::AccountActivityListResponse::BookTransferTransaction#status + # @see Lithic::Models::AccountActivityListResponse::Internal#status module Status extend Lithic::Internal::Type::Enum @@ -696,751 +338,15 @@ module Status # @!method self.values # @return [Array] end - - # @see Lithic::Models::AccountActivityListResponse::BookTransferTransaction#transaction_series - class TransactionSeries < Lithic::Internal::Type::BaseModel - # @!attribute related_transaction_event_token - # - # @return [String, nil] - required :related_transaction_event_token, String, nil?: true - - # @!attribute related_transaction_token - # - # @return [String, nil] - required :related_transaction_token, String, nil?: true - - # @!attribute type - # - # @return [String] - required :type, String - - # @!method initialize(related_transaction_event_token:, related_transaction_token:, type:) - # @param related_transaction_event_token [String, nil] - # @param related_transaction_token [String, nil] - # @param type [String] - end end - class CardTransaction < Lithic::Models::Transaction - # @!attribute token - # Unique identifier for the transaction - # - # @return [String] - required :token, String - - # @!attribute created - # ISO 8601 timestamp of when the transaction was created - # - # @return [Time] - required :created, Time - - # @!attribute family - # - # @return [Symbol, Lithic::Models::AccountActivityListResponse::CardTransaction::Family] - required :family, enum: -> { Lithic::Models::AccountActivityListResponse::CardTransaction::Family } - - # @!attribute status - # The status of the transaction - # - # @return [Symbol, Lithic::Models::AccountActivityListResponse::CardTransaction::Status] - required :status, enum: -> { Lithic::Models::AccountActivityListResponse::CardTransaction::Status } - - # @!attribute updated - # ISO 8601 timestamp of when the transaction was last updated - # - # @return [Time] - required :updated, Time - - # @!method initialize(token:, created:, family:, status:, updated:) - # Base class for all transaction types in the ledger service - # - # @param token [String] Unique identifier for the transaction - # - # @param created [Time] ISO 8601 timestamp of when the transaction was created - # - # @param family [Symbol, Lithic::Models::AccountActivityListResponse::CardTransaction::Family] - # - # @param status [Symbol, Lithic::Models::AccountActivityListResponse::CardTransaction::Status] The status of the transaction - # - # @param updated [Time] ISO 8601 timestamp of when the transaction was last updated - - module Family - extend Lithic::Internal::Type::Enum - - CARD = :CARD - PAYMENT = :PAYMENT - TRANSFER = :TRANSFER - INTERNAL = :INTERNAL - EXTERNAL_PAYMENT = :EXTERNAL_PAYMENT - MANAGEMENT_OPERATION = :MANAGEMENT_OPERATION - - # @!method self.values - # @return [Array] - end - - # The status of the transaction - module Status - extend Lithic::Internal::Type::Enum - - PENDING = :PENDING - SETTLED = :SETTLED - DECLINED = :DECLINED - REVERSED = :REVERSED - CANCELED = :CANCELED - - # @!method self.values - # @return [Array] - end - end - - class PaymentTransaction < Lithic::Internal::Type::BaseModel - # @!attribute token - # Unique identifier for the transaction - # - # @return [String] - required :token, String - - # @!attribute category - # Transaction category - # - # @return [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Category] - required :category, enum: -> { Lithic::Models::AccountActivityListResponse::PaymentTransaction::Category } - - # @!attribute created - # ISO 8601 timestamp of when the transaction was created - # - # @return [Time] - required :created, Time - - # @!attribute descriptor - # Transaction descriptor - # - # @return [String] - required :descriptor, String - - # @!attribute direction - # Transfer direction - # - # @return [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Direction] - required :direction, - enum: -> { Lithic::Models::AccountActivityListResponse::PaymentTransaction::Direction } - - # @!attribute events - # List of transaction events - # - # @return [Array] - required :events, - -> { Lithic::Internal::Type::ArrayOf[Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event] } - - # @!attribute family - # - # @return [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Family] - required :family, enum: -> { Lithic::Models::AccountActivityListResponse::PaymentTransaction::Family } - - # @!attribute financial_account_token - # Financial account token - # - # @return [String] - required :financial_account_token, String - - # @!attribute method_ - # Transfer method - # - # @return [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Method] - required :method_, - enum: -> { Lithic::Models::AccountActivityListResponse::PaymentTransaction::Method }, - api_name: :method - - # @!attribute method_attributes - # Method-specific attributes - # - # @return [Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes, Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes] - required :method_attributes, - union: -> { Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes } - - # @!attribute pending_amount - # Pending amount in cents - # - # @return [Integer] - required :pending_amount, Integer - - # @!attribute related_account_tokens - # Related account tokens for the transaction - # - # @return [Lithic::Models::AccountActivityListResponse::PaymentTransaction::RelatedAccountTokens] - required :related_account_tokens, - -> { Lithic::Models::AccountActivityListResponse::PaymentTransaction::RelatedAccountTokens } - - # @!attribute result - # Transaction result - # - # @return [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Result] - required :result, enum: -> { Lithic::Models::AccountActivityListResponse::PaymentTransaction::Result } - - # @!attribute settled_amount - # Settled amount in cents - # - # @return [Integer] - required :settled_amount, Integer - - # @!attribute source - # Transaction source - # - # @return [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Source] - required :source, enum: -> { Lithic::Models::AccountActivityListResponse::PaymentTransaction::Source } - - # @!attribute status - # The status of the transaction - # - # @return [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Status] - required :status, enum: -> { Lithic::Models::AccountActivityListResponse::PaymentTransaction::Status } - - # @!attribute updated - # ISO 8601 timestamp of when the transaction was last updated - # - # @return [Time] - required :updated, Time - - # @!attribute currency - # Currency of the transaction in ISO 4217 format - # - # @return [String, nil] - optional :currency, String - - # @!attribute expected_release_date - # Expected release date for the transaction - # - # @return [Date, nil] - optional :expected_release_date, Date, nil?: true - - # @!attribute external_bank_account_token - # External bank account token - # - # @return [String, nil] - optional :external_bank_account_token, String, nil?: true - - # @!attribute type - # - # @return [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Type, nil] - optional :type, enum: -> { Lithic::Models::AccountActivityListResponse::PaymentTransaction::Type } - - # @!attribute user_defined_id - # User-defined identifier - # - # @return [String, nil] - optional :user_defined_id, String, nil?: true - - # @!method initialize(token:, category:, created:, descriptor:, direction:, events:, family:, financial_account_token:, method_:, method_attributes:, pending_amount:, related_account_tokens:, result:, settled_amount:, source:, status:, updated:, currency: nil, expected_release_date: nil, external_bank_account_token: nil, type: nil, user_defined_id: nil) - # Payment transaction - # - # @param token [String] Unique identifier for the transaction - # - # @param category [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Category] Transaction category - # - # @param created [Time] ISO 8601 timestamp of when the transaction was created - # - # @param descriptor [String] Transaction descriptor - # - # @param direction [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Direction] Transfer direction - # - # @param events [Array] List of transaction events - # - # @param family [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Family] - # - # @param financial_account_token [String] Financial account token - # - # @param method_ [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Method] Transfer method - # - # @param method_attributes [Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes, Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes] Method-specific attributes - # - # @param pending_amount [Integer] Pending amount in cents - # - # @param related_account_tokens [Lithic::Models::AccountActivityListResponse::PaymentTransaction::RelatedAccountTokens] Related account tokens for the transaction - # - # @param result [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Result] Transaction result - # - # @param settled_amount [Integer] Settled amount in cents - # - # @param source [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Source] Transaction source - # - # @param status [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Status] The status of the transaction - # - # @param updated [Time] ISO 8601 timestamp of when the transaction was last updated - # - # @param currency [String] Currency of the transaction in ISO 4217 format - # - # @param expected_release_date [Date, nil] Expected release date for the transaction - # - # @param external_bank_account_token [String, nil] External bank account token - # - # @param type [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Type] - # - # @param user_defined_id [String, nil] User-defined identifier - - # Transaction category - # - # @see Lithic::Models::AccountActivityListResponse::PaymentTransaction#category - module Category - extend Lithic::Internal::Type::Enum - - ACH = :ACH - BALANCE_OR_FUNDING = :BALANCE_OR_FUNDING - FEE = :FEE - REWARD = :REWARD - ADJUSTMENT = :ADJUSTMENT - DERECOGNITION = :DERECOGNITION - DISPUTE = :DISPUTE - CARD = :CARD - EXTERNAL_ACH = :EXTERNAL_ACH - EXTERNAL_CHECK = :EXTERNAL_CHECK - EXTERNAL_TRANSFER = :EXTERNAL_TRANSFER - EXTERNAL_WIRE = :EXTERNAL_WIRE - MANAGEMENT_ADJUSTMENT = :MANAGEMENT_ADJUSTMENT - MANAGEMENT_DISPUTE = :MANAGEMENT_DISPUTE - MANAGEMENT_FEE = :MANAGEMENT_FEE - MANAGEMENT_REWARD = :MANAGEMENT_REWARD - MANAGEMENT_DISBURSEMENT = :MANAGEMENT_DISBURSEMENT - PROGRAM_FUNDING = :PROGRAM_FUNDING - - # @!method self.values - # @return [Array] - end - - # Transfer direction - # - # @see Lithic::Models::AccountActivityListResponse::PaymentTransaction#direction - module Direction - extend Lithic::Internal::Type::Enum - - CREDIT = :CREDIT - DEBIT = :DEBIT - - # @!method self.values - # @return [Array] - end - - class Event < Lithic::Internal::Type::BaseModel - # @!attribute token - # Globally unique identifier. - # - # @return [String] - required :token, String - - # @!attribute amount - # Amount of the financial event that has been settled in the currency's smallest - # unit (e.g., cents). - # - # @return [Integer] - required :amount, Integer - - # @!attribute created - # Date and time when the financial event occurred. UTC time zone. - # - # @return [Time] - required :created, Time - - # @!attribute result - # APPROVED financial events were successful while DECLINED financial events were - # declined by user, Lithic, or the network. - # - # @return [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::Result] - required :result, - enum: -> { Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::Result } - - # @!attribute type - # Event types: - # - # - `ACH_ORIGINATION_INITIATED` - ACH origination received and pending - # approval/release from an ACH hold. - # - `ACH_ORIGINATION_REVIEWED` - ACH origination has completed the review process. - # - `ACH_ORIGINATION_CANCELLED` - ACH origination has been cancelled. - # - `ACH_ORIGINATION_PROCESSED` - ACH origination has been processed and sent to - # the Federal Reserve. - # - `ACH_ORIGINATION_SETTLED` - ACH origination has settled. - # - `ACH_ORIGINATION_RELEASED` - ACH origination released from pending to - # available balance. - # - `ACH_RETURN_PROCESSED` - ACH origination returned by the Receiving Depository - # Financial Institution. - # - `ACH_RECEIPT_PROCESSED` - ACH receipt pending release from an ACH holder. - # - `ACH_RETURN_INITIATED` - ACH initiated return for a ACH receipt. - # - `ACH_RECEIPT_SETTLED` - ACH receipt funds have settled. - # - `ACH_RECEIPT_RELEASED` - ACH receipt released from pending to available - # balance. - # - `ACH_RETURN_SETTLED` - ACH receipt return settled by the Receiving Depository - # Financial Institution. - # - # @return [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::Type] - required :type, enum: -> { Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::Type } - - # @!attribute detailed_results - # More detailed reasons for the event - # - # @return [Array, nil] - optional :detailed_results, - -> { Lithic::Internal::Type::ArrayOf[enum: Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::DetailedResult] } - - # @!method initialize(token:, amount:, created:, result:, type:, detailed_results: nil) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event} for - # more details. - # - # Payment Event - # - # @param token [String] Globally unique identifier. - # - # @param amount [Integer] Amount of the financial event that has been settled in the currency's smallest u - # - # @param created [Time] Date and time when the financial event occurred. UTC time zone. - # - # @param result [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::Result] APPROVED financial events were successful while DECLINED financial events were d - # - # @param type [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::Type] Event types: - # - # @param detailed_results [Array] More detailed reasons for the event - - # APPROVED financial events were successful while DECLINED financial events were - # declined by user, Lithic, or the network. - # - # @see Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event#result - module Result - extend Lithic::Internal::Type::Enum - - APPROVED = :APPROVED - DECLINED = :DECLINED - - # @!method self.values - # @return [Array] - end - - # Event types: - # - # - `ACH_ORIGINATION_INITIATED` - ACH origination received and pending - # approval/release from an ACH hold. - # - `ACH_ORIGINATION_REVIEWED` - ACH origination has completed the review process. - # - `ACH_ORIGINATION_CANCELLED` - ACH origination has been cancelled. - # - `ACH_ORIGINATION_PROCESSED` - ACH origination has been processed and sent to - # the Federal Reserve. - # - `ACH_ORIGINATION_SETTLED` - ACH origination has settled. - # - `ACH_ORIGINATION_RELEASED` - ACH origination released from pending to - # available balance. - # - `ACH_RETURN_PROCESSED` - ACH origination returned by the Receiving Depository - # Financial Institution. - # - `ACH_RECEIPT_PROCESSED` - ACH receipt pending release from an ACH holder. - # - `ACH_RETURN_INITIATED` - ACH initiated return for a ACH receipt. - # - `ACH_RECEIPT_SETTLED` - ACH receipt funds have settled. - # - `ACH_RECEIPT_RELEASED` - ACH receipt released from pending to available - # balance. - # - `ACH_RETURN_SETTLED` - ACH receipt return settled by the Receiving Depository - # Financial Institution. - # - # @see Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event#type - module Type - extend Lithic::Internal::Type::Enum - - ACH_ORIGINATION_CANCELLED = :ACH_ORIGINATION_CANCELLED - ACH_ORIGINATION_INITIATED = :ACH_ORIGINATION_INITIATED - ACH_ORIGINATION_PROCESSED = :ACH_ORIGINATION_PROCESSED - ACH_ORIGINATION_SETTLED = :ACH_ORIGINATION_SETTLED - ACH_ORIGINATION_RELEASED = :ACH_ORIGINATION_RELEASED - ACH_ORIGINATION_REVIEWED = :ACH_ORIGINATION_REVIEWED - ACH_RECEIPT_PROCESSED = :ACH_RECEIPT_PROCESSED - ACH_RECEIPT_SETTLED = :ACH_RECEIPT_SETTLED - ACH_RETURN_INITIATED = :ACH_RETURN_INITIATED - ACH_RETURN_PROCESSED = :ACH_RETURN_PROCESSED - ACH_RETURN_SETTLED = :ACH_RETURN_SETTLED - - # @!method self.values - # @return [Array] - end - - module DetailedResult - extend Lithic::Internal::Type::Enum - - APPROVED = :APPROVED - FUNDS_INSUFFICIENT = :FUNDS_INSUFFICIENT - ACCOUNT_INVALID = :ACCOUNT_INVALID - PROGRAM_TRANSACTION_LIMIT_EXCEEDED = :PROGRAM_TRANSACTION_LIMIT_EXCEEDED - PROGRAM_DAILY_LIMIT_EXCEEDED = :PROGRAM_DAILY_LIMIT_EXCEEDED - PROGRAM_MONTHLY_LIMIT_EXCEEDED = :PROGRAM_MONTHLY_LIMIT_EXCEEDED - - # @!method self.values - # @return [Array] - end - end - - # @see Lithic::Models::AccountActivityListResponse::PaymentTransaction#family - module Family - extend Lithic::Internal::Type::Enum - - CARD = :CARD - PAYMENT = :PAYMENT - TRANSFER = :TRANSFER - INTERNAL = :INTERNAL - EXTERNAL_PAYMENT = :EXTERNAL_PAYMENT - MANAGEMENT_OPERATION = :MANAGEMENT_OPERATION - - # @!method self.values - # @return [Array] - end - - # Transfer method - # - # @see Lithic::Models::AccountActivityListResponse::PaymentTransaction#method_ - module Method - extend Lithic::Internal::Type::Enum - - ACH_NEXT_DAY = :ACH_NEXT_DAY - ACH_SAME_DAY = :ACH_SAME_DAY - WIRE = :WIRE - - # @!method self.values - # @return [Array] - end - - # Method-specific attributes - # - # @see Lithic::Models::AccountActivityListResponse::PaymentTransaction#method_attributes - module MethodAttributes - extend Lithic::Internal::Type::Union - - variant -> { Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes } - - variant -> { Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes } - - class ACHMethodAttributes < Lithic::Internal::Type::BaseModel - # @!attribute sec_code - # SEC code for ACH transaction - # - # @return [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::SecCode] - required :sec_code, - enum: -> { Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::SecCode } - - # @!attribute addenda - # Addenda information - # - # @return [String, nil] - optional :addenda, String, nil?: true - - # @!attribute company_id - # Company ID for the ACH transaction - # - # @return [String, nil] - optional :company_id, String, nil?: true - - # @!attribute receipt_routing_number - # Receipt routing number - # - # @return [String, nil] - optional :receipt_routing_number, String, nil?: true - - # @!attribute retries - # Number of retries attempted - # - # @return [Integer, nil] - optional :retries, Integer, nil?: true - - # @!attribute return_reason_code - # Return reason code if the transaction was returned - # - # @return [String, nil] - optional :return_reason_code, String, nil?: true - - # @!attribute trace_numbers - # Trace numbers for the ACH transaction - # - # @return [Array, nil] - optional :trace_numbers, Lithic::Internal::Type::ArrayOf[String] - - # @!method initialize(sec_code:, addenda: nil, company_id: nil, receipt_routing_number: nil, retries: nil, return_reason_code: nil, trace_numbers: nil) - # @param sec_code [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::SecCode] SEC code for ACH transaction - # - # @param addenda [String, nil] Addenda information - # - # @param company_id [String, nil] Company ID for the ACH transaction - # - # @param receipt_routing_number [String, nil] Receipt routing number - # - # @param retries [Integer, nil] Number of retries attempted - # - # @param return_reason_code [String, nil] Return reason code if the transaction was returned - # - # @param trace_numbers [Array] Trace numbers for the ACH transaction - - # SEC code for ACH transaction - # - # @see Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes#sec_code - module SecCode - extend Lithic::Internal::Type::Enum - - CCD = :CCD - PPD = :PPD - WEB = :WEB - TEL = :TEL - CIE = :CIE - CTX = :CTX - - # @!method self.values - # @return [Array] - end - end - - class WireMethodAttributes < Lithic::Internal::Type::BaseModel - # @!attribute wire_network - # Type of wire transfer - # - # @return [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes::WireNetwork] - required :wire_network, - enum: -> { Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes::WireNetwork } - - # @!attribute creditor - # - # @return [Lithic::Models::WirePartyDetails, nil] - optional :creditor, -> { Lithic::WirePartyDetails } - - # @!attribute debtor - # - # @return [Lithic::Models::WirePartyDetails, nil] - optional :debtor, -> { Lithic::WirePartyDetails } - - # @!attribute message_id - # Point to point reference identifier, as assigned by the instructing party, used - # for tracking the message through the Fedwire system - # - # @return [String, nil] - optional :message_id, String, nil?: true - - # @!attribute remittance_information - # Payment details or invoice reference - # - # @return [String, nil] - optional :remittance_information, String, nil?: true - - # @!attribute wire_message_type - # Type of wire message - # - # @return [String, nil] - optional :wire_message_type, String - - # @!method initialize(wire_network:, creditor: nil, debtor: nil, message_id: nil, remittance_information: nil, wire_message_type: nil) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes} - # for more details. - # - # @param wire_network [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes::WireNetwork] Type of wire transfer - # - # @param creditor [Lithic::Models::WirePartyDetails] - # - # @param debtor [Lithic::Models::WirePartyDetails] - # - # @param message_id [String, nil] Point to point reference identifier, as assigned by the instructing party, used - # - # @param remittance_information [String, nil] Payment details or invoice reference - # - # @param wire_message_type [String] Type of wire message - - # Type of wire transfer - # - # @see Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes#wire_network - module WireNetwork - extend Lithic::Internal::Type::Enum - - FEDWIRE = :FEDWIRE - SWIFT = :SWIFT - - # @!method self.values - # @return [Array] - end - end - - # @!method self.variants - # @return [Array(Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes, Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes)] - end - - # @see Lithic::Models::AccountActivityListResponse::PaymentTransaction#related_account_tokens - class RelatedAccountTokens < Lithic::Internal::Type::BaseModel - # @!attribute account_token - # Globally unique identifier for the account - # - # @return [String, nil] - required :account_token, String, nil?: true - - # @!attribute business_account_token - # Globally unique identifier for the business account - # - # @return [String, nil] - required :business_account_token, String, nil?: true - - # @!method initialize(account_token:, business_account_token:) - # Related account tokens for the transaction - # - # @param account_token [String, nil] Globally unique identifier for the account - # - # @param business_account_token [String, nil] Globally unique identifier for the business account - end - - # Transaction result - # - # @see Lithic::Models::AccountActivityListResponse::PaymentTransaction#result - module Result - extend Lithic::Internal::Type::Enum - - APPROVED = :APPROVED - DECLINED = :DECLINED - - # @!method self.values - # @return [Array] - end - - # Transaction source - # - # @see Lithic::Models::AccountActivityListResponse::PaymentTransaction#source - module Source - extend Lithic::Internal::Type::Enum - - LITHIC = :LITHIC - EXTERNAL = :EXTERNAL - CUSTOMER = :CUSTOMER - - # @!method self.values - # @return [Array] - end - - # The status of the transaction - # - # @see Lithic::Models::AccountActivityListResponse::PaymentTransaction#status - module Status - extend Lithic::Internal::Type::Enum - - PENDING = :PENDING - SETTLED = :SETTLED - DECLINED = :DECLINED - REVERSED = :REVERSED - CANCELED = :CANCELED - - # @!method self.values - # @return [Array] - end - - # @see Lithic::Models::AccountActivityListResponse::PaymentTransaction#type - module Type - extend Lithic::Internal::Type::Enum - - ORIGINATION_CREDIT = :ORIGINATION_CREDIT - ORIGINATION_DEBIT = :ORIGINATION_DEBIT - RECEIPT_CREDIT = :RECEIPT_CREDIT - RECEIPT_DEBIT = :RECEIPT_DEBIT - WIRE_INBOUND_PAYMENT = :WIRE_INBOUND_PAYMENT - WIRE_INBOUND_ADMIN = :WIRE_INBOUND_ADMIN - WIRE_OUTBOUND_PAYMENT = :WIRE_OUTBOUND_PAYMENT - WIRE_OUTBOUND_ADMIN = :WIRE_OUTBOUND_ADMIN - - # @!method self.values - # @return [Array] - end + class Card < Lithic::Models::Transaction + # @!method initialize + # Card transaction with ledger base properties end # @!method self.variants - # @return [Array(Lithic::Models::AccountActivityListResponse::FinancialTransaction, Lithic::Models::AccountActivityListResponse::BookTransferTransaction, Lithic::Models::AccountActivityListResponse::CardTransaction, Lithic::Models::AccountActivityListResponse::PaymentTransaction, Lithic::Models::ExternalPayment, Lithic::Models::ManagementOperationTransaction)] + # @return [Array(Lithic::Models::AccountActivityListResponse::Internal, Lithic::Models::BookTransferResponse, Lithic::Models::AccountActivityListResponse::Card, Lithic::Models::Payment, Lithic::Models::ExternalPayment, Lithic::Models::ManagementOperationTransaction)] end end end diff --git a/lib/lithic/models/account_activity_retrieve_transaction_response.rb b/lib/lithic/models/account_activity_retrieve_transaction_response.rb index 998aa857..b607337d 100644 --- a/lib/lithic/models/account_activity_retrieve_transaction_response.rb +++ b/lib/lithic/models/account_activity_retrieve_transaction_response.rb @@ -2,7 +2,11 @@ module Lithic module Models - # Response containing multiple transaction types + # Response containing multiple transaction types. The `family` field determines + # which transaction type is returned: INTERNAL returns FinancialTransaction, + # TRANSFER returns BookTransferTransaction, CARD returns CardTransaction, PAYMENT + # returns PaymentTransaction, EXTERNAL_PAYMENT returns ExternalPaymentResponse, + # and MANAGEMENT_OPERATION returns ManagementOperationTransaction # # @see Lithic::Resources::AccountActivity#retrieve_transaction module AccountActivityRetrieveTransactionResponse @@ -11,22 +15,22 @@ module AccountActivityRetrieveTransactionResponse discriminator :family # Financial transaction with inheritance from unified base transaction - variant -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction } + variant :INTERNAL, -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal } # Book transfer transaction - variant -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction } + variant :TRANSFER, -> { Lithic::BookTransferResponse } - # Base class for all transaction types in the ledger service - variant -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction } + # Card transaction with ledger base properties + variant :CARD, -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::Card } # Payment transaction - variant -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction } + variant :PAYMENT, -> { Lithic::Payment } - variant -> { Lithic::ExternalPayment } + variant :EXTERNAL_PAYMENT, -> { Lithic::ExternalPayment } - variant -> { Lithic::ManagementOperationTransaction } + variant :MANAGEMENT_OPERATION, -> { Lithic::ManagementOperationTransaction } - class FinancialTransaction < Lithic::Internal::Type::BaseModel + class Internal < Lithic::Internal::Type::BaseModel # @!attribute token # Unique identifier for the transaction # @@ -36,9 +40,9 @@ class FinancialTransaction < Lithic::Internal::Type::BaseModel # @!attribute category # Transaction category # - # @return [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Category] + # @return [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category] required :category, - enum: -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Category } + enum: -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category } # @!attribute created # ISO 8601 timestamp of when the transaction was created @@ -61,15 +65,15 @@ class FinancialTransaction < Lithic::Internal::Type::BaseModel # @!attribute events # List of transaction events # - # @return [Array] + # @return [Array] required :events, - -> { Lithic::Internal::Type::ArrayOf[Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event] } + -> { Lithic::Internal::Type::ArrayOf[Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event] } # @!attribute family + # INTERNAL - Financial Transaction # - # @return [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Family] - required :family, - enum: -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Family } + # @return [Symbol, :INTERNAL] + required :family, const: :INTERNAL # @!attribute financial_account_token # Financial account token associated with the transaction @@ -86,9 +90,9 @@ class FinancialTransaction < Lithic::Internal::Type::BaseModel # @!attribute result # Transaction result # - # @return [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Result] + # @return [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Result] required :result, - enum: -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Result } + enum: -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Result } # @!attribute settled_amount # Settled amount in cents @@ -99,9 +103,9 @@ class FinancialTransaction < Lithic::Internal::Type::BaseModel # @!attribute status # The status of the transaction # - # @return [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Status] + # @return [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Status] required :status, - enum: -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Status } + enum: -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Status } # @!attribute updated # ISO 8601 timestamp of when the transaction was last updated @@ -109,12 +113,12 @@ class FinancialTransaction < Lithic::Internal::Type::BaseModel # @return [Time] required :updated, Time - # @!method initialize(token:, category:, created:, currency:, descriptor:, events:, family:, financial_account_token:, pending_amount:, result:, settled_amount:, status:, updated:) + # @!method initialize(token:, category:, created:, currency:, descriptor:, events:, financial_account_token:, pending_amount:, result:, settled_amount:, status:, updated:, family: :INTERNAL) # Financial transaction with inheritance from unified base transaction # # @param token [String] Unique identifier for the transaction # - # @param category [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Category] Transaction category + # @param category [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category] Transaction category # # @param created [Time] ISO 8601 timestamp of when the transaction was created # @@ -122,25 +126,25 @@ class FinancialTransaction < Lithic::Internal::Type::BaseModel # # @param descriptor [String] Transaction descriptor # - # @param events [Array] List of transaction events - # - # @param family [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Family] + # @param events [Array] List of transaction events # # @param financial_account_token [String] Financial account token associated with the transaction # # @param pending_amount [Integer] Pending amount in cents # - # @param result [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Result] Transaction result + # @param result [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Result] Transaction result # # @param settled_amount [Integer] Settled amount in cents # - # @param status [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Status] The status of the transaction + # @param status [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Status] The status of the transaction # # @param updated [Time] ISO 8601 timestamp of when the transaction was last updated + # + # @param family [Symbol, :INTERNAL] INTERNAL - Financial Transaction # Transaction category # - # @see Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction#category + # @see Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal#category module Category extend Lithic::Internal::Type::Enum @@ -191,19 +195,19 @@ class Event < Lithic::Internal::Type::BaseModel # APPROVED financial events were successful while DECLINED financial events were # declined by user, Lithic, or the network. # - # @return [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Result, nil] + # @return [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Result, nil] optional :result, - enum: -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Result } + enum: -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Result } # @!attribute type # - # @return [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type, nil] + # @return [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type, nil] optional :type, - enum: -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type } + enum: -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type } # @!method initialize(token: nil, amount: nil, created: nil, result: nil, type: nil) # Some parameter documentations has been truncated, see - # {Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event} + # {Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event} # for more details. # # Financial Event @@ -214,14 +218,14 @@ class Event < Lithic::Internal::Type::BaseModel # # @param created [Time] Date and time when the financial event occurred. UTC time zone. # - # @param result [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Result] APPROVED financial events were successful while DECLINED financial events were d + # @param result [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Result] APPROVED financial events were successful while DECLINED financial events were d # - # @param type [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type] + # @param type [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type] # APPROVED financial events were successful while DECLINED financial events were # declined by user, Lithic, or the network. # - # @see Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event#result + # @see Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event#result module Result extend Lithic::Internal::Type::Enum @@ -232,7 +236,7 @@ module Result # @return [Array] end - # @see Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event#type + # @see Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event#type module Type extend Lithic::Internal::Type::Enum @@ -312,368 +316,9 @@ module Type end end - # @see Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction#family - module Family - extend Lithic::Internal::Type::Enum - - CARD = :CARD - PAYMENT = :PAYMENT - TRANSFER = :TRANSFER - INTERNAL = :INTERNAL - EXTERNAL_PAYMENT = :EXTERNAL_PAYMENT - MANAGEMENT_OPERATION = :MANAGEMENT_OPERATION - - # @!method self.values - # @return [Array] - end - # Transaction result # - # @see Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction#result - module Result - extend Lithic::Internal::Type::Enum - - APPROVED = :APPROVED - DECLINED = :DECLINED - - # @!method self.values - # @return [Array] - end - - # The status of the transaction - # - # @see Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction#status - module Status - extend Lithic::Internal::Type::Enum - - PENDING = :PENDING - SETTLED = :SETTLED - DECLINED = :DECLINED - REVERSED = :REVERSED - CANCELED = :CANCELED - - # @!method self.values - # @return [Array] - end - end - - class BookTransferTransaction < Lithic::Internal::Type::BaseModel - # @!attribute token - # Unique identifier for the transaction - # - # @return [String] - required :token, String - - # @!attribute category - # - # @return [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Category] - required :category, - enum: -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Category } - - # @!attribute created - # ISO 8601 timestamp of when the transaction was created - # - # @return [Time] - required :created, Time - - # @!attribute currency - # Currency of the transaction in ISO 4217 format - # - # @return [String] - required :currency, String - - # @!attribute events - # List of events associated with this book transfer - # - # @return [Array] - required :events, - -> { Lithic::Internal::Type::ArrayOf[Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event] } - - # @!attribute family - # - # @return [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Family] - required :family, - enum: -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Family } - - # @!attribute from_financial_account_token - # Source account token - # - # @return [String] - required :from_financial_account_token, String - - # @!attribute pending_amount - # The pending amount of the transaction in cents - # - # @return [Integer] - required :pending_amount, Integer - - # @!attribute result - # - # @return [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Result] - required :result, - enum: -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Result } - - # @!attribute settled_amount - # The settled amount of the transaction in cents - # - # @return [Integer] - required :settled_amount, Integer - - # @!attribute status - # The status of the transaction - # - # @return [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Status] - required :status, - enum: -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Status } - - # @!attribute to_financial_account_token - # Destination account token - # - # @return [String] - required :to_financial_account_token, String - - # @!attribute updated - # ISO 8601 timestamp of when the transaction was last updated - # - # @return [Time] - required :updated, Time - - # @!attribute external_id - # External identifier for the transaction - # - # @return [String, nil] - optional :external_id, String - - # @!attribute external_resource - # External resource associated with the management operation - # - # @return [Lithic::Models::ExternalResource, nil] - optional :external_resource, -> { Lithic::ExternalResource }, nil?: true - - # @!attribute transaction_series - # - # @return [Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::TransactionSeries, nil] - optional :transaction_series, - -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::TransactionSeries }, - nil?: true - - # @!method initialize(token:, category:, created:, currency:, events:, family:, from_financial_account_token:, pending_amount:, result:, settled_amount:, status:, to_financial_account_token:, updated:, external_id: nil, external_resource: nil, transaction_series: nil) - # Book transfer transaction - # - # @param token [String] Unique identifier for the transaction - # - # @param category [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Category] - # - # @param created [Time] ISO 8601 timestamp of when the transaction was created - # - # @param currency [String] Currency of the transaction in ISO 4217 format - # - # @param events [Array] List of events associated with this book transfer - # - # @param family [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Family] - # - # @param from_financial_account_token [String] Source account token - # - # @param pending_amount [Integer] The pending amount of the transaction in cents - # - # @param result [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Result] - # - # @param settled_amount [Integer] The settled amount of the transaction in cents - # - # @param status [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Status] The status of the transaction - # - # @param to_financial_account_token [String] Destination account token - # - # @param updated [Time] ISO 8601 timestamp of when the transaction was last updated - # - # @param external_id [String] External identifier for the transaction - # - # @param external_resource [Lithic::Models::ExternalResource, nil] External resource associated with the management operation - # - # @param transaction_series [Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::TransactionSeries, nil] - - # @see Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction#category - module Category - extend Lithic::Internal::Type::Enum - - ADJUSTMENT = :ADJUSTMENT - BALANCE_OR_FUNDING = :BALANCE_OR_FUNDING - DERECOGNITION = :DERECOGNITION - DISPUTE = :DISPUTE - FEE = :FEE - INTERNAL = :INTERNAL - REWARD = :REWARD - PROGRAM_FUNDING = :PROGRAM_FUNDING - TRANSFER = :TRANSFER - - # @!method self.values - # @return [Array] - end - - class Event < Lithic::Internal::Type::BaseModel - # @!attribute token - # Globally unique identifier. - # - # @return [String] - required :token, String - - # @!attribute amount - # Amount of the financial event that has been settled in the currency's smallest - # unit (e.g., cents). - # - # @return [Integer] - required :amount, Integer - - # @!attribute created - # Date and time when the financial event occurred. UTC time zone. - # - # @return [Time] - required :created, Time - - # @!attribute detailed_results - # - # @return [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::DetailedResults] - required :detailed_results, - enum: -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::DetailedResults } - - # @!attribute memo - # Memo for the transfer. - # - # @return [String] - required :memo, String - - # @!attribute result - # APPROVED financial events were successful while DECLINED financial events were - # declined by user, Lithic, or the network. - # - # @return [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Result] - required :result, - enum: -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Result } - - # @!attribute subtype - # The program specific subtype code for the specified category/type. - # - # @return [String] - required :subtype, String - - # @!attribute type - # Type of the book transfer - # - # @return [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type] - required :type, - enum: -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type } - - # @!method initialize(token:, amount:, created:, detailed_results:, memo:, result:, subtype:, type:) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event} - # for more details. - # - # Book transfer Event - # - # @param token [String] Globally unique identifier. - # - # @param amount [Integer] Amount of the financial event that has been settled in the currency's smallest u - # - # @param created [Time] Date and time when the financial event occurred. UTC time zone. - # - # @param detailed_results [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::DetailedResults] - # - # @param memo [String] Memo for the transfer. - # - # @param result [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Result] APPROVED financial events were successful while DECLINED financial events were d - # - # @param subtype [String] The program specific subtype code for the specified category/type. - # - # @param type [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type] Type of the book transfer - - # @see Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event#detailed_results - module DetailedResults - extend Lithic::Internal::Type::Enum - - APPROVED = :APPROVED - FUNDS_INSUFFICIENT = :FUNDS_INSUFFICIENT - - # @!method self.values - # @return [Array] - end - - # APPROVED financial events were successful while DECLINED financial events were - # declined by user, Lithic, or the network. - # - # @see Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event#result - module Result - extend Lithic::Internal::Type::Enum - - APPROVED = :APPROVED - DECLINED = :DECLINED - - # @!method self.values - # @return [Array] - end - - # Type of the book transfer - # - # @see Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event#type - module Type - extend Lithic::Internal::Type::Enum - - ATM_BALANCE_INQUIRY = :ATM_BALANCE_INQUIRY - ATM_WITHDRAWAL = :ATM_WITHDRAWAL - ATM_DECLINE = :ATM_DECLINE - INTERNATIONAL_ATM_WITHDRAWAL = :INTERNATIONAL_ATM_WITHDRAWAL - INACTIVITY = :INACTIVITY - STATEMENT = :STATEMENT - MONTHLY = :MONTHLY - QUARTERLY = :QUARTERLY - ANNUAL = :ANNUAL - CUSTOMER_SERVICE = :CUSTOMER_SERVICE - ACCOUNT_MAINTENANCE = :ACCOUNT_MAINTENANCE - ACCOUNT_ACTIVATION = :ACCOUNT_ACTIVATION - ACCOUNT_CLOSURE = :ACCOUNT_CLOSURE - CARD_REPLACEMENT = :CARD_REPLACEMENT - CARD_DELIVERY = :CARD_DELIVERY - CARD_CREATE = :CARD_CREATE - CURRENCY_CONVERSION = :CURRENCY_CONVERSION - INTEREST = :INTEREST - LATE_PAYMENT = :LATE_PAYMENT - BILL_PAYMENT = :BILL_PAYMENT - CASH_BACK = :CASH_BACK - ACCOUNT_TO_ACCOUNT = :ACCOUNT_TO_ACCOUNT - CARD_TO_CARD = :CARD_TO_CARD - DISBURSE = :DISBURSE - BILLING_ERROR = :BILLING_ERROR - LOSS_WRITE_OFF = :LOSS_WRITE_OFF - EXPIRED_CARD = :EXPIRED_CARD - EARLY_DERECOGNITION = :EARLY_DERECOGNITION - ESCHEATMENT = :ESCHEATMENT - INACTIVITY_FEE_DOWN = :INACTIVITY_FEE_DOWN - PROVISIONAL_CREDIT = :PROVISIONAL_CREDIT - DISPUTE_WON = :DISPUTE_WON - SERVICE = :SERVICE - TRANSFER = :TRANSFER - COLLECTION = :COLLECTION - - # @!method self.values - # @return [Array] - end - end - - # @see Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction#family - module Family - extend Lithic::Internal::Type::Enum - - CARD = :CARD - PAYMENT = :PAYMENT - TRANSFER = :TRANSFER - INTERNAL = :INTERNAL - EXTERNAL_PAYMENT = :EXTERNAL_PAYMENT - MANAGEMENT_OPERATION = :MANAGEMENT_OPERATION - - # @!method self.values - # @return [Array] - end - - # @see Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction#result + # @see Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal#result module Result extend Lithic::Internal::Type::Enum @@ -686,7 +331,7 @@ module Result # The status of the transaction # - # @see Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction#status + # @see Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal#status module Status extend Lithic::Internal::Type::Enum @@ -699,764 +344,15 @@ module Status # @!method self.values # @return [Array] end - - # @see Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction#transaction_series - class TransactionSeries < Lithic::Internal::Type::BaseModel - # @!attribute related_transaction_event_token - # - # @return [String, nil] - required :related_transaction_event_token, String, nil?: true - - # @!attribute related_transaction_token - # - # @return [String, nil] - required :related_transaction_token, String, nil?: true - - # @!attribute type - # - # @return [String] - required :type, String - - # @!method initialize(related_transaction_event_token:, related_transaction_token:, type:) - # @param related_transaction_event_token [String, nil] - # @param related_transaction_token [String, nil] - # @param type [String] - end end - class CardTransaction < Lithic::Models::Transaction - # @!attribute token - # Unique identifier for the transaction - # - # @return [String] - required :token, String - - # @!attribute created - # ISO 8601 timestamp of when the transaction was created - # - # @return [Time] - required :created, Time - - # @!attribute family - # - # @return [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction::Family] - required :family, - enum: -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction::Family } - - # @!attribute status - # The status of the transaction - # - # @return [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction::Status] - required :status, - enum: -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction::Status } - - # @!attribute updated - # ISO 8601 timestamp of when the transaction was last updated - # - # @return [Time] - required :updated, Time - - # @!method initialize(token:, created:, family:, status:, updated:) - # Base class for all transaction types in the ledger service - # - # @param token [String] Unique identifier for the transaction - # - # @param created [Time] ISO 8601 timestamp of when the transaction was created - # - # @param family [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction::Family] - # - # @param status [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction::Status] The status of the transaction - # - # @param updated [Time] ISO 8601 timestamp of when the transaction was last updated - - module Family - extend Lithic::Internal::Type::Enum - - CARD = :CARD - PAYMENT = :PAYMENT - TRANSFER = :TRANSFER - INTERNAL = :INTERNAL - EXTERNAL_PAYMENT = :EXTERNAL_PAYMENT - MANAGEMENT_OPERATION = :MANAGEMENT_OPERATION - - # @!method self.values - # @return [Array] - end - - # The status of the transaction - module Status - extend Lithic::Internal::Type::Enum - - PENDING = :PENDING - SETTLED = :SETTLED - DECLINED = :DECLINED - REVERSED = :REVERSED - CANCELED = :CANCELED - - # @!method self.values - # @return [Array] - end - end - - class PaymentTransaction < Lithic::Internal::Type::BaseModel - # @!attribute token - # Unique identifier for the transaction - # - # @return [String] - required :token, String - - # @!attribute category - # Transaction category - # - # @return [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Category] - required :category, - enum: -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Category } - - # @!attribute created - # ISO 8601 timestamp of when the transaction was created - # - # @return [Time] - required :created, Time - - # @!attribute descriptor - # Transaction descriptor - # - # @return [String] - required :descriptor, String - - # @!attribute direction - # Transfer direction - # - # @return [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Direction] - required :direction, - enum: -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Direction } - - # @!attribute events - # List of transaction events - # - # @return [Array] - required :events, - -> { Lithic::Internal::Type::ArrayOf[Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event] } - - # @!attribute family - # - # @return [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Family] - required :family, - enum: -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Family } - - # @!attribute financial_account_token - # Financial account token - # - # @return [String] - required :financial_account_token, String - - # @!attribute method_ - # Transfer method - # - # @return [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Method] - required :method_, - enum: -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Method }, - api_name: :method - - # @!attribute method_attributes - # Method-specific attributes - # - # @return [Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes, Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes] - required :method_attributes, - union: -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes } - - # @!attribute pending_amount - # Pending amount in cents - # - # @return [Integer] - required :pending_amount, Integer - - # @!attribute related_account_tokens - # Related account tokens for the transaction - # - # @return [Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::RelatedAccountTokens] - required :related_account_tokens, - -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::RelatedAccountTokens } - - # @!attribute result - # Transaction result - # - # @return [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Result] - required :result, - enum: -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Result } - - # @!attribute settled_amount - # Settled amount in cents - # - # @return [Integer] - required :settled_amount, Integer - - # @!attribute source - # Transaction source - # - # @return [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Source] - required :source, - enum: -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Source } - - # @!attribute status - # The status of the transaction - # - # @return [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Status] - required :status, - enum: -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Status } - - # @!attribute updated - # ISO 8601 timestamp of when the transaction was last updated - # - # @return [Time] - required :updated, Time - - # @!attribute currency - # Currency of the transaction in ISO 4217 format - # - # @return [String, nil] - optional :currency, String - - # @!attribute expected_release_date - # Expected release date for the transaction - # - # @return [Date, nil] - optional :expected_release_date, Date, nil?: true - - # @!attribute external_bank_account_token - # External bank account token - # - # @return [String, nil] - optional :external_bank_account_token, String, nil?: true - - # @!attribute type - # - # @return [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Type, nil] - optional :type, - enum: -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Type } - - # @!attribute user_defined_id - # User-defined identifier - # - # @return [String, nil] - optional :user_defined_id, String, nil?: true - - # @!method initialize(token:, category:, created:, descriptor:, direction:, events:, family:, financial_account_token:, method_:, method_attributes:, pending_amount:, related_account_tokens:, result:, settled_amount:, source:, status:, updated:, currency: nil, expected_release_date: nil, external_bank_account_token: nil, type: nil, user_defined_id: nil) - # Payment transaction - # - # @param token [String] Unique identifier for the transaction - # - # @param category [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Category] Transaction category - # - # @param created [Time] ISO 8601 timestamp of when the transaction was created - # - # @param descriptor [String] Transaction descriptor - # - # @param direction [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Direction] Transfer direction - # - # @param events [Array] List of transaction events - # - # @param family [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Family] - # - # @param financial_account_token [String] Financial account token - # - # @param method_ [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Method] Transfer method - # - # @param method_attributes [Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes, Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes] Method-specific attributes - # - # @param pending_amount [Integer] Pending amount in cents - # - # @param related_account_tokens [Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::RelatedAccountTokens] Related account tokens for the transaction - # - # @param result [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Result] Transaction result - # - # @param settled_amount [Integer] Settled amount in cents - # - # @param source [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Source] Transaction source - # - # @param status [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Status] The status of the transaction - # - # @param updated [Time] ISO 8601 timestamp of when the transaction was last updated - # - # @param currency [String] Currency of the transaction in ISO 4217 format - # - # @param expected_release_date [Date, nil] Expected release date for the transaction - # - # @param external_bank_account_token [String, nil] External bank account token - # - # @param type [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Type] - # - # @param user_defined_id [String, nil] User-defined identifier - - # Transaction category - # - # @see Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction#category - module Category - extend Lithic::Internal::Type::Enum - - ACH = :ACH - BALANCE_OR_FUNDING = :BALANCE_OR_FUNDING - FEE = :FEE - REWARD = :REWARD - ADJUSTMENT = :ADJUSTMENT - DERECOGNITION = :DERECOGNITION - DISPUTE = :DISPUTE - CARD = :CARD - EXTERNAL_ACH = :EXTERNAL_ACH - EXTERNAL_CHECK = :EXTERNAL_CHECK - EXTERNAL_TRANSFER = :EXTERNAL_TRANSFER - EXTERNAL_WIRE = :EXTERNAL_WIRE - MANAGEMENT_ADJUSTMENT = :MANAGEMENT_ADJUSTMENT - MANAGEMENT_DISPUTE = :MANAGEMENT_DISPUTE - MANAGEMENT_FEE = :MANAGEMENT_FEE - MANAGEMENT_REWARD = :MANAGEMENT_REWARD - MANAGEMENT_DISBURSEMENT = :MANAGEMENT_DISBURSEMENT - PROGRAM_FUNDING = :PROGRAM_FUNDING - - # @!method self.values - # @return [Array] - end - - # Transfer direction - # - # @see Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction#direction - module Direction - extend Lithic::Internal::Type::Enum - - CREDIT = :CREDIT - DEBIT = :DEBIT - - # @!method self.values - # @return [Array] - end - - class Event < Lithic::Internal::Type::BaseModel - # @!attribute token - # Globally unique identifier. - # - # @return [String] - required :token, String - - # @!attribute amount - # Amount of the financial event that has been settled in the currency's smallest - # unit (e.g., cents). - # - # @return [Integer] - required :amount, Integer - - # @!attribute created - # Date and time when the financial event occurred. UTC time zone. - # - # @return [Time] - required :created, Time - - # @!attribute result - # APPROVED financial events were successful while DECLINED financial events were - # declined by user, Lithic, or the network. - # - # @return [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::Result] - required :result, - enum: -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::Result } - - # @!attribute type - # Event types: - # - # - `ACH_ORIGINATION_INITIATED` - ACH origination received and pending - # approval/release from an ACH hold. - # - `ACH_ORIGINATION_REVIEWED` - ACH origination has completed the review process. - # - `ACH_ORIGINATION_CANCELLED` - ACH origination has been cancelled. - # - `ACH_ORIGINATION_PROCESSED` - ACH origination has been processed and sent to - # the Federal Reserve. - # - `ACH_ORIGINATION_SETTLED` - ACH origination has settled. - # - `ACH_ORIGINATION_RELEASED` - ACH origination released from pending to - # available balance. - # - `ACH_RETURN_PROCESSED` - ACH origination returned by the Receiving Depository - # Financial Institution. - # - `ACH_RECEIPT_PROCESSED` - ACH receipt pending release from an ACH holder. - # - `ACH_RETURN_INITIATED` - ACH initiated return for a ACH receipt. - # - `ACH_RECEIPT_SETTLED` - ACH receipt funds have settled. - # - `ACH_RECEIPT_RELEASED` - ACH receipt released from pending to available - # balance. - # - `ACH_RETURN_SETTLED` - ACH receipt return settled by the Receiving Depository - # Financial Institution. - # - # @return [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::Type] - required :type, - enum: -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::Type } - - # @!attribute detailed_results - # More detailed reasons for the event - # - # @return [Array, nil] - optional :detailed_results, - -> do - Lithic::Internal::Type::ArrayOf[ - enum: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::DetailedResult - ] - end - - # @!method initialize(token:, amount:, created:, result:, type:, detailed_results: nil) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event} - # for more details. - # - # Payment Event - # - # @param token [String] Globally unique identifier. - # - # @param amount [Integer] Amount of the financial event that has been settled in the currency's smallest u - # - # @param created [Time] Date and time when the financial event occurred. UTC time zone. - # - # @param result [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::Result] APPROVED financial events were successful while DECLINED financial events were d - # - # @param type [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::Type] Event types: - # - # @param detailed_results [Array] More detailed reasons for the event - - # APPROVED financial events were successful while DECLINED financial events were - # declined by user, Lithic, or the network. - # - # @see Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event#result - module Result - extend Lithic::Internal::Type::Enum - - APPROVED = :APPROVED - DECLINED = :DECLINED - - # @!method self.values - # @return [Array] - end - - # Event types: - # - # - `ACH_ORIGINATION_INITIATED` - ACH origination received and pending - # approval/release from an ACH hold. - # - `ACH_ORIGINATION_REVIEWED` - ACH origination has completed the review process. - # - `ACH_ORIGINATION_CANCELLED` - ACH origination has been cancelled. - # - `ACH_ORIGINATION_PROCESSED` - ACH origination has been processed and sent to - # the Federal Reserve. - # - `ACH_ORIGINATION_SETTLED` - ACH origination has settled. - # - `ACH_ORIGINATION_RELEASED` - ACH origination released from pending to - # available balance. - # - `ACH_RETURN_PROCESSED` - ACH origination returned by the Receiving Depository - # Financial Institution. - # - `ACH_RECEIPT_PROCESSED` - ACH receipt pending release from an ACH holder. - # - `ACH_RETURN_INITIATED` - ACH initiated return for a ACH receipt. - # - `ACH_RECEIPT_SETTLED` - ACH receipt funds have settled. - # - `ACH_RECEIPT_RELEASED` - ACH receipt released from pending to available - # balance. - # - `ACH_RETURN_SETTLED` - ACH receipt return settled by the Receiving Depository - # Financial Institution. - # - # @see Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event#type - module Type - extend Lithic::Internal::Type::Enum - - ACH_ORIGINATION_CANCELLED = :ACH_ORIGINATION_CANCELLED - ACH_ORIGINATION_INITIATED = :ACH_ORIGINATION_INITIATED - ACH_ORIGINATION_PROCESSED = :ACH_ORIGINATION_PROCESSED - ACH_ORIGINATION_SETTLED = :ACH_ORIGINATION_SETTLED - ACH_ORIGINATION_RELEASED = :ACH_ORIGINATION_RELEASED - ACH_ORIGINATION_REVIEWED = :ACH_ORIGINATION_REVIEWED - ACH_RECEIPT_PROCESSED = :ACH_RECEIPT_PROCESSED - ACH_RECEIPT_SETTLED = :ACH_RECEIPT_SETTLED - ACH_RETURN_INITIATED = :ACH_RETURN_INITIATED - ACH_RETURN_PROCESSED = :ACH_RETURN_PROCESSED - ACH_RETURN_SETTLED = :ACH_RETURN_SETTLED - - # @!method self.values - # @return [Array] - end - - module DetailedResult - extend Lithic::Internal::Type::Enum - - APPROVED = :APPROVED - FUNDS_INSUFFICIENT = :FUNDS_INSUFFICIENT - ACCOUNT_INVALID = :ACCOUNT_INVALID - PROGRAM_TRANSACTION_LIMIT_EXCEEDED = :PROGRAM_TRANSACTION_LIMIT_EXCEEDED - PROGRAM_DAILY_LIMIT_EXCEEDED = :PROGRAM_DAILY_LIMIT_EXCEEDED - PROGRAM_MONTHLY_LIMIT_EXCEEDED = :PROGRAM_MONTHLY_LIMIT_EXCEEDED - - # @!method self.values - # @return [Array] - end - end - - # @see Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction#family - module Family - extend Lithic::Internal::Type::Enum - - CARD = :CARD - PAYMENT = :PAYMENT - TRANSFER = :TRANSFER - INTERNAL = :INTERNAL - EXTERNAL_PAYMENT = :EXTERNAL_PAYMENT - MANAGEMENT_OPERATION = :MANAGEMENT_OPERATION - - # @!method self.values - # @return [Array] - end - - # Transfer method - # - # @see Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction#method_ - module Method - extend Lithic::Internal::Type::Enum - - ACH_NEXT_DAY = :ACH_NEXT_DAY - ACH_SAME_DAY = :ACH_SAME_DAY - WIRE = :WIRE - - # @!method self.values - # @return [Array] - end - - # Method-specific attributes - # - # @see Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction#method_attributes - module MethodAttributes - extend Lithic::Internal::Type::Union - - variant -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes } - - variant -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes } - - class ACHMethodAttributes < Lithic::Internal::Type::BaseModel - # @!attribute sec_code - # SEC code for ACH transaction - # - # @return [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::SecCode] - required :sec_code, - enum: -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::SecCode } - - # @!attribute addenda - # Addenda information - # - # @return [String, nil] - optional :addenda, String, nil?: true - - # @!attribute company_id - # Company ID for the ACH transaction - # - # @return [String, nil] - optional :company_id, String, nil?: true - - # @!attribute receipt_routing_number - # Receipt routing number - # - # @return [String, nil] - optional :receipt_routing_number, String, nil?: true - - # @!attribute retries - # Number of retries attempted - # - # @return [Integer, nil] - optional :retries, Integer, nil?: true - - # @!attribute return_reason_code - # Return reason code if the transaction was returned - # - # @return [String, nil] - optional :return_reason_code, String, nil?: true - - # @!attribute trace_numbers - # Trace numbers for the ACH transaction - # - # @return [Array, nil] - optional :trace_numbers, Lithic::Internal::Type::ArrayOf[String] - - # @!method initialize(sec_code:, addenda: nil, company_id: nil, receipt_routing_number: nil, retries: nil, return_reason_code: nil, trace_numbers: nil) - # @param sec_code [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::SecCode] SEC code for ACH transaction - # - # @param addenda [String, nil] Addenda information - # - # @param company_id [String, nil] Company ID for the ACH transaction - # - # @param receipt_routing_number [String, nil] Receipt routing number - # - # @param retries [Integer, nil] Number of retries attempted - # - # @param return_reason_code [String, nil] Return reason code if the transaction was returned - # - # @param trace_numbers [Array] Trace numbers for the ACH transaction - - # SEC code for ACH transaction - # - # @see Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes#sec_code - module SecCode - extend Lithic::Internal::Type::Enum - - CCD = :CCD - PPD = :PPD - WEB = :WEB - TEL = :TEL - CIE = :CIE - CTX = :CTX - - # @!method self.values - # @return [Array] - end - end - - class WireMethodAttributes < Lithic::Internal::Type::BaseModel - # @!attribute wire_network - # Type of wire transfer - # - # @return [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes::WireNetwork] - required :wire_network, - enum: -> { Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes::WireNetwork } - - # @!attribute creditor - # - # @return [Lithic::Models::WirePartyDetails, nil] - optional :creditor, -> { Lithic::WirePartyDetails } - - # @!attribute debtor - # - # @return [Lithic::Models::WirePartyDetails, nil] - optional :debtor, -> { Lithic::WirePartyDetails } - - # @!attribute message_id - # Point to point reference identifier, as assigned by the instructing party, used - # for tracking the message through the Fedwire system - # - # @return [String, nil] - optional :message_id, String, nil?: true - - # @!attribute remittance_information - # Payment details or invoice reference - # - # @return [String, nil] - optional :remittance_information, String, nil?: true - - # @!attribute wire_message_type - # Type of wire message - # - # @return [String, nil] - optional :wire_message_type, String - - # @!method initialize(wire_network:, creditor: nil, debtor: nil, message_id: nil, remittance_information: nil, wire_message_type: nil) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes} - # for more details. - # - # @param wire_network [Symbol, Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes::WireNetwork] Type of wire transfer - # - # @param creditor [Lithic::Models::WirePartyDetails] - # - # @param debtor [Lithic::Models::WirePartyDetails] - # - # @param message_id [String, nil] Point to point reference identifier, as assigned by the instructing party, used - # - # @param remittance_information [String, nil] Payment details or invoice reference - # - # @param wire_message_type [String] Type of wire message - - # Type of wire transfer - # - # @see Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes#wire_network - module WireNetwork - extend Lithic::Internal::Type::Enum - - FEDWIRE = :FEDWIRE - SWIFT = :SWIFT - - # @!method self.values - # @return [Array] - end - end - - # @!method self.variants - # @return [Array(Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes, Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes)] - end - - # @see Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction#related_account_tokens - class RelatedAccountTokens < Lithic::Internal::Type::BaseModel - # @!attribute account_token - # Globally unique identifier for the account - # - # @return [String, nil] - required :account_token, String, nil?: true - - # @!attribute business_account_token - # Globally unique identifier for the business account - # - # @return [String, nil] - required :business_account_token, String, nil?: true - - # @!method initialize(account_token:, business_account_token:) - # Related account tokens for the transaction - # - # @param account_token [String, nil] Globally unique identifier for the account - # - # @param business_account_token [String, nil] Globally unique identifier for the business account - end - - # Transaction result - # - # @see Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction#result - module Result - extend Lithic::Internal::Type::Enum - - APPROVED = :APPROVED - DECLINED = :DECLINED - - # @!method self.values - # @return [Array] - end - - # Transaction source - # - # @see Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction#source - module Source - extend Lithic::Internal::Type::Enum - - LITHIC = :LITHIC - EXTERNAL = :EXTERNAL - CUSTOMER = :CUSTOMER - - # @!method self.values - # @return [Array] - end - - # The status of the transaction - # - # @see Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction#status - module Status - extend Lithic::Internal::Type::Enum - - PENDING = :PENDING - SETTLED = :SETTLED - DECLINED = :DECLINED - REVERSED = :REVERSED - CANCELED = :CANCELED - - # @!method self.values - # @return [Array] - end - - # @see Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction#type - module Type - extend Lithic::Internal::Type::Enum - - ORIGINATION_CREDIT = :ORIGINATION_CREDIT - ORIGINATION_DEBIT = :ORIGINATION_DEBIT - RECEIPT_CREDIT = :RECEIPT_CREDIT - RECEIPT_DEBIT = :RECEIPT_DEBIT - WIRE_INBOUND_PAYMENT = :WIRE_INBOUND_PAYMENT - WIRE_INBOUND_ADMIN = :WIRE_INBOUND_ADMIN - WIRE_OUTBOUND_PAYMENT = :WIRE_OUTBOUND_PAYMENT - WIRE_OUTBOUND_ADMIN = :WIRE_OUTBOUND_ADMIN - - # @!method self.values - # @return [Array] - end + class Card < Lithic::Models::Transaction + # @!method initialize + # Card transaction with ledger base properties end # @!method self.variants - # @return [Array(Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction, Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction, Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction, Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction, Lithic::Models::ExternalPayment, Lithic::Models::ManagementOperationTransaction)] + # @return [Array(Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal, Lithic::Models::BookTransferResponse, Lithic::Models::AccountActivityRetrieveTransactionResponse::Card, Lithic::Models::Payment, Lithic::Models::ExternalPayment, Lithic::Models::ManagementOperationTransaction)] end end end diff --git a/lib/lithic/models/auth_rules/auth_rule_condition.rb b/lib/lithic/models/auth_rules/auth_rule_condition.rb index f9f04d6f..2af273fc 100644 --- a/lib/lithic/models/auth_rules/auth_rule_condition.rb +++ b/lib/lithic/models/auth_rules/auth_rule_condition.rb @@ -52,6 +52,9 @@ class AuthRuleCondition < Lithic::Internal::Type::BaseModel # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. # # @return [Symbol, Lithic::Models::AuthRules::ConditionalAttribute, nil] optional :attribute, enum: -> { Lithic::AuthRules::ConditionalAttribute } diff --git a/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb b/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb index 09440d9d..8b66acce 100644 --- a/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +++ b/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb @@ -57,6 +57,9 @@ class Condition < Lithic::Internal::Type::BaseModel # - `RISK_SCORE`: Mastercard only: Assessment by the network of the authentication # risk level, with a higher value indicating a higher amount of risk. # - `MESSAGE_CATEGORY`: The category of the authentication being processed. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. # # @return [Symbol, Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::Attribute, nil] optional :attribute, enum: -> { Lithic::AuthRules::Conditional3DSActionParameters::Condition::Attribute } @@ -105,6 +108,9 @@ class Condition < Lithic::Internal::Type::BaseModel # - `RISK_SCORE`: Mastercard only: Assessment by the network of the authentication # risk level, with a higher value indicating a higher amount of risk. # - `MESSAGE_CATEGORY`: The category of the authentication being processed. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. # # @see Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition#attribute module Attribute @@ -118,6 +124,7 @@ module Attribute TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT RISK_SCORE = :RISK_SCORE MESSAGE_CATEGORY = :MESSAGE_CATEGORY + ADDRESS_MATCH = :ADDRESS_MATCH # @!method self.values # @return [Array] diff --git a/lib/lithic/models/auth_rules/conditional_attribute.rb b/lib/lithic/models/auth_rules/conditional_attribute.rb index d65c17de..35d19d0a 100644 --- a/lib/lithic/models/auth_rules/conditional_attribute.rb +++ b/lib/lithic/models/auth_rules/conditional_attribute.rb @@ -50,6 +50,9 @@ module AuthRules # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. module ConditionalAttribute extend Lithic::Internal::Type::Enum @@ -69,6 +72,7 @@ module ConditionalAttribute PIN_ENTERED = :PIN_ENTERED PIN_STATUS = :PIN_STATUS WALLET_TYPE = :WALLET_TYPE + ADDRESS_MATCH = :ADDRESS_MATCH # @!method self.values # @return [Array] diff --git a/lib/lithic/models/auth_rules/v2_apply_response.rb b/lib/lithic/models/auth_rules/v2_apply_response.rb index b0db3d1f..5e62509c 100644 --- a/lib/lithic/models/auth_rules/v2_apply_response.rb +++ b/lib/lithic/models/auth_rules/v2_apply_response.rb @@ -250,6 +250,9 @@ class Condition < Lithic::Internal::Type::BaseModel # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. # # @return [Symbol, Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute, nil] optional :attribute, @@ -331,6 +334,9 @@ class Condition < Lithic::Internal::Type::BaseModel # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. # # @see Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#attribute module Attribute @@ -354,6 +360,7 @@ module Attribute PIN_STATUS = :PIN_STATUS WALLET_TYPE = :WALLET_TYPE TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR + ADDRESS_MATCH = :ADDRESS_MATCH # @!method self.values # @return [Array] @@ -539,6 +546,9 @@ class Condition < Lithic::Internal::Type::BaseModel # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. # # @return [Symbol, Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute, nil] optional :attribute, @@ -620,6 +630,9 @@ class Condition < Lithic::Internal::Type::BaseModel # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. # # @see Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#attribute module Attribute @@ -643,6 +656,7 @@ module Attribute PIN_STATUS = :PIN_STATUS WALLET_TYPE = :WALLET_TYPE TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR + ADDRESS_MATCH = :ADDRESS_MATCH # @!method self.values # @return [Array] diff --git a/lib/lithic/models/auth_rules/v2_create_params.rb b/lib/lithic/models/auth_rules/v2_create_params.rb index 5355ff0b..cc6ce207 100644 --- a/lib/lithic/models/auth_rules/v2_create_params.rb +++ b/lib/lithic/models/auth_rules/v2_create_params.rb @@ -204,6 +204,9 @@ class Condition < Lithic::Internal::Type::BaseModel # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. # # @return [Symbol, Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute, nil] optional :attribute, @@ -285,6 +288,9 @@ class Condition < Lithic::Internal::Type::BaseModel # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. # # @see Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition#attribute module Attribute @@ -308,6 +314,7 @@ module Attribute PIN_STATUS = :PIN_STATUS WALLET_TYPE = :WALLET_TYPE TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR + ADDRESS_MATCH = :ADDRESS_MATCH # @!method self.values # @return [Array] diff --git a/lib/lithic/models/auth_rules/v2_create_response.rb b/lib/lithic/models/auth_rules/v2_create_response.rb index 3d13037d..893fc023 100644 --- a/lib/lithic/models/auth_rules/v2_create_response.rb +++ b/lib/lithic/models/auth_rules/v2_create_response.rb @@ -251,6 +251,9 @@ class Condition < Lithic::Internal::Type::BaseModel # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. # # @return [Symbol, Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute, nil] optional :attribute, @@ -332,6 +335,9 @@ class Condition < Lithic::Internal::Type::BaseModel # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. # # @see Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#attribute module Attribute @@ -355,6 +361,7 @@ module Attribute PIN_STATUS = :PIN_STATUS WALLET_TYPE = :WALLET_TYPE TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR + ADDRESS_MATCH = :ADDRESS_MATCH # @!method self.values # @return [Array] @@ -540,6 +547,9 @@ class Condition < Lithic::Internal::Type::BaseModel # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. # # @return [Symbol, Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute, nil] optional :attribute, @@ -621,6 +631,9 @@ class Condition < Lithic::Internal::Type::BaseModel # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. # # @see Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#attribute module Attribute @@ -644,6 +657,7 @@ module Attribute PIN_STATUS = :PIN_STATUS WALLET_TYPE = :WALLET_TYPE TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR + ADDRESS_MATCH = :ADDRESS_MATCH # @!method self.values # @return [Array] diff --git a/lib/lithic/models/auth_rules/v2_draft_params.rb b/lib/lithic/models/auth_rules/v2_draft_params.rb index 7d0e31fe..8a11bd9c 100644 --- a/lib/lithic/models/auth_rules/v2_draft_params.rb +++ b/lib/lithic/models/auth_rules/v2_draft_params.rb @@ -118,6 +118,9 @@ class Condition < Lithic::Internal::Type::BaseModel # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. # # @return [Symbol, Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute, nil] optional :attribute, @@ -199,6 +202,9 @@ class Condition < Lithic::Internal::Type::BaseModel # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. # # @see Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition#attribute module Attribute @@ -222,6 +228,7 @@ module Attribute PIN_STATUS = :PIN_STATUS WALLET_TYPE = :WALLET_TYPE TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR + ADDRESS_MATCH = :ADDRESS_MATCH # @!method self.values # @return [Array] diff --git a/lib/lithic/models/auth_rules/v2_draft_response.rb b/lib/lithic/models/auth_rules/v2_draft_response.rb index 9853c3bd..e55c9864 100644 --- a/lib/lithic/models/auth_rules/v2_draft_response.rb +++ b/lib/lithic/models/auth_rules/v2_draft_response.rb @@ -250,6 +250,9 @@ class Condition < Lithic::Internal::Type::BaseModel # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. # # @return [Symbol, Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute, nil] optional :attribute, @@ -331,6 +334,9 @@ class Condition < Lithic::Internal::Type::BaseModel # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. # # @see Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#attribute module Attribute @@ -354,6 +360,7 @@ module Attribute PIN_STATUS = :PIN_STATUS WALLET_TYPE = :WALLET_TYPE TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR + ADDRESS_MATCH = :ADDRESS_MATCH # @!method self.values # @return [Array] @@ -539,6 +546,9 @@ class Condition < Lithic::Internal::Type::BaseModel # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. # # @return [Symbol, Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute, nil] optional :attribute, @@ -620,6 +630,9 @@ class Condition < Lithic::Internal::Type::BaseModel # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. # # @see Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#attribute module Attribute @@ -643,6 +656,7 @@ module Attribute PIN_STATUS = :PIN_STATUS WALLET_TYPE = :WALLET_TYPE TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR + ADDRESS_MATCH = :ADDRESS_MATCH # @!method self.values # @return [Array] diff --git a/lib/lithic/models/auth_rules/v2_list_response.rb b/lib/lithic/models/auth_rules/v2_list_response.rb index 61a3076e..6e941c6a 100644 --- a/lib/lithic/models/auth_rules/v2_list_response.rb +++ b/lib/lithic/models/auth_rules/v2_list_response.rb @@ -250,6 +250,9 @@ class Condition < Lithic::Internal::Type::BaseModel # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. # # @return [Symbol, Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute, nil] optional :attribute, @@ -331,6 +334,9 @@ class Condition < Lithic::Internal::Type::BaseModel # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. # # @see Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#attribute module Attribute @@ -354,6 +360,7 @@ module Attribute PIN_STATUS = :PIN_STATUS WALLET_TYPE = :WALLET_TYPE TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR + ADDRESS_MATCH = :ADDRESS_MATCH # @!method self.values # @return [Array] @@ -539,6 +546,9 @@ class Condition < Lithic::Internal::Type::BaseModel # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. # # @return [Symbol, Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute, nil] optional :attribute, @@ -620,6 +630,9 @@ class Condition < Lithic::Internal::Type::BaseModel # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. # # @see Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#attribute module Attribute @@ -643,6 +656,7 @@ module Attribute PIN_STATUS = :PIN_STATUS WALLET_TYPE = :WALLET_TYPE TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR + ADDRESS_MATCH = :ADDRESS_MATCH # @!method self.values # @return [Array] diff --git a/lib/lithic/models/auth_rules/v2_promote_response.rb b/lib/lithic/models/auth_rules/v2_promote_response.rb index 3d5a1045..dc55e07c 100644 --- a/lib/lithic/models/auth_rules/v2_promote_response.rb +++ b/lib/lithic/models/auth_rules/v2_promote_response.rb @@ -251,6 +251,9 @@ class Condition < Lithic::Internal::Type::BaseModel # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. # # @return [Symbol, Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute, nil] optional :attribute, @@ -332,6 +335,9 @@ class Condition < Lithic::Internal::Type::BaseModel # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. # # @see Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#attribute module Attribute @@ -355,6 +361,7 @@ module Attribute PIN_STATUS = :PIN_STATUS WALLET_TYPE = :WALLET_TYPE TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR + ADDRESS_MATCH = :ADDRESS_MATCH # @!method self.values # @return [Array] @@ -540,6 +547,9 @@ class Condition < Lithic::Internal::Type::BaseModel # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. # # @return [Symbol, Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute, nil] optional :attribute, @@ -621,6 +631,9 @@ class Condition < Lithic::Internal::Type::BaseModel # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. # # @see Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#attribute module Attribute @@ -644,6 +657,7 @@ module Attribute PIN_STATUS = :PIN_STATUS WALLET_TYPE = :WALLET_TYPE TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR + ADDRESS_MATCH = :ADDRESS_MATCH # @!method self.values # @return [Array] diff --git a/lib/lithic/models/auth_rules/v2_report_params.rb b/lib/lithic/models/auth_rules/v2_report_params.rb deleted file mode 100644 index 35551fd5..00000000 --- a/lib/lithic/models/auth_rules/v2_report_params.rb +++ /dev/null @@ -1,16 +0,0 @@ -# frozen_string_literal: true - -module Lithic - module Models - module AuthRules - # @see Lithic::Resources::AuthRules::V2#report - class V2ReportParams < Lithic::Internal::Type::BaseModel - extend Lithic::Internal::Type::RequestParameters::Converter - include Lithic::Internal::Type::RequestParameters - - # @!method initialize(request_options: {}) - # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] - end - end - end -end diff --git a/lib/lithic/models/auth_rules/v2_report_response.rb b/lib/lithic/models/auth_rules/v2_report_response.rb deleted file mode 100644 index 95f8d1db..00000000 --- a/lib/lithic/models/auth_rules/v2_report_response.rb +++ /dev/null @@ -1,18 +0,0 @@ -# frozen_string_literal: true - -module Lithic - module Models - module AuthRules - # @see Lithic::Resources::AuthRules::V2#report - class V2ReportResponse < Lithic::Internal::Type::BaseModel - # @!attribute report_token - # - # @return [String, nil] - optional :report_token, String - - # @!method initialize(report_token: nil) - # @param report_token [String] - end - end - end -end diff --git a/lib/lithic/models/auth_rules/v2_retrieve_response.rb b/lib/lithic/models/auth_rules/v2_retrieve_response.rb index 00f2794a..f063280a 100644 --- a/lib/lithic/models/auth_rules/v2_retrieve_response.rb +++ b/lib/lithic/models/auth_rules/v2_retrieve_response.rb @@ -254,6 +254,9 @@ class Condition < Lithic::Internal::Type::BaseModel # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. # # @return [Symbol, Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute, nil] optional :attribute, @@ -335,6 +338,9 @@ class Condition < Lithic::Internal::Type::BaseModel # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. # # @see Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#attribute module Attribute @@ -358,6 +364,7 @@ module Attribute PIN_STATUS = :PIN_STATUS WALLET_TYPE = :WALLET_TYPE TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR + ADDRESS_MATCH = :ADDRESS_MATCH # @!method self.values # @return [Array] @@ -544,6 +551,9 @@ class Condition < Lithic::Internal::Type::BaseModel # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. # # @return [Symbol, Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute, nil] optional :attribute, @@ -625,6 +635,9 @@ class Condition < Lithic::Internal::Type::BaseModel # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. # # @see Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#attribute module Attribute @@ -648,6 +661,7 @@ module Attribute PIN_STATUS = :PIN_STATUS WALLET_TYPE = :WALLET_TYPE TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR + ADDRESS_MATCH = :ADDRESS_MATCH # @!method self.values # @return [Array] diff --git a/lib/lithic/models/auth_rules/v2_update_response.rb b/lib/lithic/models/auth_rules/v2_update_response.rb index 0d5d351b..ef75f6fa 100644 --- a/lib/lithic/models/auth_rules/v2_update_response.rb +++ b/lib/lithic/models/auth_rules/v2_update_response.rb @@ -251,6 +251,9 @@ class Condition < Lithic::Internal::Type::BaseModel # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. # # @return [Symbol, Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute, nil] optional :attribute, @@ -332,6 +335,9 @@ class Condition < Lithic::Internal::Type::BaseModel # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. # # @see Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#attribute module Attribute @@ -355,6 +361,7 @@ module Attribute PIN_STATUS = :PIN_STATUS WALLET_TYPE = :WALLET_TYPE TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR + ADDRESS_MATCH = :ADDRESS_MATCH # @!method self.values # @return [Array] @@ -540,6 +547,9 @@ class Condition < Lithic::Internal::Type::BaseModel # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. # # @return [Symbol, Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute, nil] optional :attribute, @@ -621,6 +631,9 @@ class Condition < Lithic::Internal::Type::BaseModel # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. # # @see Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition#attribute module Attribute @@ -644,6 +657,7 @@ module Attribute PIN_STATUS = :PIN_STATUS WALLET_TYPE = :WALLET_TYPE TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR + ADDRESS_MATCH = :ADDRESS_MATCH # @!method self.values # @return [Array] diff --git a/lib/lithic/models/book_transfer_response.rb b/lib/lithic/models/book_transfer_response.rb index 170fd6a4..20ba5c44 100644 --- a/lib/lithic/models/book_transfer_response.rb +++ b/lib/lithic/models/book_transfer_response.rb @@ -5,8 +5,7 @@ module Models # @see Lithic::Resources::BookTransfers#create class BookTransferResponse < Lithic::Internal::Type::BaseModel # @!attribute token - # Customer-provided token that will serve as an idempotency token. This token will - # become the transaction token. + # Unique identifier for the transaction # # @return [String] required :token, String @@ -17,39 +16,33 @@ class BookTransferResponse < Lithic::Internal::Type::BaseModel required :category, enum: -> { Lithic::BookTransferResponse::Category } # @!attribute created - # Date and time when the transfer occurred. UTC time zone. + # ISO 8601 timestamp of when the transaction was created # # @return [Time] required :created, Time # @!attribute currency # 3-character alphabetic ISO 4217 code for the settling currency of the - # transaction. + # transaction # # @return [String] required :currency, String # @!attribute events - # A list of all financial events that have modified this transfer. + # A list of all financial events that have modified this transfer # # @return [Array] required :events, -> { Lithic::Internal::Type::ArrayOf[Lithic::BookTransferResponse::Event] } - # @!attribute external_id - # External ID defined by the customer - # - # @return [String, nil] - required :external_id, String, nil?: true - - # @!attribute external_resource - # External resource associated with the management operation + # @!attribute family + # TRANSFER - Book Transfer Transaction # - # @return [Lithic::Models::ExternalResource, nil] - required :external_resource, -> { Lithic::ExternalResource }, nil?: true + # @return [Symbol, :TRANSFER] + required :family, const: :TRANSFER # @!attribute from_financial_account_token # Globally unique identifier for the financial account or card that will send the - # funds. Accepted type dependent on the program's use case. + # funds. Accepted type dependent on the program's use case # # @return [String] required :from_financial_account_token, String @@ -71,57 +64,63 @@ class BookTransferResponse < Lithic::Internal::Type::BaseModel # @!attribute settled_amount # Amount of the transaction that has been settled in the currency's smallest unit - # (e.g., cents). + # (e.g., cents) # # @return [Integer] required :settled_amount, Integer # @!attribute status - # Status types: - # - # - `DECLINED` - The transfer was declined. - # - `REVERSED` - The transfer was reversed - # - `SETTLED` - The transfer is completed. + # The status of the transaction # # @return [Symbol, Lithic::Models::BookTransferResponse::Status] required :status, enum: -> { Lithic::BookTransferResponse::Status } # @!attribute to_financial_account_token # Globally unique identifier for the financial account or card that will receive - # the funds. Accepted type dependent on the program's use case. + # the funds. Accepted type dependent on the program's use case # # @return [String] required :to_financial_account_token, String - # @!attribute transaction_series - # A series of transactions that are grouped together. - # - # @return [Lithic::Models::BookTransferResponse::TransactionSeries, nil] - required :transaction_series, -> { Lithic::BookTransferResponse::TransactionSeries }, nil?: true - # @!attribute updated - # Date and time when the financial transaction was last updated. UTC time zone. + # ISO 8601 timestamp of when the transaction was last updated # # @return [Time] required :updated, Time - # @!method initialize(token:, category:, created:, currency:, events:, external_id:, external_resource:, from_financial_account_token:, pending_amount:, result:, settled_amount:, status:, to_financial_account_token:, transaction_series:, updated:) + # @!attribute external_id + # External ID defined by the customer + # + # @return [String, nil] + optional :external_id, String, nil?: true + + # @!attribute external_resource + # External resource associated with the management operation + # + # @return [Lithic::Models::ExternalResource, nil] + optional :external_resource, -> { Lithic::ExternalResource }, nil?: true + + # @!attribute transaction_series + # A series of transactions that are grouped together + # + # @return [Lithic::Models::BookTransferResponse::TransactionSeries, nil] + optional :transaction_series, -> { Lithic::BookTransferResponse::TransactionSeries }, nil?: true + + # @!method initialize(token:, category:, created:, currency:, events:, from_financial_account_token:, pending_amount:, result:, settled_amount:, status:, to_financial_account_token:, updated:, external_id: nil, external_resource: nil, transaction_series: nil, family: :TRANSFER) # Some parameter documentations has been truncated, see # {Lithic::Models::BookTransferResponse} for more details. # - # @param token [String] Customer-provided token that will serve as an idempotency token. This token will + # Book transfer transaction + # + # @param token [String] Unique identifier for the transaction # # @param category [Symbol, Lithic::Models::BookTransferResponse::Category] # - # @param created [Time] Date and time when the transfer occurred. UTC time zone. + # @param created [Time] ISO 8601 timestamp of when the transaction was created # # @param currency [String] 3-character alphabetic ISO 4217 code for the settling currency of the transactio # - # @param events [Array] A list of all financial events that have modified this transfer. - # - # @param external_id [String, nil] External ID defined by the customer - # - # @param external_resource [Lithic::Models::ExternalResource, nil] External resource associated with the management operation + # @param events [Array] A list of all financial events that have modified this transfer # # @param from_financial_account_token [String] Globally unique identifier for the financial account or card that will send the # @@ -131,13 +130,19 @@ class BookTransferResponse < Lithic::Internal::Type::BaseModel # # @param settled_amount [Integer] Amount of the transaction that has been settled in the currency's smallest unit # - # @param status [Symbol, Lithic::Models::BookTransferResponse::Status] Status types: + # @param status [Symbol, Lithic::Models::BookTransferResponse::Status] The status of the transaction # # @param to_financial_account_token [String] Globally unique identifier for the financial account or card that will receive t # - # @param transaction_series [Lithic::Models::BookTransferResponse::TransactionSeries, nil] A series of transactions that are grouped together. + # @param updated [Time] ISO 8601 timestamp of when the transaction was last updated + # + # @param external_id [String, nil] External ID defined by the customer + # + # @param external_resource [Lithic::Models::ExternalResource, nil] External resource associated with the management operation + # + # @param transaction_series [Lithic::Models::BookTransferResponse::TransactionSeries, nil] A series of transactions that are grouped together # - # @param updated [Time] Date and time when the financial transaction was last updated. UTC time zone. + # @param family [Symbol, :TRANSFER] TRANSFER - Book Transfer Transaction # @see Lithic::Models::BookTransferResponse#category module Category @@ -312,19 +317,17 @@ module Result # @return [Array] end - # Status types: - # - # - `DECLINED` - The transfer was declined. - # - `REVERSED` - The transfer was reversed - # - `SETTLED` - The transfer is completed. + # The status of the transaction # # @see Lithic::Models::BookTransferResponse#status module Status extend Lithic::Internal::Type::Enum + PENDING = :PENDING + SETTLED = :SETTLED DECLINED = :DECLINED REVERSED = :REVERSED - SETTLED = :SETTLED + CANCELED = :CANCELED # @!method self.values # @return [Array] @@ -348,7 +351,7 @@ class TransactionSeries < Lithic::Internal::Type::BaseModel required :type, String # @!method initialize(related_transaction_event_token:, related_transaction_token:, type:) - # A series of transactions that are grouped together. + # A series of transactions that are grouped together # # @param related_transaction_event_token [String, nil] # @param related_transaction_token [String, nil] diff --git a/lib/lithic/models/card_provision_response.rb b/lib/lithic/models/card_provision_response.rb index 412fa802..02a1e785 100644 --- a/lib/lithic/models/card_provision_response.rb +++ b/lib/lithic/models/card_provision_response.rb @@ -5,12 +5,34 @@ module Models # @see Lithic::Resources::Cards#provision class CardProvisionResponse < Lithic::Internal::Type::BaseModel # @!attribute provisioning_payload + # Base64 encoded JSON payload representing a payment card that can be passed to a + # device's digital wallet. Applies to Google and Samsung Pay wallets. # - # @return [String, nil] - optional :provisioning_payload, String + # @return [String, Lithic::Models::ProvisionResponse, nil] + optional :provisioning_payload, union: -> { Lithic::Models::CardProvisionResponse::ProvisioningPayload } # @!method initialize(provisioning_payload: nil) - # @param provisioning_payload [String] + # Some parameter documentations has been truncated, see + # {Lithic::Models::CardProvisionResponse} for more details. + # + # @param provisioning_payload [String, Lithic::Models::ProvisionResponse] Base64 encoded JSON payload representing a payment card that can be passed to a + + # Base64 encoded JSON payload representing a payment card that can be passed to a + # device's digital wallet. Applies to Google and Samsung Pay wallets. + # + # @see Lithic::Models::CardProvisionResponse#provisioning_payload + module ProvisioningPayload + extend Lithic::Internal::Type::Union + + # Base64 encoded JSON payload representing a payment card that can be passed to a device's digital wallet. Applies to Google and Samsung Pay wallets. + variant String + + # Object containing the fields required to add a card to Apple Pay. Applies only to Apple Pay wallet. + variant -> { Lithic::ProvisionResponse } + + # @!method self.variants + # @return [Array(String, Lithic::Models::ProvisionResponse)] + end end end end diff --git a/lib/lithic/models/event.rb b/lib/lithic/models/event.rb index a32c1868..79e10dec 100644 --- a/lib/lithic/models/event.rb +++ b/lib/lithic/models/event.rb @@ -112,7 +112,6 @@ module EventType ACCOUNT_HOLDER_CREATED = :"account_holder.created" ACCOUNT_HOLDER_UPDATED = :"account_holder.updated" ACCOUNT_HOLDER_VERIFICATION = :"account_holder.verification" - AUTH_RULES_PERFORMANCE_REPORT_CREATED = :"auth_rules.performance_report.created" BALANCE_UPDATED = :"balance.updated" BOOK_TRANSFER_TRANSACTION_CREATED = :"book_transfer_transaction.created" CARD_CREATED = :"card.created" diff --git a/lib/lithic/models/event_list_params.rb b/lib/lithic/models/event_list_params.rb index b5cca2f3..cef0e44e 100644 --- a/lib/lithic/models/event_list_params.rb +++ b/lib/lithic/models/event_list_params.rb @@ -79,7 +79,6 @@ module EventType ACCOUNT_HOLDER_CREATED = :"account_holder.created" ACCOUNT_HOLDER_UPDATED = :"account_holder.updated" ACCOUNT_HOLDER_VERIFICATION = :"account_holder.verification" - AUTH_RULES_PERFORMANCE_REPORT_CREATED = :"auth_rules.performance_report.created" BALANCE_UPDATED = :"balance.updated" BOOK_TRANSFER_TRANSACTION_CREATED = :"book_transfer_transaction.created" CARD_CREATED = :"card.created" diff --git a/lib/lithic/models/event_subscription.rb b/lib/lithic/models/event_subscription.rb index e5344b45..7c5b7a1e 100644 --- a/lib/lithic/models/event_subscription.rb +++ b/lib/lithic/models/event_subscription.rb @@ -52,7 +52,6 @@ module EventType ACCOUNT_HOLDER_CREATED = :"account_holder.created" ACCOUNT_HOLDER_UPDATED = :"account_holder.updated" ACCOUNT_HOLDER_VERIFICATION = :"account_holder.verification" - AUTH_RULES_PERFORMANCE_REPORT_CREATED = :"auth_rules.performance_report.created" BALANCE_UPDATED = :"balance.updated" BOOK_TRANSFER_TRANSACTION_CREATED = :"book_transfer_transaction.created" CARD_CREATED = :"card.created" diff --git a/lib/lithic/models/events/subscription_create_params.rb b/lib/lithic/models/events/subscription_create_params.rb index a5130233..287b57aa 100644 --- a/lib/lithic/models/events/subscription_create_params.rb +++ b/lib/lithic/models/events/subscription_create_params.rb @@ -54,7 +54,6 @@ module EventType ACCOUNT_HOLDER_CREATED = :"account_holder.created" ACCOUNT_HOLDER_UPDATED = :"account_holder.updated" ACCOUNT_HOLDER_VERIFICATION = :"account_holder.verification" - AUTH_RULES_PERFORMANCE_REPORT_CREATED = :"auth_rules.performance_report.created" BALANCE_UPDATED = :"balance.updated" BOOK_TRANSFER_TRANSACTION_CREATED = :"book_transfer_transaction.created" CARD_CREATED = :"card.created" diff --git a/lib/lithic/models/events/subscription_send_simulated_example_params.rb b/lib/lithic/models/events/subscription_send_simulated_example_params.rb index bba142e0..7e3b27b4 100644 --- a/lib/lithic/models/events/subscription_send_simulated_example_params.rb +++ b/lib/lithic/models/events/subscription_send_simulated_example_params.rb @@ -26,7 +26,6 @@ module EventType ACCOUNT_HOLDER_CREATED = :"account_holder.created" ACCOUNT_HOLDER_UPDATED = :"account_holder.updated" ACCOUNT_HOLDER_VERIFICATION = :"account_holder.verification" - AUTH_RULES_PERFORMANCE_REPORT_CREATED = :"auth_rules.performance_report.created" BALANCE_UPDATED = :"balance.updated" BOOK_TRANSFER_TRANSACTION_CREATED = :"book_transfer_transaction.created" CARD_CREATED = :"card.created" diff --git a/lib/lithic/models/events/subscription_update_params.rb b/lib/lithic/models/events/subscription_update_params.rb index 49873ca2..a923a811 100644 --- a/lib/lithic/models/events/subscription_update_params.rb +++ b/lib/lithic/models/events/subscription_update_params.rb @@ -54,7 +54,6 @@ module EventType ACCOUNT_HOLDER_CREATED = :"account_holder.created" ACCOUNT_HOLDER_UPDATED = :"account_holder.updated" ACCOUNT_HOLDER_VERIFICATION = :"account_holder.verification" - AUTH_RULES_PERFORMANCE_REPORT_CREATED = :"auth_rules.performance_report.created" BALANCE_UPDATED = :"balance.updated" BOOK_TRANSFER_TRANSACTION_CREATED = :"book_transfer_transaction.created" CARD_CREATED = :"card.created" diff --git a/lib/lithic/models/external_bank_account_create_params.rb b/lib/lithic/models/external_bank_account_create_params.rb index e126c133..b0f9c25a 100644 --- a/lib/lithic/models/external_bank_account_create_params.rb +++ b/lib/lithic/models/external_bank_account_create_params.rb @@ -112,12 +112,7 @@ class ExternalBankAccountCreateParams < Lithic::Internal::Type::BaseModel # @return [Boolean, nil] optional :verification_enforcement, Lithic::Internal::Type::Boolean - # @!attribute processor_token - # - # @return [String] - required :processor_token, String - - # @!method initialize(account_number:, country:, currency:, financial_account_token:, owner:, owner_type:, routing_number:, type:, verification_method:, processor_token:, account_token: nil, address: nil, company_id: nil, dob: nil, doing_business_as: nil, name: nil, user_defined_id: nil, verification_enforcement: nil, request_options: {}) + # @!method initialize(account_number:, country:, currency:, financial_account_token:, owner:, owner_type:, routing_number:, type:, verification_method:, account_token: nil, address: nil, company_id: nil, dob: nil, doing_business_as: nil, name: nil, user_defined_id: nil, verification_enforcement: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Lithic::Models::ExternalBankAccountCreateParams} for more details. # @@ -139,8 +134,6 @@ class ExternalBankAccountCreateParams < Lithic::Internal::Type::BaseModel # # @param verification_method [Symbol, Lithic::Models::ExternalBankAccountCreateParams::VerificationMethod] Verification Method # - # @param processor_token [String] - # # @param account_token [String] Indicates which Lithic account the external account is associated with. For exte # # @param address [Lithic::Models::ExternalBankAccountAddress] Address diff --git a/lib/lithic/models/external_payment.rb b/lib/lithic/models/external_payment.rb index 824990dc..5ae10951 100644 --- a/lib/lithic/models/external_payment.rb +++ b/lib/lithic/models/external_payment.rb @@ -16,11 +16,6 @@ class ExternalPayment < Lithic::Internal::Type::BaseModel # @return [Time] required :created, Time - # @!attribute family - # - # @return [Symbol, Lithic::Models::ExternalPayment::Family] - required :family, enum: -> { Lithic::ExternalPayment::Family } - # @!attribute status # The status of the transaction # @@ -48,6 +43,12 @@ class ExternalPayment < Lithic::Internal::Type::BaseModel # @return [Array, nil] optional :events, -> { Lithic::Internal::Type::ArrayOf[Lithic::ExternalPayment::Event] } + # @!attribute family + # EXTERNAL_PAYMENT - External Payment Response + # + # @return [Symbol, Lithic::Models::ExternalPayment::Family, nil] + optional :family, enum: -> { Lithic::ExternalPayment::Family } + # @!attribute financial_account_token # # @return [String, nil] @@ -78,13 +79,11 @@ class ExternalPayment < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :user_defined_id, String - # @!method initialize(token:, created:, family:, status:, updated:, category: nil, currency: nil, events: nil, financial_account_token: nil, payment_type: nil, pending_amount: nil, result: nil, settled_amount: nil, user_defined_id: nil) + # @!method 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) # @param token [String] Unique identifier for the transaction # # @param created [Time] ISO 8601 timestamp of when the transaction was created # - # @param family [Symbol, Lithic::Models::ExternalPayment::Family] - # # @param status [Symbol, Lithic::Models::ExternalPayment::Status] The status of the transaction # # @param updated [Time] ISO 8601 timestamp of when the transaction was last updated @@ -95,6 +94,8 @@ class ExternalPayment < Lithic::Internal::Type::BaseModel # # @param events [Array] # + # @param family [Symbol, Lithic::Models::ExternalPayment::Family] EXTERNAL_PAYMENT - External Payment Response + # # @param financial_account_token [String] # # @param payment_type [Symbol, Lithic::Models::ExternalPayment::PaymentType] @@ -107,21 +108,6 @@ class ExternalPayment < Lithic::Internal::Type::BaseModel # # @param user_defined_id [String] - # @see Lithic::Models::ExternalPayment#family - module Family - extend Lithic::Internal::Type::Enum - - CARD = :CARD - PAYMENT = :PAYMENT - TRANSFER = :TRANSFER - INTERNAL = :INTERNAL - EXTERNAL_PAYMENT = :EXTERNAL_PAYMENT - MANAGEMENT_OPERATION = :MANAGEMENT_OPERATION - - # @!method self.values - # @return [Array] - end - # The status of the transaction # # @see Lithic::Models::ExternalPayment#status @@ -254,6 +240,18 @@ module Type end end + # EXTERNAL_PAYMENT - External Payment Response + # + # @see Lithic::Models::ExternalPayment#family + module Family + extend Lithic::Internal::Type::Enum + + EXTERNAL_PAYMENT = :EXTERNAL_PAYMENT + + # @!method self.values + # @return [Array] + end + # @see Lithic::Models::ExternalPayment#payment_type module PaymentType extend Lithic::Internal::Type::Enum diff --git a/lib/lithic/models/financial_account.rb b/lib/lithic/models/financial_account.rb index 734eb586..a4e48108 100644 --- a/lib/lithic/models/financial_account.rb +++ b/lib/lithic/models/financial_account.rb @@ -95,13 +95,11 @@ class FinancialAccount < Lithic::Internal::Type::BaseModel # @see Lithic::Models::FinancialAccount#credit_configuration class CreditConfiguration < Lithic::Internal::Type::BaseModel - # @!attribute charged_off_reason - # Reason for the financial account being marked as Charged Off + # @!attribute auto_collection_configuration # - # @return [Symbol, Lithic::Models::FinancialAccount::CreditConfiguration::ChargedOffReason, nil] - required :charged_off_reason, - enum: -> { Lithic::FinancialAccount::CreditConfiguration::ChargedOffReason }, - nil?: true + # @return [Lithic::Models::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration] + required :auto_collection_configuration, + -> { Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration } # @!attribute credit_limit # @@ -119,33 +117,40 @@ class CreditConfiguration < Lithic::Internal::Type::BaseModel # @return [String, nil] required :external_bank_account_token, String, nil?: true + # @!attribute tier + # Tier assigned to the financial account + # + # @return [String, nil] + required :tier, String, nil?: true + + # @!attribute charged_off_reason + # @deprecated + # + # Reason for the financial account being marked as Charged Off + # + # @return [Symbol, Lithic::Models::FinancialAccount::CreditConfiguration::ChargedOffReason, nil] + optional :charged_off_reason, + enum: -> { Lithic::FinancialAccount::CreditConfiguration::ChargedOffReason }, + nil?: true + # @!attribute financial_account_state + # @deprecated + # # State of the financial account # # @return [Symbol, Lithic::Models::FinancialAccount::CreditConfiguration::FinancialAccountState, nil] - required :financial_account_state, + optional :financial_account_state, enum: -> { Lithic::FinancialAccount::CreditConfiguration::FinancialAccountState }, nil?: true # @!attribute is_spend_blocked + # @deprecated # - # @return [Boolean] - required :is_spend_blocked, Lithic::Internal::Type::Boolean + # @return [Boolean, nil] + optional :is_spend_blocked, Lithic::Internal::Type::Boolean - # @!attribute tier - # Tier assigned to the financial account - # - # @return [String, nil] - required :tier, String, nil?: true - - # @!attribute auto_collection_configuration - # - # @return [Lithic::Models::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration, nil] - optional :auto_collection_configuration, - -> { Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration } - - # @!method initialize(charged_off_reason:, credit_limit:, credit_product_token:, external_bank_account_token:, financial_account_state:, is_spend_blocked:, tier:, auto_collection_configuration: nil) - # @param charged_off_reason [Symbol, Lithic::Models::FinancialAccount::CreditConfiguration::ChargedOffReason, nil] Reason for the financial account being marked as Charged Off + # @!method initialize(auto_collection_configuration:, credit_limit:, credit_product_token:, external_bank_account_token:, tier:, charged_off_reason: nil, financial_account_state: nil, is_spend_blocked: nil) + # @param auto_collection_configuration [Lithic::Models::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration] # # @param credit_limit [Integer, nil] # @@ -153,14 +158,28 @@ class CreditConfiguration < Lithic::Internal::Type::BaseModel # # @param external_bank_account_token [String, nil] # - # @param financial_account_state [Symbol, Lithic::Models::FinancialAccount::CreditConfiguration::FinancialAccountState, nil] State of the financial account + # @param tier [String, nil] Tier assigned to the financial account # - # @param is_spend_blocked [Boolean] + # @param charged_off_reason [Symbol, Lithic::Models::FinancialAccount::CreditConfiguration::ChargedOffReason, nil] Reason for the financial account being marked as Charged Off # - # @param tier [String, nil] Tier assigned to the financial account + # @param financial_account_state [Symbol, Lithic::Models::FinancialAccount::CreditConfiguration::FinancialAccountState, nil] State of the financial account # - # @param auto_collection_configuration [Lithic::Models::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration] + # @param is_spend_blocked [Boolean] + + # @see Lithic::Models::FinancialAccount::CreditConfiguration#auto_collection_configuration + class AutoCollectionConfiguration < Lithic::Internal::Type::BaseModel + # @!attribute auto_collection_enabled + # If auto collection is enabled for this account + # + # @return [Boolean] + required :auto_collection_enabled, Lithic::Internal::Type::Boolean + + # @!method initialize(auto_collection_enabled:) + # @param auto_collection_enabled [Boolean] If auto collection is enabled for this account + end + # @deprecated + # # Reason for the financial account being marked as Charged Off # # @see Lithic::Models::FinancialAccount::CreditConfiguration#charged_off_reason @@ -174,6 +193,8 @@ module ChargedOffReason # @return [Array] end + # @deprecated + # # State of the financial account # # @see Lithic::Models::FinancialAccount::CreditConfiguration#financial_account_state @@ -188,18 +209,6 @@ module FinancialAccountState # @!method self.values # @return [Array] end - - # @see Lithic::Models::FinancialAccount::CreditConfiguration#auto_collection_configuration - class AutoCollectionConfiguration < Lithic::Internal::Type::BaseModel - # @!attribute auto_collection_enabled - # If auto collection is enabled for this account - # - # @return [Boolean] - required :auto_collection_enabled, Lithic::Internal::Type::Boolean - - # @!method initialize(auto_collection_enabled:) - # @param auto_collection_enabled [Boolean] If auto collection is enabled for this account - end end # Status of the financial account diff --git a/lib/lithic/models/financial_accounts/financial_account_credit_config.rb b/lib/lithic/models/financial_accounts/financial_account_credit_config.rb index 8460ca4b..f698e422 100644 --- a/lib/lithic/models/financial_accounts/financial_account_credit_config.rb +++ b/lib/lithic/models/financial_accounts/financial_account_credit_config.rb @@ -17,14 +17,6 @@ class FinancialAccountCreditConfig < Lithic::Internal::Type::BaseModel required :auto_collection_configuration, -> { Lithic::FinancialAccounts::FinancialAccountCreditConfig::AutoCollectionConfiguration } - # @!attribute charged_off_reason - # Reason for the financial account being marked as Charged Off - # - # @return [Symbol, Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason, nil] - required :charged_off_reason, - enum: -> { Lithic::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason }, - nil?: true - # @!attribute credit_limit # # @return [Integer, nil] @@ -41,42 +33,55 @@ class FinancialAccountCreditConfig < Lithic::Internal::Type::BaseModel # @return [String, nil] required :external_bank_account_token, String, nil?: true + # @!attribute tier + # Tier assigned to the financial account + # + # @return [String, nil] + required :tier, String, nil?: true + + # @!attribute charged_off_reason + # @deprecated + # + # Reason for the financial account being marked as Charged Off + # + # @return [Symbol, Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason, nil] + optional :charged_off_reason, + enum: -> { Lithic::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason }, + nil?: true + # @!attribute financial_account_state + # @deprecated + # # State of the financial account # - # @return [Symbol, Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState] - required :financial_account_state, + # @return [Symbol, Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState, nil] + optional :financial_account_state, enum: -> { Lithic::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState } # @!attribute is_spend_blocked + # @deprecated # - # @return [Boolean] - required :is_spend_blocked, Lithic::Internal::Type::Boolean - - # @!attribute tier - # Tier assigned to the financial account - # - # @return [String, nil] - required :tier, String, nil?: true + # @return [Boolean, nil] + optional :is_spend_blocked, Lithic::Internal::Type::Boolean - # @!method initialize(account_token:, auto_collection_configuration:, charged_off_reason:, credit_limit:, credit_product_token:, external_bank_account_token:, financial_account_state:, is_spend_blocked:, tier:) + # @!method initialize(account_token:, auto_collection_configuration:, credit_limit:, credit_product_token:, external_bank_account_token:, tier:, charged_off_reason: nil, financial_account_state: nil, is_spend_blocked: nil) # @param account_token [String] Globally unique identifier for the account # # @param auto_collection_configuration [Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::AutoCollectionConfiguration] # - # @param charged_off_reason [Symbol, Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason, nil] Reason for the financial account being marked as Charged Off - # # @param credit_limit [Integer, nil] # # @param credit_product_token [String, nil] Globally unique identifier for the credit product # # @param external_bank_account_token [String, nil] # + # @param tier [String, nil] Tier assigned to the financial account + # + # @param charged_off_reason [Symbol, Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason, nil] Reason for the financial account being marked as Charged Off + # # @param financial_account_state [Symbol, Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState] State of the financial account # # @param is_spend_blocked [Boolean] - # - # @param tier [String, nil] Tier assigned to the financial account # @see Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig#auto_collection_configuration class AutoCollectionConfiguration < Lithic::Internal::Type::BaseModel @@ -90,6 +95,8 @@ class AutoCollectionConfiguration < Lithic::Internal::Type::BaseModel # @param auto_collection_enabled [Boolean] If auto collection is enabled for this account end + # @deprecated + # # Reason for the financial account being marked as Charged Off # # @see Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig#charged_off_reason @@ -103,6 +110,8 @@ module ChargedOffReason # @return [Array] end + # @deprecated + # # State of the financial account # # @see Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig#financial_account_state diff --git a/lib/lithic/models/management_operation_transaction.rb b/lib/lithic/models/management_operation_transaction.rb index 3daf2b76..837ceade 100644 --- a/lib/lithic/models/management_operation_transaction.rb +++ b/lib/lithic/models/management_operation_transaction.rb @@ -16,11 +16,6 @@ class ManagementOperationTransaction < Lithic::Internal::Type::BaseModel # @return [Time] required :created, Time - # @!attribute family - # - # @return [Symbol, Lithic::Models::ManagementOperationTransaction::Family] - required :family, enum: -> { Lithic::ManagementOperationTransaction::Family } - # @!attribute status # The status of the transaction # @@ -59,6 +54,12 @@ class ManagementOperationTransaction < Lithic::Internal::Type::BaseModel # @return [Lithic::Models::ExternalResource, nil] optional :external_resource, -> { Lithic::ExternalResource }, nil?: true + # @!attribute family + # MANAGEMENT_OPERATION - Management Operation Transaction + # + # @return [Symbol, Lithic::Models::ManagementOperationTransaction::Family, nil] + optional :family, enum: -> { Lithic::ManagementOperationTransaction::Family } + # @!attribute financial_account_token # # @return [String, nil] @@ -93,13 +94,11 @@ class ManagementOperationTransaction < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :user_defined_id, String - # @!method initialize(token:, created:, family:, status:, updated:, category: nil, currency: nil, direction: nil, events: nil, external_resource: nil, financial_account_token: nil, pending_amount: nil, result: nil, settled_amount: nil, transaction_series: nil, user_defined_id: nil) + # @!method initialize(token:, created:, status:, updated:, category: nil, currency: nil, direction: nil, events: nil, external_resource: nil, family: nil, financial_account_token: nil, pending_amount: nil, result: nil, settled_amount: nil, transaction_series: nil, user_defined_id: nil) # @param token [String] Unique identifier for the transaction # # @param created [Time] ISO 8601 timestamp of when the transaction was created # - # @param family [Symbol, Lithic::Models::ManagementOperationTransaction::Family] - # # @param status [Symbol, Lithic::Models::ManagementOperationTransaction::Status] The status of the transaction # # @param updated [Time] ISO 8601 timestamp of when the transaction was last updated @@ -114,6 +113,8 @@ class ManagementOperationTransaction < Lithic::Internal::Type::BaseModel # # @param external_resource [Lithic::Models::ExternalResource, nil] External resource associated with the management operation # + # @param family [Symbol, Lithic::Models::ManagementOperationTransaction::Family] MANAGEMENT_OPERATION - Management Operation Transaction + # # @param financial_account_token [String] # # @param pending_amount [Integer] @@ -126,21 +127,6 @@ class ManagementOperationTransaction < Lithic::Internal::Type::BaseModel # # @param user_defined_id [String] - # @see Lithic::Models::ManagementOperationTransaction#family - module Family - extend Lithic::Internal::Type::Enum - - CARD = :CARD - PAYMENT = :PAYMENT - TRANSFER = :TRANSFER - INTERNAL = :INTERNAL - EXTERNAL_PAYMENT = :EXTERNAL_PAYMENT - MANAGEMENT_OPERATION = :MANAGEMENT_OPERATION - - # @!method self.values - # @return [Array] - end - # The status of the transaction # # @see Lithic::Models::ManagementOperationTransaction#status @@ -290,6 +276,18 @@ module Type end end + # MANAGEMENT_OPERATION - Management Operation Transaction + # + # @see Lithic::Models::ManagementOperationTransaction#family + module Family + extend Lithic::Internal::Type::Enum + + MANAGEMENT_OPERATION = :MANAGEMENT_OPERATION + + # @!method self.values + # @return [Array] + end + # @see Lithic::Models::ManagementOperationTransaction#result module Result extend Lithic::Internal::Type::Enum diff --git a/lib/lithic/models/payment.rb b/lib/lithic/models/payment.rb index c68d9cc7..6aa3793b 100644 --- a/lib/lithic/models/payment.rb +++ b/lib/lithic/models/payment.rb @@ -5,192 +5,214 @@ module Models # @see Lithic::Resources::Payments#retrieve class Payment < Lithic::Internal::Type::BaseModel # @!attribute token - # Globally unique identifier. + # Unique identifier for the transaction # # @return [String] required :token, String # @!attribute category - # Payment category + # Transaction category # # @return [Symbol, Lithic::Models::Payment::Category] required :category, enum: -> { Lithic::Payment::Category } # @!attribute created - # Date and time when the payment first occurred. UTC time zone. + # ISO 8601 timestamp of when the transaction was created # # @return [Time] required :created, Time - # @!attribute currency - # 3-character alphabetic ISO 4217 code for the settling currency of the payment. - # - # @return [String] - required :currency, String - # @!attribute descriptor - # A string that provides a description of the payment; may be useful to display to - # users. + # Transaction descriptor # # @return [String] required :descriptor, String # @!attribute direction + # Transfer direction # # @return [Symbol, Lithic::Models::Payment::Direction] required :direction, enum: -> { Lithic::Payment::Direction } # @!attribute events - # A list of all payment events that have modified this payment. + # List of transaction events # # @return [Array] required :events, -> { Lithic::Internal::Type::ArrayOf[Lithic::Payment::Event] } - # @!attribute external_bank_account_token + # @!attribute family + # PAYMENT - Payment Transaction # - # @return [String, nil] - required :external_bank_account_token, String, nil?: true + # @return [Symbol, :PAYMENT] + required :family, const: :PAYMENT # @!attribute financial_account_token + # Financial account token # # @return [String] required :financial_account_token, String # @!attribute method_ + # Transfer method # # @return [Symbol, Lithic::Models::Payment::Method] required :method_, enum: -> { Lithic::Payment::Method }, api_name: :method # @!attribute method_attributes + # Method-specific attributes # - # @return [Lithic::Models::Payment::MethodAttributes] - required :method_attributes, -> { Lithic::Payment::MethodAttributes } + # @return [Lithic::Models::Payment::MethodAttributes::ACHMethodAttributes, Lithic::Models::Payment::MethodAttributes::WireMethodAttributes] + required :method_attributes, union: -> { Lithic::Payment::MethodAttributes } # @!attribute pending_amount - # Pending amount of the payment in the currency's smallest unit (e.g., cents). The - # value of this field will go to zero over time once the payment is settled. + # Pending amount in cents # # @return [Integer] required :pending_amount, Integer # @!attribute related_account_tokens - # Account tokens related to a payment transaction + # Related account tokens for the transaction # # @return [Lithic::Models::Payment::RelatedAccountTokens] required :related_account_tokens, -> { Lithic::Payment::RelatedAccountTokens } # @!attribute result - # APPROVED payments were successful while DECLINED payments were declined by - # Lithic or returned. + # Transaction result # # @return [Symbol, Lithic::Models::Payment::Result] required :result, enum: -> { Lithic::Payment::Result } # @!attribute settled_amount - # Amount of the payment that has been settled in the currency's smallest unit - # (e.g., cents). + # Settled amount in cents # # @return [Integer] required :settled_amount, Integer # @!attribute source + # Transaction source # # @return [Symbol, Lithic::Models::Payment::Source] required :source, enum: -> { Lithic::Payment::Source } # @!attribute status - # Status types: - # - # - `DECLINED` - The payment was declined. - # - `PENDING` - The payment is being processed and has yet to settle or release - # (origination debit). - # - `RETURNED` - The payment has been returned. - # - `SETTLED` - The payment is completed. + # The status of the transaction # # @return [Symbol, Lithic::Models::Payment::Status] required :status, enum: -> { Lithic::Payment::Status } # @!attribute updated - # Date and time when the financial transaction was last updated. UTC time zone. + # ISO 8601 timestamp of when the transaction was last updated # # @return [Time] required :updated, Time - # @!attribute user_defined_id + # @!attribute currency + # Currency of the transaction in ISO 4217 format # # @return [String, nil] - required :user_defined_id, String, nil?: true + optional :currency, String # @!attribute expected_release_date - # Date when the financial transaction expected to be released after settlement + # Expected release date for the transaction # # @return [Date, nil] - optional :expected_release_date, Date + optional :expected_release_date, Date, nil?: true + + # @!attribute external_bank_account_token + # External bank account token + # + # @return [String, nil] + optional :external_bank_account_token, String, nil?: true # @!attribute type - # Payment type indicating the specific ACH message or Fedwire transfer type # # @return [Symbol, Lithic::Models::Payment::Type, nil] optional :type, enum: -> { Lithic::Payment::Type } - # @!method initialize(token:, category:, created:, currency:, descriptor:, direction:, events:, external_bank_account_token:, financial_account_token:, method_:, method_attributes:, pending_amount:, related_account_tokens:, result:, settled_amount:, source:, status:, updated:, user_defined_id:, expected_release_date: nil, type: nil) - # Some parameter documentations has been truncated, see {Lithic::Models::Payment} - # for more details. + # @!attribute user_defined_id + # User-defined identifier + # + # @return [String, nil] + optional :user_defined_id, String, nil?: true + + # @!method initialize(token:, category:, created:, descriptor:, direction:, events:, financial_account_token:, method_:, method_attributes:, pending_amount:, related_account_tokens:, result:, settled_amount:, source:, status:, updated:, currency: nil, expected_release_date: nil, external_bank_account_token: nil, type: nil, user_defined_id: nil, family: :PAYMENT) + # Payment transaction # - # @param token [String] Globally unique identifier. + # @param token [String] Unique identifier for the transaction # - # @param category [Symbol, Lithic::Models::Payment::Category] Payment category + # @param category [Symbol, Lithic::Models::Payment::Category] Transaction category # - # @param created [Time] Date and time when the payment first occurred. UTC time zone. + # @param created [Time] ISO 8601 timestamp of when the transaction was created # - # @param currency [String] 3-character alphabetic ISO 4217 code for the settling currency of the payment. + # @param descriptor [String] Transaction descriptor # - # @param descriptor [String] A string that provides a description of the payment; may be useful to display to + # @param direction [Symbol, Lithic::Models::Payment::Direction] Transfer direction # - # @param direction [Symbol, Lithic::Models::Payment::Direction] + # @param events [Array] List of transaction events # - # @param events [Array] A list of all payment events that have modified this payment. + # @param financial_account_token [String] Financial account token # - # @param external_bank_account_token [String, nil] + # @param method_ [Symbol, Lithic::Models::Payment::Method] Transfer method # - # @param financial_account_token [String] + # @param method_attributes [Lithic::Models::Payment::MethodAttributes::ACHMethodAttributes, Lithic::Models::Payment::MethodAttributes::WireMethodAttributes] Method-specific attributes # - # @param method_ [Symbol, Lithic::Models::Payment::Method] + # @param pending_amount [Integer] Pending amount in cents # - # @param method_attributes [Lithic::Models::Payment::MethodAttributes] + # @param related_account_tokens [Lithic::Models::Payment::RelatedAccountTokens] Related account tokens for the transaction # - # @param pending_amount [Integer] Pending amount of the payment in the currency's smallest unit (e.g., cents). + # @param result [Symbol, Lithic::Models::Payment::Result] Transaction result # - # @param related_account_tokens [Lithic::Models::Payment::RelatedAccountTokens] Account tokens related to a payment transaction + # @param settled_amount [Integer] Settled amount in cents # - # @param result [Symbol, Lithic::Models::Payment::Result] APPROVED payments were successful while DECLINED payments were declined by Lithi + # @param source [Symbol, Lithic::Models::Payment::Source] Transaction source # - # @param settled_amount [Integer] Amount of the payment that has been settled in the currency's smallest unit (e.g + # @param status [Symbol, Lithic::Models::Payment::Status] The status of the transaction # - # @param source [Symbol, Lithic::Models::Payment::Source] + # @param updated [Time] ISO 8601 timestamp of when the transaction was last updated # - # @param status [Symbol, Lithic::Models::Payment::Status] Status types: + # @param currency [String] Currency of the transaction in ISO 4217 format # - # @param updated [Time] Date and time when the financial transaction was last updated. UTC time zone. + # @param expected_release_date [Date, nil] Expected release date for the transaction # - # @param user_defined_id [String, nil] + # @param external_bank_account_token [String, nil] External bank account token # - # @param expected_release_date [Date] Date when the financial transaction expected to be released after settlement + # @param type [Symbol, Lithic::Models::Payment::Type] # - # @param type [Symbol, Lithic::Models::Payment::Type] Payment type indicating the specific ACH message or Fedwire transfer type + # @param user_defined_id [String, nil] User-defined identifier + # + # @param family [Symbol, :PAYMENT] PAYMENT - Payment Transaction - # Payment category + # Transaction category # # @see Lithic::Models::Payment#category module Category extend Lithic::Internal::Type::Enum ACH = :ACH + BALANCE_OR_FUNDING = :BALANCE_OR_FUNDING + FEE = :FEE + REWARD = :REWARD + ADJUSTMENT = :ADJUSTMENT + DERECOGNITION = :DERECOGNITION + DISPUTE = :DISPUTE + CARD = :CARD + EXTERNAL_ACH = :EXTERNAL_ACH + EXTERNAL_CHECK = :EXTERNAL_CHECK + EXTERNAL_TRANSFER = :EXTERNAL_TRANSFER + EXTERNAL_WIRE = :EXTERNAL_WIRE + MANAGEMENT_ADJUSTMENT = :MANAGEMENT_ADJUSTMENT + MANAGEMENT_DISPUTE = :MANAGEMENT_DISPUTE + MANAGEMENT_FEE = :MANAGEMENT_FEE + MANAGEMENT_REWARD = :MANAGEMENT_REWARD + MANAGEMENT_DISBURSEMENT = :MANAGEMENT_DISBURSEMENT + PROGRAM_FUNDING = :PROGRAM_FUNDING # @!method self.values # @return [Array] end + # Transfer direction + # # @see Lithic::Models::Payment#direction module Direction extend Lithic::Internal::Type::Enum @@ -349,74 +371,175 @@ module DetailedResult end end + # Transfer method + # # @see Lithic::Models::Payment#method_ module Method extend Lithic::Internal::Type::Enum ACH_NEXT_DAY = :ACH_NEXT_DAY ACH_SAME_DAY = :ACH_SAME_DAY + WIRE = :WIRE # @!method self.values # @return [Array] end + # Method-specific attributes + # # @see Lithic::Models::Payment#method_attributes - class MethodAttributes < Lithic::Internal::Type::BaseModel - # @!attribute company_id - # - # @return [String, nil] - required :company_id, String, nil?: true - - # @!attribute receipt_routing_number - # - # @return [String, nil] - required :receipt_routing_number, String, nil?: true - - # @!attribute retries - # - # @return [Integer, nil] - required :retries, Integer, nil?: true - - # @!attribute return_reason_code - # - # @return [String, nil] - required :return_reason_code, String, nil?: true - - # @!attribute sec_code - # - # @return [Symbol, Lithic::Models::Payment::MethodAttributes::SecCode] - required :sec_code, enum: -> { Lithic::Payment::MethodAttributes::SecCode } - - # @!attribute trace_numbers - # - # @return [Array] - required :trace_numbers, Lithic::Internal::Type::ArrayOf[String, nil?: true] - - # @!attribute addenda - # - # @return [String, nil] - optional :addenda, String, nil?: true - - # @!method initialize(company_id:, receipt_routing_number:, retries:, return_reason_code:, sec_code:, trace_numbers:, addenda: nil) - # @param company_id [String, nil] - # @param receipt_routing_number [String, nil] - # @param retries [Integer, nil] - # @param return_reason_code [String, nil] - # @param sec_code [Symbol, Lithic::Models::Payment::MethodAttributes::SecCode] - # @param trace_numbers [Array] - # @param addenda [String, nil] - - # @see Lithic::Models::Payment::MethodAttributes#sec_code - module SecCode - extend Lithic::Internal::Type::Enum - - CCD = :CCD - PPD = :PPD - WEB = :WEB + module MethodAttributes + extend Lithic::Internal::Type::Union + + variant -> { Lithic::Payment::MethodAttributes::ACHMethodAttributes } + + variant -> { Lithic::Payment::MethodAttributes::WireMethodAttributes } + + class ACHMethodAttributes < Lithic::Internal::Type::BaseModel + # @!attribute sec_code + # SEC code for ACH transaction + # + # @return [Symbol, Lithic::Models::Payment::MethodAttributes::ACHMethodAttributes::SecCode] + required :sec_code, enum: -> { Lithic::Payment::MethodAttributes::ACHMethodAttributes::SecCode } + + # @!attribute addenda + # Addenda information + # + # @return [String, nil] + optional :addenda, String, nil?: true + + # @!attribute company_id + # Company ID for the ACH transaction + # + # @return [String, nil] + optional :company_id, String, nil?: true + + # @!attribute receipt_routing_number + # Receipt routing number + # + # @return [String, nil] + optional :receipt_routing_number, String, nil?: true + + # @!attribute retries + # Number of retries attempted + # + # @return [Integer, nil] + optional :retries, Integer, nil?: true + + # @!attribute return_reason_code + # Return reason code if the transaction was returned + # + # @return [String, nil] + optional :return_reason_code, String, nil?: true + + # @!attribute trace_numbers + # Trace numbers for the ACH transaction + # + # @return [Array, nil] + optional :trace_numbers, Lithic::Internal::Type::ArrayOf[String] + + # @!method initialize(sec_code:, addenda: nil, company_id: nil, receipt_routing_number: nil, retries: nil, return_reason_code: nil, trace_numbers: nil) + # @param sec_code [Symbol, Lithic::Models::Payment::MethodAttributes::ACHMethodAttributes::SecCode] SEC code for ACH transaction + # + # @param addenda [String, nil] Addenda information + # + # @param company_id [String, nil] Company ID for the ACH transaction + # + # @param receipt_routing_number [String, nil] Receipt routing number + # + # @param retries [Integer, nil] Number of retries attempted + # + # @param return_reason_code [String, nil] Return reason code if the transaction was returned + # + # @param trace_numbers [Array] Trace numbers for the ACH transaction + + # SEC code for ACH transaction + # + # @see Lithic::Models::Payment::MethodAttributes::ACHMethodAttributes#sec_code + module SecCode + extend Lithic::Internal::Type::Enum + + CCD = :CCD + PPD = :PPD + WEB = :WEB + TEL = :TEL + CIE = :CIE + CTX = :CTX + + # @!method self.values + # @return [Array] + end + end - # @!method self.values - # @return [Array] + class WireMethodAttributes < Lithic::Internal::Type::BaseModel + # @!attribute wire_network + # Type of wire transfer + # + # @return [Symbol, Lithic::Models::Payment::MethodAttributes::WireMethodAttributes::WireNetwork] + required :wire_network, enum: -> { Lithic::Payment::MethodAttributes::WireMethodAttributes::WireNetwork } + + # @!attribute creditor + # + # @return [Lithic::Models::WirePartyDetails, nil] + optional :creditor, -> { Lithic::WirePartyDetails } + + # @!attribute debtor + # + # @return [Lithic::Models::WirePartyDetails, nil] + optional :debtor, -> { Lithic::WirePartyDetails } + + # @!attribute message_id + # Point to point reference identifier, as assigned by the instructing party, used + # for tracking the message through the Fedwire system + # + # @return [String, nil] + optional :message_id, String, nil?: true + + # @!attribute remittance_information + # Payment details or invoice reference + # + # @return [String, nil] + optional :remittance_information, String, nil?: true + + # @!attribute wire_message_type + # Type of wire message + # + # @return [String, nil] + optional :wire_message_type, String + + # @!method initialize(wire_network:, creditor: nil, debtor: nil, message_id: nil, remittance_information: nil, wire_message_type: nil) + # Some parameter documentations has been truncated, see + # {Lithic::Models::Payment::MethodAttributes::WireMethodAttributes} for more + # details. + # + # @param wire_network [Symbol, Lithic::Models::Payment::MethodAttributes::WireMethodAttributes::WireNetwork] Type of wire transfer + # + # @param creditor [Lithic::Models::WirePartyDetails] + # + # @param debtor [Lithic::Models::WirePartyDetails] + # + # @param message_id [String, nil] Point to point reference identifier, as assigned by the instructing party, used + # + # @param remittance_information [String, nil] Payment details or invoice reference + # + # @param wire_message_type [String] Type of wire message + + # Type of wire transfer + # + # @see Lithic::Models::Payment::MethodAttributes::WireMethodAttributes#wire_network + module WireNetwork + extend Lithic::Internal::Type::Enum + + FEDWIRE = :FEDWIRE + SWIFT = :SWIFT + + # @!method self.values + # @return [Array] + end end + + # @!method self.variants + # @return [Array(Lithic::Models::Payment::MethodAttributes::ACHMethodAttributes, Lithic::Models::Payment::MethodAttributes::WireMethodAttributes)] end # @see Lithic::Models::Payment#related_account_tokens @@ -434,15 +557,14 @@ class RelatedAccountTokens < Lithic::Internal::Type::BaseModel required :business_account_token, String, nil?: true # @!method initialize(account_token:, business_account_token:) - # Account tokens related to a payment transaction + # Related account tokens for the transaction # # @param account_token [String, nil] Globally unique identifier for the account # # @param business_account_token [String, nil] Globally unique identifier for the business account end - # APPROVED payments were successful while DECLINED payments were declined by - # Lithic or returned. + # Transaction result # # @see Lithic::Models::Payment#result module Result @@ -455,40 +577,36 @@ module Result # @return [Array] end + # Transaction source + # # @see Lithic::Models::Payment#source module Source extend Lithic::Internal::Type::Enum - CUSTOMER = :CUSTOMER LITHIC = :LITHIC + EXTERNAL = :EXTERNAL + CUSTOMER = :CUSTOMER # @!method self.values # @return [Array] end - # Status types: - # - # - `DECLINED` - The payment was declined. - # - `PENDING` - The payment is being processed and has yet to settle or release - # (origination debit). - # - `RETURNED` - The payment has been returned. - # - `SETTLED` - The payment is completed. + # The status of the transaction # # @see Lithic::Models::Payment#status module Status extend Lithic::Internal::Type::Enum - DECLINED = :DECLINED PENDING = :PENDING - RETURNED = :RETURNED SETTLED = :SETTLED + DECLINED = :DECLINED + REVERSED = :REVERSED + CANCELED = :CANCELED # @!method self.values # @return [Array] end - # Payment type indicating the specific ACH message or Fedwire transfer type - # # @see Lithic::Models::Payment#type module Type extend Lithic::Internal::Type::Enum diff --git a/lib/lithic/models/payment_create_response.rb b/lib/lithic/models/payment_create_response.rb index e00abc96..ddb84aa7 100644 --- a/lib/lithic/models/payment_create_response.rb +++ b/lib/lithic/models/payment_create_response.rb @@ -11,6 +11,8 @@ class PaymentCreateResponse < Lithic::Models::Payment optional :balance, -> { Lithic::Balance } # @!method initialize(balance: nil) + # Payment transaction + # # @param balance [Lithic::Models::Balance] Balance end end diff --git a/lib/lithic/models/payment_retry_response.rb b/lib/lithic/models/payment_retry_response.rb index 2795449a..8c014dee 100644 --- a/lib/lithic/models/payment_retry_response.rb +++ b/lib/lithic/models/payment_retry_response.rb @@ -11,6 +11,8 @@ class PaymentRetryResponse < Lithic::Models::Payment optional :balance, -> { Lithic::Balance } # @!method initialize(balance: nil) + # Payment transaction + # # @param balance [Lithic::Models::Balance] Balance end end diff --git a/lib/lithic/models/provision_response.rb b/lib/lithic/models/provision_response.rb new file mode 100644 index 00000000..b4a612e8 --- /dev/null +++ b/lib/lithic/models/provision_response.rb @@ -0,0 +1,30 @@ +# frozen_string_literal: true + +module Lithic + module Models + class ProvisionResponse < Lithic::Internal::Type::BaseModel + # @!attribute activation_data + # + # @return [String, nil] + optional :activation_data, String, api_name: :activationData + + # @!attribute encrypted_data + # + # @return [String, nil] + optional :encrypted_data, String, api_name: :encryptedData + + # @!attribute ephemeral_public_key + # + # @return [String, nil] + optional :ephemeral_public_key, String, api_name: :ephemeralPublicKey + + # @!method initialize(activation_data: nil, encrypted_data: nil, ephemeral_public_key: nil) + # Object containing the fields required to add a card to Apple Pay. Applies only + # to Apple Pay wallet. + # + # @param activation_data [String] + # @param encrypted_data [String] + # @param ephemeral_public_key [String] + end + end +end diff --git a/lib/lithic/models/three_ds/authentication_retrieve_response.rb b/lib/lithic/models/three_ds/authentication_retrieve_response.rb index c864762c..d5a31152 100644 --- a/lib/lithic/models/three_ds/authentication_retrieve_response.rb +++ b/lib/lithic/models/three_ds/authentication_retrieve_response.rb @@ -281,6 +281,16 @@ class Cardholder < Lithic::Internal::Type::BaseModel # @return [Boolean, nil] optional :address_match, Lithic::Internal::Type::Boolean, nil?: true + # @!attribute address_on_file_match + # Lithic's evaluation result comparing the transaction's address data with the + # cardholder KYC data if it exists. In the event Lithic does not have any + # Cardholder KYC data, or the transaction does not contain any address data, + # NOT_PRESENT will be returned + # + # @return [Symbol, Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::AddressOnFileMatch, nil] + optional :address_on_file_match, + enum: -> { Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::AddressOnFileMatch } + # @!attribute billing_address # Object containing data on the billing address provided during the transaction. # @@ -329,7 +339,7 @@ class Cardholder < Lithic::Internal::Type::BaseModel optional :shipping_address, -> { Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::ShippingAddress } - # @!method initialize(address_match: nil, billing_address: nil, email: nil, name: nil, phone_number_home: nil, phone_number_mobile: nil, phone_number_work: nil, shipping_address: nil) + # @!method initialize(address_match: nil, address_on_file_match: nil, billing_address: nil, email: nil, name: nil, phone_number_home: nil, phone_number_mobile: nil, phone_number_work: nil, shipping_address: nil) # Some parameter documentations has been truncated, see # {Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder} for more # details. @@ -338,6 +348,8 @@ class Cardholder < Lithic::Internal::Type::BaseModel # # @param address_match [Boolean, nil] Indicates whether the shipping address and billing address provided by the cardh # + # @param address_on_file_match [Symbol, Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::AddressOnFileMatch] Lithic's evaluation result comparing the transaction's address data with the car + # # @param billing_address [Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::BillingAddress] Object containing data on the billing address provided during the transaction. # # @param email [String, nil] Email address that is either provided by the cardholder or is on file with the m @@ -352,6 +364,25 @@ class Cardholder < Lithic::Internal::Type::BaseModel # # @param shipping_address [Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::ShippingAddress] Object containing data on the shipping address provided during the transaction. + # Lithic's evaluation result comparing the transaction's address data with the + # cardholder KYC data if it exists. In the event Lithic does not have any + # Cardholder KYC data, or the transaction does not contain any address data, + # NOT_PRESENT will be returned + # + # @see Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder#address_on_file_match + module AddressOnFileMatch + extend Lithic::Internal::Type::Enum + + MATCH = :MATCH + MATCH_ADDRESS_ONLY = :MATCH_ADDRESS_ONLY + MATCH_ZIP_ONLY = :MATCH_ZIP_ONLY + MISMATCH = :MISMATCH + NOT_PRESENT = :NOT_PRESENT + + # @!method self.values + # @return [Array] + end + # @see Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder#billing_address class BillingAddress < Lithic::Internal::Type::BaseModel # @!attribute address1 diff --git a/lib/lithic/models/tokenization.rb b/lib/lithic/models/tokenization.rb index 192898d3..c2c64d23 100644 --- a/lib/lithic/models/tokenization.rb +++ b/lib/lithic/models/tokenization.rb @@ -225,6 +225,7 @@ module Result TOKEN_ACTIVATED = :TOKEN_ACTIVATED TOKEN_CREATED = :TOKEN_CREATED TOKEN_DEACTIVATED = :TOKEN_DEACTIVATED + TOKEN_DELETED_FROM_CONSUMER_APP = :TOKEN_DELETED_FROM_CONSUMER_APP TOKEN_INACTIVE = :TOKEN_INACTIVE TOKEN_STATE_UNKNOWN = :TOKEN_STATE_UNKNOWN TOKEN_SUSPENDED = :TOKEN_SUSPENDED diff --git a/lib/lithic/models/transaction.rb b/lib/lithic/models/transaction.rb index f142363c..880b522a 100644 --- a/lib/lithic/models/transaction.rb +++ b/lib/lithic/models/transaction.rb @@ -1308,6 +1308,8 @@ module DetailedResult TRANSACTION_PREVIOUSLY_COMPLETED = :TRANSACTION_PREVIOUSLY_COMPLETED UNAUTHORIZED_MERCHANT = :UNAUTHORIZED_MERCHANT VEHICLE_NUMBER_INVALID = :VEHICLE_NUMBER_INVALID + CARDHOLDER_CHALLENGED = :CARDHOLDER_CHALLENGED + CARDHOLDER_CHALLENGE_FAILED = :CARDHOLDER_CHALLENGE_FAILED # @!method self.values # @return [Array] @@ -1635,6 +1637,8 @@ module Result TRANSACTION_PREVIOUSLY_COMPLETED = :TRANSACTION_PREVIOUSLY_COMPLETED UNAUTHORIZED_MERCHANT = :UNAUTHORIZED_MERCHANT VEHICLE_NUMBER_INVALID = :VEHICLE_NUMBER_INVALID + CARDHOLDER_CHALLENGED = :CARDHOLDER_CHALLENGED + CARDHOLDER_CHALLENGE_FAILED = :CARDHOLDER_CHALLENGE_FAILED # @!method self.values # @return [Array] diff --git a/lib/lithic/models/verification_method.rb b/lib/lithic/models/verification_method.rb index 9dfb99fc..0aa321a0 100644 --- a/lib/lithic/models/verification_method.rb +++ b/lib/lithic/models/verification_method.rb @@ -7,7 +7,6 @@ module VerificationMethod MANUAL = :MANUAL MICRO_DEPOSIT = :MICRO_DEPOSIT - PLAID = :PLAID PRENOTE = :PRENOTE EXTERNALLY_VERIFIED = :EXTERNALLY_VERIFIED UNVERIFIED = :UNVERIFIED diff --git a/lib/lithic/resources/account_activity.rb b/lib/lithic/resources/account_activity.rb index 9766a2e9..4e3fbfc5 100644 --- a/lib/lithic/resources/account_activity.rb +++ b/lib/lithic/resources/account_activity.rb @@ -34,7 +34,7 @@ class AccountActivity # # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Lithic::Internal::CursorPage] + # @return [Lithic::Internal::CursorPage] # # @see Lithic::Models::AccountActivityListParams def list(params = {}) @@ -57,7 +57,7 @@ def list(params = {}) # # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction, Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction, Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction, Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction, Lithic::Models::ExternalPayment, Lithic::Models::ManagementOperationTransaction] + # @return [Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal, Lithic::Models::BookTransferResponse, Lithic::Models::AccountActivityRetrieveTransactionResponse::Card, Lithic::Models::Payment, Lithic::Models::ExternalPayment, Lithic::Models::ManagementOperationTransaction] # # @see Lithic::Models::AccountActivityRetrieveTransactionParams def retrieve_transaction(transaction_token, params = {}) diff --git a/lib/lithic/resources/auth_rules/v2.rb b/lib/lithic/resources/auth_rules/v2.rb index 4bf9edb6..bf6db479 100644 --- a/lib/lithic/resources/auth_rules/v2.rb +++ b/lib/lithic/resources/auth_rules/v2.rb @@ -256,78 +256,6 @@ def promote(auth_rule_token, params = {}) ) end - # @deprecated - # - # This endpoint is deprecated and will be removed in the future. Requests a - # performance report of an Auth rule to be asynchronously generated. Reports can - # only be run on rules in draft or active mode and will included approved and - # declined statistics as well as examples. The generated report will be delivered - # asynchronously through a webhook with `event_type` = - # `auth_rules.performance_report.created`. See the docs on setting up - # [webhook subscriptions](https://docs.lithic.com/docs/events-api). - # - # Reports are generated based on data collected by Lithic's processing system in - # the trailing week. The performance of the auth rule will be assessed on the - # configuration of the auth rule at the time the report is requested. This implies - # that if a performance report is requested, right after updating an auth rule, - # depending on the number of events processed for a card program, it may be the - # case that no data is available for the report. Therefore Lithic recommends to - # decouple making updates to an Auth Rule, and requesting performance reports. - # - # To make this concrete, consider the following example: - # - # 1. At time `t`, a new Auth Rule is created, and applies to all auth events on a - # card program. The Auth Rule has not yet been promoted, causing the draft - # version of the rule to be applied in shadow mode. - # 2. At time `t + 1 hour` a performance report is requested for the Auth Rule. - # This performance report will _only_ contain data for the Auth Rule being - # executed in the window between `t` and `t + 1 hour`. This is because Lithic's - # transaction processing system will only start capturing data for the Auth - # Rule at the time it is created. - # 3. At time `t + 2 hours` the draft version of the Auth Rule is promoted to the - # active version of the Auth Rule by calling the - # `/v2/auth_rules/{auth_rule_token}/promote` endpoint. If a performance report - # is requested at this moment it will still only contain data for this version - # of the rule, but the window of available data will now span from `t` to - # `t + 2 hours`. - # 4. At time `t + 3 hours` a new version of the rule is drafted by calling the - # `/v2/auth_rules/{auth_rule_token}/draft` endpoint. If a performance report is - # requested right at this moment, it will only contain data for events to which - # both the active version and the draft version is applied. Lithic does this to - # ensure that performance reports represent a fair comparison between rules. - # Because there may be no events in this window, and because there may be some - # lag before data is available in a performance report, the requested - # performance report could contain no to little data. - # 5. At time `t + 4 hours` another performance report is requested: this time the - # performance report will contain data from the window between `t + 3 hours` - # and `t + 4 hours`, for any events to which both the current version of the - # Auth rule (in enforcing mode) and the draft version of the Auth rule (in - # shadow mode) applied. - # - # Note that generating a report may take up to 15 minutes and that delivery is not - # guaranteed. Customers are required to have created an event subscription to - # receive the webhook. Additionally, there is a delay of approximately 15 minutes - # between when Lithic's transaction processing systems have processed the - # transaction, and when a transaction will be included in the report. - # - # @overload report(auth_rule_token, request_options: {}) - # - # @param auth_rule_token [String] Globally unique identifier for the Auth Rule. - # - # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] - # - # @return [Lithic::Models::AuthRules::V2ReportResponse] - # - # @see Lithic::Models::AuthRules::V2ReportParams - def report(auth_rule_token, params = {}) - @client.request( - method: :post, - path: ["v2/auth_rules/%1$s/report", auth_rule_token], - model: Lithic::Models::AuthRules::V2ReportResponse, - options: params[:request_options] - ) - end - # Fetches the current calculated Feature values for the given Auth Rule # # This only calculates the features for the active version. diff --git a/lib/lithic/resources/external_bank_accounts.rb b/lib/lithic/resources/external_bank_accounts.rb index 2cdff1f6..baa36ff8 100644 --- a/lib/lithic/resources/external_bank_accounts.rb +++ b/lib/lithic/resources/external_bank_accounts.rb @@ -11,7 +11,7 @@ class ExternalBankAccounts # # Creates an external bank account within a program or Lithic account. # - # @overload create(account_number:, country:, currency:, financial_account_token:, owner:, owner_type:, routing_number:, type:, verification_method:, processor_token:, account_token: nil, address: nil, company_id: nil, dob: nil, doing_business_as: nil, name: nil, user_defined_id: nil, verification_enforcement: nil, request_options: {}) + # @overload create(account_number:, country:, currency:, financial_account_token:, owner:, owner_type:, routing_number:, type:, verification_method:, account_token: nil, address: nil, company_id: nil, dob: nil, doing_business_as: nil, name: nil, user_defined_id: nil, verification_enforcement: nil, request_options: {}) # # @param account_number [String] Account Number # @@ -31,8 +31,6 @@ class ExternalBankAccounts # # @param verification_method [Symbol, Lithic::Models::ExternalBankAccountCreateParams::VerificationMethod] Verification Method # - # @param processor_token [String] - # # @param account_token [String] Indicates which Lithic account the external account is associated with. For exte # # @param address [Lithic::Models::ExternalBankAccountAddress] Address diff --git a/lib/lithic/version.rb b/lib/lithic/version.rb index 3a487b44..9b4e76c0 100644 --- a/lib/lithic/version.rb +++ b/lib/lithic/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Lithic - VERSION = "0.1.0.pre.alpha.52" + VERSION = "0.1.0.pre.alpha.53" end diff --git a/rbi/lithic/models.rbi b/rbi/lithic/models.rbi index ce32f8d7..5351899e 100644 --- a/rbi/lithic/models.rbi +++ b/rbi/lithic/models.rbi @@ -292,6 +292,8 @@ module Lithic PaymentSimulateReturnParams = Lithic::Models::PaymentSimulateReturnParams + ProvisionResponse = Lithic::Models::ProvisionResponse + Reports = Lithic::Models::Reports RequiredDocument = Lithic::Models::RequiredDocument diff --git a/rbi/lithic/models/account_activity_list_response.rbi b/rbi/lithic/models/account_activity_list_response.rbi index 0f61d6fb..8ad0c287 100644 --- a/rbi/lithic/models/account_activity_list_response.rbi +++ b/rbi/lithic/models/account_activity_list_response.rbi @@ -2,27 +2,31 @@ module Lithic module Models - # Response containing multiple transaction types + # Response containing multiple transaction types. The `family` field determines + # which transaction type is returned: INTERNAL returns FinancialTransaction, + # TRANSFER returns BookTransferTransaction, CARD returns CardTransaction, PAYMENT + # returns PaymentTransaction, EXTERNAL_PAYMENT returns ExternalPaymentResponse, + # and MANAGEMENT_OPERATION returns ManagementOperationTransaction module AccountActivityListResponse extend Lithic::Internal::Type::Union Variants = T.type_alias do T.any( - Lithic::Models::AccountActivityListResponse::FinancialTransaction, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction, - Lithic::Models::AccountActivityListResponse::CardTransaction, - Lithic::Models::AccountActivityListResponse::PaymentTransaction, + Lithic::Models::AccountActivityListResponse::Internal, + Lithic::BookTransferResponse, + Lithic::Models::AccountActivityListResponse::Card, + Lithic::Payment, Lithic::ExternalPayment, Lithic::ManagementOperationTransaction ) end - class FinancialTransaction < Lithic::Internal::Type::BaseModel + class Internal < Lithic::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - Lithic::Models::AccountActivityListResponse::FinancialTransaction, + Lithic::Models::AccountActivityListResponse::Internal, Lithic::Internal::AnyHash ) end @@ -34,7 +38,7 @@ module Lithic # Transaction category sig do returns( - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Category::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Category::TaggedSymbol ) end attr_accessor :category @@ -55,17 +59,14 @@ module Lithic sig do returns( T::Array[ - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event + Lithic::Models::AccountActivityListResponse::Internal::Event ] ) end attr_accessor :events - sig do - returns( - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Family::TaggedSymbol - ) - end + # INTERNAL - Financial Transaction + sig { returns(Symbol) } attr_accessor :family # Financial account token associated with the transaction @@ -79,7 +80,7 @@ module Lithic # Transaction result sig do returns( - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Result::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Result::TaggedSymbol ) end attr_accessor :result @@ -91,7 +92,7 @@ module Lithic # The status of the transaction sig do returns( - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Status::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Status::TaggedSymbol ) end attr_accessor :status @@ -105,24 +106,23 @@ module Lithic params( token: String, category: - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Category::OrSymbol, + Lithic::Models::AccountActivityListResponse::Internal::Category::OrSymbol, created: Time, currency: String, descriptor: String, events: T::Array[ - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::OrHash + Lithic::Models::AccountActivityListResponse::Internal::Event::OrHash ], - family: - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Family::OrSymbol, financial_account_token: String, pending_amount: Integer, result: - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Result::OrSymbol, + Lithic::Models::AccountActivityListResponse::Internal::Result::OrSymbol, settled_amount: Integer, status: - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Status::OrSymbol, - updated: Time + Lithic::Models::AccountActivityListResponse::Internal::Status::OrSymbol, + updated: Time, + family: Symbol ).returns(T.attached_class) end def self.new( @@ -138,7 +138,6 @@ module Lithic descriptor:, # List of transaction events events:, - family:, # Financial account token associated with the transaction financial_account_token:, # Pending amount in cents @@ -150,7 +149,9 @@ module Lithic # The status of the transaction status:, # ISO 8601 timestamp of when the transaction was last updated - updated: + updated:, + # INTERNAL - Financial Transaction + family: :INTERNAL ) end @@ -159,23 +160,22 @@ module Lithic { token: String, category: - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Category::TaggedSymbol, + Lithic::Models::AccountActivityListResponse::Internal::Category::TaggedSymbol, created: Time, currency: String, descriptor: String, events: T::Array[ - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event + Lithic::Models::AccountActivityListResponse::Internal::Event ], - family: - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Family::TaggedSymbol, + family: Symbol, financial_account_token: String, pending_amount: Integer, result: - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Result::TaggedSymbol, + Lithic::Models::AccountActivityListResponse::Internal::Result::TaggedSymbol, settled_amount: Integer, status: - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Status::TaggedSymbol, + Lithic::Models::AccountActivityListResponse::Internal::Status::TaggedSymbol, updated: Time } ) @@ -191,7 +191,7 @@ module Lithic T.type_alias do T.all( Symbol, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Category + Lithic::Models::AccountActivityListResponse::Internal::Category ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -199,98 +199,98 @@ module Lithic ACH = T.let( :ACH, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Category::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Category::TaggedSymbol ) BALANCE_OR_FUNDING = T.let( :BALANCE_OR_FUNDING, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Category::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Category::TaggedSymbol ) FEE = T.let( :FEE, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Category::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Category::TaggedSymbol ) REWARD = T.let( :REWARD, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Category::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Category::TaggedSymbol ) ADJUSTMENT = T.let( :ADJUSTMENT, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Category::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Category::TaggedSymbol ) DERECOGNITION = T.let( :DERECOGNITION, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Category::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Category::TaggedSymbol ) DISPUTE = T.let( :DISPUTE, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Category::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Category::TaggedSymbol ) CARD = T.let( :CARD, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Category::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Category::TaggedSymbol ) EXTERNAL_ACH = T.let( :EXTERNAL_ACH, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Category::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Category::TaggedSymbol ) EXTERNAL_CHECK = T.let( :EXTERNAL_CHECK, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Category::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Category::TaggedSymbol ) EXTERNAL_TRANSFER = T.let( :EXTERNAL_TRANSFER, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Category::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Category::TaggedSymbol ) EXTERNAL_WIRE = T.let( :EXTERNAL_WIRE, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Category::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Category::TaggedSymbol ) MANAGEMENT_ADJUSTMENT = T.let( :MANAGEMENT_ADJUSTMENT, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Category::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Category::TaggedSymbol ) MANAGEMENT_DISPUTE = T.let( :MANAGEMENT_DISPUTE, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Category::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Category::TaggedSymbol ) MANAGEMENT_FEE = T.let( :MANAGEMENT_FEE, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Category::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Category::TaggedSymbol ) MANAGEMENT_REWARD = T.let( :MANAGEMENT_REWARD, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Category::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Category::TaggedSymbol ) MANAGEMENT_DISBURSEMENT = T.let( :MANAGEMENT_DISBURSEMENT, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Category::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Category::TaggedSymbol ) PROGRAM_FUNDING = T.let( :PROGRAM_FUNDING, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Category::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Category::TaggedSymbol ) sig do override.returns( T::Array[ - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Category::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Category::TaggedSymbol ] ) end @@ -302,7 +302,7 @@ module Lithic OrHash = T.type_alias do T.any( - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event, + Lithic::Models::AccountActivityListResponse::Internal::Event, Lithic::Internal::AnyHash ) end @@ -334,7 +334,7 @@ module Lithic sig do returns( T.nilable( - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Result::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Result::TaggedSymbol ) ) end @@ -343,7 +343,7 @@ module Lithic sig do params( result: - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Result::OrSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Result::OrSymbol ).void end attr_writer :result @@ -351,7 +351,7 @@ module Lithic sig do returns( T.nilable( - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) ) end @@ -360,7 +360,7 @@ module Lithic sig do params( type: - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::OrSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::OrSymbol ).void end attr_writer :type @@ -372,9 +372,9 @@ module Lithic amount: Integer, created: Time, result: - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Result::OrSymbol, + Lithic::Models::AccountActivityListResponse::Internal::Event::Result::OrSymbol, type: - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::OrSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::OrSymbol ).returns(T.attached_class) end def self.new( @@ -399,9 +399,9 @@ module Lithic amount: Integer, created: Time, result: - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Result::TaggedSymbol, + Lithic::Models::AccountActivityListResponse::Internal::Event::Result::TaggedSymbol, type: - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol } ) end @@ -417,7 +417,7 @@ module Lithic T.type_alias do T.all( Symbol, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Result + Lithic::Models::AccountActivityListResponse::Internal::Event::Result ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -425,18 +425,18 @@ module Lithic APPROVED = T.let( :APPROVED, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Result::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Result::TaggedSymbol ) DECLINED = T.let( :DECLINED, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Result::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Result::TaggedSymbol ) sig do override.returns( T::Array[ - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Result::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Result::TaggedSymbol ] ) end @@ -451,7 +451,7 @@ module Lithic T.type_alias do T.all( Symbol, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type + Lithic::Models::AccountActivityListResponse::Internal::Event::Type ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -459,358 +459,358 @@ module Lithic ACH_ORIGINATION_CANCELLED = T.let( :ACH_ORIGINATION_CANCELLED, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) ACH_ORIGINATION_INITIATED = T.let( :ACH_ORIGINATION_INITIATED, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) ACH_ORIGINATION_PROCESSED = T.let( :ACH_ORIGINATION_PROCESSED, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) ACH_ORIGINATION_RELEASED = T.let( :ACH_ORIGINATION_RELEASED, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) ACH_ORIGINATION_REJECTED = T.let( :ACH_ORIGINATION_REJECTED, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) ACH_ORIGINATION_REVIEWED = T.let( :ACH_ORIGINATION_REVIEWED, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) ACH_ORIGINATION_SETTLED = T.let( :ACH_ORIGINATION_SETTLED, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) ACH_RECEIPT_PROCESSED = T.let( :ACH_RECEIPT_PROCESSED, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) ACH_RECEIPT_SETTLED = T.let( :ACH_RECEIPT_SETTLED, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) ACH_RETURN_INITIATED = T.let( :ACH_RETURN_INITIATED, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) ACH_RETURN_PROCESSED = T.let( :ACH_RETURN_PROCESSED, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) ACH_RETURN_REJECTED = T.let( :ACH_RETURN_REJECTED, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) ACH_RETURN_SETTLED = T.let( :ACH_RETURN_SETTLED, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) AUTHORIZATION = T.let( :AUTHORIZATION, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) AUTHORIZATION_ADVICE = T.let( :AUTHORIZATION_ADVICE, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) AUTHORIZATION_EXPIRY = T.let( :AUTHORIZATION_EXPIRY, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) AUTHORIZATION_REVERSAL = T.let( :AUTHORIZATION_REVERSAL, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) BALANCE_INQUIRY = T.let( :BALANCE_INQUIRY, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) BILLING_ERROR = T.let( :BILLING_ERROR, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) BILLING_ERROR_REVERSAL = T.let( :BILLING_ERROR_REVERSAL, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) CARD_TO_CARD = T.let( :CARD_TO_CARD, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) CASH_BACK = T.let( :CASH_BACK, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) CASH_BACK_REVERSAL = T.let( :CASH_BACK_REVERSAL, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) CLEARING = T.let( :CLEARING, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) COLLECTION = T.let( :COLLECTION, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) CORRECTION_CREDIT = T.let( :CORRECTION_CREDIT, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) CORRECTION_DEBIT = T.let( :CORRECTION_DEBIT, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) CREDIT_AUTHORIZATION = T.let( :CREDIT_AUTHORIZATION, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) CREDIT_AUTHORIZATION_ADVICE = T.let( :CREDIT_AUTHORIZATION_ADVICE, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) CURRENCY_CONVERSION = T.let( :CURRENCY_CONVERSION, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) CURRENCY_CONVERSION_REVERSAL = T.let( :CURRENCY_CONVERSION_REVERSAL, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) DISPUTE_WON = T.let( :DISPUTE_WON, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) EXTERNAL_ACH_CANCELED = T.let( :EXTERNAL_ACH_CANCELED, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) EXTERNAL_ACH_INITIATED = T.let( :EXTERNAL_ACH_INITIATED, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) EXTERNAL_ACH_RELEASED = T.let( :EXTERNAL_ACH_RELEASED, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) EXTERNAL_ACH_REVERSED = T.let( :EXTERNAL_ACH_REVERSED, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) EXTERNAL_ACH_SETTLED = T.let( :EXTERNAL_ACH_SETTLED, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) EXTERNAL_CHECK_CANCELED = T.let( :EXTERNAL_CHECK_CANCELED, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) EXTERNAL_CHECK_INITIATED = T.let( :EXTERNAL_CHECK_INITIATED, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) EXTERNAL_CHECK_RELEASED = T.let( :EXTERNAL_CHECK_RELEASED, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) EXTERNAL_CHECK_REVERSED = T.let( :EXTERNAL_CHECK_REVERSED, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) EXTERNAL_CHECK_SETTLED = T.let( :EXTERNAL_CHECK_SETTLED, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) EXTERNAL_TRANSFER_CANCELED = T.let( :EXTERNAL_TRANSFER_CANCELED, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) EXTERNAL_TRANSFER_INITIATED = T.let( :EXTERNAL_TRANSFER_INITIATED, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) EXTERNAL_TRANSFER_RELEASED = T.let( :EXTERNAL_TRANSFER_RELEASED, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) EXTERNAL_TRANSFER_REVERSED = T.let( :EXTERNAL_TRANSFER_REVERSED, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) EXTERNAL_TRANSFER_SETTLED = T.let( :EXTERNAL_TRANSFER_SETTLED, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) EXTERNAL_WIRE_CANCELED = T.let( :EXTERNAL_WIRE_CANCELED, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) EXTERNAL_WIRE_INITIATED = T.let( :EXTERNAL_WIRE_INITIATED, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) EXTERNAL_WIRE_RELEASED = T.let( :EXTERNAL_WIRE_RELEASED, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) EXTERNAL_WIRE_REVERSED = T.let( :EXTERNAL_WIRE_REVERSED, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) EXTERNAL_WIRE_SETTLED = T.let( :EXTERNAL_WIRE_SETTLED, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) FINANCIAL_AUTHORIZATION = T.let( :FINANCIAL_AUTHORIZATION, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) FINANCIAL_CREDIT_AUTHORIZATION = T.let( :FINANCIAL_CREDIT_AUTHORIZATION, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) INTEREST = T.let( :INTEREST, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) INTEREST_REVERSAL = T.let( :INTEREST_REVERSAL, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) INTERNAL_ADJUSTMENT = T.let( :INTERNAL_ADJUSTMENT, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) LATE_PAYMENT = T.let( :LATE_PAYMENT, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) LATE_PAYMENT_REVERSAL = T.let( :LATE_PAYMENT_REVERSAL, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) LOSS_WRITE_OFF = T.let( :LOSS_WRITE_OFF, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) PROVISIONAL_CREDIT = T.let( :PROVISIONAL_CREDIT, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) PROVISIONAL_CREDIT_REVERSAL = T.let( :PROVISIONAL_CREDIT_REVERSAL, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) SERVICE = T.let( :SERVICE, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) RETURN = T.let( :RETURN, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) RETURN_REVERSAL = T.let( :RETURN_REVERSAL, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) TRANSFER = T.let( :TRANSFER, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) TRANSFER_INSUFFICIENT_FUNDS = T.let( :TRANSFER_INSUFFICIENT_FUNDS, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) RETURNED_PAYMENT = T.let( :RETURNED_PAYMENT, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) RETURNED_PAYMENT_REVERSAL = T.let( :RETURNED_PAYMENT_REVERSAL, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) LITHIC_NETWORK_PAYMENT = T.let( :LITHIC_NETWORK_PAYMENT, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ) sig do override.returns( T::Array[ - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Event::Type::TaggedSymbol ] ) end @@ -819,60 +819,6 @@ module Lithic end end - module Family - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Family - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - CARD = - T.let( - :CARD, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Family::TaggedSymbol - ) - PAYMENT = - T.let( - :PAYMENT, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Family::TaggedSymbol - ) - TRANSFER = - T.let( - :TRANSFER, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Family::TaggedSymbol - ) - INTERNAL = - T.let( - :INTERNAL, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Family::TaggedSymbol - ) - EXTERNAL_PAYMENT = - T.let( - :EXTERNAL_PAYMENT, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Family::TaggedSymbol - ) - MANAGEMENT_OPERATION = - T.let( - :MANAGEMENT_OPERATION, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Family::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Family::TaggedSymbol - ] - ) - end - def self.values - end - end - # Transaction result module Result extend Lithic::Internal::Type::Enum @@ -881,7 +827,7 @@ module Lithic T.type_alias do T.all( Symbol, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Result + Lithic::Models::AccountActivityListResponse::Internal::Result ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -889,18 +835,18 @@ module Lithic APPROVED = T.let( :APPROVED, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Result::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Result::TaggedSymbol ) DECLINED = T.let( :DECLINED, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Result::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Result::TaggedSymbol ) sig do override.returns( T::Array[ - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Result::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Result::TaggedSymbol ] ) end @@ -916,7 +862,7 @@ module Lithic T.type_alias do T.all( Symbol, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Status + Lithic::Models::AccountActivityListResponse::Internal::Status ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -924,33 +870,33 @@ module Lithic PENDING = T.let( :PENDING, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Status::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Status::TaggedSymbol ) SETTLED = T.let( :SETTLED, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Status::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Status::TaggedSymbol ) DECLINED = T.let( :DECLINED, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Status::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Status::TaggedSymbol ) REVERSED = T.let( :REVERSED, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Status::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Status::TaggedSymbol ) CANCELED = T.let( :CANCELED, - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Status::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Status::TaggedSymbol ) sig do override.returns( T::Array[ - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Status::TaggedSymbol + Lithic::Models::AccountActivityListResponse::Internal::Status::TaggedSymbol ] ) end @@ -959,2445 +905,23 @@ module Lithic end end - class BookTransferTransaction < Lithic::Internal::Type::BaseModel + class Card < Lithic::Models::Transaction OrHash = T.type_alias do T.any( - Lithic::Models::AccountActivityListResponse::BookTransferTransaction, + Lithic::Models::AccountActivityListResponse::Card, Lithic::Internal::AnyHash ) end - # Unique identifier for the transaction - sig { returns(String) } - attr_accessor :token - - sig do - returns( - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Category::TaggedSymbol - ) - end - attr_accessor :category - - # ISO 8601 timestamp of when the transaction was created - sig { returns(Time) } - attr_accessor :created - - # Currency of the transaction in ISO 4217 format - sig { returns(String) } - attr_accessor :currency - - # List of events associated with this book transfer - sig do - returns( - T::Array[ - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event - ] - ) - end - attr_accessor :events - - sig do - returns( - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Family::TaggedSymbol - ) - end - attr_accessor :family - - # Source account token - sig { returns(String) } - attr_accessor :from_financial_account_token - - # The pending amount of the transaction in cents - sig { returns(Integer) } - attr_accessor :pending_amount - - sig do - returns( - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Result::TaggedSymbol - ) - end - attr_accessor :result - - # The settled amount of the transaction in cents - sig { returns(Integer) } - attr_accessor :settled_amount - - # The status of the transaction - sig do - returns( - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Status::TaggedSymbol - ) - end - attr_accessor :status - - # Destination account token - sig { returns(String) } - attr_accessor :to_financial_account_token - - # ISO 8601 timestamp of when the transaction was last updated - sig { returns(Time) } - attr_accessor :updated - - # External identifier for the transaction - sig { returns(T.nilable(String)) } - attr_reader :external_id - - sig { params(external_id: String).void } - attr_writer :external_id - - # External resource associated with the management operation - sig { returns(T.nilable(Lithic::ExternalResource)) } - attr_reader :external_resource - - sig do - params( - external_resource: T.nilable(Lithic::ExternalResource::OrHash) - ).void - end - attr_writer :external_resource - - sig do - returns( - T.nilable( - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::TransactionSeries - ) - ) - end - attr_reader :transaction_series - - sig do - params( - transaction_series: - T.nilable( - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::TransactionSeries::OrHash - ) - ).void - end - attr_writer :transaction_series - - # Book transfer transaction - sig do - params( - token: String, - category: - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Category::OrSymbol, - created: Time, - currency: String, - events: - T::Array[ - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::OrHash - ], - family: - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Family::OrSymbol, - from_financial_account_token: String, - pending_amount: Integer, - result: - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Result::OrSymbol, - settled_amount: Integer, - status: - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Status::OrSymbol, - to_financial_account_token: String, - updated: Time, - external_id: String, - external_resource: T.nilable(Lithic::ExternalResource::OrHash), - transaction_series: - T.nilable( - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::TransactionSeries::OrHash - ) - ).returns(T.attached_class) - end - def self.new( - # Unique identifier for the transaction - token:, - category:, - # ISO 8601 timestamp of when the transaction was created - created:, - # Currency of the transaction in ISO 4217 format - currency:, - # List of events associated with this book transfer - events:, - family:, - # Source account token - from_financial_account_token:, - # The pending amount of the transaction in cents - pending_amount:, - result:, - # The settled amount of the transaction in cents - settled_amount:, - # The status of the transaction - status:, - # Destination account token - to_financial_account_token:, - # ISO 8601 timestamp of when the transaction was last updated - updated:, - # External identifier for the transaction - external_id: nil, - # External resource associated with the management operation - external_resource: nil, - transaction_series: nil - ) + # Card transaction with ledger base properties + sig { returns(T.attached_class) } + def self.new end - sig do - override.returns( - { - token: String, - category: - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Category::TaggedSymbol, - created: Time, - currency: String, - events: - T::Array[ - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event - ], - family: - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Family::TaggedSymbol, - from_financial_account_token: String, - pending_amount: Integer, - result: - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Result::TaggedSymbol, - settled_amount: Integer, - status: - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Status::TaggedSymbol, - to_financial_account_token: String, - updated: Time, - external_id: String, - external_resource: T.nilable(Lithic::ExternalResource), - transaction_series: - T.nilable( - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::TransactionSeries - ) - } - ) - end + sig { override.returns({}) } def to_hash end - - module Category - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Category - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ADJUSTMENT = - T.let( - :ADJUSTMENT, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Category::TaggedSymbol - ) - BALANCE_OR_FUNDING = - T.let( - :BALANCE_OR_FUNDING, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Category::TaggedSymbol - ) - DERECOGNITION = - T.let( - :DERECOGNITION, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Category::TaggedSymbol - ) - DISPUTE = - T.let( - :DISPUTE, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Category::TaggedSymbol - ) - FEE = - T.let( - :FEE, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Category::TaggedSymbol - ) - INTERNAL = - T.let( - :INTERNAL, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Category::TaggedSymbol - ) - REWARD = - T.let( - :REWARD, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Category::TaggedSymbol - ) - PROGRAM_FUNDING = - T.let( - :PROGRAM_FUNDING, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Category::TaggedSymbol - ) - TRANSFER = - T.let( - :TRANSFER, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Category::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Category::TaggedSymbol - ] - ) - end - def self.values - end - end - - class Event < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event, - Lithic::Internal::AnyHash - ) - end - - # Globally unique identifier. - sig { returns(String) } - attr_accessor :token - - # Amount of the financial event that has been settled in the currency's smallest - # unit (e.g., cents). - sig { returns(Integer) } - attr_accessor :amount - - # Date and time when the financial event occurred. UTC time zone. - sig { returns(Time) } - attr_accessor :created - - sig do - returns( - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::DetailedResults::TaggedSymbol - ) - end - attr_accessor :detailed_results - - # Memo for the transfer. - sig { returns(String) } - attr_accessor :memo - - # APPROVED financial events were successful while DECLINED financial events were - # declined by user, Lithic, or the network. - sig do - returns( - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Result::TaggedSymbol - ) - end - attr_accessor :result - - # The program specific subtype code for the specified category/type. - sig { returns(String) } - attr_accessor :subtype - - # Type of the book transfer - sig do - returns( - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - end - attr_accessor :type - - # Book transfer Event - sig do - params( - token: String, - amount: Integer, - created: Time, - detailed_results: - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::DetailedResults::OrSymbol, - memo: String, - result: - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Result::OrSymbol, - subtype: String, - type: - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type::OrSymbol - ).returns(T.attached_class) - end - def self.new( - # Globally unique identifier. - token:, - # Amount of the financial event that has been settled in the currency's smallest - # unit (e.g., cents). - amount:, - # Date and time when the financial event occurred. UTC time zone. - created:, - detailed_results:, - # Memo for the transfer. - memo:, - # APPROVED financial events were successful while DECLINED financial events were - # declined by user, Lithic, or the network. - result:, - # The program specific subtype code for the specified category/type. - subtype:, - # Type of the book transfer - type: - ) - end - - sig do - override.returns( - { - token: String, - amount: Integer, - created: Time, - detailed_results: - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::DetailedResults::TaggedSymbol, - memo: String, - result: - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Result::TaggedSymbol, - subtype: String, - type: - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type::TaggedSymbol - } - ) - end - def to_hash - end - - module DetailedResults - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::DetailedResults - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - APPROVED = - T.let( - :APPROVED, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::DetailedResults::TaggedSymbol - ) - FUNDS_INSUFFICIENT = - T.let( - :FUNDS_INSUFFICIENT, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::DetailedResults::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::DetailedResults::TaggedSymbol - ] - ) - end - def self.values - end - end - - # APPROVED financial events were successful while DECLINED financial events were - # declined by user, Lithic, or the network. - module Result - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Result - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - APPROVED = - T.let( - :APPROVED, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Result::TaggedSymbol - ) - DECLINED = - T.let( - :DECLINED, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Result::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Result::TaggedSymbol - ] - ) - end - def self.values - end - end - - # Type of the book transfer - module Type - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ATM_BALANCE_INQUIRY = - T.let( - :ATM_BALANCE_INQUIRY, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - ATM_WITHDRAWAL = - T.let( - :ATM_WITHDRAWAL, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - ATM_DECLINE = - T.let( - :ATM_DECLINE, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - INTERNATIONAL_ATM_WITHDRAWAL = - T.let( - :INTERNATIONAL_ATM_WITHDRAWAL, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - INACTIVITY = - T.let( - :INACTIVITY, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - STATEMENT = - T.let( - :STATEMENT, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - MONTHLY = - T.let( - :MONTHLY, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - QUARTERLY = - T.let( - :QUARTERLY, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - ANNUAL = - T.let( - :ANNUAL, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - CUSTOMER_SERVICE = - T.let( - :CUSTOMER_SERVICE, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - ACCOUNT_MAINTENANCE = - T.let( - :ACCOUNT_MAINTENANCE, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - ACCOUNT_ACTIVATION = - T.let( - :ACCOUNT_ACTIVATION, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - ACCOUNT_CLOSURE = - T.let( - :ACCOUNT_CLOSURE, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - CARD_REPLACEMENT = - T.let( - :CARD_REPLACEMENT, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - CARD_DELIVERY = - T.let( - :CARD_DELIVERY, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - CARD_CREATE = - T.let( - :CARD_CREATE, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - CURRENCY_CONVERSION = - T.let( - :CURRENCY_CONVERSION, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - INTEREST = - T.let( - :INTEREST, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - LATE_PAYMENT = - T.let( - :LATE_PAYMENT, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - BILL_PAYMENT = - T.let( - :BILL_PAYMENT, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - CASH_BACK = - T.let( - :CASH_BACK, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - ACCOUNT_TO_ACCOUNT = - T.let( - :ACCOUNT_TO_ACCOUNT, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - CARD_TO_CARD = - T.let( - :CARD_TO_CARD, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - DISBURSE = - T.let( - :DISBURSE, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - BILLING_ERROR = - T.let( - :BILLING_ERROR, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - LOSS_WRITE_OFF = - T.let( - :LOSS_WRITE_OFF, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - EXPIRED_CARD = - T.let( - :EXPIRED_CARD, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - EARLY_DERECOGNITION = - T.let( - :EARLY_DERECOGNITION, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - ESCHEATMENT = - T.let( - :ESCHEATMENT, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - INACTIVITY_FEE_DOWN = - T.let( - :INACTIVITY_FEE_DOWN, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - PROVISIONAL_CREDIT = - T.let( - :PROVISIONAL_CREDIT, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - DISPUTE_WON = - T.let( - :DISPUTE_WON, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - SERVICE = - T.let( - :SERVICE, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - TRANSFER = - T.let( - :TRANSFER, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - COLLECTION = - T.let( - :COLLECTION, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - module Family - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Family - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - CARD = - T.let( - :CARD, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Family::TaggedSymbol - ) - PAYMENT = - T.let( - :PAYMENT, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Family::TaggedSymbol - ) - TRANSFER = - T.let( - :TRANSFER, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Family::TaggedSymbol - ) - INTERNAL = - T.let( - :INTERNAL, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Family::TaggedSymbol - ) - EXTERNAL_PAYMENT = - T.let( - :EXTERNAL_PAYMENT, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Family::TaggedSymbol - ) - MANAGEMENT_OPERATION = - T.let( - :MANAGEMENT_OPERATION, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Family::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Family::TaggedSymbol - ] - ) - end - def self.values - end - end - - module Result - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Result - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - APPROVED = - T.let( - :APPROVED, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Result::TaggedSymbol - ) - DECLINED = - T.let( - :DECLINED, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Result::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Result::TaggedSymbol - ] - ) - end - def self.values - end - end - - # The status of the transaction - module Status - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Status - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - PENDING = - T.let( - :PENDING, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Status::TaggedSymbol - ) - SETTLED = - T.let( - :SETTLED, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Status::TaggedSymbol - ) - DECLINED = - T.let( - :DECLINED, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Status::TaggedSymbol - ) - REVERSED = - T.let( - :REVERSED, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Status::TaggedSymbol - ) - CANCELED = - T.let( - :CANCELED, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Status::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Status::TaggedSymbol - ] - ) - end - def self.values - end - end - - class TransactionSeries < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::TransactionSeries, - Lithic::Internal::AnyHash - ) - end - - sig { returns(T.nilable(String)) } - attr_accessor :related_transaction_event_token - - sig { returns(T.nilable(String)) } - attr_accessor :related_transaction_token - - sig { returns(String) } - attr_accessor :type - - sig do - params( - related_transaction_event_token: T.nilable(String), - related_transaction_token: T.nilable(String), - type: String - ).returns(T.attached_class) - end - def self.new( - related_transaction_event_token:, - related_transaction_token:, - type: - ) - end - - sig do - override.returns( - { - related_transaction_event_token: T.nilable(String), - related_transaction_token: T.nilable(String), - type: String - } - ) - end - def to_hash - end - end - end - - class CardTransaction < Lithic::Models::Transaction - OrHash = - T.type_alias do - T.any( - Lithic::Models::AccountActivityListResponse::CardTransaction, - Lithic::Internal::AnyHash - ) - end - - # Unique identifier for the transaction - sig { returns(String) } - attr_accessor :token - - # ISO 8601 timestamp of when the transaction was created - sig { returns(Time) } - attr_accessor :created - - sig do - returns( - Lithic::Models::AccountActivityListResponse::CardTransaction::Family::TaggedSymbol - ) - end - attr_accessor :family - - # The status of the transaction - sig do - returns( - Lithic::Models::AccountActivityListResponse::CardTransaction::Status::TaggedSymbol - ) - end - attr_accessor :status - - # ISO 8601 timestamp of when the transaction was last updated - sig { returns(Time) } - attr_accessor :updated - - # Base class for all transaction types in the ledger service - sig do - params( - token: String, - created: Time, - family: - Lithic::Models::AccountActivityListResponse::CardTransaction::Family::OrSymbol, - status: - Lithic::Models::AccountActivityListResponse::CardTransaction::Status::OrSymbol, - updated: Time - ).returns(T.attached_class) - end - def self.new( - # Unique identifier for the transaction - token:, - # ISO 8601 timestamp of when the transaction was created - created:, - family:, - # The status of the transaction - status:, - # ISO 8601 timestamp of when the transaction was last updated - updated: - ) - end - - sig do - override.returns( - { - token: String, - created: Time, - family: - Lithic::Models::AccountActivityListResponse::CardTransaction::Family::TaggedSymbol, - status: - Lithic::Models::AccountActivityListResponse::CardTransaction::Status::TaggedSymbol, - updated: Time - } - ) - end - def to_hash - end - - module Family - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityListResponse::CardTransaction::Family - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - CARD = - T.let( - :CARD, - Lithic::Models::AccountActivityListResponse::CardTransaction::Family::TaggedSymbol - ) - PAYMENT = - T.let( - :PAYMENT, - Lithic::Models::AccountActivityListResponse::CardTransaction::Family::TaggedSymbol - ) - TRANSFER = - T.let( - :TRANSFER, - Lithic::Models::AccountActivityListResponse::CardTransaction::Family::TaggedSymbol - ) - INTERNAL = - T.let( - :INTERNAL, - Lithic::Models::AccountActivityListResponse::CardTransaction::Family::TaggedSymbol - ) - EXTERNAL_PAYMENT = - T.let( - :EXTERNAL_PAYMENT, - Lithic::Models::AccountActivityListResponse::CardTransaction::Family::TaggedSymbol - ) - MANAGEMENT_OPERATION = - T.let( - :MANAGEMENT_OPERATION, - Lithic::Models::AccountActivityListResponse::CardTransaction::Family::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityListResponse::CardTransaction::Family::TaggedSymbol - ] - ) - end - def self.values - end - end - - # The status of the transaction - module Status - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityListResponse::CardTransaction::Status - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - PENDING = - T.let( - :PENDING, - Lithic::Models::AccountActivityListResponse::CardTransaction::Status::TaggedSymbol - ) - SETTLED = - T.let( - :SETTLED, - Lithic::Models::AccountActivityListResponse::CardTransaction::Status::TaggedSymbol - ) - DECLINED = - T.let( - :DECLINED, - Lithic::Models::AccountActivityListResponse::CardTransaction::Status::TaggedSymbol - ) - REVERSED = - T.let( - :REVERSED, - Lithic::Models::AccountActivityListResponse::CardTransaction::Status::TaggedSymbol - ) - CANCELED = - T.let( - :CANCELED, - Lithic::Models::AccountActivityListResponse::CardTransaction::Status::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityListResponse::CardTransaction::Status::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class PaymentTransaction < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AccountActivityListResponse::PaymentTransaction, - Lithic::Internal::AnyHash - ) - end - - # Unique identifier for the transaction - sig { returns(String) } - attr_accessor :token - - # Transaction category - sig do - returns( - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Category::TaggedSymbol - ) - end - attr_accessor :category - - # ISO 8601 timestamp of when the transaction was created - sig { returns(Time) } - attr_accessor :created - - # Transaction descriptor - sig { returns(String) } - attr_accessor :descriptor - - # Transfer direction - sig do - returns( - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Direction::TaggedSymbol - ) - end - attr_accessor :direction - - # List of transaction events - sig do - returns( - T::Array[ - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event - ] - ) - end - attr_accessor :events - - sig do - returns( - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Family::TaggedSymbol - ) - end - attr_accessor :family - - # Financial account token - sig { returns(String) } - attr_accessor :financial_account_token - - # Transfer method - sig do - returns( - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Method::TaggedSymbol - ) - end - attr_accessor :method_ - - # Method-specific attributes - sig do - returns( - Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::Variants - ) - end - attr_accessor :method_attributes - - # Pending amount in cents - sig { returns(Integer) } - attr_accessor :pending_amount - - # Related account tokens for the transaction - sig do - returns( - Lithic::Models::AccountActivityListResponse::PaymentTransaction::RelatedAccountTokens - ) - end - attr_reader :related_account_tokens - - sig do - params( - related_account_tokens: - Lithic::Models::AccountActivityListResponse::PaymentTransaction::RelatedAccountTokens::OrHash - ).void - end - attr_writer :related_account_tokens - - # Transaction result - sig do - returns( - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Result::TaggedSymbol - ) - end - attr_accessor :result - - # Settled amount in cents - sig { returns(Integer) } - attr_accessor :settled_amount - - # Transaction source - sig do - returns( - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Source::TaggedSymbol - ) - end - attr_accessor :source - - # The status of the transaction - sig do - returns( - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Status::TaggedSymbol - ) - end - attr_accessor :status - - # ISO 8601 timestamp of when the transaction was last updated - sig { returns(Time) } - attr_accessor :updated - - # Currency of the transaction in ISO 4217 format - sig { returns(T.nilable(String)) } - attr_reader :currency - - sig { params(currency: String).void } - attr_writer :currency - - # Expected release date for the transaction - sig { returns(T.nilable(Date)) } - attr_accessor :expected_release_date - - # External bank account token - sig { returns(T.nilable(String)) } - attr_accessor :external_bank_account_token - - sig do - returns( - T.nilable( - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Type::TaggedSymbol - ) - ) - end - attr_reader :type - - sig do - params( - type: - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Type::OrSymbol - ).void - end - attr_writer :type - - # User-defined identifier - sig { returns(T.nilable(String)) } - attr_accessor :user_defined_id - - # Payment transaction - sig do - params( - token: String, - category: - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Category::OrSymbol, - created: Time, - descriptor: String, - direction: - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Direction::OrSymbol, - events: - T::Array[ - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::OrHash - ], - family: - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Family::OrSymbol, - financial_account_token: String, - method_: - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Method::OrSymbol, - method_attributes: - T.any( - Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::OrHash, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes::OrHash - ), - pending_amount: Integer, - related_account_tokens: - Lithic::Models::AccountActivityListResponse::PaymentTransaction::RelatedAccountTokens::OrHash, - result: - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Result::OrSymbol, - settled_amount: Integer, - source: - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Source::OrSymbol, - status: - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Status::OrSymbol, - updated: Time, - currency: String, - expected_release_date: T.nilable(Date), - external_bank_account_token: T.nilable(String), - type: - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Type::OrSymbol, - user_defined_id: T.nilable(String) - ).returns(T.attached_class) - end - def self.new( - # Unique identifier for the transaction - token:, - # Transaction category - category:, - # ISO 8601 timestamp of when the transaction was created - created:, - # Transaction descriptor - descriptor:, - # Transfer direction - direction:, - # List of transaction events - events:, - family:, - # Financial account token - financial_account_token:, - # Transfer method - method_:, - # Method-specific attributes - method_attributes:, - # Pending amount in cents - pending_amount:, - # Related account tokens for the transaction - related_account_tokens:, - # Transaction result - result:, - # Settled amount in cents - settled_amount:, - # Transaction source - source:, - # The status of the transaction - status:, - # ISO 8601 timestamp of when the transaction was last updated - updated:, - # Currency of the transaction in ISO 4217 format - currency: nil, - # Expected release date for the transaction - expected_release_date: nil, - # External bank account token - external_bank_account_token: nil, - type: nil, - # User-defined identifier - user_defined_id: nil - ) - end - - sig do - override.returns( - { - token: String, - category: - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Category::TaggedSymbol, - created: Time, - descriptor: String, - direction: - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Direction::TaggedSymbol, - events: - T::Array[ - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event - ], - family: - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Family::TaggedSymbol, - financial_account_token: String, - method_: - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Method::TaggedSymbol, - method_attributes: - Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::Variants, - pending_amount: Integer, - related_account_tokens: - Lithic::Models::AccountActivityListResponse::PaymentTransaction::RelatedAccountTokens, - result: - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Result::TaggedSymbol, - settled_amount: Integer, - source: - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Source::TaggedSymbol, - status: - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Status::TaggedSymbol, - updated: Time, - currency: String, - expected_release_date: T.nilable(Date), - external_bank_account_token: T.nilable(String), - type: - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Type::TaggedSymbol, - user_defined_id: T.nilable(String) - } - ) - end - def to_hash - end - - # Transaction category - module Category - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Category - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ACH = - T.let( - :ACH, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Category::TaggedSymbol - ) - BALANCE_OR_FUNDING = - T.let( - :BALANCE_OR_FUNDING, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Category::TaggedSymbol - ) - FEE = - T.let( - :FEE, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Category::TaggedSymbol - ) - REWARD = - T.let( - :REWARD, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Category::TaggedSymbol - ) - ADJUSTMENT = - T.let( - :ADJUSTMENT, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Category::TaggedSymbol - ) - DERECOGNITION = - T.let( - :DERECOGNITION, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Category::TaggedSymbol - ) - DISPUTE = - T.let( - :DISPUTE, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Category::TaggedSymbol - ) - CARD = - T.let( - :CARD, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Category::TaggedSymbol - ) - EXTERNAL_ACH = - T.let( - :EXTERNAL_ACH, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Category::TaggedSymbol - ) - EXTERNAL_CHECK = - T.let( - :EXTERNAL_CHECK, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Category::TaggedSymbol - ) - EXTERNAL_TRANSFER = - T.let( - :EXTERNAL_TRANSFER, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Category::TaggedSymbol - ) - EXTERNAL_WIRE = - T.let( - :EXTERNAL_WIRE, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Category::TaggedSymbol - ) - MANAGEMENT_ADJUSTMENT = - T.let( - :MANAGEMENT_ADJUSTMENT, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Category::TaggedSymbol - ) - MANAGEMENT_DISPUTE = - T.let( - :MANAGEMENT_DISPUTE, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Category::TaggedSymbol - ) - MANAGEMENT_FEE = - T.let( - :MANAGEMENT_FEE, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Category::TaggedSymbol - ) - MANAGEMENT_REWARD = - T.let( - :MANAGEMENT_REWARD, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Category::TaggedSymbol - ) - MANAGEMENT_DISBURSEMENT = - T.let( - :MANAGEMENT_DISBURSEMENT, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Category::TaggedSymbol - ) - PROGRAM_FUNDING = - T.let( - :PROGRAM_FUNDING, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Category::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Category::TaggedSymbol - ] - ) - end - def self.values - end - end - - # Transfer direction - module Direction - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Direction - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - CREDIT = - T.let( - :CREDIT, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Direction::TaggedSymbol - ) - DEBIT = - T.let( - :DEBIT, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Direction::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Direction::TaggedSymbol - ] - ) - end - def self.values - end - end - - class Event < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event, - Lithic::Internal::AnyHash - ) - end - - # Globally unique identifier. - sig { returns(String) } - attr_accessor :token - - # Amount of the financial event that has been settled in the currency's smallest - # unit (e.g., cents). - sig { returns(Integer) } - attr_accessor :amount - - # Date and time when the financial event occurred. UTC time zone. - sig { returns(Time) } - attr_accessor :created - - # APPROVED financial events were successful while DECLINED financial events were - # declined by user, Lithic, or the network. - sig do - returns( - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::Result::TaggedSymbol - ) - end - attr_accessor :result - - # Event types: - # - # - `ACH_ORIGINATION_INITIATED` - ACH origination received and pending - # approval/release from an ACH hold. - # - `ACH_ORIGINATION_REVIEWED` - ACH origination has completed the review process. - # - `ACH_ORIGINATION_CANCELLED` - ACH origination has been cancelled. - # - `ACH_ORIGINATION_PROCESSED` - ACH origination has been processed and sent to - # the Federal Reserve. - # - `ACH_ORIGINATION_SETTLED` - ACH origination has settled. - # - `ACH_ORIGINATION_RELEASED` - ACH origination released from pending to - # available balance. - # - `ACH_RETURN_PROCESSED` - ACH origination returned by the Receiving Depository - # Financial Institution. - # - `ACH_RECEIPT_PROCESSED` - ACH receipt pending release from an ACH holder. - # - `ACH_RETURN_INITIATED` - ACH initiated return for a ACH receipt. - # - `ACH_RECEIPT_SETTLED` - ACH receipt funds have settled. - # - `ACH_RECEIPT_RELEASED` - ACH receipt released from pending to available - # balance. - # - `ACH_RETURN_SETTLED` - ACH receipt return settled by the Receiving Depository - # Financial Institution. - sig do - returns( - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::Type::TaggedSymbol - ) - end - attr_accessor :type - - # More detailed reasons for the event - sig do - returns( - T.nilable( - T::Array[ - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::DetailedResult::TaggedSymbol - ] - ) - ) - end - attr_reader :detailed_results - - sig do - params( - detailed_results: - T::Array[ - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::DetailedResult::OrSymbol - ] - ).void - end - attr_writer :detailed_results - - # Payment Event - sig do - params( - token: String, - amount: Integer, - created: Time, - result: - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::Result::OrSymbol, - type: - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::Type::OrSymbol, - detailed_results: - T::Array[ - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::DetailedResult::OrSymbol - ] - ).returns(T.attached_class) - end - def self.new( - # Globally unique identifier. - token:, - # Amount of the financial event that has been settled in the currency's smallest - # unit (e.g., cents). - amount:, - # Date and time when the financial event occurred. UTC time zone. - created:, - # APPROVED financial events were successful while DECLINED financial events were - # declined by user, Lithic, or the network. - result:, - # Event types: - # - # - `ACH_ORIGINATION_INITIATED` - ACH origination received and pending - # approval/release from an ACH hold. - # - `ACH_ORIGINATION_REVIEWED` - ACH origination has completed the review process. - # - `ACH_ORIGINATION_CANCELLED` - ACH origination has been cancelled. - # - `ACH_ORIGINATION_PROCESSED` - ACH origination has been processed and sent to - # the Federal Reserve. - # - `ACH_ORIGINATION_SETTLED` - ACH origination has settled. - # - `ACH_ORIGINATION_RELEASED` - ACH origination released from pending to - # available balance. - # - `ACH_RETURN_PROCESSED` - ACH origination returned by the Receiving Depository - # Financial Institution. - # - `ACH_RECEIPT_PROCESSED` - ACH receipt pending release from an ACH holder. - # - `ACH_RETURN_INITIATED` - ACH initiated return for a ACH receipt. - # - `ACH_RECEIPT_SETTLED` - ACH receipt funds have settled. - # - `ACH_RECEIPT_RELEASED` - ACH receipt released from pending to available - # balance. - # - `ACH_RETURN_SETTLED` - ACH receipt return settled by the Receiving Depository - # Financial Institution. - type:, - # More detailed reasons for the event - detailed_results: nil - ) - end - - sig do - override.returns( - { - token: String, - amount: Integer, - created: Time, - result: - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::Result::TaggedSymbol, - type: - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::Type::TaggedSymbol, - detailed_results: - T::Array[ - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::DetailedResult::TaggedSymbol - ] - } - ) - end - def to_hash - end - - # APPROVED financial events were successful while DECLINED financial events were - # declined by user, Lithic, or the network. - module Result - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::Result - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - APPROVED = - T.let( - :APPROVED, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::Result::TaggedSymbol - ) - DECLINED = - T.let( - :DECLINED, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::Result::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::Result::TaggedSymbol - ] - ) - end - def self.values - end - end - - # Event types: - # - # - `ACH_ORIGINATION_INITIATED` - ACH origination received and pending - # approval/release from an ACH hold. - # - `ACH_ORIGINATION_REVIEWED` - ACH origination has completed the review process. - # - `ACH_ORIGINATION_CANCELLED` - ACH origination has been cancelled. - # - `ACH_ORIGINATION_PROCESSED` - ACH origination has been processed and sent to - # the Federal Reserve. - # - `ACH_ORIGINATION_SETTLED` - ACH origination has settled. - # - `ACH_ORIGINATION_RELEASED` - ACH origination released from pending to - # available balance. - # - `ACH_RETURN_PROCESSED` - ACH origination returned by the Receiving Depository - # Financial Institution. - # - `ACH_RECEIPT_PROCESSED` - ACH receipt pending release from an ACH holder. - # - `ACH_RETURN_INITIATED` - ACH initiated return for a ACH receipt. - # - `ACH_RECEIPT_SETTLED` - ACH receipt funds have settled. - # - `ACH_RECEIPT_RELEASED` - ACH receipt released from pending to available - # balance. - # - `ACH_RETURN_SETTLED` - ACH receipt return settled by the Receiving Depository - # Financial Institution. - module Type - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ACH_ORIGINATION_CANCELLED = - T.let( - :ACH_ORIGINATION_CANCELLED, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::Type::TaggedSymbol - ) - ACH_ORIGINATION_INITIATED = - T.let( - :ACH_ORIGINATION_INITIATED, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::Type::TaggedSymbol - ) - ACH_ORIGINATION_PROCESSED = - T.let( - :ACH_ORIGINATION_PROCESSED, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::Type::TaggedSymbol - ) - ACH_ORIGINATION_SETTLED = - T.let( - :ACH_ORIGINATION_SETTLED, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::Type::TaggedSymbol - ) - ACH_ORIGINATION_RELEASED = - T.let( - :ACH_ORIGINATION_RELEASED, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::Type::TaggedSymbol - ) - ACH_ORIGINATION_REVIEWED = - T.let( - :ACH_ORIGINATION_REVIEWED, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::Type::TaggedSymbol - ) - ACH_RECEIPT_PROCESSED = - T.let( - :ACH_RECEIPT_PROCESSED, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::Type::TaggedSymbol - ) - ACH_RECEIPT_SETTLED = - T.let( - :ACH_RECEIPT_SETTLED, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::Type::TaggedSymbol - ) - ACH_RETURN_INITIATED = - T.let( - :ACH_RETURN_INITIATED, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::Type::TaggedSymbol - ) - ACH_RETURN_PROCESSED = - T.let( - :ACH_RETURN_PROCESSED, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::Type::TaggedSymbol - ) - ACH_RETURN_SETTLED = - T.let( - :ACH_RETURN_SETTLED, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - - module DetailedResult - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::DetailedResult - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - APPROVED = - T.let( - :APPROVED, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::DetailedResult::TaggedSymbol - ) - FUNDS_INSUFFICIENT = - T.let( - :FUNDS_INSUFFICIENT, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::DetailedResult::TaggedSymbol - ) - ACCOUNT_INVALID = - T.let( - :ACCOUNT_INVALID, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::DetailedResult::TaggedSymbol - ) - PROGRAM_TRANSACTION_LIMIT_EXCEEDED = - T.let( - :PROGRAM_TRANSACTION_LIMIT_EXCEEDED, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::DetailedResult::TaggedSymbol - ) - PROGRAM_DAILY_LIMIT_EXCEEDED = - T.let( - :PROGRAM_DAILY_LIMIT_EXCEEDED, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::DetailedResult::TaggedSymbol - ) - PROGRAM_MONTHLY_LIMIT_EXCEEDED = - T.let( - :PROGRAM_MONTHLY_LIMIT_EXCEEDED, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::DetailedResult::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::DetailedResult::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - module Family - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Family - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - CARD = - T.let( - :CARD, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Family::TaggedSymbol - ) - PAYMENT = - T.let( - :PAYMENT, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Family::TaggedSymbol - ) - TRANSFER = - T.let( - :TRANSFER, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Family::TaggedSymbol - ) - INTERNAL = - T.let( - :INTERNAL, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Family::TaggedSymbol - ) - EXTERNAL_PAYMENT = - T.let( - :EXTERNAL_PAYMENT, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Family::TaggedSymbol - ) - MANAGEMENT_OPERATION = - T.let( - :MANAGEMENT_OPERATION, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Family::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Family::TaggedSymbol - ] - ) - end - def self.values - end - end - - # Transfer method - module Method - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Method - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ACH_NEXT_DAY = - T.let( - :ACH_NEXT_DAY, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Method::TaggedSymbol - ) - ACH_SAME_DAY = - T.let( - :ACH_SAME_DAY, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Method::TaggedSymbol - ) - WIRE = - T.let( - :WIRE, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Method::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Method::TaggedSymbol - ] - ) - end - def self.values - end - end - - # Method-specific attributes - module MethodAttributes - extend Lithic::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes - ) - end - - class ACHMethodAttributes < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes, - Lithic::Internal::AnyHash - ) - end - - # SEC code for ACH transaction - sig do - returns( - Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::SecCode::TaggedSymbol - ) - end - attr_accessor :sec_code - - # Addenda information - sig { returns(T.nilable(String)) } - attr_accessor :addenda - - # Company ID for the ACH transaction - sig { returns(T.nilable(String)) } - attr_accessor :company_id - - # Receipt routing number - sig { returns(T.nilable(String)) } - attr_accessor :receipt_routing_number - - # Number of retries attempted - sig { returns(T.nilable(Integer)) } - attr_accessor :retries - - # Return reason code if the transaction was returned - sig { returns(T.nilable(String)) } - attr_accessor :return_reason_code - - # Trace numbers for the ACH transaction - sig { returns(T.nilable(T::Array[String])) } - attr_reader :trace_numbers - - sig { params(trace_numbers: T::Array[String]).void } - attr_writer :trace_numbers - - sig do - params( - sec_code: - Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::SecCode::OrSymbol, - addenda: T.nilable(String), - company_id: T.nilable(String), - receipt_routing_number: T.nilable(String), - retries: T.nilable(Integer), - return_reason_code: T.nilable(String), - trace_numbers: T::Array[String] - ).returns(T.attached_class) - end - def self.new( - # SEC code for ACH transaction - sec_code:, - # Addenda information - addenda: nil, - # Company ID for the ACH transaction - company_id: nil, - # Receipt routing number - receipt_routing_number: nil, - # Number of retries attempted - retries: nil, - # Return reason code if the transaction was returned - return_reason_code: nil, - # Trace numbers for the ACH transaction - trace_numbers: nil - ) - end - - sig do - override.returns( - { - sec_code: - Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::SecCode::TaggedSymbol, - addenda: T.nilable(String), - company_id: T.nilable(String), - receipt_routing_number: T.nilable(String), - retries: T.nilable(Integer), - return_reason_code: T.nilable(String), - trace_numbers: T::Array[String] - } - ) - end - def to_hash - end - - # SEC code for ACH transaction - module SecCode - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::SecCode - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - CCD = - T.let( - :CCD, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::SecCode::TaggedSymbol - ) - PPD = - T.let( - :PPD, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::SecCode::TaggedSymbol - ) - WEB = - T.let( - :WEB, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::SecCode::TaggedSymbol - ) - TEL = - T.let( - :TEL, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::SecCode::TaggedSymbol - ) - CIE = - T.let( - :CIE, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::SecCode::TaggedSymbol - ) - CTX = - T.let( - :CTX, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::SecCode::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::SecCode::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class WireMethodAttributes < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes, - Lithic::Internal::AnyHash - ) - end - - # Type of wire transfer - sig do - returns( - Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes::WireNetwork::TaggedSymbol - ) - end - attr_accessor :wire_network - - sig { returns(T.nilable(Lithic::WirePartyDetails)) } - attr_reader :creditor - - sig { params(creditor: Lithic::WirePartyDetails::OrHash).void } - attr_writer :creditor - - sig { returns(T.nilable(Lithic::WirePartyDetails)) } - attr_reader :debtor - - sig { params(debtor: Lithic::WirePartyDetails::OrHash).void } - attr_writer :debtor - - # Point to point reference identifier, as assigned by the instructing party, used - # for tracking the message through the Fedwire system - sig { returns(T.nilable(String)) } - attr_accessor :message_id - - # Payment details or invoice reference - sig { returns(T.nilable(String)) } - attr_accessor :remittance_information - - # Type of wire message - sig { returns(T.nilable(String)) } - attr_reader :wire_message_type - - sig { params(wire_message_type: String).void } - attr_writer :wire_message_type - - sig do - params( - wire_network: - Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes::WireNetwork::OrSymbol, - creditor: Lithic::WirePartyDetails::OrHash, - debtor: Lithic::WirePartyDetails::OrHash, - message_id: T.nilable(String), - remittance_information: T.nilable(String), - wire_message_type: String - ).returns(T.attached_class) - end - def self.new( - # Type of wire transfer - wire_network:, - creditor: nil, - debtor: nil, - # Point to point reference identifier, as assigned by the instructing party, used - # for tracking the message through the Fedwire system - message_id: nil, - # Payment details or invoice reference - remittance_information: nil, - # Type of wire message - wire_message_type: nil - ) - end - - sig do - override.returns( - { - wire_network: - Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes::WireNetwork::TaggedSymbol, - creditor: Lithic::WirePartyDetails, - debtor: Lithic::WirePartyDetails, - message_id: T.nilable(String), - remittance_information: T.nilable(String), - wire_message_type: String - } - ) - end - def to_hash - end - - # Type of wire transfer - module WireNetwork - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes::WireNetwork - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - FEDWIRE = - T.let( - :FEDWIRE, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes::WireNetwork::TaggedSymbol - ) - SWIFT = - T.let( - :SWIFT, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes::WireNetwork::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes::WireNetwork::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::Variants - ] - ) - end - def self.variants - end - end - - class RelatedAccountTokens < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AccountActivityListResponse::PaymentTransaction::RelatedAccountTokens, - Lithic::Internal::AnyHash - ) - end - - # Globally unique identifier for the account - sig { returns(T.nilable(String)) } - attr_accessor :account_token - - # Globally unique identifier for the business account - sig { returns(T.nilable(String)) } - attr_accessor :business_account_token - - # Related account tokens for the transaction - sig do - params( - account_token: T.nilable(String), - business_account_token: T.nilable(String) - ).returns(T.attached_class) - end - def self.new( - # Globally unique identifier for the account - account_token:, - # Globally unique identifier for the business account - business_account_token: - ) - end - - sig do - override.returns( - { - account_token: T.nilable(String), - business_account_token: T.nilable(String) - } - ) - end - def to_hash - end - end - - # Transaction result - module Result - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Result - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - APPROVED = - T.let( - :APPROVED, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Result::TaggedSymbol - ) - DECLINED = - T.let( - :DECLINED, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Result::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Result::TaggedSymbol - ] - ) - end - def self.values - end - end - - # Transaction source - module Source - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Source - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - LITHIC = - T.let( - :LITHIC, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Source::TaggedSymbol - ) - EXTERNAL = - T.let( - :EXTERNAL, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Source::TaggedSymbol - ) - CUSTOMER = - T.let( - :CUSTOMER, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Source::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Source::TaggedSymbol - ] - ) - end - def self.values - end - end - - # The status of the transaction - module Status - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Status - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - PENDING = - T.let( - :PENDING, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Status::TaggedSymbol - ) - SETTLED = - T.let( - :SETTLED, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Status::TaggedSymbol - ) - DECLINED = - T.let( - :DECLINED, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Status::TaggedSymbol - ) - REVERSED = - T.let( - :REVERSED, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Status::TaggedSymbol - ) - CANCELED = - T.let( - :CANCELED, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Status::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Status::TaggedSymbol - ] - ) - end - def self.values - end - end - - module Type - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ORIGINATION_CREDIT = - T.let( - :ORIGINATION_CREDIT, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Type::TaggedSymbol - ) - ORIGINATION_DEBIT = - T.let( - :ORIGINATION_DEBIT, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Type::TaggedSymbol - ) - RECEIPT_CREDIT = - T.let( - :RECEIPT_CREDIT, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Type::TaggedSymbol - ) - RECEIPT_DEBIT = - T.let( - :RECEIPT_DEBIT, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Type::TaggedSymbol - ) - WIRE_INBOUND_PAYMENT = - T.let( - :WIRE_INBOUND_PAYMENT, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Type::TaggedSymbol - ) - WIRE_INBOUND_ADMIN = - T.let( - :WIRE_INBOUND_ADMIN, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Type::TaggedSymbol - ) - WIRE_OUTBOUND_PAYMENT = - T.let( - :WIRE_OUTBOUND_PAYMENT, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Type::TaggedSymbol - ) - WIRE_OUTBOUND_ADMIN = - T.let( - :WIRE_OUTBOUND_ADMIN, - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityListResponse::PaymentTransaction::Type::TaggedSymbol - ] - ) - end - def self.values - end - end end sig do diff --git a/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi b/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi index 412a458b..20e4377b 100644 --- a/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +++ b/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi @@ -2,27 +2,31 @@ module Lithic module Models - # Response containing multiple transaction types + # Response containing multiple transaction types. The `family` field determines + # which transaction type is returned: INTERNAL returns FinancialTransaction, + # TRANSFER returns BookTransferTransaction, CARD returns CardTransaction, PAYMENT + # returns PaymentTransaction, EXTERNAL_PAYMENT returns ExternalPaymentResponse, + # and MANAGEMENT_OPERATION returns ManagementOperationTransaction module AccountActivityRetrieveTransactionResponse extend Lithic::Internal::Type::Union Variants = T.type_alias do T.any( - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction, - Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction, + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal, + Lithic::BookTransferResponse, + Lithic::Models::AccountActivityRetrieveTransactionResponse::Card, + Lithic::Payment, Lithic::ExternalPayment, Lithic::ManagementOperationTransaction ) end - class FinancialTransaction < Lithic::Internal::Type::BaseModel + class Internal < Lithic::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction, + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal, Lithic::Internal::AnyHash ) end @@ -34,7 +38,7 @@ module Lithic # Transaction category sig do returns( - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Category::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category::TaggedSymbol ) end attr_accessor :category @@ -55,17 +59,14 @@ module Lithic sig do returns( T::Array[ - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event ] ) end attr_accessor :events - sig do - returns( - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Family::TaggedSymbol - ) - end + # INTERNAL - Financial Transaction + sig { returns(Symbol) } attr_accessor :family # Financial account token associated with the transaction @@ -79,7 +80,7 @@ module Lithic # Transaction result sig do returns( - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Result::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Result::TaggedSymbol ) end attr_accessor :result @@ -91,7 +92,7 @@ module Lithic # The status of the transaction sig do returns( - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Status::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Status::TaggedSymbol ) end attr_accessor :status @@ -105,24 +106,23 @@ module Lithic params( token: String, category: - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Category::OrSymbol, + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category::OrSymbol, created: Time, currency: String, descriptor: String, events: T::Array[ - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::OrHash + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::OrHash ], - family: - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Family::OrSymbol, financial_account_token: String, pending_amount: Integer, result: - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Result::OrSymbol, + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Result::OrSymbol, settled_amount: Integer, status: - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Status::OrSymbol, - updated: Time + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Status::OrSymbol, + updated: Time, + family: Symbol ).returns(T.attached_class) end def self.new( @@ -138,7 +138,6 @@ module Lithic descriptor:, # List of transaction events events:, - family:, # Financial account token associated with the transaction financial_account_token:, # Pending amount in cents @@ -150,7 +149,9 @@ module Lithic # The status of the transaction status:, # ISO 8601 timestamp of when the transaction was last updated - updated: + updated:, + # INTERNAL - Financial Transaction + family: :INTERNAL ) end @@ -159,23 +160,22 @@ module Lithic { token: String, category: - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Category::TaggedSymbol, + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category::TaggedSymbol, created: Time, currency: String, descriptor: String, events: T::Array[ - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event ], - family: - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Family::TaggedSymbol, + family: Symbol, financial_account_token: String, pending_amount: Integer, result: - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Result::TaggedSymbol, + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Result::TaggedSymbol, settled_amount: Integer, status: - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Status::TaggedSymbol, + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Status::TaggedSymbol, updated: Time } ) @@ -191,7 +191,7 @@ module Lithic T.type_alias do T.all( Symbol, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Category + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -199,98 +199,98 @@ module Lithic ACH = T.let( :ACH, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Category::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category::TaggedSymbol ) BALANCE_OR_FUNDING = T.let( :BALANCE_OR_FUNDING, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Category::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category::TaggedSymbol ) FEE = T.let( :FEE, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Category::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category::TaggedSymbol ) REWARD = T.let( :REWARD, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Category::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category::TaggedSymbol ) ADJUSTMENT = T.let( :ADJUSTMENT, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Category::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category::TaggedSymbol ) DERECOGNITION = T.let( :DERECOGNITION, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Category::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category::TaggedSymbol ) DISPUTE = T.let( :DISPUTE, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Category::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category::TaggedSymbol ) CARD = T.let( :CARD, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Category::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category::TaggedSymbol ) EXTERNAL_ACH = T.let( :EXTERNAL_ACH, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Category::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category::TaggedSymbol ) EXTERNAL_CHECK = T.let( :EXTERNAL_CHECK, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Category::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category::TaggedSymbol ) EXTERNAL_TRANSFER = T.let( :EXTERNAL_TRANSFER, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Category::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category::TaggedSymbol ) EXTERNAL_WIRE = T.let( :EXTERNAL_WIRE, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Category::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category::TaggedSymbol ) MANAGEMENT_ADJUSTMENT = T.let( :MANAGEMENT_ADJUSTMENT, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Category::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category::TaggedSymbol ) MANAGEMENT_DISPUTE = T.let( :MANAGEMENT_DISPUTE, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Category::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category::TaggedSymbol ) MANAGEMENT_FEE = T.let( :MANAGEMENT_FEE, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Category::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category::TaggedSymbol ) MANAGEMENT_REWARD = T.let( :MANAGEMENT_REWARD, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Category::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category::TaggedSymbol ) MANAGEMENT_DISBURSEMENT = T.let( :MANAGEMENT_DISBURSEMENT, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Category::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category::TaggedSymbol ) PROGRAM_FUNDING = T.let( :PROGRAM_FUNDING, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Category::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category::TaggedSymbol ) sig do override.returns( T::Array[ - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Category::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category::TaggedSymbol ] ) end @@ -302,7 +302,7 @@ module Lithic OrHash = T.type_alias do T.any( - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event, + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event, Lithic::Internal::AnyHash ) end @@ -334,7 +334,7 @@ module Lithic sig do returns( T.nilable( - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Result::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Result::TaggedSymbol ) ) end @@ -343,7 +343,7 @@ module Lithic sig do params( result: - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Result::OrSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Result::OrSymbol ).void end attr_writer :result @@ -351,7 +351,7 @@ module Lithic sig do returns( T.nilable( - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) ) end @@ -360,7 +360,7 @@ module Lithic sig do params( type: - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::OrSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::OrSymbol ).void end attr_writer :type @@ -372,9 +372,9 @@ module Lithic amount: Integer, created: Time, result: - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Result::OrSymbol, + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Result::OrSymbol, type: - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::OrSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::OrSymbol ).returns(T.attached_class) end def self.new( @@ -399,9 +399,9 @@ module Lithic amount: Integer, created: Time, result: - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Result::TaggedSymbol, + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Result::TaggedSymbol, type: - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol } ) end @@ -417,7 +417,7 @@ module Lithic T.type_alias do T.all( Symbol, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Result + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Result ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -425,18 +425,18 @@ module Lithic APPROVED = T.let( :APPROVED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Result::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Result::TaggedSymbol ) DECLINED = T.let( :DECLINED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Result::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Result::TaggedSymbol ) sig do override.returns( T::Array[ - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Result::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Result::TaggedSymbol ] ) end @@ -451,7 +451,7 @@ module Lithic T.type_alias do T.all( Symbol, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -459,358 +459,358 @@ module Lithic ACH_ORIGINATION_CANCELLED = T.let( :ACH_ORIGINATION_CANCELLED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) ACH_ORIGINATION_INITIATED = T.let( :ACH_ORIGINATION_INITIATED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) ACH_ORIGINATION_PROCESSED = T.let( :ACH_ORIGINATION_PROCESSED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) ACH_ORIGINATION_RELEASED = T.let( :ACH_ORIGINATION_RELEASED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) ACH_ORIGINATION_REJECTED = T.let( :ACH_ORIGINATION_REJECTED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) ACH_ORIGINATION_REVIEWED = T.let( :ACH_ORIGINATION_REVIEWED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) ACH_ORIGINATION_SETTLED = T.let( :ACH_ORIGINATION_SETTLED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) ACH_RECEIPT_PROCESSED = T.let( :ACH_RECEIPT_PROCESSED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) ACH_RECEIPT_SETTLED = T.let( :ACH_RECEIPT_SETTLED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) ACH_RETURN_INITIATED = T.let( :ACH_RETURN_INITIATED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) ACH_RETURN_PROCESSED = T.let( :ACH_RETURN_PROCESSED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) ACH_RETURN_REJECTED = T.let( :ACH_RETURN_REJECTED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) ACH_RETURN_SETTLED = T.let( :ACH_RETURN_SETTLED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) AUTHORIZATION = T.let( :AUTHORIZATION, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) AUTHORIZATION_ADVICE = T.let( :AUTHORIZATION_ADVICE, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) AUTHORIZATION_EXPIRY = T.let( :AUTHORIZATION_EXPIRY, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) AUTHORIZATION_REVERSAL = T.let( :AUTHORIZATION_REVERSAL, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) BALANCE_INQUIRY = T.let( :BALANCE_INQUIRY, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) BILLING_ERROR = T.let( :BILLING_ERROR, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) BILLING_ERROR_REVERSAL = T.let( :BILLING_ERROR_REVERSAL, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) CARD_TO_CARD = T.let( :CARD_TO_CARD, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) CASH_BACK = T.let( :CASH_BACK, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) CASH_BACK_REVERSAL = T.let( :CASH_BACK_REVERSAL, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) CLEARING = T.let( :CLEARING, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) COLLECTION = T.let( :COLLECTION, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) CORRECTION_CREDIT = T.let( :CORRECTION_CREDIT, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) CORRECTION_DEBIT = T.let( :CORRECTION_DEBIT, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) CREDIT_AUTHORIZATION = T.let( :CREDIT_AUTHORIZATION, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) CREDIT_AUTHORIZATION_ADVICE = T.let( :CREDIT_AUTHORIZATION_ADVICE, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) CURRENCY_CONVERSION = T.let( :CURRENCY_CONVERSION, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) CURRENCY_CONVERSION_REVERSAL = T.let( :CURRENCY_CONVERSION_REVERSAL, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) DISPUTE_WON = T.let( :DISPUTE_WON, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) EXTERNAL_ACH_CANCELED = T.let( :EXTERNAL_ACH_CANCELED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) EXTERNAL_ACH_INITIATED = T.let( :EXTERNAL_ACH_INITIATED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) EXTERNAL_ACH_RELEASED = T.let( :EXTERNAL_ACH_RELEASED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) EXTERNAL_ACH_REVERSED = T.let( :EXTERNAL_ACH_REVERSED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) EXTERNAL_ACH_SETTLED = T.let( :EXTERNAL_ACH_SETTLED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) EXTERNAL_CHECK_CANCELED = T.let( :EXTERNAL_CHECK_CANCELED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) EXTERNAL_CHECK_INITIATED = T.let( :EXTERNAL_CHECK_INITIATED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) EXTERNAL_CHECK_RELEASED = T.let( :EXTERNAL_CHECK_RELEASED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) EXTERNAL_CHECK_REVERSED = T.let( :EXTERNAL_CHECK_REVERSED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) EXTERNAL_CHECK_SETTLED = T.let( :EXTERNAL_CHECK_SETTLED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) EXTERNAL_TRANSFER_CANCELED = T.let( :EXTERNAL_TRANSFER_CANCELED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) EXTERNAL_TRANSFER_INITIATED = T.let( :EXTERNAL_TRANSFER_INITIATED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) EXTERNAL_TRANSFER_RELEASED = T.let( :EXTERNAL_TRANSFER_RELEASED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) EXTERNAL_TRANSFER_REVERSED = T.let( :EXTERNAL_TRANSFER_REVERSED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) EXTERNAL_TRANSFER_SETTLED = T.let( :EXTERNAL_TRANSFER_SETTLED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) EXTERNAL_WIRE_CANCELED = T.let( :EXTERNAL_WIRE_CANCELED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) EXTERNAL_WIRE_INITIATED = T.let( :EXTERNAL_WIRE_INITIATED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) EXTERNAL_WIRE_RELEASED = T.let( :EXTERNAL_WIRE_RELEASED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) EXTERNAL_WIRE_REVERSED = T.let( :EXTERNAL_WIRE_REVERSED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) EXTERNAL_WIRE_SETTLED = T.let( :EXTERNAL_WIRE_SETTLED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) FINANCIAL_AUTHORIZATION = T.let( :FINANCIAL_AUTHORIZATION, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) FINANCIAL_CREDIT_AUTHORIZATION = T.let( :FINANCIAL_CREDIT_AUTHORIZATION, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) INTEREST = T.let( :INTEREST, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) INTEREST_REVERSAL = T.let( :INTEREST_REVERSAL, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) INTERNAL_ADJUSTMENT = T.let( :INTERNAL_ADJUSTMENT, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) LATE_PAYMENT = T.let( :LATE_PAYMENT, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) LATE_PAYMENT_REVERSAL = T.let( :LATE_PAYMENT_REVERSAL, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) LOSS_WRITE_OFF = T.let( :LOSS_WRITE_OFF, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) PROVISIONAL_CREDIT = T.let( :PROVISIONAL_CREDIT, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) PROVISIONAL_CREDIT_REVERSAL = T.let( :PROVISIONAL_CREDIT_REVERSAL, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) SERVICE = T.let( :SERVICE, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) RETURN = T.let( :RETURN, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) RETURN_REVERSAL = T.let( :RETURN_REVERSAL, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) TRANSFER = T.let( :TRANSFER, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) TRANSFER_INSUFFICIENT_FUNDS = T.let( :TRANSFER_INSUFFICIENT_FUNDS, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) RETURNED_PAYMENT = T.let( :RETURNED_PAYMENT, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) RETURNED_PAYMENT_REVERSAL = T.let( :RETURNED_PAYMENT_REVERSAL, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) LITHIC_NETWORK_PAYMENT = T.let( :LITHIC_NETWORK_PAYMENT, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ) sig do override.returns( T::Array[ - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::Type::TaggedSymbol ] ) end @@ -819,60 +819,6 @@ module Lithic end end - module Family - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Family - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - CARD = - T.let( - :CARD, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Family::TaggedSymbol - ) - PAYMENT = - T.let( - :PAYMENT, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Family::TaggedSymbol - ) - TRANSFER = - T.let( - :TRANSFER, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Family::TaggedSymbol - ) - INTERNAL = - T.let( - :INTERNAL, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Family::TaggedSymbol - ) - EXTERNAL_PAYMENT = - T.let( - :EXTERNAL_PAYMENT, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Family::TaggedSymbol - ) - MANAGEMENT_OPERATION = - T.let( - :MANAGEMENT_OPERATION, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Family::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Family::TaggedSymbol - ] - ) - end - def self.values - end - end - # Transaction result module Result extend Lithic::Internal::Type::Enum @@ -881,7 +827,7 @@ module Lithic T.type_alias do T.all( Symbol, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Result + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Result ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -889,18 +835,18 @@ module Lithic APPROVED = T.let( :APPROVED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Result::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Result::TaggedSymbol ) DECLINED = T.let( :DECLINED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Result::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Result::TaggedSymbol ) sig do override.returns( T::Array[ - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Result::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Result::TaggedSymbol ] ) end @@ -916,7 +862,7 @@ module Lithic T.type_alias do T.all( Symbol, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Status + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Status ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -924,33 +870,33 @@ module Lithic PENDING = T.let( :PENDING, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Status::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Status::TaggedSymbol ) SETTLED = T.let( :SETTLED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Status::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Status::TaggedSymbol ) DECLINED = T.let( :DECLINED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Status::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Status::TaggedSymbol ) REVERSED = T.let( :REVERSED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Status::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Status::TaggedSymbol ) CANCELED = T.let( :CANCELED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Status::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Status::TaggedSymbol ) sig do override.returns( T::Array[ - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Status::TaggedSymbol + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Status::TaggedSymbol ] ) end @@ -959,2445 +905,23 @@ module Lithic end end - class BookTransferTransaction < Lithic::Internal::Type::BaseModel + class Card < Lithic::Models::Transaction OrHash = T.type_alias do T.any( - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction, + Lithic::Models::AccountActivityRetrieveTransactionResponse::Card, Lithic::Internal::AnyHash ) end - # Unique identifier for the transaction - sig { returns(String) } - attr_accessor :token - - sig do - returns( - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Category::TaggedSymbol - ) - end - attr_accessor :category - - # ISO 8601 timestamp of when the transaction was created - sig { returns(Time) } - attr_accessor :created - - # Currency of the transaction in ISO 4217 format - sig { returns(String) } - attr_accessor :currency - - # List of events associated with this book transfer - sig do - returns( - T::Array[ - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event - ] - ) - end - attr_accessor :events - - sig do - returns( - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Family::TaggedSymbol - ) - end - attr_accessor :family - - # Source account token - sig { returns(String) } - attr_accessor :from_financial_account_token - - # The pending amount of the transaction in cents - sig { returns(Integer) } - attr_accessor :pending_amount - - sig do - returns( - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Result::TaggedSymbol - ) - end - attr_accessor :result - - # The settled amount of the transaction in cents - sig { returns(Integer) } - attr_accessor :settled_amount - - # The status of the transaction - sig do - returns( - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Status::TaggedSymbol - ) - end - attr_accessor :status - - # Destination account token - sig { returns(String) } - attr_accessor :to_financial_account_token - - # ISO 8601 timestamp of when the transaction was last updated - sig { returns(Time) } - attr_accessor :updated - - # External identifier for the transaction - sig { returns(T.nilable(String)) } - attr_reader :external_id - - sig { params(external_id: String).void } - attr_writer :external_id - - # External resource associated with the management operation - sig { returns(T.nilable(Lithic::ExternalResource)) } - attr_reader :external_resource - - sig do - params( - external_resource: T.nilable(Lithic::ExternalResource::OrHash) - ).void - end - attr_writer :external_resource - - sig do - returns( - T.nilable( - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::TransactionSeries - ) - ) - end - attr_reader :transaction_series - - sig do - params( - transaction_series: - T.nilable( - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::TransactionSeries::OrHash - ) - ).void - end - attr_writer :transaction_series - - # Book transfer transaction - sig do - params( - token: String, - category: - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Category::OrSymbol, - created: Time, - currency: String, - events: - T::Array[ - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::OrHash - ], - family: - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Family::OrSymbol, - from_financial_account_token: String, - pending_amount: Integer, - result: - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Result::OrSymbol, - settled_amount: Integer, - status: - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Status::OrSymbol, - to_financial_account_token: String, - updated: Time, - external_id: String, - external_resource: T.nilable(Lithic::ExternalResource::OrHash), - transaction_series: - T.nilable( - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::TransactionSeries::OrHash - ) - ).returns(T.attached_class) - end - def self.new( - # Unique identifier for the transaction - token:, - category:, - # ISO 8601 timestamp of when the transaction was created - created:, - # Currency of the transaction in ISO 4217 format - currency:, - # List of events associated with this book transfer - events:, - family:, - # Source account token - from_financial_account_token:, - # The pending amount of the transaction in cents - pending_amount:, - result:, - # The settled amount of the transaction in cents - settled_amount:, - # The status of the transaction - status:, - # Destination account token - to_financial_account_token:, - # ISO 8601 timestamp of when the transaction was last updated - updated:, - # External identifier for the transaction - external_id: nil, - # External resource associated with the management operation - external_resource: nil, - transaction_series: nil - ) + # Card transaction with ledger base properties + sig { returns(T.attached_class) } + def self.new end - sig do - override.returns( - { - token: String, - category: - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Category::TaggedSymbol, - created: Time, - currency: String, - events: - T::Array[ - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event - ], - family: - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Family::TaggedSymbol, - from_financial_account_token: String, - pending_amount: Integer, - result: - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Result::TaggedSymbol, - settled_amount: Integer, - status: - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Status::TaggedSymbol, - to_financial_account_token: String, - updated: Time, - external_id: String, - external_resource: T.nilable(Lithic::ExternalResource), - transaction_series: - T.nilable( - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::TransactionSeries - ) - } - ) - end + sig { override.returns({}) } def to_hash end - - module Category - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Category - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ADJUSTMENT = - T.let( - :ADJUSTMENT, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Category::TaggedSymbol - ) - BALANCE_OR_FUNDING = - T.let( - :BALANCE_OR_FUNDING, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Category::TaggedSymbol - ) - DERECOGNITION = - T.let( - :DERECOGNITION, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Category::TaggedSymbol - ) - DISPUTE = - T.let( - :DISPUTE, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Category::TaggedSymbol - ) - FEE = - T.let( - :FEE, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Category::TaggedSymbol - ) - INTERNAL = - T.let( - :INTERNAL, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Category::TaggedSymbol - ) - REWARD = - T.let( - :REWARD, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Category::TaggedSymbol - ) - PROGRAM_FUNDING = - T.let( - :PROGRAM_FUNDING, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Category::TaggedSymbol - ) - TRANSFER = - T.let( - :TRANSFER, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Category::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Category::TaggedSymbol - ] - ) - end - def self.values - end - end - - class Event < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event, - Lithic::Internal::AnyHash - ) - end - - # Globally unique identifier. - sig { returns(String) } - attr_accessor :token - - # Amount of the financial event that has been settled in the currency's smallest - # unit (e.g., cents). - sig { returns(Integer) } - attr_accessor :amount - - # Date and time when the financial event occurred. UTC time zone. - sig { returns(Time) } - attr_accessor :created - - sig do - returns( - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::DetailedResults::TaggedSymbol - ) - end - attr_accessor :detailed_results - - # Memo for the transfer. - sig { returns(String) } - attr_accessor :memo - - # APPROVED financial events were successful while DECLINED financial events were - # declined by user, Lithic, or the network. - sig do - returns( - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Result::TaggedSymbol - ) - end - attr_accessor :result - - # The program specific subtype code for the specified category/type. - sig { returns(String) } - attr_accessor :subtype - - # Type of the book transfer - sig do - returns( - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - end - attr_accessor :type - - # Book transfer Event - sig do - params( - token: String, - amount: Integer, - created: Time, - detailed_results: - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::DetailedResults::OrSymbol, - memo: String, - result: - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Result::OrSymbol, - subtype: String, - type: - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type::OrSymbol - ).returns(T.attached_class) - end - def self.new( - # Globally unique identifier. - token:, - # Amount of the financial event that has been settled in the currency's smallest - # unit (e.g., cents). - amount:, - # Date and time when the financial event occurred. UTC time zone. - created:, - detailed_results:, - # Memo for the transfer. - memo:, - # APPROVED financial events were successful while DECLINED financial events were - # declined by user, Lithic, or the network. - result:, - # The program specific subtype code for the specified category/type. - subtype:, - # Type of the book transfer - type: - ) - end - - sig do - override.returns( - { - token: String, - amount: Integer, - created: Time, - detailed_results: - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::DetailedResults::TaggedSymbol, - memo: String, - result: - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Result::TaggedSymbol, - subtype: String, - type: - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type::TaggedSymbol - } - ) - end - def to_hash - end - - module DetailedResults - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::DetailedResults - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - APPROVED = - T.let( - :APPROVED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::DetailedResults::TaggedSymbol - ) - FUNDS_INSUFFICIENT = - T.let( - :FUNDS_INSUFFICIENT, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::DetailedResults::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::DetailedResults::TaggedSymbol - ] - ) - end - def self.values - end - end - - # APPROVED financial events were successful while DECLINED financial events were - # declined by user, Lithic, or the network. - module Result - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Result - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - APPROVED = - T.let( - :APPROVED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Result::TaggedSymbol - ) - DECLINED = - T.let( - :DECLINED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Result::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Result::TaggedSymbol - ] - ) - end - def self.values - end - end - - # Type of the book transfer - module Type - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ATM_BALANCE_INQUIRY = - T.let( - :ATM_BALANCE_INQUIRY, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - ATM_WITHDRAWAL = - T.let( - :ATM_WITHDRAWAL, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - ATM_DECLINE = - T.let( - :ATM_DECLINE, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - INTERNATIONAL_ATM_WITHDRAWAL = - T.let( - :INTERNATIONAL_ATM_WITHDRAWAL, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - INACTIVITY = - T.let( - :INACTIVITY, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - STATEMENT = - T.let( - :STATEMENT, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - MONTHLY = - T.let( - :MONTHLY, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - QUARTERLY = - T.let( - :QUARTERLY, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - ANNUAL = - T.let( - :ANNUAL, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - CUSTOMER_SERVICE = - T.let( - :CUSTOMER_SERVICE, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - ACCOUNT_MAINTENANCE = - T.let( - :ACCOUNT_MAINTENANCE, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - ACCOUNT_ACTIVATION = - T.let( - :ACCOUNT_ACTIVATION, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - ACCOUNT_CLOSURE = - T.let( - :ACCOUNT_CLOSURE, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - CARD_REPLACEMENT = - T.let( - :CARD_REPLACEMENT, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - CARD_DELIVERY = - T.let( - :CARD_DELIVERY, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - CARD_CREATE = - T.let( - :CARD_CREATE, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - CURRENCY_CONVERSION = - T.let( - :CURRENCY_CONVERSION, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - INTEREST = - T.let( - :INTEREST, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - LATE_PAYMENT = - T.let( - :LATE_PAYMENT, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - BILL_PAYMENT = - T.let( - :BILL_PAYMENT, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - CASH_BACK = - T.let( - :CASH_BACK, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - ACCOUNT_TO_ACCOUNT = - T.let( - :ACCOUNT_TO_ACCOUNT, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - CARD_TO_CARD = - T.let( - :CARD_TO_CARD, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - DISBURSE = - T.let( - :DISBURSE, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - BILLING_ERROR = - T.let( - :BILLING_ERROR, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - LOSS_WRITE_OFF = - T.let( - :LOSS_WRITE_OFF, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - EXPIRED_CARD = - T.let( - :EXPIRED_CARD, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - EARLY_DERECOGNITION = - T.let( - :EARLY_DERECOGNITION, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - ESCHEATMENT = - T.let( - :ESCHEATMENT, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - INACTIVITY_FEE_DOWN = - T.let( - :INACTIVITY_FEE_DOWN, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - PROVISIONAL_CREDIT = - T.let( - :PROVISIONAL_CREDIT, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - DISPUTE_WON = - T.let( - :DISPUTE_WON, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - SERVICE = - T.let( - :SERVICE, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - TRANSFER = - T.let( - :TRANSFER, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - COLLECTION = - T.let( - :COLLECTION, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - module Family - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Family - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - CARD = - T.let( - :CARD, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Family::TaggedSymbol - ) - PAYMENT = - T.let( - :PAYMENT, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Family::TaggedSymbol - ) - TRANSFER = - T.let( - :TRANSFER, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Family::TaggedSymbol - ) - INTERNAL = - T.let( - :INTERNAL, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Family::TaggedSymbol - ) - EXTERNAL_PAYMENT = - T.let( - :EXTERNAL_PAYMENT, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Family::TaggedSymbol - ) - MANAGEMENT_OPERATION = - T.let( - :MANAGEMENT_OPERATION, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Family::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Family::TaggedSymbol - ] - ) - end - def self.values - end - end - - module Result - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Result - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - APPROVED = - T.let( - :APPROVED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Result::TaggedSymbol - ) - DECLINED = - T.let( - :DECLINED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Result::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Result::TaggedSymbol - ] - ) - end - def self.values - end - end - - # The status of the transaction - module Status - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Status - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - PENDING = - T.let( - :PENDING, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Status::TaggedSymbol - ) - SETTLED = - T.let( - :SETTLED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Status::TaggedSymbol - ) - DECLINED = - T.let( - :DECLINED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Status::TaggedSymbol - ) - REVERSED = - T.let( - :REVERSED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Status::TaggedSymbol - ) - CANCELED = - T.let( - :CANCELED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Status::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Status::TaggedSymbol - ] - ) - end - def self.values - end - end - - class TransactionSeries < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::TransactionSeries, - Lithic::Internal::AnyHash - ) - end - - sig { returns(T.nilable(String)) } - attr_accessor :related_transaction_event_token - - sig { returns(T.nilable(String)) } - attr_accessor :related_transaction_token - - sig { returns(String) } - attr_accessor :type - - sig do - params( - related_transaction_event_token: T.nilable(String), - related_transaction_token: T.nilable(String), - type: String - ).returns(T.attached_class) - end - def self.new( - related_transaction_event_token:, - related_transaction_token:, - type: - ) - end - - sig do - override.returns( - { - related_transaction_event_token: T.nilable(String), - related_transaction_token: T.nilable(String), - type: String - } - ) - end - def to_hash - end - end - end - - class CardTransaction < Lithic::Models::Transaction - OrHash = - T.type_alias do - T.any( - Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction, - Lithic::Internal::AnyHash - ) - end - - # Unique identifier for the transaction - sig { returns(String) } - attr_accessor :token - - # ISO 8601 timestamp of when the transaction was created - sig { returns(Time) } - attr_accessor :created - - sig do - returns( - Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction::Family::TaggedSymbol - ) - end - attr_accessor :family - - # The status of the transaction - sig do - returns( - Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction::Status::TaggedSymbol - ) - end - attr_accessor :status - - # ISO 8601 timestamp of when the transaction was last updated - sig { returns(Time) } - attr_accessor :updated - - # Base class for all transaction types in the ledger service - sig do - params( - token: String, - created: Time, - family: - Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction::Family::OrSymbol, - status: - Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction::Status::OrSymbol, - updated: Time - ).returns(T.attached_class) - end - def self.new( - # Unique identifier for the transaction - token:, - # ISO 8601 timestamp of when the transaction was created - created:, - family:, - # The status of the transaction - status:, - # ISO 8601 timestamp of when the transaction was last updated - updated: - ) - end - - sig do - override.returns( - { - token: String, - created: Time, - family: - Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction::Family::TaggedSymbol, - status: - Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction::Status::TaggedSymbol, - updated: Time - } - ) - end - def to_hash - end - - module Family - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction::Family - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - CARD = - T.let( - :CARD, - Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction::Family::TaggedSymbol - ) - PAYMENT = - T.let( - :PAYMENT, - Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction::Family::TaggedSymbol - ) - TRANSFER = - T.let( - :TRANSFER, - Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction::Family::TaggedSymbol - ) - INTERNAL = - T.let( - :INTERNAL, - Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction::Family::TaggedSymbol - ) - EXTERNAL_PAYMENT = - T.let( - :EXTERNAL_PAYMENT, - Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction::Family::TaggedSymbol - ) - MANAGEMENT_OPERATION = - T.let( - :MANAGEMENT_OPERATION, - Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction::Family::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction::Family::TaggedSymbol - ] - ) - end - def self.values - end - end - - # The status of the transaction - module Status - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction::Status - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - PENDING = - T.let( - :PENDING, - Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction::Status::TaggedSymbol - ) - SETTLED = - T.let( - :SETTLED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction::Status::TaggedSymbol - ) - DECLINED = - T.let( - :DECLINED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction::Status::TaggedSymbol - ) - REVERSED = - T.let( - :REVERSED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction::Status::TaggedSymbol - ) - CANCELED = - T.let( - :CANCELED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction::Status::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction::Status::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class PaymentTransaction < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction, - Lithic::Internal::AnyHash - ) - end - - # Unique identifier for the transaction - sig { returns(String) } - attr_accessor :token - - # Transaction category - sig do - returns( - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Category::TaggedSymbol - ) - end - attr_accessor :category - - # ISO 8601 timestamp of when the transaction was created - sig { returns(Time) } - attr_accessor :created - - # Transaction descriptor - sig { returns(String) } - attr_accessor :descriptor - - # Transfer direction - sig do - returns( - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Direction::TaggedSymbol - ) - end - attr_accessor :direction - - # List of transaction events - sig do - returns( - T::Array[ - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event - ] - ) - end - attr_accessor :events - - sig do - returns( - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Family::TaggedSymbol - ) - end - attr_accessor :family - - # Financial account token - sig { returns(String) } - attr_accessor :financial_account_token - - # Transfer method - sig do - returns( - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Method::TaggedSymbol - ) - end - attr_accessor :method_ - - # Method-specific attributes - sig do - returns( - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::Variants - ) - end - attr_accessor :method_attributes - - # Pending amount in cents - sig { returns(Integer) } - attr_accessor :pending_amount - - # Related account tokens for the transaction - sig do - returns( - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::RelatedAccountTokens - ) - end - attr_reader :related_account_tokens - - sig do - params( - related_account_tokens: - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::RelatedAccountTokens::OrHash - ).void - end - attr_writer :related_account_tokens - - # Transaction result - sig do - returns( - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Result::TaggedSymbol - ) - end - attr_accessor :result - - # Settled amount in cents - sig { returns(Integer) } - attr_accessor :settled_amount - - # Transaction source - sig do - returns( - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Source::TaggedSymbol - ) - end - attr_accessor :source - - # The status of the transaction - sig do - returns( - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Status::TaggedSymbol - ) - end - attr_accessor :status - - # ISO 8601 timestamp of when the transaction was last updated - sig { returns(Time) } - attr_accessor :updated - - # Currency of the transaction in ISO 4217 format - sig { returns(T.nilable(String)) } - attr_reader :currency - - sig { params(currency: String).void } - attr_writer :currency - - # Expected release date for the transaction - sig { returns(T.nilable(Date)) } - attr_accessor :expected_release_date - - # External bank account token - sig { returns(T.nilable(String)) } - attr_accessor :external_bank_account_token - - sig do - returns( - T.nilable( - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Type::TaggedSymbol - ) - ) - end - attr_reader :type - - sig do - params( - type: - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Type::OrSymbol - ).void - end - attr_writer :type - - # User-defined identifier - sig { returns(T.nilable(String)) } - attr_accessor :user_defined_id - - # Payment transaction - sig do - params( - token: String, - category: - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Category::OrSymbol, - created: Time, - descriptor: String, - direction: - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Direction::OrSymbol, - events: - T::Array[ - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::OrHash - ], - family: - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Family::OrSymbol, - financial_account_token: String, - method_: - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Method::OrSymbol, - method_attributes: - T.any( - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::OrHash, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes::OrHash - ), - pending_amount: Integer, - related_account_tokens: - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::RelatedAccountTokens::OrHash, - result: - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Result::OrSymbol, - settled_amount: Integer, - source: - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Source::OrSymbol, - status: - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Status::OrSymbol, - updated: Time, - currency: String, - expected_release_date: T.nilable(Date), - external_bank_account_token: T.nilable(String), - type: - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Type::OrSymbol, - user_defined_id: T.nilable(String) - ).returns(T.attached_class) - end - def self.new( - # Unique identifier for the transaction - token:, - # Transaction category - category:, - # ISO 8601 timestamp of when the transaction was created - created:, - # Transaction descriptor - descriptor:, - # Transfer direction - direction:, - # List of transaction events - events:, - family:, - # Financial account token - financial_account_token:, - # Transfer method - method_:, - # Method-specific attributes - method_attributes:, - # Pending amount in cents - pending_amount:, - # Related account tokens for the transaction - related_account_tokens:, - # Transaction result - result:, - # Settled amount in cents - settled_amount:, - # Transaction source - source:, - # The status of the transaction - status:, - # ISO 8601 timestamp of when the transaction was last updated - updated:, - # Currency of the transaction in ISO 4217 format - currency: nil, - # Expected release date for the transaction - expected_release_date: nil, - # External bank account token - external_bank_account_token: nil, - type: nil, - # User-defined identifier - user_defined_id: nil - ) - end - - sig do - override.returns( - { - token: String, - category: - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Category::TaggedSymbol, - created: Time, - descriptor: String, - direction: - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Direction::TaggedSymbol, - events: - T::Array[ - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event - ], - family: - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Family::TaggedSymbol, - financial_account_token: String, - method_: - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Method::TaggedSymbol, - method_attributes: - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::Variants, - pending_amount: Integer, - related_account_tokens: - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::RelatedAccountTokens, - result: - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Result::TaggedSymbol, - settled_amount: Integer, - source: - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Source::TaggedSymbol, - status: - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Status::TaggedSymbol, - updated: Time, - currency: String, - expected_release_date: T.nilable(Date), - external_bank_account_token: T.nilable(String), - type: - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Type::TaggedSymbol, - user_defined_id: T.nilable(String) - } - ) - end - def to_hash - end - - # Transaction category - module Category - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Category - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ACH = - T.let( - :ACH, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Category::TaggedSymbol - ) - BALANCE_OR_FUNDING = - T.let( - :BALANCE_OR_FUNDING, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Category::TaggedSymbol - ) - FEE = - T.let( - :FEE, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Category::TaggedSymbol - ) - REWARD = - T.let( - :REWARD, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Category::TaggedSymbol - ) - ADJUSTMENT = - T.let( - :ADJUSTMENT, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Category::TaggedSymbol - ) - DERECOGNITION = - T.let( - :DERECOGNITION, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Category::TaggedSymbol - ) - DISPUTE = - T.let( - :DISPUTE, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Category::TaggedSymbol - ) - CARD = - T.let( - :CARD, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Category::TaggedSymbol - ) - EXTERNAL_ACH = - T.let( - :EXTERNAL_ACH, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Category::TaggedSymbol - ) - EXTERNAL_CHECK = - T.let( - :EXTERNAL_CHECK, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Category::TaggedSymbol - ) - EXTERNAL_TRANSFER = - T.let( - :EXTERNAL_TRANSFER, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Category::TaggedSymbol - ) - EXTERNAL_WIRE = - T.let( - :EXTERNAL_WIRE, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Category::TaggedSymbol - ) - MANAGEMENT_ADJUSTMENT = - T.let( - :MANAGEMENT_ADJUSTMENT, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Category::TaggedSymbol - ) - MANAGEMENT_DISPUTE = - T.let( - :MANAGEMENT_DISPUTE, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Category::TaggedSymbol - ) - MANAGEMENT_FEE = - T.let( - :MANAGEMENT_FEE, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Category::TaggedSymbol - ) - MANAGEMENT_REWARD = - T.let( - :MANAGEMENT_REWARD, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Category::TaggedSymbol - ) - MANAGEMENT_DISBURSEMENT = - T.let( - :MANAGEMENT_DISBURSEMENT, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Category::TaggedSymbol - ) - PROGRAM_FUNDING = - T.let( - :PROGRAM_FUNDING, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Category::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Category::TaggedSymbol - ] - ) - end - def self.values - end - end - - # Transfer direction - module Direction - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Direction - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - CREDIT = - T.let( - :CREDIT, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Direction::TaggedSymbol - ) - DEBIT = - T.let( - :DEBIT, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Direction::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Direction::TaggedSymbol - ] - ) - end - def self.values - end - end - - class Event < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event, - Lithic::Internal::AnyHash - ) - end - - # Globally unique identifier. - sig { returns(String) } - attr_accessor :token - - # Amount of the financial event that has been settled in the currency's smallest - # unit (e.g., cents). - sig { returns(Integer) } - attr_accessor :amount - - # Date and time when the financial event occurred. UTC time zone. - sig { returns(Time) } - attr_accessor :created - - # APPROVED financial events were successful while DECLINED financial events were - # declined by user, Lithic, or the network. - sig do - returns( - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::Result::TaggedSymbol - ) - end - attr_accessor :result - - # Event types: - # - # - `ACH_ORIGINATION_INITIATED` - ACH origination received and pending - # approval/release from an ACH hold. - # - `ACH_ORIGINATION_REVIEWED` - ACH origination has completed the review process. - # - `ACH_ORIGINATION_CANCELLED` - ACH origination has been cancelled. - # - `ACH_ORIGINATION_PROCESSED` - ACH origination has been processed and sent to - # the Federal Reserve. - # - `ACH_ORIGINATION_SETTLED` - ACH origination has settled. - # - `ACH_ORIGINATION_RELEASED` - ACH origination released from pending to - # available balance. - # - `ACH_RETURN_PROCESSED` - ACH origination returned by the Receiving Depository - # Financial Institution. - # - `ACH_RECEIPT_PROCESSED` - ACH receipt pending release from an ACH holder. - # - `ACH_RETURN_INITIATED` - ACH initiated return for a ACH receipt. - # - `ACH_RECEIPT_SETTLED` - ACH receipt funds have settled. - # - `ACH_RECEIPT_RELEASED` - ACH receipt released from pending to available - # balance. - # - `ACH_RETURN_SETTLED` - ACH receipt return settled by the Receiving Depository - # Financial Institution. - sig do - returns( - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::Type::TaggedSymbol - ) - end - attr_accessor :type - - # More detailed reasons for the event - sig do - returns( - T.nilable( - T::Array[ - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::DetailedResult::TaggedSymbol - ] - ) - ) - end - attr_reader :detailed_results - - sig do - params( - detailed_results: - T::Array[ - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::DetailedResult::OrSymbol - ] - ).void - end - attr_writer :detailed_results - - # Payment Event - sig do - params( - token: String, - amount: Integer, - created: Time, - result: - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::Result::OrSymbol, - type: - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::Type::OrSymbol, - detailed_results: - T::Array[ - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::DetailedResult::OrSymbol - ] - ).returns(T.attached_class) - end - def self.new( - # Globally unique identifier. - token:, - # Amount of the financial event that has been settled in the currency's smallest - # unit (e.g., cents). - amount:, - # Date and time when the financial event occurred. UTC time zone. - created:, - # APPROVED financial events were successful while DECLINED financial events were - # declined by user, Lithic, or the network. - result:, - # Event types: - # - # - `ACH_ORIGINATION_INITIATED` - ACH origination received and pending - # approval/release from an ACH hold. - # - `ACH_ORIGINATION_REVIEWED` - ACH origination has completed the review process. - # - `ACH_ORIGINATION_CANCELLED` - ACH origination has been cancelled. - # - `ACH_ORIGINATION_PROCESSED` - ACH origination has been processed and sent to - # the Federal Reserve. - # - `ACH_ORIGINATION_SETTLED` - ACH origination has settled. - # - `ACH_ORIGINATION_RELEASED` - ACH origination released from pending to - # available balance. - # - `ACH_RETURN_PROCESSED` - ACH origination returned by the Receiving Depository - # Financial Institution. - # - `ACH_RECEIPT_PROCESSED` - ACH receipt pending release from an ACH holder. - # - `ACH_RETURN_INITIATED` - ACH initiated return for a ACH receipt. - # - `ACH_RECEIPT_SETTLED` - ACH receipt funds have settled. - # - `ACH_RECEIPT_RELEASED` - ACH receipt released from pending to available - # balance. - # - `ACH_RETURN_SETTLED` - ACH receipt return settled by the Receiving Depository - # Financial Institution. - type:, - # More detailed reasons for the event - detailed_results: nil - ) - end - - sig do - override.returns( - { - token: String, - amount: Integer, - created: Time, - result: - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::Result::TaggedSymbol, - type: - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::Type::TaggedSymbol, - detailed_results: - T::Array[ - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::DetailedResult::TaggedSymbol - ] - } - ) - end - def to_hash - end - - # APPROVED financial events were successful while DECLINED financial events were - # declined by user, Lithic, or the network. - module Result - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::Result - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - APPROVED = - T.let( - :APPROVED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::Result::TaggedSymbol - ) - DECLINED = - T.let( - :DECLINED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::Result::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::Result::TaggedSymbol - ] - ) - end - def self.values - end - end - - # Event types: - # - # - `ACH_ORIGINATION_INITIATED` - ACH origination received and pending - # approval/release from an ACH hold. - # - `ACH_ORIGINATION_REVIEWED` - ACH origination has completed the review process. - # - `ACH_ORIGINATION_CANCELLED` - ACH origination has been cancelled. - # - `ACH_ORIGINATION_PROCESSED` - ACH origination has been processed and sent to - # the Federal Reserve. - # - `ACH_ORIGINATION_SETTLED` - ACH origination has settled. - # - `ACH_ORIGINATION_RELEASED` - ACH origination released from pending to - # available balance. - # - `ACH_RETURN_PROCESSED` - ACH origination returned by the Receiving Depository - # Financial Institution. - # - `ACH_RECEIPT_PROCESSED` - ACH receipt pending release from an ACH holder. - # - `ACH_RETURN_INITIATED` - ACH initiated return for a ACH receipt. - # - `ACH_RECEIPT_SETTLED` - ACH receipt funds have settled. - # - `ACH_RECEIPT_RELEASED` - ACH receipt released from pending to available - # balance. - # - `ACH_RETURN_SETTLED` - ACH receipt return settled by the Receiving Depository - # Financial Institution. - module Type - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ACH_ORIGINATION_CANCELLED = - T.let( - :ACH_ORIGINATION_CANCELLED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::Type::TaggedSymbol - ) - ACH_ORIGINATION_INITIATED = - T.let( - :ACH_ORIGINATION_INITIATED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::Type::TaggedSymbol - ) - ACH_ORIGINATION_PROCESSED = - T.let( - :ACH_ORIGINATION_PROCESSED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::Type::TaggedSymbol - ) - ACH_ORIGINATION_SETTLED = - T.let( - :ACH_ORIGINATION_SETTLED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::Type::TaggedSymbol - ) - ACH_ORIGINATION_RELEASED = - T.let( - :ACH_ORIGINATION_RELEASED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::Type::TaggedSymbol - ) - ACH_ORIGINATION_REVIEWED = - T.let( - :ACH_ORIGINATION_REVIEWED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::Type::TaggedSymbol - ) - ACH_RECEIPT_PROCESSED = - T.let( - :ACH_RECEIPT_PROCESSED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::Type::TaggedSymbol - ) - ACH_RECEIPT_SETTLED = - T.let( - :ACH_RECEIPT_SETTLED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::Type::TaggedSymbol - ) - ACH_RETURN_INITIATED = - T.let( - :ACH_RETURN_INITIATED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::Type::TaggedSymbol - ) - ACH_RETURN_PROCESSED = - T.let( - :ACH_RETURN_PROCESSED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::Type::TaggedSymbol - ) - ACH_RETURN_SETTLED = - T.let( - :ACH_RETURN_SETTLED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::Type::TaggedSymbol - ] - ) - end - def self.values - end - end - - module DetailedResult - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::DetailedResult - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - APPROVED = - T.let( - :APPROVED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::DetailedResult::TaggedSymbol - ) - FUNDS_INSUFFICIENT = - T.let( - :FUNDS_INSUFFICIENT, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::DetailedResult::TaggedSymbol - ) - ACCOUNT_INVALID = - T.let( - :ACCOUNT_INVALID, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::DetailedResult::TaggedSymbol - ) - PROGRAM_TRANSACTION_LIMIT_EXCEEDED = - T.let( - :PROGRAM_TRANSACTION_LIMIT_EXCEEDED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::DetailedResult::TaggedSymbol - ) - PROGRAM_DAILY_LIMIT_EXCEEDED = - T.let( - :PROGRAM_DAILY_LIMIT_EXCEEDED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::DetailedResult::TaggedSymbol - ) - PROGRAM_MONTHLY_LIMIT_EXCEEDED = - T.let( - :PROGRAM_MONTHLY_LIMIT_EXCEEDED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::DetailedResult::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::DetailedResult::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - module Family - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Family - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - CARD = - T.let( - :CARD, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Family::TaggedSymbol - ) - PAYMENT = - T.let( - :PAYMENT, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Family::TaggedSymbol - ) - TRANSFER = - T.let( - :TRANSFER, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Family::TaggedSymbol - ) - INTERNAL = - T.let( - :INTERNAL, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Family::TaggedSymbol - ) - EXTERNAL_PAYMENT = - T.let( - :EXTERNAL_PAYMENT, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Family::TaggedSymbol - ) - MANAGEMENT_OPERATION = - T.let( - :MANAGEMENT_OPERATION, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Family::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Family::TaggedSymbol - ] - ) - end - def self.values - end - end - - # Transfer method - module Method - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Method - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ACH_NEXT_DAY = - T.let( - :ACH_NEXT_DAY, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Method::TaggedSymbol - ) - ACH_SAME_DAY = - T.let( - :ACH_SAME_DAY, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Method::TaggedSymbol - ) - WIRE = - T.let( - :WIRE, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Method::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Method::TaggedSymbol - ] - ) - end - def self.values - end - end - - # Method-specific attributes - module MethodAttributes - extend Lithic::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes - ) - end - - class ACHMethodAttributes < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes, - Lithic::Internal::AnyHash - ) - end - - # SEC code for ACH transaction - sig do - returns( - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::SecCode::TaggedSymbol - ) - end - attr_accessor :sec_code - - # Addenda information - sig { returns(T.nilable(String)) } - attr_accessor :addenda - - # Company ID for the ACH transaction - sig { returns(T.nilable(String)) } - attr_accessor :company_id - - # Receipt routing number - sig { returns(T.nilable(String)) } - attr_accessor :receipt_routing_number - - # Number of retries attempted - sig { returns(T.nilable(Integer)) } - attr_accessor :retries - - # Return reason code if the transaction was returned - sig { returns(T.nilable(String)) } - attr_accessor :return_reason_code - - # Trace numbers for the ACH transaction - sig { returns(T.nilable(T::Array[String])) } - attr_reader :trace_numbers - - sig { params(trace_numbers: T::Array[String]).void } - attr_writer :trace_numbers - - sig do - params( - sec_code: - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::SecCode::OrSymbol, - addenda: T.nilable(String), - company_id: T.nilable(String), - receipt_routing_number: T.nilable(String), - retries: T.nilable(Integer), - return_reason_code: T.nilable(String), - trace_numbers: T::Array[String] - ).returns(T.attached_class) - end - def self.new( - # SEC code for ACH transaction - sec_code:, - # Addenda information - addenda: nil, - # Company ID for the ACH transaction - company_id: nil, - # Receipt routing number - receipt_routing_number: nil, - # Number of retries attempted - retries: nil, - # Return reason code if the transaction was returned - return_reason_code: nil, - # Trace numbers for the ACH transaction - trace_numbers: nil - ) - end - - sig do - override.returns( - { - sec_code: - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::SecCode::TaggedSymbol, - addenda: T.nilable(String), - company_id: T.nilable(String), - receipt_routing_number: T.nilable(String), - retries: T.nilable(Integer), - return_reason_code: T.nilable(String), - trace_numbers: T::Array[String] - } - ) - end - def to_hash - end - - # SEC code for ACH transaction - module SecCode - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::SecCode - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - CCD = - T.let( - :CCD, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::SecCode::TaggedSymbol - ) - PPD = - T.let( - :PPD, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::SecCode::TaggedSymbol - ) - WEB = - T.let( - :WEB, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::SecCode::TaggedSymbol - ) - TEL = - T.let( - :TEL, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::SecCode::TaggedSymbol - ) - CIE = - T.let( - :CIE, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::SecCode::TaggedSymbol - ) - CTX = - T.let( - :CTX, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::SecCode::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::SecCode::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class WireMethodAttributes < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes, - Lithic::Internal::AnyHash - ) - end - - # Type of wire transfer - sig do - returns( - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes::WireNetwork::TaggedSymbol - ) - end - attr_accessor :wire_network - - sig { returns(T.nilable(Lithic::WirePartyDetails)) } - attr_reader :creditor - - sig { params(creditor: Lithic::WirePartyDetails::OrHash).void } - attr_writer :creditor - - sig { returns(T.nilable(Lithic::WirePartyDetails)) } - attr_reader :debtor - - sig { params(debtor: Lithic::WirePartyDetails::OrHash).void } - attr_writer :debtor - - # Point to point reference identifier, as assigned by the instructing party, used - # for tracking the message through the Fedwire system - sig { returns(T.nilable(String)) } - attr_accessor :message_id - - # Payment details or invoice reference - sig { returns(T.nilable(String)) } - attr_accessor :remittance_information - - # Type of wire message - sig { returns(T.nilable(String)) } - attr_reader :wire_message_type - - sig { params(wire_message_type: String).void } - attr_writer :wire_message_type - - sig do - params( - wire_network: - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes::WireNetwork::OrSymbol, - creditor: Lithic::WirePartyDetails::OrHash, - debtor: Lithic::WirePartyDetails::OrHash, - message_id: T.nilable(String), - remittance_information: T.nilable(String), - wire_message_type: String - ).returns(T.attached_class) - end - def self.new( - # Type of wire transfer - wire_network:, - creditor: nil, - debtor: nil, - # Point to point reference identifier, as assigned by the instructing party, used - # for tracking the message through the Fedwire system - message_id: nil, - # Payment details or invoice reference - remittance_information: nil, - # Type of wire message - wire_message_type: nil - ) - end - - sig do - override.returns( - { - wire_network: - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes::WireNetwork::TaggedSymbol, - creditor: Lithic::WirePartyDetails, - debtor: Lithic::WirePartyDetails, - message_id: T.nilable(String), - remittance_information: T.nilable(String), - wire_message_type: String - } - ) - end - def to_hash - end - - # Type of wire transfer - module WireNetwork - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes::WireNetwork - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - FEDWIRE = - T.let( - :FEDWIRE, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes::WireNetwork::TaggedSymbol - ) - SWIFT = - T.let( - :SWIFT, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes::WireNetwork::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes::WireNetwork::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::Variants - ] - ) - end - def self.variants - end - end - - class RelatedAccountTokens < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::RelatedAccountTokens, - Lithic::Internal::AnyHash - ) - end - - # Globally unique identifier for the account - sig { returns(T.nilable(String)) } - attr_accessor :account_token - - # Globally unique identifier for the business account - sig { returns(T.nilable(String)) } - attr_accessor :business_account_token - - # Related account tokens for the transaction - sig do - params( - account_token: T.nilable(String), - business_account_token: T.nilable(String) - ).returns(T.attached_class) - end - def self.new( - # Globally unique identifier for the account - account_token:, - # Globally unique identifier for the business account - business_account_token: - ) - end - - sig do - override.returns( - { - account_token: T.nilable(String), - business_account_token: T.nilable(String) - } - ) - end - def to_hash - end - end - - # Transaction result - module Result - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Result - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - APPROVED = - T.let( - :APPROVED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Result::TaggedSymbol - ) - DECLINED = - T.let( - :DECLINED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Result::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Result::TaggedSymbol - ] - ) - end - def self.values - end - end - - # Transaction source - module Source - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Source - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - LITHIC = - T.let( - :LITHIC, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Source::TaggedSymbol - ) - EXTERNAL = - T.let( - :EXTERNAL, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Source::TaggedSymbol - ) - CUSTOMER = - T.let( - :CUSTOMER, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Source::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Source::TaggedSymbol - ] - ) - end - def self.values - end - end - - # The status of the transaction - module Status - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Status - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - PENDING = - T.let( - :PENDING, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Status::TaggedSymbol - ) - SETTLED = - T.let( - :SETTLED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Status::TaggedSymbol - ) - DECLINED = - T.let( - :DECLINED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Status::TaggedSymbol - ) - REVERSED = - T.let( - :REVERSED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Status::TaggedSymbol - ) - CANCELED = - T.let( - :CANCELED, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Status::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Status::TaggedSymbol - ] - ) - end - def self.values - end - end - - module Type - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Type - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ORIGINATION_CREDIT = - T.let( - :ORIGINATION_CREDIT, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Type::TaggedSymbol - ) - ORIGINATION_DEBIT = - T.let( - :ORIGINATION_DEBIT, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Type::TaggedSymbol - ) - RECEIPT_CREDIT = - T.let( - :RECEIPT_CREDIT, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Type::TaggedSymbol - ) - RECEIPT_DEBIT = - T.let( - :RECEIPT_DEBIT, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Type::TaggedSymbol - ) - WIRE_INBOUND_PAYMENT = - T.let( - :WIRE_INBOUND_PAYMENT, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Type::TaggedSymbol - ) - WIRE_INBOUND_ADMIN = - T.let( - :WIRE_INBOUND_ADMIN, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Type::TaggedSymbol - ) - WIRE_OUTBOUND_PAYMENT = - T.let( - :WIRE_OUTBOUND_PAYMENT, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Type::TaggedSymbol - ) - WIRE_OUTBOUND_ADMIN = - T.let( - :WIRE_OUTBOUND_ADMIN, - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Type::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Type::TaggedSymbol - ] - ) - end - def self.values - end - end end sig do diff --git a/rbi/lithic/models/auth_rules/auth_rule_condition.rbi b/rbi/lithic/models/auth_rules/auth_rule_condition.rbi index 820abb8f..f6cfb721 100644 --- a/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +++ b/rbi/lithic/models/auth_rules/auth_rule_condition.rbi @@ -61,6 +61,9 @@ module Lithic # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. sig do returns(T.nilable(Lithic::AuthRules::ConditionalAttribute::OrSymbol)) end @@ -159,6 +162,9 @@ module Lithic # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. attribute: nil, # The operation to apply to the attribute operation: nil, diff --git a/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi b/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi index e17df8a0..d2c78f38 100644 --- a/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +++ b/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi @@ -126,6 +126,9 @@ module Lithic # - `RISK_SCORE`: Mastercard only: Assessment by the network of the authentication # risk level, with a higher value indicating a higher amount of risk. # - `MESSAGE_CATEGORY`: The category of the authentication being processed. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. sig do returns( T.nilable( @@ -211,6 +214,9 @@ module Lithic # - `RISK_SCORE`: Mastercard only: Assessment by the network of the authentication # risk level, with a higher value indicating a higher amount of risk. # - `MESSAGE_CATEGORY`: The category of the authentication being processed. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. attribute: nil, # The operation to apply to the attribute operation: nil, @@ -255,6 +261,9 @@ module Lithic # - `RISK_SCORE`: Mastercard only: Assessment by the network of the authentication # risk level, with a higher value indicating a higher amount of risk. # - `MESSAGE_CATEGORY`: The category of the authentication being processed. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. module Attribute extend Lithic::Internal::Type::Enum @@ -307,6 +316,11 @@ module Lithic :MESSAGE_CATEGORY, Lithic::AuthRules::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol ) + ADDRESS_MATCH = + T.let( + :ADDRESS_MATCH, + Lithic::AuthRules::Conditional3DSActionParameters::Condition::Attribute::TaggedSymbol + ) sig do override.returns( diff --git a/rbi/lithic/models/auth_rules/conditional_attribute.rbi b/rbi/lithic/models/auth_rules/conditional_attribute.rbi index 6f57cc86..5b6a60f8 100644 --- a/rbi/lithic/models/auth_rules/conditional_attribute.rbi +++ b/rbi/lithic/models/auth_rules/conditional_attribute.rbi @@ -50,6 +50,9 @@ module Lithic # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`, # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. module ConditionalAttribute extend Lithic::Internal::Type::Enum @@ -132,6 +135,11 @@ module Lithic :WALLET_TYPE, Lithic::AuthRules::ConditionalAttribute::TaggedSymbol ) + ADDRESS_MATCH = + T.let( + :ADDRESS_MATCH, + Lithic::AuthRules::ConditionalAttribute::TaggedSymbol + ) sig do override.returns( diff --git a/rbi/lithic/models/auth_rules/v2_apply_response.rbi b/rbi/lithic/models/auth_rules/v2_apply_response.rbi index b47646e5..48604c6b 100644 --- a/rbi/lithic/models/auth_rules/v2_apply_response.rbi +++ b/rbi/lithic/models/auth_rules/v2_apply_response.rbi @@ -432,6 +432,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. sig do returns( T.nilable( @@ -547,6 +550,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. attribute: nil, # The operation to apply to the attribute operation: nil, @@ -621,6 +627,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. module Attribute extend Lithic::Internal::Type::Enum @@ -723,6 +732,11 @@ module Lithic :TRANSACTION_INITIATOR, Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol ) + ADDRESS_MATCH = + T.let( + :ADDRESS_MATCH, + Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) sig do override.returns( @@ -1072,6 +1086,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. sig do returns( T.nilable( @@ -1187,6 +1204,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. attribute: nil, # The operation to apply to the attribute operation: nil, @@ -1261,6 +1281,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. module Attribute extend Lithic::Internal::Type::Enum @@ -1363,6 +1386,11 @@ module Lithic :TRANSACTION_INITIATOR, Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol ) + ADDRESS_MATCH = + T.let( + :ADDRESS_MATCH, + Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) sig do override.returns( diff --git a/rbi/lithic/models/auth_rules/v2_create_params.rbi b/rbi/lithic/models/auth_rules/v2_create_params.rbi index 724b4bdd..4ebe568f 100644 --- a/rbi/lithic/models/auth_rules/v2_create_params.rbi +++ b/rbi/lithic/models/auth_rules/v2_create_params.rbi @@ -390,6 +390,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. sig do returns( T.nilable( @@ -505,6 +508,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. attribute: nil, # The operation to apply to the attribute operation: nil, @@ -579,6 +585,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. module Attribute extend Lithic::Internal::Type::Enum @@ -681,6 +690,11 @@ module Lithic :TRANSACTION_INITIATOR, Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol ) + ADDRESS_MATCH = + T.let( + :ADDRESS_MATCH, + Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) sig do override.returns( diff --git a/rbi/lithic/models/auth_rules/v2_create_response.rbi b/rbi/lithic/models/auth_rules/v2_create_response.rbi index 9a1d8ce7..a539598b 100644 --- a/rbi/lithic/models/auth_rules/v2_create_response.rbi +++ b/rbi/lithic/models/auth_rules/v2_create_response.rbi @@ -432,6 +432,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. sig do returns( T.nilable( @@ -547,6 +550,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. attribute: nil, # The operation to apply to the attribute operation: nil, @@ -621,6 +627,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. module Attribute extend Lithic::Internal::Type::Enum @@ -723,6 +732,11 @@ module Lithic :TRANSACTION_INITIATOR, Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol ) + ADDRESS_MATCH = + T.let( + :ADDRESS_MATCH, + Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) sig do override.returns( @@ -1072,6 +1086,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. sig do returns( T.nilable( @@ -1187,6 +1204,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. attribute: nil, # The operation to apply to the attribute operation: nil, @@ -1261,6 +1281,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. module Attribute extend Lithic::Internal::Type::Enum @@ -1363,6 +1386,11 @@ module Lithic :TRANSACTION_INITIATOR, Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol ) + ADDRESS_MATCH = + T.let( + :ADDRESS_MATCH, + Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) sig do override.returns( diff --git a/rbi/lithic/models/auth_rules/v2_draft_params.rbi b/rbi/lithic/models/auth_rules/v2_draft_params.rbi index 3c71b795..69138e33 100644 --- a/rbi/lithic/models/auth_rules/v2_draft_params.rbi +++ b/rbi/lithic/models/auth_rules/v2_draft_params.rbi @@ -238,6 +238,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. sig do returns( T.nilable( @@ -353,6 +356,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. attribute: nil, # The operation to apply to the attribute operation: nil, @@ -427,6 +433,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. module Attribute extend Lithic::Internal::Type::Enum @@ -529,6 +538,11 @@ module Lithic :TRANSACTION_INITIATOR, Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol ) + ADDRESS_MATCH = + T.let( + :ADDRESS_MATCH, + Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) sig do override.returns( diff --git a/rbi/lithic/models/auth_rules/v2_draft_response.rbi b/rbi/lithic/models/auth_rules/v2_draft_response.rbi index a549ef22..efb93924 100644 --- a/rbi/lithic/models/auth_rules/v2_draft_response.rbi +++ b/rbi/lithic/models/auth_rules/v2_draft_response.rbi @@ -432,6 +432,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. sig do returns( T.nilable( @@ -547,6 +550,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. attribute: nil, # The operation to apply to the attribute operation: nil, @@ -621,6 +627,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. module Attribute extend Lithic::Internal::Type::Enum @@ -723,6 +732,11 @@ module Lithic :TRANSACTION_INITIATOR, Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol ) + ADDRESS_MATCH = + T.let( + :ADDRESS_MATCH, + Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) sig do override.returns( @@ -1072,6 +1086,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. sig do returns( T.nilable( @@ -1187,6 +1204,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. attribute: nil, # The operation to apply to the attribute operation: nil, @@ -1261,6 +1281,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. module Attribute extend Lithic::Internal::Type::Enum @@ -1363,6 +1386,11 @@ module Lithic :TRANSACTION_INITIATOR, Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol ) + ADDRESS_MATCH = + T.let( + :ADDRESS_MATCH, + Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) sig do override.returns( diff --git a/rbi/lithic/models/auth_rules/v2_list_response.rbi b/rbi/lithic/models/auth_rules/v2_list_response.rbi index f5b1d9c5..5e570c74 100644 --- a/rbi/lithic/models/auth_rules/v2_list_response.rbi +++ b/rbi/lithic/models/auth_rules/v2_list_response.rbi @@ -428,6 +428,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. sig do returns( T.nilable( @@ -543,6 +546,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. attribute: nil, # The operation to apply to the attribute operation: nil, @@ -617,6 +623,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. module Attribute extend Lithic::Internal::Type::Enum @@ -719,6 +728,11 @@ module Lithic :TRANSACTION_INITIATOR, Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol ) + ADDRESS_MATCH = + T.let( + :ADDRESS_MATCH, + Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) sig do override.returns( @@ -1068,6 +1082,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. sig do returns( T.nilable( @@ -1183,6 +1200,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. attribute: nil, # The operation to apply to the attribute operation: nil, @@ -1257,6 +1277,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. module Attribute extend Lithic::Internal::Type::Enum @@ -1359,6 +1382,11 @@ module Lithic :TRANSACTION_INITIATOR, Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol ) + ADDRESS_MATCH = + T.let( + :ADDRESS_MATCH, + Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) sig do override.returns( diff --git a/rbi/lithic/models/auth_rules/v2_promote_response.rbi b/rbi/lithic/models/auth_rules/v2_promote_response.rbi index fd8432f4..3a895305 100644 --- a/rbi/lithic/models/auth_rules/v2_promote_response.rbi +++ b/rbi/lithic/models/auth_rules/v2_promote_response.rbi @@ -435,6 +435,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. sig do returns( T.nilable( @@ -550,6 +553,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. attribute: nil, # The operation to apply to the attribute operation: nil, @@ -624,6 +630,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. module Attribute extend Lithic::Internal::Type::Enum @@ -726,6 +735,11 @@ module Lithic :TRANSACTION_INITIATOR, Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol ) + ADDRESS_MATCH = + T.let( + :ADDRESS_MATCH, + Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) sig do override.returns( @@ -1075,6 +1089,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. sig do returns( T.nilable( @@ -1190,6 +1207,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. attribute: nil, # The operation to apply to the attribute operation: nil, @@ -1264,6 +1284,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. module Attribute extend Lithic::Internal::Type::Enum @@ -1366,6 +1389,11 @@ module Lithic :TRANSACTION_INITIATOR, Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol ) + ADDRESS_MATCH = + T.let( + :ADDRESS_MATCH, + Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) sig do override.returns( diff --git a/rbi/lithic/models/auth_rules/v2_report_params.rbi b/rbi/lithic/models/auth_rules/v2_report_params.rbi deleted file mode 100644 index 83a6a520..00000000 --- a/rbi/lithic/models/auth_rules/v2_report_params.rbi +++ /dev/null @@ -1,29 +0,0 @@ -# typed: strong - -module Lithic - module Models - module AuthRules - class V2ReportParams < Lithic::Internal::Type::BaseModel - extend Lithic::Internal::Type::RequestParameters::Converter - include Lithic::Internal::Type::RequestParameters - - OrHash = - T.type_alias do - T.any(Lithic::AuthRules::V2ReportParams, Lithic::Internal::AnyHash) - end - - sig do - params(request_options: Lithic::RequestOptions::OrHash).returns( - T.attached_class - ) - end - def self.new(request_options: {}) - end - - sig { override.returns({ request_options: Lithic::RequestOptions }) } - def to_hash - end - end - end - end -end diff --git a/rbi/lithic/models/auth_rules/v2_report_response.rbi b/rbi/lithic/models/auth_rules/v2_report_response.rbi deleted file mode 100644 index d47c7c89..00000000 --- a/rbi/lithic/models/auth_rules/v2_report_response.rbi +++ /dev/null @@ -1,31 +0,0 @@ -# typed: strong - -module Lithic - module Models - module AuthRules - class V2ReportResponse < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::AuthRules::V2ReportResponse, - Lithic::Internal::AnyHash - ) - end - - sig { returns(T.nilable(String)) } - attr_reader :report_token - - sig { params(report_token: String).void } - attr_writer :report_token - - sig { params(report_token: String).returns(T.attached_class) } - def self.new(report_token: nil) - end - - sig { override.returns({ report_token: String }) } - def to_hash - end - end - end - end -end diff --git a/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi b/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi index 6cf6e34d..847804ae 100644 --- a/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +++ b/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi @@ -435,6 +435,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. sig do returns( T.nilable( @@ -550,6 +553,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. attribute: nil, # The operation to apply to the attribute operation: nil, @@ -624,6 +630,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. module Attribute extend Lithic::Internal::Type::Enum @@ -726,6 +735,11 @@ module Lithic :TRANSACTION_INITIATOR, Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol ) + ADDRESS_MATCH = + T.let( + :ADDRESS_MATCH, + Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) sig do override.returns( @@ -1075,6 +1089,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. sig do returns( T.nilable( @@ -1190,6 +1207,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. attribute: nil, # The operation to apply to the attribute operation: nil, @@ -1264,6 +1284,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. module Attribute extend Lithic::Internal::Type::Enum @@ -1366,6 +1389,11 @@ module Lithic :TRANSACTION_INITIATOR, Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol ) + ADDRESS_MATCH = + T.let( + :ADDRESS_MATCH, + Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) sig do override.returns( diff --git a/rbi/lithic/models/auth_rules/v2_update_response.rbi b/rbi/lithic/models/auth_rules/v2_update_response.rbi index c0332b91..67861af7 100644 --- a/rbi/lithic/models/auth_rules/v2_update_response.rbi +++ b/rbi/lithic/models/auth_rules/v2_update_response.rbi @@ -432,6 +432,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. sig do returns( T.nilable( @@ -547,6 +550,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. attribute: nil, # The operation to apply to the attribute operation: nil, @@ -621,6 +627,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. module Attribute extend Lithic::Internal::Type::Enum @@ -723,6 +732,11 @@ module Lithic :TRANSACTION_INITIATOR, Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol ) + ADDRESS_MATCH = + T.let( + :ADDRESS_MATCH, + Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) sig do override.returns( @@ -1072,6 +1086,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. sig do returns( T.nilable( @@ -1187,6 +1204,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. attribute: nil, # The operation to apply to the attribute operation: nil, @@ -1261,6 +1281,9 @@ module Lithic # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`. # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`. + # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address + # data with the cardholder KYC data if it exists. Valid values are `MATCH`, + # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`. module Attribute extend Lithic::Internal::Type::Enum @@ -1363,6 +1386,11 @@ module Lithic :TRANSACTION_INITIATOR, Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol ) + ADDRESS_MATCH = + T.let( + :ADDRESS_MATCH, + Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol + ) sig do override.returns( diff --git a/rbi/lithic/models/book_transfer_response.rbi b/rbi/lithic/models/book_transfer_response.rbi index 8cf5f1ad..6ba0677d 100644 --- a/rbi/lithic/models/book_transfer_response.rbi +++ b/rbi/lithic/models/book_transfer_response.rbi @@ -8,44 +8,32 @@ module Lithic T.any(Lithic::BookTransferResponse, Lithic::Internal::AnyHash) end - # Customer-provided token that will serve as an idempotency token. This token will - # become the transaction token. + # Unique identifier for the transaction sig { returns(String) } attr_accessor :token sig { returns(Lithic::BookTransferResponse::Category::TaggedSymbol) } attr_accessor :category - # Date and time when the transfer occurred. UTC time zone. + # ISO 8601 timestamp of when the transaction was created sig { returns(Time) } attr_accessor :created # 3-character alphabetic ISO 4217 code for the settling currency of the - # transaction. + # transaction sig { returns(String) } attr_accessor :currency - # A list of all financial events that have modified this transfer. + # A list of all financial events that have modified this transfer sig { returns(T::Array[Lithic::BookTransferResponse::Event]) } attr_accessor :events - # External ID defined by the customer - sig { returns(T.nilable(String)) } - attr_accessor :external_id - - # External resource associated with the management operation - sig { returns(T.nilable(Lithic::ExternalResource)) } - attr_reader :external_resource - - sig do - params( - external_resource: T.nilable(Lithic::ExternalResource::OrHash) - ).void - end - attr_writer :external_resource + # TRANSFER - Book Transfer Transaction + sig { returns(Symbol) } + attr_accessor :family # Globally unique identifier for the financial account or card that will send the - # funds. Accepted type dependent on the program's use case. + # funds. Accepted type dependent on the program's use case sig { returns(String) } attr_accessor :from_financial_account_token @@ -61,24 +49,39 @@ module Lithic attr_accessor :result # Amount of the transaction that has been settled in the currency's smallest unit - # (e.g., cents). + # (e.g., cents) sig { returns(Integer) } attr_accessor :settled_amount - # Status types: - # - # - `DECLINED` - The transfer was declined. - # - `REVERSED` - The transfer was reversed - # - `SETTLED` - The transfer is completed. + # The status of the transaction sig { returns(Lithic::BookTransferResponse::Status::TaggedSymbol) } attr_accessor :status # Globally unique identifier for the financial account or card that will receive - # the funds. Accepted type dependent on the program's use case. + # the funds. Accepted type dependent on the program's use case sig { returns(String) } attr_accessor :to_financial_account_token - # A series of transactions that are grouped together. + # ISO 8601 timestamp of when the transaction was last updated + sig { returns(Time) } + attr_accessor :updated + + # External ID defined by the customer + sig { returns(T.nilable(String)) } + attr_accessor :external_id + + # External resource associated with the management operation + sig { returns(T.nilable(Lithic::ExternalResource)) } + attr_reader :external_resource + + sig do + params( + external_resource: T.nilable(Lithic::ExternalResource::OrHash) + ).void + end + attr_writer :external_resource + + # A series of transactions that are grouped together sig do returns(T.nilable(Lithic::BookTransferResponse::TransactionSeries)) end @@ -92,10 +95,7 @@ module Lithic end attr_writer :transaction_series - # Date and time when the financial transaction was last updated. UTC time zone. - sig { returns(Time) } - attr_accessor :updated - + # Book transfer transaction sig do params( token: String, @@ -103,37 +103,33 @@ module Lithic created: Time, currency: String, events: T::Array[Lithic::BookTransferResponse::Event::OrHash], - external_id: T.nilable(String), - external_resource: T.nilable(Lithic::ExternalResource::OrHash), from_financial_account_token: String, pending_amount: Integer, result: Lithic::BookTransferResponse::Result::OrSymbol, settled_amount: Integer, status: Lithic::BookTransferResponse::Status::OrSymbol, to_financial_account_token: String, + updated: Time, + external_id: T.nilable(String), + external_resource: T.nilable(Lithic::ExternalResource::OrHash), transaction_series: T.nilable(Lithic::BookTransferResponse::TransactionSeries::OrHash), - updated: Time + family: Symbol ).returns(T.attached_class) end def self.new( - # Customer-provided token that will serve as an idempotency token. This token will - # become the transaction token. + # Unique identifier for the transaction token:, category:, - # Date and time when the transfer occurred. UTC time zone. + # ISO 8601 timestamp of when the transaction was created created:, # 3-character alphabetic ISO 4217 code for the settling currency of the - # transaction. + # transaction currency:, - # A list of all financial events that have modified this transfer. + # A list of all financial events that have modified this transfer events:, - # External ID defined by the customer - external_id:, - # External resource associated with the management operation - external_resource:, # Globally unique identifier for the financial account or card that will send the - # funds. Accepted type dependent on the program's use case. + # funds. Accepted type dependent on the program's use case from_financial_account_token:, # Pending amount of the transaction in the currency's smallest unit (e.g., cents), # including any acquirer fees. @@ -143,21 +139,23 @@ module Lithic pending_amount:, result:, # Amount of the transaction that has been settled in the currency's smallest unit - # (e.g., cents). + # (e.g., cents) settled_amount:, - # Status types: - # - # - `DECLINED` - The transfer was declined. - # - `REVERSED` - The transfer was reversed - # - `SETTLED` - The transfer is completed. + # The status of the transaction status:, # Globally unique identifier for the financial account or card that will receive - # the funds. Accepted type dependent on the program's use case. + # the funds. Accepted type dependent on the program's use case to_financial_account_token:, - # A series of transactions that are grouped together. - transaction_series:, - # Date and time when the financial transaction was last updated. UTC time zone. - updated: + # ISO 8601 timestamp of when the transaction was last updated + updated:, + # External ID defined by the customer + external_id: nil, + # External resource associated with the management operation + external_resource: nil, + # A series of transactions that are grouped together + transaction_series: nil, + # TRANSFER - Book Transfer Transaction + family: :TRANSFER ) end @@ -169,17 +167,18 @@ module Lithic created: Time, currency: String, events: T::Array[Lithic::BookTransferResponse::Event], - external_id: T.nilable(String), - external_resource: T.nilable(Lithic::ExternalResource), + family: Symbol, from_financial_account_token: String, pending_amount: Integer, result: Lithic::BookTransferResponse::Result::TaggedSymbol, settled_amount: Integer, status: Lithic::BookTransferResponse::Status::TaggedSymbol, to_financial_account_token: String, + updated: Time, + external_id: T.nilable(String), + external_resource: T.nilable(Lithic::ExternalResource), transaction_series: - T.nilable(Lithic::BookTransferResponse::TransactionSeries), - updated: Time + T.nilable(Lithic::BookTransferResponse::TransactionSeries) } ) end @@ -617,11 +616,7 @@ module Lithic end end - # Status types: - # - # - `DECLINED` - The transfer was declined. - # - `REVERSED` - The transfer was reversed - # - `SETTLED` - The transfer is completed. + # The status of the transaction module Status extend Lithic::Internal::Type::Enum @@ -629,12 +624,16 @@ module Lithic T.type_alias { T.all(Symbol, Lithic::BookTransferResponse::Status) } OrSymbol = T.type_alias { T.any(Symbol, String) } + PENDING = + T.let(:PENDING, Lithic::BookTransferResponse::Status::TaggedSymbol) + SETTLED = + T.let(:SETTLED, Lithic::BookTransferResponse::Status::TaggedSymbol) DECLINED = T.let(:DECLINED, Lithic::BookTransferResponse::Status::TaggedSymbol) REVERSED = T.let(:REVERSED, Lithic::BookTransferResponse::Status::TaggedSymbol) - SETTLED = - T.let(:SETTLED, Lithic::BookTransferResponse::Status::TaggedSymbol) + CANCELED = + T.let(:CANCELED, Lithic::BookTransferResponse::Status::TaggedSymbol) sig do override.returns( @@ -663,7 +662,7 @@ module Lithic sig { returns(String) } attr_accessor :type - # A series of transactions that are grouped together. + # A series of transactions that are grouped together sig do params( related_transaction_event_token: T.nilable(String), diff --git a/rbi/lithic/models/card_provision_response.rbi b/rbi/lithic/models/card_provision_response.rbi index 0ddbb22a..13a38d4b 100644 --- a/rbi/lithic/models/card_provision_response.rbi +++ b/rbi/lithic/models/card_provision_response.rbi @@ -11,19 +11,64 @@ module Lithic ) end - sig { returns(T.nilable(String)) } + # Base64 encoded JSON payload representing a payment card that can be passed to a + # device's digital wallet. Applies to Google and Samsung Pay wallets. + sig do + returns( + T.nilable( + Lithic::Models::CardProvisionResponse::ProvisioningPayload::Variants + ) + ) + end attr_reader :provisioning_payload - sig { params(provisioning_payload: String).void } + sig do + params( + provisioning_payload: T.any(String, Lithic::ProvisionResponse::OrHash) + ).void + end attr_writer :provisioning_payload - sig { params(provisioning_payload: String).returns(T.attached_class) } - def self.new(provisioning_payload: nil) + sig do + params( + provisioning_payload: T.any(String, Lithic::ProvisionResponse::OrHash) + ).returns(T.attached_class) + end + def self.new( + # Base64 encoded JSON payload representing a payment card that can be passed to a + # device's digital wallet. Applies to Google and Samsung Pay wallets. + provisioning_payload: nil + ) end - sig { override.returns({ provisioning_payload: String }) } + sig do + override.returns( + { + provisioning_payload: + Lithic::Models::CardProvisionResponse::ProvisioningPayload::Variants + } + ) + end def to_hash end + + # Base64 encoded JSON payload representing a payment card that can be passed to a + # device's digital wallet. Applies to Google and Samsung Pay wallets. + module ProvisioningPayload + extend Lithic::Internal::Type::Union + + Variants = T.type_alias { T.any(String, Lithic::ProvisionResponse) } + + sig do + override.returns( + T::Array[ + Lithic::Models::CardProvisionResponse::ProvisioningPayload::Variants + ] + ) + end + def self.variants + end + end end end end diff --git a/rbi/lithic/models/event.rbi b/rbi/lithic/models/event.rbi index 7f3951ce..ce31228e 100644 --- a/rbi/lithic/models/event.rbi +++ b/rbi/lithic/models/event.rbi @@ -169,11 +169,6 @@ module Lithic :"account_holder.verification", Lithic::Event::EventType::TaggedSymbol ) - AUTH_RULES_PERFORMANCE_REPORT_CREATED = - T.let( - :"auth_rules.performance_report.created", - Lithic::Event::EventType::TaggedSymbol - ) BALANCE_UPDATED = T.let(:"balance.updated", Lithic::Event::EventType::TaggedSymbol) BOOK_TRANSFER_TRANSACTION_CREATED = diff --git a/rbi/lithic/models/event_list_params.rbi b/rbi/lithic/models/event_list_params.rbi index 9f24daff..c2b7463f 100644 --- a/rbi/lithic/models/event_list_params.rbi +++ b/rbi/lithic/models/event_list_params.rbi @@ -146,11 +146,6 @@ module Lithic :"account_holder.verification", Lithic::EventListParams::EventType::TaggedSymbol ) - AUTH_RULES_PERFORMANCE_REPORT_CREATED = - T.let( - :"auth_rules.performance_report.created", - Lithic::EventListParams::EventType::TaggedSymbol - ) BALANCE_UPDATED = T.let( :"balance.updated", diff --git a/rbi/lithic/models/event_subscription.rbi b/rbi/lithic/models/event_subscription.rbi index 94337985..07b2a82d 100644 --- a/rbi/lithic/models/event_subscription.rbi +++ b/rbi/lithic/models/event_subscription.rbi @@ -94,11 +94,6 @@ module Lithic :"account_holder.verification", Lithic::EventSubscription::EventType::TaggedSymbol ) - AUTH_RULES_PERFORMANCE_REPORT_CREATED = - T.let( - :"auth_rules.performance_report.created", - Lithic::EventSubscription::EventType::TaggedSymbol - ) BALANCE_UPDATED = T.let( :"balance.updated", diff --git a/rbi/lithic/models/events/subscription_create_params.rbi b/rbi/lithic/models/events/subscription_create_params.rbi index beed5ce8..de70c3b1 100644 --- a/rbi/lithic/models/events/subscription_create_params.rbi +++ b/rbi/lithic/models/events/subscription_create_params.rbi @@ -123,11 +123,6 @@ module Lithic :"account_holder.verification", Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol ) - AUTH_RULES_PERFORMANCE_REPORT_CREATED = - T.let( - :"auth_rules.performance_report.created", - Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol - ) BALANCE_UPDATED = T.let( :"balance.updated", diff --git a/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi b/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi index 159f6cd1..0bbde7d7 100644 --- a/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +++ b/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi @@ -87,11 +87,6 @@ module Lithic :"account_holder.verification", Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol ) - AUTH_RULES_PERFORMANCE_REPORT_CREATED = - T.let( - :"auth_rules.performance_report.created", - Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol - ) BALANCE_UPDATED = T.let( :"balance.updated", diff --git a/rbi/lithic/models/events/subscription_update_params.rbi b/rbi/lithic/models/events/subscription_update_params.rbi index a02b9e7e..6dd292b1 100644 --- a/rbi/lithic/models/events/subscription_update_params.rbi +++ b/rbi/lithic/models/events/subscription_update_params.rbi @@ -123,11 +123,6 @@ module Lithic :"account_holder.verification", Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol ) - AUTH_RULES_PERFORMANCE_REPORT_CREATED = - T.let( - :"auth_rules.performance_report.created", - Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol - ) BALANCE_UPDATED = T.let( :"balance.updated", diff --git a/rbi/lithic/models/external_bank_account_create_params.rbi b/rbi/lithic/models/external_bank_account_create_params.rbi index a4158e2d..dc247ffd 100644 --- a/rbi/lithic/models/external_bank_account_create_params.rbi +++ b/rbi/lithic/models/external_bank_account_create_params.rbi @@ -113,9 +113,6 @@ module Lithic sig { params(verification_enforcement: T::Boolean).void } attr_writer :verification_enforcement - sig { returns(String) } - attr_accessor :processor_token - sig do params( account_number: String, @@ -128,7 +125,6 @@ module Lithic type: Lithic::ExternalBankAccountCreateParams::Type::OrSymbol, verification_method: Lithic::ExternalBankAccountCreateParams::VerificationMethod::OrSymbol, - processor_token: String, account_token: String, address: Lithic::ExternalBankAccountAddress::OrHash, company_id: String, @@ -161,7 +157,6 @@ module Lithic type:, # Verification Method verification_method:, - processor_token:, # Indicates which Lithic account the external account is associated with. For # external accounts that are associated with the program, account_token field # returned will be null @@ -204,7 +199,6 @@ module Lithic name: String, user_defined_id: String, verification_enforcement: T::Boolean, - processor_token: String, request_options: Lithic::RequestOptions } ) diff --git a/rbi/lithic/models/external_payment.rbi b/rbi/lithic/models/external_payment.rbi index e1d2cfb8..5e773fa4 100644 --- a/rbi/lithic/models/external_payment.rbi +++ b/rbi/lithic/models/external_payment.rbi @@ -16,9 +16,6 @@ module Lithic sig { returns(Time) } attr_accessor :created - sig { returns(Lithic::ExternalPayment::Family::TaggedSymbol) } - attr_accessor :family - # The status of the transaction sig { returns(Lithic::ExternalPayment::Status::TaggedSymbol) } attr_accessor :status @@ -49,6 +46,13 @@ module Lithic end attr_writer :events + # EXTERNAL_PAYMENT - External Payment Response + sig { returns(T.nilable(Lithic::ExternalPayment::Family::TaggedSymbol)) } + attr_reader :family + + sig { params(family: Lithic::ExternalPayment::Family::OrSymbol).void } + attr_writer :family + sig { returns(T.nilable(String)) } attr_reader :financial_account_token @@ -95,12 +99,12 @@ module Lithic params( token: String, created: Time, - family: Lithic::ExternalPayment::Family::OrSymbol, status: Lithic::ExternalPayment::Status::OrSymbol, updated: Time, category: Lithic::ExternalPayment::Category::OrSymbol, currency: String, events: T::Array[Lithic::ExternalPayment::Event::OrHash], + family: Lithic::ExternalPayment::Family::OrSymbol, financial_account_token: String, payment_type: Lithic::ExternalPayment::PaymentType::OrSymbol, pending_amount: Integer, @@ -114,7 +118,6 @@ module Lithic token:, # ISO 8601 timestamp of when the transaction was created created:, - family:, # The status of the transaction status:, # ISO 8601 timestamp of when the transaction was last updated @@ -122,6 +125,8 @@ module Lithic category: nil, currency: nil, events: nil, + # EXTERNAL_PAYMENT - External Payment Response + family: nil, financial_account_token: nil, payment_type: nil, pending_amount: nil, @@ -136,12 +141,12 @@ module Lithic { token: String, created: Time, - family: Lithic::ExternalPayment::Family::TaggedSymbol, status: Lithic::ExternalPayment::Status::TaggedSymbol, updated: Time, category: Lithic::ExternalPayment::Category::TaggedSymbol, currency: String, events: T::Array[Lithic::ExternalPayment::Event], + family: Lithic::ExternalPayment::Family::TaggedSymbol, financial_account_token: String, payment_type: Lithic::ExternalPayment::PaymentType::TaggedSymbol, pending_amount: Integer, @@ -154,39 +159,6 @@ module Lithic def to_hash end - module Family - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias { T.all(Symbol, Lithic::ExternalPayment::Family) } - OrSymbol = T.type_alias { T.any(Symbol, String) } - - CARD = T.let(:CARD, Lithic::ExternalPayment::Family::TaggedSymbol) - PAYMENT = T.let(:PAYMENT, Lithic::ExternalPayment::Family::TaggedSymbol) - TRANSFER = - T.let(:TRANSFER, Lithic::ExternalPayment::Family::TaggedSymbol) - INTERNAL = - T.let(:INTERNAL, Lithic::ExternalPayment::Family::TaggedSymbol) - EXTERNAL_PAYMENT = - T.let( - :EXTERNAL_PAYMENT, - Lithic::ExternalPayment::Family::TaggedSymbol - ) - MANAGEMENT_OPERATION = - T.let( - :MANAGEMENT_OPERATION, - Lithic::ExternalPayment::Family::TaggedSymbol - ) - - sig do - override.returns( - T::Array[Lithic::ExternalPayment::Family::TaggedSymbol] - ) - end - def self.values - end - end - # The status of the transaction module Status extend Lithic::Internal::Type::Enum @@ -505,6 +477,29 @@ module Lithic end end + # EXTERNAL_PAYMENT - External Payment Response + module Family + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Lithic::ExternalPayment::Family) } + OrSymbol = T.type_alias { T.any(Symbol, String) } + + EXTERNAL_PAYMENT = + T.let( + :EXTERNAL_PAYMENT, + Lithic::ExternalPayment::Family::TaggedSymbol + ) + + sig do + override.returns( + T::Array[Lithic::ExternalPayment::Family::TaggedSymbol] + ) + end + def self.values + end + end + module PaymentType extend Lithic::Internal::Type::Enum diff --git a/rbi/lithic/models/financial_account.rbi b/rbi/lithic/models/financial_account.rbi index 1896e476..8b381a0f 100644 --- a/rbi/lithic/models/financial_account.rbi +++ b/rbi/lithic/models/financial_account.rbi @@ -127,15 +127,20 @@ module Lithic ) end - # Reason for the financial account being marked as Charged Off sig do returns( - T.nilable( - Lithic::FinancialAccount::CreditConfiguration::ChargedOffReason::TaggedSymbol - ) + Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration ) end - attr_accessor :charged_off_reason + attr_reader :auto_collection_configuration + + sig do + params( + auto_collection_configuration: + Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration::OrHash + ).void + end + attr_writer :auto_collection_configuration sig { returns(T.nilable(Integer)) } attr_accessor :credit_limit @@ -147,99 +152,124 @@ module Lithic sig { returns(T.nilable(String)) } attr_accessor :external_bank_account_token - # State of the financial account + # Tier assigned to the financial account + sig { returns(T.nilable(String)) } + attr_accessor :tier + + # Reason for the financial account being marked as Charged Off sig do returns( T.nilable( - Lithic::FinancialAccount::CreditConfiguration::FinancialAccountState::TaggedSymbol + Lithic::FinancialAccount::CreditConfiguration::ChargedOffReason::TaggedSymbol ) ) end - attr_accessor :financial_account_state - - sig { returns(T::Boolean) } - attr_accessor :is_spend_blocked - - # Tier assigned to the financial account - sig { returns(T.nilable(String)) } - attr_accessor :tier + attr_accessor :charged_off_reason + # State of the financial account sig do returns( T.nilable( - Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration + Lithic::FinancialAccount::CreditConfiguration::FinancialAccountState::TaggedSymbol ) ) end - attr_reader :auto_collection_configuration + attr_accessor :financial_account_state - sig do - params( - auto_collection_configuration: - Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration::OrHash - ).void - end - attr_writer :auto_collection_configuration + sig { returns(T.nilable(T::Boolean)) } + attr_reader :is_spend_blocked + + sig { params(is_spend_blocked: T::Boolean).void } + attr_writer :is_spend_blocked sig do params( + auto_collection_configuration: + Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration::OrHash, + credit_limit: T.nilable(Integer), + credit_product_token: T.nilable(String), + external_bank_account_token: T.nilable(String), + tier: T.nilable(String), charged_off_reason: T.nilable( Lithic::FinancialAccount::CreditConfiguration::ChargedOffReason::OrSymbol ), - credit_limit: T.nilable(Integer), - credit_product_token: T.nilable(String), - external_bank_account_token: T.nilable(String), financial_account_state: T.nilable( Lithic::FinancialAccount::CreditConfiguration::FinancialAccountState::OrSymbol ), - is_spend_blocked: T::Boolean, - tier: T.nilable(String), - auto_collection_configuration: - Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration::OrHash + is_spend_blocked: T::Boolean ).returns(T.attached_class) end def self.new( - # Reason for the financial account being marked as Charged Off - charged_off_reason:, + auto_collection_configuration:, credit_limit:, # Globally unique identifier for the credit product credit_product_token:, external_bank_account_token:, - # State of the financial account - financial_account_state:, - is_spend_blocked:, # Tier assigned to the financial account tier:, - auto_collection_configuration: nil + # Reason for the financial account being marked as Charged Off + charged_off_reason: nil, + # State of the financial account + financial_account_state: nil, + is_spend_blocked: nil ) end sig do override.returns( { + auto_collection_configuration: + Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration, + credit_limit: T.nilable(Integer), + credit_product_token: T.nilable(String), + external_bank_account_token: T.nilable(String), + tier: T.nilable(String), charged_off_reason: T.nilable( Lithic::FinancialAccount::CreditConfiguration::ChargedOffReason::TaggedSymbol ), - credit_limit: T.nilable(Integer), - credit_product_token: T.nilable(String), - external_bank_account_token: T.nilable(String), financial_account_state: T.nilable( Lithic::FinancialAccount::CreditConfiguration::FinancialAccountState::TaggedSymbol ), - is_spend_blocked: T::Boolean, - tier: T.nilable(String), - auto_collection_configuration: - Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration + is_spend_blocked: T::Boolean } ) end def to_hash end + class AutoCollectionConfiguration < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration, + Lithic::Internal::AnyHash + ) + end + + # If auto collection is enabled for this account + sig { returns(T::Boolean) } + attr_accessor :auto_collection_enabled + + sig do + params(auto_collection_enabled: T::Boolean).returns( + T.attached_class + ) + end + def self.new( + # If auto collection is enabled for this account + auto_collection_enabled: + ) + end + + sig { override.returns({ auto_collection_enabled: T::Boolean }) } + def to_hash + end + end + # Reason for the financial account being marked as Charged Off module ChargedOffReason extend Lithic::Internal::Type::Enum @@ -319,35 +349,6 @@ module Lithic def self.values end end - - class AutoCollectionConfiguration < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration, - Lithic::Internal::AnyHash - ) - end - - # If auto collection is enabled for this account - sig { returns(T::Boolean) } - attr_accessor :auto_collection_enabled - - sig do - params(auto_collection_enabled: T::Boolean).returns( - T.attached_class - ) - end - def self.new( - # If auto collection is enabled for this account - auto_collection_enabled: - ) - end - - sig { override.returns({ auto_collection_enabled: T::Boolean }) } - def to_hash - end - end end # Status of the financial account diff --git a/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi b/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi index 15878058..21b3ac4f 100644 --- a/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi +++ b/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi @@ -34,16 +34,6 @@ module Lithic end attr_writer :auto_collection_configuration - # Reason for the financial account being marked as Charged Off - sig do - returns( - T.nilable( - Lithic::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason::TaggedSymbol - ) - ) - end - attr_accessor :charged_off_reason - sig { returns(T.nilable(Integer)) } attr_accessor :credit_limit @@ -54,54 +44,77 @@ module Lithic sig { returns(T.nilable(String)) } attr_accessor :external_bank_account_token + # Tier assigned to the financial account + sig { returns(T.nilable(String)) } + attr_accessor :tier + + # Reason for the financial account being marked as Charged Off + sig do + returns( + T.nilable( + Lithic::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason::TaggedSymbol + ) + ) + end + attr_accessor :charged_off_reason + # State of the financial account sig do returns( - Lithic::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState::TaggedSymbol + T.nilable( + Lithic::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState::TaggedSymbol + ) ) end - attr_accessor :financial_account_state + attr_reader :financial_account_state - sig { returns(T::Boolean) } - attr_accessor :is_spend_blocked + sig do + params( + financial_account_state: + Lithic::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState::OrSymbol + ).void + end + attr_writer :financial_account_state - # Tier assigned to the financial account - sig { returns(T.nilable(String)) } - attr_accessor :tier + sig { returns(T.nilable(T::Boolean)) } + attr_reader :is_spend_blocked + + sig { params(is_spend_blocked: T::Boolean).void } + attr_writer :is_spend_blocked sig do params( account_token: String, auto_collection_configuration: Lithic::FinancialAccounts::FinancialAccountCreditConfig::AutoCollectionConfiguration::OrHash, + credit_limit: T.nilable(Integer), + credit_product_token: T.nilable(String), + external_bank_account_token: T.nilable(String), + tier: T.nilable(String), charged_off_reason: T.nilable( Lithic::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason::OrSymbol ), - credit_limit: T.nilable(Integer), - credit_product_token: T.nilable(String), - external_bank_account_token: T.nilable(String), financial_account_state: Lithic::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState::OrSymbol, - is_spend_blocked: T::Boolean, - tier: T.nilable(String) + is_spend_blocked: T::Boolean ).returns(T.attached_class) end def self.new( # Globally unique identifier for the account account_token:, auto_collection_configuration:, - # Reason for the financial account being marked as Charged Off - charged_off_reason:, credit_limit:, # Globally unique identifier for the credit product credit_product_token:, external_bank_account_token:, - # State of the financial account - financial_account_state:, - is_spend_blocked:, # Tier assigned to the financial account - tier: + tier:, + # Reason for the financial account being marked as Charged Off + charged_off_reason: nil, + # State of the financial account + financial_account_state: nil, + is_spend_blocked: nil ) end @@ -111,17 +124,17 @@ module Lithic account_token: String, auto_collection_configuration: Lithic::FinancialAccounts::FinancialAccountCreditConfig::AutoCollectionConfiguration, + credit_limit: T.nilable(Integer), + credit_product_token: T.nilable(String), + external_bank_account_token: T.nilable(String), + tier: T.nilable(String), charged_off_reason: T.nilable( Lithic::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason::TaggedSymbol ), - credit_limit: T.nilable(Integer), - credit_product_token: T.nilable(String), - external_bank_account_token: T.nilable(String), financial_account_state: Lithic::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState::TaggedSymbol, - is_spend_blocked: T::Boolean, - tier: T.nilable(String) + is_spend_blocked: T::Boolean } ) end diff --git a/rbi/lithic/models/management_operation_transaction.rbi b/rbi/lithic/models/management_operation_transaction.rbi index efe552ae..d400348a 100644 --- a/rbi/lithic/models/management_operation_transaction.rbi +++ b/rbi/lithic/models/management_operation_transaction.rbi @@ -19,11 +19,6 @@ module Lithic sig { returns(Time) } attr_accessor :created - sig do - returns(Lithic::ManagementOperationTransaction::Family::TaggedSymbol) - end - attr_accessor :family - # The status of the transaction sig do returns(Lithic::ManagementOperationTransaction::Status::TaggedSymbol) @@ -98,6 +93,23 @@ module Lithic end attr_writer :external_resource + # MANAGEMENT_OPERATION - Management Operation Transaction + sig do + returns( + T.nilable( + Lithic::ManagementOperationTransaction::Family::TaggedSymbol + ) + ) + end + attr_reader :family + + sig do + params( + family: Lithic::ManagementOperationTransaction::Family::OrSymbol + ).void + end + attr_writer :family + sig { returns(T.nilable(String)) } attr_reader :financial_account_token @@ -159,7 +171,6 @@ module Lithic params( token: String, created: Time, - family: Lithic::ManagementOperationTransaction::Family::OrSymbol, status: Lithic::ManagementOperationTransaction::Status::OrSymbol, updated: Time, category: Lithic::ManagementOperationTransaction::Category::OrSymbol, @@ -169,6 +180,7 @@ module Lithic events: T::Array[Lithic::ManagementOperationTransaction::Event::OrHash], external_resource: T.nilable(Lithic::ExternalResource::OrHash), + family: Lithic::ManagementOperationTransaction::Family::OrSymbol, financial_account_token: String, pending_amount: Integer, result: Lithic::ManagementOperationTransaction::Result::OrSymbol, @@ -185,7 +197,6 @@ module Lithic token:, # ISO 8601 timestamp of when the transaction was created created:, - family:, # The status of the transaction status:, # ISO 8601 timestamp of when the transaction was last updated @@ -196,6 +207,8 @@ module Lithic events: nil, # External resource associated with the management operation external_resource: nil, + # MANAGEMENT_OPERATION - Management Operation Transaction + family: nil, financial_account_token: nil, pending_amount: nil, result: nil, @@ -210,8 +223,6 @@ module Lithic { token: String, created: Time, - family: - Lithic::ManagementOperationTransaction::Family::TaggedSymbol, status: Lithic::ManagementOperationTransaction::Status::TaggedSymbol, updated: Time, @@ -222,6 +233,8 @@ module Lithic Lithic::ManagementOperationTransaction::Direction::TaggedSymbol, events: T::Array[Lithic::ManagementOperationTransaction::Event], external_resource: T.nilable(Lithic::ExternalResource), + family: + Lithic::ManagementOperationTransaction::Family::TaggedSymbol, financial_account_token: String, pending_amount: Integer, result: @@ -238,57 +251,6 @@ module Lithic def to_hash end - module Family - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all(Symbol, Lithic::ManagementOperationTransaction::Family) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - CARD = - T.let( - :CARD, - Lithic::ManagementOperationTransaction::Family::TaggedSymbol - ) - PAYMENT = - T.let( - :PAYMENT, - Lithic::ManagementOperationTransaction::Family::TaggedSymbol - ) - TRANSFER = - T.let( - :TRANSFER, - Lithic::ManagementOperationTransaction::Family::TaggedSymbol - ) - INTERNAL = - T.let( - :INTERNAL, - Lithic::ManagementOperationTransaction::Family::TaggedSymbol - ) - EXTERNAL_PAYMENT = - T.let( - :EXTERNAL_PAYMENT, - Lithic::ManagementOperationTransaction::Family::TaggedSymbol - ) - MANAGEMENT_OPERATION = - T.let( - :MANAGEMENT_OPERATION, - Lithic::ManagementOperationTransaction::Family::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::ManagementOperationTransaction::Family::TaggedSymbol - ] - ) - end - def self.values - end - end - # The status of the transaction module Status extend Lithic::Internal::Type::Enum @@ -704,6 +666,33 @@ module Lithic end end + # MANAGEMENT_OPERATION - Management Operation Transaction + module Family + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Lithic::ManagementOperationTransaction::Family) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + MANAGEMENT_OPERATION = + T.let( + :MANAGEMENT_OPERATION, + Lithic::ManagementOperationTransaction::Family::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::ManagementOperationTransaction::Family::TaggedSymbol + ] + ) + end + def self.values + end + end + module Result extend Lithic::Internal::Type::Enum diff --git a/rbi/lithic/models/payment.rbi b/rbi/lithic/models/payment.rbi index d0f96b05..3ffaeaf4 100644 --- a/rbi/lithic/models/payment.rbi +++ b/rbi/lithic/models/payment.rbi @@ -6,59 +6,51 @@ module Lithic OrHash = T.type_alias { T.any(Lithic::Payment, Lithic::Internal::AnyHash) } - # Globally unique identifier. + # Unique identifier for the transaction sig { returns(String) } attr_accessor :token - # Payment category + # Transaction category sig { returns(Lithic::Payment::Category::TaggedSymbol) } attr_accessor :category - # Date and time when the payment first occurred. UTC time zone. + # ISO 8601 timestamp of when the transaction was created sig { returns(Time) } attr_accessor :created - # 3-character alphabetic ISO 4217 code for the settling currency of the payment. - sig { returns(String) } - attr_accessor :currency - - # A string that provides a description of the payment; may be useful to display to - # users. + # Transaction descriptor sig { returns(String) } attr_accessor :descriptor + # Transfer direction sig { returns(Lithic::Payment::Direction::TaggedSymbol) } attr_accessor :direction - # A list of all payment events that have modified this payment. + # List of transaction events sig { returns(T::Array[Lithic::Payment::Event]) } attr_accessor :events - sig { returns(T.nilable(String)) } - attr_accessor :external_bank_account_token + # PAYMENT - Payment Transaction + sig { returns(Symbol) } + attr_accessor :family + # Financial account token sig { returns(String) } attr_accessor :financial_account_token + # Transfer method sig { returns(Lithic::Payment::Method::TaggedSymbol) } attr_accessor :method_ - sig { returns(Lithic::Payment::MethodAttributes) } - attr_reader :method_attributes - - sig do - params( - method_attributes: Lithic::Payment::MethodAttributes::OrHash - ).void - end - attr_writer :method_attributes + # Method-specific attributes + sig { returns(Lithic::Payment::MethodAttributes::Variants) } + attr_accessor :method_attributes - # Pending amount of the payment in the currency's smallest unit (e.g., cents). The - # value of this field will go to zero over time once the payment is settled. + # Pending amount in cents sig { returns(Integer) } attr_accessor :pending_amount - # Account tokens related to a payment transaction + # Related account tokens for the transaction sig { returns(Lithic::Payment::RelatedAccountTokens) } attr_reader :related_account_tokens @@ -69,63 +61,67 @@ module Lithic end attr_writer :related_account_tokens - # APPROVED payments were successful while DECLINED payments were declined by - # Lithic or returned. + # Transaction result sig { returns(Lithic::Payment::Result::TaggedSymbol) } attr_accessor :result - # Amount of the payment that has been settled in the currency's smallest unit - # (e.g., cents). + # Settled amount in cents sig { returns(Integer) } attr_accessor :settled_amount + # Transaction source sig { returns(Lithic::Payment::Source::TaggedSymbol) } attr_accessor :source - # Status types: - # - # - `DECLINED` - The payment was declined. - # - `PENDING` - The payment is being processed and has yet to settle or release - # (origination debit). - # - `RETURNED` - The payment has been returned. - # - `SETTLED` - The payment is completed. + # The status of the transaction sig { returns(Lithic::Payment::Status::TaggedSymbol) } attr_accessor :status - # Date and time when the financial transaction was last updated. UTC time zone. + # ISO 8601 timestamp of when the transaction was last updated sig { returns(Time) } attr_accessor :updated + # Currency of the transaction in ISO 4217 format sig { returns(T.nilable(String)) } - attr_accessor :user_defined_id + attr_reader :currency + + sig { params(currency: String).void } + attr_writer :currency - # Date when the financial transaction expected to be released after settlement + # Expected release date for the transaction sig { returns(T.nilable(Date)) } - attr_reader :expected_release_date + attr_accessor :expected_release_date - sig { params(expected_release_date: Date).void } - attr_writer :expected_release_date + # External bank account token + sig { returns(T.nilable(String)) } + attr_accessor :external_bank_account_token - # Payment type indicating the specific ACH message or Fedwire transfer type sig { returns(T.nilable(Lithic::Payment::Type::TaggedSymbol)) } attr_reader :type sig { params(type: Lithic::Payment::Type::OrSymbol).void } attr_writer :type + # User-defined identifier + sig { returns(T.nilable(String)) } + attr_accessor :user_defined_id + + # Payment transaction sig do params( token: String, category: Lithic::Payment::Category::OrSymbol, created: Time, - currency: String, descriptor: String, direction: Lithic::Payment::Direction::OrSymbol, events: T::Array[Lithic::Payment::Event::OrHash], - external_bank_account_token: T.nilable(String), financial_account_token: String, method_: Lithic::Payment::Method::OrSymbol, - method_attributes: Lithic::Payment::MethodAttributes::OrHash, + method_attributes: + T.any( + Lithic::Payment::MethodAttributes::ACHMethodAttributes::OrHash, + Lithic::Payment::MethodAttributes::WireMethodAttributes::OrHash + ), pending_amount: Integer, related_account_tokens: Lithic::Payment::RelatedAccountTokens::OrHash, result: Lithic::Payment::Result::OrSymbol, @@ -133,57 +129,58 @@ module Lithic source: Lithic::Payment::Source::OrSymbol, status: Lithic::Payment::Status::OrSymbol, updated: Time, + currency: String, + expected_release_date: T.nilable(Date), + external_bank_account_token: T.nilable(String), + type: Lithic::Payment::Type::OrSymbol, user_defined_id: T.nilable(String), - expected_release_date: Date, - type: Lithic::Payment::Type::OrSymbol + family: Symbol ).returns(T.attached_class) end def self.new( - # Globally unique identifier. + # Unique identifier for the transaction token:, - # Payment category + # Transaction category category:, - # Date and time when the payment first occurred. UTC time zone. + # ISO 8601 timestamp of when the transaction was created created:, - # 3-character alphabetic ISO 4217 code for the settling currency of the payment. - currency:, - # A string that provides a description of the payment; may be useful to display to - # users. + # Transaction descriptor descriptor:, + # Transfer direction direction:, - # A list of all payment events that have modified this payment. + # List of transaction events events:, - external_bank_account_token:, + # Financial account token financial_account_token:, + # Transfer method method_:, + # Method-specific attributes method_attributes:, - # Pending amount of the payment in the currency's smallest unit (e.g., cents). The - # value of this field will go to zero over time once the payment is settled. + # Pending amount in cents pending_amount:, - # Account tokens related to a payment transaction + # Related account tokens for the transaction related_account_tokens:, - # APPROVED payments were successful while DECLINED payments were declined by - # Lithic or returned. + # Transaction result result:, - # Amount of the payment that has been settled in the currency's smallest unit - # (e.g., cents). + # Settled amount in cents settled_amount:, + # Transaction source source:, - # Status types: - # - # - `DECLINED` - The payment was declined. - # - `PENDING` - The payment is being processed and has yet to settle or release - # (origination debit). - # - `RETURNED` - The payment has been returned. - # - `SETTLED` - The payment is completed. + # The status of the transaction status:, - # Date and time when the financial transaction was last updated. UTC time zone. + # ISO 8601 timestamp of when the transaction was last updated updated:, - user_defined_id:, - # Date when the financial transaction expected to be released after settlement + # Currency of the transaction in ISO 4217 format + currency: nil, + # Expected release date for the transaction expected_release_date: nil, - # Payment type indicating the specific ACH message or Fedwire transfer type - type: nil + # External bank account token + external_bank_account_token: nil, + type: nil, + # User-defined identifier + user_defined_id: nil, + # PAYMENT - Payment Transaction + family: :PAYMENT ) end @@ -193,14 +190,13 @@ module Lithic token: String, category: Lithic::Payment::Category::TaggedSymbol, created: Time, - currency: String, descriptor: String, direction: Lithic::Payment::Direction::TaggedSymbol, events: T::Array[Lithic::Payment::Event], - external_bank_account_token: T.nilable(String), + family: Symbol, financial_account_token: String, method_: Lithic::Payment::Method::TaggedSymbol, - method_attributes: Lithic::Payment::MethodAttributes, + method_attributes: Lithic::Payment::MethodAttributes::Variants, pending_amount: Integer, related_account_tokens: Lithic::Payment::RelatedAccountTokens, result: Lithic::Payment::Result::TaggedSymbol, @@ -208,16 +204,18 @@ module Lithic source: Lithic::Payment::Source::TaggedSymbol, status: Lithic::Payment::Status::TaggedSymbol, updated: Time, - user_defined_id: T.nilable(String), - expected_release_date: Date, - type: Lithic::Payment::Type::TaggedSymbol + currency: String, + expected_release_date: T.nilable(Date), + external_bank_account_token: T.nilable(String), + type: Lithic::Payment::Type::TaggedSymbol, + user_defined_id: T.nilable(String) } ) end def to_hash end - # Payment category + # Transaction category module Category extend Lithic::Internal::Type::Enum @@ -225,6 +223,38 @@ module Lithic OrSymbol = T.type_alias { T.any(Symbol, String) } ACH = T.let(:ACH, Lithic::Payment::Category::TaggedSymbol) + BALANCE_OR_FUNDING = + T.let(:BALANCE_OR_FUNDING, Lithic::Payment::Category::TaggedSymbol) + FEE = T.let(:FEE, Lithic::Payment::Category::TaggedSymbol) + REWARD = T.let(:REWARD, Lithic::Payment::Category::TaggedSymbol) + ADJUSTMENT = T.let(:ADJUSTMENT, Lithic::Payment::Category::TaggedSymbol) + DERECOGNITION = + T.let(:DERECOGNITION, Lithic::Payment::Category::TaggedSymbol) + DISPUTE = T.let(:DISPUTE, Lithic::Payment::Category::TaggedSymbol) + CARD = T.let(:CARD, Lithic::Payment::Category::TaggedSymbol) + EXTERNAL_ACH = + T.let(:EXTERNAL_ACH, Lithic::Payment::Category::TaggedSymbol) + EXTERNAL_CHECK = + T.let(:EXTERNAL_CHECK, Lithic::Payment::Category::TaggedSymbol) + EXTERNAL_TRANSFER = + T.let(:EXTERNAL_TRANSFER, Lithic::Payment::Category::TaggedSymbol) + EXTERNAL_WIRE = + T.let(:EXTERNAL_WIRE, Lithic::Payment::Category::TaggedSymbol) + MANAGEMENT_ADJUSTMENT = + T.let(:MANAGEMENT_ADJUSTMENT, Lithic::Payment::Category::TaggedSymbol) + MANAGEMENT_DISPUTE = + T.let(:MANAGEMENT_DISPUTE, Lithic::Payment::Category::TaggedSymbol) + MANAGEMENT_FEE = + T.let(:MANAGEMENT_FEE, Lithic::Payment::Category::TaggedSymbol) + MANAGEMENT_REWARD = + T.let(:MANAGEMENT_REWARD, Lithic::Payment::Category::TaggedSymbol) + MANAGEMENT_DISBURSEMENT = + T.let( + :MANAGEMENT_DISBURSEMENT, + Lithic::Payment::Category::TaggedSymbol + ) + PROGRAM_FUNDING = + T.let(:PROGRAM_FUNDING, Lithic::Payment::Category::TaggedSymbol) sig do override.returns(T::Array[Lithic::Payment::Category::TaggedSymbol]) @@ -233,6 +263,7 @@ module Lithic end end + # Transfer direction module Direction extend Lithic::Internal::Type::Enum @@ -545,6 +576,7 @@ module Lithic end end + # Transfer method module Method extend Lithic::Internal::Type::Enum @@ -555,6 +587,7 @@ module Lithic T.let(:ACH_NEXT_DAY, Lithic::Payment::Method::TaggedSymbol) ACH_SAME_DAY = T.let(:ACH_SAME_DAY, Lithic::Payment::Method::TaggedSymbol) + WIRE = T.let(:WIRE, Lithic::Payment::Method::TaggedSymbol) sig do override.returns(T::Array[Lithic::Payment::Method::TaggedSymbol]) @@ -563,107 +596,295 @@ module Lithic end end - class MethodAttributes < Lithic::Internal::Type::BaseModel - OrHash = + # Method-specific attributes + module MethodAttributes + extend Lithic::Internal::Type::Union + + Variants = T.type_alias do - T.any(Lithic::Payment::MethodAttributes, Lithic::Internal::AnyHash) + T.any( + Lithic::Payment::MethodAttributes::ACHMethodAttributes, + Lithic::Payment::MethodAttributes::WireMethodAttributes + ) end - sig { returns(T.nilable(String)) } - attr_accessor :company_id + class ACHMethodAttributes < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::Payment::MethodAttributes::ACHMethodAttributes, + Lithic::Internal::AnyHash + ) + end - sig { returns(T.nilable(String)) } - attr_accessor :receipt_routing_number + # SEC code for ACH transaction + sig do + returns( + Lithic::Payment::MethodAttributes::ACHMethodAttributes::SecCode::TaggedSymbol + ) + end + attr_accessor :sec_code - sig { returns(T.nilable(Integer)) } - attr_accessor :retries + # Addenda information + sig { returns(T.nilable(String)) } + attr_accessor :addenda - sig { returns(T.nilable(String)) } - attr_accessor :return_reason_code + # Company ID for the ACH transaction + sig { returns(T.nilable(String)) } + attr_accessor :company_id - sig do - returns(Lithic::Payment::MethodAttributes::SecCode::TaggedSymbol) - end - attr_accessor :sec_code + # Receipt routing number + sig { returns(T.nilable(String)) } + attr_accessor :receipt_routing_number - sig { returns(T::Array[T.nilable(String)]) } - attr_accessor :trace_numbers + # Number of retries attempted + sig { returns(T.nilable(Integer)) } + attr_accessor :retries - sig { returns(T.nilable(String)) } - attr_accessor :addenda + # Return reason code if the transaction was returned + sig { returns(T.nilable(String)) } + attr_accessor :return_reason_code - sig do - params( - company_id: T.nilable(String), - receipt_routing_number: T.nilable(String), - retries: T.nilable(Integer), - return_reason_code: T.nilable(String), - sec_code: Lithic::Payment::MethodAttributes::SecCode::OrSymbol, - trace_numbers: T::Array[T.nilable(String)], - addenda: T.nilable(String) - ).returns(T.attached_class) - end - def self.new( - company_id:, - receipt_routing_number:, - retries:, - return_reason_code:, - sec_code:, - trace_numbers:, - addenda: nil - ) - end + # Trace numbers for the ACH transaction + sig { returns(T.nilable(T::Array[String])) } + attr_reader :trace_numbers - sig do - override.returns( - { + sig { params(trace_numbers: T::Array[String]).void } + attr_writer :trace_numbers + + sig do + params( + sec_code: + Lithic::Payment::MethodAttributes::ACHMethodAttributes::SecCode::OrSymbol, + addenda: T.nilable(String), company_id: T.nilable(String), receipt_routing_number: T.nilable(String), retries: T.nilable(Integer), return_reason_code: T.nilable(String), - sec_code: - Lithic::Payment::MethodAttributes::SecCode::TaggedSymbol, - trace_numbers: T::Array[T.nilable(String)], - addenda: T.nilable(String) - } + trace_numbers: T::Array[String] + ).returns(T.attached_class) + end + def self.new( + # SEC code for ACH transaction + sec_code:, + # Addenda information + addenda: nil, + # Company ID for the ACH transaction + company_id: nil, + # Receipt routing number + receipt_routing_number: nil, + # Number of retries attempted + retries: nil, + # Return reason code if the transaction was returned + return_reason_code: nil, + # Trace numbers for the ACH transaction + trace_numbers: nil ) - end - def to_hash - end + end - module SecCode - extend Lithic::Internal::Type::Enum + sig do + override.returns( + { + sec_code: + Lithic::Payment::MethodAttributes::ACHMethodAttributes::SecCode::TaggedSymbol, + addenda: T.nilable(String), + company_id: T.nilable(String), + receipt_routing_number: T.nilable(String), + retries: T.nilable(Integer), + return_reason_code: T.nilable(String), + trace_numbers: T::Array[String] + } + ) + end + def to_hash + end - TaggedSymbol = + # SEC code for ACH transaction + module SecCode + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::Payment::MethodAttributes::ACHMethodAttributes::SecCode + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + CCD = + T.let( + :CCD, + Lithic::Payment::MethodAttributes::ACHMethodAttributes::SecCode::TaggedSymbol + ) + PPD = + T.let( + :PPD, + Lithic::Payment::MethodAttributes::ACHMethodAttributes::SecCode::TaggedSymbol + ) + WEB = + T.let( + :WEB, + Lithic::Payment::MethodAttributes::ACHMethodAttributes::SecCode::TaggedSymbol + ) + TEL = + T.let( + :TEL, + Lithic::Payment::MethodAttributes::ACHMethodAttributes::SecCode::TaggedSymbol + ) + CIE = + T.let( + :CIE, + Lithic::Payment::MethodAttributes::ACHMethodAttributes::SecCode::TaggedSymbol + ) + CTX = + T.let( + :CTX, + Lithic::Payment::MethodAttributes::ACHMethodAttributes::SecCode::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::Payment::MethodAttributes::ACHMethodAttributes::SecCode::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class WireMethodAttributes < Lithic::Internal::Type::BaseModel + OrHash = T.type_alias do - T.all(Symbol, Lithic::Payment::MethodAttributes::SecCode) + T.any( + Lithic::Payment::MethodAttributes::WireMethodAttributes, + Lithic::Internal::AnyHash + ) end - OrSymbol = T.type_alias { T.any(Symbol, String) } - CCD = - T.let( - :CCD, - Lithic::Payment::MethodAttributes::SecCode::TaggedSymbol - ) - PPD = - T.let( - :PPD, - Lithic::Payment::MethodAttributes::SecCode::TaggedSymbol - ) - WEB = - T.let( - :WEB, - Lithic::Payment::MethodAttributes::SecCode::TaggedSymbol + # Type of wire transfer + sig do + returns( + Lithic::Payment::MethodAttributes::WireMethodAttributes::WireNetwork::TaggedSymbol ) + end + attr_accessor :wire_network + + sig { returns(T.nilable(Lithic::WirePartyDetails)) } + attr_reader :creditor + + sig { params(creditor: Lithic::WirePartyDetails::OrHash).void } + attr_writer :creditor + + sig { returns(T.nilable(Lithic::WirePartyDetails)) } + attr_reader :debtor + + sig { params(debtor: Lithic::WirePartyDetails::OrHash).void } + attr_writer :debtor + + # Point to point reference identifier, as assigned by the instructing party, used + # for tracking the message through the Fedwire system + sig { returns(T.nilable(String)) } + attr_accessor :message_id + + # Payment details or invoice reference + sig { returns(T.nilable(String)) } + attr_accessor :remittance_information + + # Type of wire message + sig { returns(T.nilable(String)) } + attr_reader :wire_message_type + + sig { params(wire_message_type: String).void } + attr_writer :wire_message_type + + sig do + params( + wire_network: + Lithic::Payment::MethodAttributes::WireMethodAttributes::WireNetwork::OrSymbol, + creditor: Lithic::WirePartyDetails::OrHash, + debtor: Lithic::WirePartyDetails::OrHash, + message_id: T.nilable(String), + remittance_information: T.nilable(String), + wire_message_type: String + ).returns(T.attached_class) + end + def self.new( + # Type of wire transfer + wire_network:, + creditor: nil, + debtor: nil, + # Point to point reference identifier, as assigned by the instructing party, used + # for tracking the message through the Fedwire system + message_id: nil, + # Payment details or invoice reference + remittance_information: nil, + # Type of wire message + wire_message_type: nil + ) + end sig do override.returns( - T::Array[Lithic::Payment::MethodAttributes::SecCode::TaggedSymbol] + { + wire_network: + Lithic::Payment::MethodAttributes::WireMethodAttributes::WireNetwork::TaggedSymbol, + creditor: Lithic::WirePartyDetails, + debtor: Lithic::WirePartyDetails, + message_id: T.nilable(String), + remittance_information: T.nilable(String), + wire_message_type: String + } ) end - def self.values + def to_hash + end + + # Type of wire transfer + module WireNetwork + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::Payment::MethodAttributes::WireMethodAttributes::WireNetwork + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + FEDWIRE = + T.let( + :FEDWIRE, + Lithic::Payment::MethodAttributes::WireMethodAttributes::WireNetwork::TaggedSymbol + ) + SWIFT = + T.let( + :SWIFT, + Lithic::Payment::MethodAttributes::WireMethodAttributes::WireNetwork::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::Payment::MethodAttributes::WireMethodAttributes::WireNetwork::TaggedSymbol + ] + ) + end + def self.values + end end end + + sig do + override.returns( + T::Array[Lithic::Payment::MethodAttributes::Variants] + ) + end + def self.variants + end end class RelatedAccountTokens < Lithic::Internal::Type::BaseModel @@ -683,7 +904,7 @@ module Lithic sig { returns(T.nilable(String)) } attr_accessor :business_account_token - # Account tokens related to a payment transaction + # Related account tokens for the transaction sig do params( account_token: T.nilable(String), @@ -710,8 +931,7 @@ module Lithic end end - # APPROVED payments were successful while DECLINED payments were declined by - # Lithic or returned. + # Transaction result module Result extend Lithic::Internal::Type::Enum @@ -728,14 +948,16 @@ module Lithic end end + # Transaction source module Source extend Lithic::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Lithic::Payment::Source) } OrSymbol = T.type_alias { T.any(Symbol, String) } - CUSTOMER = T.let(:CUSTOMER, Lithic::Payment::Source::TaggedSymbol) LITHIC = T.let(:LITHIC, Lithic::Payment::Source::TaggedSymbol) + EXTERNAL = T.let(:EXTERNAL, Lithic::Payment::Source::TaggedSymbol) + CUSTOMER = T.let(:CUSTOMER, Lithic::Payment::Source::TaggedSymbol) sig do override.returns(T::Array[Lithic::Payment::Source::TaggedSymbol]) @@ -744,23 +966,18 @@ module Lithic end end - # Status types: - # - # - `DECLINED` - The payment was declined. - # - `PENDING` - The payment is being processed and has yet to settle or release - # (origination debit). - # - `RETURNED` - The payment has been returned. - # - `SETTLED` - The payment is completed. + # The status of the transaction module Status extend Lithic::Internal::Type::Enum TaggedSymbol = T.type_alias { T.all(Symbol, Lithic::Payment::Status) } OrSymbol = T.type_alias { T.any(Symbol, String) } - DECLINED = T.let(:DECLINED, Lithic::Payment::Status::TaggedSymbol) PENDING = T.let(:PENDING, Lithic::Payment::Status::TaggedSymbol) - RETURNED = T.let(:RETURNED, Lithic::Payment::Status::TaggedSymbol) SETTLED = T.let(:SETTLED, Lithic::Payment::Status::TaggedSymbol) + DECLINED = T.let(:DECLINED, Lithic::Payment::Status::TaggedSymbol) + REVERSED = T.let(:REVERSED, Lithic::Payment::Status::TaggedSymbol) + CANCELED = T.let(:CANCELED, Lithic::Payment::Status::TaggedSymbol) sig do override.returns(T::Array[Lithic::Payment::Status::TaggedSymbol]) @@ -769,7 +986,6 @@ module Lithic end end - # Payment type indicating the specific ACH message or Fedwire transfer type module Type extend Lithic::Internal::Type::Enum diff --git a/rbi/lithic/models/payment_create_response.rbi b/rbi/lithic/models/payment_create_response.rbi index da0cc1f9..11cacc2a 100644 --- a/rbi/lithic/models/payment_create_response.rbi +++ b/rbi/lithic/models/payment_create_response.rbi @@ -18,6 +18,7 @@ module Lithic sig { params(balance: Lithic::Balance::OrHash).void } attr_writer :balance + # Payment transaction sig { params(balance: Lithic::Balance::OrHash).returns(T.attached_class) } def self.new( # Balance diff --git a/rbi/lithic/models/payment_retry_response.rbi b/rbi/lithic/models/payment_retry_response.rbi index b505b529..ccee3a10 100644 --- a/rbi/lithic/models/payment_retry_response.rbi +++ b/rbi/lithic/models/payment_retry_response.rbi @@ -15,6 +15,7 @@ module Lithic sig { params(balance: Lithic::Balance::OrHash).void } attr_writer :balance + # Payment transaction sig { params(balance: Lithic::Balance::OrHash).returns(T.attached_class) } def self.new( # Balance diff --git a/rbi/lithic/models/provision_response.rbi b/rbi/lithic/models/provision_response.rbi new file mode 100644 index 00000000..4203f9f2 --- /dev/null +++ b/rbi/lithic/models/provision_response.rbi @@ -0,0 +1,58 @@ +# typed: strong + +module Lithic + module Models + class ProvisionResponse < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any(Lithic::ProvisionResponse, Lithic::Internal::AnyHash) + end + + sig { returns(T.nilable(String)) } + attr_reader :activation_data + + sig { params(activation_data: String).void } + attr_writer :activation_data + + sig { returns(T.nilable(String)) } + attr_reader :encrypted_data + + sig { params(encrypted_data: String).void } + attr_writer :encrypted_data + + sig { returns(T.nilable(String)) } + attr_reader :ephemeral_public_key + + sig { params(ephemeral_public_key: String).void } + attr_writer :ephemeral_public_key + + # Object containing the fields required to add a card to Apple Pay. Applies only + # to Apple Pay wallet. + sig do + params( + activation_data: String, + encrypted_data: String, + ephemeral_public_key: String + ).returns(T.attached_class) + end + def self.new( + activation_data: nil, + encrypted_data: nil, + ephemeral_public_key: nil + ) + end + + sig do + override.returns( + { + activation_data: String, + encrypted_data: String, + ephemeral_public_key: String + } + ) + end + def to_hash + end + end + end +end diff --git a/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi b/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi index 2377e781..c63f6339 100644 --- a/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +++ b/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi @@ -629,6 +629,27 @@ module Lithic sig { returns(T.nilable(T::Boolean)) } attr_accessor :address_match + # Lithic's evaluation result comparing the transaction's address data with the + # cardholder KYC data if it exists. In the event Lithic does not have any + # Cardholder KYC data, or the transaction does not contain any address data, + # NOT_PRESENT will be returned + sig do + returns( + T.nilable( + Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::AddressOnFileMatch::TaggedSymbol + ) + ) + end + attr_reader :address_on_file_match + + sig do + params( + address_on_file_match: + Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::AddressOnFileMatch::OrSymbol + ).void + end + attr_writer :address_on_file_match + # Object containing data on the billing address provided during the transaction. sig do returns( @@ -693,6 +714,8 @@ module Lithic sig do params( address_match: T.nilable(T::Boolean), + address_on_file_match: + Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::AddressOnFileMatch::OrSymbol, billing_address: Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::BillingAddress::OrHash, email: T.nilable(String), @@ -710,6 +733,11 @@ module Lithic # match - is provided directly in the 3DS request and is not determined by Lithic. # Maps to EMV 3DS field `addrMatch`. address_match: nil, + # Lithic's evaluation result comparing the transaction's address data with the + # cardholder KYC data if it exists. In the event Lithic does not have any + # Cardholder KYC data, or the transaction does not contain any address data, + # NOT_PRESENT will be returned + address_on_file_match: nil, # Object containing data on the billing address provided during the transaction. billing_address: nil, # Email address that is either provided by the cardholder or is on file with the @@ -735,6 +763,8 @@ module Lithic override.returns( { address_match: T.nilable(T::Boolean), + address_on_file_match: + Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::AddressOnFileMatch::TaggedSymbol, billing_address: Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::BillingAddress, email: T.nilable(String), @@ -750,6 +780,59 @@ module Lithic def to_hash end + # Lithic's evaluation result comparing the transaction's address data with the + # cardholder KYC data if it exists. In the event Lithic does not have any + # Cardholder KYC data, or the transaction does not contain any address data, + # NOT_PRESENT will be returned + module AddressOnFileMatch + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::AddressOnFileMatch + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + MATCH = + T.let( + :MATCH, + Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::AddressOnFileMatch::TaggedSymbol + ) + MATCH_ADDRESS_ONLY = + T.let( + :MATCH_ADDRESS_ONLY, + Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::AddressOnFileMatch::TaggedSymbol + ) + MATCH_ZIP_ONLY = + T.let( + :MATCH_ZIP_ONLY, + Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::AddressOnFileMatch::TaggedSymbol + ) + MISMATCH = + T.let( + :MISMATCH, + Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::AddressOnFileMatch::TaggedSymbol + ) + NOT_PRESENT = + T.let( + :NOT_PRESENT, + Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::AddressOnFileMatch::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::AddressOnFileMatch::TaggedSymbol + ] + ) + end + def self.values + end + end + class BillingAddress < Lithic::Internal::Type::BaseModel OrHash = T.type_alias do diff --git a/rbi/lithic/models/tokenization.rbi b/rbi/lithic/models/tokenization.rbi index 000f427d..ec914198 100644 --- a/rbi/lithic/models/tokenization.rbi +++ b/rbi/lithic/models/tokenization.rbi @@ -395,6 +395,11 @@ module Lithic :TOKEN_DEACTIVATED, Lithic::Tokenization::Event::Result::TaggedSymbol ) + TOKEN_DELETED_FROM_CONSUMER_APP = + T.let( + :TOKEN_DELETED_FROM_CONSUMER_APP, + Lithic::Tokenization::Event::Result::TaggedSymbol + ) TOKEN_INACTIVE = T.let( :TOKEN_INACTIVE, diff --git a/rbi/lithic/models/transaction.rbi b/rbi/lithic/models/transaction.rbi index 59e93d59..837a1ae0 100644 --- a/rbi/lithic/models/transaction.rbi +++ b/rbi/lithic/models/transaction.rbi @@ -2679,6 +2679,16 @@ module Lithic :VEHICLE_NUMBER_INVALID, Lithic::Transaction::Event::DetailedResult::TaggedSymbol ) + CARDHOLDER_CHALLENGED = + T.let( + :CARDHOLDER_CHALLENGED, + Lithic::Transaction::Event::DetailedResult::TaggedSymbol + ) + CARDHOLDER_CHALLENGE_FAILED = + T.let( + :CARDHOLDER_CHALLENGE_FAILED, + Lithic::Transaction::Event::DetailedResult::TaggedSymbol + ) sig do override.returns( @@ -3567,6 +3577,16 @@ module Lithic :VEHICLE_NUMBER_INVALID, Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol ) + CARDHOLDER_CHALLENGED = + T.let( + :CARDHOLDER_CHALLENGED, + Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol + ) + CARDHOLDER_CHALLENGE_FAILED = + T.let( + :CARDHOLDER_CHALLENGE_FAILED, + Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol + ) sig do override.returns( diff --git a/rbi/lithic/models/verification_method.rbi b/rbi/lithic/models/verification_method.rbi index 9e22afa0..009c3b93 100644 --- a/rbi/lithic/models/verification_method.rbi +++ b/rbi/lithic/models/verification_method.rbi @@ -11,7 +11,6 @@ module Lithic MANUAL = T.let(:MANUAL, Lithic::VerificationMethod::TaggedSymbol) MICRO_DEPOSIT = T.let(:MICRO_DEPOSIT, Lithic::VerificationMethod::TaggedSymbol) - PLAID = T.let(:PLAID, Lithic::VerificationMethod::TaggedSymbol) PRENOTE = T.let(:PRENOTE, Lithic::VerificationMethod::TaggedSymbol) EXTERNALLY_VERIFIED = T.let(:EXTERNALLY_VERIFIED, Lithic::VerificationMethod::TaggedSymbol) diff --git a/rbi/lithic/resources/auth_rules/v2.rbi b/rbi/lithic/resources/auth_rules/v2.rbi index 8dd8ff45..e41adc1a 100644 --- a/rbi/lithic/resources/auth_rules/v2.rbi +++ b/rbi/lithic/resources/auth_rules/v2.rbi @@ -250,70 +250,6 @@ module Lithic ) end - # This endpoint is deprecated and will be removed in the future. Requests a - # performance report of an Auth rule to be asynchronously generated. Reports can - # only be run on rules in draft or active mode and will included approved and - # declined statistics as well as examples. The generated report will be delivered - # asynchronously through a webhook with `event_type` = - # `auth_rules.performance_report.created`. See the docs on setting up - # [webhook subscriptions](https://docs.lithic.com/docs/events-api). - # - # Reports are generated based on data collected by Lithic's processing system in - # the trailing week. The performance of the auth rule will be assessed on the - # configuration of the auth rule at the time the report is requested. This implies - # that if a performance report is requested, right after updating an auth rule, - # depending on the number of events processed for a card program, it may be the - # case that no data is available for the report. Therefore Lithic recommends to - # decouple making updates to an Auth Rule, and requesting performance reports. - # - # To make this concrete, consider the following example: - # - # 1. At time `t`, a new Auth Rule is created, and applies to all auth events on a - # card program. The Auth Rule has not yet been promoted, causing the draft - # version of the rule to be applied in shadow mode. - # 2. At time `t + 1 hour` a performance report is requested for the Auth Rule. - # This performance report will _only_ contain data for the Auth Rule being - # executed in the window between `t` and `t + 1 hour`. This is because Lithic's - # transaction processing system will only start capturing data for the Auth - # Rule at the time it is created. - # 3. At time `t + 2 hours` the draft version of the Auth Rule is promoted to the - # active version of the Auth Rule by calling the - # `/v2/auth_rules/{auth_rule_token}/promote` endpoint. If a performance report - # is requested at this moment it will still only contain data for this version - # of the rule, but the window of available data will now span from `t` to - # `t + 2 hours`. - # 4. At time `t + 3 hours` a new version of the rule is drafted by calling the - # `/v2/auth_rules/{auth_rule_token}/draft` endpoint. If a performance report is - # requested right at this moment, it will only contain data for events to which - # both the active version and the draft version is applied. Lithic does this to - # ensure that performance reports represent a fair comparison between rules. - # Because there may be no events in this window, and because there may be some - # lag before data is available in a performance report, the requested - # performance report could contain no to little data. - # 5. At time `t + 4 hours` another performance report is requested: this time the - # performance report will contain data from the window between `t + 3 hours` - # and `t + 4 hours`, for any events to which both the current version of the - # Auth rule (in enforcing mode) and the draft version of the Auth rule (in - # shadow mode) applied. - # - # Note that generating a report may take up to 15 minutes and that delivery is not - # guaranteed. Customers are required to have created an event subscription to - # receive the webhook. Additionally, there is a delay of approximately 15 minutes - # between when Lithic's transaction processing systems have processed the - # transaction, and when a transaction will be included in the report. - sig do - params( - auth_rule_token: String, - request_options: Lithic::RequestOptions::OrHash - ).returns(Lithic::Models::AuthRules::V2ReportResponse) - end - def report( - # Globally unique identifier for the Auth Rule. - auth_rule_token, - request_options: {} - ) - end - # Fetches the current calculated Feature values for the given Auth Rule # # This only calculates the features for the active version. diff --git a/rbi/lithic/resources/external_bank_accounts.rbi b/rbi/lithic/resources/external_bank_accounts.rbi index 51f043ec..ab7777b1 100644 --- a/rbi/lithic/resources/external_bank_accounts.rbi +++ b/rbi/lithic/resources/external_bank_accounts.rbi @@ -19,7 +19,6 @@ module Lithic type: Lithic::ExternalBankAccountCreateParams::Type::OrSymbol, verification_method: Lithic::ExternalBankAccountCreateParams::VerificationMethod::OrSymbol, - processor_token: String, account_token: String, address: Lithic::ExternalBankAccountAddress::OrHash, company_id: String, @@ -52,7 +51,6 @@ module Lithic type:, # Verification Method verification_method:, - processor_token:, # Indicates which Lithic account the external account is associated with. For # external accounts that are associated with the program, account_token field # returned will be null diff --git a/sig/lithic/models.rbs b/sig/lithic/models.rbs index 02202224..d1c285c5 100644 --- a/sig/lithic/models.rbs +++ b/sig/lithic/models.rbs @@ -267,6 +267,8 @@ module Lithic class PaymentSimulateReturnParams = Lithic::Models::PaymentSimulateReturnParams + class ProvisionResponse = Lithic::Models::ProvisionResponse + module Reports = Lithic::Models::Reports class RequiredDocument = Lithic::Models::RequiredDocument diff --git a/sig/lithic/models/account_activity_list_response.rbs b/sig/lithic/models/account_activity_list_response.rbs index 11d3d4f6..4d4a0a0a 100644 --- a/sig/lithic/models/account_activity_list_response.rbs +++ b/sig/lithic/models/account_activity_list_response.rbs @@ -1,37 +1,37 @@ module Lithic module Models type account_activity_list_response = - Lithic::Models::AccountActivityListResponse::FinancialTransaction - | Lithic::Models::AccountActivityListResponse::BookTransferTransaction - | Lithic::Models::AccountActivityListResponse::CardTransaction - | Lithic::Models::AccountActivityListResponse::PaymentTransaction + Lithic::Models::AccountActivityListResponse::Internal + | Lithic::BookTransferResponse + | Lithic::Models::AccountActivityListResponse::Card + | Lithic::Payment | Lithic::ExternalPayment | Lithic::ManagementOperationTransaction module AccountActivityListResponse extend Lithic::Internal::Type::Union - type financial_transaction = + type internal = { token: String, - category: Lithic::Models::AccountActivityListResponse::FinancialTransaction::category, + category: Lithic::Models::AccountActivityListResponse::Internal::category, created: Time, currency: String, descriptor: String, - events: ::Array[Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event], - family: Lithic::Models::AccountActivityListResponse::FinancialTransaction::family, + events: ::Array[Lithic::Models::AccountActivityListResponse::Internal::Event], + family: :INTERNAL, financial_account_token: String, pending_amount: Integer, - result: Lithic::Models::AccountActivityListResponse::FinancialTransaction::result, + result: Lithic::Models::AccountActivityListResponse::Internal::result, settled_amount: Integer, - status: Lithic::Models::AccountActivityListResponse::FinancialTransaction::status, + status: Lithic::Models::AccountActivityListResponse::Internal::status, updated: Time } - class FinancialTransaction < Lithic::Internal::Type::BaseModel + class Internal < Lithic::Internal::Type::BaseModel attr_accessor token: String - attr_accessor category: Lithic::Models::AccountActivityListResponse::FinancialTransaction::category + attr_accessor category: Lithic::Models::AccountActivityListResponse::Internal::category attr_accessor created: Time @@ -39,51 +39,51 @@ module Lithic attr_accessor descriptor: String - attr_accessor events: ::Array[Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event] + attr_accessor events: ::Array[Lithic::Models::AccountActivityListResponse::Internal::Event] - attr_accessor family: Lithic::Models::AccountActivityListResponse::FinancialTransaction::family + attr_accessor family: :INTERNAL attr_accessor financial_account_token: String attr_accessor pending_amount: Integer - attr_accessor result: Lithic::Models::AccountActivityListResponse::FinancialTransaction::result + attr_accessor result: Lithic::Models::AccountActivityListResponse::Internal::result attr_accessor settled_amount: Integer - attr_accessor status: Lithic::Models::AccountActivityListResponse::FinancialTransaction::status + attr_accessor status: Lithic::Models::AccountActivityListResponse::Internal::status attr_accessor updated: Time def initialize: ( token: String, - category: Lithic::Models::AccountActivityListResponse::FinancialTransaction::category, + category: Lithic::Models::AccountActivityListResponse::Internal::category, created: Time, currency: String, descriptor: String, - events: ::Array[Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event], - family: Lithic::Models::AccountActivityListResponse::FinancialTransaction::family, + events: ::Array[Lithic::Models::AccountActivityListResponse::Internal::Event], financial_account_token: String, pending_amount: Integer, - result: Lithic::Models::AccountActivityListResponse::FinancialTransaction::result, + result: Lithic::Models::AccountActivityListResponse::Internal::result, settled_amount: Integer, - status: Lithic::Models::AccountActivityListResponse::FinancialTransaction::status, - updated: Time + status: Lithic::Models::AccountActivityListResponse::Internal::status, + updated: Time, + ?family: :INTERNAL ) -> void def to_hash: -> { token: String, - category: Lithic::Models::AccountActivityListResponse::FinancialTransaction::category, + category: Lithic::Models::AccountActivityListResponse::Internal::category, created: Time, currency: String, descriptor: String, - events: ::Array[Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event], - family: Lithic::Models::AccountActivityListResponse::FinancialTransaction::family, + events: ::Array[Lithic::Models::AccountActivityListResponse::Internal::Event], + family: :INTERNAL, financial_account_token: String, pending_amount: Integer, - result: Lithic::Models::AccountActivityListResponse::FinancialTransaction::result, + result: Lithic::Models::AccountActivityListResponse::Internal::result, settled_amount: Integer, - status: Lithic::Models::AccountActivityListResponse::FinancialTransaction::status, + status: Lithic::Models::AccountActivityListResponse::Internal::status, updated: Time } @@ -129,7 +129,7 @@ module Lithic MANAGEMENT_DISBURSEMENT: :MANAGEMENT_DISBURSEMENT PROGRAM_FUNDING: :PROGRAM_FUNDING - def self?.values: -> ::Array[Lithic::Models::AccountActivityListResponse::FinancialTransaction::category] + def self?.values: -> ::Array[Lithic::Models::AccountActivityListResponse::Internal::category] end type event = @@ -137,8 +137,8 @@ module Lithic token: String, amount: Integer, created: Time, - result: Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::result, - type: Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::type_ + result: Lithic::Models::AccountActivityListResponse::Internal::Event::result, + type: Lithic::Models::AccountActivityListResponse::Internal::Event::type_ } class Event < Lithic::Internal::Type::BaseModel @@ -154,32 +154,32 @@ module Lithic def created=: (Time) -> Time - attr_reader result: Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::result? + attr_reader result: Lithic::Models::AccountActivityListResponse::Internal::Event::result? def result=: ( - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::result - ) -> Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::result + Lithic::Models::AccountActivityListResponse::Internal::Event::result + ) -> Lithic::Models::AccountActivityListResponse::Internal::Event::result - attr_reader type: Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::type_? + attr_reader type: Lithic::Models::AccountActivityListResponse::Internal::Event::type_? def type=: ( - Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::type_ - ) -> Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::type_ + Lithic::Models::AccountActivityListResponse::Internal::Event::type_ + ) -> Lithic::Models::AccountActivityListResponse::Internal::Event::type_ def initialize: ( ?token: String, ?amount: Integer, ?created: Time, - ?result: Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::result, - ?type: Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::type_ + ?result: Lithic::Models::AccountActivityListResponse::Internal::Event::result, + ?type: Lithic::Models::AccountActivityListResponse::Internal::Event::type_ ) -> void def to_hash: -> { token: String, amount: Integer, created: Time, - result: Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::result, - type: Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::type_ + result: Lithic::Models::AccountActivityListResponse::Internal::Event::result, + type: Lithic::Models::AccountActivityListResponse::Internal::Event::type_ } type result = :APPROVED | :DECLINED @@ -190,7 +190,7 @@ module Lithic APPROVED: :APPROVED DECLINED: :DECLINED - def self?.values: -> ::Array[Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::result] + def self?.values: -> ::Array[Lithic::Models::AccountActivityListResponse::Internal::Event::result] end type type_ = @@ -339,351 +339,10 @@ module Lithic RETURNED_PAYMENT_REVERSAL: :RETURNED_PAYMENT_REVERSAL LITHIC_NETWORK_PAYMENT: :LITHIC_NETWORK_PAYMENT - def self?.values: -> ::Array[Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::type_] - end - end - - type family = - :CARD - | :PAYMENT - | :TRANSFER - | :INTERNAL - | :EXTERNAL_PAYMENT - | :MANAGEMENT_OPERATION - - module Family - extend Lithic::Internal::Type::Enum - - CARD: :CARD - PAYMENT: :PAYMENT - TRANSFER: :TRANSFER - INTERNAL: :INTERNAL - EXTERNAL_PAYMENT: :EXTERNAL_PAYMENT - MANAGEMENT_OPERATION: :MANAGEMENT_OPERATION - - def self?.values: -> ::Array[Lithic::Models::AccountActivityListResponse::FinancialTransaction::family] - end - - type result = :APPROVED | :DECLINED - - module Result - extend Lithic::Internal::Type::Enum - - APPROVED: :APPROVED - DECLINED: :DECLINED - - def self?.values: -> ::Array[Lithic::Models::AccountActivityListResponse::FinancialTransaction::result] - end - - type status = :PENDING | :SETTLED | :DECLINED | :REVERSED | :CANCELED - - module Status - extend Lithic::Internal::Type::Enum - - PENDING: :PENDING - SETTLED: :SETTLED - DECLINED: :DECLINED - REVERSED: :REVERSED - CANCELED: :CANCELED - - def self?.values: -> ::Array[Lithic::Models::AccountActivityListResponse::FinancialTransaction::status] - end - end - - type book_transfer_transaction = - { - token: String, - category: Lithic::Models::AccountActivityListResponse::BookTransferTransaction::category, - created: Time, - currency: String, - events: ::Array[Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event], - family: Lithic::Models::AccountActivityListResponse::BookTransferTransaction::family, - from_financial_account_token: String, - pending_amount: Integer, - result: Lithic::Models::AccountActivityListResponse::BookTransferTransaction::result, - settled_amount: Integer, - status: Lithic::Models::AccountActivityListResponse::BookTransferTransaction::status, - to_financial_account_token: String, - updated: Time, - external_id: String, - external_resource: Lithic::ExternalResource?, - transaction_series: Lithic::Models::AccountActivityListResponse::BookTransferTransaction::TransactionSeries? - } - - class BookTransferTransaction < Lithic::Internal::Type::BaseModel - attr_accessor token: String - - attr_accessor category: Lithic::Models::AccountActivityListResponse::BookTransferTransaction::category - - attr_accessor created: Time - - attr_accessor currency: String - - attr_accessor events: ::Array[Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event] - - attr_accessor family: Lithic::Models::AccountActivityListResponse::BookTransferTransaction::family - - attr_accessor from_financial_account_token: String - - attr_accessor pending_amount: Integer - - attr_accessor result: Lithic::Models::AccountActivityListResponse::BookTransferTransaction::result - - attr_accessor settled_amount: Integer - - attr_accessor status: Lithic::Models::AccountActivityListResponse::BookTransferTransaction::status - - attr_accessor to_financial_account_token: String - - attr_accessor updated: Time - - attr_reader external_id: String? - - def external_id=: (String) -> String - - attr_accessor external_resource: Lithic::ExternalResource? - - attr_accessor transaction_series: Lithic::Models::AccountActivityListResponse::BookTransferTransaction::TransactionSeries? - - def initialize: ( - token: String, - category: Lithic::Models::AccountActivityListResponse::BookTransferTransaction::category, - created: Time, - currency: String, - events: ::Array[Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event], - family: Lithic::Models::AccountActivityListResponse::BookTransferTransaction::family, - from_financial_account_token: String, - pending_amount: Integer, - result: Lithic::Models::AccountActivityListResponse::BookTransferTransaction::result, - settled_amount: Integer, - status: Lithic::Models::AccountActivityListResponse::BookTransferTransaction::status, - to_financial_account_token: String, - updated: Time, - ?external_id: String, - ?external_resource: Lithic::ExternalResource?, - ?transaction_series: Lithic::Models::AccountActivityListResponse::BookTransferTransaction::TransactionSeries? - ) -> void - - def to_hash: -> { - token: String, - category: Lithic::Models::AccountActivityListResponse::BookTransferTransaction::category, - created: Time, - currency: String, - events: ::Array[Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event], - family: Lithic::Models::AccountActivityListResponse::BookTransferTransaction::family, - from_financial_account_token: String, - pending_amount: Integer, - result: Lithic::Models::AccountActivityListResponse::BookTransferTransaction::result, - settled_amount: Integer, - status: Lithic::Models::AccountActivityListResponse::BookTransferTransaction::status, - to_financial_account_token: String, - updated: Time, - external_id: String, - external_resource: Lithic::ExternalResource?, - transaction_series: Lithic::Models::AccountActivityListResponse::BookTransferTransaction::TransactionSeries? - } - - type category = - :ADJUSTMENT - | :BALANCE_OR_FUNDING - | :DERECOGNITION - | :DISPUTE - | :FEE - | :INTERNAL - | :REWARD - | :PROGRAM_FUNDING - | :TRANSFER - - module Category - extend Lithic::Internal::Type::Enum - - ADJUSTMENT: :ADJUSTMENT - BALANCE_OR_FUNDING: :BALANCE_OR_FUNDING - DERECOGNITION: :DERECOGNITION - DISPUTE: :DISPUTE - FEE: :FEE - INTERNAL: :INTERNAL - REWARD: :REWARD - PROGRAM_FUNDING: :PROGRAM_FUNDING - TRANSFER: :TRANSFER - - def self?.values: -> ::Array[Lithic::Models::AccountActivityListResponse::BookTransferTransaction::category] - end - - type event = - { - token: String, - amount: Integer, - created: Time, - detailed_results: Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::detailed_results, - memo: String, - result: Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::result, - subtype: String, - type: Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::type_ - } - - class Event < Lithic::Internal::Type::BaseModel - attr_accessor token: String - - attr_accessor amount: Integer - - attr_accessor created: Time - - attr_accessor detailed_results: Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::detailed_results - - attr_accessor memo: String - - attr_accessor result: Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::result - - attr_accessor subtype: String - - attr_accessor type: Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::type_ - - def initialize: ( - token: String, - amount: Integer, - created: Time, - detailed_results: Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::detailed_results, - memo: String, - result: Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::result, - subtype: String, - type: Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::type_ - ) -> void - - def to_hash: -> { - token: String, - amount: Integer, - created: Time, - detailed_results: Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::detailed_results, - memo: String, - result: Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::result, - subtype: String, - type: Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::type_ - } - - type detailed_results = :APPROVED | :FUNDS_INSUFFICIENT - - module DetailedResults - extend Lithic::Internal::Type::Enum - - APPROVED: :APPROVED - FUNDS_INSUFFICIENT: :FUNDS_INSUFFICIENT - - def self?.values: -> ::Array[Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::detailed_results] - end - - type result = :APPROVED | :DECLINED - - module Result - extend Lithic::Internal::Type::Enum - - APPROVED: :APPROVED - DECLINED: :DECLINED - - def self?.values: -> ::Array[Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::result] - end - - type type_ = - :ATM_BALANCE_INQUIRY - | :ATM_WITHDRAWAL - | :ATM_DECLINE - | :INTERNATIONAL_ATM_WITHDRAWAL - | :INACTIVITY - | :STATEMENT - | :MONTHLY - | :QUARTERLY - | :ANNUAL - | :CUSTOMER_SERVICE - | :ACCOUNT_MAINTENANCE - | :ACCOUNT_ACTIVATION - | :ACCOUNT_CLOSURE - | :CARD_REPLACEMENT - | :CARD_DELIVERY - | :CARD_CREATE - | :CURRENCY_CONVERSION - | :INTEREST - | :LATE_PAYMENT - | :BILL_PAYMENT - | :CASH_BACK - | :ACCOUNT_TO_ACCOUNT - | :CARD_TO_CARD - | :DISBURSE - | :BILLING_ERROR - | :LOSS_WRITE_OFF - | :EXPIRED_CARD - | :EARLY_DERECOGNITION - | :ESCHEATMENT - | :INACTIVITY_FEE_DOWN - | :PROVISIONAL_CREDIT - | :DISPUTE_WON - | :SERVICE - | :TRANSFER - | :COLLECTION - - module Type - extend Lithic::Internal::Type::Enum - - ATM_BALANCE_INQUIRY: :ATM_BALANCE_INQUIRY - ATM_WITHDRAWAL: :ATM_WITHDRAWAL - ATM_DECLINE: :ATM_DECLINE - INTERNATIONAL_ATM_WITHDRAWAL: :INTERNATIONAL_ATM_WITHDRAWAL - INACTIVITY: :INACTIVITY - STATEMENT: :STATEMENT - MONTHLY: :MONTHLY - QUARTERLY: :QUARTERLY - ANNUAL: :ANNUAL - CUSTOMER_SERVICE: :CUSTOMER_SERVICE - ACCOUNT_MAINTENANCE: :ACCOUNT_MAINTENANCE - ACCOUNT_ACTIVATION: :ACCOUNT_ACTIVATION - ACCOUNT_CLOSURE: :ACCOUNT_CLOSURE - CARD_REPLACEMENT: :CARD_REPLACEMENT - CARD_DELIVERY: :CARD_DELIVERY - CARD_CREATE: :CARD_CREATE - CURRENCY_CONVERSION: :CURRENCY_CONVERSION - INTEREST: :INTEREST - LATE_PAYMENT: :LATE_PAYMENT - BILL_PAYMENT: :BILL_PAYMENT - CASH_BACK: :CASH_BACK - ACCOUNT_TO_ACCOUNT: :ACCOUNT_TO_ACCOUNT - CARD_TO_CARD: :CARD_TO_CARD - DISBURSE: :DISBURSE - BILLING_ERROR: :BILLING_ERROR - LOSS_WRITE_OFF: :LOSS_WRITE_OFF - EXPIRED_CARD: :EXPIRED_CARD - EARLY_DERECOGNITION: :EARLY_DERECOGNITION - ESCHEATMENT: :ESCHEATMENT - INACTIVITY_FEE_DOWN: :INACTIVITY_FEE_DOWN - PROVISIONAL_CREDIT: :PROVISIONAL_CREDIT - DISPUTE_WON: :DISPUTE_WON - SERVICE: :SERVICE - TRANSFER: :TRANSFER - COLLECTION: :COLLECTION - - def self?.values: -> ::Array[Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::type_] + def self?.values: -> ::Array[Lithic::Models::AccountActivityListResponse::Internal::Event::type_] end end - type family = - :CARD - | :PAYMENT - | :TRANSFER - | :INTERNAL - | :EXTERNAL_PAYMENT - | :MANAGEMENT_OPERATION - - module Family - extend Lithic::Internal::Type::Enum - - CARD: :CARD - PAYMENT: :PAYMENT - TRANSFER: :TRANSFER - INTERNAL: :INTERNAL - EXTERNAL_PAYMENT: :EXTERNAL_PAYMENT - MANAGEMENT_OPERATION: :MANAGEMENT_OPERATION - - def self?.values: -> ::Array[Lithic::Models::AccountActivityListResponse::BookTransferTransaction::family] - end - type result = :APPROVED | :DECLINED module Result @@ -692,7 +351,7 @@ module Lithic APPROVED: :APPROVED DECLINED: :DECLINED - def self?.values: -> ::Array[Lithic::Models::AccountActivityListResponse::BookTransferTransaction::result] + def self?.values: -> ::Array[Lithic::Models::AccountActivityListResponse::Internal::result] end type status = :PENDING | :SETTLED | :DECLINED | :REVERSED | :CANCELED @@ -706,663 +365,16 @@ module Lithic REVERSED: :REVERSED CANCELED: :CANCELED - def self?.values: -> ::Array[Lithic::Models::AccountActivityListResponse::BookTransferTransaction::status] - end - - type transaction_series = - { - related_transaction_event_token: String?, - related_transaction_token: String?, - type: String - } - - class TransactionSeries < Lithic::Internal::Type::BaseModel - attr_accessor related_transaction_event_token: String? - - attr_accessor related_transaction_token: String? - - attr_accessor type: String - - def initialize: ( - related_transaction_event_token: String?, - related_transaction_token: String?, - type: String - ) -> void - - def to_hash: -> { - related_transaction_event_token: String?, - related_transaction_token: String?, - type: String - } + def self?.values: -> ::Array[Lithic::Models::AccountActivityListResponse::Internal::status] end end - type card_transaction = - { - token: String, - created: Time, - family: Lithic::Models::AccountActivityListResponse::CardTransaction::family, - status: Lithic::Models::AccountActivityListResponse::CardTransaction::status, - updated: Time - } - - class CardTransaction < Lithic::Models::Transaction - def token: -> String - - def token=: (String _) -> String - - def created: -> Time - - def created=: (Time _) -> Time - - def family: -> Lithic::Models::AccountActivityListResponse::CardTransaction::family - - def family=: ( - Lithic::Models::AccountActivityListResponse::CardTransaction::family _ - ) -> Lithic::Models::AccountActivityListResponse::CardTransaction::family - - def status: -> Lithic::Models::AccountActivityListResponse::CardTransaction::status - - def status=: ( - Lithic::Models::AccountActivityListResponse::CardTransaction::status _ - ) -> Lithic::Models::AccountActivityListResponse::CardTransaction::status - - def updated: -> Time - - def updated=: (Time _) -> Time - - def initialize: ( - token: String, - created: Time, - family: Lithic::Models::AccountActivityListResponse::CardTransaction::family, - status: Lithic::Models::AccountActivityListResponse::CardTransaction::status, - updated: Time - ) -> void - - def to_hash: -> { - token: String, - created: Time, - family: Lithic::Models::AccountActivityListResponse::CardTransaction::family, - status: Lithic::Models::AccountActivityListResponse::CardTransaction::status, - updated: Time - } - - type family = - :CARD - | :PAYMENT - | :TRANSFER - | :INTERNAL - | :EXTERNAL_PAYMENT - | :MANAGEMENT_OPERATION - - module Family - extend Lithic::Internal::Type::Enum - - CARD: :CARD - PAYMENT: :PAYMENT - TRANSFER: :TRANSFER - INTERNAL: :INTERNAL - EXTERNAL_PAYMENT: :EXTERNAL_PAYMENT - MANAGEMENT_OPERATION: :MANAGEMENT_OPERATION - - def self?.values: -> ::Array[Lithic::Models::AccountActivityListResponse::CardTransaction::family] - end - - type status = :PENDING | :SETTLED | :DECLINED | :REVERSED | :CANCELED - - module Status - extend Lithic::Internal::Type::Enum - - PENDING: :PENDING - SETTLED: :SETTLED - DECLINED: :DECLINED - REVERSED: :REVERSED - CANCELED: :CANCELED + type card = { } - def self?.values: -> ::Array[Lithic::Models::AccountActivityListResponse::CardTransaction::status] - end - end + class Card < Lithic::Models::Transaction + def initialize: -> void - type payment_transaction = - { - token: String, - category: Lithic::Models::AccountActivityListResponse::PaymentTransaction::category, - created: Time, - descriptor: String, - direction: Lithic::Models::AccountActivityListResponse::PaymentTransaction::direction, - events: ::Array[Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event], - family: Lithic::Models::AccountActivityListResponse::PaymentTransaction::family, - financial_account_token: String, - method_: Lithic::Models::AccountActivityListResponse::PaymentTransaction::method_, - method_attributes: Lithic::Models::AccountActivityListResponse::PaymentTransaction::method_attributes, - pending_amount: Integer, - related_account_tokens: Lithic::Models::AccountActivityListResponse::PaymentTransaction::RelatedAccountTokens, - result: Lithic::Models::AccountActivityListResponse::PaymentTransaction::result, - settled_amount: Integer, - source: Lithic::Models::AccountActivityListResponse::PaymentTransaction::source, - status: Lithic::Models::AccountActivityListResponse::PaymentTransaction::status, - updated: Time, - currency: String, - expected_release_date: Date?, - external_bank_account_token: String?, - type: Lithic::Models::AccountActivityListResponse::PaymentTransaction::type_, - user_defined_id: String? - } - - class PaymentTransaction < Lithic::Internal::Type::BaseModel - attr_accessor token: String - - attr_accessor category: Lithic::Models::AccountActivityListResponse::PaymentTransaction::category - - attr_accessor created: Time - - attr_accessor descriptor: String - - attr_accessor direction: Lithic::Models::AccountActivityListResponse::PaymentTransaction::direction - - attr_accessor events: ::Array[Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event] - - attr_accessor family: Lithic::Models::AccountActivityListResponse::PaymentTransaction::family - - attr_accessor financial_account_token: String - - attr_accessor method_: Lithic::Models::AccountActivityListResponse::PaymentTransaction::method_ - - attr_accessor method_attributes: Lithic::Models::AccountActivityListResponse::PaymentTransaction::method_attributes - - attr_accessor pending_amount: Integer - - attr_accessor related_account_tokens: Lithic::Models::AccountActivityListResponse::PaymentTransaction::RelatedAccountTokens - - attr_accessor result: Lithic::Models::AccountActivityListResponse::PaymentTransaction::result - - attr_accessor settled_amount: Integer - - attr_accessor source: Lithic::Models::AccountActivityListResponse::PaymentTransaction::source - - attr_accessor status: Lithic::Models::AccountActivityListResponse::PaymentTransaction::status - - attr_accessor updated: Time - - attr_reader currency: String? - - def currency=: (String) -> String - - attr_accessor expected_release_date: Date? - - attr_accessor external_bank_account_token: String? - - attr_reader type: Lithic::Models::AccountActivityListResponse::PaymentTransaction::type_? - - def type=: ( - Lithic::Models::AccountActivityListResponse::PaymentTransaction::type_ - ) -> Lithic::Models::AccountActivityListResponse::PaymentTransaction::type_ - - attr_accessor user_defined_id: String? - - def initialize: ( - token: String, - category: Lithic::Models::AccountActivityListResponse::PaymentTransaction::category, - created: Time, - descriptor: String, - direction: Lithic::Models::AccountActivityListResponse::PaymentTransaction::direction, - events: ::Array[Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event], - family: Lithic::Models::AccountActivityListResponse::PaymentTransaction::family, - financial_account_token: String, - method_: Lithic::Models::AccountActivityListResponse::PaymentTransaction::method_, - method_attributes: Lithic::Models::AccountActivityListResponse::PaymentTransaction::method_attributes, - pending_amount: Integer, - related_account_tokens: Lithic::Models::AccountActivityListResponse::PaymentTransaction::RelatedAccountTokens, - result: Lithic::Models::AccountActivityListResponse::PaymentTransaction::result, - settled_amount: Integer, - source: Lithic::Models::AccountActivityListResponse::PaymentTransaction::source, - status: Lithic::Models::AccountActivityListResponse::PaymentTransaction::status, - updated: Time, - ?currency: String, - ?expected_release_date: Date?, - ?external_bank_account_token: String?, - ?type: Lithic::Models::AccountActivityListResponse::PaymentTransaction::type_, - ?user_defined_id: String? - ) -> void - - def to_hash: -> { - token: String, - category: Lithic::Models::AccountActivityListResponse::PaymentTransaction::category, - created: Time, - descriptor: String, - direction: Lithic::Models::AccountActivityListResponse::PaymentTransaction::direction, - events: ::Array[Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event], - family: Lithic::Models::AccountActivityListResponse::PaymentTransaction::family, - financial_account_token: String, - method_: Lithic::Models::AccountActivityListResponse::PaymentTransaction::method_, - method_attributes: Lithic::Models::AccountActivityListResponse::PaymentTransaction::method_attributes, - pending_amount: Integer, - related_account_tokens: Lithic::Models::AccountActivityListResponse::PaymentTransaction::RelatedAccountTokens, - result: Lithic::Models::AccountActivityListResponse::PaymentTransaction::result, - settled_amount: Integer, - source: Lithic::Models::AccountActivityListResponse::PaymentTransaction::source, - status: Lithic::Models::AccountActivityListResponse::PaymentTransaction::status, - updated: Time, - currency: String, - expected_release_date: Date?, - external_bank_account_token: String?, - type: Lithic::Models::AccountActivityListResponse::PaymentTransaction::type_, - user_defined_id: String? - } - - type category = - :ACH - | :BALANCE_OR_FUNDING - | :FEE - | :REWARD - | :ADJUSTMENT - | :DERECOGNITION - | :DISPUTE - | :CARD - | :EXTERNAL_ACH - | :EXTERNAL_CHECK - | :EXTERNAL_TRANSFER - | :EXTERNAL_WIRE - | :MANAGEMENT_ADJUSTMENT - | :MANAGEMENT_DISPUTE - | :MANAGEMENT_FEE - | :MANAGEMENT_REWARD - | :MANAGEMENT_DISBURSEMENT - | :PROGRAM_FUNDING - - module Category - extend Lithic::Internal::Type::Enum - - ACH: :ACH - BALANCE_OR_FUNDING: :BALANCE_OR_FUNDING - FEE: :FEE - REWARD: :REWARD - ADJUSTMENT: :ADJUSTMENT - DERECOGNITION: :DERECOGNITION - DISPUTE: :DISPUTE - CARD: :CARD - EXTERNAL_ACH: :EXTERNAL_ACH - EXTERNAL_CHECK: :EXTERNAL_CHECK - EXTERNAL_TRANSFER: :EXTERNAL_TRANSFER - EXTERNAL_WIRE: :EXTERNAL_WIRE - MANAGEMENT_ADJUSTMENT: :MANAGEMENT_ADJUSTMENT - MANAGEMENT_DISPUTE: :MANAGEMENT_DISPUTE - MANAGEMENT_FEE: :MANAGEMENT_FEE - MANAGEMENT_REWARD: :MANAGEMENT_REWARD - MANAGEMENT_DISBURSEMENT: :MANAGEMENT_DISBURSEMENT - PROGRAM_FUNDING: :PROGRAM_FUNDING - - def self?.values: -> ::Array[Lithic::Models::AccountActivityListResponse::PaymentTransaction::category] - end - - type direction = :CREDIT | :DEBIT - - module Direction - extend Lithic::Internal::Type::Enum - - CREDIT: :CREDIT - DEBIT: :DEBIT - - def self?.values: -> ::Array[Lithic::Models::AccountActivityListResponse::PaymentTransaction::direction] - end - - type event = - { - token: String, - amount: Integer, - created: Time, - result: Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::result, - type: Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::type_, - detailed_results: ::Array[Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::detailed_result] - } - - class Event < Lithic::Internal::Type::BaseModel - attr_accessor token: String - - attr_accessor amount: Integer - - attr_accessor created: Time - - attr_accessor result: Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::result - - attr_accessor type: Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::type_ - - attr_reader detailed_results: ::Array[Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::detailed_result]? - - def detailed_results=: ( - ::Array[Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::detailed_result] - ) -> ::Array[Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::detailed_result] - - def initialize: ( - token: String, - amount: Integer, - created: Time, - result: Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::result, - type: Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::type_, - ?detailed_results: ::Array[Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::detailed_result] - ) -> void - - def to_hash: -> { - token: String, - amount: Integer, - created: Time, - result: Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::result, - type: Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::type_, - detailed_results: ::Array[Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::detailed_result] - } - - type result = :APPROVED | :DECLINED - - module Result - extend Lithic::Internal::Type::Enum - - APPROVED: :APPROVED - DECLINED: :DECLINED - - def self?.values: -> ::Array[Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::result] - end - - type type_ = - :ACH_ORIGINATION_CANCELLED - | :ACH_ORIGINATION_INITIATED - | :ACH_ORIGINATION_PROCESSED - | :ACH_ORIGINATION_SETTLED - | :ACH_ORIGINATION_RELEASED - | :ACH_ORIGINATION_REVIEWED - | :ACH_RECEIPT_PROCESSED - | :ACH_RECEIPT_SETTLED - | :ACH_RETURN_INITIATED - | :ACH_RETURN_PROCESSED - | :ACH_RETURN_SETTLED - - module Type - extend Lithic::Internal::Type::Enum - - ACH_ORIGINATION_CANCELLED: :ACH_ORIGINATION_CANCELLED - ACH_ORIGINATION_INITIATED: :ACH_ORIGINATION_INITIATED - ACH_ORIGINATION_PROCESSED: :ACH_ORIGINATION_PROCESSED - ACH_ORIGINATION_SETTLED: :ACH_ORIGINATION_SETTLED - ACH_ORIGINATION_RELEASED: :ACH_ORIGINATION_RELEASED - ACH_ORIGINATION_REVIEWED: :ACH_ORIGINATION_REVIEWED - ACH_RECEIPT_PROCESSED: :ACH_RECEIPT_PROCESSED - ACH_RECEIPT_SETTLED: :ACH_RECEIPT_SETTLED - ACH_RETURN_INITIATED: :ACH_RETURN_INITIATED - ACH_RETURN_PROCESSED: :ACH_RETURN_PROCESSED - ACH_RETURN_SETTLED: :ACH_RETURN_SETTLED - - def self?.values: -> ::Array[Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::type_] - end - - type detailed_result = - :APPROVED - | :FUNDS_INSUFFICIENT - | :ACCOUNT_INVALID - | :PROGRAM_TRANSACTION_LIMIT_EXCEEDED - | :PROGRAM_DAILY_LIMIT_EXCEEDED - | :PROGRAM_MONTHLY_LIMIT_EXCEEDED - - module DetailedResult - extend Lithic::Internal::Type::Enum - - APPROVED: :APPROVED - FUNDS_INSUFFICIENT: :FUNDS_INSUFFICIENT - ACCOUNT_INVALID: :ACCOUNT_INVALID - PROGRAM_TRANSACTION_LIMIT_EXCEEDED: :PROGRAM_TRANSACTION_LIMIT_EXCEEDED - PROGRAM_DAILY_LIMIT_EXCEEDED: :PROGRAM_DAILY_LIMIT_EXCEEDED - PROGRAM_MONTHLY_LIMIT_EXCEEDED: :PROGRAM_MONTHLY_LIMIT_EXCEEDED - - def self?.values: -> ::Array[Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::detailed_result] - end - end - - type family = - :CARD - | :PAYMENT - | :TRANSFER - | :INTERNAL - | :EXTERNAL_PAYMENT - | :MANAGEMENT_OPERATION - - module Family - extend Lithic::Internal::Type::Enum - - CARD: :CARD - PAYMENT: :PAYMENT - TRANSFER: :TRANSFER - INTERNAL: :INTERNAL - EXTERNAL_PAYMENT: :EXTERNAL_PAYMENT - MANAGEMENT_OPERATION: :MANAGEMENT_OPERATION - - def self?.values: -> ::Array[Lithic::Models::AccountActivityListResponse::PaymentTransaction::family] - end - - type method_ = :ACH_NEXT_DAY | :ACH_SAME_DAY | :WIRE - - module Method - extend Lithic::Internal::Type::Enum - - ACH_NEXT_DAY: :ACH_NEXT_DAY - ACH_SAME_DAY: :ACH_SAME_DAY - WIRE: :WIRE - - def self?.values: -> ::Array[Lithic::Models::AccountActivityListResponse::PaymentTransaction::method_] - end - - type method_attributes = - Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes - | Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes - - module MethodAttributes - extend Lithic::Internal::Type::Union - - type ach_method_attributes = - { - sec_code: Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::sec_code, - addenda: String?, - company_id: String?, - receipt_routing_number: String?, - retries: Integer?, - return_reason_code: String?, - trace_numbers: ::Array[String] - } - - class ACHMethodAttributes < Lithic::Internal::Type::BaseModel - attr_accessor sec_code: Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::sec_code - - attr_accessor addenda: String? - - attr_accessor company_id: String? - - attr_accessor receipt_routing_number: String? - - attr_accessor retries: Integer? - - attr_accessor return_reason_code: String? - - attr_reader trace_numbers: ::Array[String]? - - def trace_numbers=: (::Array[String]) -> ::Array[String] - - def initialize: ( - sec_code: Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::sec_code, - ?addenda: String?, - ?company_id: String?, - ?receipt_routing_number: String?, - ?retries: Integer?, - ?return_reason_code: String?, - ?trace_numbers: ::Array[String] - ) -> void - - def to_hash: -> { - sec_code: Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::sec_code, - addenda: String?, - company_id: String?, - receipt_routing_number: String?, - retries: Integer?, - return_reason_code: String?, - trace_numbers: ::Array[String] - } - - type sec_code = :CCD | :PPD | :WEB | :TEL | :CIE | :CTX - - module SecCode - extend Lithic::Internal::Type::Enum - - CCD: :CCD - PPD: :PPD - WEB: :WEB - TEL: :TEL - CIE: :CIE - CTX: :CTX - - def self?.values: -> ::Array[Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::sec_code] - end - end - - type wire_method_attributes = - { - wire_network: Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes::wire_network, - creditor: Lithic::WirePartyDetails, - debtor: Lithic::WirePartyDetails, - message_id: String?, - remittance_information: String?, - wire_message_type: String - } - - class WireMethodAttributes < Lithic::Internal::Type::BaseModel - attr_accessor wire_network: Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes::wire_network - - attr_reader creditor: Lithic::WirePartyDetails? - - def creditor=: ( - Lithic::WirePartyDetails - ) -> Lithic::WirePartyDetails - - attr_reader debtor: Lithic::WirePartyDetails? - - def debtor=: (Lithic::WirePartyDetails) -> Lithic::WirePartyDetails - - attr_accessor message_id: String? - - attr_accessor remittance_information: String? - - attr_reader wire_message_type: String? - - def wire_message_type=: (String) -> String - - def initialize: ( - wire_network: Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes::wire_network, - ?creditor: Lithic::WirePartyDetails, - ?debtor: Lithic::WirePartyDetails, - ?message_id: String?, - ?remittance_information: String?, - ?wire_message_type: String - ) -> void - - def to_hash: -> { - wire_network: Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes::wire_network, - creditor: Lithic::WirePartyDetails, - debtor: Lithic::WirePartyDetails, - message_id: String?, - remittance_information: String?, - wire_message_type: String - } - - type wire_network = :FEDWIRE | :SWIFT - - module WireNetwork - extend Lithic::Internal::Type::Enum - - FEDWIRE: :FEDWIRE - SWIFT: :SWIFT - - def self?.values: -> ::Array[Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes::wire_network] - end - end - - def self?.variants: -> ::Array[Lithic::Models::AccountActivityListResponse::PaymentTransaction::method_attributes] - end - - type related_account_tokens = - { account_token: String?, business_account_token: String? } - - class RelatedAccountTokens < Lithic::Internal::Type::BaseModel - attr_accessor account_token: String? - - attr_accessor business_account_token: String? - - def initialize: ( - account_token: String?, - business_account_token: String? - ) -> void - - def to_hash: -> { - account_token: String?, - business_account_token: String? - } - end - - type result = :APPROVED | :DECLINED - - module Result - extend Lithic::Internal::Type::Enum - - APPROVED: :APPROVED - DECLINED: :DECLINED - - def self?.values: -> ::Array[Lithic::Models::AccountActivityListResponse::PaymentTransaction::result] - end - - type source = :LITHIC | :EXTERNAL | :CUSTOMER - - module Source - extend Lithic::Internal::Type::Enum - - LITHIC: :LITHIC - EXTERNAL: :EXTERNAL - CUSTOMER: :CUSTOMER - - def self?.values: -> ::Array[Lithic::Models::AccountActivityListResponse::PaymentTransaction::source] - end - - type status = :PENDING | :SETTLED | :DECLINED | :REVERSED | :CANCELED - - module Status - extend Lithic::Internal::Type::Enum - - PENDING: :PENDING - SETTLED: :SETTLED - DECLINED: :DECLINED - REVERSED: :REVERSED - CANCELED: :CANCELED - - def self?.values: -> ::Array[Lithic::Models::AccountActivityListResponse::PaymentTransaction::status] - end - - type type_ = - :ORIGINATION_CREDIT - | :ORIGINATION_DEBIT - | :RECEIPT_CREDIT - | :RECEIPT_DEBIT - | :WIRE_INBOUND_PAYMENT - | :WIRE_INBOUND_ADMIN - | :WIRE_OUTBOUND_PAYMENT - | :WIRE_OUTBOUND_ADMIN - - module Type - extend Lithic::Internal::Type::Enum - - ORIGINATION_CREDIT: :ORIGINATION_CREDIT - ORIGINATION_DEBIT: :ORIGINATION_DEBIT - RECEIPT_CREDIT: :RECEIPT_CREDIT - RECEIPT_DEBIT: :RECEIPT_DEBIT - WIRE_INBOUND_PAYMENT: :WIRE_INBOUND_PAYMENT - WIRE_INBOUND_ADMIN: :WIRE_INBOUND_ADMIN - WIRE_OUTBOUND_PAYMENT: :WIRE_OUTBOUND_PAYMENT - WIRE_OUTBOUND_ADMIN: :WIRE_OUTBOUND_ADMIN - - def self?.values: -> ::Array[Lithic::Models::AccountActivityListResponse::PaymentTransaction::type_] - end + def to_hash: -> { } end def self?.variants: -> ::Array[Lithic::Models::account_activity_list_response] diff --git a/sig/lithic/models/account_activity_retrieve_transaction_response.rbs b/sig/lithic/models/account_activity_retrieve_transaction_response.rbs index 62aa166d..0e3bd8c4 100644 --- a/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +++ b/sig/lithic/models/account_activity_retrieve_transaction_response.rbs @@ -1,37 +1,37 @@ module Lithic module Models type account_activity_retrieve_transaction_response = - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction - | Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction - | Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction - | Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal + | Lithic::BookTransferResponse + | Lithic::Models::AccountActivityRetrieveTransactionResponse::Card + | Lithic::Payment | Lithic::ExternalPayment | Lithic::ManagementOperationTransaction module AccountActivityRetrieveTransactionResponse extend Lithic::Internal::Type::Union - type financial_transaction = + type internal = { token: String, - category: Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::category, + category: Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::category, created: Time, currency: String, descriptor: String, - events: ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event], - family: Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::family, + events: ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event], + family: :INTERNAL, financial_account_token: String, pending_amount: Integer, - result: Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::result, + result: Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::result, settled_amount: Integer, - status: Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::status, + status: Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::status, updated: Time } - class FinancialTransaction < Lithic::Internal::Type::BaseModel + class Internal < Lithic::Internal::Type::BaseModel attr_accessor token: String - attr_accessor category: Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::category + attr_accessor category: Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::category attr_accessor created: Time @@ -39,51 +39,51 @@ module Lithic attr_accessor descriptor: String - attr_accessor events: ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event] + attr_accessor events: ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event] - attr_accessor family: Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::family + attr_accessor family: :INTERNAL attr_accessor financial_account_token: String attr_accessor pending_amount: Integer - attr_accessor result: Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::result + attr_accessor result: Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::result attr_accessor settled_amount: Integer - attr_accessor status: Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::status + attr_accessor status: Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::status attr_accessor updated: Time def initialize: ( token: String, - category: Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::category, + category: Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::category, created: Time, currency: String, descriptor: String, - events: ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event], - family: Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::family, + events: ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event], financial_account_token: String, pending_amount: Integer, - result: Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::result, + result: Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::result, settled_amount: Integer, - status: Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::status, - updated: Time + status: Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::status, + updated: Time, + ?family: :INTERNAL ) -> void def to_hash: -> { token: String, - category: Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::category, + category: Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::category, created: Time, currency: String, descriptor: String, - events: ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event], - family: Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::family, + events: ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event], + family: :INTERNAL, financial_account_token: String, pending_amount: Integer, - result: Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::result, + result: Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::result, settled_amount: Integer, - status: Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::status, + status: Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::status, updated: Time } @@ -129,7 +129,7 @@ module Lithic MANAGEMENT_DISBURSEMENT: :MANAGEMENT_DISBURSEMENT PROGRAM_FUNDING: :PROGRAM_FUNDING - def self?.values: -> ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::category] + def self?.values: -> ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::category] end type event = @@ -137,8 +137,8 @@ module Lithic token: String, amount: Integer, created: Time, - result: Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::result, - type: Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::type_ + result: Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::result, + type: Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::type_ } class Event < Lithic::Internal::Type::BaseModel @@ -154,32 +154,32 @@ module Lithic def created=: (Time) -> Time - attr_reader result: Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::result? + attr_reader result: Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::result? def result=: ( - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::result - ) -> Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::result + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::result + ) -> Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::result - attr_reader type: Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::type_? + attr_reader type: Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::type_? def type=: ( - Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::type_ - ) -> Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::type_ + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::type_ + ) -> Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::type_ def initialize: ( ?token: String, ?amount: Integer, ?created: Time, - ?result: Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::result, - ?type: Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::type_ + ?result: Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::result, + ?type: Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::type_ ) -> void def to_hash: -> { token: String, amount: Integer, created: Time, - result: Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::result, - type: Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::type_ + result: Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::result, + type: Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::type_ } type result = :APPROVED | :DECLINED @@ -190,7 +190,7 @@ module Lithic APPROVED: :APPROVED DECLINED: :DECLINED - def self?.values: -> ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::result] + def self?.values: -> ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::result] end type type_ = @@ -339,351 +339,10 @@ module Lithic RETURNED_PAYMENT_REVERSAL: :RETURNED_PAYMENT_REVERSAL LITHIC_NETWORK_PAYMENT: :LITHIC_NETWORK_PAYMENT - def self?.values: -> ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::type_] - end - end - - type family = - :CARD - | :PAYMENT - | :TRANSFER - | :INTERNAL - | :EXTERNAL_PAYMENT - | :MANAGEMENT_OPERATION - - module Family - extend Lithic::Internal::Type::Enum - - CARD: :CARD - PAYMENT: :PAYMENT - TRANSFER: :TRANSFER - INTERNAL: :INTERNAL - EXTERNAL_PAYMENT: :EXTERNAL_PAYMENT - MANAGEMENT_OPERATION: :MANAGEMENT_OPERATION - - def self?.values: -> ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::family] - end - - type result = :APPROVED | :DECLINED - - module Result - extend Lithic::Internal::Type::Enum - - APPROVED: :APPROVED - DECLINED: :DECLINED - - def self?.values: -> ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::result] - end - - type status = :PENDING | :SETTLED | :DECLINED | :REVERSED | :CANCELED - - module Status - extend Lithic::Internal::Type::Enum - - PENDING: :PENDING - SETTLED: :SETTLED - DECLINED: :DECLINED - REVERSED: :REVERSED - CANCELED: :CANCELED - - def self?.values: -> ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::status] - end - end - - type book_transfer_transaction = - { - token: String, - category: Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::category, - created: Time, - currency: String, - events: ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event], - family: Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::family, - from_financial_account_token: String, - pending_amount: Integer, - result: Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::result, - settled_amount: Integer, - status: Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::status, - to_financial_account_token: String, - updated: Time, - external_id: String, - external_resource: Lithic::ExternalResource?, - transaction_series: Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::TransactionSeries? - } - - class BookTransferTransaction < Lithic::Internal::Type::BaseModel - attr_accessor token: String - - attr_accessor category: Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::category - - attr_accessor created: Time - - attr_accessor currency: String - - attr_accessor events: ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event] - - attr_accessor family: Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::family - - attr_accessor from_financial_account_token: String - - attr_accessor pending_amount: Integer - - attr_accessor result: Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::result - - attr_accessor settled_amount: Integer - - attr_accessor status: Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::status - - attr_accessor to_financial_account_token: String - - attr_accessor updated: Time - - attr_reader external_id: String? - - def external_id=: (String) -> String - - attr_accessor external_resource: Lithic::ExternalResource? - - attr_accessor transaction_series: Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::TransactionSeries? - - def initialize: ( - token: String, - category: Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::category, - created: Time, - currency: String, - events: ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event], - family: Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::family, - from_financial_account_token: String, - pending_amount: Integer, - result: Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::result, - settled_amount: Integer, - status: Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::status, - to_financial_account_token: String, - updated: Time, - ?external_id: String, - ?external_resource: Lithic::ExternalResource?, - ?transaction_series: Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::TransactionSeries? - ) -> void - - def to_hash: -> { - token: String, - category: Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::category, - created: Time, - currency: String, - events: ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event], - family: Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::family, - from_financial_account_token: String, - pending_amount: Integer, - result: Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::result, - settled_amount: Integer, - status: Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::status, - to_financial_account_token: String, - updated: Time, - external_id: String, - external_resource: Lithic::ExternalResource?, - transaction_series: Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::TransactionSeries? - } - - type category = - :ADJUSTMENT - | :BALANCE_OR_FUNDING - | :DERECOGNITION - | :DISPUTE - | :FEE - | :INTERNAL - | :REWARD - | :PROGRAM_FUNDING - | :TRANSFER - - module Category - extend Lithic::Internal::Type::Enum - - ADJUSTMENT: :ADJUSTMENT - BALANCE_OR_FUNDING: :BALANCE_OR_FUNDING - DERECOGNITION: :DERECOGNITION - DISPUTE: :DISPUTE - FEE: :FEE - INTERNAL: :INTERNAL - REWARD: :REWARD - PROGRAM_FUNDING: :PROGRAM_FUNDING - TRANSFER: :TRANSFER - - def self?.values: -> ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::category] - end - - type event = - { - token: String, - amount: Integer, - created: Time, - detailed_results: Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::detailed_results, - memo: String, - result: Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::result, - subtype: String, - type: Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::type_ - } - - class Event < Lithic::Internal::Type::BaseModel - attr_accessor token: String - - attr_accessor amount: Integer - - attr_accessor created: Time - - attr_accessor detailed_results: Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::detailed_results - - attr_accessor memo: String - - attr_accessor result: Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::result - - attr_accessor subtype: String - - attr_accessor type: Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::type_ - - def initialize: ( - token: String, - amount: Integer, - created: Time, - detailed_results: Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::detailed_results, - memo: String, - result: Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::result, - subtype: String, - type: Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::type_ - ) -> void - - def to_hash: -> { - token: String, - amount: Integer, - created: Time, - detailed_results: Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::detailed_results, - memo: String, - result: Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::result, - subtype: String, - type: Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::type_ - } - - type detailed_results = :APPROVED | :FUNDS_INSUFFICIENT - - module DetailedResults - extend Lithic::Internal::Type::Enum - - APPROVED: :APPROVED - FUNDS_INSUFFICIENT: :FUNDS_INSUFFICIENT - - def self?.values: -> ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::detailed_results] - end - - type result = :APPROVED | :DECLINED - - module Result - extend Lithic::Internal::Type::Enum - - APPROVED: :APPROVED - DECLINED: :DECLINED - - def self?.values: -> ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::result] - end - - type type_ = - :ATM_BALANCE_INQUIRY - | :ATM_WITHDRAWAL - | :ATM_DECLINE - | :INTERNATIONAL_ATM_WITHDRAWAL - | :INACTIVITY - | :STATEMENT - | :MONTHLY - | :QUARTERLY - | :ANNUAL - | :CUSTOMER_SERVICE - | :ACCOUNT_MAINTENANCE - | :ACCOUNT_ACTIVATION - | :ACCOUNT_CLOSURE - | :CARD_REPLACEMENT - | :CARD_DELIVERY - | :CARD_CREATE - | :CURRENCY_CONVERSION - | :INTEREST - | :LATE_PAYMENT - | :BILL_PAYMENT - | :CASH_BACK - | :ACCOUNT_TO_ACCOUNT - | :CARD_TO_CARD - | :DISBURSE - | :BILLING_ERROR - | :LOSS_WRITE_OFF - | :EXPIRED_CARD - | :EARLY_DERECOGNITION - | :ESCHEATMENT - | :INACTIVITY_FEE_DOWN - | :PROVISIONAL_CREDIT - | :DISPUTE_WON - | :SERVICE - | :TRANSFER - | :COLLECTION - - module Type - extend Lithic::Internal::Type::Enum - - ATM_BALANCE_INQUIRY: :ATM_BALANCE_INQUIRY - ATM_WITHDRAWAL: :ATM_WITHDRAWAL - ATM_DECLINE: :ATM_DECLINE - INTERNATIONAL_ATM_WITHDRAWAL: :INTERNATIONAL_ATM_WITHDRAWAL - INACTIVITY: :INACTIVITY - STATEMENT: :STATEMENT - MONTHLY: :MONTHLY - QUARTERLY: :QUARTERLY - ANNUAL: :ANNUAL - CUSTOMER_SERVICE: :CUSTOMER_SERVICE - ACCOUNT_MAINTENANCE: :ACCOUNT_MAINTENANCE - ACCOUNT_ACTIVATION: :ACCOUNT_ACTIVATION - ACCOUNT_CLOSURE: :ACCOUNT_CLOSURE - CARD_REPLACEMENT: :CARD_REPLACEMENT - CARD_DELIVERY: :CARD_DELIVERY - CARD_CREATE: :CARD_CREATE - CURRENCY_CONVERSION: :CURRENCY_CONVERSION - INTEREST: :INTEREST - LATE_PAYMENT: :LATE_PAYMENT - BILL_PAYMENT: :BILL_PAYMENT - CASH_BACK: :CASH_BACK - ACCOUNT_TO_ACCOUNT: :ACCOUNT_TO_ACCOUNT - CARD_TO_CARD: :CARD_TO_CARD - DISBURSE: :DISBURSE - BILLING_ERROR: :BILLING_ERROR - LOSS_WRITE_OFF: :LOSS_WRITE_OFF - EXPIRED_CARD: :EXPIRED_CARD - EARLY_DERECOGNITION: :EARLY_DERECOGNITION - ESCHEATMENT: :ESCHEATMENT - INACTIVITY_FEE_DOWN: :INACTIVITY_FEE_DOWN - PROVISIONAL_CREDIT: :PROVISIONAL_CREDIT - DISPUTE_WON: :DISPUTE_WON - SERVICE: :SERVICE - TRANSFER: :TRANSFER - COLLECTION: :COLLECTION - - def self?.values: -> ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::type_] + def self?.values: -> ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event::type_] end end - type family = - :CARD - | :PAYMENT - | :TRANSFER - | :INTERNAL - | :EXTERNAL_PAYMENT - | :MANAGEMENT_OPERATION - - module Family - extend Lithic::Internal::Type::Enum - - CARD: :CARD - PAYMENT: :PAYMENT - TRANSFER: :TRANSFER - INTERNAL: :INTERNAL - EXTERNAL_PAYMENT: :EXTERNAL_PAYMENT - MANAGEMENT_OPERATION: :MANAGEMENT_OPERATION - - def self?.values: -> ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::family] - end - type result = :APPROVED | :DECLINED module Result @@ -692,7 +351,7 @@ module Lithic APPROVED: :APPROVED DECLINED: :DECLINED - def self?.values: -> ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::result] + def self?.values: -> ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::result] end type status = :PENDING | :SETTLED | :DECLINED | :REVERSED | :CANCELED @@ -706,663 +365,16 @@ module Lithic REVERSED: :REVERSED CANCELED: :CANCELED - def self?.values: -> ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::status] - end - - type transaction_series = - { - related_transaction_event_token: String?, - related_transaction_token: String?, - type: String - } - - class TransactionSeries < Lithic::Internal::Type::BaseModel - attr_accessor related_transaction_event_token: String? - - attr_accessor related_transaction_token: String? - - attr_accessor type: String - - def initialize: ( - related_transaction_event_token: String?, - related_transaction_token: String?, - type: String - ) -> void - - def to_hash: -> { - related_transaction_event_token: String?, - related_transaction_token: String?, - type: String - } + def self?.values: -> ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::status] end end - type card_transaction = - { - token: String, - created: Time, - family: Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction::family, - status: Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction::status, - updated: Time - } - - class CardTransaction < Lithic::Models::Transaction - def token: -> String - - def token=: (String _) -> String - - def created: -> Time - - def created=: (Time _) -> Time - - def family: -> Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction::family - - def family=: ( - Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction::family _ - ) -> Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction::family - - def status: -> Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction::status - - def status=: ( - Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction::status _ - ) -> Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction::status - - def updated: -> Time - - def updated=: (Time _) -> Time - - def initialize: ( - token: String, - created: Time, - family: Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction::family, - status: Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction::status, - updated: Time - ) -> void - - def to_hash: -> { - token: String, - created: Time, - family: Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction::family, - status: Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction::status, - updated: Time - } - - type family = - :CARD - | :PAYMENT - | :TRANSFER - | :INTERNAL - | :EXTERNAL_PAYMENT - | :MANAGEMENT_OPERATION - - module Family - extend Lithic::Internal::Type::Enum - - CARD: :CARD - PAYMENT: :PAYMENT - TRANSFER: :TRANSFER - INTERNAL: :INTERNAL - EXTERNAL_PAYMENT: :EXTERNAL_PAYMENT - MANAGEMENT_OPERATION: :MANAGEMENT_OPERATION - - def self?.values: -> ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction::family] - end - - type status = :PENDING | :SETTLED | :DECLINED | :REVERSED | :CANCELED - - module Status - extend Lithic::Internal::Type::Enum - - PENDING: :PENDING - SETTLED: :SETTLED - DECLINED: :DECLINED - REVERSED: :REVERSED - CANCELED: :CANCELED + type card = { } - def self?.values: -> ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction::status] - end - end + class Card < Lithic::Models::Transaction + def initialize: -> void - type payment_transaction = - { - token: String, - category: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::category, - created: Time, - descriptor: String, - direction: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::direction, - events: ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event], - family: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::family, - financial_account_token: String, - method_: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::method_, - method_attributes: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::method_attributes, - pending_amount: Integer, - related_account_tokens: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::RelatedAccountTokens, - result: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::result, - settled_amount: Integer, - source: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::source, - status: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::status, - updated: Time, - currency: String, - expected_release_date: Date?, - external_bank_account_token: String?, - type: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::type_, - user_defined_id: String? - } - - class PaymentTransaction < Lithic::Internal::Type::BaseModel - attr_accessor token: String - - attr_accessor category: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::category - - attr_accessor created: Time - - attr_accessor descriptor: String - - attr_accessor direction: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::direction - - attr_accessor events: ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event] - - attr_accessor family: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::family - - attr_accessor financial_account_token: String - - attr_accessor method_: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::method_ - - attr_accessor method_attributes: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::method_attributes - - attr_accessor pending_amount: Integer - - attr_accessor related_account_tokens: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::RelatedAccountTokens - - attr_accessor result: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::result - - attr_accessor settled_amount: Integer - - attr_accessor source: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::source - - attr_accessor status: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::status - - attr_accessor updated: Time - - attr_reader currency: String? - - def currency=: (String) -> String - - attr_accessor expected_release_date: Date? - - attr_accessor external_bank_account_token: String? - - attr_reader type: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::type_? - - def type=: ( - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::type_ - ) -> Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::type_ - - attr_accessor user_defined_id: String? - - def initialize: ( - token: String, - category: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::category, - created: Time, - descriptor: String, - direction: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::direction, - events: ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event], - family: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::family, - financial_account_token: String, - method_: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::method_, - method_attributes: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::method_attributes, - pending_amount: Integer, - related_account_tokens: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::RelatedAccountTokens, - result: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::result, - settled_amount: Integer, - source: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::source, - status: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::status, - updated: Time, - ?currency: String, - ?expected_release_date: Date?, - ?external_bank_account_token: String?, - ?type: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::type_, - ?user_defined_id: String? - ) -> void - - def to_hash: -> { - token: String, - category: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::category, - created: Time, - descriptor: String, - direction: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::direction, - events: ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event], - family: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::family, - financial_account_token: String, - method_: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::method_, - method_attributes: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::method_attributes, - pending_amount: Integer, - related_account_tokens: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::RelatedAccountTokens, - result: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::result, - settled_amount: Integer, - source: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::source, - status: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::status, - updated: Time, - currency: String, - expected_release_date: Date?, - external_bank_account_token: String?, - type: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::type_, - user_defined_id: String? - } - - type category = - :ACH - | :BALANCE_OR_FUNDING - | :FEE - | :REWARD - | :ADJUSTMENT - | :DERECOGNITION - | :DISPUTE - | :CARD - | :EXTERNAL_ACH - | :EXTERNAL_CHECK - | :EXTERNAL_TRANSFER - | :EXTERNAL_WIRE - | :MANAGEMENT_ADJUSTMENT - | :MANAGEMENT_DISPUTE - | :MANAGEMENT_FEE - | :MANAGEMENT_REWARD - | :MANAGEMENT_DISBURSEMENT - | :PROGRAM_FUNDING - - module Category - extend Lithic::Internal::Type::Enum - - ACH: :ACH - BALANCE_OR_FUNDING: :BALANCE_OR_FUNDING - FEE: :FEE - REWARD: :REWARD - ADJUSTMENT: :ADJUSTMENT - DERECOGNITION: :DERECOGNITION - DISPUTE: :DISPUTE - CARD: :CARD - EXTERNAL_ACH: :EXTERNAL_ACH - EXTERNAL_CHECK: :EXTERNAL_CHECK - EXTERNAL_TRANSFER: :EXTERNAL_TRANSFER - EXTERNAL_WIRE: :EXTERNAL_WIRE - MANAGEMENT_ADJUSTMENT: :MANAGEMENT_ADJUSTMENT - MANAGEMENT_DISPUTE: :MANAGEMENT_DISPUTE - MANAGEMENT_FEE: :MANAGEMENT_FEE - MANAGEMENT_REWARD: :MANAGEMENT_REWARD - MANAGEMENT_DISBURSEMENT: :MANAGEMENT_DISBURSEMENT - PROGRAM_FUNDING: :PROGRAM_FUNDING - - def self?.values: -> ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::category] - end - - type direction = :CREDIT | :DEBIT - - module Direction - extend Lithic::Internal::Type::Enum - - CREDIT: :CREDIT - DEBIT: :DEBIT - - def self?.values: -> ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::direction] - end - - type event = - { - token: String, - amount: Integer, - created: Time, - result: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::result, - type: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::type_, - detailed_results: ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::detailed_result] - } - - class Event < Lithic::Internal::Type::BaseModel - attr_accessor token: String - - attr_accessor amount: Integer - - attr_accessor created: Time - - attr_accessor result: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::result - - attr_accessor type: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::type_ - - attr_reader detailed_results: ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::detailed_result]? - - def detailed_results=: ( - ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::detailed_result] - ) -> ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::detailed_result] - - def initialize: ( - token: String, - amount: Integer, - created: Time, - result: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::result, - type: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::type_, - ?detailed_results: ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::detailed_result] - ) -> void - - def to_hash: -> { - token: String, - amount: Integer, - created: Time, - result: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::result, - type: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::type_, - detailed_results: ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::detailed_result] - } - - type result = :APPROVED | :DECLINED - - module Result - extend Lithic::Internal::Type::Enum - - APPROVED: :APPROVED - DECLINED: :DECLINED - - def self?.values: -> ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::result] - end - - type type_ = - :ACH_ORIGINATION_CANCELLED - | :ACH_ORIGINATION_INITIATED - | :ACH_ORIGINATION_PROCESSED - | :ACH_ORIGINATION_SETTLED - | :ACH_ORIGINATION_RELEASED - | :ACH_ORIGINATION_REVIEWED - | :ACH_RECEIPT_PROCESSED - | :ACH_RECEIPT_SETTLED - | :ACH_RETURN_INITIATED - | :ACH_RETURN_PROCESSED - | :ACH_RETURN_SETTLED - - module Type - extend Lithic::Internal::Type::Enum - - ACH_ORIGINATION_CANCELLED: :ACH_ORIGINATION_CANCELLED - ACH_ORIGINATION_INITIATED: :ACH_ORIGINATION_INITIATED - ACH_ORIGINATION_PROCESSED: :ACH_ORIGINATION_PROCESSED - ACH_ORIGINATION_SETTLED: :ACH_ORIGINATION_SETTLED - ACH_ORIGINATION_RELEASED: :ACH_ORIGINATION_RELEASED - ACH_ORIGINATION_REVIEWED: :ACH_ORIGINATION_REVIEWED - ACH_RECEIPT_PROCESSED: :ACH_RECEIPT_PROCESSED - ACH_RECEIPT_SETTLED: :ACH_RECEIPT_SETTLED - ACH_RETURN_INITIATED: :ACH_RETURN_INITIATED - ACH_RETURN_PROCESSED: :ACH_RETURN_PROCESSED - ACH_RETURN_SETTLED: :ACH_RETURN_SETTLED - - def self?.values: -> ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::type_] - end - - type detailed_result = - :APPROVED - | :FUNDS_INSUFFICIENT - | :ACCOUNT_INVALID - | :PROGRAM_TRANSACTION_LIMIT_EXCEEDED - | :PROGRAM_DAILY_LIMIT_EXCEEDED - | :PROGRAM_MONTHLY_LIMIT_EXCEEDED - - module DetailedResult - extend Lithic::Internal::Type::Enum - - APPROVED: :APPROVED - FUNDS_INSUFFICIENT: :FUNDS_INSUFFICIENT - ACCOUNT_INVALID: :ACCOUNT_INVALID - PROGRAM_TRANSACTION_LIMIT_EXCEEDED: :PROGRAM_TRANSACTION_LIMIT_EXCEEDED - PROGRAM_DAILY_LIMIT_EXCEEDED: :PROGRAM_DAILY_LIMIT_EXCEEDED - PROGRAM_MONTHLY_LIMIT_EXCEEDED: :PROGRAM_MONTHLY_LIMIT_EXCEEDED - - def self?.values: -> ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Event::detailed_result] - end - end - - type family = - :CARD - | :PAYMENT - | :TRANSFER - | :INTERNAL - | :EXTERNAL_PAYMENT - | :MANAGEMENT_OPERATION - - module Family - extend Lithic::Internal::Type::Enum - - CARD: :CARD - PAYMENT: :PAYMENT - TRANSFER: :TRANSFER - INTERNAL: :INTERNAL - EXTERNAL_PAYMENT: :EXTERNAL_PAYMENT - MANAGEMENT_OPERATION: :MANAGEMENT_OPERATION - - def self?.values: -> ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::family] - end - - type method_ = :ACH_NEXT_DAY | :ACH_SAME_DAY | :WIRE - - module Method - extend Lithic::Internal::Type::Enum - - ACH_NEXT_DAY: :ACH_NEXT_DAY - ACH_SAME_DAY: :ACH_SAME_DAY - WIRE: :WIRE - - def self?.values: -> ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::method_] - end - - type method_attributes = - Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes - | Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes - - module MethodAttributes - extend Lithic::Internal::Type::Union - - type ach_method_attributes = - { - sec_code: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::sec_code, - addenda: String?, - company_id: String?, - receipt_routing_number: String?, - retries: Integer?, - return_reason_code: String?, - trace_numbers: ::Array[String] - } - - class ACHMethodAttributes < Lithic::Internal::Type::BaseModel - attr_accessor sec_code: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::sec_code - - attr_accessor addenda: String? - - attr_accessor company_id: String? - - attr_accessor receipt_routing_number: String? - - attr_accessor retries: Integer? - - attr_accessor return_reason_code: String? - - attr_reader trace_numbers: ::Array[String]? - - def trace_numbers=: (::Array[String]) -> ::Array[String] - - def initialize: ( - sec_code: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::sec_code, - ?addenda: String?, - ?company_id: String?, - ?receipt_routing_number: String?, - ?retries: Integer?, - ?return_reason_code: String?, - ?trace_numbers: ::Array[String] - ) -> void - - def to_hash: -> { - sec_code: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::sec_code, - addenda: String?, - company_id: String?, - receipt_routing_number: String?, - retries: Integer?, - return_reason_code: String?, - trace_numbers: ::Array[String] - } - - type sec_code = :CCD | :PPD | :WEB | :TEL | :CIE | :CTX - - module SecCode - extend Lithic::Internal::Type::Enum - - CCD: :CCD - PPD: :PPD - WEB: :WEB - TEL: :TEL - CIE: :CIE - CTX: :CTX - - def self?.values: -> ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::sec_code] - end - end - - type wire_method_attributes = - { - wire_network: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes::wire_network, - creditor: Lithic::WirePartyDetails, - debtor: Lithic::WirePartyDetails, - message_id: String?, - remittance_information: String?, - wire_message_type: String - } - - class WireMethodAttributes < Lithic::Internal::Type::BaseModel - attr_accessor wire_network: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes::wire_network - - attr_reader creditor: Lithic::WirePartyDetails? - - def creditor=: ( - Lithic::WirePartyDetails - ) -> Lithic::WirePartyDetails - - attr_reader debtor: Lithic::WirePartyDetails? - - def debtor=: (Lithic::WirePartyDetails) -> Lithic::WirePartyDetails - - attr_accessor message_id: String? - - attr_accessor remittance_information: String? - - attr_reader wire_message_type: String? - - def wire_message_type=: (String) -> String - - def initialize: ( - wire_network: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes::wire_network, - ?creditor: Lithic::WirePartyDetails, - ?debtor: Lithic::WirePartyDetails, - ?message_id: String?, - ?remittance_information: String?, - ?wire_message_type: String - ) -> void - - def to_hash: -> { - wire_network: Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes::wire_network, - creditor: Lithic::WirePartyDetails, - debtor: Lithic::WirePartyDetails, - message_id: String?, - remittance_information: String?, - wire_message_type: String - } - - type wire_network = :FEDWIRE | :SWIFT - - module WireNetwork - extend Lithic::Internal::Type::Enum - - FEDWIRE: :FEDWIRE - SWIFT: :SWIFT - - def self?.values: -> ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes::wire_network] - end - end - - def self?.variants: -> ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::method_attributes] - end - - type related_account_tokens = - { account_token: String?, business_account_token: String? } - - class RelatedAccountTokens < Lithic::Internal::Type::BaseModel - attr_accessor account_token: String? - - attr_accessor business_account_token: String? - - def initialize: ( - account_token: String?, - business_account_token: String? - ) -> void - - def to_hash: -> { - account_token: String?, - business_account_token: String? - } - end - - type result = :APPROVED | :DECLINED - - module Result - extend Lithic::Internal::Type::Enum - - APPROVED: :APPROVED - DECLINED: :DECLINED - - def self?.values: -> ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::result] - end - - type source = :LITHIC | :EXTERNAL | :CUSTOMER - - module Source - extend Lithic::Internal::Type::Enum - - LITHIC: :LITHIC - EXTERNAL: :EXTERNAL - CUSTOMER: :CUSTOMER - - def self?.values: -> ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::source] - end - - type status = :PENDING | :SETTLED | :DECLINED | :REVERSED | :CANCELED - - module Status - extend Lithic::Internal::Type::Enum - - PENDING: :PENDING - SETTLED: :SETTLED - DECLINED: :DECLINED - REVERSED: :REVERSED - CANCELED: :CANCELED - - def self?.values: -> ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::status] - end - - type type_ = - :ORIGINATION_CREDIT - | :ORIGINATION_DEBIT - | :RECEIPT_CREDIT - | :RECEIPT_DEBIT - | :WIRE_INBOUND_PAYMENT - | :WIRE_INBOUND_ADMIN - | :WIRE_OUTBOUND_PAYMENT - | :WIRE_OUTBOUND_ADMIN - - module Type - extend Lithic::Internal::Type::Enum - - ORIGINATION_CREDIT: :ORIGINATION_CREDIT - ORIGINATION_DEBIT: :ORIGINATION_DEBIT - RECEIPT_CREDIT: :RECEIPT_CREDIT - RECEIPT_DEBIT: :RECEIPT_DEBIT - WIRE_INBOUND_PAYMENT: :WIRE_INBOUND_PAYMENT - WIRE_INBOUND_ADMIN: :WIRE_INBOUND_ADMIN - WIRE_OUTBOUND_PAYMENT: :WIRE_OUTBOUND_PAYMENT - WIRE_OUTBOUND_ADMIN: :WIRE_OUTBOUND_ADMIN - - def self?.values: -> ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::type_] - end + def to_hash: -> { } end def self?.variants: -> ::Array[Lithic::Models::account_activity_retrieve_transaction_response] diff --git a/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs b/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs index d9305d3a..6e778cfc 100644 --- a/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +++ b/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs @@ -80,6 +80,7 @@ module Lithic | :TRANSACTION_AMOUNT | :RISK_SCORE | :MESSAGE_CATEGORY + | :ADDRESS_MATCH module Attribute extend Lithic::Internal::Type::Enum @@ -92,6 +93,7 @@ module Lithic TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT RISK_SCORE: :RISK_SCORE MESSAGE_CATEGORY: :MESSAGE_CATEGORY + ADDRESS_MATCH: :ADDRESS_MATCH def self?.values: -> ::Array[Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::attribute] end diff --git a/sig/lithic/models/auth_rules/conditional_attribute.rbs b/sig/lithic/models/auth_rules/conditional_attribute.rbs index 13df9670..7eb61818 100644 --- a/sig/lithic/models/auth_rules/conditional_attribute.rbs +++ b/sig/lithic/models/auth_rules/conditional_attribute.rbs @@ -18,6 +18,7 @@ module Lithic | :PIN_ENTERED | :PIN_STATUS | :WALLET_TYPE + | :ADDRESS_MATCH module ConditionalAttribute extend Lithic::Internal::Type::Enum @@ -38,6 +39,7 @@ module Lithic PIN_ENTERED: :PIN_ENTERED PIN_STATUS: :PIN_STATUS WALLET_TYPE: :WALLET_TYPE + ADDRESS_MATCH: :ADDRESS_MATCH def self?.values: -> ::Array[Lithic::Models::AuthRules::conditional_attribute] end diff --git a/sig/lithic/models/auth_rules/v2_apply_response.rbs b/sig/lithic/models/auth_rules/v2_apply_response.rbs index 3436ed82..c415a969 100644 --- a/sig/lithic/models/auth_rules/v2_apply_response.rbs +++ b/sig/lithic/models/auth_rules/v2_apply_response.rbs @@ -199,6 +199,7 @@ module Lithic | :PIN_STATUS | :WALLET_TYPE | :TRANSACTION_INITIATOR + | :ADDRESS_MATCH module Attribute extend Lithic::Internal::Type::Enum @@ -221,6 +222,7 @@ module Lithic PIN_STATUS: :PIN_STATUS WALLET_TYPE: :WALLET_TYPE TRANSACTION_INITIATOR: :TRANSACTION_INITIATOR + ADDRESS_MATCH: :ADDRESS_MATCH def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute] end @@ -390,6 +392,7 @@ module Lithic | :PIN_STATUS | :WALLET_TYPE | :TRANSACTION_INITIATOR + | :ADDRESS_MATCH module Attribute extend Lithic::Internal::Type::Enum @@ -412,6 +415,7 @@ module Lithic PIN_STATUS: :PIN_STATUS WALLET_TYPE: :WALLET_TYPE TRANSACTION_INITIATOR: :TRANSACTION_INITIATOR + ADDRESS_MATCH: :ADDRESS_MATCH def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute] end diff --git a/sig/lithic/models/auth_rules/v2_create_params.rbs b/sig/lithic/models/auth_rules/v2_create_params.rbs index 16a692b7..d4c82e32 100644 --- a/sig/lithic/models/auth_rules/v2_create_params.rbs +++ b/sig/lithic/models/auth_rules/v2_create_params.rbs @@ -191,6 +191,7 @@ module Lithic | :PIN_STATUS | :WALLET_TYPE | :TRANSACTION_INITIATOR + | :ADDRESS_MATCH module Attribute extend Lithic::Internal::Type::Enum @@ -213,6 +214,7 @@ module Lithic PIN_STATUS: :PIN_STATUS WALLET_TYPE: :WALLET_TYPE TRANSACTION_INITIATOR: :TRANSACTION_INITIATOR + ADDRESS_MATCH: :ADDRESS_MATCH def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute] end diff --git a/sig/lithic/models/auth_rules/v2_create_response.rbs b/sig/lithic/models/auth_rules/v2_create_response.rbs index d5298590..06f90e66 100644 --- a/sig/lithic/models/auth_rules/v2_create_response.rbs +++ b/sig/lithic/models/auth_rules/v2_create_response.rbs @@ -199,6 +199,7 @@ module Lithic | :PIN_STATUS | :WALLET_TYPE | :TRANSACTION_INITIATOR + | :ADDRESS_MATCH module Attribute extend Lithic::Internal::Type::Enum @@ -221,6 +222,7 @@ module Lithic PIN_STATUS: :PIN_STATUS WALLET_TYPE: :WALLET_TYPE TRANSACTION_INITIATOR: :TRANSACTION_INITIATOR + ADDRESS_MATCH: :ADDRESS_MATCH def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute] end @@ -390,6 +392,7 @@ module Lithic | :PIN_STATUS | :WALLET_TYPE | :TRANSACTION_INITIATOR + | :ADDRESS_MATCH module Attribute extend Lithic::Internal::Type::Enum @@ -412,6 +415,7 @@ module Lithic PIN_STATUS: :PIN_STATUS WALLET_TYPE: :WALLET_TYPE TRANSACTION_INITIATOR: :TRANSACTION_INITIATOR + ADDRESS_MATCH: :ADDRESS_MATCH def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute] end diff --git a/sig/lithic/models/auth_rules/v2_draft_params.rbs b/sig/lithic/models/auth_rules/v2_draft_params.rbs index b473dff0..a61b6188 100644 --- a/sig/lithic/models/auth_rules/v2_draft_params.rbs +++ b/sig/lithic/models/auth_rules/v2_draft_params.rbs @@ -120,6 +120,7 @@ module Lithic | :PIN_STATUS | :WALLET_TYPE | :TRANSACTION_INITIATOR + | :ADDRESS_MATCH module Attribute extend Lithic::Internal::Type::Enum @@ -142,6 +143,7 @@ module Lithic PIN_STATUS: :PIN_STATUS WALLET_TYPE: :WALLET_TYPE TRANSACTION_INITIATOR: :TRANSACTION_INITIATOR + ADDRESS_MATCH: :ADDRESS_MATCH def self?.values: -> ::Array[Lithic::Models::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute] end diff --git a/sig/lithic/models/auth_rules/v2_draft_response.rbs b/sig/lithic/models/auth_rules/v2_draft_response.rbs index 8c8ec196..d4bb67f2 100644 --- a/sig/lithic/models/auth_rules/v2_draft_response.rbs +++ b/sig/lithic/models/auth_rules/v2_draft_response.rbs @@ -199,6 +199,7 @@ module Lithic | :PIN_STATUS | :WALLET_TYPE | :TRANSACTION_INITIATOR + | :ADDRESS_MATCH module Attribute extend Lithic::Internal::Type::Enum @@ -221,6 +222,7 @@ module Lithic PIN_STATUS: :PIN_STATUS WALLET_TYPE: :WALLET_TYPE TRANSACTION_INITIATOR: :TRANSACTION_INITIATOR + ADDRESS_MATCH: :ADDRESS_MATCH def self?.values: -> ::Array[Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute] end @@ -390,6 +392,7 @@ module Lithic | :PIN_STATUS | :WALLET_TYPE | :TRANSACTION_INITIATOR + | :ADDRESS_MATCH module Attribute extend Lithic::Internal::Type::Enum @@ -412,6 +415,7 @@ module Lithic PIN_STATUS: :PIN_STATUS WALLET_TYPE: :WALLET_TYPE TRANSACTION_INITIATOR: :TRANSACTION_INITIATOR + ADDRESS_MATCH: :ADDRESS_MATCH def self?.values: -> ::Array[Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute] end diff --git a/sig/lithic/models/auth_rules/v2_list_response.rbs b/sig/lithic/models/auth_rules/v2_list_response.rbs index 2d4ce42c..4276ea02 100644 --- a/sig/lithic/models/auth_rules/v2_list_response.rbs +++ b/sig/lithic/models/auth_rules/v2_list_response.rbs @@ -199,6 +199,7 @@ module Lithic | :PIN_STATUS | :WALLET_TYPE | :TRANSACTION_INITIATOR + | :ADDRESS_MATCH module Attribute extend Lithic::Internal::Type::Enum @@ -221,6 +222,7 @@ module Lithic PIN_STATUS: :PIN_STATUS WALLET_TYPE: :WALLET_TYPE TRANSACTION_INITIATOR: :TRANSACTION_INITIATOR + ADDRESS_MATCH: :ADDRESS_MATCH def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute] end @@ -390,6 +392,7 @@ module Lithic | :PIN_STATUS | :WALLET_TYPE | :TRANSACTION_INITIATOR + | :ADDRESS_MATCH module Attribute extend Lithic::Internal::Type::Enum @@ -412,6 +415,7 @@ module Lithic PIN_STATUS: :PIN_STATUS WALLET_TYPE: :WALLET_TYPE TRANSACTION_INITIATOR: :TRANSACTION_INITIATOR + ADDRESS_MATCH: :ADDRESS_MATCH def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute] end diff --git a/sig/lithic/models/auth_rules/v2_promote_response.rbs b/sig/lithic/models/auth_rules/v2_promote_response.rbs index a09ff189..3f30ce96 100644 --- a/sig/lithic/models/auth_rules/v2_promote_response.rbs +++ b/sig/lithic/models/auth_rules/v2_promote_response.rbs @@ -199,6 +199,7 @@ module Lithic | :PIN_STATUS | :WALLET_TYPE | :TRANSACTION_INITIATOR + | :ADDRESS_MATCH module Attribute extend Lithic::Internal::Type::Enum @@ -221,6 +222,7 @@ module Lithic PIN_STATUS: :PIN_STATUS WALLET_TYPE: :WALLET_TYPE TRANSACTION_INITIATOR: :TRANSACTION_INITIATOR + ADDRESS_MATCH: :ADDRESS_MATCH def self?.values: -> ::Array[Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute] end @@ -390,6 +392,7 @@ module Lithic | :PIN_STATUS | :WALLET_TYPE | :TRANSACTION_INITIATOR + | :ADDRESS_MATCH module Attribute extend Lithic::Internal::Type::Enum @@ -412,6 +415,7 @@ module Lithic PIN_STATUS: :PIN_STATUS WALLET_TYPE: :WALLET_TYPE TRANSACTION_INITIATOR: :TRANSACTION_INITIATOR + ADDRESS_MATCH: :ADDRESS_MATCH def self?.values: -> ::Array[Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute] end diff --git a/sig/lithic/models/auth_rules/v2_report_params.rbs b/sig/lithic/models/auth_rules/v2_report_params.rbs deleted file mode 100644 index 57347094..00000000 --- a/sig/lithic/models/auth_rules/v2_report_params.rbs +++ /dev/null @@ -1,16 +0,0 @@ -module Lithic - module Models - module AuthRules - type v2_report_params = { } & Lithic::Internal::Type::request_parameters - - class V2ReportParams < Lithic::Internal::Type::BaseModel - extend Lithic::Internal::Type::RequestParameters::Converter - include Lithic::Internal::Type::RequestParameters - - def initialize: (?request_options: Lithic::request_opts) -> void - - def to_hash: -> { request_options: Lithic::RequestOptions } - end - end - end -end diff --git a/sig/lithic/models/auth_rules/v2_report_response.rbs b/sig/lithic/models/auth_rules/v2_report_response.rbs deleted file mode 100644 index 83c72200..00000000 --- a/sig/lithic/models/auth_rules/v2_report_response.rbs +++ /dev/null @@ -1,17 +0,0 @@ -module Lithic - module Models - module AuthRules - type v2_report_response = { report_token: String } - - class V2ReportResponse < Lithic::Internal::Type::BaseModel - attr_reader report_token: String? - - def report_token=: (String) -> String - - def initialize: (?report_token: String) -> void - - def to_hash: -> { report_token: String } - end - end - end -end diff --git a/sig/lithic/models/auth_rules/v2_retrieve_response.rbs b/sig/lithic/models/auth_rules/v2_retrieve_response.rbs index 1e0fbb10..2d674ffa 100644 --- a/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +++ b/sig/lithic/models/auth_rules/v2_retrieve_response.rbs @@ -199,6 +199,7 @@ module Lithic | :PIN_STATUS | :WALLET_TYPE | :TRANSACTION_INITIATOR + | :ADDRESS_MATCH module Attribute extend Lithic::Internal::Type::Enum @@ -221,6 +222,7 @@ module Lithic PIN_STATUS: :PIN_STATUS WALLET_TYPE: :WALLET_TYPE TRANSACTION_INITIATOR: :TRANSACTION_INITIATOR + ADDRESS_MATCH: :ADDRESS_MATCH def self?.values: -> ::Array[Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute] end @@ -390,6 +392,7 @@ module Lithic | :PIN_STATUS | :WALLET_TYPE | :TRANSACTION_INITIATOR + | :ADDRESS_MATCH module Attribute extend Lithic::Internal::Type::Enum @@ -412,6 +415,7 @@ module Lithic PIN_STATUS: :PIN_STATUS WALLET_TYPE: :WALLET_TYPE TRANSACTION_INITIATOR: :TRANSACTION_INITIATOR + ADDRESS_MATCH: :ADDRESS_MATCH def self?.values: -> ::Array[Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute] end diff --git a/sig/lithic/models/auth_rules/v2_update_response.rbs b/sig/lithic/models/auth_rules/v2_update_response.rbs index fe7ccf1b..05d9a33f 100644 --- a/sig/lithic/models/auth_rules/v2_update_response.rbs +++ b/sig/lithic/models/auth_rules/v2_update_response.rbs @@ -199,6 +199,7 @@ module Lithic | :PIN_STATUS | :WALLET_TYPE | :TRANSACTION_INITIATOR + | :ADDRESS_MATCH module Attribute extend Lithic::Internal::Type::Enum @@ -221,6 +222,7 @@ module Lithic PIN_STATUS: :PIN_STATUS WALLET_TYPE: :WALLET_TYPE TRANSACTION_INITIATOR: :TRANSACTION_INITIATOR + ADDRESS_MATCH: :ADDRESS_MATCH def self?.values: -> ::Array[Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute] end @@ -390,6 +392,7 @@ module Lithic | :PIN_STATUS | :WALLET_TYPE | :TRANSACTION_INITIATOR + | :ADDRESS_MATCH module Attribute extend Lithic::Internal::Type::Enum @@ -412,6 +415,7 @@ module Lithic PIN_STATUS: :PIN_STATUS WALLET_TYPE: :WALLET_TYPE TRANSACTION_INITIATOR: :TRANSACTION_INITIATOR + ADDRESS_MATCH: :ADDRESS_MATCH def self?.values: -> ::Array[Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::attribute] end diff --git a/sig/lithic/models/book_transfer_response.rbs b/sig/lithic/models/book_transfer_response.rbs index 657c6819..acb5d296 100644 --- a/sig/lithic/models/book_transfer_response.rbs +++ b/sig/lithic/models/book_transfer_response.rbs @@ -7,16 +7,17 @@ module Lithic created: Time, currency: String, events: ::Array[Lithic::BookTransferResponse::Event], - external_id: String?, - external_resource: Lithic::ExternalResource?, + family: :TRANSFER, from_financial_account_token: String, pending_amount: Integer, result: Lithic::Models::BookTransferResponse::result, settled_amount: Integer, status: Lithic::Models::BookTransferResponse::status, to_financial_account_token: String, - transaction_series: Lithic::BookTransferResponse::TransactionSeries?, - updated: Time + updated: Time, + external_id: String?, + external_resource: Lithic::ExternalResource?, + transaction_series: Lithic::BookTransferResponse::TransactionSeries? } class BookTransferResponse < Lithic::Internal::Type::BaseModel @@ -30,9 +31,7 @@ module Lithic attr_accessor events: ::Array[Lithic::BookTransferResponse::Event] - attr_accessor external_id: String? - - attr_accessor external_resource: Lithic::ExternalResource? + attr_accessor family: :TRANSFER attr_accessor from_financial_account_token: String @@ -46,26 +45,31 @@ module Lithic attr_accessor to_financial_account_token: String - attr_accessor transaction_series: Lithic::BookTransferResponse::TransactionSeries? - attr_accessor updated: Time + attr_accessor external_id: String? + + attr_accessor external_resource: Lithic::ExternalResource? + + attr_accessor transaction_series: Lithic::BookTransferResponse::TransactionSeries? + def initialize: ( token: String, category: Lithic::Models::BookTransferResponse::category, created: Time, currency: String, events: ::Array[Lithic::BookTransferResponse::Event], - external_id: String?, - external_resource: Lithic::ExternalResource?, from_financial_account_token: String, pending_amount: Integer, result: Lithic::Models::BookTransferResponse::result, settled_amount: Integer, status: Lithic::Models::BookTransferResponse::status, to_financial_account_token: String, - transaction_series: Lithic::BookTransferResponse::TransactionSeries?, - updated: Time + updated: Time, + ?external_id: String?, + ?external_resource: Lithic::ExternalResource?, + ?transaction_series: Lithic::BookTransferResponse::TransactionSeries?, + ?family: :TRANSFER ) -> void def to_hash: -> { @@ -74,16 +78,17 @@ module Lithic created: Time, currency: String, events: ::Array[Lithic::BookTransferResponse::Event], - external_id: String?, - external_resource: Lithic::ExternalResource?, + family: :TRANSFER, from_financial_account_token: String, pending_amount: Integer, result: Lithic::Models::BookTransferResponse::result, settled_amount: Integer, status: Lithic::Models::BookTransferResponse::status, to_financial_account_token: String, - transaction_series: Lithic::BookTransferResponse::TransactionSeries?, - updated: Time + updated: Time, + external_id: String?, + external_resource: Lithic::ExternalResource?, + transaction_series: Lithic::BookTransferResponse::TransactionSeries? } type category = @@ -277,14 +282,16 @@ module Lithic def self?.values: -> ::Array[Lithic::Models::BookTransferResponse::result] end - type status = :DECLINED | :REVERSED | :SETTLED + type status = :PENDING | :SETTLED | :DECLINED | :REVERSED | :CANCELED module Status extend Lithic::Internal::Type::Enum + PENDING: :PENDING + SETTLED: :SETTLED DECLINED: :DECLINED REVERSED: :REVERSED - SETTLED: :SETTLED + CANCELED: :CANCELED def self?.values: -> ::Array[Lithic::Models::BookTransferResponse::status] end diff --git a/sig/lithic/models/card_provision_response.rbs b/sig/lithic/models/card_provision_response.rbs index caf324ea..1726fa1c 100644 --- a/sig/lithic/models/card_provision_response.rbs +++ b/sig/lithic/models/card_provision_response.rbs @@ -1,15 +1,32 @@ module Lithic module Models - type card_provision_response = { provisioning_payload: String } + type card_provision_response = + { + provisioning_payload: Lithic::Models::CardProvisionResponse::provisioning_payload + } class CardProvisionResponse < Lithic::Internal::Type::BaseModel - attr_reader provisioning_payload: String? + attr_reader provisioning_payload: Lithic::Models::CardProvisionResponse::provisioning_payload? - def provisioning_payload=: (String) -> String + def provisioning_payload=: ( + Lithic::Models::CardProvisionResponse::provisioning_payload + ) -> Lithic::Models::CardProvisionResponse::provisioning_payload - def initialize: (?provisioning_payload: String) -> void + def initialize: ( + ?provisioning_payload: Lithic::Models::CardProvisionResponse::provisioning_payload + ) -> void - def to_hash: -> { provisioning_payload: String } + def to_hash: -> { + provisioning_payload: Lithic::Models::CardProvisionResponse::provisioning_payload + } + + type provisioning_payload = String | Lithic::ProvisionResponse + + module ProvisioningPayload + extend Lithic::Internal::Type::Union + + def self?.variants: -> ::Array[Lithic::Models::CardProvisionResponse::provisioning_payload] + end end end end diff --git a/sig/lithic/models/event.rbs b/sig/lithic/models/event.rbs index 79014aef..3f80f5d6 100644 --- a/sig/lithic/models/event.rbs +++ b/sig/lithic/models/event.rbs @@ -35,7 +35,6 @@ module Lithic :"account_holder.created" | :"account_holder.updated" | :"account_holder.verification" - | :"auth_rules.performance_report.created" | :"balance.updated" | :"book_transfer_transaction.created" | :"card.created" @@ -86,7 +85,6 @@ module Lithic ACCOUNT_HOLDER_CREATED: :"account_holder.created" ACCOUNT_HOLDER_UPDATED: :"account_holder.updated" ACCOUNT_HOLDER_VERIFICATION: :"account_holder.verification" - AUTH_RULES_PERFORMANCE_REPORT_CREATED: :"auth_rules.performance_report.created" BALANCE_UPDATED: :"balance.updated" BOOK_TRANSFER_TRANSACTION_CREATED: :"book_transfer_transaction.created" CARD_CREATED: :"card.created" diff --git a/sig/lithic/models/event_list_params.rbs b/sig/lithic/models/event_list_params.rbs index d26839f7..8e566d6f 100644 --- a/sig/lithic/models/event_list_params.rbs +++ b/sig/lithic/models/event_list_params.rbs @@ -72,7 +72,6 @@ module Lithic :"account_holder.created" | :"account_holder.updated" | :"account_holder.verification" - | :"auth_rules.performance_report.created" | :"balance.updated" | :"book_transfer_transaction.created" | :"card.created" @@ -123,7 +122,6 @@ module Lithic ACCOUNT_HOLDER_CREATED: :"account_holder.created" ACCOUNT_HOLDER_UPDATED: :"account_holder.updated" ACCOUNT_HOLDER_VERIFICATION: :"account_holder.verification" - AUTH_RULES_PERFORMANCE_REPORT_CREATED: :"auth_rules.performance_report.created" BALANCE_UPDATED: :"balance.updated" BOOK_TRANSFER_TRANSACTION_CREATED: :"book_transfer_transaction.created" CARD_CREATED: :"card.created" diff --git a/sig/lithic/models/event_subscription.rbs b/sig/lithic/models/event_subscription.rbs index eb5d0465..71089a52 100644 --- a/sig/lithic/models/event_subscription.rbs +++ b/sig/lithic/models/event_subscription.rbs @@ -40,7 +40,6 @@ module Lithic :"account_holder.created" | :"account_holder.updated" | :"account_holder.verification" - | :"auth_rules.performance_report.created" | :"balance.updated" | :"book_transfer_transaction.created" | :"card.created" @@ -91,7 +90,6 @@ module Lithic ACCOUNT_HOLDER_CREATED: :"account_holder.created" ACCOUNT_HOLDER_UPDATED: :"account_holder.updated" ACCOUNT_HOLDER_VERIFICATION: :"account_holder.verification" - AUTH_RULES_PERFORMANCE_REPORT_CREATED: :"auth_rules.performance_report.created" BALANCE_UPDATED: :"balance.updated" BOOK_TRANSFER_TRANSACTION_CREATED: :"book_transfer_transaction.created" CARD_CREATED: :"card.created" diff --git a/sig/lithic/models/events/subscription_create_params.rbs b/sig/lithic/models/events/subscription_create_params.rbs index 38acf0ae..7ff8d376 100644 --- a/sig/lithic/models/events/subscription_create_params.rbs +++ b/sig/lithic/models/events/subscription_create_params.rbs @@ -50,7 +50,6 @@ module Lithic :"account_holder.created" | :"account_holder.updated" | :"account_holder.verification" - | :"auth_rules.performance_report.created" | :"balance.updated" | :"book_transfer_transaction.created" | :"card.created" @@ -101,7 +100,6 @@ module Lithic ACCOUNT_HOLDER_CREATED: :"account_holder.created" ACCOUNT_HOLDER_UPDATED: :"account_holder.updated" ACCOUNT_HOLDER_VERIFICATION: :"account_holder.verification" - AUTH_RULES_PERFORMANCE_REPORT_CREATED: :"auth_rules.performance_report.created" BALANCE_UPDATED: :"balance.updated" BOOK_TRANSFER_TRANSACTION_CREATED: :"book_transfer_transaction.created" CARD_CREATED: :"card.created" diff --git a/sig/lithic/models/events/subscription_send_simulated_example_params.rbs b/sig/lithic/models/events/subscription_send_simulated_example_params.rbs index 05a8918b..7cc9b59a 100644 --- a/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +++ b/sig/lithic/models/events/subscription_send_simulated_example_params.rbs @@ -31,7 +31,6 @@ module Lithic :"account_holder.created" | :"account_holder.updated" | :"account_holder.verification" - | :"auth_rules.performance_report.created" | :"balance.updated" | :"book_transfer_transaction.created" | :"card.created" @@ -82,7 +81,6 @@ module Lithic ACCOUNT_HOLDER_CREATED: :"account_holder.created" ACCOUNT_HOLDER_UPDATED: :"account_holder.updated" ACCOUNT_HOLDER_VERIFICATION: :"account_holder.verification" - AUTH_RULES_PERFORMANCE_REPORT_CREATED: :"auth_rules.performance_report.created" BALANCE_UPDATED: :"balance.updated" BOOK_TRANSFER_TRANSACTION_CREATED: :"book_transfer_transaction.created" CARD_CREATED: :"card.created" diff --git a/sig/lithic/models/events/subscription_update_params.rbs b/sig/lithic/models/events/subscription_update_params.rbs index 0feee23c..23d458d8 100644 --- a/sig/lithic/models/events/subscription_update_params.rbs +++ b/sig/lithic/models/events/subscription_update_params.rbs @@ -50,7 +50,6 @@ module Lithic :"account_holder.created" | :"account_holder.updated" | :"account_holder.verification" - | :"auth_rules.performance_report.created" | :"balance.updated" | :"book_transfer_transaction.created" | :"card.created" @@ -101,7 +100,6 @@ module Lithic ACCOUNT_HOLDER_CREATED: :"account_holder.created" ACCOUNT_HOLDER_UPDATED: :"account_holder.updated" ACCOUNT_HOLDER_VERIFICATION: :"account_holder.verification" - AUTH_RULES_PERFORMANCE_REPORT_CREATED: :"auth_rules.performance_report.created" BALANCE_UPDATED: :"balance.updated" BOOK_TRANSFER_TRANSACTION_CREATED: :"book_transfer_transaction.created" CARD_CREATED: :"card.created" diff --git a/sig/lithic/models/external_bank_account_create_params.rbs b/sig/lithic/models/external_bank_account_create_params.rbs index 50a02b47..d5b22e30 100644 --- a/sig/lithic/models/external_bank_account_create_params.rbs +++ b/sig/lithic/models/external_bank_account_create_params.rbs @@ -18,8 +18,7 @@ module Lithic doing_business_as: String, name: String, user_defined_id: String, - verification_enforcement: bool, - processor_token: String + verification_enforcement: bool } & Lithic::Internal::Type::request_parameters @@ -79,8 +78,6 @@ module Lithic def verification_enforcement=: (bool) -> bool - attr_accessor processor_token: String - def initialize: ( account_number: String, country: String, @@ -91,7 +88,6 @@ module Lithic routing_number: String, type: Lithic::Models::ExternalBankAccountCreateParams::type_, verification_method: Lithic::Models::ExternalBankAccountCreateParams::verification_method, - processor_token: String, ?account_token: String, ?address: Lithic::ExternalBankAccountAddress, ?company_id: String, @@ -121,7 +117,6 @@ module Lithic name: String, user_defined_id: String, verification_enforcement: bool, - processor_token: String, request_options: Lithic::RequestOptions } diff --git a/sig/lithic/models/external_payment.rbs b/sig/lithic/models/external_payment.rbs index 5a997868..55a0173c 100644 --- a/sig/lithic/models/external_payment.rbs +++ b/sig/lithic/models/external_payment.rbs @@ -4,12 +4,12 @@ module Lithic { token: String, created: Time, - family: Lithic::Models::ExternalPayment::family, status: Lithic::Models::ExternalPayment::status, updated: Time, category: Lithic::Models::ExternalPayment::category, currency: String, events: ::Array[Lithic::ExternalPayment::Event], + family: Lithic::Models::ExternalPayment::family, financial_account_token: String, payment_type: Lithic::Models::ExternalPayment::payment_type, pending_amount: Integer, @@ -23,8 +23,6 @@ module Lithic attr_accessor created: Time - attr_accessor family: Lithic::Models::ExternalPayment::family - attr_accessor status: Lithic::Models::ExternalPayment::status attr_accessor updated: Time @@ -45,6 +43,12 @@ module Lithic ::Array[Lithic::ExternalPayment::Event] ) -> ::Array[Lithic::ExternalPayment::Event] + attr_reader family: Lithic::Models::ExternalPayment::family? + + def family=: ( + Lithic::Models::ExternalPayment::family + ) -> Lithic::Models::ExternalPayment::family + attr_reader financial_account_token: String? def financial_account_token=: (String) -> String @@ -76,12 +80,12 @@ module Lithic def initialize: ( token: String, created: Time, - family: Lithic::Models::ExternalPayment::family, status: Lithic::Models::ExternalPayment::status, updated: Time, ?category: Lithic::Models::ExternalPayment::category, ?currency: String, ?events: ::Array[Lithic::ExternalPayment::Event], + ?family: Lithic::Models::ExternalPayment::family, ?financial_account_token: String, ?payment_type: Lithic::Models::ExternalPayment::payment_type, ?pending_amount: Integer, @@ -93,12 +97,12 @@ module Lithic def to_hash: -> { token: String, created: Time, - family: Lithic::Models::ExternalPayment::family, status: Lithic::Models::ExternalPayment::status, updated: Time, category: Lithic::Models::ExternalPayment::category, currency: String, events: ::Array[Lithic::ExternalPayment::Event], + family: Lithic::Models::ExternalPayment::family, financial_account_token: String, payment_type: Lithic::Models::ExternalPayment::payment_type, pending_amount: Integer, @@ -107,27 +111,6 @@ module Lithic user_defined_id: String } - type family = - :CARD - | :PAYMENT - | :TRANSFER - | :INTERNAL - | :EXTERNAL_PAYMENT - | :MANAGEMENT_OPERATION - - module Family - extend Lithic::Internal::Type::Enum - - CARD: :CARD - PAYMENT: :PAYMENT - TRANSFER: :TRANSFER - INTERNAL: :INTERNAL - EXTERNAL_PAYMENT: :EXTERNAL_PAYMENT - MANAGEMENT_OPERATION: :MANAGEMENT_OPERATION - - def self?.values: -> ::Array[Lithic::Models::ExternalPayment::family] - end - type status = :PENDING | :SETTLED | :DECLINED | :REVERSED | :CANCELED module Status @@ -279,6 +262,16 @@ module Lithic end end + type family = :EXTERNAL_PAYMENT + + module Family + extend Lithic::Internal::Type::Enum + + EXTERNAL_PAYMENT: :EXTERNAL_PAYMENT + + def self?.values: -> ::Array[Lithic::Models::ExternalPayment::family] + end + type payment_type = :DEPOSIT | :WITHDRAWAL module PaymentType diff --git a/sig/lithic/models/financial_account.rbs b/sig/lithic/models/financial_account.rbs index eadf2629..8d50516b 100644 --- a/sig/lithic/models/financial_account.rbs +++ b/sig/lithic/models/financial_account.rbs @@ -73,18 +73,18 @@ module Lithic type credit_configuration = { - charged_off_reason: Lithic::Models::FinancialAccount::CreditConfiguration::charged_off_reason?, + auto_collection_configuration: Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration, credit_limit: Integer?, credit_product_token: String?, external_bank_account_token: String?, - financial_account_state: Lithic::Models::FinancialAccount::CreditConfiguration::financial_account_state?, - is_spend_blocked: bool, tier: String?, - auto_collection_configuration: Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration + charged_off_reason: Lithic::Models::FinancialAccount::CreditConfiguration::charged_off_reason?, + financial_account_state: Lithic::Models::FinancialAccount::CreditConfiguration::financial_account_state?, + is_spend_blocked: bool } class CreditConfiguration < Lithic::Internal::Type::BaseModel - attr_accessor charged_off_reason: Lithic::Models::FinancialAccount::CreditConfiguration::charged_off_reason? + attr_accessor auto_collection_configuration: Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration attr_accessor credit_limit: Integer? @@ -92,40 +92,48 @@ module Lithic attr_accessor external_bank_account_token: String? - attr_accessor financial_account_state: Lithic::Models::FinancialAccount::CreditConfiguration::financial_account_state? + attr_accessor tier: String? - attr_accessor is_spend_blocked: bool + attr_accessor charged_off_reason: Lithic::Models::FinancialAccount::CreditConfiguration::charged_off_reason? - attr_accessor tier: String? + attr_accessor financial_account_state: Lithic::Models::FinancialAccount::CreditConfiguration::financial_account_state? - attr_reader auto_collection_configuration: Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration? + attr_reader is_spend_blocked: bool? - def auto_collection_configuration=: ( - Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration - ) -> Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration + def is_spend_blocked=: (bool) -> bool def initialize: ( - charged_off_reason: Lithic::Models::FinancialAccount::CreditConfiguration::charged_off_reason?, + auto_collection_configuration: Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration, credit_limit: Integer?, credit_product_token: String?, external_bank_account_token: String?, - financial_account_state: Lithic::Models::FinancialAccount::CreditConfiguration::financial_account_state?, - is_spend_blocked: bool, tier: String?, - ?auto_collection_configuration: Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration + ?charged_off_reason: Lithic::Models::FinancialAccount::CreditConfiguration::charged_off_reason?, + ?financial_account_state: Lithic::Models::FinancialAccount::CreditConfiguration::financial_account_state?, + ?is_spend_blocked: bool ) -> void def to_hash: -> { - charged_off_reason: Lithic::Models::FinancialAccount::CreditConfiguration::charged_off_reason?, + auto_collection_configuration: Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration, credit_limit: Integer?, credit_product_token: String?, external_bank_account_token: String?, - financial_account_state: Lithic::Models::FinancialAccount::CreditConfiguration::financial_account_state?, - is_spend_blocked: bool, tier: String?, - auto_collection_configuration: Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration + charged_off_reason: Lithic::Models::FinancialAccount::CreditConfiguration::charged_off_reason?, + financial_account_state: Lithic::Models::FinancialAccount::CreditConfiguration::financial_account_state?, + is_spend_blocked: bool } + type auto_collection_configuration = { auto_collection_enabled: bool } + + class AutoCollectionConfiguration < Lithic::Internal::Type::BaseModel + attr_accessor auto_collection_enabled: bool + + def initialize: (auto_collection_enabled: bool) -> void + + def to_hash: -> { auto_collection_enabled: bool } + end + type charged_off_reason = :DELINQUENT | :FRAUD module ChargedOffReason @@ -150,16 +158,6 @@ module Lithic def self?.values: -> ::Array[Lithic::Models::FinancialAccount::CreditConfiguration::financial_account_state] end - - type auto_collection_configuration = { auto_collection_enabled: bool } - - class AutoCollectionConfiguration < Lithic::Internal::Type::BaseModel - attr_accessor auto_collection_enabled: bool - - def initialize: (auto_collection_enabled: bool) -> void - - def to_hash: -> { auto_collection_enabled: bool } - end end type status = :OPEN | :CLOSED | :SUSPENDED | :PENDING diff --git a/sig/lithic/models/financial_accounts/financial_account_credit_config.rbs b/sig/lithic/models/financial_accounts/financial_account_credit_config.rbs index cbab78ba..c52344f1 100644 --- a/sig/lithic/models/financial_accounts/financial_account_credit_config.rbs +++ b/sig/lithic/models/financial_accounts/financial_account_credit_config.rbs @@ -7,13 +7,13 @@ module Lithic { account_token: String, auto_collection_configuration: Lithic::FinancialAccounts::FinancialAccountCreditConfig::AutoCollectionConfiguration, - charged_off_reason: Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::charged_off_reason?, credit_limit: Integer?, credit_product_token: String?, external_bank_account_token: String?, + tier: String?, + charged_off_reason: Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::charged_off_reason?, financial_account_state: Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::financial_account_state, - is_spend_blocked: bool, - tier: String? + is_spend_blocked: bool } class FinancialAccountCreditConfig < Lithic::Internal::Type::BaseModel @@ -21,42 +21,48 @@ module Lithic attr_accessor auto_collection_configuration: Lithic::FinancialAccounts::FinancialAccountCreditConfig::AutoCollectionConfiguration - attr_accessor charged_off_reason: Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::charged_off_reason? - attr_accessor credit_limit: Integer? attr_accessor credit_product_token: String? attr_accessor external_bank_account_token: String? - attr_accessor financial_account_state: Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::financial_account_state + attr_accessor tier: String? - attr_accessor is_spend_blocked: bool + attr_accessor charged_off_reason: Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::charged_off_reason? - attr_accessor tier: String? + attr_reader financial_account_state: Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::financial_account_state? + + def financial_account_state=: ( + Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::financial_account_state + ) -> Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::financial_account_state + + attr_reader is_spend_blocked: bool? + + def is_spend_blocked=: (bool) -> bool def initialize: ( account_token: String, auto_collection_configuration: Lithic::FinancialAccounts::FinancialAccountCreditConfig::AutoCollectionConfiguration, - charged_off_reason: Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::charged_off_reason?, credit_limit: Integer?, credit_product_token: String?, external_bank_account_token: String?, - financial_account_state: Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::financial_account_state, - is_spend_blocked: bool, - tier: String? + tier: String?, + ?charged_off_reason: Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::charged_off_reason?, + ?financial_account_state: Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::financial_account_state, + ?is_spend_blocked: bool ) -> void def to_hash: -> { account_token: String, auto_collection_configuration: Lithic::FinancialAccounts::FinancialAccountCreditConfig::AutoCollectionConfiguration, - charged_off_reason: Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::charged_off_reason?, credit_limit: Integer?, credit_product_token: String?, external_bank_account_token: String?, + tier: String?, + charged_off_reason: Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::charged_off_reason?, financial_account_state: Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::financial_account_state, - is_spend_blocked: bool, - tier: String? + is_spend_blocked: bool } type auto_collection_configuration = { auto_collection_enabled: bool } diff --git a/sig/lithic/models/management_operation_transaction.rbs b/sig/lithic/models/management_operation_transaction.rbs index b9292396..cfed009d 100644 --- a/sig/lithic/models/management_operation_transaction.rbs +++ b/sig/lithic/models/management_operation_transaction.rbs @@ -4,7 +4,6 @@ module Lithic { token: String, created: Time, - family: Lithic::Models::ManagementOperationTransaction::family, status: Lithic::Models::ManagementOperationTransaction::status, updated: Time, category: Lithic::Models::ManagementOperationTransaction::category, @@ -12,6 +11,7 @@ module Lithic direction: Lithic::Models::ManagementOperationTransaction::direction, events: ::Array[Lithic::ManagementOperationTransaction::Event], external_resource: Lithic::ExternalResource?, + family: Lithic::Models::ManagementOperationTransaction::family, financial_account_token: String, pending_amount: Integer, result: Lithic::Models::ManagementOperationTransaction::result, @@ -25,8 +25,6 @@ module Lithic attr_accessor created: Time - attr_accessor family: Lithic::Models::ManagementOperationTransaction::family - attr_accessor status: Lithic::Models::ManagementOperationTransaction::status attr_accessor updated: Time @@ -55,6 +53,12 @@ module Lithic attr_accessor external_resource: Lithic::ExternalResource? + attr_reader family: Lithic::Models::ManagementOperationTransaction::family? + + def family=: ( + Lithic::Models::ManagementOperationTransaction::family + ) -> Lithic::Models::ManagementOperationTransaction::family + attr_reader financial_account_token: String? def financial_account_token=: (String) -> String @@ -82,7 +86,6 @@ module Lithic def initialize: ( token: String, created: Time, - family: Lithic::Models::ManagementOperationTransaction::family, status: Lithic::Models::ManagementOperationTransaction::status, updated: Time, ?category: Lithic::Models::ManagementOperationTransaction::category, @@ -90,6 +93,7 @@ module Lithic ?direction: Lithic::Models::ManagementOperationTransaction::direction, ?events: ::Array[Lithic::ManagementOperationTransaction::Event], ?external_resource: Lithic::ExternalResource?, + ?family: Lithic::Models::ManagementOperationTransaction::family, ?financial_account_token: String, ?pending_amount: Integer, ?result: Lithic::Models::ManagementOperationTransaction::result, @@ -101,7 +105,6 @@ module Lithic def to_hash: -> { token: String, created: Time, - family: Lithic::Models::ManagementOperationTransaction::family, status: Lithic::Models::ManagementOperationTransaction::status, updated: Time, category: Lithic::Models::ManagementOperationTransaction::category, @@ -109,6 +112,7 @@ module Lithic direction: Lithic::Models::ManagementOperationTransaction::direction, events: ::Array[Lithic::ManagementOperationTransaction::Event], external_resource: Lithic::ExternalResource?, + family: Lithic::Models::ManagementOperationTransaction::family, financial_account_token: String, pending_amount: Integer, result: Lithic::Models::ManagementOperationTransaction::result, @@ -117,27 +121,6 @@ module Lithic user_defined_id: String } - type family = - :CARD - | :PAYMENT - | :TRANSFER - | :INTERNAL - | :EXTERNAL_PAYMENT - | :MANAGEMENT_OPERATION - - module Family - extend Lithic::Internal::Type::Enum - - CARD: :CARD - PAYMENT: :PAYMENT - TRANSFER: :TRANSFER - INTERNAL: :INTERNAL - EXTERNAL_PAYMENT: :EXTERNAL_PAYMENT - MANAGEMENT_OPERATION: :MANAGEMENT_OPERATION - - def self?.values: -> ::Array[Lithic::Models::ManagementOperationTransaction::family] - end - type status = :PENDING | :SETTLED | :DECLINED | :REVERSED | :CANCELED module Status @@ -310,6 +293,16 @@ module Lithic end end + type family = :MANAGEMENT_OPERATION + + module Family + extend Lithic::Internal::Type::Enum + + MANAGEMENT_OPERATION: :MANAGEMENT_OPERATION + + def self?.values: -> ::Array[Lithic::Models::ManagementOperationTransaction::family] + end + type result = :APPROVED | :DECLINED module Result diff --git a/sig/lithic/models/payment.rbs b/sig/lithic/models/payment.rbs index 63444974..b67079f2 100644 --- a/sig/lithic/models/payment.rbs +++ b/sig/lithic/models/payment.rbs @@ -5,14 +5,13 @@ module Lithic token: String, category: Lithic::Models::Payment::category, created: Time, - currency: String, descriptor: String, direction: Lithic::Models::Payment::direction, events: ::Array[Lithic::Payment::Event], - external_bank_account_token: String?, + family: :PAYMENT, financial_account_token: String, method_: Lithic::Models::Payment::method_, - method_attributes: Lithic::Payment::MethodAttributes, + method_attributes: Lithic::Models::Payment::method_attributes, pending_amount: Integer, related_account_tokens: Lithic::Payment::RelatedAccountTokens, result: Lithic::Models::Payment::result, @@ -20,9 +19,11 @@ module Lithic source: Lithic::Models::Payment::source, status: Lithic::Models::Payment::status, updated: Time, - user_defined_id: String?, - expected_release_date: Date, - type: Lithic::Models::Payment::type_ + currency: String, + expected_release_date: Date?, + external_bank_account_token: String?, + type: Lithic::Models::Payment::type_, + user_defined_id: String? } class Payment < Lithic::Internal::Type::BaseModel @@ -32,21 +33,19 @@ module Lithic attr_accessor created: Time - attr_accessor currency: String - attr_accessor descriptor: String attr_accessor direction: Lithic::Models::Payment::direction attr_accessor events: ::Array[Lithic::Payment::Event] - attr_accessor external_bank_account_token: String? + attr_accessor family: :PAYMENT attr_accessor financial_account_token: String attr_accessor method_: Lithic::Models::Payment::method_ - attr_accessor method_attributes: Lithic::Payment::MethodAttributes + attr_accessor method_attributes: Lithic::Models::Payment::method_attributes attr_accessor pending_amount: Integer @@ -62,11 +61,13 @@ module Lithic attr_accessor updated: Time - attr_accessor user_defined_id: String? + attr_reader currency: String? - attr_reader expected_release_date: Date? + def currency=: (String) -> String - def expected_release_date=: (Date) -> Date + attr_accessor expected_release_date: Date? + + attr_accessor external_bank_account_token: String? attr_reader type: Lithic::Models::Payment::type_? @@ -74,18 +75,18 @@ module Lithic Lithic::Models::Payment::type_ ) -> Lithic::Models::Payment::type_ + attr_accessor user_defined_id: String? + def initialize: ( token: String, category: Lithic::Models::Payment::category, created: Time, - currency: String, descriptor: String, direction: Lithic::Models::Payment::direction, events: ::Array[Lithic::Payment::Event], - external_bank_account_token: String?, financial_account_token: String, method_: Lithic::Models::Payment::method_, - method_attributes: Lithic::Payment::MethodAttributes, + method_attributes: Lithic::Models::Payment::method_attributes, pending_amount: Integer, related_account_tokens: Lithic::Payment::RelatedAccountTokens, result: Lithic::Models::Payment::result, @@ -93,23 +94,25 @@ module Lithic source: Lithic::Models::Payment::source, status: Lithic::Models::Payment::status, updated: Time, - user_defined_id: String?, - ?expected_release_date: Date, - ?type: Lithic::Models::Payment::type_ + ?currency: String, + ?expected_release_date: Date?, + ?external_bank_account_token: String?, + ?type: Lithic::Models::Payment::type_, + ?user_defined_id: String?, + ?family: :PAYMENT ) -> void def to_hash: -> { token: String, category: Lithic::Models::Payment::category, created: Time, - currency: String, descriptor: String, direction: Lithic::Models::Payment::direction, events: ::Array[Lithic::Payment::Event], - external_bank_account_token: String?, + family: :PAYMENT, financial_account_token: String, method_: Lithic::Models::Payment::method_, - method_attributes: Lithic::Payment::MethodAttributes, + method_attributes: Lithic::Models::Payment::method_attributes, pending_amount: Integer, related_account_tokens: Lithic::Payment::RelatedAccountTokens, result: Lithic::Models::Payment::result, @@ -117,17 +120,54 @@ module Lithic source: Lithic::Models::Payment::source, status: Lithic::Models::Payment::status, updated: Time, - user_defined_id: String?, - expected_release_date: Date, - type: Lithic::Models::Payment::type_ + currency: String, + expected_release_date: Date?, + external_bank_account_token: String?, + type: Lithic::Models::Payment::type_, + user_defined_id: String? } - type category = :ACH + type category = + :ACH + | :BALANCE_OR_FUNDING + | :FEE + | :REWARD + | :ADJUSTMENT + | :DERECOGNITION + | :DISPUTE + | :CARD + | :EXTERNAL_ACH + | :EXTERNAL_CHECK + | :EXTERNAL_TRANSFER + | :EXTERNAL_WIRE + | :MANAGEMENT_ADJUSTMENT + | :MANAGEMENT_DISPUTE + | :MANAGEMENT_FEE + | :MANAGEMENT_REWARD + | :MANAGEMENT_DISBURSEMENT + | :PROGRAM_FUNDING module Category extend Lithic::Internal::Type::Enum ACH: :ACH + BALANCE_OR_FUNDING: :BALANCE_OR_FUNDING + FEE: :FEE + REWARD: :REWARD + ADJUSTMENT: :ADJUSTMENT + DERECOGNITION: :DERECOGNITION + DISPUTE: :DISPUTE + CARD: :CARD + EXTERNAL_ACH: :EXTERNAL_ACH + EXTERNAL_CHECK: :EXTERNAL_CHECK + EXTERNAL_TRANSFER: :EXTERNAL_TRANSFER + EXTERNAL_WIRE: :EXTERNAL_WIRE + MANAGEMENT_ADJUSTMENT: :MANAGEMENT_ADJUSTMENT + MANAGEMENT_DISPUTE: :MANAGEMENT_DISPUTE + MANAGEMENT_FEE: :MANAGEMENT_FEE + MANAGEMENT_REWARD: :MANAGEMENT_REWARD + MANAGEMENT_DISBURSEMENT: :MANAGEMENT_DISBURSEMENT + PROGRAM_FUNDING: :PROGRAM_FUNDING def self?.values: -> ::Array[Lithic::Models::Payment::category] end @@ -252,74 +292,149 @@ module Lithic end end - type method_ = :ACH_NEXT_DAY | :ACH_SAME_DAY + type method_ = :ACH_NEXT_DAY | :ACH_SAME_DAY | :WIRE module Method extend Lithic::Internal::Type::Enum ACH_NEXT_DAY: :ACH_NEXT_DAY ACH_SAME_DAY: :ACH_SAME_DAY + WIRE: :WIRE def self?.values: -> ::Array[Lithic::Models::Payment::method_] end type method_attributes = - { - company_id: String?, - receipt_routing_number: String?, - retries: Integer?, - return_reason_code: String?, - sec_code: Lithic::Models::Payment::MethodAttributes::sec_code, - trace_numbers: ::Array[String?], - addenda: String? - } + Lithic::Payment::MethodAttributes::ACHMethodAttributes + | Lithic::Payment::MethodAttributes::WireMethodAttributes + + module MethodAttributes + extend Lithic::Internal::Type::Union + + type ach_method_attributes = + { + sec_code: Lithic::Models::Payment::MethodAttributes::ACHMethodAttributes::sec_code, + addenda: String?, + company_id: String?, + receipt_routing_number: String?, + retries: Integer?, + return_reason_code: String?, + trace_numbers: ::Array[String] + } + + class ACHMethodAttributes < Lithic::Internal::Type::BaseModel + attr_accessor sec_code: Lithic::Models::Payment::MethodAttributes::ACHMethodAttributes::sec_code + + attr_accessor addenda: String? + + attr_accessor company_id: String? + + attr_accessor receipt_routing_number: String? + + attr_accessor retries: Integer? + + attr_accessor return_reason_code: String? + + attr_reader trace_numbers: ::Array[String]? + + def trace_numbers=: (::Array[String]) -> ::Array[String] + + def initialize: ( + sec_code: Lithic::Models::Payment::MethodAttributes::ACHMethodAttributes::sec_code, + ?addenda: String?, + ?company_id: String?, + ?receipt_routing_number: String?, + ?retries: Integer?, + ?return_reason_code: String?, + ?trace_numbers: ::Array[String] + ) -> void + + def to_hash: -> { + sec_code: Lithic::Models::Payment::MethodAttributes::ACHMethodAttributes::sec_code, + addenda: String?, + company_id: String?, + receipt_routing_number: String?, + retries: Integer?, + return_reason_code: String?, + trace_numbers: ::Array[String] + } + + type sec_code = :CCD | :PPD | :WEB | :TEL | :CIE | :CTX + + module SecCode + extend Lithic::Internal::Type::Enum + + CCD: :CCD + PPD: :PPD + WEB: :WEB + TEL: :TEL + CIE: :CIE + CTX: :CTX + + def self?.values: -> ::Array[Lithic::Models::Payment::MethodAttributes::ACHMethodAttributes::sec_code] + end + end - class MethodAttributes < Lithic::Internal::Type::BaseModel - attr_accessor company_id: String? + type wire_method_attributes = + { + wire_network: Lithic::Models::Payment::MethodAttributes::WireMethodAttributes::wire_network, + creditor: Lithic::WirePartyDetails, + debtor: Lithic::WirePartyDetails, + message_id: String?, + remittance_information: String?, + wire_message_type: String + } - attr_accessor receipt_routing_number: String? + class WireMethodAttributes < Lithic::Internal::Type::BaseModel + attr_accessor wire_network: Lithic::Models::Payment::MethodAttributes::WireMethodAttributes::wire_network - attr_accessor retries: Integer? + attr_reader creditor: Lithic::WirePartyDetails? - attr_accessor return_reason_code: String? + def creditor=: (Lithic::WirePartyDetails) -> Lithic::WirePartyDetails - attr_accessor sec_code: Lithic::Models::Payment::MethodAttributes::sec_code + attr_reader debtor: Lithic::WirePartyDetails? - attr_accessor trace_numbers: ::Array[String?] + def debtor=: (Lithic::WirePartyDetails) -> Lithic::WirePartyDetails - attr_accessor addenda: String? + attr_accessor message_id: String? - def initialize: ( - company_id: String?, - receipt_routing_number: String?, - retries: Integer?, - return_reason_code: String?, - sec_code: Lithic::Models::Payment::MethodAttributes::sec_code, - trace_numbers: ::Array[String?], - ?addenda: String? - ) -> void + attr_accessor remittance_information: String? - def to_hash: -> { - company_id: String?, - receipt_routing_number: String?, - retries: Integer?, - return_reason_code: String?, - sec_code: Lithic::Models::Payment::MethodAttributes::sec_code, - trace_numbers: ::Array[String?], - addenda: String? - } + attr_reader wire_message_type: String? - type sec_code = :CCD | :PPD | :WEB + def wire_message_type=: (String) -> String - module SecCode - extend Lithic::Internal::Type::Enum + def initialize: ( + wire_network: Lithic::Models::Payment::MethodAttributes::WireMethodAttributes::wire_network, + ?creditor: Lithic::WirePartyDetails, + ?debtor: Lithic::WirePartyDetails, + ?message_id: String?, + ?remittance_information: String?, + ?wire_message_type: String + ) -> void - CCD: :CCD - PPD: :PPD - WEB: :WEB + def to_hash: -> { + wire_network: Lithic::Models::Payment::MethodAttributes::WireMethodAttributes::wire_network, + creditor: Lithic::WirePartyDetails, + debtor: Lithic::WirePartyDetails, + message_id: String?, + remittance_information: String?, + wire_message_type: String + } - def self?.values: -> ::Array[Lithic::Models::Payment::MethodAttributes::sec_code] + type wire_network = :FEDWIRE | :SWIFT + + module WireNetwork + extend Lithic::Internal::Type::Enum + + FEDWIRE: :FEDWIRE + SWIFT: :SWIFT + + def self?.values: -> ::Array[Lithic::Models::Payment::MethodAttributes::WireMethodAttributes::wire_network] + end end + + def self?.variants: -> ::Array[Lithic::Models::Payment::method_attributes] end type related_account_tokens = @@ -352,26 +467,28 @@ module Lithic def self?.values: -> ::Array[Lithic::Models::Payment::result] end - type source = :CUSTOMER | :LITHIC + type source = :LITHIC | :EXTERNAL | :CUSTOMER module Source extend Lithic::Internal::Type::Enum - CUSTOMER: :CUSTOMER LITHIC: :LITHIC + EXTERNAL: :EXTERNAL + CUSTOMER: :CUSTOMER def self?.values: -> ::Array[Lithic::Models::Payment::source] end - type status = :DECLINED | :PENDING | :RETURNED | :SETTLED + type status = :PENDING | :SETTLED | :DECLINED | :REVERSED | :CANCELED module Status extend Lithic::Internal::Type::Enum - DECLINED: :DECLINED PENDING: :PENDING - RETURNED: :RETURNED SETTLED: :SETTLED + DECLINED: :DECLINED + REVERSED: :REVERSED + CANCELED: :CANCELED def self?.values: -> ::Array[Lithic::Models::Payment::status] end diff --git a/sig/lithic/models/provision_response.rbs b/sig/lithic/models/provision_response.rbs new file mode 100644 index 00000000..65adf97a --- /dev/null +++ b/sig/lithic/models/provision_response.rbs @@ -0,0 +1,36 @@ +module Lithic + module Models + type provision_response = + { + activation_data: String, + encrypted_data: String, + ephemeral_public_key: String + } + + class ProvisionResponse < Lithic::Internal::Type::BaseModel + attr_reader activation_data: String? + + def activation_data=: (String) -> String + + attr_reader encrypted_data: String? + + def encrypted_data=: (String) -> String + + attr_reader ephemeral_public_key: String? + + def ephemeral_public_key=: (String) -> String + + def initialize: ( + ?activation_data: String, + ?encrypted_data: String, + ?ephemeral_public_key: String + ) -> void + + def to_hash: -> { + activation_data: String, + encrypted_data: String, + ephemeral_public_key: String + } + end + end +end diff --git a/sig/lithic/models/three_ds/authentication_retrieve_response.rbs b/sig/lithic/models/three_ds/authentication_retrieve_response.rbs index f580315f..9e370dc8 100644 --- a/sig/lithic/models/three_ds/authentication_retrieve_response.rbs +++ b/sig/lithic/models/three_ds/authentication_retrieve_response.rbs @@ -153,6 +153,7 @@ module Lithic type cardholder = { address_match: bool?, + address_on_file_match: Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::address_on_file_match, billing_address: Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::BillingAddress, email: String?, name: String?, @@ -165,6 +166,12 @@ module Lithic class Cardholder < Lithic::Internal::Type::BaseModel attr_accessor address_match: bool? + attr_reader address_on_file_match: Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::address_on_file_match? + + def address_on_file_match=: ( + Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::address_on_file_match + ) -> Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::address_on_file_match + attr_reader billing_address: Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::BillingAddress? def billing_address=: ( @@ -189,6 +196,7 @@ module Lithic def initialize: ( ?address_match: bool?, + ?address_on_file_match: Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::address_on_file_match, ?billing_address: Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::BillingAddress, ?email: String?, ?name: String?, @@ -200,6 +208,7 @@ module Lithic def to_hash: -> { address_match: bool?, + address_on_file_match: Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::address_on_file_match, billing_address: Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::BillingAddress, email: String?, name: String?, @@ -209,6 +218,25 @@ module Lithic shipping_address: Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::ShippingAddress } + type address_on_file_match = + :MATCH + | :MATCH_ADDRESS_ONLY + | :MATCH_ZIP_ONLY + | :MISMATCH + | :NOT_PRESENT + + module AddressOnFileMatch + extend Lithic::Internal::Type::Enum + + MATCH: :MATCH + MATCH_ADDRESS_ONLY: :MATCH_ADDRESS_ONLY + MATCH_ZIP_ONLY: :MATCH_ZIP_ONLY + MISMATCH: :MISMATCH + NOT_PRESENT: :NOT_PRESENT + + def self?.values: -> ::Array[Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::address_on_file_match] + end + type billing_address = { :address1 => String?, diff --git a/sig/lithic/models/tokenization.rbs b/sig/lithic/models/tokenization.rbs index f2cb6fa7..b2bf6c7d 100644 --- a/sig/lithic/models/tokenization.rbs +++ b/sig/lithic/models/tokenization.rbs @@ -203,6 +203,7 @@ module Lithic | :TOKEN_ACTIVATED | :TOKEN_CREATED | :TOKEN_DEACTIVATED + | :TOKEN_DELETED_FROM_CONSUMER_APP | :TOKEN_INACTIVE | :TOKEN_STATE_UNKNOWN | :TOKEN_SUSPENDED @@ -218,6 +219,7 @@ module Lithic TOKEN_ACTIVATED: :TOKEN_ACTIVATED TOKEN_CREATED: :TOKEN_CREATED TOKEN_DEACTIVATED: :TOKEN_DEACTIVATED + TOKEN_DELETED_FROM_CONSUMER_APP: :TOKEN_DELETED_FROM_CONSUMER_APP TOKEN_INACTIVE: :TOKEN_INACTIVE TOKEN_STATE_UNKNOWN: :TOKEN_STATE_UNKNOWN TOKEN_SUSPENDED: :TOKEN_SUSPENDED diff --git a/sig/lithic/models/transaction.rbs b/sig/lithic/models/transaction.rbs index 6fc6901f..89291220 100644 --- a/sig/lithic/models/transaction.rbs +++ b/sig/lithic/models/transaction.rbs @@ -1088,6 +1088,8 @@ module Lithic | :TRANSACTION_PREVIOUSLY_COMPLETED | :UNAUTHORIZED_MERCHANT | :VEHICLE_NUMBER_INVALID + | :CARDHOLDER_CHALLENGED + | :CARDHOLDER_CHALLENGE_FAILED module DetailedResult extend Lithic::Internal::Type::Enum @@ -1146,6 +1148,8 @@ module Lithic TRANSACTION_PREVIOUSLY_COMPLETED: :TRANSACTION_PREVIOUSLY_COMPLETED UNAUTHORIZED_MERCHANT: :UNAUTHORIZED_MERCHANT VEHICLE_NUMBER_INVALID: :VEHICLE_NUMBER_INVALID + CARDHOLDER_CHALLENGED: :CARDHOLDER_CHALLENGED + CARDHOLDER_CHALLENGE_FAILED: :CARDHOLDER_CHALLENGE_FAILED def self?.values: -> ::Array[Lithic::Models::Transaction::Event::detailed_result] end @@ -1430,6 +1434,8 @@ module Lithic | :TRANSACTION_PREVIOUSLY_COMPLETED | :UNAUTHORIZED_MERCHANT | :VEHICLE_NUMBER_INVALID + | :CARDHOLDER_CHALLENGED + | :CARDHOLDER_CHALLENGE_FAILED module Result extend Lithic::Internal::Type::Enum @@ -1488,6 +1494,8 @@ module Lithic TRANSACTION_PREVIOUSLY_COMPLETED: :TRANSACTION_PREVIOUSLY_COMPLETED UNAUTHORIZED_MERCHANT: :UNAUTHORIZED_MERCHANT VEHICLE_NUMBER_INVALID: :VEHICLE_NUMBER_INVALID + CARDHOLDER_CHALLENGED: :CARDHOLDER_CHALLENGED + CARDHOLDER_CHALLENGE_FAILED: :CARDHOLDER_CHALLENGE_FAILED def self?.values: -> ::Array[Lithic::Models::Transaction::Event::RuleResult::result] end diff --git a/sig/lithic/models/verification_method.rbs b/sig/lithic/models/verification_method.rbs index 0cf14894..5656d5c3 100644 --- a/sig/lithic/models/verification_method.rbs +++ b/sig/lithic/models/verification_method.rbs @@ -1,19 +1,13 @@ module Lithic module Models type verification_method = - :MANUAL - | :MICRO_DEPOSIT - | :PLAID - | :PRENOTE - | :EXTERNALLY_VERIFIED - | :UNVERIFIED + :MANUAL | :MICRO_DEPOSIT | :PRENOTE | :EXTERNALLY_VERIFIED | :UNVERIFIED module VerificationMethod extend Lithic::Internal::Type::Enum MANUAL: :MANUAL MICRO_DEPOSIT: :MICRO_DEPOSIT - PLAID: :PLAID PRENOTE: :PRENOTE EXTERNALLY_VERIFIED: :EXTERNALLY_VERIFIED UNVERIFIED: :UNVERIFIED diff --git a/sig/lithic/resources/auth_rules/v2.rbs b/sig/lithic/resources/auth_rules/v2.rbs index 84424559..2d061903 100644 --- a/sig/lithic/resources/auth_rules/v2.rbs +++ b/sig/lithic/resources/auth_rules/v2.rbs @@ -72,11 +72,6 @@ module Lithic ?request_options: Lithic::request_opts ) -> Lithic::Models::AuthRules::V2PromoteResponse - def report: ( - String auth_rule_token, - ?request_options: Lithic::request_opts - ) -> Lithic::Models::AuthRules::V2ReportResponse - def retrieve_features: ( String auth_rule_token, ?account_token: String, diff --git a/sig/lithic/resources/external_bank_accounts.rbs b/sig/lithic/resources/external_bank_accounts.rbs index 2c81bbeb..e46a1379 100644 --- a/sig/lithic/resources/external_bank_accounts.rbs +++ b/sig/lithic/resources/external_bank_accounts.rbs @@ -13,7 +13,6 @@ module Lithic routing_number: String, type: Lithic::Models::ExternalBankAccountCreateParams::type_, verification_method: Lithic::Models::ExternalBankAccountCreateParams::verification_method, - processor_token: String, ?account_token: String, ?address: Lithic::ExternalBankAccountAddress, ?company_id: String, diff --git a/test/lithic/internal/util_test.rb b/test/lithic/internal/util_test.rb index eaa6f729..c4644c3f 100644 --- a/test/lithic/internal/util_test.rb +++ b/test/lithic/internal/util_test.rb @@ -343,6 +343,29 @@ def test_rewind_closing assert_equal(0, steps) end + def test_thread_interrupts + once = 0 + que = Queue.new + enum = Enumerator.new do |y| + 10.times { y << _1 } + ensure + once = once.succ + end + + fused_1 = Lithic::Internal::Util.fused_enum(enum, external: true) { loop { enum.next } } + fused_2 = Lithic::Internal::Util.chain_fused(fused_1) { fused_1.each(&_1) } + fused_3 = Lithic::Internal::Util.chain_fused(fused_2) { fused_2.each(&_1) } + + th = ::Thread.new do + que << "🐶" + fused_3.each { sleep(10) } + end + + assert_equal("🐶", que.pop) + th.kill.join + assert_equal(1, once) + end + def test_closing arr = [1, 2, 3] once = 0 diff --git a/test/lithic/resources/account_activity_test.rb b/test/lithic/resources/account_activity_test.rb index 949f9b4a..cb8ebb25 100644 --- a/test/lithic/resources/account_activity_test.rb +++ b/test/lithic/resources/account_activity_test.rb @@ -19,14 +19,110 @@ def test_list assert_pattern do case row - in Lithic::Models::AccountActivityListResponse::FinancialTransaction - in Lithic::Models::AccountActivityListResponse::BookTransferTransaction - in Lithic::Models::AccountActivityListResponse::CardTransaction - in Lithic::Models::AccountActivityListResponse::PaymentTransaction + in Lithic::Models::AccountActivityListResponse::Internal + in Lithic::BookTransferResponse + in Lithic::Models::AccountActivityListResponse::Card + in Lithic::Payment in Lithic::ExternalPayment in Lithic::ManagementOperationTransaction end end + + assert_pattern do + case row + in { + family: :INTERNAL, + token: String, + category: Lithic::Models::AccountActivityListResponse::Internal::Category, + created: Time, + currency: String, + descriptor: String, + events: ^(Lithic::Internal::Type::ArrayOf[Lithic::Models::AccountActivityListResponse::Internal::Event]), + financial_account_token: String, + pending_amount: Integer, + result: Lithic::Models::AccountActivityListResponse::Internal::Result, + settled_amount: Integer, + status: Lithic::Models::AccountActivityListResponse::Internal::Status, + updated: Time + } + in { + family: :TRANSFER, + token: String, + category: Lithic::BookTransferResponse::Category, + created: Time, + currency: String, + events: ^(Lithic::Internal::Type::ArrayOf[Lithic::BookTransferResponse::Event]), + from_financial_account_token: String, + pending_amount: Integer, + result: Lithic::BookTransferResponse::Result, + settled_amount: Integer, + status: Lithic::BookTransferResponse::Status, + to_financial_account_token: String, + updated: Time, + external_id: String | nil, + external_resource: Lithic::ExternalResource | nil, + transaction_series: Lithic::BookTransferResponse::TransactionSeries | nil + } + in { + family: :PAYMENT, + token: String, + category: Lithic::Payment::Category, + created: Time, + descriptor: String, + direction: Lithic::Payment::Direction, + events: ^(Lithic::Internal::Type::ArrayOf[Lithic::Payment::Event]), + financial_account_token: String, + method_: Lithic::Payment::Method, + method_attributes: Lithic::Payment::MethodAttributes, + pending_amount: Integer, + related_account_tokens: Lithic::Payment::RelatedAccountTokens, + result: Lithic::Payment::Result, + settled_amount: Integer, + source: Lithic::Payment::Source, + status: Lithic::Payment::Status, + updated: Time, + currency: String | nil, + expected_release_date: Date | nil, + external_bank_account_token: String | nil, + type: Lithic::Payment::Type | nil, + user_defined_id: String | nil + } + in { + family: :EXTERNAL_PAYMENT, + token: String, + created: Time, + status: Lithic::ExternalPayment::Status, + updated: Time, + category: Lithic::ExternalPayment::Category | nil, + currency: String | nil, + events: ^(Lithic::Internal::Type::ArrayOf[Lithic::ExternalPayment::Event]) | nil, + financial_account_token: String | nil, + payment_type: Lithic::ExternalPayment::PaymentType | nil, + pending_amount: Integer | nil, + result: Lithic::ExternalPayment::Result | nil, + settled_amount: Integer | nil, + user_defined_id: String | nil + } + in { + family: :MANAGEMENT_OPERATION, + token: String, + created: Time, + status: Lithic::ManagementOperationTransaction::Status, + updated: Time, + category: Lithic::ManagementOperationTransaction::Category | nil, + currency: String | nil, + direction: Lithic::ManagementOperationTransaction::Direction | nil, + events: ^(Lithic::Internal::Type::ArrayOf[Lithic::ManagementOperationTransaction::Event]) | nil, + external_resource: Lithic::ExternalResource | nil, + financial_account_token: String | nil, + pending_amount: Integer | nil, + result: Lithic::ManagementOperationTransaction::Result | nil, + settled_amount: Integer | nil, + transaction_series: Lithic::ManagementOperationTransaction::TransactionSeries | nil, + user_defined_id: String | nil + } + end + end end def test_retrieve_transaction @@ -38,13 +134,109 @@ def test_retrieve_transaction assert_pattern do case response - in Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction - in Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction - in Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction - in Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction + in Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal + in Lithic::BookTransferResponse + in Lithic::Models::AccountActivityRetrieveTransactionResponse::Card + in Lithic::Payment in Lithic::ExternalPayment in Lithic::ManagementOperationTransaction end end + + assert_pattern do + case response + in { + family: :INTERNAL, + token: String, + category: Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category, + created: Time, + currency: String, + descriptor: String, + events: ^(Lithic::Internal::Type::ArrayOf[Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Event]), + financial_account_token: String, + pending_amount: Integer, + result: Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Result, + settled_amount: Integer, + status: Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Status, + updated: Time + } + in { + family: :TRANSFER, + token: String, + category: Lithic::BookTransferResponse::Category, + created: Time, + currency: String, + events: ^(Lithic::Internal::Type::ArrayOf[Lithic::BookTransferResponse::Event]), + from_financial_account_token: String, + pending_amount: Integer, + result: Lithic::BookTransferResponse::Result, + settled_amount: Integer, + status: Lithic::BookTransferResponse::Status, + to_financial_account_token: String, + updated: Time, + external_id: String | nil, + external_resource: Lithic::ExternalResource | nil, + transaction_series: Lithic::BookTransferResponse::TransactionSeries | nil + } + in { + family: :PAYMENT, + token: String, + category: Lithic::Payment::Category, + created: Time, + descriptor: String, + direction: Lithic::Payment::Direction, + events: ^(Lithic::Internal::Type::ArrayOf[Lithic::Payment::Event]), + financial_account_token: String, + method_: Lithic::Payment::Method, + method_attributes: Lithic::Payment::MethodAttributes, + pending_amount: Integer, + related_account_tokens: Lithic::Payment::RelatedAccountTokens, + result: Lithic::Payment::Result, + settled_amount: Integer, + source: Lithic::Payment::Source, + status: Lithic::Payment::Status, + updated: Time, + currency: String | nil, + expected_release_date: Date | nil, + external_bank_account_token: String | nil, + type: Lithic::Payment::Type | nil, + user_defined_id: String | nil + } + in { + family: :EXTERNAL_PAYMENT, + token: String, + created: Time, + status: Lithic::ExternalPayment::Status, + updated: Time, + category: Lithic::ExternalPayment::Category | nil, + currency: String | nil, + events: ^(Lithic::Internal::Type::ArrayOf[Lithic::ExternalPayment::Event]) | nil, + financial_account_token: String | nil, + payment_type: Lithic::ExternalPayment::PaymentType | nil, + pending_amount: Integer | nil, + result: Lithic::ExternalPayment::Result | nil, + settled_amount: Integer | nil, + user_defined_id: String | nil + } + in { + family: :MANAGEMENT_OPERATION, + token: String, + created: Time, + status: Lithic::ManagementOperationTransaction::Status, + updated: Time, + category: Lithic::ManagementOperationTransaction::Category | nil, + currency: String | nil, + direction: Lithic::ManagementOperationTransaction::Direction | nil, + events: ^(Lithic::Internal::Type::ArrayOf[Lithic::ManagementOperationTransaction::Event]) | nil, + external_resource: Lithic::ExternalResource | nil, + financial_account_token: String | nil, + pending_amount: Integer | nil, + result: Lithic::ManagementOperationTransaction::Result | nil, + settled_amount: Integer | nil, + transaction_series: Lithic::ManagementOperationTransaction::TransactionSeries | nil, + user_defined_id: String | nil + } + end + end end end diff --git a/test/lithic/resources/auth_rules/v2_test.rb b/test/lithic/resources/auth_rules/v2_test.rb index cdc86e04..fee293cb 100644 --- a/test/lithic/resources/auth_rules/v2_test.rb +++ b/test/lithic/resources/auth_rules/v2_test.rb @@ -204,20 +204,6 @@ def test_promote end end - def test_report - response = @lithic.auth_rules.v2.report("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") - - assert_pattern do - response => Lithic::Models::AuthRules::V2ReportResponse - end - - assert_pattern do - response => { - report_token: String | nil - } - end - end - def test_retrieve_features response = @lithic.auth_rules.v2.retrieve_features("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") diff --git a/test/lithic/resources/book_transfers_test.rb b/test/lithic/resources/book_transfers_test.rb index 1969710e..272ef0c2 100644 --- a/test/lithic/resources/book_transfers_test.rb +++ b/test/lithic/resources/book_transfers_test.rb @@ -25,16 +25,17 @@ def test_create_required_params created: Time, currency: String, events: ^(Lithic::Internal::Type::ArrayOf[Lithic::BookTransferResponse::Event]), - external_id: String | nil, - external_resource: Lithic::ExternalResource | nil, + family: Symbol, from_financial_account_token: String, pending_amount: Integer, result: Lithic::BookTransferResponse::Result, settled_amount: Integer, status: Lithic::BookTransferResponse::Status, to_financial_account_token: String, - transaction_series: Lithic::BookTransferResponse::TransactionSeries | nil, - updated: Time + updated: Time, + external_id: String | nil, + external_resource: Lithic::ExternalResource | nil, + transaction_series: Lithic::BookTransferResponse::TransactionSeries | nil } end end @@ -53,16 +54,17 @@ def test_retrieve created: Time, currency: String, events: ^(Lithic::Internal::Type::ArrayOf[Lithic::BookTransferResponse::Event]), - external_id: String | nil, - external_resource: Lithic::ExternalResource | nil, + family: Symbol, from_financial_account_token: String, pending_amount: Integer, result: Lithic::BookTransferResponse::Result, settled_amount: Integer, status: Lithic::BookTransferResponse::Status, to_financial_account_token: String, - transaction_series: Lithic::BookTransferResponse::TransactionSeries | nil, - updated: Time + updated: Time, + external_id: String | nil, + external_resource: Lithic::ExternalResource | nil, + transaction_series: Lithic::BookTransferResponse::TransactionSeries | nil } end end @@ -88,16 +90,17 @@ def test_list created: Time, currency: String, events: ^(Lithic::Internal::Type::ArrayOf[Lithic::BookTransferResponse::Event]), - external_id: String | nil, - external_resource: Lithic::ExternalResource | nil, + family: Symbol, from_financial_account_token: String, pending_amount: Integer, result: Lithic::BookTransferResponse::Result, settled_amount: Integer, status: Lithic::BookTransferResponse::Status, to_financial_account_token: String, - transaction_series: Lithic::BookTransferResponse::TransactionSeries | nil, - updated: Time + updated: Time, + external_id: String | nil, + external_resource: Lithic::ExternalResource | nil, + transaction_series: Lithic::BookTransferResponse::TransactionSeries | nil } end end @@ -116,16 +119,17 @@ def test_reverse created: Time, currency: String, events: ^(Lithic::Internal::Type::ArrayOf[Lithic::BookTransferResponse::Event]), - external_id: String | nil, - external_resource: Lithic::ExternalResource | nil, + family: Symbol, from_financial_account_token: String, pending_amount: Integer, result: Lithic::BookTransferResponse::Result, settled_amount: Integer, status: Lithic::BookTransferResponse::Status, to_financial_account_token: String, - transaction_series: Lithic::BookTransferResponse::TransactionSeries | nil, - updated: Time + updated: Time, + external_id: String | nil, + external_resource: Lithic::ExternalResource | nil, + transaction_series: Lithic::BookTransferResponse::TransactionSeries | nil } end end diff --git a/test/lithic/resources/cards_test.rb b/test/lithic/resources/cards_test.rb index c9ca9fa0..d9c9e352 100644 --- a/test/lithic/resources/cards_test.rb +++ b/test/lithic/resources/cards_test.rb @@ -108,7 +108,7 @@ def test_provision assert_pattern do response => { - provisioning_payload: String | nil + provisioning_payload: Lithic::Models::CardProvisionResponse::ProvisioningPayload | nil } end end diff --git a/test/lithic/resources/external_payments_test.rb b/test/lithic/resources/external_payments_test.rb index d25b12b8..62b340d2 100644 --- a/test/lithic/resources/external_payments_test.rb +++ b/test/lithic/resources/external_payments_test.rb @@ -21,12 +21,12 @@ def test_create_required_params response => { token: String, created: Time, - family: Lithic::ExternalPayment::Family, status: Lithic::ExternalPayment::Status, updated: Time, category: Lithic::ExternalPayment::Category | nil, currency: String | nil, events: ^(Lithic::Internal::Type::ArrayOf[Lithic::ExternalPayment::Event]) | nil, + family: Lithic::ExternalPayment::Family | nil, financial_account_token: String | nil, payment_type: Lithic::ExternalPayment::PaymentType | nil, pending_amount: Integer | nil, @@ -48,12 +48,12 @@ def test_retrieve response => { token: String, created: Time, - family: Lithic::ExternalPayment::Family, status: Lithic::ExternalPayment::Status, updated: Time, category: Lithic::ExternalPayment::Category | nil, currency: String | nil, events: ^(Lithic::Internal::Type::ArrayOf[Lithic::ExternalPayment::Event]) | nil, + family: Lithic::ExternalPayment::Family | nil, financial_account_token: String | nil, payment_type: Lithic::ExternalPayment::PaymentType | nil, pending_amount: Integer | nil, @@ -82,12 +82,12 @@ def test_list row => { token: String, created: Time, - family: Lithic::ExternalPayment::Family, status: Lithic::ExternalPayment::Status, updated: Time, category: Lithic::ExternalPayment::Category | nil, currency: String | nil, events: ^(Lithic::Internal::Type::ArrayOf[Lithic::ExternalPayment::Event]) | nil, + family: Lithic::ExternalPayment::Family | nil, financial_account_token: String | nil, payment_type: Lithic::ExternalPayment::PaymentType | nil, pending_amount: Integer | nil, @@ -110,12 +110,12 @@ def test_cancel_required_params response => { token: String, created: Time, - family: Lithic::ExternalPayment::Family, status: Lithic::ExternalPayment::Status, updated: Time, category: Lithic::ExternalPayment::Category | nil, currency: String | nil, events: ^(Lithic::Internal::Type::ArrayOf[Lithic::ExternalPayment::Event]) | nil, + family: Lithic::ExternalPayment::Family | nil, financial_account_token: String | nil, payment_type: Lithic::ExternalPayment::PaymentType | nil, pending_amount: Integer | nil, @@ -138,12 +138,12 @@ def test_release_required_params response => { token: String, created: Time, - family: Lithic::ExternalPayment::Family, status: Lithic::ExternalPayment::Status, updated: Time, category: Lithic::ExternalPayment::Category | nil, currency: String | nil, events: ^(Lithic::Internal::Type::ArrayOf[Lithic::ExternalPayment::Event]) | nil, + family: Lithic::ExternalPayment::Family | nil, financial_account_token: String | nil, payment_type: Lithic::ExternalPayment::PaymentType | nil, pending_amount: Integer | nil, @@ -166,12 +166,12 @@ def test_reverse_required_params response => { token: String, created: Time, - family: Lithic::ExternalPayment::Family, status: Lithic::ExternalPayment::Status, updated: Time, category: Lithic::ExternalPayment::Category | nil, currency: String | nil, events: ^(Lithic::Internal::Type::ArrayOf[Lithic::ExternalPayment::Event]) | nil, + family: Lithic::ExternalPayment::Family | nil, financial_account_token: String | nil, payment_type: Lithic::ExternalPayment::PaymentType | nil, pending_amount: Integer | nil, @@ -194,12 +194,12 @@ def test_settle_required_params response => { token: String, created: Time, - family: Lithic::ExternalPayment::Family, status: Lithic::ExternalPayment::Status, updated: Time, category: Lithic::ExternalPayment::Category | nil, currency: String | nil, events: ^(Lithic::Internal::Type::ArrayOf[Lithic::ExternalPayment::Event]) | nil, + family: Lithic::ExternalPayment::Family | nil, financial_account_token: String | nil, payment_type: Lithic::ExternalPayment::PaymentType | nil, pending_amount: Integer | nil, diff --git a/test/lithic/resources/financial_accounts/credit_configuration_test.rb b/test/lithic/resources/financial_accounts/credit_configuration_test.rb index 76f113cb..07458fb1 100644 --- a/test/lithic/resources/financial_accounts/credit_configuration_test.rb +++ b/test/lithic/resources/financial_accounts/credit_configuration_test.rb @@ -15,13 +15,13 @@ def test_retrieve response => { account_token: String, auto_collection_configuration: Lithic::FinancialAccounts::FinancialAccountCreditConfig::AutoCollectionConfiguration, - charged_off_reason: Lithic::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason | nil, credit_limit: Integer | nil, credit_product_token: String | nil, external_bank_account_token: String | nil, - financial_account_state: Lithic::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState, - is_spend_blocked: Lithic::Internal::Type::Boolean, - tier: String | nil + tier: String | nil, + charged_off_reason: Lithic::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason | nil, + financial_account_state: Lithic::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState | nil, + is_spend_blocked: Lithic::Internal::Type::Boolean | nil } end end @@ -37,13 +37,13 @@ def test_update response => { account_token: String, auto_collection_configuration: Lithic::FinancialAccounts::FinancialAccountCreditConfig::AutoCollectionConfiguration, - charged_off_reason: Lithic::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason | nil, credit_limit: Integer | nil, credit_product_token: String | nil, external_bank_account_token: String | nil, - financial_account_state: Lithic::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState, - is_spend_blocked: Lithic::Internal::Type::Boolean, - tier: String | nil + tier: String | nil, + charged_off_reason: Lithic::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason | nil, + financial_account_state: Lithic::FinancialAccounts::FinancialAccountCreditConfig::FinancialAccountState | nil, + is_spend_blocked: Lithic::Internal::Type::Boolean | nil } end end diff --git a/test/lithic/resources/management_operations_test.rb b/test/lithic/resources/management_operations_test.rb index 0a848285..e8d58ebf 100644 --- a/test/lithic/resources/management_operations_test.rb +++ b/test/lithic/resources/management_operations_test.rb @@ -22,7 +22,6 @@ def test_create_required_params response => { token: String, created: Time, - family: Lithic::ManagementOperationTransaction::Family, status: Lithic::ManagementOperationTransaction::Status, updated: Time, category: Lithic::ManagementOperationTransaction::Category | nil, @@ -30,6 +29,7 @@ def test_create_required_params direction: Lithic::ManagementOperationTransaction::Direction | nil, events: ^(Lithic::Internal::Type::ArrayOf[Lithic::ManagementOperationTransaction::Event]) | nil, external_resource: Lithic::ExternalResource | nil, + family: Lithic::ManagementOperationTransaction::Family | nil, financial_account_token: String | nil, pending_amount: Integer | nil, result: Lithic::ManagementOperationTransaction::Result | nil, @@ -51,7 +51,6 @@ def test_retrieve response => { token: String, created: Time, - family: Lithic::ManagementOperationTransaction::Family, status: Lithic::ManagementOperationTransaction::Status, updated: Time, category: Lithic::ManagementOperationTransaction::Category | nil, @@ -59,6 +58,7 @@ def test_retrieve direction: Lithic::ManagementOperationTransaction::Direction | nil, events: ^(Lithic::Internal::Type::ArrayOf[Lithic::ManagementOperationTransaction::Event]) | nil, external_resource: Lithic::ExternalResource | nil, + family: Lithic::ManagementOperationTransaction::Family | nil, financial_account_token: String | nil, pending_amount: Integer | nil, result: Lithic::ManagementOperationTransaction::Result | nil, @@ -87,7 +87,6 @@ def test_list row => { token: String, created: Time, - family: Lithic::ManagementOperationTransaction::Family, status: Lithic::ManagementOperationTransaction::Status, updated: Time, category: Lithic::ManagementOperationTransaction::Category | nil, @@ -95,6 +94,7 @@ def test_list direction: Lithic::ManagementOperationTransaction::Direction | nil, events: ^(Lithic::Internal::Type::ArrayOf[Lithic::ManagementOperationTransaction::Event]) | nil, external_resource: Lithic::ExternalResource | nil, + family: Lithic::ManagementOperationTransaction::Family | nil, financial_account_token: String | nil, pending_amount: Integer | nil, result: Lithic::ManagementOperationTransaction::Result | nil, @@ -120,7 +120,6 @@ def test_reverse_required_params response => { token: String, created: Time, - family: Lithic::ManagementOperationTransaction::Family, status: Lithic::ManagementOperationTransaction::Status, updated: Time, category: Lithic::ManagementOperationTransaction::Category | nil, @@ -128,6 +127,7 @@ def test_reverse_required_params direction: Lithic::ManagementOperationTransaction::Direction | nil, events: ^(Lithic::Internal::Type::ArrayOf[Lithic::ManagementOperationTransaction::Event]) | nil, external_resource: Lithic::ExternalResource | nil, + family: Lithic::ManagementOperationTransaction::Family | nil, financial_account_token: String | nil, pending_amount: Integer | nil, result: Lithic::ManagementOperationTransaction::Result | nil, diff --git a/test/lithic/resources/payments_test.rb b/test/lithic/resources/payments_test.rb index 100c97b1..830f5686 100644 --- a/test/lithic/resources/payments_test.rb +++ b/test/lithic/resources/payments_test.rb @@ -31,11 +31,10 @@ def test_retrieve token: String, category: Lithic::Payment::Category, created: Time, - currency: String, descriptor: String, direction: Lithic::Payment::Direction, events: ^(Lithic::Internal::Type::ArrayOf[Lithic::Payment::Event]), - external_bank_account_token: String | nil, + family: Symbol, financial_account_token: String, method_: Lithic::Payment::Method, method_attributes: Lithic::Payment::MethodAttributes, @@ -46,9 +45,11 @@ def test_retrieve source: Lithic::Payment::Source, status: Lithic::Payment::Status, updated: Time, - user_defined_id: String | nil, + currency: String | nil, expected_release_date: Date | nil, - type: Lithic::Payment::Type | nil + external_bank_account_token: String | nil, + type: Lithic::Payment::Type | nil, + user_defined_id: String | nil } end end @@ -72,11 +73,10 @@ def test_list token: String, category: Lithic::Payment::Category, created: Time, - currency: String, descriptor: String, direction: Lithic::Payment::Direction, events: ^(Lithic::Internal::Type::ArrayOf[Lithic::Payment::Event]), - external_bank_account_token: String | nil, + family: Symbol, financial_account_token: String, method_: Lithic::Payment::Method, method_attributes: Lithic::Payment::MethodAttributes, @@ -87,9 +87,11 @@ def test_list source: Lithic::Payment::Source, status: Lithic::Payment::Status, updated: Time, - user_defined_id: String | nil, + currency: String | nil, expected_release_date: Date | nil, - type: Lithic::Payment::Type | nil + external_bank_account_token: String | nil, + type: Lithic::Payment::Type | nil, + user_defined_id: String | nil } end end