diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 10f30916..6b7b74c5 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.2.0" + ".": "0.3.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 315b0f37..ddb484b7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 176 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-abe6a4f82f696099fa8ecb1cc44f08979e17d56578ae7ea68b0e9182e21df508.yml -openapi_spec_hash: d2ce51592a9a234c6f34a1168a31f91f -config_hash: 2b2786c821f62db49cc630ba45329336 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-4ecc06edca2cfad4eaf11573611e89823fda5f56370bac5cd02a498a6b277d09.yml +openapi_spec_hash: 8f4a30bec4348cbde85b1e65bef9189a +config_hash: 9dddee5f7af579864599849cb28a0770 diff --git a/CHANGELOG.md b/CHANGELOG.md index 2468db0d..82022fd2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,43 @@ # Changelog +## 0.3.0 (2026-01-08) + +Full Changelog: [v0.2.0...v0.3.0](https://github.com/lithic-com/lithic-ruby/compare/v0.2.0...v0.3.0) + +### Features + +* **api:** Add card state attribute to tokenization rules ([24f042b](https://github.com/lithic-com/lithic-ruby/commit/24f042b70a1b3b6f30639fe6d04dbc7d566ea187)) +* **api:** Add event_type to ASA request and 3DS decisioning request ([24f042b](https://github.com/lithic-com/lithic-ruby/commit/24f042b70a1b3b6f30639fe6d04dbc7d566ea187)) +* **api:** add external_id to payment_event ([0bad1d9](https://github.com/lithic-com/lithic-ruby/commit/0bad1d9ef7b439a1be19b68af67abb6e66e5c53f)) +* **api:** add get /v1/transfer_limits endpoint ([0bad1d9](https://github.com/lithic-com/lithic-ruby/commit/0bad1d9ef7b439a1be19b68af67abb6e66e5c53f)) +* **api:** add post /v1/book_transfers/{book_transfer_token}/retry endpoint ([0bad1d9](https://github.com/lithic-com/lithic-ruby/commit/0bad1d9ef7b439a1be19b68af67abb6e66e5c53f)) +* **api:** Add user defined status to ledger accounts ([24f042b](https://github.com/lithic-com/lithic-ruby/commit/24f042b70a1b3b6f30639fe6d04dbc7d566ea187)) +* **api:** add WIRE_DRAWDOWN_REQUEST transfer type ([832895f](https://github.com/lithic-com/lithic-ruby/commit/832895fdf5d4e72f9fc1ce62e9acfb6bcbdfdc14)) +* **api:** Expose Payment Allocation Details ([24f042b](https://github.com/lithic-com/lithic-ruby/commit/24f042b70a1b3b6f30639fe6d04dbc7d566ea187)) +* **api:** remove unnecessary X-Lithic-Pagination header ([832895f](https://github.com/lithic-com/lithic-ruby/commit/832895fdf5d4e72f9fc1ce62e9acfb6bcbdfdc14)) +* **api:** remove v1/aggregate_balances and related models ([c66d75e](https://github.com/lithic-com/lithic-ruby/commit/c66d75ed7b10521d5f73efeafb9dbcd6ff7a7f0c)) + + +### Bug Fixes + +* calling `break` out of streams should be instantaneous ([86db080](https://github.com/lithic-com/lithic-ruby/commit/86db080240382ba1cd73af9a01c89379cfb8e330)) +* issue where json.parse errors when receiving HTTP 204 with nobody ([9c9d63b](https://github.com/lithic-com/lithic-ruby/commit/9c9d63b07badd9fdd107314ac0bd5c8c23ddd0c3)) + + +### Chores + +* formatting ([e736094](https://github.com/lithic-com/lithic-ruby/commit/e736094a8bcf11007a6ea2666cfc6a646aca6972)) +* **internal:** codegen related update ([6bacc68](https://github.com/lithic-com/lithic-ruby/commit/6bacc684b578951ece05155697ec0b68c2d8d4e0)) +* Simplify custom code ([67dc77a](https://github.com/lithic-com/lithic-ruby/commit/67dc77a78348d9d910cca58ffba483992b738f30)) +* Simplify custom code - same for rbs file ([3438ceb](https://github.com/lithic-com/lithic-ruby/commit/3438cebfd4899c87d06a2bc42d4a76af709ea21f)) +* update code formatting ([24f042b](https://github.com/lithic-com/lithic-ruby/commit/24f042b70a1b3b6f30639fe6d04dbc7d566ea187)) + + +### Documentation + +* **api:** clarify description of token / retry_token when it serves as idempotency key ([832895f](https://github.com/lithic-com/lithic-ruby/commit/832895fdf5d4e72f9fc1ce62e9acfb6bcbdfdc14)) +* Update language for Google Web Push Provisioning docs ([24f042b](https://github.com/lithic-com/lithic-ruby/commit/24f042b70a1b3b6f30639fe6d04dbc7d566ea187)) + ## 0.2.0 (2025-12-10) Full Changelog: [v0.1.0...v0.2.0](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0...v0.2.0) diff --git a/Gemfile.lock b/Gemfile.lock index 1c2f037c..ec7d09db 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -18,7 +18,7 @@ GIT PATH remote: . specs: - lithic (0.2.0) + lithic (0.3.0) connection_pool GEM diff --git a/LICENSE b/LICENSE index 06eee64e..9410347b 100644 --- a/LICENSE +++ b/LICENSE @@ -186,7 +186,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2025 Lithic + Copyright 2026 Lithic Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/README.md b/README.md index e5d25e76..2333dd34 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.2.0" +gem "lithic", "~> 0.3.0" ``` diff --git a/lib/lithic.rb b/lib/lithic.rb index 9ef65dd5..2b939bb5 100644 --- a/lib/lithic.rb +++ b/lib/lithic.rb @@ -106,10 +106,7 @@ require_relative "lithic/models/account_update_params" require_relative "lithic/models/address" require_relative "lithic/models/address_update" -require_relative "lithic/models/aggregate_balance" -require_relative "lithic/models/aggregate_balance_list_params" require_relative "lithic/models/api_status" -require_relative "lithic/models/asa_request_webhook_event" require_relative "lithic/models/auth_rules/auth_rule" require_relative "lithic/models/auth_rules/auth_rule_condition" require_relative "lithic/models/auth_rules/conditional_3ds_action_parameters" @@ -149,10 +146,12 @@ require_relative "lithic/models/book_transfer_create_params" require_relative "lithic/models/book_transfer_list_params" require_relative "lithic/models/book_transfer_retrieve_params" +require_relative "lithic/models/book_transfer_retry_params" require_relative "lithic/models/book_transfer_reverse_params" require_relative "lithic/models/book_transfer_transaction_created_webhook_event" require_relative "lithic/models/book_transfer_transaction_updated_webhook_event" require_relative "lithic/models/card" +require_relative "lithic/models/card_authorization_approval_request_webhook_event" require_relative "lithic/models/card_bulk_order" require_relative "lithic/models/card_bulk_order_create_params" require_relative "lithic/models/card_bulk_order_list_params" @@ -177,8 +176,6 @@ require_relative "lithic/models/card_renew_params" require_relative "lithic/models/card_retrieve_params" require_relative "lithic/models/card_retrieve_spend_limits_params" -require_relative "lithic/models/cards/aggregate_balance_list_params" -require_relative "lithic/models/cards/aggregate_balance_list_response" require_relative "lithic/models/cards/balance_list_params" require_relative "lithic/models/cards/financial_transaction_list_params" require_relative "lithic/models/cards/financial_transaction_retrieve_params" @@ -374,6 +371,7 @@ require_relative "lithic/models/three_ds/decisioning_retrieve_secret_params" require_relative "lithic/models/three_ds/decisioning_retrieve_secret_response" require_relative "lithic/models/three_ds/decisioning_rotate_secret_params" +require_relative "lithic/models/three_ds_authentication_approval_request_webhook_event" require_relative "lithic/models/three_ds_authentication_challenge_webhook_event" require_relative "lithic/models/three_ds_authentication_created_webhook_event" require_relative "lithic/models/three_ds_authentication_updated_webhook_event" @@ -423,6 +421,8 @@ require_relative "lithic/models/transaction_simulate_void_response" require_relative "lithic/models/transfer" require_relative "lithic/models/transfer_create_params" +require_relative "lithic/models/transfer_limit_list_params" +require_relative "lithic/models/transfer_limits_response" require_relative "lithic/models/verification_method" require_relative "lithic/models/wallet_decisioning_info" require_relative "lithic/models/webhook_parsed_params" @@ -431,7 +431,6 @@ require_relative "lithic/resources/account_activity" require_relative "lithic/resources/account_holders" require_relative "lithic/resources/accounts" -require_relative "lithic/resources/aggregate_balances" require_relative "lithic/resources/auth_rules" require_relative "lithic/resources/auth_rules/v2" require_relative "lithic/resources/auth_rules/v2/backtests" @@ -441,7 +440,6 @@ require_relative "lithic/resources/card_bulk_orders" require_relative "lithic/resources/card_programs" require_relative "lithic/resources/cards" -require_relative "lithic/resources/cards/aggregate_balances" require_relative "lithic/resources/cards/balances" require_relative "lithic/resources/cards/financial_transactions" require_relative "lithic/resources/credit_products" @@ -483,5 +481,6 @@ require_relative "lithic/resources/transactions/enhanced_commercial_data" require_relative "lithic/resources/transactions/events" require_relative "lithic/resources/transactions/events/enhanced_commercial_data" +require_relative "lithic/resources/transfer_limits" require_relative "lithic/resources/transfers" require_relative "lithic/resources/webhooks" diff --git a/lib/lithic/client.rb b/lib/lithic/client.rb index b39ba831..38a4fa92 100644 --- a/lib/lithic/client.rb +++ b/lib/lithic/client.rb @@ -50,9 +50,6 @@ class Client < Lithic::Internal::Transport::BaseClient # @return [Lithic::Resources::Balances] attr_reader :balances - # @return [Lithic::Resources::AggregateBalances] - attr_reader :aggregate_balances - # @return [Lithic::Resources::Disputes] attr_reader :disputes @@ -119,6 +116,9 @@ class Client < Lithic::Internal::Transport::BaseClient # @return [Lithic::Resources::AccountActivity] attr_reader :account_activity + # @return [Lithic::Resources::TransferLimits] + attr_reader :transfer_limits + # @return [Lithic::Resources::Webhooks] attr_reader :webhooks @@ -181,10 +181,6 @@ def initialize( raise ArgumentError.new("api_key is required, and can be set via environ: \"LITHIC_API_KEY\"") end - headers = { - "x-lithic-pagination" => "cursor" - } - @api_key = api_key.to_s super( @@ -192,8 +188,7 @@ def initialize( timeout: timeout, max_retries: max_retries, initial_retry_delay: initial_retry_delay, - max_retry_delay: max_retry_delay, - headers: headers + max_retry_delay: max_retry_delay ) @accounts = Lithic::Resources::Accounts.new(client: self) @@ -205,7 +200,6 @@ def initialize( @cards = Lithic::Resources::Cards.new(client: self) @card_bulk_orders = Lithic::Resources::CardBulkOrders.new(client: self) @balances = Lithic::Resources::Balances.new(client: self) - @aggregate_balances = Lithic::Resources::AggregateBalances.new(client: self) @disputes = Lithic::Resources::Disputes.new(client: self) @disputes_v2 = Lithic::Resources::DisputesV2.new(client: self) @events = Lithic::Resources::Events.new(client: self) @@ -228,6 +222,7 @@ def initialize( @fraud = Lithic::Resources::Fraud.new(client: self) @network_programs = Lithic::Resources::NetworkPrograms.new(client: self) @account_activity = Lithic::Resources::AccountActivity.new(client: self) + @transfer_limits = Lithic::Resources::TransferLimits.new(client: self) @webhooks = Lithic::Resources::Webhooks.new(client: self) end end diff --git a/lib/lithic/internal/transport/pooled_net_requester.rb b/lib/lithic/internal/transport/pooled_net_requester.rb index 1d151cc9..b24863bd 100644 --- a/lib/lithic/internal/transport/pooled_net_requester.rb +++ b/lib/lithic/internal/transport/pooled_net_requester.rb @@ -153,17 +153,19 @@ def execute(request) 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) + ::Kernel.catch(:jump) do + conn.request(req) do |rsp| + y << [req, rsp] + ::Kernel.throw(:jump) if finished + + rsp.read_body do |bytes| + y << bytes.force_encoding(Encoding::BINARY) + ::Kernel.throw(:jump) if finished + + self.class.calibrate_socket_timeout(conn, deadline) + end + eof = true end - eof = true end end ensure diff --git a/lib/lithic/internal/util.rb b/lib/lithic/internal/util.rb index 50b9f0a9..30350605 100644 --- a/lib/lithic/internal/util.rb +++ b/lib/lithic/internal/util.rb @@ -657,7 +657,8 @@ def force_charset!(content_type, text:) def decode_content(headers, stream:, suppress_error: false) case (content_type = headers["content-type"]) in Lithic::Internal::Util::JSON_CONTENT - json = stream.to_a.join + return nil if (json = stream.to_a.join).empty? + begin JSON.parse(json, symbolize_names: true) rescue JSON::ParserError => e @@ -667,7 +668,11 @@ def decode_content(headers, stream:, suppress_error: false) in Lithic::Internal::Util::JSONL_CONTENT lines = decode_lines(stream) chain_fused(lines) do |y| - lines.each { y << JSON.parse(_1, symbolize_names: true) } + lines.each do + next if _1.empty? + + y << JSON.parse(_1, symbolize_names: true) + end end in %r{^text/event-stream} lines = decode_lines(stream) diff --git a/lib/lithic/models.rb b/lib/lithic/models.rb index fa2f704a..746c1f2d 100644 --- a/lib/lithic/models.rb +++ b/lib/lithic/models.rb @@ -90,14 +90,8 @@ module Lithic AddressUpdate = Lithic::Models::AddressUpdate - AggregateBalance = Lithic::Models::AggregateBalance - - AggregateBalanceListParams = Lithic::Models::AggregateBalanceListParams - APIStatus = Lithic::Models::APIStatus - AsaRequestWebhookEvent = Lithic::Models::AsaRequestWebhookEvent - AuthRules = Lithic::Models::AuthRules AuthRulesBacktestReportCreatedWebhookEvent = Lithic::Models::AuthRulesBacktestReportCreatedWebhookEvent @@ -122,6 +116,8 @@ module Lithic BookTransferRetrieveParams = Lithic::Models::BookTransferRetrieveParams + BookTransferRetryParams = Lithic::Models::BookTransferRetryParams + BookTransferReverseParams = Lithic::Models::BookTransferReverseParams BookTransferTransactionCreatedWebhookEvent = Lithic::Models::BookTransferTransactionCreatedWebhookEvent @@ -130,6 +126,9 @@ module Lithic Card = Lithic::Models::Card + CardAuthorizationApprovalRequestWebhookEvent = + Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent + CardBulkOrder = Lithic::Models::CardBulkOrder CardBulkOrderCreateParams = Lithic::Models::CardBulkOrderCreateParams @@ -478,6 +477,9 @@ module Lithic ThreeDSAuthentication = Lithic::Models::ThreeDSAuthentication + ThreeDSAuthenticationApprovalRequestWebhookEvent = + Lithic::Models::ThreeDSAuthenticationApprovalRequestWebhookEvent + ThreeDSAuthenticationChallengeWebhookEvent = Lithic::Models::ThreeDSAuthenticationChallengeWebhookEvent ThreeDSAuthenticationCreatedWebhookEvent = Lithic::Models::ThreeDSAuthenticationCreatedWebhookEvent @@ -562,6 +564,10 @@ module Lithic TransferCreateParams = Lithic::Models::TransferCreateParams + TransferLimitListParams = Lithic::Models::TransferLimitListParams + + TransferLimitsResponse = Lithic::Models::TransferLimitsResponse + VerificationMethod = Lithic::Models::VerificationMethod WalletDecisioningInfo = Lithic::Models::WalletDecisioningInfo diff --git a/lib/lithic/models/aggregate_balance.rb b/lib/lithic/models/aggregate_balance.rb deleted file mode 100644 index 4563cf4c..00000000 --- a/lib/lithic/models/aggregate_balance.rb +++ /dev/null @@ -1,113 +0,0 @@ -# frozen_string_literal: true - -module Lithic - module Models - # @see Lithic::Resources::AggregateBalances#list - class AggregateBalance < Lithic::Internal::Type::BaseModel - # @!attribute available_amount - # Funds available for spend in the currency's smallest unit (e.g., cents for USD) - # - # @return [Integer] - required :available_amount, Integer - - # @!attribute created - # Date and time for when the balance was first created. - # - # @return [Time] - required :created, Time - - # @!attribute currency - # 3-character alphabetic ISO 4217 code for the local currency of the balance. - # - # @return [String] - required :currency, String - - # @!attribute financial_account_type - # Type of financial account - # - # @return [Symbol, Lithic::Models::AggregateBalance::FinancialAccountType] - required :financial_account_type, enum: -> { Lithic::AggregateBalance::FinancialAccountType } - - # @!attribute last_financial_account_token - # Globally unique identifier for the financial account that had its balance - # updated most recently - # - # @return [String] - required :last_financial_account_token, String - - # @!attribute last_transaction_event_token - # Globally unique identifier for the last transaction event that impacted this - # balance - # - # @return [String] - required :last_transaction_event_token, String - - # @!attribute last_transaction_token - # Globally unique identifier for the last transaction that impacted this balance - # - # @return [String] - required :last_transaction_token, String - - # @!attribute pending_amount - # Funds not available for spend due to card authorizations or pending ACH release. - # Shown in the currency's smallest unit (e.g., cents for USD) - # - # @return [Integer] - required :pending_amount, Integer - - # @!attribute total_amount - # The sum of available and pending balance in the currency's smallest unit (e.g., - # cents for USD) - # - # @return [Integer] - required :total_amount, Integer - - # @!attribute updated - # Date and time for when the balance was last updated. - # - # @return [Time] - required :updated, Time - - # @!method initialize(available_amount:, created:, currency:, financial_account_type:, last_financial_account_token:, last_transaction_event_token:, last_transaction_token:, pending_amount:, total_amount:, updated:) - # Some parameter documentations has been truncated, see - # {Lithic::Models::AggregateBalance} for more details. - # - # Aggregate Balance across all end-user accounts - # - # @param available_amount [Integer] Funds available for spend in the currency's smallest unit (e.g., cents for USD) - # - # @param created [Time] Date and time for when the balance was first created. - # - # @param currency [String] 3-character alphabetic ISO 4217 code for the local currency of the balance. - # - # @param financial_account_type [Symbol, Lithic::Models::AggregateBalance::FinancialAccountType] Type of financial account - # - # @param last_financial_account_token [String] Globally unique identifier for the financial account that had its balance update - # - # @param last_transaction_event_token [String] Globally unique identifier for the last transaction event that impacted this bal - # - # @param last_transaction_token [String] Globally unique identifier for the last transaction that impacted this balance - # - # @param pending_amount [Integer] Funds not available for spend due to card authorizations or pending ACH release. - # - # @param total_amount [Integer] The sum of available and pending balance in the currency's smallest unit (e.g., - # - # @param updated [Time] Date and time for when the balance was last updated. - - # Type of financial account - # - # @see Lithic::Models::AggregateBalance#financial_account_type - module FinancialAccountType - extend Lithic::Internal::Type::Enum - - ISSUING = :ISSUING - OPERATING = :OPERATING - RESERVE = :RESERVE - SECURITY = :SECURITY - - # @!method self.values - # @return [Array] - end - end - end -end diff --git a/lib/lithic/models/aggregate_balance_list_params.rb b/lib/lithic/models/aggregate_balance_list_params.rb deleted file mode 100644 index 9b0075a2..00000000 --- a/lib/lithic/models/aggregate_balance_list_params.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -module Lithic - module Models - # @see Lithic::Resources::AggregateBalances#list - class AggregateBalanceListParams < Lithic::Internal::Type::BaseModel - extend Lithic::Internal::Type::RequestParameters::Converter - include Lithic::Internal::Type::RequestParameters - - # @!attribute financial_account_type - # Get the aggregate balance for a given Financial Account type. - # - # @return [Symbol, Lithic::Models::AggregateBalanceListParams::FinancialAccountType, nil] - optional :financial_account_type, enum: -> { Lithic::AggregateBalanceListParams::FinancialAccountType } - - # @!method initialize(financial_account_type: nil, request_options: {}) - # @param financial_account_type [Symbol, Lithic::Models::AggregateBalanceListParams::FinancialAccountType] Get the aggregate balance for a given Financial Account type. - # - # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] - - # Get the aggregate balance for a given Financial Account type. - module FinancialAccountType - extend Lithic::Internal::Type::Enum - - ISSUING = :ISSUING - OPERATING = :OPERATING - RESERVE = :RESERVE - SECURITY = :SECURITY - - # @!method self.values - # @return [Array] - end - end - end -end diff --git a/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb b/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb index 70152f6c..519eccb5 100644 --- a/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +++ b/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb @@ -185,6 +185,8 @@ class Condition < Lithic::Internal::Type::BaseModel # `TOO_MANY_RECENT_TOKENS`, `UNABLE_TO_ASSESS`. # - `TOKEN_REQUESTOR_ID`: Unique identifier for the entity requesting the token. # - `WALLET_TOKEN_STATUS`: The current status of the wallet token. + # - `CARD_STATE`: The state of the card being tokenized. Valid values are + # `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, `PENDING_FULFILLMENT`. # # @return [Symbol, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Condition::Attribute] required :attribute, @@ -245,6 +247,8 @@ class Condition < Lithic::Internal::Type::BaseModel # `TOO_MANY_RECENT_TOKENS`, `UNABLE_TO_ASSESS`. # - `TOKEN_REQUESTOR_ID`: Unique identifier for the entity requesting the token. # - `WALLET_TOKEN_STATUS`: The current status of the wallet token. + # - `CARD_STATE`: The state of the card being tokenized. Valid values are + # `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, `PENDING_FULFILLMENT`. # # @see Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Condition#attribute module Attribute @@ -260,6 +264,7 @@ module Attribute WALLET_RECOMMENDATION_REASONS = :WALLET_RECOMMENDATION_REASONS TOKEN_REQUESTOR_ID = :TOKEN_REQUESTOR_ID WALLET_TOKEN_STATUS = :WALLET_TOKEN_STATUS + CARD_STATE = :CARD_STATE # @!method self.values # @return [Array] diff --git a/lib/lithic/models/book_transfer_retry_params.rb b/lib/lithic/models/book_transfer_retry_params.rb new file mode 100644 index 00000000..2cf400e4 --- /dev/null +++ b/lib/lithic/models/book_transfer_retry_params.rb @@ -0,0 +1,26 @@ +# frozen_string_literal: true + +module Lithic + module Models + # @see Lithic::Resources::BookTransfers#retry_ + class BookTransferRetryParams < Lithic::Internal::Type::BaseModel + extend Lithic::Internal::Type::RequestParameters::Converter + include Lithic::Internal::Type::RequestParameters + + # @!attribute retry_token + # Customer-provided token that will serve as an idempotency token. This token will + # become the transaction token. + # + # @return [String] + required :retry_token, String + + # @!method initialize(retry_token:, request_options: {}) + # Some parameter documentations has been truncated, see + # {Lithic::Models::BookTransferRetryParams} for more details. + # + # @param retry_token [String] Customer-provided token that will serve as an idempotency token. This token will + # + # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] + end + end +end diff --git a/lib/lithic/models/asa_request_webhook_event.rb b/lib/lithic/models/card_authorization_approval_request_webhook_event.rb similarity index 68% rename from lib/lithic/models/asa_request_webhook_event.rb rename to lib/lithic/models/card_authorization_approval_request_webhook_event.rb index 179ff08d..db592414 100644 --- a/lib/lithic/models/asa_request_webhook_event.rb +++ b/lib/lithic/models/card_authorization_approval_request_webhook_event.rb @@ -2,7 +2,7 @@ module Lithic module Models - class AsaRequestWebhookEvent < Lithic::Internal::Type::BaseModel + class CardAuthorizationApprovalRequestWebhookEvent < Lithic::Internal::Type::BaseModel # @!attribute token # The provisional transaction group uuid associated with the authorization # @@ -34,14 +34,14 @@ class AsaRequestWebhookEvent < Lithic::Internal::Type::BaseModel # @!attribute avs # - # @return [Lithic::Models::AsaRequestWebhookEvent::Avs] - required :avs, -> { Lithic::AsaRequestWebhookEvent::Avs } + # @return [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Avs] + required :avs, -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::Avs } # @!attribute card # Card object in ASA # - # @return [Lithic::Models::AsaRequestWebhookEvent::Card] - required :card, -> { Lithic::AsaRequestWebhookEvent::Card } + # @return [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card] + required :card, -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card } # @!attribute cardholder_currency # 3-character alphabetic ISO 4217 code for cardholder's billing currency. @@ -66,6 +66,11 @@ class AsaRequestWebhookEvent < Lithic::Internal::Type::BaseModel # @return [Time] required :created, Time + # @!attribute event_type + # + # @return [Symbol, :"card_authorization.approval_request"] + required :event_type, const: :"card_authorization.approval_request" + # @!attribute merchant # # @return [Lithic::Models::Merchant] @@ -99,19 +104,20 @@ class AsaRequestWebhookEvent < Lithic::Internal::Type::BaseModel # `CREDIT_AUTHORIZATION` and `FINANCIAL_CREDIT_AUTHORIZATION` is only available to # users with credit decisioning via ASA enabled. # - # @return [Symbol, Lithic::Models::AsaRequestWebhookEvent::Status] - required :status, enum: -> { Lithic::AsaRequestWebhookEvent::Status } + # @return [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Status] + required :status, enum: -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::Status } # @!attribute transaction_initiator # The entity that initiated the transaction. # - # @return [Symbol, Lithic::Models::AsaRequestWebhookEvent::TransactionInitiator] - required :transaction_initiator, enum: -> { Lithic::AsaRequestWebhookEvent::TransactionInitiator } + # @return [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::TransactionInitiator] + required :transaction_initiator, + enum: -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::TransactionInitiator } # @!attribute account_type # - # @return [Symbol, Lithic::Models::AsaRequestWebhookEvent::AccountType, nil] - optional :account_type, enum: -> { Lithic::AsaRequestWebhookEvent::AccountType } + # @return [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::AccountType, nil] + optional :account_type, enum: -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::AccountType } # @!attribute cardholder_authentication # @@ -145,21 +151,21 @@ class AsaRequestWebhookEvent < Lithic::Internal::Type::BaseModel # Optional Object containing information if the Card is a part of a Fleet managed # program # - # @return [Lithic::Models::AsaRequestWebhookEvent::FleetInfo, nil] - optional :fleet_info, -> { Lithic::AsaRequestWebhookEvent::FleetInfo }, nil?: true + # @return [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo, nil] + optional :fleet_info, -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo }, nil?: true # @!attribute latest_challenge # The latest Authorization Challenge that was issued to the cardholder for this # merchant. # - # @return [Lithic::Models::AsaRequestWebhookEvent::LatestChallenge, nil] - optional :latest_challenge, -> { Lithic::AsaRequestWebhookEvent::LatestChallenge } + # @return [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge, nil] + optional :latest_challenge, -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge } # @!attribute network # Card network of the authorization. # - # @return [Symbol, Lithic::Models::AsaRequestWebhookEvent::Network, nil] - optional :network, enum: -> { Lithic::AsaRequestWebhookEvent::Network } + # @return [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Network, nil] + optional :network, enum: -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::Network } # @!attribute network_risk_score # Network-provided score assessing risk level associated with a given @@ -179,13 +185,15 @@ class AsaRequestWebhookEvent < Lithic::Internal::Type::BaseModel # values and how to use them. This object is only available to certain programs- # contact your Customer Success Manager to discuss enabling access. # - # @return [Lithic::Models::AsaRequestWebhookEvent::NetworkSpecificData, nil] - optional :network_specific_data, -> { Lithic::AsaRequestWebhookEvent::NetworkSpecificData }, nil?: true + # @return [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData, nil] + optional :network_specific_data, + -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData }, + nil?: true # @!attribute pos # - # @return [Lithic::Models::AsaRequestWebhookEvent::Pos, nil] - optional :pos, -> { Lithic::AsaRequestWebhookEvent::Pos } + # @return [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos, nil] + optional :pos, -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos } # @!attribute token_info # @@ -198,11 +206,9 @@ class AsaRequestWebhookEvent < Lithic::Internal::Type::BaseModel # @return [Time, nil] optional :ttl, Time - # @!method initialize(token:, acquirer_fee:, amount:, authorization_amount:, avs:, card:, cardholder_currency:, cash_amount:, created:, merchant:, merchant_amount:, merchant_currency:, settled_amount:, status:, transaction_initiator:, account_type: nil, cardholder_authentication: nil, cashback: nil, conversion_rate: nil, event_token: nil, fleet_info: nil, latest_challenge: nil, network: nil, network_risk_score: nil, network_specific_data: nil, pos: nil, token_info: nil, ttl: nil) + # @!method initialize(token:, acquirer_fee:, amount:, authorization_amount:, avs:, card:, cardholder_currency:, cash_amount:, created:, merchant:, merchant_amount:, merchant_currency:, settled_amount:, status:, transaction_initiator:, account_type: nil, cardholder_authentication: nil, cashback: nil, conversion_rate: nil, event_token: nil, fleet_info: nil, latest_challenge: nil, network: nil, network_risk_score: nil, network_specific_data: nil, pos: nil, token_info: nil, ttl: nil, event_type: :"card_authorization.approval_request") # Some parameter documentations has been truncated, see - # {Lithic::Models::AsaRequestWebhookEvent} for more details. - # - # The Auth Stream Access request payload that was sent to the ASA responder. + # {Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent} for more details. # # @param token [String] The provisional transaction group uuid associated with the authorization # @@ -212,9 +218,9 @@ class AsaRequestWebhookEvent < Lithic::Internal::Type::BaseModel # # @param authorization_amount [Integer] The base transaction amount (in cents) plus the acquirer fee field. This is the # - # @param avs [Lithic::Models::AsaRequestWebhookEvent::Avs] + # @param avs [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Avs] # - # @param card [Lithic::Models::AsaRequestWebhookEvent::Card] Card object in ASA + # @param card [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card] Card object in ASA # # @param cardholder_currency [String] 3-character alphabetic ISO 4217 code for cardholder's billing currency. # @@ -230,11 +236,11 @@ class AsaRequestWebhookEvent < Lithic::Internal::Type::BaseModel # # @param settled_amount [Integer] Amount (in cents) of the transaction that has been settled, including any acquir # - # @param status [Symbol, Lithic::Models::AsaRequestWebhookEvent::Status] The type of authorization request that this request is for. Note that `CREDIT_AU + # @param status [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Status] The type of authorization request that this request is for. Note that `CREDIT_AU # - # @param transaction_initiator [Symbol, Lithic::Models::AsaRequestWebhookEvent::TransactionInitiator] The entity that initiated the transaction. + # @param transaction_initiator [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::TransactionInitiator] The entity that initiated the transaction. # - # @param account_type [Symbol, Lithic::Models::AsaRequestWebhookEvent::AccountType] + # @param account_type [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::AccountType] # # @param cardholder_authentication [Lithic::Models::CardholderAuthentication] # @@ -244,23 +250,25 @@ class AsaRequestWebhookEvent < Lithic::Internal::Type::BaseModel # # @param event_token [String] The event token associated with the authorization. This field is only set for pr # - # @param fleet_info [Lithic::Models::AsaRequestWebhookEvent::FleetInfo, nil] Optional Object containing information if the Card is a part of a Fleet managed + # @param fleet_info [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo, nil] Optional Object containing information if the Card is a part of a Fleet managed # - # @param latest_challenge [Lithic::Models::AsaRequestWebhookEvent::LatestChallenge] The latest Authorization Challenge that was issued to the cardholder for this me + # @param latest_challenge [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge] The latest Authorization Challenge that was issued to the cardholder for this me # - # @param network [Symbol, Lithic::Models::AsaRequestWebhookEvent::Network] Card network of the authorization. + # @param network [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Network] Card network of the authorization. # # @param network_risk_score [Integer, nil] Network-provided score assessing risk level associated with a given authorizatio # - # @param network_specific_data [Lithic::Models::AsaRequestWebhookEvent::NetworkSpecificData, nil] Contains raw data provided by the card network, including attributes that provid + # @param network_specific_data [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData, nil] Contains raw data provided by the card network, including attributes that provid # - # @param pos [Lithic::Models::AsaRequestWebhookEvent::Pos] + # @param pos [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos] # # @param token_info [Lithic::Models::TokenInfo, nil] # # @param ttl [Time] Deprecated: approximate time-to-live for the authorization. + # + # @param event_type [Symbol, :"card_authorization.approval_request"] - # @see Lithic::Models::AsaRequestWebhookEvent#avs + # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent#avs class Avs < Lithic::Internal::Type::BaseModel # @!attribute address # Cardholder address @@ -274,8 +282,9 @@ class Avs < Lithic::Internal::Type::BaseModel # Cardholder KYC data, or the transaction does not contain any address data, # NOT_PRESENT will be returned # - # @return [Symbol, Lithic::Models::AsaRequestWebhookEvent::Avs::AddressOnFileMatch] - required :address_on_file_match, enum: -> { Lithic::AsaRequestWebhookEvent::Avs::AddressOnFileMatch } + # @return [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Avs::AddressOnFileMatch] + required :address_on_file_match, + enum: -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::Avs::AddressOnFileMatch } # @!attribute zipcode # Cardholder ZIP code @@ -285,11 +294,12 @@ class Avs < Lithic::Internal::Type::BaseModel # @!method initialize(address:, address_on_file_match:, zipcode:) # Some parameter documentations has been truncated, see - # {Lithic::Models::AsaRequestWebhookEvent::Avs} for more details. + # {Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Avs} for more + # details. # # @param address [String] Cardholder address # - # @param address_on_file_match [Symbol, Lithic::Models::AsaRequestWebhookEvent::Avs::AddressOnFileMatch] Lithic's evaluation result comparing the transaction's address data with the car + # @param address_on_file_match [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Avs::AddressOnFileMatch] Lithic's evaluation result comparing the transaction's address data with the car # # @param zipcode [String] Cardholder ZIP code @@ -298,7 +308,7 @@ class Avs < Lithic::Internal::Type::BaseModel # Cardholder KYC data, or the transaction does not contain any address data, # NOT_PRESENT will be returned # - # @see Lithic::Models::AsaRequestWebhookEvent::Avs#address_on_file_match + # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Avs#address_on_file_match module AddressOnFileMatch extend Lithic::Internal::Type::Enum @@ -313,7 +323,7 @@ module AddressOnFileMatch end end - # @see Lithic::Models::AsaRequestWebhookEvent#card + # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent#card class Card < Lithic::Internal::Type::BaseModel # @!attribute token # Globally unique identifier for the card. @@ -358,22 +368,24 @@ class Card < Lithic::Internal::Type::BaseModel # day every month, the time window we consider for MONTHLY velocity starts 6 days # after the current calendar date one month prior. # - # @return [Symbol, Lithic::Models::AsaRequestWebhookEvent::Card::SpendLimitDuration, nil] - optional :spend_limit_duration, enum: -> { Lithic::AsaRequestWebhookEvent::Card::SpendLimitDuration } + # @return [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::SpendLimitDuration, nil] + optional :spend_limit_duration, + enum: -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::SpendLimitDuration } # @!attribute state # - # @return [Symbol, Lithic::Models::AsaRequestWebhookEvent::Card::State, nil] - optional :state, enum: -> { Lithic::AsaRequestWebhookEvent::Card::State } + # @return [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::State, nil] + optional :state, enum: -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::State } # @!attribute type # - # @return [Symbol, Lithic::Models::AsaRequestWebhookEvent::Card::Type, nil] - optional :type, enum: -> { Lithic::AsaRequestWebhookEvent::Card::Type } + # @return [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::Type, nil] + optional :type, enum: -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::Type } # @!method initialize(token: nil, hostname: nil, last_four: nil, memo: nil, spend_limit: nil, spend_limit_duration: nil, state: nil, type: nil) # Some parameter documentations has been truncated, see - # {Lithic::Models::AsaRequestWebhookEvent::Card} for more details. + # {Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card} for more + # details. # # Card object in ASA # @@ -387,17 +399,17 @@ class Card < Lithic::Internal::Type::BaseModel # # @param spend_limit [Integer] Amount (in cents) to limit approved authorizations. Purchase requests above the # - # @param spend_limit_duration [Symbol, Lithic::Models::AsaRequestWebhookEvent::Card::SpendLimitDuration] Note that to support recurring monthly payments, which can occur on different da + # @param spend_limit_duration [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::SpendLimitDuration] Note that to support recurring monthly payments, which can occur on different da # - # @param state [Symbol, Lithic::Models::AsaRequestWebhookEvent::Card::State] + # @param state [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::State] # - # @param type [Symbol, Lithic::Models::AsaRequestWebhookEvent::Card::Type] + # @param type [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::Type] # Note that to support recurring monthly payments, which can occur on different # day every month, the time window we consider for MONTHLY velocity starts 6 days # after the current calendar date one month prior. # - # @see Lithic::Models::AsaRequestWebhookEvent::Card#spend_limit_duration + # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card#spend_limit_duration module SpendLimitDuration extend Lithic::Internal::Type::Enum @@ -410,7 +422,7 @@ module SpendLimitDuration # @return [Array] end - # @see Lithic::Models::AsaRequestWebhookEvent::Card#state + # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card#state module State extend Lithic::Internal::Type::Enum @@ -424,7 +436,7 @@ module State # @return [Array] end - # @see Lithic::Models::AsaRequestWebhookEvent::Card#type + # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card#type module Type extend Lithic::Internal::Type::Enum @@ -444,7 +456,7 @@ module Type # `CREDIT_AUTHORIZATION` and `FINANCIAL_CREDIT_AUTHORIZATION` is only available to # users with credit decisioning via ASA enabled. # - # @see Lithic::Models::AsaRequestWebhookEvent#status + # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent#status module Status extend Lithic::Internal::Type::Enum @@ -460,7 +472,7 @@ module Status # The entity that initiated the transaction. # - # @see Lithic::Models::AsaRequestWebhookEvent#transaction_initiator + # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent#transaction_initiator module TransactionInitiator extend Lithic::Internal::Type::Enum @@ -472,7 +484,7 @@ module TransactionInitiator # @return [Array] end - # @see Lithic::Models::AsaRequestWebhookEvent#account_type + # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent#account_type module AccountType extend Lithic::Internal::Type::Enum @@ -483,24 +495,25 @@ module AccountType # @return [Array] end - # @see Lithic::Models::AsaRequestWebhookEvent#fleet_info + # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent#fleet_info class FleetInfo < Lithic::Internal::Type::BaseModel # @!attribute fleet_prompt_code # Code indicating what the driver was prompted to enter at time of purchase. This # is configured at a program level and is a static configuration, and does not # change on a request to request basis # - # @return [Symbol, Lithic::Models::AsaRequestWebhookEvent::FleetInfo::FleetPromptCode] - required :fleet_prompt_code, enum: -> { Lithic::AsaRequestWebhookEvent::FleetInfo::FleetPromptCode } + # @return [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::FleetPromptCode] + required :fleet_prompt_code, + enum: -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::FleetPromptCode } # @!attribute fleet_restriction_code # Code indicating which restrictions, if any, there are on purchase. This is # configured at a program level and is a static configuration, and does not change # on a request to request basis # - # @return [Symbol, Lithic::Models::AsaRequestWebhookEvent::FleetInfo::FleetRestrictionCode] + # @return [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::FleetRestrictionCode] required :fleet_restriction_code, - enum: -> { Lithic::AsaRequestWebhookEvent::FleetInfo::FleetRestrictionCode } + enum: -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::FleetRestrictionCode } # @!attribute driver_number # Number representing the driver @@ -516,14 +529,15 @@ class FleetInfo < Lithic::Internal::Type::BaseModel # @!method initialize(fleet_prompt_code:, fleet_restriction_code:, driver_number: nil, vehicle_number: nil) # Some parameter documentations has been truncated, see - # {Lithic::Models::AsaRequestWebhookEvent::FleetInfo} for more details. + # {Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo} for + # more details. # # Optional Object containing information if the Card is a part of a Fleet managed # program # - # @param fleet_prompt_code [Symbol, Lithic::Models::AsaRequestWebhookEvent::FleetInfo::FleetPromptCode] Code indicating what the driver was prompted to enter at time of purchase. This + # @param fleet_prompt_code [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::FleetPromptCode] Code indicating what the driver was prompted to enter at time of purchase. This # - # @param fleet_restriction_code [Symbol, Lithic::Models::AsaRequestWebhookEvent::FleetInfo::FleetRestrictionCode] Code indicating which restrictions, if any, there are on purchase. This is confi + # @param fleet_restriction_code [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::FleetRestrictionCode] Code indicating which restrictions, if any, there are on purchase. This is confi # # @param driver_number [String, nil] Number representing the driver # @@ -533,7 +547,7 @@ class FleetInfo < Lithic::Internal::Type::BaseModel # is configured at a program level and is a static configuration, and does not # change on a request to request basis # - # @see Lithic::Models::AsaRequestWebhookEvent::FleetInfo#fleet_prompt_code + # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo#fleet_prompt_code module FleetPromptCode extend Lithic::Internal::Type::Enum @@ -549,7 +563,7 @@ module FleetPromptCode # configured at a program level and is a static configuration, and does not change # on a request to request basis # - # @see Lithic::Models::AsaRequestWebhookEvent::FleetInfo#fleet_restriction_code + # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo#fleet_restriction_code module FleetRestrictionCode extend Lithic::Internal::Type::Enum @@ -561,7 +575,7 @@ module FleetRestrictionCode end end - # @see Lithic::Models::AsaRequestWebhookEvent#latest_challenge + # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent#latest_challenge class LatestChallenge < Lithic::Internal::Type::BaseModel # @!attribute phone_number # The phone number used for sending Authorization Challenge SMS. @@ -577,8 +591,9 @@ class LatestChallenge < Lithic::Internal::Type::BaseModel # - `EXPIRED` - Challenge has expired without being completed # - `ERROR` - There was an error processing the challenge # - # @return [Symbol, Lithic::Models::AsaRequestWebhookEvent::LatestChallenge::Status] - required :status, enum: -> { Lithic::AsaRequestWebhookEvent::LatestChallenge::Status } + # @return [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge::Status] + required :status, + enum: -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge::Status } # @!attribute completed_at # The date and time when the Authorization Challenge was completed in UTC. Present @@ -589,14 +604,15 @@ class LatestChallenge < Lithic::Internal::Type::BaseModel # @!method initialize(phone_number:, status:, completed_at: nil) # Some parameter documentations has been truncated, see - # {Lithic::Models::AsaRequestWebhookEvent::LatestChallenge} for more details. + # {Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge} + # for more details. # # The latest Authorization Challenge that was issued to the cardholder for this # merchant. # # @param phone_number [String] The phone number used for sending Authorization Challenge SMS. # - # @param status [Symbol, Lithic::Models::AsaRequestWebhookEvent::LatestChallenge::Status] The status of the Authorization Challenge + # @param status [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge::Status] The status of the Authorization Challenge # # @param completed_at [Time] The date and time when the Authorization Challenge was completed in UTC. Present @@ -607,7 +623,7 @@ class LatestChallenge < Lithic::Internal::Type::BaseModel # - `EXPIRED` - Challenge has expired without being completed # - `ERROR` - There was an error processing the challenge # - # @see Lithic::Models::AsaRequestWebhookEvent::LatestChallenge#status + # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge#status module Status extend Lithic::Internal::Type::Enum @@ -623,7 +639,7 @@ module Status # Card network of the authorization. # - # @see Lithic::Models::AsaRequestWebhookEvent#network + # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent#network module Network extend Lithic::Internal::Type::Enum @@ -638,21 +654,21 @@ module Network # @return [Array] end - # @see Lithic::Models::AsaRequestWebhookEvent#network_specific_data + # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent#network_specific_data class NetworkSpecificData < Lithic::Internal::Type::BaseModel # @!attribute mastercard # - # @return [Lithic::Models::AsaRequestWebhookEvent::NetworkSpecificData::Mastercard, nil] + # @return [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Mastercard, nil] optional :mastercard, - -> { - Lithic::AsaRequestWebhookEvent::NetworkSpecificData::Mastercard - }, + -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Mastercard }, nil?: true # @!attribute visa # - # @return [Lithic::Models::AsaRequestWebhookEvent::NetworkSpecificData::Visa, nil] - optional :visa, -> { Lithic::AsaRequestWebhookEvent::NetworkSpecificData::Visa }, nil?: true + # @return [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Visa, nil] + optional :visa, + -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Visa }, + nil?: true # @!method initialize(mastercard: nil, visa: nil) # Contains raw data provided by the card network, including attributes that @@ -662,10 +678,10 @@ class NetworkSpecificData < Lithic::Internal::Type::BaseModel # values and how to use them. This object is only available to certain programs- # contact your Customer Success Manager to discuss enabling access. # - # @param mastercard [Lithic::Models::AsaRequestWebhookEvent::NetworkSpecificData::Mastercard, nil] - # @param visa [Lithic::Models::AsaRequestWebhookEvent::NetworkSpecificData::Visa, nil] + # @param mastercard [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Mastercard, nil] + # @param visa [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Visa, nil] - # @see Lithic::Models::AsaRequestWebhookEvent::NetworkSpecificData#mastercard + # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData#mastercard class Mastercard < Lithic::Internal::Type::BaseModel # @!attribute ecommerce_security_level_indicator # Indicates the electronic commerce security level and UCAF collection. @@ -678,11 +694,13 @@ class Mastercard < Lithic::Internal::Type::BaseModel # applicable, on-behalf service results that were performed on a given # transaction. # - # @return [Array, nil] + # @return [Array, nil] optional :on_behalf_service_result, - -> { - Lithic::Internal::Type::ArrayOf[Lithic::AsaRequestWebhookEvent::NetworkSpecificData::Mastercard::OnBehalfServiceResult] - }, + -> do + Lithic::Internal::Type::ArrayOf[ + Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Mastercard::OnBehalfServiceResult + ] + end, nil?: true # @!attribute transaction_type_identifier @@ -693,12 +711,12 @@ class Mastercard < Lithic::Internal::Type::BaseModel # @!method initialize(ecommerce_security_level_indicator: nil, on_behalf_service_result: nil, transaction_type_identifier: nil) # Some parameter documentations has been truncated, see - # {Lithic::Models::AsaRequestWebhookEvent::NetworkSpecificData::Mastercard} for - # more details. + # {Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Mastercard} + # for more details. # # @param ecommerce_security_level_indicator [String, nil] Indicates the electronic commerce security level and UCAF collection. # - # @param on_behalf_service_result [Array, nil] The On-behalf Service performed on the transaction and the results. Contains all + # @param on_behalf_service_result [Array, nil] The On-behalf Service performed on the transaction and the results. Contains all # # @param transaction_type_identifier [String, nil] Indicates the type of additional transaction purpose. @@ -730,7 +748,7 @@ class OnBehalfServiceResult < Lithic::Internal::Type::BaseModel end end - # @see Lithic::Models::AsaRequestWebhookEvent::NetworkSpecificData#visa + # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData#visa class Visa < Lithic::Internal::Type::BaseModel # @!attribute business_application_identifier # Identifies the purpose or category of a transaction, used to classify and @@ -741,50 +759,51 @@ class Visa < Lithic::Internal::Type::BaseModel # @!method initialize(business_application_identifier: nil) # Some parameter documentations has been truncated, see - # {Lithic::Models::AsaRequestWebhookEvent::NetworkSpecificData::Visa} for more - # details. + # {Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Visa} + # for more details. # # @param business_application_identifier [String, nil] Identifies the purpose or category of a transaction, used to classify and proces end end - # @see Lithic::Models::AsaRequestWebhookEvent#pos + # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent#pos class Pos < Lithic::Internal::Type::BaseModel # @!attribute entry_mode # POS > Entry Mode object in ASA # - # @return [Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode, nil] - optional :entry_mode, -> { Lithic::AsaRequestWebhookEvent::Pos::EntryMode } + # @return [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode, nil] + optional :entry_mode, -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode } # @!attribute terminal # - # @return [Lithic::Models::AsaRequestWebhookEvent::Pos::Terminal, nil] - optional :terminal, -> { Lithic::AsaRequestWebhookEvent::Pos::Terminal } + # @return [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal, nil] + optional :terminal, -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal } # @!method initialize(entry_mode: nil, terminal: nil) - # @param entry_mode [Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode] POS > Entry Mode object in ASA + # @param entry_mode [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode] POS > Entry Mode object in ASA # - # @param terminal [Lithic::Models::AsaRequestWebhookEvent::Pos::Terminal] + # @param terminal [Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal] - # @see Lithic::Models::AsaRequestWebhookEvent::Pos#entry_mode + # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos#entry_mode class EntryMode < Lithic::Internal::Type::BaseModel # @!attribute card # Card Presence Indicator # - # @return [Symbol, Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode::Card, nil] - optional :card, enum: -> { Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Card } + # @return [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Card, nil] + optional :card, enum: -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Card } # @!attribute cardholder # Cardholder Presence Indicator # - # @return [Symbol, Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode::Cardholder, nil] - optional :cardholder, enum: -> { Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Cardholder } + # @return [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Cardholder, nil] + optional :cardholder, + enum: -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Cardholder } # @!attribute pan # Method of entry for the PAN # - # @return [Symbol, Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode::Pan, nil] - optional :pan, enum: -> { Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Pan } + # @return [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Pan, nil] + optional :pan, enum: -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Pan } # @!attribute pin_entered # Indicates whether the cardholder entered the PIN. True if the PIN was entered. @@ -795,17 +814,17 @@ class EntryMode < Lithic::Internal::Type::BaseModel # @!method initialize(card: nil, cardholder: nil, pan: nil, pin_entered: nil) # POS > Entry Mode object in ASA # - # @param card [Symbol, Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode::Card] Card Presence Indicator + # @param card [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Card] Card Presence Indicator # - # @param cardholder [Symbol, Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode::Cardholder] Cardholder Presence Indicator + # @param cardholder [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Cardholder] Cardholder Presence Indicator # - # @param pan [Symbol, Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode::Pan] Method of entry for the PAN + # @param pan [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Pan] Method of entry for the PAN # # @param pin_entered [Boolean] Indicates whether the cardholder entered the PIN. True if the PIN was entered. # Card Presence Indicator # - # @see Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode#card + # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode#card module Card extend Lithic::Internal::Type::Enum @@ -819,7 +838,7 @@ module Card # Cardholder Presence Indicator # - # @see Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode#cardholder + # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode#cardholder module Cardholder extend Lithic::Internal::Type::Enum @@ -839,7 +858,7 @@ module Cardholder # Method of entry for the PAN # - # @see Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode#pan + # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode#pan module Pan extend Lithic::Internal::Type::Enum @@ -864,7 +883,7 @@ module Pan end end - # @see Lithic::Models::AsaRequestWebhookEvent::Pos#terminal + # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos#terminal class Terminal < Lithic::Internal::Type::BaseModel # @!attribute attended # True if a clerk is present at the sale. @@ -887,8 +906,9 @@ class Terminal < Lithic::Internal::Type::BaseModel # @!attribute operator # The person that is designated to swipe the card # - # @return [Symbol, Lithic::Models::AsaRequestWebhookEvent::Pos::Terminal::Operator] - required :operator, enum: -> { Lithic::AsaRequestWebhookEvent::Pos::Terminal::Operator } + # @return [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Operator] + required :operator, + enum: -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Operator } # @!attribute partial_approval_capable # True if the terminal is capable of partial approval. Partial approval is when @@ -903,14 +923,15 @@ class Terminal < Lithic::Internal::Type::BaseModel # @!attribute pin_capability # Status of whether the POS is able to accept PINs # - # @return [Symbol, Lithic::Models::AsaRequestWebhookEvent::Pos::Terminal::PinCapability] - required :pin_capability, enum: -> { Lithic::AsaRequestWebhookEvent::Pos::Terminal::PinCapability } + # @return [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::PinCapability] + required :pin_capability, + enum: -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::PinCapability } # @!attribute type # POS Type # - # @return [Symbol, Lithic::Models::AsaRequestWebhookEvent::Pos::Terminal::Type] - required :type, enum: -> { Lithic::AsaRequestWebhookEvent::Pos::Terminal::Type } + # @return [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Type] + required :type, enum: -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Type } # @!attribute acceptor_terminal_id # Uniquely identifies a terminal at the card acceptor location of acquiring @@ -921,7 +942,8 @@ class Terminal < Lithic::Internal::Type::BaseModel # @!method initialize(attended:, card_retention_capable:, on_premise:, operator:, partial_approval_capable:, pin_capability:, type:, acceptor_terminal_id: nil) # Some parameter documentations has been truncated, see - # {Lithic::Models::AsaRequestWebhookEvent::Pos::Terminal} for more details. + # {Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal} + # for more details. # # @param attended [Boolean] True if a clerk is present at the sale. # @@ -929,19 +951,19 @@ class Terminal < Lithic::Internal::Type::BaseModel # # @param on_premise [Boolean] True if the sale was made at the place of business (vs. mobile). # - # @param operator [Symbol, Lithic::Models::AsaRequestWebhookEvent::Pos::Terminal::Operator] The person that is designated to swipe the card + # @param operator [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Operator] The person that is designated to swipe the card # # @param partial_approval_capable [Boolean] True if the terminal is capable of partial approval. Partial approval is when pa # - # @param pin_capability [Symbol, Lithic::Models::AsaRequestWebhookEvent::Pos::Terminal::PinCapability] Status of whether the POS is able to accept PINs + # @param pin_capability [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::PinCapability] Status of whether the POS is able to accept PINs # - # @param type [Symbol, Lithic::Models::AsaRequestWebhookEvent::Pos::Terminal::Type] POS Type + # @param type [Symbol, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Type] POS Type # # @param acceptor_terminal_id [String, nil] Uniquely identifies a terminal at the card acceptor location of acquiring instit # The person that is designated to swipe the card # - # @see Lithic::Models::AsaRequestWebhookEvent::Pos::Terminal#operator + # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal#operator module Operator extend Lithic::Internal::Type::Enum @@ -956,7 +978,7 @@ module Operator # Status of whether the POS is able to accept PINs # - # @see Lithic::Models::AsaRequestWebhookEvent::Pos::Terminal#pin_capability + # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal#pin_capability module PinCapability extend Lithic::Internal::Type::Enum @@ -971,7 +993,7 @@ module PinCapability # POS Type # - # @see Lithic::Models::AsaRequestWebhookEvent::Pos::Terminal#type + # @see Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal#type module Type extend Lithic::Internal::Type::Enum diff --git a/lib/lithic/models/cards/aggregate_balance_list_params.rb b/lib/lithic/models/cards/aggregate_balance_list_params.rb deleted file mode 100644 index 2a1ef9d7..00000000 --- a/lib/lithic/models/cards/aggregate_balance_list_params.rb +++ /dev/null @@ -1,32 +0,0 @@ -# frozen_string_literal: true - -module Lithic - module Models - module Cards - # @see Lithic::Resources::Cards::AggregateBalances#list - class AggregateBalanceListParams < Lithic::Internal::Type::BaseModel - extend Lithic::Internal::Type::RequestParameters::Converter - include Lithic::Internal::Type::RequestParameters - - # @!attribute account_token - # Cardholder to retrieve aggregate balances for. - # - # @return [String, nil] - optional :account_token, String - - # @!attribute business_account_token - # Business to retrieve aggregate balances for. - # - # @return [String, nil] - optional :business_account_token, String - - # @!method initialize(account_token: nil, business_account_token: nil, request_options: {}) - # @param account_token [String] Cardholder to retrieve aggregate balances for. - # - # @param business_account_token [String] Business to retrieve aggregate balances for. - # - # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] - end - end - end -end diff --git a/lib/lithic/models/cards/aggregate_balance_list_response.rb b/lib/lithic/models/cards/aggregate_balance_list_response.rb deleted file mode 100644 index fa51870a..00000000 --- a/lib/lithic/models/cards/aggregate_balance_list_response.rb +++ /dev/null @@ -1,92 +0,0 @@ -# frozen_string_literal: true - -module Lithic - module Models - module Cards - # @see Lithic::Resources::Cards::AggregateBalances#list - class AggregateBalanceListResponse < Lithic::Internal::Type::BaseModel - # @!attribute available_amount - # Funds available for spend in the currency's smallest unit (e.g., cents for USD) - # - # @return [Integer] - required :available_amount, Integer - - # @!attribute created - # Date and time for when the balance was first created. - # - # @return [Time] - required :created, Time - - # @!attribute currency - # 3-character alphabetic ISO 4217 code for the local currency of the balance. - # - # @return [String] - required :currency, String - - # @!attribute last_card_token - # Globally unique identifier for the card that had its balance updated most - # recently - # - # @return [String] - required :last_card_token, String - - # @!attribute last_transaction_event_token - # Globally unique identifier for the last transaction event that impacted this - # balance - # - # @return [String] - required :last_transaction_event_token, String - - # @!attribute last_transaction_token - # Globally unique identifier for the last transaction that impacted this balance - # - # @return [String] - required :last_transaction_token, String - - # @!attribute pending_amount - # Funds not available for spend due to card authorizations or pending ACH release. - # Shown in the currency's smallest unit (e.g., cents for USD) - # - # @return [Integer] - required :pending_amount, Integer - - # @!attribute total_amount - # The sum of available and pending balance in the currency's smallest unit (e.g., - # cents for USD) - # - # @return [Integer] - required :total_amount, Integer - - # @!attribute updated - # Date and time for when the balance was last updated. - # - # @return [Time] - required :updated, Time - - # @!method initialize(available_amount:, created:, currency:, last_card_token:, last_transaction_event_token:, last_transaction_token:, pending_amount:, total_amount:, updated:) - # Some parameter documentations has been truncated, see - # {Lithic::Models::Cards::AggregateBalanceListResponse} for more details. - # - # Card Aggregate Balance across all end-user accounts - # - # @param available_amount [Integer] Funds available for spend in the currency's smallest unit (e.g., cents for USD) - # - # @param created [Time] Date and time for when the balance was first created. - # - # @param currency [String] 3-character alphabetic ISO 4217 code for the local currency of the balance. - # - # @param last_card_token [String] Globally unique identifier for the card that had its balance updated most recent - # - # @param last_transaction_event_token [String] Globally unique identifier for the last transaction event that impacted this bal - # - # @param last_transaction_token [String] Globally unique identifier for the last transaction that impacted this balance - # - # @param pending_amount [Integer] Funds not available for spend due to card authorizations or pending ACH release. - # - # @param total_amount [Integer] The sum of available and pending balance in the currency's smallest unit (e.g., - # - # @param updated [Time] Date and time for when the balance was last updated. - end - end - end -end diff --git a/lib/lithic/models/external_payment_create_params.rb b/lib/lithic/models/external_payment_create_params.rb index 5e8f1571..7adb232f 100644 --- a/lib/lithic/models/external_payment_create_params.rb +++ b/lib/lithic/models/external_payment_create_params.rb @@ -33,6 +33,8 @@ class ExternalPaymentCreateParams < Lithic::Internal::Type::BaseModel required :payment_type, enum: -> { Lithic::ExternalPaymentCreateParams::PaymentType } # @!attribute token + # Customer-provided token that will serve as an idempotency token. This token will + # become the transaction token. # # @return [String, nil] optional :token, String @@ -53,15 +55,27 @@ class ExternalPaymentCreateParams < Lithic::Internal::Type::BaseModel optional :user_defined_id, String # @!method initialize(amount:, category:, effective_date:, financial_account_token:, payment_type:, token: nil, memo: nil, progress_to: nil, user_defined_id: nil, request_options: {}) + # Some parameter documentations has been truncated, see + # {Lithic::Models::ExternalPaymentCreateParams} for more details. + # # @param amount [Integer] + # # @param category [Symbol, Lithic::Models::ExternalPaymentCreateParams::Category] + # # @param effective_date [Date] + # # @param financial_account_token [String] + # # @param payment_type [Symbol, Lithic::Models::ExternalPaymentCreateParams::PaymentType] - # @param token [String] + # + # @param token [String] Customer-provided token that will serve as an idempotency token. This token will + # # @param memo [String] + # # @param progress_to [Symbol, Lithic::Models::ExternalPaymentCreateParams::ProgressTo] + # # @param user_defined_id [String] + # # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] module Category diff --git a/lib/lithic/models/financial_account.rb b/lib/lithic/models/financial_account.rb index 1b6c45aa..ebe8a552 100644 --- a/lib/lithic/models/financial_account.rb +++ b/lib/lithic/models/financial_account.rb @@ -42,6 +42,12 @@ class FinancialAccount < Lithic::Internal::Type::BaseModel # @return [Symbol, Lithic::Models::FinancialAccount::Status] required :status, enum: -> { Lithic::FinancialAccount::Status } + # @!attribute substatus + # Substatus for the financial account + # + # @return [Symbol, Lithic::Models::FinancialAccount::Substatus, nil] + required :substatus, enum: -> { Lithic::FinancialAccount::Substatus }, nil?: true + # @!attribute type # # @return [Symbol, Lithic::Models::FinancialAccount::Type] @@ -52,6 +58,12 @@ class FinancialAccount < Lithic::Internal::Type::BaseModel # @return [Time] required :updated, Time + # @!attribute user_defined_status + # User-defined status for the financial account + # + # @return [String, nil] + required :user_defined_status, String, nil?: true + # @!attribute account_number # # @return [String, nil] @@ -62,13 +74,7 @@ class FinancialAccount < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :routing_number, String, nil?: true - # @!attribute substatus - # Substatus for the financial account - # - # @return [Symbol, Lithic::Models::FinancialAccount::Substatus, nil] - optional :substatus, enum: -> { Lithic::FinancialAccount::Substatus }, nil?: true - - # @!method initialize(token:, account_token:, created:, credit_configuration:, is_for_benefit_of:, nickname:, status:, type:, updated:, account_number: nil, routing_number: nil, substatus: nil) + # @!method initialize(token:, account_token:, created:, credit_configuration:, is_for_benefit_of:, nickname:, status:, substatus:, type:, updated:, user_defined_status:, account_number: nil, routing_number: nil) # @param token [String] Globally unique identifier for the account # # @param account_token [String, nil] @@ -83,15 +89,17 @@ class FinancialAccount < Lithic::Internal::Type::BaseModel # # @param status [Symbol, Lithic::Models::FinancialAccount::Status] Status of the financial account # + # @param substatus [Symbol, Lithic::Models::FinancialAccount::Substatus, nil] Substatus for the financial account + # # @param type [Symbol, Lithic::Models::FinancialAccount::Type] # # @param updated [Time] # + # @param user_defined_status [String, nil] User-defined status for the financial account + # # @param account_number [String, nil] # # @param routing_number [String, nil] - # - # @param substatus [Symbol, Lithic::Models::FinancialAccount::Substatus, nil] Substatus for the financial account # @see Lithic::Models::FinancialAccount#credit_configuration class CreditConfiguration < Lithic::Internal::Type::BaseModel @@ -163,6 +171,22 @@ module Status # @return [Array] end + # Substatus for the financial account + # + # @see Lithic::Models::FinancialAccount#substatus + module Substatus + extend Lithic::Internal::Type::Enum + + CHARGED_OFF_DELINQUENT = :CHARGED_OFF_DELINQUENT + CHARGED_OFF_FRAUD = :CHARGED_OFF_FRAUD + END_USER_REQUEST = :END_USER_REQUEST + BANK_REQUEST = :BANK_REQUEST + DELINQUENT = :DELINQUENT + + # @!method self.values + # @return [Array] + end + # @see Lithic::Models::FinancialAccount#type module Type extend Lithic::Internal::Type::Enum @@ -181,22 +205,6 @@ module Type # @!method self.values # @return [Array] end - - # Substatus for the financial account - # - # @see Lithic::Models::FinancialAccount#substatus - module Substatus - extend Lithic::Internal::Type::Enum - - CHARGED_OFF_DELINQUENT = :CHARGED_OFF_DELINQUENT - CHARGED_OFF_FRAUD = :CHARGED_OFF_FRAUD - END_USER_REQUEST = :END_USER_REQUEST - BANK_REQUEST = :BANK_REQUEST - DELINQUENT = :DELINQUENT - - # @!method self.values - # @return [Array] - end end end end diff --git a/lib/lithic/models/financial_account_update_status_params.rb b/lib/lithic/models/financial_account_update_status_params.rb index 899ef286..4ec1c0f2 100644 --- a/lib/lithic/models/financial_account_update_status_params.rb +++ b/lib/lithic/models/financial_account_update_status_params.rb @@ -19,11 +19,19 @@ class FinancialAccountUpdateStatusParams < Lithic::Internal::Type::BaseModel # @return [Symbol, Lithic::Models::FinancialAccountUpdateStatusParams::Substatus, nil] required :substatus, enum: -> { Lithic::FinancialAccountUpdateStatusParams::Substatus }, nil?: true - # @!method initialize(status:, substatus:, request_options: {}) + # @!attribute user_defined_status + # User-defined status for the financial account + # + # @return [String, nil] + optional :user_defined_status, String + + # @!method initialize(status:, substatus:, user_defined_status: nil, request_options: {}) # @param status [Symbol, Lithic::Models::FinancialAccountUpdateStatusParams::Status] Status of the financial account # # @param substatus [Symbol, Lithic::Models::FinancialAccountUpdateStatusParams::Substatus, nil] Substatus for the financial account # + # @param user_defined_status [String] User-defined status for the financial account + # # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] # Status of the financial account diff --git a/lib/lithic/models/financial_accounts/loan_tape.rb b/lib/lithic/models/financial_accounts/loan_tape.rb index 99186714..119439a8 100644 --- a/lib/lithic/models/financial_accounts/loan_tape.rb +++ b/lib/lithic/models/financial_accounts/loan_tape.rb @@ -90,8 +90,8 @@ class LoanTape < Lithic::Internal::Type::BaseModel # @!attribute payment_allocation # - # @return [Lithic::Models::FinancialAccounts::CategoryBalances] - required :payment_allocation, -> { Lithic::FinancialAccounts::CategoryBalances } + # @return [Lithic::Models::FinancialAccounts::LoanTape::PaymentAllocation] + required :payment_allocation, -> { Lithic::FinancialAccounts::LoanTape::PaymentAllocation } # @!attribute period_totals # @@ -164,7 +164,7 @@ class LoanTape < Lithic::Internal::Type::BaseModel # # @param minimum_payment_balance [Lithic::Models::FinancialAccounts::LoanTape::MinimumPaymentBalance] # - # @param payment_allocation [Lithic::Models::FinancialAccounts::CategoryBalances] + # @param payment_allocation [Lithic::Models::FinancialAccounts::LoanTape::PaymentAllocation] # # @param period_totals [Lithic::Models::StatementTotals] # @@ -436,6 +436,55 @@ class MinimumPaymentBalance < Lithic::Internal::Type::BaseModel # @param remaining [Integer] end + # @see Lithic::Models::FinancialAccounts::LoanTape#payment_allocation + class PaymentAllocation < Lithic::Internal::Type::BaseModel + # @!attribute fee_details + # + # @return [Lithic::Models::CategoryDetails, nil] + required :fee_details, -> { Lithic::CategoryDetails }, nil?: true + + # @!attribute fees + # Amount allocated to fees in cents + # + # @return [Integer] + required :fees, Integer + + # @!attribute interest + # Amount allocated to interest in cents + # + # @return [Integer] + required :interest, Integer + + # @!attribute interest_details + # + # @return [Lithic::Models::CategoryDetails, nil] + required :interest_details, -> { Lithic::CategoryDetails }, nil?: true + + # @!attribute principal + # Amount allocated to principal in cents + # + # @return [Integer] + required :principal, Integer + + # @!attribute principal_details + # + # @return [Lithic::Models::CategoryDetails, nil] + required :principal_details, -> { Lithic::CategoryDetails }, nil?: true + + # @!method initialize(fee_details:, fees:, interest:, interest_details:, principal:, principal_details:) + # @param fee_details [Lithic::Models::CategoryDetails, nil] + # + # @param fees [Integer] Amount allocated to fees in cents + # + # @param interest [Integer] Amount allocated to interest in cents + # + # @param interest_details [Lithic::Models::CategoryDetails, nil] + # + # @param principal [Integer] Amount allocated to principal in cents + # + # @param principal_details [Lithic::Models::CategoryDetails, nil] + end + # @see Lithic::Models::FinancialAccounts::LoanTape#previous_statement_balance class PreviousStatementBalance < Lithic::Internal::Type::BaseModel # @!attribute amount diff --git a/lib/lithic/models/management_operation_create_params.rb b/lib/lithic/models/management_operation_create_params.rb index c3720df5..7aff24b8 100644 --- a/lib/lithic/models/management_operation_create_params.rb +++ b/lib/lithic/models/management_operation_create_params.rb @@ -38,6 +38,8 @@ class ManagementOperationCreateParams < Lithic::Internal::Type::BaseModel required :financial_account_token, String # @!attribute token + # Customer-provided token that will serve as an idempotency token. This token will + # become the transaction token. # # @return [String, nil] optional :token, String @@ -64,6 +66,9 @@ class ManagementOperationCreateParams < Lithic::Internal::Type::BaseModel optional :user_defined_id, String # @!method initialize(amount:, category:, direction:, effective_date:, event_type:, financial_account_token:, token: nil, memo: nil, on_closed_account: nil, subtype: nil, user_defined_id: nil, request_options: {}) + # Some parameter documentations has been truncated, see + # {Lithic::Models::ManagementOperationCreateParams} for more details. + # # @param amount [Integer] # # @param category [Symbol, Lithic::Models::ManagementOperationCreateParams::Category] @@ -76,7 +81,7 @@ class ManagementOperationCreateParams < Lithic::Internal::Type::BaseModel # # @param financial_account_token [String] # - # @param token [String] + # @param token [String] Customer-provided token that will serve as an idempotency token. This token will # # @param memo [String] # diff --git a/lib/lithic/models/parsed_webhook_event.rb b/lib/lithic/models/parsed_webhook_event.rb index 652ebf75..d00da4bc 100644 --- a/lib/lithic/models/parsed_webhook_event.rb +++ b/lib/lithic/models/parsed_webhook_event.rb @@ -21,8 +21,7 @@ module ParsedWebhookEvent variant -> { Lithic::AccountHolderDocumentUpdatedWebhookEvent } - # The Auth Stream Access request payload that was sent to the ASA responder. - variant -> { Lithic::AsaRequestWebhookEvent } + variant -> { Lithic::CardAuthorizationApprovalRequestWebhookEvent } # A webhook for tokenization decisioning sent to the customer's responder endpoint variant -> { Lithic::TokenizationDecisioningRequestWebhookEvent } @@ -128,7 +127,7 @@ module ParsedWebhookEvent variant -> { Lithic::TokenizationUpdatedWebhookEvent } # Represents a 3DS authentication - variant -> { Lithic::ThreeDSAuthentication } + variant -> { Lithic::ThreeDSAuthenticationApprovalRequestWebhookEvent } # The Dispute object tracks the progression of a dispute throughout its lifecycle. variant -> { Lithic::DisputeTransactionCreatedWebhookEvent } @@ -812,7 +811,7 @@ module EventType end # @!method self.variants - # @return [Array(Lithic::Models::AccountHolderCreatedWebhookEvent, Lithic::Models::ParsedWebhookEvent::KYBPayload, Lithic::Models::ParsedWebhookEvent::KYCPayload, Lithic::Models::ParsedWebhookEvent::LegacyPayload, Lithic::Models::AccountHolderVerificationWebhookEvent, Lithic::Models::AccountHolderDocumentUpdatedWebhookEvent, Lithic::Models::AsaRequestWebhookEvent, Lithic::Models::TokenizationDecisioningRequestWebhookEvent, Lithic::Models::AuthRulesBacktestReportCreatedWebhookEvent, Lithic::Models::BalanceUpdatedWebhookEvent, Lithic::Models::BookTransferTransactionCreatedWebhookEvent, Lithic::Models::BookTransferTransactionUpdatedWebhookEvent, Lithic::Models::CardCreatedWebhookEvent, Lithic::Models::CardConvertedWebhookEvent, Lithic::Models::CardRenewedWebhookEvent, Lithic::Models::CardReissuedWebhookEvent, Lithic::Models::CardShippedWebhookEvent, Lithic::Models::CardTransactionUpdatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataCreatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataUpdatedWebhookEvent, Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent, Lithic::Models::DigitalWalletTokenizationResultWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::DigitalWalletTokenizationUpdatedWebhookEvent, Lithic::Models::DisputeUpdatedWebhookEvent, Lithic::Models::DisputeEvidenceUploadFailedWebhookEvent, Lithic::Models::ExternalBankAccountCreatedWebhookEvent, Lithic::Models::ExternalBankAccountUpdatedWebhookEvent, Lithic::Models::ExternalPaymentCreatedWebhookEvent, Lithic::Models::ExternalPaymentUpdatedWebhookEvent, Lithic::Models::FinancialAccountCreatedWebhookEvent, Lithic::Models::FinancialAccountUpdatedWebhookEvent, Lithic::Models::FundingEventCreatedWebhookEvent, Lithic::Models::LoanTapeCreatedWebhookEvent, Lithic::Models::LoanTapeUpdatedWebhookEvent, Lithic::Models::ManagementOperationCreatedWebhookEvent, Lithic::Models::ManagementOperationUpdatedWebhookEvent, Lithic::Models::InternalTransactionCreatedWebhookEvent, Lithic::Models::InternalTransactionUpdatedWebhookEvent, Lithic::Models::NetworkTotalCreatedWebhookEvent, Lithic::Models::NetworkTotalUpdatedWebhookEvent, Lithic::Models::PaymentTransactionCreatedWebhookEvent, Lithic::Models::PaymentTransactionUpdatedWebhookEvent, Lithic::Models::SettlementReportUpdatedWebhookEvent, Lithic::Models::StatementsCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationChallengeWebhookEvent, Lithic::Models::TokenizationApprovalRequestWebhookEvent, Lithic::Models::TokenizationResultWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::TokenizationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthentication, Lithic::Models::DisputeTransactionCreatedWebhookEvent, Lithic::Models::DisputeTransactionUpdatedWebhookEvent)] + # @return [Array(Lithic::Models::AccountHolderCreatedWebhookEvent, Lithic::Models::ParsedWebhookEvent::KYBPayload, Lithic::Models::ParsedWebhookEvent::KYCPayload, Lithic::Models::ParsedWebhookEvent::LegacyPayload, Lithic::Models::AccountHolderVerificationWebhookEvent, Lithic::Models::AccountHolderDocumentUpdatedWebhookEvent, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent, Lithic::Models::TokenizationDecisioningRequestWebhookEvent, Lithic::Models::AuthRulesBacktestReportCreatedWebhookEvent, Lithic::Models::BalanceUpdatedWebhookEvent, Lithic::Models::BookTransferTransactionCreatedWebhookEvent, Lithic::Models::BookTransferTransactionUpdatedWebhookEvent, Lithic::Models::CardCreatedWebhookEvent, Lithic::Models::CardConvertedWebhookEvent, Lithic::Models::CardRenewedWebhookEvent, Lithic::Models::CardReissuedWebhookEvent, Lithic::Models::CardShippedWebhookEvent, Lithic::Models::CardTransactionUpdatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataCreatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataUpdatedWebhookEvent, Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent, Lithic::Models::DigitalWalletTokenizationResultWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::DigitalWalletTokenizationUpdatedWebhookEvent, Lithic::Models::DisputeUpdatedWebhookEvent, Lithic::Models::DisputeEvidenceUploadFailedWebhookEvent, Lithic::Models::ExternalBankAccountCreatedWebhookEvent, Lithic::Models::ExternalBankAccountUpdatedWebhookEvent, Lithic::Models::ExternalPaymentCreatedWebhookEvent, Lithic::Models::ExternalPaymentUpdatedWebhookEvent, Lithic::Models::FinancialAccountCreatedWebhookEvent, Lithic::Models::FinancialAccountUpdatedWebhookEvent, Lithic::Models::FundingEventCreatedWebhookEvent, Lithic::Models::LoanTapeCreatedWebhookEvent, Lithic::Models::LoanTapeUpdatedWebhookEvent, Lithic::Models::ManagementOperationCreatedWebhookEvent, Lithic::Models::ManagementOperationUpdatedWebhookEvent, Lithic::Models::InternalTransactionCreatedWebhookEvent, Lithic::Models::InternalTransactionUpdatedWebhookEvent, Lithic::Models::NetworkTotalCreatedWebhookEvent, Lithic::Models::NetworkTotalUpdatedWebhookEvent, Lithic::Models::PaymentTransactionCreatedWebhookEvent, Lithic::Models::PaymentTransactionUpdatedWebhookEvent, Lithic::Models::SettlementReportUpdatedWebhookEvent, Lithic::Models::StatementsCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationChallengeWebhookEvent, Lithic::Models::TokenizationApprovalRequestWebhookEvent, Lithic::Models::TokenizationResultWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::TokenizationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationApprovalRequestWebhookEvent, Lithic::Models::DisputeTransactionCreatedWebhookEvent, Lithic::Models::DisputeTransactionUpdatedWebhookEvent)] end end end diff --git a/lib/lithic/models/payment.rb b/lib/lithic/models/payment.rb index 53af3a40..68b8f367 100644 --- a/lib/lithic/models/payment.rb +++ b/lib/lithic/models/payment.rb @@ -289,7 +289,13 @@ class Event < Lithic::Internal::Type::BaseModel optional :detailed_results, -> { Lithic::Internal::Type::ArrayOf[enum: Lithic::Payment::Event::DetailedResult] } - # @!method initialize(token:, amount:, created:, result:, type:, detailed_results: nil) + # @!attribute external_id + # Payment event external ID, for example, ACH trace number. + # + # @return [String, nil] + optional :external_id, String, nil?: true + + # @!method initialize(token:, amount:, created:, result:, type:, detailed_results: nil, external_id: nil) # Some parameter documentations has been truncated, see # {Lithic::Models::Payment::Event} for more details. # @@ -306,6 +312,8 @@ class Event < Lithic::Internal::Type::BaseModel # @param type [Symbol, Lithic::Models::Payment::Event::Type] Event types: # # @param detailed_results [Array] More detailed reasons for the event + # + # @param external_id [String, nil] Payment event external ID, for example, ACH trace number. # APPROVED financial events were successful while DECLINED financial events were # declined by user, Lithic, or the network. @@ -642,6 +650,7 @@ module Type WIRE_INBOUND_ADMIN = :WIRE_INBOUND_ADMIN WIRE_OUTBOUND_PAYMENT = :WIRE_OUTBOUND_PAYMENT WIRE_OUTBOUND_ADMIN = :WIRE_OUTBOUND_ADMIN + WIRE_DRAWDOWN_REQUEST = :WIRE_DRAWDOWN_REQUEST # @!method self.values # @return [Array] diff --git a/lib/lithic/models/three_ds_authentication_approval_request_webhook_event.rb b/lib/lithic/models/three_ds_authentication_approval_request_webhook_event.rb new file mode 100644 index 00000000..bd27f983 --- /dev/null +++ b/lib/lithic/models/three_ds_authentication_approval_request_webhook_event.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module Lithic + module Models + class ThreeDSAuthenticationApprovalRequestWebhookEvent < Lithic::Models::ThreeDSAuthentication + # @!attribute event_type + # + # @return [Symbol, :"three_ds_authentication.approval_request"] + required :event_type, const: :"three_ds_authentication.approval_request" + + # @!method initialize(event_type: :"three_ds_authentication.approval_request") + # Represents a 3DS authentication + # + # @param event_type [Symbol, :"three_ds_authentication.approval_request"] + end + end +end diff --git a/lib/lithic/models/transaction.rb b/lib/lithic/models/transaction.rb index c0dfb3c7..cb8f93e1 100644 --- a/lib/lithic/models/transaction.rb +++ b/lib/lithic/models/transaction.rb @@ -929,6 +929,7 @@ module DetailedResult AUTH_RULE_ALLOWED_MCC = :AUTH_RULE_ALLOWED_MCC AUTH_RULE_BLOCKED_COUNTRY = :AUTH_RULE_BLOCKED_COUNTRY AUTH_RULE_BLOCKED_MCC = :AUTH_RULE_BLOCKED_MCC + AUTH_RULE = :AUTH_RULE CARD_CLOSED = :CARD_CLOSED CARD_CRYPTOGRAM_VALIDATION_FAILURE = :CARD_CRYPTOGRAM_VALIDATION_FAILURE CARD_EXPIRED = :CARD_EXPIRED @@ -1258,6 +1259,7 @@ module Result AUTH_RULE_ALLOWED_MCC = :AUTH_RULE_ALLOWED_MCC AUTH_RULE_BLOCKED_COUNTRY = :AUTH_RULE_BLOCKED_COUNTRY AUTH_RULE_BLOCKED_MCC = :AUTH_RULE_BLOCKED_MCC + AUTH_RULE = :AUTH_RULE CARD_CLOSED = :CARD_CLOSED CARD_CRYPTOGRAM_VALIDATION_FAILURE = :CARD_CRYPTOGRAM_VALIDATION_FAILURE CARD_EXPIRED = :CARD_EXPIRED diff --git a/lib/lithic/models/transfer_limit_list_params.rb b/lib/lithic/models/transfer_limit_list_params.rb new file mode 100644 index 00000000..b9685cfe --- /dev/null +++ b/lib/lithic/models/transfer_limit_list_params.rb @@ -0,0 +1,22 @@ +# frozen_string_literal: true + +module Lithic + module Models + # @see Lithic::Resources::TransferLimits#list + class TransferLimitListParams < Lithic::Internal::Type::BaseModel + extend Lithic::Internal::Type::RequestParameters::Converter + include Lithic::Internal::Type::RequestParameters + + # @!attribute date + # Date for which to retrieve transfer limits (ISO 8601 format) + # + # @return [Date, nil] + optional :date, Date + + # @!method initialize(date: nil, request_options: {}) + # @param date [Date] Date for which to retrieve transfer limits (ISO 8601 format) + # + # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] + end + end +end diff --git a/lib/lithic/models/transfer_limits_response.rb b/lib/lithic/models/transfer_limits_response.rb new file mode 100644 index 00000000..a8899eaf --- /dev/null +++ b/lib/lithic/models/transfer_limits_response.rb @@ -0,0 +1,274 @@ +# frozen_string_literal: true + +module Lithic + module Models + class TransferLimitsResponse < Lithic::Internal::Type::BaseModel + # @!attribute data + # List of transfer limits + # + # @return [Array] + required :data, -> { Lithic::Internal::Type::ArrayOf[Lithic::TransferLimitsResponse::Data] } + + # @!attribute has_more + # Whether there are more transfer limits + # + # @return [Boolean] + required :has_more, Lithic::Internal::Type::Boolean + + # @!method initialize(data:, has_more:) + # @param data [Array] List of transfer limits + # + # @param has_more [Boolean] Whether there are more transfer limits + + class Data < Lithic::Internal::Type::BaseModel + # @!attribute company_id + # Company ID + # + # @return [String] + required :company_id, String + + # @!attribute daily_limit + # Daily limits with progress + # + # @return [Lithic::Models::TransferLimitsResponse::Data::DailyLimit] + required :daily_limit, -> { Lithic::TransferLimitsResponse::Data::DailyLimit } + + # @!attribute date + # The date for the limit view (ISO format) + # + # @return [Date] + required :date, Date + + # @!attribute is_fbo + # Whether the company is a FBO; based on the company ID prefix + # + # @return [Boolean] + required :is_fbo, Lithic::Internal::Type::Boolean + + # @!attribute monthly_limit + # Monthly limits with progress + # + # @return [Lithic::Models::TransferLimitsResponse::Data::MonthlyLimit] + required :monthly_limit, -> { Lithic::TransferLimitsResponse::Data::MonthlyLimit } + + # @!attribute program_limit_per_transaction + # Program transaction limits + # + # @return [Lithic::Models::TransferLimitsResponse::Data::ProgramLimitPerTransaction] + required :program_limit_per_transaction, + -> { Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction } + + # @!method initialize(company_id:, daily_limit:, date:, is_fbo:, monthly_limit:, program_limit_per_transaction:) + # @param company_id [String] Company ID + # + # @param daily_limit [Lithic::Models::TransferLimitsResponse::Data::DailyLimit] Daily limits with progress + # + # @param date [Date] The date for the limit view (ISO format) + # + # @param is_fbo [Boolean] Whether the company is a FBO; based on the company ID prefix + # + # @param monthly_limit [Lithic::Models::TransferLimitsResponse::Data::MonthlyLimit] Monthly limits with progress + # + # @param program_limit_per_transaction [Lithic::Models::TransferLimitsResponse::Data::ProgramLimitPerTransaction] Program transaction limits + + # @see Lithic::Models::TransferLimitsResponse::Data#daily_limit + class DailyLimit < Lithic::Internal::Type::BaseModel + # @!attribute credit + # Credit limits + # + # @return [Lithic::Models::TransferLimitsResponse::Data::DailyLimit::Credit] + required :credit, -> { Lithic::TransferLimitsResponse::Data::DailyLimit::Credit } + + # @!attribute debit + # Debit limits + # + # @return [Lithic::Models::TransferLimitsResponse::Data::DailyLimit::Debit] + required :debit, -> { Lithic::TransferLimitsResponse::Data::DailyLimit::Debit } + + # @!method initialize(credit:, debit:) + # Daily limits with progress + # + # @param credit [Lithic::Models::TransferLimitsResponse::Data::DailyLimit::Credit] Credit limits + # + # @param debit [Lithic::Models::TransferLimitsResponse::Data::DailyLimit::Debit] Debit limits + + # @see Lithic::Models::TransferLimitsResponse::Data::DailyLimit#credit + class Credit < Lithic::Internal::Type::BaseModel + # @!attribute limit + # The limit amount + # + # @return [Integer] + required :limit, Integer + + # @!attribute amount_originated + # Amount originated towards limit + # + # @return [Integer, nil] + optional :amount_originated, Integer + + # @!method initialize(limit:, amount_originated: nil) + # Credit limits + # + # @param limit [Integer] The limit amount + # + # @param amount_originated [Integer] Amount originated towards limit + end + + # @see Lithic::Models::TransferLimitsResponse::Data::DailyLimit#debit + class Debit < Lithic::Internal::Type::BaseModel + # @!attribute limit + # The limit amount + # + # @return [Integer] + required :limit, Integer + + # @!attribute amount_originated + # Amount originated towards limit + # + # @return [Integer, nil] + optional :amount_originated, Integer + + # @!method initialize(limit:, amount_originated: nil) + # Debit limits + # + # @param limit [Integer] The limit amount + # + # @param amount_originated [Integer] Amount originated towards limit + end + end + + # @see Lithic::Models::TransferLimitsResponse::Data#monthly_limit + class MonthlyLimit < Lithic::Internal::Type::BaseModel + # @!attribute credit + # Credit limits + # + # @return [Lithic::Models::TransferLimitsResponse::Data::MonthlyLimit::Credit] + required :credit, -> { Lithic::TransferLimitsResponse::Data::MonthlyLimit::Credit } + + # @!attribute debit + # Debit limits + # + # @return [Lithic::Models::TransferLimitsResponse::Data::MonthlyLimit::Debit] + required :debit, -> { Lithic::TransferLimitsResponse::Data::MonthlyLimit::Debit } + + # @!method initialize(credit:, debit:) + # Monthly limits with progress + # + # @param credit [Lithic::Models::TransferLimitsResponse::Data::MonthlyLimit::Credit] Credit limits + # + # @param debit [Lithic::Models::TransferLimitsResponse::Data::MonthlyLimit::Debit] Debit limits + + # @see Lithic::Models::TransferLimitsResponse::Data::MonthlyLimit#credit + class Credit < Lithic::Internal::Type::BaseModel + # @!attribute limit + # The limit amount + # + # @return [Integer] + required :limit, Integer + + # @!attribute amount_originated + # Amount originated towards limit + # + # @return [Integer, nil] + optional :amount_originated, Integer + + # @!method initialize(limit:, amount_originated: nil) + # Credit limits + # + # @param limit [Integer] The limit amount + # + # @param amount_originated [Integer] Amount originated towards limit + end + + # @see Lithic::Models::TransferLimitsResponse::Data::MonthlyLimit#debit + class Debit < Lithic::Internal::Type::BaseModel + # @!attribute limit + # The limit amount + # + # @return [Integer] + required :limit, Integer + + # @!attribute amount_originated + # Amount originated towards limit + # + # @return [Integer, nil] + optional :amount_originated, Integer + + # @!method initialize(limit:, amount_originated: nil) + # Debit limits + # + # @param limit [Integer] The limit amount + # + # @param amount_originated [Integer] Amount originated towards limit + end + end + + # @see Lithic::Models::TransferLimitsResponse::Data#program_limit_per_transaction + class ProgramLimitPerTransaction < Lithic::Internal::Type::BaseModel + # @!attribute credit + # Credit limits + # + # @return [Lithic::Models::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Credit] + required :credit, -> { Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Credit } + + # @!attribute debit + # Debit limits + # + # @return [Lithic::Models::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Debit] + required :debit, -> { Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Debit } + + # @!method initialize(credit:, debit:) + # Program transaction limits + # + # @param credit [Lithic::Models::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Credit] Credit limits + # + # @param debit [Lithic::Models::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Debit] Debit limits + + # @see Lithic::Models::TransferLimitsResponse::Data::ProgramLimitPerTransaction#credit + class Credit < Lithic::Internal::Type::BaseModel + # @!attribute limit + # The limit amount + # + # @return [Integer] + required :limit, Integer + + # @!attribute amount_originated + # Amount originated towards limit + # + # @return [Integer, nil] + optional :amount_originated, Integer + + # @!method initialize(limit:, amount_originated: nil) + # Credit limits + # + # @param limit [Integer] The limit amount + # + # @param amount_originated [Integer] Amount originated towards limit + end + + # @see Lithic::Models::TransferLimitsResponse::Data::ProgramLimitPerTransaction#debit + class Debit < Lithic::Internal::Type::BaseModel + # @!attribute limit + # The limit amount + # + # @return [Integer] + required :limit, Integer + + # @!attribute amount_originated + # Amount originated towards limit + # + # @return [Integer, nil] + optional :amount_originated, Integer + + # @!method initialize(limit:, amount_originated: nil) + # Debit limits + # + # @param limit [Integer] The limit amount + # + # @param amount_originated [Integer] Amount originated towards limit + end + end + end + end + end +end diff --git a/lib/lithic/resources/aggregate_balances.rb b/lib/lithic/resources/aggregate_balances.rb deleted file mode 100644 index 4430e910..00000000 --- a/lib/lithic/resources/aggregate_balances.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -module Lithic - module Resources - class AggregateBalances - # Get the aggregated balance across all end-user accounts by financial account - # type - # - # @overload list(financial_account_type: nil, request_options: {}) - # - # @param financial_account_type [Symbol, Lithic::Models::AggregateBalanceListParams::FinancialAccountType] Get the aggregate balance for a given Financial Account type. - # - # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] - # - # @return [Lithic::Internal::SinglePage] - # - # @see Lithic::Models::AggregateBalanceListParams - def list(params = {}) - parsed, options = Lithic::AggregateBalanceListParams.dump_request(params) - @client.request( - method: :get, - path: "v1/aggregate_balances", - query: parsed, - page: Lithic::Internal::SinglePage, - model: Lithic::AggregateBalance, - options: options - ) - end - - # @api private - # - # @param client [Lithic::Client] - def initialize(client:) - @client = client - end - end - end -end diff --git a/lib/lithic/resources/book_transfers.rb b/lib/lithic/resources/book_transfers.rb index fc39e345..73d21624 100644 --- a/lib/lithic/resources/book_transfers.rb +++ b/lib/lithic/resources/book_transfers.rb @@ -113,6 +113,33 @@ def list(params = {}) ) end + # Some parameter documentations has been truncated, see + # {Lithic::Models::BookTransferRetryParams} for more details. + # + # Retry a book transfer that has been declined + # + # @overload retry_(book_transfer_token, retry_token:, request_options: {}) + # + # @param book_transfer_token [String] Token of the book transfer to retry + # + # @param retry_token [String] Customer-provided token that will serve as an idempotency token. This token will + # + # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [Lithic::Models::BookTransferResponse] + # + # @see Lithic::Models::BookTransferRetryParams + def retry_(book_transfer_token, params) + parsed, options = Lithic::BookTransferRetryParams.dump_request(params) + @client.request( + method: :post, + path: ["v1/book_transfers/%1$s/retry", book_transfer_token], + body: parsed, + model: Lithic::BookTransferResponse, + options: options + ) + end + # Reverse a book transfer # # @overload reverse(book_transfer_token, memo: nil, request_options: {}) diff --git a/lib/lithic/resources/cards.rb b/lib/lithic/resources/cards.rb index c8276087..5d7bd6cb 100644 --- a/lib/lithic/resources/cards.rb +++ b/lib/lithic/resources/cards.rb @@ -3,9 +3,6 @@ module Lithic module Resources class Cards - # @return [Lithic::Resources::Cards::AggregateBalances] - attr_reader :aggregate_balances - # @return [Lithic::Resources::Cards::Balances] attr_reader :balances @@ -447,7 +444,7 @@ def search_by_pan(params) # {Lithic::Models::CardWebProvisionParams} for more details. # # Allow your cardholders to directly add payment cards to the device's digital - # wallet from a browser on the web. Currently only suported for Apple Pay. + # wallet from a browser on the web. # # This requires some additional setup and configuration. Please # [Contact Us](https://lithic.com/contact) or your Customer Success representative @@ -486,7 +483,6 @@ def web_provision(card_token, params = {}) # @param client [Lithic::Client] def initialize(client:) @client = client - @aggregate_balances = Lithic::Resources::Cards::AggregateBalances.new(client: client) @balances = Lithic::Resources::Cards::Balances.new(client: client) @financial_transactions = Lithic::Resources::Cards::FinancialTransactions.new(client: client) end diff --git a/lib/lithic/resources/cards/aggregate_balances.rb b/lib/lithic/resources/cards/aggregate_balances.rb deleted file mode 100644 index 8d7364ee..00000000 --- a/lib/lithic/resources/cards/aggregate_balances.rb +++ /dev/null @@ -1,41 +0,0 @@ -# frozen_string_literal: true - -module Lithic - module Resources - class Cards - class AggregateBalances - # Get the aggregated card balance across all end-user accounts. - # - # @overload list(account_token: nil, business_account_token: nil, request_options: {}) - # - # @param account_token [String] Cardholder to retrieve aggregate balances for. - # - # @param business_account_token [String] Business to retrieve aggregate balances for. - # - # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] - # - # @return [Lithic::Internal::SinglePage] - # - # @see Lithic::Models::Cards::AggregateBalanceListParams - def list(params = {}) - parsed, options = Lithic::Cards::AggregateBalanceListParams.dump_request(params) - @client.request( - method: :get, - path: "v1/cards/aggregate_balances", - query: parsed, - page: Lithic::Internal::SinglePage, - model: Lithic::Models::Cards::AggregateBalanceListResponse, - options: options - ) - end - - # @api private - # - # @param client [Lithic::Client] - def initialize(client:) - @client = client - end - end - end - end -end diff --git a/lib/lithic/resources/external_payments.rb b/lib/lithic/resources/external_payments.rb index f95197dd..75a572b3 100644 --- a/lib/lithic/resources/external_payments.rb +++ b/lib/lithic/resources/external_payments.rb @@ -3,19 +3,31 @@ module Lithic module Resources class ExternalPayments + # Some parameter documentations has been truncated, see + # {Lithic::Models::ExternalPaymentCreateParams} for more details. + # # Create external payment # # @overload create(amount:, category:, effective_date:, financial_account_token:, payment_type:, token: nil, memo: nil, progress_to: nil, user_defined_id: nil, request_options: {}) # # @param amount [Integer] + # # @param category [Symbol, Lithic::Models::ExternalPaymentCreateParams::Category] + # # @param effective_date [Date] + # # @param financial_account_token [String] + # # @param payment_type [Symbol, Lithic::Models::ExternalPaymentCreateParams::PaymentType] - # @param token [String] + # + # @param token [String] Customer-provided token that will serve as an idempotency token. This token will + # # @param memo [String] + # # @param progress_to [Symbol, Lithic::Models::ExternalPaymentCreateParams::ProgressTo] + # # @param user_defined_id [String] + # # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] # # @return [Lithic::Models::ExternalPayment] diff --git a/lib/lithic/resources/financial_accounts.rb b/lib/lithic/resources/financial_accounts.rb index 646b84f4..ee7e18c0 100644 --- a/lib/lithic/resources/financial_accounts.rb +++ b/lib/lithic/resources/financial_accounts.rb @@ -145,7 +145,7 @@ def register_account_number(financial_account_token, params) # Update financial account status # - # @overload update_status(financial_account_token, status:, substatus:, request_options: {}) + # @overload update_status(financial_account_token, status:, substatus:, user_defined_status: nil, request_options: {}) # # @param financial_account_token [String] Globally unique identifier for financial account. # @@ -153,6 +153,8 @@ def register_account_number(financial_account_token, params) # # @param substatus [Symbol, Lithic::Models::FinancialAccountUpdateStatusParams::Substatus, nil] Substatus for the financial account # + # @param user_defined_status [String] User-defined status for the financial account + # # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] # # @return [Lithic::Models::FinancialAccount] diff --git a/lib/lithic/resources/management_operations.rb b/lib/lithic/resources/management_operations.rb index aa4af9b5..6a0c4212 100644 --- a/lib/lithic/resources/management_operations.rb +++ b/lib/lithic/resources/management_operations.rb @@ -3,6 +3,9 @@ module Lithic module Resources class ManagementOperations + # Some parameter documentations has been truncated, see + # {Lithic::Models::ManagementOperationCreateParams} for more details. + # # Create management operation # # @overload create(amount:, category:, direction:, effective_date:, event_type:, financial_account_token:, token: nil, memo: nil, on_closed_account: nil, subtype: nil, user_defined_id: nil, request_options: {}) @@ -19,7 +22,7 @@ class ManagementOperations # # @param financial_account_token [String] # - # @param token [String] + # @param token [String] Customer-provided token that will serve as an idempotency token. This token will # # @param memo [String] # diff --git a/lib/lithic/resources/transfer_limits.rb b/lib/lithic/resources/transfer_limits.rb new file mode 100644 index 00000000..8bb97464 --- /dev/null +++ b/lib/lithic/resources/transfer_limits.rb @@ -0,0 +1,37 @@ +# frozen_string_literal: true + +module Lithic + module Resources + class TransferLimits + # Get transfer limits for a specified date + # + # @overload list(date: nil, request_options: {}) + # + # @param date [Date] Date for which to retrieve transfer limits (ISO 8601 format) + # + # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [Lithic::Internal::SinglePage] + # + # @see Lithic::Models::TransferLimitListParams + def list(params = {}) + parsed, options = Lithic::TransferLimitListParams.dump_request(params) + @client.request( + method: :get, + path: "v1/transfer_limits", + query: parsed, + page: Lithic::Internal::SinglePage, + model: Lithic::TransferLimitsResponse::Data, + options: options + ) + end + + # @api private + # + # @param client [Lithic::Client] + def initialize(client:) + @client = client + end + end + end +end diff --git a/lib/lithic/resources/webhooks.rb b/lib/lithic/resources/webhooks.rb index ee7d93d7..fd3925b2 100644 --- a/lib/lithic/resources/webhooks.rb +++ b/lib/lithic/resources/webhooks.rb @@ -32,7 +32,7 @@ def parse(payload, headers:, secret: nil) # # @param payload [String] The raw webhook payload as a string # - # @return [Lithic::Models::AccountHolderCreatedWebhookEvent, Lithic::Models::ParsedWebhookEvent::KYBPayload, Lithic::Models::ParsedWebhookEvent::KYCPayload, Lithic::Models::ParsedWebhookEvent::LegacyPayload, Lithic::Models::AccountHolderVerificationWebhookEvent, Lithic::Models::AccountHolderDocumentUpdatedWebhookEvent, Lithic::Models::AsaRequestWebhookEvent, Lithic::Models::TokenizationDecisioningRequestWebhookEvent, Lithic::Models::AuthRulesBacktestReportCreatedWebhookEvent, Lithic::Models::BalanceUpdatedWebhookEvent, Lithic::Models::BookTransferTransactionCreatedWebhookEvent, Lithic::Models::BookTransferTransactionUpdatedWebhookEvent, Lithic::Models::CardCreatedWebhookEvent, Lithic::Models::CardConvertedWebhookEvent, Lithic::Models::CardRenewedWebhookEvent, Lithic::Models::CardReissuedWebhookEvent, Lithic::Models::CardShippedWebhookEvent, Lithic::Models::CardTransactionUpdatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataCreatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataUpdatedWebhookEvent, Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent, Lithic::Models::DigitalWalletTokenizationResultWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::DigitalWalletTokenizationUpdatedWebhookEvent, Lithic::Models::DisputeUpdatedWebhookEvent, Lithic::Models::DisputeEvidenceUploadFailedWebhookEvent, Lithic::Models::ExternalBankAccountCreatedWebhookEvent, Lithic::Models::ExternalBankAccountUpdatedWebhookEvent, Lithic::Models::ExternalPaymentCreatedWebhookEvent, Lithic::Models::ExternalPaymentUpdatedWebhookEvent, Lithic::Models::FinancialAccountCreatedWebhookEvent, Lithic::Models::FinancialAccountUpdatedWebhookEvent, Lithic::Models::FundingEventCreatedWebhookEvent, Lithic::Models::LoanTapeCreatedWebhookEvent, Lithic::Models::LoanTapeUpdatedWebhookEvent, Lithic::Models::ManagementOperationCreatedWebhookEvent, Lithic::Models::ManagementOperationUpdatedWebhookEvent, Lithic::Models::InternalTransactionCreatedWebhookEvent, Lithic::Models::InternalTransactionUpdatedWebhookEvent, Lithic::Models::NetworkTotalCreatedWebhookEvent, Lithic::Models::NetworkTotalUpdatedWebhookEvent, Lithic::Models::PaymentTransactionCreatedWebhookEvent, Lithic::Models::PaymentTransactionUpdatedWebhookEvent, Lithic::Models::SettlementReportUpdatedWebhookEvent, Lithic::Models::StatementsCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationChallengeWebhookEvent, Lithic::Models::TokenizationApprovalRequestWebhookEvent, Lithic::Models::TokenizationResultWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::TokenizationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthentication, Lithic::Models::DisputeTransactionCreatedWebhookEvent, Lithic::Models::DisputeTransactionUpdatedWebhookEvent] + # @return [Lithic::Models::AccountHolderCreatedWebhookEvent, Lithic::Models::ParsedWebhookEvent::KYBPayload, Lithic::Models::ParsedWebhookEvent::KYCPayload, Lithic::Models::ParsedWebhookEvent::LegacyPayload, Lithic::Models::AccountHolderVerificationWebhookEvent, Lithic::Models::AccountHolderDocumentUpdatedWebhookEvent, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent, Lithic::Models::TokenizationDecisioningRequestWebhookEvent, Lithic::Models::AuthRulesBacktestReportCreatedWebhookEvent, Lithic::Models::BalanceUpdatedWebhookEvent, Lithic::Models::BookTransferTransactionCreatedWebhookEvent, Lithic::Models::BookTransferTransactionUpdatedWebhookEvent, Lithic::Models::CardCreatedWebhookEvent, Lithic::Models::CardConvertedWebhookEvent, Lithic::Models::CardRenewedWebhookEvent, Lithic::Models::CardReissuedWebhookEvent, Lithic::Models::CardShippedWebhookEvent, Lithic::Models::CardTransactionUpdatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataCreatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataUpdatedWebhookEvent, Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent, Lithic::Models::DigitalWalletTokenizationResultWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::DigitalWalletTokenizationUpdatedWebhookEvent, Lithic::Models::DisputeUpdatedWebhookEvent, Lithic::Models::DisputeEvidenceUploadFailedWebhookEvent, Lithic::Models::ExternalBankAccountCreatedWebhookEvent, Lithic::Models::ExternalBankAccountUpdatedWebhookEvent, Lithic::Models::ExternalPaymentCreatedWebhookEvent, Lithic::Models::ExternalPaymentUpdatedWebhookEvent, Lithic::Models::FinancialAccountCreatedWebhookEvent, Lithic::Models::FinancialAccountUpdatedWebhookEvent, Lithic::Models::FundingEventCreatedWebhookEvent, Lithic::Models::LoanTapeCreatedWebhookEvent, Lithic::Models::LoanTapeUpdatedWebhookEvent, Lithic::Models::ManagementOperationCreatedWebhookEvent, Lithic::Models::ManagementOperationUpdatedWebhookEvent, Lithic::Models::InternalTransactionCreatedWebhookEvent, Lithic::Models::InternalTransactionUpdatedWebhookEvent, Lithic::Models::NetworkTotalCreatedWebhookEvent, Lithic::Models::NetworkTotalUpdatedWebhookEvent, Lithic::Models::PaymentTransactionCreatedWebhookEvent, Lithic::Models::PaymentTransactionUpdatedWebhookEvent, Lithic::Models::SettlementReportUpdatedWebhookEvent, Lithic::Models::StatementsCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationChallengeWebhookEvent, Lithic::Models::TokenizationApprovalRequestWebhookEvent, Lithic::Models::TokenizationResultWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::TokenizationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationApprovalRequestWebhookEvent, Lithic::Models::DisputeTransactionCreatedWebhookEvent, Lithic::Models::DisputeTransactionUpdatedWebhookEvent] def parse_unsafe(payload) parsed = JSON.parse(payload, symbolize_names: true) Lithic::Internal::Type::Converter.coerce(Lithic::Models::ParsedWebhookEvent, parsed) @@ -60,7 +60,8 @@ def parse_unsafe(payload) def verify_signature(payload:, headers:, secret: nil) secret ||= ENV["LITHIC_WEBHOOK_SECRET"] if secret.nil? || secret.empty? - raise ArgumentError, "Webhook secret must be provided or set in LITHIC_WEBHOOK_SECRET environment variable" + raise ArgumentError, + "Webhook secret must be provided or set in LITHIC_WEBHOOK_SECRET environment variable" end begin diff --git a/lib/lithic/version.rb b/lib/lithic/version.rb index 11e5674a..5040b33e 100644 --- a/lib/lithic/version.rb +++ b/lib/lithic/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Lithic - VERSION = "0.2.0" + VERSION = "0.3.0" end diff --git a/rbi/lithic/client.rbi b/rbi/lithic/client.rbi index 2b400356..61eb71d1 100644 --- a/rbi/lithic/client.rbi +++ b/rbi/lithic/client.rbi @@ -49,9 +49,6 @@ module Lithic sig { returns(Lithic::Resources::Balances) } attr_reader :balances - sig { returns(Lithic::Resources::AggregateBalances) } - attr_reader :aggregate_balances - sig { returns(Lithic::Resources::Disputes) } attr_reader :disputes @@ -118,6 +115,9 @@ module Lithic sig { returns(Lithic::Resources::AccountActivity) } attr_reader :account_activity + sig { returns(Lithic::Resources::TransferLimits) } + attr_reader :transfer_limits + sig { returns(Lithic::Resources::Webhooks) } attr_reader :webhooks diff --git a/rbi/lithic/models.rbi b/rbi/lithic/models.rbi index 71191d59..e4b80c79 100644 --- a/rbi/lithic/models.rbi +++ b/rbi/lithic/models.rbi @@ -62,14 +62,8 @@ module Lithic AddressUpdate = Lithic::Models::AddressUpdate - AggregateBalance = Lithic::Models::AggregateBalance - - AggregateBalanceListParams = Lithic::Models::AggregateBalanceListParams - APIStatus = Lithic::Models::APIStatus - AsaRequestWebhookEvent = Lithic::Models::AsaRequestWebhookEvent - AuthRules = Lithic::Models::AuthRules AuthRulesBacktestReportCreatedWebhookEvent = @@ -97,6 +91,8 @@ module Lithic BookTransferRetrieveParams = Lithic::Models::BookTransferRetrieveParams + BookTransferRetryParams = Lithic::Models::BookTransferRetryParams + BookTransferReverseParams = Lithic::Models::BookTransferReverseParams BookTransferTransactionCreatedWebhookEvent = @@ -107,6 +103,9 @@ module Lithic Card = Lithic::Models::Card + CardAuthorizationApprovalRequestWebhookEvent = + Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent + CardBulkOrder = Lithic::Models::CardBulkOrder CardBulkOrderCreateParams = Lithic::Models::CardBulkOrderCreateParams @@ -492,6 +491,9 @@ module Lithic ThreeDSAuthentication = Lithic::Models::ThreeDSAuthentication + ThreeDSAuthenticationApprovalRequestWebhookEvent = + Lithic::Models::ThreeDSAuthenticationApprovalRequestWebhookEvent + ThreeDSAuthenticationChallengeWebhookEvent = Lithic::Models::ThreeDSAuthenticationChallengeWebhookEvent @@ -592,6 +594,10 @@ module Lithic TransferCreateParams = Lithic::Models::TransferCreateParams + TransferLimitListParams = Lithic::Models::TransferLimitListParams + + TransferLimitsResponse = Lithic::Models::TransferLimitsResponse + VerificationMethod = Lithic::Models::VerificationMethod WalletDecisioningInfo = Lithic::Models::WalletDecisioningInfo diff --git a/rbi/lithic/models/aggregate_balance.rbi b/rbi/lithic/models/aggregate_balance.rbi deleted file mode 100644 index adf85f0b..00000000 --- a/rbi/lithic/models/aggregate_balance.rbi +++ /dev/null @@ -1,164 +0,0 @@ -# typed: strong - -module Lithic - module Models - class AggregateBalance < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any(Lithic::AggregateBalance, Lithic::Internal::AnyHash) - end - - # Funds available for spend in the currency's smallest unit (e.g., cents for USD) - sig { returns(Integer) } - attr_accessor :available_amount - - # Date and time for when the balance was first created. - sig { returns(Time) } - attr_accessor :created - - # 3-character alphabetic ISO 4217 code for the local currency of the balance. - sig { returns(String) } - attr_accessor :currency - - # Type of financial account - sig do - returns(Lithic::AggregateBalance::FinancialAccountType::TaggedSymbol) - end - attr_accessor :financial_account_type - - # Globally unique identifier for the financial account that had its balance - # updated most recently - sig { returns(String) } - attr_accessor :last_financial_account_token - - # Globally unique identifier for the last transaction event that impacted this - # balance - sig { returns(String) } - attr_accessor :last_transaction_event_token - - # Globally unique identifier for the last transaction that impacted this balance - sig { returns(String) } - attr_accessor :last_transaction_token - - # Funds not available for spend due to card authorizations or pending ACH release. - # Shown in the currency's smallest unit (e.g., cents for USD) - sig { returns(Integer) } - attr_accessor :pending_amount - - # The sum of available and pending balance in the currency's smallest unit (e.g., - # cents for USD) - sig { returns(Integer) } - attr_accessor :total_amount - - # Date and time for when the balance was last updated. - sig { returns(Time) } - attr_accessor :updated - - # Aggregate Balance across all end-user accounts - sig do - params( - available_amount: Integer, - created: Time, - currency: String, - financial_account_type: - Lithic::AggregateBalance::FinancialAccountType::OrSymbol, - last_financial_account_token: String, - last_transaction_event_token: String, - last_transaction_token: String, - pending_amount: Integer, - total_amount: Integer, - updated: Time - ).returns(T.attached_class) - end - def self.new( - # Funds available for spend in the currency's smallest unit (e.g., cents for USD) - available_amount:, - # Date and time for when the balance was first created. - created:, - # 3-character alphabetic ISO 4217 code for the local currency of the balance. - currency:, - # Type of financial account - financial_account_type:, - # Globally unique identifier for the financial account that had its balance - # updated most recently - last_financial_account_token:, - # Globally unique identifier for the last transaction event that impacted this - # balance - last_transaction_event_token:, - # Globally unique identifier for the last transaction that impacted this balance - last_transaction_token:, - # Funds not available for spend due to card authorizations or pending ACH release. - # Shown in the currency's smallest unit (e.g., cents for USD) - pending_amount:, - # The sum of available and pending balance in the currency's smallest unit (e.g., - # cents for USD) - total_amount:, - # Date and time for when the balance was last updated. - updated: - ) - end - - sig do - override.returns( - { - available_amount: Integer, - created: Time, - currency: String, - financial_account_type: - Lithic::AggregateBalance::FinancialAccountType::TaggedSymbol, - last_financial_account_token: String, - last_transaction_event_token: String, - last_transaction_token: String, - pending_amount: Integer, - total_amount: Integer, - updated: Time - } - ) - end - def to_hash - end - - # Type of financial account - module FinancialAccountType - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all(Symbol, Lithic::AggregateBalance::FinancialAccountType) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ISSUING = - T.let( - :ISSUING, - Lithic::AggregateBalance::FinancialAccountType::TaggedSymbol - ) - OPERATING = - T.let( - :OPERATING, - Lithic::AggregateBalance::FinancialAccountType::TaggedSymbol - ) - RESERVE = - T.let( - :RESERVE, - Lithic::AggregateBalance::FinancialAccountType::TaggedSymbol - ) - SECURITY = - T.let( - :SECURITY, - Lithic::AggregateBalance::FinancialAccountType::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::AggregateBalance::FinancialAccountType::TaggedSymbol - ] - ) - end - def self.values - end - end - end - end -end diff --git a/rbi/lithic/models/aggregate_balance_list_params.rbi b/rbi/lithic/models/aggregate_balance_list_params.rbi deleted file mode 100644 index 89092a42..00000000 --- a/rbi/lithic/models/aggregate_balance_list_params.rbi +++ /dev/null @@ -1,104 +0,0 @@ -# typed: strong - -module Lithic - module Models - class AggregateBalanceListParams < Lithic::Internal::Type::BaseModel - extend Lithic::Internal::Type::RequestParameters::Converter - include Lithic::Internal::Type::RequestParameters - - OrHash = - T.type_alias do - T.any(Lithic::AggregateBalanceListParams, Lithic::Internal::AnyHash) - end - - # Get the aggregate balance for a given Financial Account type. - sig do - returns( - T.nilable( - Lithic::AggregateBalanceListParams::FinancialAccountType::OrSymbol - ) - ) - end - attr_reader :financial_account_type - - sig do - params( - financial_account_type: - Lithic::AggregateBalanceListParams::FinancialAccountType::OrSymbol - ).void - end - attr_writer :financial_account_type - - sig do - params( - financial_account_type: - Lithic::AggregateBalanceListParams::FinancialAccountType::OrSymbol, - request_options: Lithic::RequestOptions::OrHash - ).returns(T.attached_class) - end - def self.new( - # Get the aggregate balance for a given Financial Account type. - financial_account_type: nil, - request_options: {} - ) - end - - sig do - override.returns( - { - financial_account_type: - Lithic::AggregateBalanceListParams::FinancialAccountType::OrSymbol, - request_options: Lithic::RequestOptions - } - ) - end - def to_hash - end - - # Get the aggregate balance for a given Financial Account type. - module FinancialAccountType - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Lithic::AggregateBalanceListParams::FinancialAccountType - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ISSUING = - T.let( - :ISSUING, - Lithic::AggregateBalanceListParams::FinancialAccountType::TaggedSymbol - ) - OPERATING = - T.let( - :OPERATING, - Lithic::AggregateBalanceListParams::FinancialAccountType::TaggedSymbol - ) - RESERVE = - T.let( - :RESERVE, - Lithic::AggregateBalanceListParams::FinancialAccountType::TaggedSymbol - ) - SECURITY = - T.let( - :SECURITY, - Lithic::AggregateBalanceListParams::FinancialAccountType::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::AggregateBalanceListParams::FinancialAccountType::TaggedSymbol - ] - ) - end - def self.values - end - end - end - end -end diff --git a/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi b/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi index bc3df608..163c17e8 100644 --- a/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +++ b/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi @@ -514,6 +514,8 @@ module Lithic # `TOO_MANY_RECENT_TOKENS`, `UNABLE_TO_ASSESS`. # - `TOKEN_REQUESTOR_ID`: Unique identifier for the entity requesting the token. # - `WALLET_TOKEN_STATUS`: The current status of the wallet token. + # - `CARD_STATE`: The state of the card being tokenized. Valid values are + # `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, `PENDING_FULFILLMENT`. sig do returns( Lithic::AuthRules::ConditionalTokenizationActionParameters::Condition::Attribute::OrSymbol @@ -570,6 +572,8 @@ module Lithic # `TOO_MANY_RECENT_TOKENS`, `UNABLE_TO_ASSESS`. # - `TOKEN_REQUESTOR_ID`: Unique identifier for the entity requesting the token. # - `WALLET_TOKEN_STATUS`: The current status of the wallet token. + # - `CARD_STATE`: The state of the card being tokenized. Valid values are + # `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, `PENDING_FULFILLMENT`. attribute:, # The operation to apply to the attribute operation:, @@ -623,6 +627,8 @@ module Lithic # `TOO_MANY_RECENT_TOKENS`, `UNABLE_TO_ASSESS`. # - `TOKEN_REQUESTOR_ID`: Unique identifier for the entity requesting the token. # - `WALLET_TOKEN_STATUS`: The current status of the wallet token. + # - `CARD_STATE`: The state of the card being tokenized. Valid values are + # `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`, `PENDING_FULFILLMENT`. module Attribute extend Lithic::Internal::Type::Enum @@ -685,6 +691,11 @@ module Lithic :WALLET_TOKEN_STATUS, Lithic::AuthRules::ConditionalTokenizationActionParameters::Condition::Attribute::TaggedSymbol ) + CARD_STATE = + T.let( + :CARD_STATE, + Lithic::AuthRules::ConditionalTokenizationActionParameters::Condition::Attribute::TaggedSymbol + ) sig do override.returns( diff --git a/rbi/lithic/models/book_transfer_retry_params.rbi b/rbi/lithic/models/book_transfer_retry_params.rbi new file mode 100644 index 00000000..cae34f2c --- /dev/null +++ b/rbi/lithic/models/book_transfer_retry_params.rbi @@ -0,0 +1,42 @@ +# typed: strong + +module Lithic + module Models + class BookTransferRetryParams < Lithic::Internal::Type::BaseModel + extend Lithic::Internal::Type::RequestParameters::Converter + include Lithic::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any(Lithic::BookTransferRetryParams, Lithic::Internal::AnyHash) + end + + # Customer-provided token that will serve as an idempotency token. This token will + # become the transaction token. + sig { returns(String) } + attr_accessor :retry_token + + sig do + params( + retry_token: String, + request_options: Lithic::RequestOptions::OrHash + ).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. + retry_token:, + request_options: {} + ) + end + + sig do + override.returns( + { retry_token: String, request_options: Lithic::RequestOptions } + ) + end + def to_hash + end + end + end +end diff --git a/rbi/lithic/models/asa_request_webhook_event.rbi b/rbi/lithic/models/card_authorization_approval_request_webhook_event.rbi similarity index 66% rename from rbi/lithic/models/asa_request_webhook_event.rbi rename to rbi/lithic/models/card_authorization_approval_request_webhook_event.rbi index b50ad86a..501abc25 100644 --- a/rbi/lithic/models/asa_request_webhook_event.rbi +++ b/rbi/lithic/models/card_authorization_approval_request_webhook_event.rbi @@ -2,10 +2,13 @@ module Lithic module Models - class AsaRequestWebhookEvent < Lithic::Internal::Type::BaseModel + class CardAuthorizationApprovalRequestWebhookEvent < Lithic::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(Lithic::AsaRequestWebhookEvent, Lithic::Internal::AnyHash) + T.any( + Lithic::CardAuthorizationApprovalRequestWebhookEvent, + Lithic::Internal::AnyHash + ) end # The provisional transaction group uuid associated with the authorization @@ -29,17 +32,28 @@ module Lithic sig { returns(Integer) } attr_accessor :authorization_amount - sig { returns(Lithic::AsaRequestWebhookEvent::Avs) } + sig { returns(Lithic::CardAuthorizationApprovalRequestWebhookEvent::Avs) } attr_reader :avs - sig { params(avs: Lithic::AsaRequestWebhookEvent::Avs::OrHash).void } + sig do + params( + avs: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Avs::OrHash + ).void + end attr_writer :avs # Card object in ASA - sig { returns(Lithic::AsaRequestWebhookEvent::Card) } + sig do + returns(Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card) + end attr_reader :card - sig { params(card: Lithic::AsaRequestWebhookEvent::Card::OrHash).void } + sig do + params( + card: + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::OrHash + ).void + end attr_writer :card # 3-character alphabetic ISO 4217 code for cardholder's billing currency. @@ -59,6 +73,9 @@ module Lithic sig { returns(Time) } attr_accessor :created + sig { returns(Symbol) } + attr_accessor :event_type + sig { returns(Lithic::Merchant) } attr_reader :merchant @@ -85,27 +102,34 @@ module Lithic # The type of authorization request that this request is for. Note that # `CREDIT_AUTHORIZATION` and `FINANCIAL_CREDIT_AUTHORIZATION` is only available to # users with credit decisioning via ASA enabled. - sig { returns(Lithic::AsaRequestWebhookEvent::Status::TaggedSymbol) } + sig do + returns( + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Status::TaggedSymbol + ) + end attr_accessor :status # The entity that initiated the transaction. sig do returns( - Lithic::AsaRequestWebhookEvent::TransactionInitiator::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::TransactionInitiator::TaggedSymbol ) end attr_accessor :transaction_initiator sig do returns( - T.nilable(Lithic::AsaRequestWebhookEvent::AccountType::TaggedSymbol) + T.nilable( + Lithic::CardAuthorizationApprovalRequestWebhookEvent::AccountType::TaggedSymbol + ) ) end attr_reader :account_type sig do params( - account_type: Lithic::AsaRequestWebhookEvent::AccountType::OrSymbol + account_type: + Lithic::CardAuthorizationApprovalRequestWebhookEvent::AccountType::OrSymbol ).void end attr_writer :account_type @@ -148,13 +172,21 @@ module Lithic # Optional Object containing information if the Card is a part of a Fleet managed # program - sig { returns(T.nilable(Lithic::AsaRequestWebhookEvent::FleetInfo)) } + sig do + returns( + T.nilable( + Lithic::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo + ) + ) + end attr_reader :fleet_info sig do params( fleet_info: - T.nilable(Lithic::AsaRequestWebhookEvent::FleetInfo::OrHash) + T.nilable( + Lithic::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::OrHash + ) ).void end attr_writer :fleet_info @@ -162,14 +194,18 @@ module Lithic # The latest Authorization Challenge that was issued to the cardholder for this # merchant. sig do - returns(T.nilable(Lithic::AsaRequestWebhookEvent::LatestChallenge)) + returns( + T.nilable( + Lithic::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge + ) + ) end attr_reader :latest_challenge sig do params( latest_challenge: - Lithic::AsaRequestWebhookEvent::LatestChallenge::OrHash + Lithic::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge::OrHash ).void end attr_writer :latest_challenge @@ -177,13 +213,18 @@ module Lithic # Card network of the authorization. sig do returns( - T.nilable(Lithic::AsaRequestWebhookEvent::Network::TaggedSymbol) + T.nilable( + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Network::TaggedSymbol + ) ) end attr_reader :network sig do - params(network: Lithic::AsaRequestWebhookEvent::Network::OrSymbol).void + params( + network: + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Network::OrSymbol + ).void end attr_writer :network @@ -202,7 +243,11 @@ module Lithic # values and how to use them. This object is only available to certain programs- # contact your Customer Success Manager to discuss enabling access. sig do - returns(T.nilable(Lithic::AsaRequestWebhookEvent::NetworkSpecificData)) + returns( + T.nilable( + Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData + ) + ) end attr_reader :network_specific_data @@ -210,16 +255,24 @@ module Lithic params( network_specific_data: T.nilable( - Lithic::AsaRequestWebhookEvent::NetworkSpecificData::OrHash + Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::OrHash ) ).void end attr_writer :network_specific_data - sig { returns(T.nilable(Lithic::AsaRequestWebhookEvent::Pos)) } + sig do + returns( + T.nilable(Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos) + ) + end attr_reader :pos - sig { params(pos: Lithic::AsaRequestWebhookEvent::Pos::OrHash).void } + sig do + params( + pos: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::OrHash + ).void + end attr_writer :pos sig { returns(T.nilable(Lithic::TokenInfo)) } @@ -235,15 +288,16 @@ module Lithic sig { params(ttl: Time).void } attr_writer :ttl - # The Auth Stream Access request payload that was sent to the ASA responder. sig do params( token: String, acquirer_fee: Integer, amount: Integer, authorization_amount: Integer, - avs: Lithic::AsaRequestWebhookEvent::Avs::OrHash, - card: Lithic::AsaRequestWebhookEvent::Card::OrHash, + avs: + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Avs::OrHash, + card: + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::OrHash, cardholder_currency: String, cash_amount: Integer, created: Time, @@ -251,27 +305,34 @@ module Lithic merchant_amount: Integer, merchant_currency: String, settled_amount: Integer, - status: Lithic::AsaRequestWebhookEvent::Status::OrSymbol, + status: + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Status::OrSymbol, transaction_initiator: - Lithic::AsaRequestWebhookEvent::TransactionInitiator::OrSymbol, - account_type: Lithic::AsaRequestWebhookEvent::AccountType::OrSymbol, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::TransactionInitiator::OrSymbol, + account_type: + Lithic::CardAuthorizationApprovalRequestWebhookEvent::AccountType::OrSymbol, cardholder_authentication: Lithic::CardholderAuthentication::OrHash, cashback: Integer, conversion_rate: Float, event_token: String, fleet_info: - T.nilable(Lithic::AsaRequestWebhookEvent::FleetInfo::OrHash), + T.nilable( + Lithic::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::OrHash + ), latest_challenge: - Lithic::AsaRequestWebhookEvent::LatestChallenge::OrHash, - network: Lithic::AsaRequestWebhookEvent::Network::OrSymbol, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge::OrHash, + network: + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Network::OrSymbol, network_risk_score: T.nilable(Integer), network_specific_data: T.nilable( - Lithic::AsaRequestWebhookEvent::NetworkSpecificData::OrHash + Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::OrHash ), - pos: Lithic::AsaRequestWebhookEvent::Pos::OrHash, + pos: + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::OrHash, token_info: T.nilable(Lithic::TokenInfo::OrHash), - ttl: Time + ttl: Time, + event_type: Symbol ).returns(T.attached_class) end def self.new( @@ -357,7 +418,8 @@ module Lithic pos: nil, token_info: nil, # Deprecated: approximate time-to-live for the authorization. - ttl: nil + ttl: nil, + event_type: :"card_authorization.approval_request" ) end @@ -368,31 +430,40 @@ module Lithic acquirer_fee: Integer, amount: Integer, authorization_amount: Integer, - avs: Lithic::AsaRequestWebhookEvent::Avs, - card: Lithic::AsaRequestWebhookEvent::Card, + avs: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Avs, + card: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card, cardholder_currency: String, cash_amount: Integer, created: Time, + event_type: Symbol, merchant: Lithic::Merchant, merchant_amount: Integer, merchant_currency: String, settled_amount: Integer, - status: Lithic::AsaRequestWebhookEvent::Status::TaggedSymbol, + status: + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Status::TaggedSymbol, transaction_initiator: - Lithic::AsaRequestWebhookEvent::TransactionInitiator::TaggedSymbol, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::TransactionInitiator::TaggedSymbol, account_type: - Lithic::AsaRequestWebhookEvent::AccountType::TaggedSymbol, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::AccountType::TaggedSymbol, cardholder_authentication: Lithic::CardholderAuthentication, cashback: Integer, conversion_rate: Float, event_token: String, - fleet_info: T.nilable(Lithic::AsaRequestWebhookEvent::FleetInfo), - latest_challenge: Lithic::AsaRequestWebhookEvent::LatestChallenge, - network: Lithic::AsaRequestWebhookEvent::Network::TaggedSymbol, + fleet_info: + T.nilable( + Lithic::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo + ), + latest_challenge: + Lithic::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge, + network: + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Network::TaggedSymbol, network_risk_score: T.nilable(Integer), network_specific_data: - T.nilable(Lithic::AsaRequestWebhookEvent::NetworkSpecificData), - pos: Lithic::AsaRequestWebhookEvent::Pos, + T.nilable( + Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData + ), + pos: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos, token_info: T.nilable(Lithic::TokenInfo), ttl: Time } @@ -405,7 +476,7 @@ module Lithic OrHash = T.type_alias do T.any( - Lithic::AsaRequestWebhookEvent::Avs, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Avs, Lithic::Internal::AnyHash ) end @@ -420,7 +491,7 @@ module Lithic # NOT_PRESENT will be returned sig do returns( - Lithic::AsaRequestWebhookEvent::Avs::AddressOnFileMatch::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Avs::AddressOnFileMatch::TaggedSymbol ) end attr_accessor :address_on_file_match @@ -433,7 +504,7 @@ module Lithic params( address: String, address_on_file_match: - Lithic::AsaRequestWebhookEvent::Avs::AddressOnFileMatch::OrSymbol, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Avs::AddressOnFileMatch::OrSymbol, zipcode: String ).returns(T.attached_class) end @@ -455,7 +526,7 @@ module Lithic { address: String, address_on_file_match: - Lithic::AsaRequestWebhookEvent::Avs::AddressOnFileMatch::TaggedSymbol, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Avs::AddressOnFileMatch::TaggedSymbol, zipcode: String } ) @@ -474,7 +545,7 @@ module Lithic T.type_alias do T.all( Symbol, - Lithic::AsaRequestWebhookEvent::Avs::AddressOnFileMatch + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Avs::AddressOnFileMatch ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -482,33 +553,33 @@ module Lithic MATCH = T.let( :MATCH, - Lithic::AsaRequestWebhookEvent::Avs::AddressOnFileMatch::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Avs::AddressOnFileMatch::TaggedSymbol ) MATCH_ADDRESS_ONLY = T.let( :MATCH_ADDRESS_ONLY, - Lithic::AsaRequestWebhookEvent::Avs::AddressOnFileMatch::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Avs::AddressOnFileMatch::TaggedSymbol ) MATCH_ZIP_ONLY = T.let( :MATCH_ZIP_ONLY, - Lithic::AsaRequestWebhookEvent::Avs::AddressOnFileMatch::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Avs::AddressOnFileMatch::TaggedSymbol ) MISMATCH = T.let( :MISMATCH, - Lithic::AsaRequestWebhookEvent::Avs::AddressOnFileMatch::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Avs::AddressOnFileMatch::TaggedSymbol ) NOT_PRESENT = T.let( :NOT_PRESENT, - Lithic::AsaRequestWebhookEvent::Avs::AddressOnFileMatch::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Avs::AddressOnFileMatch::TaggedSymbol ) sig do override.returns( T::Array[ - Lithic::AsaRequestWebhookEvent::Avs::AddressOnFileMatch::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Avs::AddressOnFileMatch::TaggedSymbol ] ) end @@ -521,7 +592,7 @@ module Lithic OrHash = T.type_alias do T.any( - Lithic::AsaRequestWebhookEvent::Card, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card, Lithic::Internal::AnyHash ) end @@ -575,7 +646,7 @@ module Lithic sig do returns( T.nilable( - Lithic::AsaRequestWebhookEvent::Card::SpendLimitDuration::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::SpendLimitDuration::TaggedSymbol ) ) end @@ -584,35 +655,41 @@ module Lithic sig do params( spend_limit_duration: - Lithic::AsaRequestWebhookEvent::Card::SpendLimitDuration::OrSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::SpendLimitDuration::OrSymbol ).void end attr_writer :spend_limit_duration sig do returns( - T.nilable(Lithic::AsaRequestWebhookEvent::Card::State::TaggedSymbol) + T.nilable( + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::State::TaggedSymbol + ) ) end attr_reader :state sig do params( - state: Lithic::AsaRequestWebhookEvent::Card::State::OrSymbol + state: + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::State::OrSymbol ).void end attr_writer :state sig do returns( - T.nilable(Lithic::AsaRequestWebhookEvent::Card::Type::TaggedSymbol) + T.nilable( + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::Type::TaggedSymbol + ) ) end attr_reader :type sig do params( - type: Lithic::AsaRequestWebhookEvent::Card::Type::OrSymbol + type: + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::Type::OrSymbol ).void end attr_writer :type @@ -626,9 +703,11 @@ module Lithic memo: String, spend_limit: Integer, spend_limit_duration: - Lithic::AsaRequestWebhookEvent::Card::SpendLimitDuration::OrSymbol, - state: Lithic::AsaRequestWebhookEvent::Card::State::OrSymbol, - type: Lithic::AsaRequestWebhookEvent::Card::Type::OrSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::SpendLimitDuration::OrSymbol, + state: + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::State::OrSymbol, + type: + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::Type::OrSymbol ).returns(T.attached_class) end def self.new( @@ -668,9 +747,11 @@ module Lithic memo: String, spend_limit: Integer, spend_limit_duration: - Lithic::AsaRequestWebhookEvent::Card::SpendLimitDuration::TaggedSymbol, - state: Lithic::AsaRequestWebhookEvent::Card::State::TaggedSymbol, - type: Lithic::AsaRequestWebhookEvent::Card::Type::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::SpendLimitDuration::TaggedSymbol, + state: + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::State::TaggedSymbol, + type: + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::Type::TaggedSymbol } ) end @@ -687,7 +768,7 @@ module Lithic T.type_alias do T.all( Symbol, - Lithic::AsaRequestWebhookEvent::Card::SpendLimitDuration + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::SpendLimitDuration ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -695,28 +776,28 @@ module Lithic ANNUALLY = T.let( :ANNUALLY, - Lithic::AsaRequestWebhookEvent::Card::SpendLimitDuration::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::SpendLimitDuration::TaggedSymbol ) FOREVER = T.let( :FOREVER, - Lithic::AsaRequestWebhookEvent::Card::SpendLimitDuration::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::SpendLimitDuration::TaggedSymbol ) MONTHLY = T.let( :MONTHLY, - Lithic::AsaRequestWebhookEvent::Card::SpendLimitDuration::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::SpendLimitDuration::TaggedSymbol ) TRANSACTION = T.let( :TRANSACTION, - Lithic::AsaRequestWebhookEvent::Card::SpendLimitDuration::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::SpendLimitDuration::TaggedSymbol ) sig do override.returns( T::Array[ - Lithic::AsaRequestWebhookEvent::Card::SpendLimitDuration::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::SpendLimitDuration::TaggedSymbol ] ) end @@ -729,40 +810,43 @@ module Lithic TaggedSymbol = T.type_alias do - T.all(Symbol, Lithic::AsaRequestWebhookEvent::Card::State) + T.all( + Symbol, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::State + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } CLOSED = T.let( :CLOSED, - Lithic::AsaRequestWebhookEvent::Card::State::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::State::TaggedSymbol ) OPEN = T.let( :OPEN, - Lithic::AsaRequestWebhookEvent::Card::State::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::State::TaggedSymbol ) PAUSED = T.let( :PAUSED, - Lithic::AsaRequestWebhookEvent::Card::State::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::State::TaggedSymbol ) PENDING_ACTIVATION = T.let( :PENDING_ACTIVATION, - Lithic::AsaRequestWebhookEvent::Card::State::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::State::TaggedSymbol ) PENDING_FULFILLMENT = T.let( :PENDING_FULFILLMENT, - Lithic::AsaRequestWebhookEvent::Card::State::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::State::TaggedSymbol ) sig do override.returns( T::Array[ - Lithic::AsaRequestWebhookEvent::Card::State::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::State::TaggedSymbol ] ) end @@ -775,44 +859,49 @@ module Lithic TaggedSymbol = T.type_alias do - T.all(Symbol, Lithic::AsaRequestWebhookEvent::Card::Type) + T.all( + Symbol, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::Type + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } SINGLE_USE = T.let( :SINGLE_USE, - Lithic::AsaRequestWebhookEvent::Card::Type::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::Type::TaggedSymbol ) MERCHANT_LOCKED = T.let( :MERCHANT_LOCKED, - Lithic::AsaRequestWebhookEvent::Card::Type::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::Type::TaggedSymbol ) UNLOCKED = T.let( :UNLOCKED, - Lithic::AsaRequestWebhookEvent::Card::Type::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::Type::TaggedSymbol ) PHYSICAL = T.let( :PHYSICAL, - Lithic::AsaRequestWebhookEvent::Card::Type::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::Type::TaggedSymbol ) DIGITAL_WALLET = T.let( :DIGITAL_WALLET, - Lithic::AsaRequestWebhookEvent::Card::Type::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::Type::TaggedSymbol ) VIRTUAL = T.let( :VIRTUAL, - Lithic::AsaRequestWebhookEvent::Card::Type::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::Type::TaggedSymbol ) sig do override.returns( - T::Array[Lithic::AsaRequestWebhookEvent::Card::Type::TaggedSymbol] + T::Array[ + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::Type::TaggedSymbol + ] ) end def self.values @@ -827,38 +916,45 @@ module Lithic extend Lithic::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Lithic::AsaRequestWebhookEvent::Status) } + T.type_alias do + T.all( + Symbol, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Status + ) + end OrSymbol = T.type_alias { T.any(Symbol, String) } AUTHORIZATION = T.let( :AUTHORIZATION, - Lithic::AsaRequestWebhookEvent::Status::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Status::TaggedSymbol ) CREDIT_AUTHORIZATION = T.let( :CREDIT_AUTHORIZATION, - Lithic::AsaRequestWebhookEvent::Status::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Status::TaggedSymbol ) FINANCIAL_AUTHORIZATION = T.let( :FINANCIAL_AUTHORIZATION, - Lithic::AsaRequestWebhookEvent::Status::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Status::TaggedSymbol ) FINANCIAL_CREDIT_AUTHORIZATION = T.let( :FINANCIAL_CREDIT_AUTHORIZATION, - Lithic::AsaRequestWebhookEvent::Status::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Status::TaggedSymbol ) BALANCE_INQUIRY = T.let( :BALANCE_INQUIRY, - Lithic::AsaRequestWebhookEvent::Status::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Status::TaggedSymbol ) sig do override.returns( - T::Array[Lithic::AsaRequestWebhookEvent::Status::TaggedSymbol] + T::Array[ + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Status::TaggedSymbol + ] ) end def self.values @@ -871,30 +967,33 @@ module Lithic TaggedSymbol = T.type_alias do - T.all(Symbol, Lithic::AsaRequestWebhookEvent::TransactionInitiator) + T.all( + Symbol, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::TransactionInitiator + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } CARDHOLDER = T.let( :CARDHOLDER, - Lithic::AsaRequestWebhookEvent::TransactionInitiator::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::TransactionInitiator::TaggedSymbol ) MERCHANT = T.let( :MERCHANT, - Lithic::AsaRequestWebhookEvent::TransactionInitiator::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::TransactionInitiator::TaggedSymbol ) UNKNOWN = T.let( :UNKNOWN, - Lithic::AsaRequestWebhookEvent::TransactionInitiator::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::TransactionInitiator::TaggedSymbol ) sig do override.returns( T::Array[ - Lithic::AsaRequestWebhookEvent::TransactionInitiator::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::TransactionInitiator::TaggedSymbol ] ) end @@ -907,24 +1006,29 @@ module Lithic TaggedSymbol = T.type_alias do - T.all(Symbol, Lithic::AsaRequestWebhookEvent::AccountType) + T.all( + Symbol, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::AccountType + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } CHECKING = T.let( :CHECKING, - Lithic::AsaRequestWebhookEvent::AccountType::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::AccountType::TaggedSymbol ) SAVINGS = T.let( :SAVINGS, - Lithic::AsaRequestWebhookEvent::AccountType::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::AccountType::TaggedSymbol ) sig do override.returns( - T::Array[Lithic::AsaRequestWebhookEvent::AccountType::TaggedSymbol] + T::Array[ + Lithic::CardAuthorizationApprovalRequestWebhookEvent::AccountType::TaggedSymbol + ] ) end def self.values @@ -935,7 +1039,7 @@ module Lithic OrHash = T.type_alias do T.any( - Lithic::AsaRequestWebhookEvent::FleetInfo, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo, Lithic::Internal::AnyHash ) end @@ -945,7 +1049,7 @@ module Lithic # change on a request to request basis sig do returns( - Lithic::AsaRequestWebhookEvent::FleetInfo::FleetPromptCode::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::FleetPromptCode::TaggedSymbol ) end attr_accessor :fleet_prompt_code @@ -955,7 +1059,7 @@ module Lithic # on a request to request basis sig do returns( - Lithic::AsaRequestWebhookEvent::FleetInfo::FleetRestrictionCode::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::FleetRestrictionCode::TaggedSymbol ) end attr_accessor :fleet_restriction_code @@ -973,9 +1077,9 @@ module Lithic sig do params( fleet_prompt_code: - Lithic::AsaRequestWebhookEvent::FleetInfo::FleetPromptCode::OrSymbol, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::FleetPromptCode::OrSymbol, fleet_restriction_code: - Lithic::AsaRequestWebhookEvent::FleetInfo::FleetRestrictionCode::OrSymbol, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::FleetRestrictionCode::OrSymbol, driver_number: T.nilable(String), vehicle_number: T.nilable(String) ).returns(T.attached_class) @@ -1000,9 +1104,9 @@ module Lithic override.returns( { fleet_prompt_code: - Lithic::AsaRequestWebhookEvent::FleetInfo::FleetPromptCode::TaggedSymbol, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::FleetPromptCode::TaggedSymbol, fleet_restriction_code: - Lithic::AsaRequestWebhookEvent::FleetInfo::FleetRestrictionCode::TaggedSymbol, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::FleetRestrictionCode::TaggedSymbol, driver_number: T.nilable(String), vehicle_number: T.nilable(String) } @@ -1021,7 +1125,7 @@ module Lithic T.type_alias do T.all( Symbol, - Lithic::AsaRequestWebhookEvent::FleetInfo::FleetPromptCode + Lithic::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::FleetPromptCode ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -1029,23 +1133,23 @@ module Lithic NO_PROMPT = T.let( :NO_PROMPT, - Lithic::AsaRequestWebhookEvent::FleetInfo::FleetPromptCode::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::FleetPromptCode::TaggedSymbol ) VEHICLE_NUMBER = T.let( :VEHICLE_NUMBER, - Lithic::AsaRequestWebhookEvent::FleetInfo::FleetPromptCode::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::FleetPromptCode::TaggedSymbol ) DRIVER_NUMBER = T.let( :DRIVER_NUMBER, - Lithic::AsaRequestWebhookEvent::FleetInfo::FleetPromptCode::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::FleetPromptCode::TaggedSymbol ) sig do override.returns( T::Array[ - Lithic::AsaRequestWebhookEvent::FleetInfo::FleetPromptCode::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::FleetPromptCode::TaggedSymbol ] ) end @@ -1063,7 +1167,7 @@ module Lithic T.type_alias do T.all( Symbol, - Lithic::AsaRequestWebhookEvent::FleetInfo::FleetRestrictionCode + Lithic::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::FleetRestrictionCode ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -1071,18 +1175,18 @@ module Lithic NO_RESTRICTIONS = T.let( :NO_RESTRICTIONS, - Lithic::AsaRequestWebhookEvent::FleetInfo::FleetRestrictionCode::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::FleetRestrictionCode::TaggedSymbol ) FUEL_ONLY = T.let( :FUEL_ONLY, - Lithic::AsaRequestWebhookEvent::FleetInfo::FleetRestrictionCode::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::FleetRestrictionCode::TaggedSymbol ) sig do override.returns( T::Array[ - Lithic::AsaRequestWebhookEvent::FleetInfo::FleetRestrictionCode::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::FleetRestrictionCode::TaggedSymbol ] ) end @@ -1095,7 +1199,7 @@ module Lithic OrHash = T.type_alias do T.any( - Lithic::AsaRequestWebhookEvent::LatestChallenge, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge, Lithic::Internal::AnyHash ) end @@ -1112,7 +1216,7 @@ module Lithic # - `ERROR` - There was an error processing the challenge sig do returns( - Lithic::AsaRequestWebhookEvent::LatestChallenge::Status::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge::Status::TaggedSymbol ) end attr_accessor :status @@ -1131,7 +1235,7 @@ module Lithic params( phone_number: String, status: - Lithic::AsaRequestWebhookEvent::LatestChallenge::Status::OrSymbol, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge::Status::OrSymbol, completed_at: Time ).returns(T.attached_class) end @@ -1156,7 +1260,7 @@ module Lithic { phone_number: String, status: - Lithic::AsaRequestWebhookEvent::LatestChallenge::Status::TaggedSymbol, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge::Status::TaggedSymbol, completed_at: Time } ) @@ -1177,7 +1281,7 @@ module Lithic T.type_alias do T.all( Symbol, - Lithic::AsaRequestWebhookEvent::LatestChallenge::Status + Lithic::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge::Status ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -1185,28 +1289,28 @@ module Lithic COMPLETED = T.let( :COMPLETED, - Lithic::AsaRequestWebhookEvent::LatestChallenge::Status::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge::Status::TaggedSymbol ) PENDING = T.let( :PENDING, - Lithic::AsaRequestWebhookEvent::LatestChallenge::Status::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge::Status::TaggedSymbol ) EXPIRED = T.let( :EXPIRED, - Lithic::AsaRequestWebhookEvent::LatestChallenge::Status::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge::Status::TaggedSymbol ) ERROR = T.let( :ERROR, - Lithic::AsaRequestWebhookEvent::LatestChallenge::Status::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge::Status::TaggedSymbol ) sig do override.returns( T::Array[ - Lithic::AsaRequestWebhookEvent::LatestChallenge::Status::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge::Status::TaggedSymbol ] ) end @@ -1221,32 +1325,49 @@ module Lithic TaggedSymbol = T.type_alias do - T.all(Symbol, Lithic::AsaRequestWebhookEvent::Network) + T.all( + Symbol, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Network + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } AMEX = - T.let(:AMEX, Lithic::AsaRequestWebhookEvent::Network::TaggedSymbol) + T.let( + :AMEX, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Network::TaggedSymbol + ) INTERLINK = T.let( :INTERLINK, - Lithic::AsaRequestWebhookEvent::Network::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Network::TaggedSymbol ) MAESTRO = - T.let(:MAESTRO, Lithic::AsaRequestWebhookEvent::Network::TaggedSymbol) + T.let( + :MAESTRO, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Network::TaggedSymbol + ) MASTERCARD = T.let( :MASTERCARD, - Lithic::AsaRequestWebhookEvent::Network::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Network::TaggedSymbol ) UNKNOWN = - T.let(:UNKNOWN, Lithic::AsaRequestWebhookEvent::Network::TaggedSymbol) + T.let( + :UNKNOWN, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Network::TaggedSymbol + ) VISA = - T.let(:VISA, Lithic::AsaRequestWebhookEvent::Network::TaggedSymbol) + T.let( + :VISA, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Network::TaggedSymbol + ) sig do override.returns( - T::Array[Lithic::AsaRequestWebhookEvent::Network::TaggedSymbol] + T::Array[ + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Network::TaggedSymbol + ] ) end def self.values @@ -1257,7 +1378,7 @@ module Lithic OrHash = T.type_alias do T.any( - Lithic::AsaRequestWebhookEvent::NetworkSpecificData, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData, Lithic::Internal::AnyHash ) end @@ -1265,7 +1386,7 @@ module Lithic sig do returns( T.nilable( - Lithic::AsaRequestWebhookEvent::NetworkSpecificData::Mastercard + Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Mastercard ) ) end @@ -1275,7 +1396,7 @@ module Lithic params( mastercard: T.nilable( - Lithic::AsaRequestWebhookEvent::NetworkSpecificData::Mastercard::OrHash + Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Mastercard::OrHash ) ).void end @@ -1283,7 +1404,9 @@ module Lithic sig do returns( - T.nilable(Lithic::AsaRequestWebhookEvent::NetworkSpecificData::Visa) + T.nilable( + Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Visa + ) ) end attr_reader :visa @@ -1292,7 +1415,7 @@ module Lithic params( visa: T.nilable( - Lithic::AsaRequestWebhookEvent::NetworkSpecificData::Visa::OrHash + Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Visa::OrHash ) ).void end @@ -1308,11 +1431,11 @@ module Lithic params( mastercard: T.nilable( - Lithic::AsaRequestWebhookEvent::NetworkSpecificData::Mastercard::OrHash + Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Mastercard::OrHash ), visa: T.nilable( - Lithic::AsaRequestWebhookEvent::NetworkSpecificData::Visa::OrHash + Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Visa::OrHash ) ).returns(T.attached_class) end @@ -1324,11 +1447,11 @@ module Lithic { mastercard: T.nilable( - Lithic::AsaRequestWebhookEvent::NetworkSpecificData::Mastercard + Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Mastercard ), visa: T.nilable( - Lithic::AsaRequestWebhookEvent::NetworkSpecificData::Visa + Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Visa ) } ) @@ -1340,7 +1463,7 @@ module Lithic OrHash = T.type_alias do T.any( - Lithic::AsaRequestWebhookEvent::NetworkSpecificData::Mastercard, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Mastercard, Lithic::Internal::AnyHash ) end @@ -1356,7 +1479,7 @@ module Lithic returns( T.nilable( T::Array[ - Lithic::AsaRequestWebhookEvent::NetworkSpecificData::Mastercard::OnBehalfServiceResult + Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Mastercard::OnBehalfServiceResult ] ) ) @@ -1373,7 +1496,7 @@ module Lithic on_behalf_service_result: T.nilable( T::Array[ - Lithic::AsaRequestWebhookEvent::NetworkSpecificData::Mastercard::OnBehalfServiceResult::OrHash + Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Mastercard::OnBehalfServiceResult::OrHash ] ), transaction_type_identifier: T.nilable(String) @@ -1398,7 +1521,7 @@ module Lithic on_behalf_service_result: T.nilable( T::Array[ - Lithic::AsaRequestWebhookEvent::NetworkSpecificData::Mastercard::OnBehalfServiceResult + Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Mastercard::OnBehalfServiceResult ] ), transaction_type_identifier: T.nilable(String) @@ -1412,7 +1535,7 @@ module Lithic OrHash = T.type_alias do T.any( - Lithic::AsaRequestWebhookEvent::NetworkSpecificData::Mastercard::OnBehalfServiceResult, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Mastercard::OnBehalfServiceResult, Lithic::Internal::AnyHash ) end @@ -1460,7 +1583,7 @@ module Lithic OrHash = T.type_alias do T.any( - Lithic::AsaRequestWebhookEvent::NetworkSpecificData::Visa, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Visa, Lithic::Internal::AnyHash ) end @@ -1496,40 +1619,52 @@ module Lithic OrHash = T.type_alias do T.any( - Lithic::AsaRequestWebhookEvent::Pos, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos, Lithic::Internal::AnyHash ) end # POS > Entry Mode object in ASA sig do - returns(T.nilable(Lithic::AsaRequestWebhookEvent::Pos::EntryMode)) + returns( + T.nilable( + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode + ) + ) end attr_reader :entry_mode sig do params( - entry_mode: Lithic::AsaRequestWebhookEvent::Pos::EntryMode::OrHash + entry_mode: + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::OrHash ).void end attr_writer :entry_mode sig do - returns(T.nilable(Lithic::AsaRequestWebhookEvent::Pos::Terminal)) + returns( + T.nilable( + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal + ) + ) end attr_reader :terminal sig do params( - terminal: Lithic::AsaRequestWebhookEvent::Pos::Terminal::OrHash + terminal: + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::OrHash ).void end attr_writer :terminal sig do params( - entry_mode: Lithic::AsaRequestWebhookEvent::Pos::EntryMode::OrHash, - terminal: Lithic::AsaRequestWebhookEvent::Pos::Terminal::OrHash + entry_mode: + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::OrHash, + terminal: + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::OrHash ).returns(T.attached_class) end def self.new( @@ -1542,8 +1677,10 @@ module Lithic sig do override.returns( { - entry_mode: Lithic::AsaRequestWebhookEvent::Pos::EntryMode, - terminal: Lithic::AsaRequestWebhookEvent::Pos::Terminal + entry_mode: + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode, + terminal: + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal } ) end @@ -1554,7 +1691,7 @@ module Lithic OrHash = T.type_alias do T.any( - Lithic::AsaRequestWebhookEvent::Pos::EntryMode, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode, Lithic::Internal::AnyHash ) end @@ -1563,7 +1700,7 @@ module Lithic sig do returns( T.nilable( - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Card::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Card::TaggedSymbol ) ) end @@ -1572,7 +1709,7 @@ module Lithic sig do params( card: - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Card::OrSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Card::OrSymbol ).void end attr_writer :card @@ -1581,7 +1718,7 @@ module Lithic sig do returns( T.nilable( - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Cardholder::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Cardholder::TaggedSymbol ) ) end @@ -1590,7 +1727,7 @@ module Lithic sig do params( cardholder: - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Cardholder::OrSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Cardholder::OrSymbol ).void end attr_writer :cardholder @@ -1599,7 +1736,7 @@ module Lithic sig do returns( T.nilable( - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Pan::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Pan::TaggedSymbol ) ) end @@ -1607,7 +1744,8 @@ module Lithic sig do params( - pan: Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Pan::OrSymbol + pan: + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Pan::OrSymbol ).void end attr_writer :pan @@ -1623,11 +1761,11 @@ module Lithic sig do params( card: - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Card::OrSymbol, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Card::OrSymbol, cardholder: - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Cardholder::OrSymbol, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Cardholder::OrSymbol, pan: - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Pan::OrSymbol, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Pan::OrSymbol, pin_entered: T::Boolean ).returns(T.attached_class) end @@ -1647,11 +1785,11 @@ module Lithic override.returns( { card: - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Card::TaggedSymbol, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Card::TaggedSymbol, cardholder: - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Cardholder::TaggedSymbol, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Cardholder::TaggedSymbol, pan: - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Pan::TaggedSymbol, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Pan::TaggedSymbol, pin_entered: T::Boolean } ) @@ -1667,7 +1805,7 @@ module Lithic T.type_alias do T.all( Symbol, - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Card + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Card ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -1675,23 +1813,23 @@ module Lithic PRESENT = T.let( :PRESENT, - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Card::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Card::TaggedSymbol ) NOT_PRESENT = T.let( :NOT_PRESENT, - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Card::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Card::TaggedSymbol ) UNKNOWN = T.let( :UNKNOWN, - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Card::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Card::TaggedSymbol ) sig do override.returns( T::Array[ - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Card::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Card::TaggedSymbol ] ) end @@ -1707,7 +1845,7 @@ module Lithic T.type_alias do T.all( Symbol, - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Cardholder + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Cardholder ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -1715,53 +1853,53 @@ module Lithic DEFERRED_BILLING = T.let( :DEFERRED_BILLING, - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Cardholder::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Cardholder::TaggedSymbol ) ELECTRONIC_ORDER = T.let( :ELECTRONIC_ORDER, - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Cardholder::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Cardholder::TaggedSymbol ) INSTALLMENT = T.let( :INSTALLMENT, - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Cardholder::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Cardholder::TaggedSymbol ) MAIL_ORDER = T.let( :MAIL_ORDER, - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Cardholder::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Cardholder::TaggedSymbol ) NOT_PRESENT = T.let( :NOT_PRESENT, - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Cardholder::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Cardholder::TaggedSymbol ) PRESENT = T.let( :PRESENT, - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Cardholder::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Cardholder::TaggedSymbol ) REOCCURRING = T.let( :REOCCURRING, - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Cardholder::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Cardholder::TaggedSymbol ) TELEPHONE_ORDER = T.let( :TELEPHONE_ORDER, - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Cardholder::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Cardholder::TaggedSymbol ) UNKNOWN = T.let( :UNKNOWN, - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Cardholder::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Cardholder::TaggedSymbol ) sig do override.returns( T::Array[ - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Cardholder::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Cardholder::TaggedSymbol ] ) end @@ -1777,7 +1915,7 @@ module Lithic T.type_alias do T.all( Symbol, - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Pan + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Pan ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -1785,83 +1923,83 @@ module Lithic AUTO_ENTRY = T.let( :AUTO_ENTRY, - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Pan::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Pan::TaggedSymbol ) BAR_CODE = T.let( :BAR_CODE, - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Pan::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Pan::TaggedSymbol ) CONTACTLESS = T.let( :CONTACTLESS, - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Pan::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Pan::TaggedSymbol ) ECOMMERCE = T.let( :ECOMMERCE, - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Pan::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Pan::TaggedSymbol ) ERROR_KEYED = T.let( :ERROR_KEYED, - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Pan::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Pan::TaggedSymbol ) ERROR_MAGNETIC_STRIPE = T.let( :ERROR_MAGNETIC_STRIPE, - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Pan::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Pan::TaggedSymbol ) ICC = T.let( :ICC, - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Pan::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Pan::TaggedSymbol ) KEY_ENTERED = T.let( :KEY_ENTERED, - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Pan::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Pan::TaggedSymbol ) MAGNETIC_STRIPE = T.let( :MAGNETIC_STRIPE, - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Pan::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Pan::TaggedSymbol ) MANUAL = T.let( :MANUAL, - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Pan::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Pan::TaggedSymbol ) OCR = T.let( :OCR, - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Pan::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Pan::TaggedSymbol ) SECURE_CARDLESS = T.let( :SECURE_CARDLESS, - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Pan::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Pan::TaggedSymbol ) UNSPECIFIED = T.let( :UNSPECIFIED, - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Pan::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Pan::TaggedSymbol ) UNKNOWN = T.let( :UNKNOWN, - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Pan::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Pan::TaggedSymbol ) CREDENTIAL_ON_FILE = T.let( :CREDENTIAL_ON_FILE, - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Pan::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Pan::TaggedSymbol ) sig do override.returns( T::Array[ - Lithic::AsaRequestWebhookEvent::Pos::EntryMode::Pan::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::Pan::TaggedSymbol ] ) end @@ -1874,7 +2012,7 @@ module Lithic OrHash = T.type_alias do T.any( - Lithic::AsaRequestWebhookEvent::Pos::Terminal, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal, Lithic::Internal::AnyHash ) end @@ -1894,7 +2032,7 @@ module Lithic # The person that is designated to swipe the card sig do returns( - Lithic::AsaRequestWebhookEvent::Pos::Terminal::Operator::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Operator::TaggedSymbol ) end attr_accessor :operator @@ -1910,7 +2048,7 @@ module Lithic # Status of whether the POS is able to accept PINs sig do returns( - Lithic::AsaRequestWebhookEvent::Pos::Terminal::PinCapability::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::PinCapability::TaggedSymbol ) end attr_accessor :pin_capability @@ -1918,7 +2056,7 @@ module Lithic # POS Type sig do returns( - Lithic::AsaRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol ) end attr_accessor :type @@ -1934,12 +2072,12 @@ module Lithic card_retention_capable: T::Boolean, on_premise: T::Boolean, operator: - Lithic::AsaRequestWebhookEvent::Pos::Terminal::Operator::OrSymbol, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Operator::OrSymbol, partial_approval_capable: T::Boolean, pin_capability: - Lithic::AsaRequestWebhookEvent::Pos::Terminal::PinCapability::OrSymbol, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::PinCapability::OrSymbol, type: - Lithic::AsaRequestWebhookEvent::Pos::Terminal::Type::OrSymbol, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Type::OrSymbol, acceptor_terminal_id: T.nilable(String) ).returns(T.attached_class) end @@ -1975,12 +2113,12 @@ module Lithic card_retention_capable: T::Boolean, on_premise: T::Boolean, operator: - Lithic::AsaRequestWebhookEvent::Pos::Terminal::Operator::TaggedSymbol, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Operator::TaggedSymbol, partial_approval_capable: T::Boolean, pin_capability: - Lithic::AsaRequestWebhookEvent::Pos::Terminal::PinCapability::TaggedSymbol, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::PinCapability::TaggedSymbol, type: - Lithic::AsaRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol, + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol, acceptor_terminal_id: T.nilable(String) } ) @@ -1996,7 +2134,7 @@ module Lithic T.type_alias do T.all( Symbol, - Lithic::AsaRequestWebhookEvent::Pos::Terminal::Operator + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Operator ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -2004,28 +2142,28 @@ module Lithic ADMINISTRATIVE = T.let( :ADMINISTRATIVE, - Lithic::AsaRequestWebhookEvent::Pos::Terminal::Operator::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Operator::TaggedSymbol ) CARDHOLDER = T.let( :CARDHOLDER, - Lithic::AsaRequestWebhookEvent::Pos::Terminal::Operator::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Operator::TaggedSymbol ) CARD_ACCEPTOR = T.let( :CARD_ACCEPTOR, - Lithic::AsaRequestWebhookEvent::Pos::Terminal::Operator::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Operator::TaggedSymbol ) UNKNOWN = T.let( :UNKNOWN, - Lithic::AsaRequestWebhookEvent::Pos::Terminal::Operator::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Operator::TaggedSymbol ) sig do override.returns( T::Array[ - Lithic::AsaRequestWebhookEvent::Pos::Terminal::Operator::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Operator::TaggedSymbol ] ) end @@ -2041,7 +2179,7 @@ module Lithic T.type_alias do T.all( Symbol, - Lithic::AsaRequestWebhookEvent::Pos::Terminal::PinCapability + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::PinCapability ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -2049,28 +2187,28 @@ module Lithic CAPABLE = T.let( :CAPABLE, - Lithic::AsaRequestWebhookEvent::Pos::Terminal::PinCapability::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::PinCapability::TaggedSymbol ) INOPERATIVE = T.let( :INOPERATIVE, - Lithic::AsaRequestWebhookEvent::Pos::Terminal::PinCapability::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::PinCapability::TaggedSymbol ) NOT_CAPABLE = T.let( :NOT_CAPABLE, - Lithic::AsaRequestWebhookEvent::Pos::Terminal::PinCapability::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::PinCapability::TaggedSymbol ) UNSPECIFIED = T.let( :UNSPECIFIED, - Lithic::AsaRequestWebhookEvent::Pos::Terminal::PinCapability::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::PinCapability::TaggedSymbol ) sig do override.returns( T::Array[ - Lithic::AsaRequestWebhookEvent::Pos::Terminal::PinCapability::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::PinCapability::TaggedSymbol ] ) end @@ -2086,7 +2224,7 @@ module Lithic T.type_alias do T.all( Symbol, - Lithic::AsaRequestWebhookEvent::Pos::Terminal::Type + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Type ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -2094,128 +2232,128 @@ module Lithic ADMINISTRATIVE = T.let( :ADMINISTRATIVE, - Lithic::AsaRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol ) ATM = T.let( :ATM, - Lithic::AsaRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol ) AUTHORIZATION = T.let( :AUTHORIZATION, - Lithic::AsaRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol ) COUPON_MACHINE = T.let( :COUPON_MACHINE, - Lithic::AsaRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol ) DIAL_TERMINAL = T.let( :DIAL_TERMINAL, - Lithic::AsaRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol ) ECOMMERCE = T.let( :ECOMMERCE, - Lithic::AsaRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol ) ECR = T.let( :ECR, - Lithic::AsaRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol ) FUEL_MACHINE = T.let( :FUEL_MACHINE, - Lithic::AsaRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol ) HOME_TERMINAL = T.let( :HOME_TERMINAL, - Lithic::AsaRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol ) MICR = T.let( :MICR, - Lithic::AsaRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol ) OFF_PREMISE = T.let( :OFF_PREMISE, - Lithic::AsaRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol ) PAYMENT = T.let( :PAYMENT, - Lithic::AsaRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol ) PDA = T.let( :PDA, - Lithic::AsaRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol ) PHONE = T.let( :PHONE, - Lithic::AsaRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol ) POINT = T.let( :POINT, - Lithic::AsaRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol ) POS_TERMINAL = T.let( :POS_TERMINAL, - Lithic::AsaRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol ) PUBLIC_UTILITY = T.let( :PUBLIC_UTILITY, - Lithic::AsaRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol ) SELF_SERVICE = T.let( :SELF_SERVICE, - Lithic::AsaRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol ) TELEVISION = T.let( :TELEVISION, - Lithic::AsaRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol ) TELLER = T.let( :TELLER, - Lithic::AsaRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol ) TRAVELERS_CHECK_MACHINE = T.let( :TRAVELERS_CHECK_MACHINE, - Lithic::AsaRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol ) VENDING = T.let( :VENDING, - Lithic::AsaRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol ) VOICE = T.let( :VOICE, - Lithic::AsaRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol ) UNKNOWN = T.let( :UNKNOWN, - Lithic::AsaRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol ) sig do override.returns( T::Array[ - Lithic::AsaRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::Type::TaggedSymbol ] ) end diff --git a/rbi/lithic/models/cards/aggregate_balance_list_params.rbi b/rbi/lithic/models/cards/aggregate_balance_list_params.rbi deleted file mode 100644 index a6603230..00000000 --- a/rbi/lithic/models/cards/aggregate_balance_list_params.rbi +++ /dev/null @@ -1,62 +0,0 @@ -# typed: strong - -module Lithic - module Models - module Cards - class AggregateBalanceListParams < Lithic::Internal::Type::BaseModel - extend Lithic::Internal::Type::RequestParameters::Converter - include Lithic::Internal::Type::RequestParameters - - OrHash = - T.type_alias do - T.any( - Lithic::Cards::AggregateBalanceListParams, - Lithic::Internal::AnyHash - ) - end - - # Cardholder to retrieve aggregate balances for. - sig { returns(T.nilable(String)) } - attr_reader :account_token - - sig { params(account_token: String).void } - attr_writer :account_token - - # Business to retrieve aggregate balances for. - sig { returns(T.nilable(String)) } - attr_reader :business_account_token - - sig { params(business_account_token: String).void } - attr_writer :business_account_token - - sig do - params( - account_token: String, - business_account_token: String, - request_options: Lithic::RequestOptions::OrHash - ).returns(T.attached_class) - end - def self.new( - # Cardholder to retrieve aggregate balances for. - account_token: nil, - # Business to retrieve aggregate balances for. - business_account_token: nil, - request_options: {} - ) - end - - sig do - override.returns( - { - account_token: String, - business_account_token: String, - request_options: Lithic::RequestOptions - } - ) - end - def to_hash - end - end - end - end -end diff --git a/rbi/lithic/models/cards/aggregate_balance_list_response.rbi b/rbi/lithic/models/cards/aggregate_balance_list_response.rbi deleted file mode 100644 index e3af3e15..00000000 --- a/rbi/lithic/models/cards/aggregate_balance_list_response.rbi +++ /dev/null @@ -1,115 +0,0 @@ -# typed: strong - -module Lithic - module Models - module Cards - class AggregateBalanceListResponse < Lithic::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Lithic::Models::Cards::AggregateBalanceListResponse, - Lithic::Internal::AnyHash - ) - end - - # Funds available for spend in the currency's smallest unit (e.g., cents for USD) - sig { returns(Integer) } - attr_accessor :available_amount - - # Date and time for when the balance was first created. - sig { returns(Time) } - attr_accessor :created - - # 3-character alphabetic ISO 4217 code for the local currency of the balance. - sig { returns(String) } - attr_accessor :currency - - # Globally unique identifier for the card that had its balance updated most - # recently - sig { returns(String) } - attr_accessor :last_card_token - - # Globally unique identifier for the last transaction event that impacted this - # balance - sig { returns(String) } - attr_accessor :last_transaction_event_token - - # Globally unique identifier for the last transaction that impacted this balance - sig { returns(String) } - attr_accessor :last_transaction_token - - # Funds not available for spend due to card authorizations or pending ACH release. - # Shown in the currency's smallest unit (e.g., cents for USD) - sig { returns(Integer) } - attr_accessor :pending_amount - - # The sum of available and pending balance in the currency's smallest unit (e.g., - # cents for USD) - sig { returns(Integer) } - attr_accessor :total_amount - - # Date and time for when the balance was last updated. - sig { returns(Time) } - attr_accessor :updated - - # Card Aggregate Balance across all end-user accounts - sig do - params( - available_amount: Integer, - created: Time, - currency: String, - last_card_token: String, - last_transaction_event_token: String, - last_transaction_token: String, - pending_amount: Integer, - total_amount: Integer, - updated: Time - ).returns(T.attached_class) - end - def self.new( - # Funds available for spend in the currency's smallest unit (e.g., cents for USD) - available_amount:, - # Date and time for when the balance was first created. - created:, - # 3-character alphabetic ISO 4217 code for the local currency of the balance. - currency:, - # Globally unique identifier for the card that had its balance updated most - # recently - last_card_token:, - # Globally unique identifier for the last transaction event that impacted this - # balance - last_transaction_event_token:, - # Globally unique identifier for the last transaction that impacted this balance - last_transaction_token:, - # Funds not available for spend due to card authorizations or pending ACH release. - # Shown in the currency's smallest unit (e.g., cents for USD) - pending_amount:, - # The sum of available and pending balance in the currency's smallest unit (e.g., - # cents for USD) - total_amount:, - # Date and time for when the balance was last updated. - updated: - ) - end - - sig do - override.returns( - { - available_amount: Integer, - created: Time, - currency: String, - last_card_token: String, - last_transaction_event_token: String, - last_transaction_token: String, - pending_amount: Integer, - total_amount: Integer, - updated: Time - } - ) - end - def to_hash - end - end - end - end -end diff --git a/rbi/lithic/models/external_payment_create_params.rbi b/rbi/lithic/models/external_payment_create_params.rbi index 74da87af..68333728 100644 --- a/rbi/lithic/models/external_payment_create_params.rbi +++ b/rbi/lithic/models/external_payment_create_params.rbi @@ -28,6 +28,8 @@ module Lithic end attr_accessor :payment_type + # Customer-provided token that will serve as an idempotency token. This token will + # become the transaction token. sig { returns(T.nilable(String)) } attr_reader :token @@ -82,6 +84,8 @@ module Lithic effective_date:, financial_account_token:, payment_type:, + # Customer-provided token that will serve as an idempotency token. This token will + # become the transaction token. token: nil, memo: nil, progress_to: nil, diff --git a/rbi/lithic/models/financial_account.rbi b/rbi/lithic/models/financial_account.rbi index d5b67207..52255039 100644 --- a/rbi/lithic/models/financial_account.rbi +++ b/rbi/lithic/models/financial_account.rbi @@ -40,24 +40,28 @@ module Lithic sig { returns(Lithic::FinancialAccount::Status::TaggedSymbol) } attr_accessor :status + # Substatus for the financial account + sig do + returns(T.nilable(Lithic::FinancialAccount::Substatus::TaggedSymbol)) + end + attr_accessor :substatus + sig { returns(Lithic::FinancialAccount::Type::TaggedSymbol) } attr_accessor :type sig { returns(Time) } attr_accessor :updated + # User-defined status for the financial account + sig { returns(T.nilable(String)) } + attr_accessor :user_defined_status + sig { returns(T.nilable(String)) } attr_accessor :account_number sig { returns(T.nilable(String)) } attr_accessor :routing_number - # Substatus for the financial account - sig do - returns(T.nilable(Lithic::FinancialAccount::Substatus::TaggedSymbol)) - end - attr_accessor :substatus - sig do params( token: String, @@ -68,11 +72,12 @@ module Lithic is_for_benefit_of: T::Boolean, nickname: T.nilable(String), status: Lithic::FinancialAccount::Status::OrSymbol, + substatus: T.nilable(Lithic::FinancialAccount::Substatus::OrSymbol), type: Lithic::FinancialAccount::Type::OrSymbol, updated: Time, + user_defined_status: T.nilable(String), account_number: T.nilable(String), - routing_number: T.nilable(String), - substatus: T.nilable(Lithic::FinancialAccount::Substatus::OrSymbol) + routing_number: T.nilable(String) ).returns(T.attached_class) end def self.new( @@ -86,12 +91,14 @@ module Lithic nickname:, # Status of the financial account status:, + # Substatus for the financial account + substatus:, type:, updated:, + # User-defined status for the financial account + user_defined_status:, account_number: nil, - routing_number: nil, - # Substatus for the financial account - substatus: nil + routing_number: nil ) end @@ -106,12 +113,13 @@ module Lithic is_for_benefit_of: T::Boolean, nickname: T.nilable(String), status: Lithic::FinancialAccount::Status::TaggedSymbol, + substatus: + T.nilable(Lithic::FinancialAccount::Substatus::TaggedSymbol), type: Lithic::FinancialAccount::Type::TaggedSymbol, updated: Time, + user_defined_status: T.nilable(String), account_number: T.nilable(String), - routing_number: T.nilable(String), - substatus: - T.nilable(Lithic::FinancialAccount::Substatus::TaggedSymbol) + routing_number: T.nilable(String) } ) end @@ -254,6 +262,46 @@ module Lithic end end + # Substatus for the financial account + module Substatus + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Lithic::FinancialAccount::Substatus) } + OrSymbol = T.type_alias { T.any(Symbol, String) } + + CHARGED_OFF_DELINQUENT = + T.let( + :CHARGED_OFF_DELINQUENT, + Lithic::FinancialAccount::Substatus::TaggedSymbol + ) + CHARGED_OFF_FRAUD = + T.let( + :CHARGED_OFF_FRAUD, + Lithic::FinancialAccount::Substatus::TaggedSymbol + ) + END_USER_REQUEST = + T.let( + :END_USER_REQUEST, + Lithic::FinancialAccount::Substatus::TaggedSymbol + ) + BANK_REQUEST = + T.let( + :BANK_REQUEST, + Lithic::FinancialAccount::Substatus::TaggedSymbol + ) + DELINQUENT = + T.let(:DELINQUENT, Lithic::FinancialAccount::Substatus::TaggedSymbol) + + sig do + override.returns( + T::Array[Lithic::FinancialAccount::Substatus::TaggedSymbol] + ) + end + def self.values + end + end + module Type extend Lithic::Internal::Type::Enum @@ -300,46 +348,6 @@ module Lithic def self.values end end - - # Substatus for the financial account - module Substatus - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias { T.all(Symbol, Lithic::FinancialAccount::Substatus) } - OrSymbol = T.type_alias { T.any(Symbol, String) } - - CHARGED_OFF_DELINQUENT = - T.let( - :CHARGED_OFF_DELINQUENT, - Lithic::FinancialAccount::Substatus::TaggedSymbol - ) - CHARGED_OFF_FRAUD = - T.let( - :CHARGED_OFF_FRAUD, - Lithic::FinancialAccount::Substatus::TaggedSymbol - ) - END_USER_REQUEST = - T.let( - :END_USER_REQUEST, - Lithic::FinancialAccount::Substatus::TaggedSymbol - ) - BANK_REQUEST = - T.let( - :BANK_REQUEST, - Lithic::FinancialAccount::Substatus::TaggedSymbol - ) - DELINQUENT = - T.let(:DELINQUENT, Lithic::FinancialAccount::Substatus::TaggedSymbol) - - sig do - override.returns( - T::Array[Lithic::FinancialAccount::Substatus::TaggedSymbol] - ) - end - def self.values - end - end end end end diff --git a/rbi/lithic/models/financial_account_update_status_params.rbi b/rbi/lithic/models/financial_account_update_status_params.rbi index ed12ab1e..82edfd94 100644 --- a/rbi/lithic/models/financial_account_update_status_params.rbi +++ b/rbi/lithic/models/financial_account_update_status_params.rbi @@ -30,6 +30,13 @@ module Lithic end attr_accessor :substatus + # User-defined status for the financial account + sig { returns(T.nilable(String)) } + attr_reader :user_defined_status + + sig { params(user_defined_status: String).void } + attr_writer :user_defined_status + sig do params( status: Lithic::FinancialAccountUpdateStatusParams::Status::OrSymbol, @@ -37,6 +44,7 @@ module Lithic T.nilable( Lithic::FinancialAccountUpdateStatusParams::Substatus::OrSymbol ), + user_defined_status: String, request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) end @@ -45,6 +53,8 @@ module Lithic status:, # Substatus for the financial account substatus:, + # User-defined status for the financial account + user_defined_status: nil, request_options: {} ) end @@ -58,6 +68,7 @@ module Lithic T.nilable( Lithic::FinancialAccountUpdateStatusParams::Substatus::OrSymbol ), + user_defined_status: String, request_options: Lithic::RequestOptions } ) diff --git a/rbi/lithic/models/financial_accounts/loan_tape.rbi b/rbi/lithic/models/financial_accounts/loan_tape.rbi index 26791021..c16c9221 100644 --- a/rbi/lithic/models/financial_accounts/loan_tape.rbi +++ b/rbi/lithic/models/financial_accounts/loan_tape.rbi @@ -109,13 +109,13 @@ module Lithic end attr_writer :minimum_payment_balance - sig { returns(Lithic::FinancialAccounts::CategoryBalances) } + sig { returns(Lithic::FinancialAccounts::LoanTape::PaymentAllocation) } attr_reader :payment_allocation sig do params( payment_allocation: - Lithic::FinancialAccounts::CategoryBalances::OrHash + Lithic::FinancialAccounts::LoanTape::PaymentAllocation::OrHash ).void end attr_writer :payment_allocation @@ -183,7 +183,7 @@ module Lithic minimum_payment_balance: Lithic::FinancialAccounts::LoanTape::MinimumPaymentBalance::OrHash, payment_allocation: - Lithic::FinancialAccounts::CategoryBalances::OrHash, + Lithic::FinancialAccounts::LoanTape::PaymentAllocation::OrHash, period_totals: Lithic::StatementTotals::OrHash, previous_statement_balance: Lithic::FinancialAccounts::LoanTape::PreviousStatementBalance::OrHash, @@ -257,7 +257,8 @@ module Lithic T.nilable(Lithic::FinancialAccounts::LoanTape::InterestDetails), minimum_payment_balance: Lithic::FinancialAccounts::LoanTape::MinimumPaymentBalance, - payment_allocation: Lithic::FinancialAccounts::CategoryBalances, + payment_allocation: + Lithic::FinancialAccounts::LoanTape::PaymentAllocation, period_totals: Lithic::StatementTotals, previous_statement_balance: Lithic::FinancialAccounts::LoanTape::PreviousStatementBalance, @@ -824,6 +825,94 @@ module Lithic end end + class PaymentAllocation < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::FinancialAccounts::LoanTape::PaymentAllocation, + Lithic::Internal::AnyHash + ) + end + + sig { returns(T.nilable(Lithic::CategoryDetails)) } + attr_reader :fee_details + + sig do + params(fee_details: T.nilable(Lithic::CategoryDetails::OrHash)).void + end + attr_writer :fee_details + + # Amount allocated to fees in cents + sig { returns(Integer) } + attr_accessor :fees + + # Amount allocated to interest in cents + sig { returns(Integer) } + attr_accessor :interest + + sig { returns(T.nilable(Lithic::CategoryDetails)) } + attr_reader :interest_details + + sig do + params( + interest_details: T.nilable(Lithic::CategoryDetails::OrHash) + ).void + end + attr_writer :interest_details + + # Amount allocated to principal in cents + sig { returns(Integer) } + attr_accessor :principal + + sig { returns(T.nilable(Lithic::CategoryDetails)) } + attr_reader :principal_details + + sig do + params( + principal_details: T.nilable(Lithic::CategoryDetails::OrHash) + ).void + end + attr_writer :principal_details + + sig do + params( + fee_details: T.nilable(Lithic::CategoryDetails::OrHash), + fees: Integer, + interest: Integer, + interest_details: T.nilable(Lithic::CategoryDetails::OrHash), + principal: Integer, + principal_details: T.nilable(Lithic::CategoryDetails::OrHash) + ).returns(T.attached_class) + end + def self.new( + fee_details:, + # Amount allocated to fees in cents + fees:, + # Amount allocated to interest in cents + interest:, + interest_details:, + # Amount allocated to principal in cents + principal:, + principal_details: + ) + end + + sig do + override.returns( + { + fee_details: T.nilable(Lithic::CategoryDetails), + fees: Integer, + interest: Integer, + interest_details: T.nilable(Lithic::CategoryDetails), + principal: Integer, + principal_details: T.nilable(Lithic::CategoryDetails) + } + ) + end + def to_hash + end + end + class PreviousStatementBalance < Lithic::Internal::Type::BaseModel OrHash = T.type_alias do diff --git a/rbi/lithic/models/management_operation_create_params.rbi b/rbi/lithic/models/management_operation_create_params.rbi index 20a3360b..4543f96f 100644 --- a/rbi/lithic/models/management_operation_create_params.rbi +++ b/rbi/lithic/models/management_operation_create_params.rbi @@ -38,6 +38,8 @@ module Lithic sig { returns(String) } attr_accessor :financial_account_token + # Customer-provided token that will serve as an idempotency token. This token will + # become the transaction token. sig { returns(T.nilable(String)) } attr_reader :token @@ -106,6 +108,8 @@ module Lithic effective_date:, event_type:, financial_account_token:, + # Customer-provided token that will serve as an idempotency token. This token will + # become the transaction token. token: nil, memo: nil, # What to do if the financial account is closed when posting an operation diff --git a/rbi/lithic/models/parsed_webhook_event.rbi b/rbi/lithic/models/parsed_webhook_event.rbi index e85e39f8..e667d775 100644 --- a/rbi/lithic/models/parsed_webhook_event.rbi +++ b/rbi/lithic/models/parsed_webhook_event.rbi @@ -15,7 +15,7 @@ module Lithic Lithic::ParsedWebhookEvent::LegacyPayload, Lithic::AccountHolderVerificationWebhookEvent, Lithic::AccountHolderDocumentUpdatedWebhookEvent, - Lithic::AsaRequestWebhookEvent, + Lithic::CardAuthorizationApprovalRequestWebhookEvent, Lithic::TokenizationDecisioningRequestWebhookEvent, Lithic::AuthRulesBacktestReportCreatedWebhookEvent, Lithic::BalanceUpdatedWebhookEvent, @@ -63,7 +63,7 @@ module Lithic Lithic::TokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::TokenizationUpdatedWebhookEvent, - Lithic::ThreeDSAuthentication, + Lithic::ThreeDSAuthenticationApprovalRequestWebhookEvent, Lithic::DisputeTransactionCreatedWebhookEvent, Lithic::DisputeTransactionUpdatedWebhookEvent ) diff --git a/rbi/lithic/models/payment.rbi b/rbi/lithic/models/payment.rbi index 0c7f33bf..523b96dc 100644 --- a/rbi/lithic/models/payment.rbi +++ b/rbi/lithic/models/payment.rbi @@ -357,6 +357,10 @@ module Lithic end attr_writer :detailed_results + # Payment event external ID, for example, ACH trace number. + sig { returns(T.nilable(String)) } + attr_accessor :external_id + # Payment Event sig do params( @@ -366,7 +370,8 @@ module Lithic result: Lithic::Payment::Event::Result::OrSymbol, type: Lithic::Payment::Event::Type::OrSymbol, detailed_results: - T::Array[Lithic::Payment::Event::DetailedResult::OrSymbol] + T::Array[Lithic::Payment::Event::DetailedResult::OrSymbol], + external_id: T.nilable(String) ).returns(T.attached_class) end def self.new( @@ -406,7 +411,9 @@ module Lithic # Financial Institution. type:, # More detailed reasons for the event - detailed_results: nil + detailed_results: nil, + # Payment event external ID, for example, ACH trace number. + external_id: nil ) end @@ -419,7 +426,8 @@ module Lithic result: Lithic::Payment::Event::Result::TaggedSymbol, type: Lithic::Payment::Event::Type::TaggedSymbol, detailed_results: - T::Array[Lithic::Payment::Event::DetailedResult::TaggedSymbol] + T::Array[Lithic::Payment::Event::DetailedResult::TaggedSymbol], + external_id: T.nilable(String) } ) end @@ -1053,6 +1061,8 @@ module Lithic T.let(:WIRE_OUTBOUND_PAYMENT, Lithic::Payment::Type::TaggedSymbol) WIRE_OUTBOUND_ADMIN = T.let(:WIRE_OUTBOUND_ADMIN, Lithic::Payment::Type::TaggedSymbol) + WIRE_DRAWDOWN_REQUEST = + T.let(:WIRE_DRAWDOWN_REQUEST, Lithic::Payment::Type::TaggedSymbol) sig { override.returns(T::Array[Lithic::Payment::Type::TaggedSymbol]) } def self.values diff --git a/rbi/lithic/models/three_ds_authentication_approval_request_webhook_event.rbi b/rbi/lithic/models/three_ds_authentication_approval_request_webhook_event.rbi new file mode 100644 index 00000000..b64ca923 --- /dev/null +++ b/rbi/lithic/models/three_ds_authentication_approval_request_webhook_event.rbi @@ -0,0 +1,27 @@ +# typed: strong + +module Lithic + module Models + class ThreeDSAuthenticationApprovalRequestWebhookEvent < Lithic::Models::ThreeDSAuthentication + OrHash = + T.type_alias do + T.any( + Lithic::ThreeDSAuthenticationApprovalRequestWebhookEvent, + Lithic::Internal::AnyHash + ) + end + + sig { returns(Symbol) } + attr_accessor :event_type + + # Represents a 3DS authentication + sig { params(event_type: Symbol).returns(T.attached_class) } + def self.new(event_type: :"three_ds_authentication.approval_request") + end + + sig { override.returns({ event_type: Symbol }) } + def to_hash + end + end + end +end diff --git a/rbi/lithic/models/transaction.rbi b/rbi/lithic/models/transaction.rbi index 7bbde716..8135ae5e 100644 --- a/rbi/lithic/models/transaction.rbi +++ b/rbi/lithic/models/transaction.rbi @@ -1762,6 +1762,11 @@ module Lithic :AUTH_RULE_BLOCKED_MCC, Lithic::Transaction::Event::DetailedResult::TaggedSymbol ) + AUTH_RULE = + T.let( + :AUTH_RULE, + Lithic::Transaction::Event::DetailedResult::TaggedSymbol + ) CARD_CLOSED = T.let( :CARD_CLOSED, @@ -2660,6 +2665,11 @@ module Lithic :AUTH_RULE_BLOCKED_MCC, Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol ) + AUTH_RULE = + T.let( + :AUTH_RULE, + Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol + ) CARD_CLOSED = T.let( :CARD_CLOSED, diff --git a/rbi/lithic/models/transfer_limit_list_params.rbi b/rbi/lithic/models/transfer_limit_list_params.rbi new file mode 100644 index 00000000..4d04f197 --- /dev/null +++ b/rbi/lithic/models/transfer_limit_list_params.rbi @@ -0,0 +1,43 @@ +# typed: strong + +module Lithic + module Models + class TransferLimitListParams < Lithic::Internal::Type::BaseModel + extend Lithic::Internal::Type::RequestParameters::Converter + include Lithic::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any(Lithic::TransferLimitListParams, Lithic::Internal::AnyHash) + end + + # Date for which to retrieve transfer limits (ISO 8601 format) + sig { returns(T.nilable(Date)) } + attr_reader :date + + sig { params(date: Date).void } + attr_writer :date + + sig do + params( + date: Date, + request_options: Lithic::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new( + # Date for which to retrieve transfer limits (ISO 8601 format) + date: nil, + request_options: {} + ) + end + + sig do + override.returns( + { date: Date, request_options: Lithic::RequestOptions } + ) + end + def to_hash + end + end + end +end diff --git a/rbi/lithic/models/transfer_limits_response.rbi b/rbi/lithic/models/transfer_limits_response.rbi new file mode 100644 index 00000000..53a2d402 --- /dev/null +++ b/rbi/lithic/models/transfer_limits_response.rbi @@ -0,0 +1,604 @@ +# typed: strong + +module Lithic + module Models + class TransferLimitsResponse < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any(Lithic::TransferLimitsResponse, Lithic::Internal::AnyHash) + end + + # List of transfer limits + sig { returns(T::Array[Lithic::TransferLimitsResponse::Data]) } + attr_accessor :data + + # Whether there are more transfer limits + sig { returns(T::Boolean) } + attr_accessor :has_more + + sig do + params( + data: T::Array[Lithic::TransferLimitsResponse::Data::OrHash], + has_more: T::Boolean + ).returns(T.attached_class) + end + def self.new( + # List of transfer limits + data:, + # Whether there are more transfer limits + has_more: + ) + end + + sig do + override.returns( + { + data: T::Array[Lithic::TransferLimitsResponse::Data], + has_more: T::Boolean + } + ) + end + def to_hash + end + + class Data < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::TransferLimitsResponse::Data, + Lithic::Internal::AnyHash + ) + end + + # Company ID + sig { returns(String) } + attr_accessor :company_id + + # Daily limits with progress + sig { returns(Lithic::TransferLimitsResponse::Data::DailyLimit) } + attr_reader :daily_limit + + sig do + params( + daily_limit: + Lithic::TransferLimitsResponse::Data::DailyLimit::OrHash + ).void + end + attr_writer :daily_limit + + # The date for the limit view (ISO format) + sig { returns(Date) } + attr_accessor :date + + # Whether the company is a FBO; based on the company ID prefix + sig { returns(T::Boolean) } + attr_accessor :is_fbo + + # Monthly limits with progress + sig { returns(Lithic::TransferLimitsResponse::Data::MonthlyLimit) } + attr_reader :monthly_limit + + sig do + params( + monthly_limit: + Lithic::TransferLimitsResponse::Data::MonthlyLimit::OrHash + ).void + end + attr_writer :monthly_limit + + # Program transaction limits + sig do + returns( + Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction + ) + end + attr_reader :program_limit_per_transaction + + sig do + params( + program_limit_per_transaction: + Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::OrHash + ).void + end + attr_writer :program_limit_per_transaction + + sig do + params( + company_id: String, + daily_limit: + Lithic::TransferLimitsResponse::Data::DailyLimit::OrHash, + date: Date, + is_fbo: T::Boolean, + monthly_limit: + Lithic::TransferLimitsResponse::Data::MonthlyLimit::OrHash, + program_limit_per_transaction: + Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::OrHash + ).returns(T.attached_class) + end + def self.new( + # Company ID + company_id:, + # Daily limits with progress + daily_limit:, + # The date for the limit view (ISO format) + date:, + # Whether the company is a FBO; based on the company ID prefix + is_fbo:, + # Monthly limits with progress + monthly_limit:, + # Program transaction limits + program_limit_per_transaction: + ) + end + + sig do + override.returns( + { + company_id: String, + daily_limit: Lithic::TransferLimitsResponse::Data::DailyLimit, + date: Date, + is_fbo: T::Boolean, + monthly_limit: Lithic::TransferLimitsResponse::Data::MonthlyLimit, + program_limit_per_transaction: + Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction + } + ) + end + def to_hash + end + + class DailyLimit < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::TransferLimitsResponse::Data::DailyLimit, + Lithic::Internal::AnyHash + ) + end + + # Credit limits + sig do + returns(Lithic::TransferLimitsResponse::Data::DailyLimit::Credit) + end + attr_reader :credit + + sig do + params( + credit: + Lithic::TransferLimitsResponse::Data::DailyLimit::Credit::OrHash + ).void + end + attr_writer :credit + + # Debit limits + sig do + returns(Lithic::TransferLimitsResponse::Data::DailyLimit::Debit) + end + attr_reader :debit + + sig do + params( + debit: + Lithic::TransferLimitsResponse::Data::DailyLimit::Debit::OrHash + ).void + end + attr_writer :debit + + # Daily limits with progress + sig do + params( + credit: + Lithic::TransferLimitsResponse::Data::DailyLimit::Credit::OrHash, + debit: + Lithic::TransferLimitsResponse::Data::DailyLimit::Debit::OrHash + ).returns(T.attached_class) + end + def self.new( + # Credit limits + credit:, + # Debit limits + debit: + ) + end + + sig do + override.returns( + { + credit: + Lithic::TransferLimitsResponse::Data::DailyLimit::Credit, + debit: Lithic::TransferLimitsResponse::Data::DailyLimit::Debit + } + ) + end + def to_hash + end + + class Credit < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::TransferLimitsResponse::Data::DailyLimit::Credit, + Lithic::Internal::AnyHash + ) + end + + # The limit amount + sig { returns(Integer) } + attr_accessor :limit + + # Amount originated towards limit + sig { returns(T.nilable(Integer)) } + attr_reader :amount_originated + + sig { params(amount_originated: Integer).void } + attr_writer :amount_originated + + # Credit limits + sig do + params(limit: Integer, amount_originated: Integer).returns( + T.attached_class + ) + end + def self.new( + # The limit amount + limit:, + # Amount originated towards limit + amount_originated: nil + ) + end + + sig do + override.returns({ limit: Integer, amount_originated: Integer }) + end + def to_hash + end + end + + class Debit < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::TransferLimitsResponse::Data::DailyLimit::Debit, + Lithic::Internal::AnyHash + ) + end + + # The limit amount + sig { returns(Integer) } + attr_accessor :limit + + # Amount originated towards limit + sig { returns(T.nilable(Integer)) } + attr_reader :amount_originated + + sig { params(amount_originated: Integer).void } + attr_writer :amount_originated + + # Debit limits + sig do + params(limit: Integer, amount_originated: Integer).returns( + T.attached_class + ) + end + def self.new( + # The limit amount + limit:, + # Amount originated towards limit + amount_originated: nil + ) + end + + sig do + override.returns({ limit: Integer, amount_originated: Integer }) + end + def to_hash + end + end + end + + class MonthlyLimit < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::TransferLimitsResponse::Data::MonthlyLimit, + Lithic::Internal::AnyHash + ) + end + + # Credit limits + sig do + returns(Lithic::TransferLimitsResponse::Data::MonthlyLimit::Credit) + end + attr_reader :credit + + sig do + params( + credit: + Lithic::TransferLimitsResponse::Data::MonthlyLimit::Credit::OrHash + ).void + end + attr_writer :credit + + # Debit limits + sig do + returns(Lithic::TransferLimitsResponse::Data::MonthlyLimit::Debit) + end + attr_reader :debit + + sig do + params( + debit: + Lithic::TransferLimitsResponse::Data::MonthlyLimit::Debit::OrHash + ).void + end + attr_writer :debit + + # Monthly limits with progress + sig do + params( + credit: + Lithic::TransferLimitsResponse::Data::MonthlyLimit::Credit::OrHash, + debit: + Lithic::TransferLimitsResponse::Data::MonthlyLimit::Debit::OrHash + ).returns(T.attached_class) + end + def self.new( + # Credit limits + credit:, + # Debit limits + debit: + ) + end + + sig do + override.returns( + { + credit: + Lithic::TransferLimitsResponse::Data::MonthlyLimit::Credit, + debit: Lithic::TransferLimitsResponse::Data::MonthlyLimit::Debit + } + ) + end + def to_hash + end + + class Credit < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::TransferLimitsResponse::Data::MonthlyLimit::Credit, + Lithic::Internal::AnyHash + ) + end + + # The limit amount + sig { returns(Integer) } + attr_accessor :limit + + # Amount originated towards limit + sig { returns(T.nilable(Integer)) } + attr_reader :amount_originated + + sig { params(amount_originated: Integer).void } + attr_writer :amount_originated + + # Credit limits + sig do + params(limit: Integer, amount_originated: Integer).returns( + T.attached_class + ) + end + def self.new( + # The limit amount + limit:, + # Amount originated towards limit + amount_originated: nil + ) + end + + sig do + override.returns({ limit: Integer, amount_originated: Integer }) + end + def to_hash + end + end + + class Debit < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::TransferLimitsResponse::Data::MonthlyLimit::Debit, + Lithic::Internal::AnyHash + ) + end + + # The limit amount + sig { returns(Integer) } + attr_accessor :limit + + # Amount originated towards limit + sig { returns(T.nilable(Integer)) } + attr_reader :amount_originated + + sig { params(amount_originated: Integer).void } + attr_writer :amount_originated + + # Debit limits + sig do + params(limit: Integer, amount_originated: Integer).returns( + T.attached_class + ) + end + def self.new( + # The limit amount + limit:, + # Amount originated towards limit + amount_originated: nil + ) + end + + sig do + override.returns({ limit: Integer, amount_originated: Integer }) + end + def to_hash + end + end + end + + class ProgramLimitPerTransaction < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction, + Lithic::Internal::AnyHash + ) + end + + # Credit limits + sig do + returns( + Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Credit + ) + end + attr_reader :credit + + sig do + params( + credit: + Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Credit::OrHash + ).void + end + attr_writer :credit + + # Debit limits + sig do + returns( + Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Debit + ) + end + attr_reader :debit + + sig do + params( + debit: + Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Debit::OrHash + ).void + end + attr_writer :debit + + # Program transaction limits + sig do + params( + credit: + Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Credit::OrHash, + debit: + Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Debit::OrHash + ).returns(T.attached_class) + end + def self.new( + # Credit limits + credit:, + # Debit limits + debit: + ) + end + + sig do + override.returns( + { + credit: + Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Credit, + debit: + Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Debit + } + ) + end + def to_hash + end + + class Credit < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Credit, + Lithic::Internal::AnyHash + ) + end + + # The limit amount + sig { returns(Integer) } + attr_accessor :limit + + # Amount originated towards limit + sig { returns(T.nilable(Integer)) } + attr_reader :amount_originated + + sig { params(amount_originated: Integer).void } + attr_writer :amount_originated + + # Credit limits + sig do + params(limit: Integer, amount_originated: Integer).returns( + T.attached_class + ) + end + def self.new( + # The limit amount + limit:, + # Amount originated towards limit + amount_originated: nil + ) + end + + sig do + override.returns({ limit: Integer, amount_originated: Integer }) + end + def to_hash + end + end + + class Debit < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Debit, + Lithic::Internal::AnyHash + ) + end + + # The limit amount + sig { returns(Integer) } + attr_accessor :limit + + # Amount originated towards limit + sig { returns(T.nilable(Integer)) } + attr_reader :amount_originated + + sig { params(amount_originated: Integer).void } + attr_writer :amount_originated + + # Debit limits + sig do + params(limit: Integer, amount_originated: Integer).returns( + T.attached_class + ) + end + def self.new( + # The limit amount + limit:, + # Amount originated towards limit + amount_originated: nil + ) + end + + sig do + override.returns({ limit: Integer, amount_originated: Integer }) + end + def to_hash + end + end + end + end + end + end +end diff --git a/rbi/lithic/resources/aggregate_balances.rbi b/rbi/lithic/resources/aggregate_balances.rbi deleted file mode 100644 index 3f3582d1..00000000 --- a/rbi/lithic/resources/aggregate_balances.rbi +++ /dev/null @@ -1,28 +0,0 @@ -# typed: strong - -module Lithic - module Resources - class AggregateBalances - # Get the aggregated balance across all end-user accounts by financial account - # type - sig do - params( - financial_account_type: - Lithic::AggregateBalanceListParams::FinancialAccountType::OrSymbol, - request_options: Lithic::RequestOptions::OrHash - ).returns(Lithic::Internal::SinglePage[Lithic::AggregateBalance]) - end - def list( - # Get the aggregate balance for a given Financial Account type. - financial_account_type: nil, - request_options: {} - ) - end - - # @api private - sig { params(client: Lithic::Client).returns(T.attached_class) } - def self.new(client:) - end - end - end -end diff --git a/rbi/lithic/resources/book_transfers.rbi b/rbi/lithic/resources/book_transfers.rbi index 0e43dbc8..d6526691 100644 --- a/rbi/lithic/resources/book_transfers.rbi +++ b/rbi/lithic/resources/book_transfers.rbi @@ -110,6 +110,24 @@ module Lithic ) end + # Retry a book transfer that has been declined + sig do + params( + book_transfer_token: String, + retry_token: String, + request_options: Lithic::RequestOptions::OrHash + ).returns(Lithic::BookTransferResponse) + end + def retry_( + # Token of the book transfer to retry + book_transfer_token, + # Customer-provided token that will serve as an idempotency token. This token will + # become the transaction token. + retry_token:, + request_options: {} + ) + end + # Reverse a book transfer sig do params( diff --git a/rbi/lithic/resources/cards.rbi b/rbi/lithic/resources/cards.rbi index 335c216d..733e5ad2 100644 --- a/rbi/lithic/resources/cards.rbi +++ b/rbi/lithic/resources/cards.rbi @@ -3,9 +3,6 @@ module Lithic module Resources class Cards - sig { returns(Lithic::Resources::Cards::AggregateBalances) } - attr_reader :aggregate_balances - sig { returns(Lithic::Resources::Cards::Balances) } attr_reader :balances @@ -611,7 +608,7 @@ module Lithic end # Allow your cardholders to directly add payment cards to the device's digital - # wallet from a browser on the web. Currently only suported for Apple Pay. + # wallet from a browser on the web. # # This requires some additional setup and configuration. Please # [Contact Us](https://lithic.com/contact) or your Customer Success representative diff --git a/rbi/lithic/resources/cards/aggregate_balances.rbi b/rbi/lithic/resources/cards/aggregate_balances.rbi deleted file mode 100644 index a82f6feb..00000000 --- a/rbi/lithic/resources/cards/aggregate_balances.rbi +++ /dev/null @@ -1,35 +0,0 @@ -# typed: strong - -module Lithic - module Resources - class Cards - class AggregateBalances - # Get the aggregated card balance across all end-user accounts. - sig do - params( - account_token: String, - business_account_token: String, - request_options: Lithic::RequestOptions::OrHash - ).returns( - Lithic::Internal::SinglePage[ - Lithic::Models::Cards::AggregateBalanceListResponse - ] - ) - end - def list( - # Cardholder to retrieve aggregate balances for. - account_token: nil, - # Business to retrieve aggregate balances for. - business_account_token: nil, - request_options: {} - ) - end - - # @api private - sig { params(client: Lithic::Client).returns(T.attached_class) } - def self.new(client:) - end - end - end - end -end diff --git a/rbi/lithic/resources/external_payments.rbi b/rbi/lithic/resources/external_payments.rbi index 6fd50c8b..65b83005 100644 --- a/rbi/lithic/resources/external_payments.rbi +++ b/rbi/lithic/resources/external_payments.rbi @@ -26,6 +26,8 @@ module Lithic effective_date:, financial_account_token:, payment_type:, + # Customer-provided token that will serve as an idempotency token. This token will + # become the transaction token. token: nil, memo: nil, progress_to: nil, diff --git a/rbi/lithic/resources/financial_accounts.rbi b/rbi/lithic/resources/financial_accounts.rbi index 8762c4a9..66e0ac9e 100644 --- a/rbi/lithic/resources/financial_accounts.rbi +++ b/rbi/lithic/resources/financial_accounts.rbi @@ -113,6 +113,7 @@ module Lithic T.nilable( Lithic::FinancialAccountUpdateStatusParams::Substatus::OrSymbol ), + user_defined_status: String, request_options: Lithic::RequestOptions::OrHash ).returns(Lithic::FinancialAccount) end @@ -123,6 +124,8 @@ module Lithic status:, # Substatus for the financial account substatus:, + # User-defined status for the financial account + user_defined_status: nil, request_options: {} ) end diff --git a/rbi/lithic/resources/management_operations.rbi b/rbi/lithic/resources/management_operations.rbi index 3cc00fa7..528bdc7d 100644 --- a/rbi/lithic/resources/management_operations.rbi +++ b/rbi/lithic/resources/management_operations.rbi @@ -30,6 +30,8 @@ module Lithic effective_date:, event_type:, financial_account_token:, + # Customer-provided token that will serve as an idempotency token. This token will + # become the transaction token. token: nil, memo: nil, # What to do if the financial account is closed when posting an operation diff --git a/rbi/lithic/resources/transfer_limits.rbi b/rbi/lithic/resources/transfer_limits.rbi new file mode 100644 index 00000000..1cc8e669 --- /dev/null +++ b/rbi/lithic/resources/transfer_limits.rbi @@ -0,0 +1,28 @@ +# typed: strong + +module Lithic + module Resources + class TransferLimits + # Get transfer limits for a specified date + sig do + params( + date: Date, + request_options: Lithic::RequestOptions::OrHash + ).returns( + Lithic::Internal::SinglePage[Lithic::TransferLimitsResponse::Data] + ) + end + def list( + # Date for which to retrieve transfer limits (ISO 8601 format) + date: nil, + request_options: {} + ) + end + + # @api private + sig { params(client: Lithic::Client).returns(T.attached_class) } + def self.new(client:) + end + end + end +end diff --git a/rbi/lithic/resources/webhooks.rbi b/rbi/lithic/resources/webhooks.rbi index 19d31b07..767a2dfd 100644 --- a/rbi/lithic/resources/webhooks.rbi +++ b/rbi/lithic/resources/webhooks.rbi @@ -8,134 +8,12 @@ module Lithic payload: String, headers: T::Hash[String, String], secret: T.nilable(String) - ).returns( - T.any( - Lithic::AccountHolderCreatedWebhookEvent, - Lithic::ParsedWebhookEvent::KYBPayload, - Lithic::ParsedWebhookEvent::KYCPayload, - Lithic::ParsedWebhookEvent::LegacyPayload, - Lithic::AccountHolderVerificationWebhookEvent, - Lithic::AccountHolderDocumentUpdatedWebhookEvent, - Lithic::AsaRequestWebhookEvent, - Lithic::TokenizationDecisioningRequestWebhookEvent, - Lithic::AuthRulesBacktestReportCreatedWebhookEvent, - Lithic::BalanceUpdatedWebhookEvent, - Lithic::BookTransferTransactionCreatedWebhookEvent, - Lithic::BookTransferTransactionUpdatedWebhookEvent, - Lithic::CardCreatedWebhookEvent, - Lithic::CardConvertedWebhookEvent, - Lithic::CardRenewedWebhookEvent, - Lithic::CardReissuedWebhookEvent, - Lithic::CardShippedWebhookEvent, - Lithic::CardTransactionUpdatedWebhookEvent, - Lithic::CardTransactionEnhancedDataCreatedWebhookEvent, - Lithic::CardTransactionEnhancedDataUpdatedWebhookEvent, - Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent, - Lithic::DigitalWalletTokenizationResultWebhookEvent, - Lithic::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent, - Lithic::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent, - Lithic::DigitalWalletTokenizationUpdatedWebhookEvent, - Lithic::DisputeUpdatedWebhookEvent, - Lithic::DisputeEvidenceUploadFailedWebhookEvent, - Lithic::ExternalBankAccountCreatedWebhookEvent, - Lithic::ExternalBankAccountUpdatedWebhookEvent, - Lithic::ExternalPaymentCreatedWebhookEvent, - Lithic::ExternalPaymentUpdatedWebhookEvent, - Lithic::FinancialAccountCreatedWebhookEvent, - Lithic::FinancialAccountUpdatedWebhookEvent, - Lithic::FundingEventCreatedWebhookEvent, - Lithic::LoanTapeCreatedWebhookEvent, - Lithic::LoanTapeUpdatedWebhookEvent, - Lithic::ManagementOperationCreatedWebhookEvent, - Lithic::ManagementOperationUpdatedWebhookEvent, - Lithic::InternalTransactionCreatedWebhookEvent, - Lithic::InternalTransactionUpdatedWebhookEvent, - Lithic::NetworkTotalCreatedWebhookEvent, - Lithic::NetworkTotalUpdatedWebhookEvent, - Lithic::PaymentTransactionCreatedWebhookEvent, - Lithic::PaymentTransactionUpdatedWebhookEvent, - Lithic::SettlementReportUpdatedWebhookEvent, - Lithic::StatementsCreatedWebhookEvent, - Lithic::ThreeDSAuthenticationCreatedWebhookEvent, - Lithic::ThreeDSAuthenticationUpdatedWebhookEvent, - Lithic::ThreeDSAuthenticationChallengeWebhookEvent, - Lithic::TokenizationApprovalRequestWebhookEvent, - Lithic::TokenizationResultWebhookEvent, - Lithic::TokenizationTwoFactorAuthenticationCodeWebhookEvent, - Lithic::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent, - Lithic::TokenizationUpdatedWebhookEvent, - Lithic::ThreeDSAuthentication, - Lithic::DisputeTransactionCreatedWebhookEvent, - Lithic::DisputeTransactionUpdatedWebhookEvent - ) - ) + ).returns(Lithic::ParsedWebhookEvent::Variants) end def parse(payload, headers:, secret: nil) end - sig do - params(payload: String).returns( - T.any( - Lithic::AccountHolderCreatedWebhookEvent, - Lithic::ParsedWebhookEvent::KYBPayload, - Lithic::ParsedWebhookEvent::KYCPayload, - Lithic::ParsedWebhookEvent::LegacyPayload, - Lithic::AccountHolderVerificationWebhookEvent, - Lithic::AccountHolderDocumentUpdatedWebhookEvent, - Lithic::AsaRequestWebhookEvent, - Lithic::TokenizationDecisioningRequestWebhookEvent, - Lithic::AuthRulesBacktestReportCreatedWebhookEvent, - Lithic::BalanceUpdatedWebhookEvent, - Lithic::BookTransferTransactionCreatedWebhookEvent, - Lithic::BookTransferTransactionUpdatedWebhookEvent, - Lithic::CardCreatedWebhookEvent, - Lithic::CardConvertedWebhookEvent, - Lithic::CardRenewedWebhookEvent, - Lithic::CardReissuedWebhookEvent, - Lithic::CardShippedWebhookEvent, - Lithic::CardTransactionUpdatedWebhookEvent, - Lithic::CardTransactionEnhancedDataCreatedWebhookEvent, - Lithic::CardTransactionEnhancedDataUpdatedWebhookEvent, - Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent, - Lithic::DigitalWalletTokenizationResultWebhookEvent, - Lithic::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent, - Lithic::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent, - Lithic::DigitalWalletTokenizationUpdatedWebhookEvent, - Lithic::DisputeUpdatedWebhookEvent, - Lithic::DisputeEvidenceUploadFailedWebhookEvent, - Lithic::ExternalBankAccountCreatedWebhookEvent, - Lithic::ExternalBankAccountUpdatedWebhookEvent, - Lithic::ExternalPaymentCreatedWebhookEvent, - Lithic::ExternalPaymentUpdatedWebhookEvent, - Lithic::FinancialAccountCreatedWebhookEvent, - Lithic::FinancialAccountUpdatedWebhookEvent, - Lithic::FundingEventCreatedWebhookEvent, - Lithic::LoanTapeCreatedWebhookEvent, - Lithic::LoanTapeUpdatedWebhookEvent, - Lithic::ManagementOperationCreatedWebhookEvent, - Lithic::ManagementOperationUpdatedWebhookEvent, - Lithic::InternalTransactionCreatedWebhookEvent, - Lithic::InternalTransactionUpdatedWebhookEvent, - Lithic::NetworkTotalCreatedWebhookEvent, - Lithic::NetworkTotalUpdatedWebhookEvent, - Lithic::PaymentTransactionCreatedWebhookEvent, - Lithic::PaymentTransactionUpdatedWebhookEvent, - Lithic::SettlementReportUpdatedWebhookEvent, - Lithic::StatementsCreatedWebhookEvent, - Lithic::ThreeDSAuthenticationCreatedWebhookEvent, - Lithic::ThreeDSAuthenticationUpdatedWebhookEvent, - Lithic::ThreeDSAuthenticationChallengeWebhookEvent, - Lithic::TokenizationApprovalRequestWebhookEvent, - Lithic::TokenizationResultWebhookEvent, - Lithic::TokenizationTwoFactorAuthenticationCodeWebhookEvent, - Lithic::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent, - Lithic::TokenizationUpdatedWebhookEvent, - Lithic::ThreeDSAuthentication, - Lithic::DisputeTransactionCreatedWebhookEvent, - Lithic::DisputeTransactionUpdatedWebhookEvent - ) - ) - end + sig { params(payload: String).returns(Lithic::ParsedWebhookEvent::Variants) } def parse_unsafe(payload) end diff --git a/sig/lithic/client.rbs b/sig/lithic/client.rbs index 9cc1e433..2f67db75 100644 --- a/sig/lithic/client.rbs +++ b/sig/lithic/client.rbs @@ -33,8 +33,6 @@ module Lithic attr_reader balances: Lithic::Resources::Balances - attr_reader aggregate_balances: Lithic::Resources::AggregateBalances - attr_reader disputes: Lithic::Resources::Disputes attr_reader disputes_v2: Lithic::Resources::DisputesV2 @@ -79,6 +77,8 @@ module Lithic attr_reader account_activity: Lithic::Resources::AccountActivity + attr_reader transfer_limits: Lithic::Resources::TransferLimits + attr_reader webhooks: Lithic::Resources::Webhooks def api_status: ( diff --git a/sig/lithic/models.rbs b/sig/lithic/models.rbs index 573c6180..9a292f5d 100644 --- a/sig/lithic/models.rbs +++ b/sig/lithic/models.rbs @@ -49,14 +49,8 @@ module Lithic class AddressUpdate = Lithic::Models::AddressUpdate - class AggregateBalance = Lithic::Models::AggregateBalance - - class AggregateBalanceListParams = Lithic::Models::AggregateBalanceListParams - class APIStatus = Lithic::Models::APIStatus - class AsaRequestWebhookEvent = Lithic::Models::AsaRequestWebhookEvent - module AuthRules = Lithic::Models::AuthRules class AuthRulesBacktestReportCreatedWebhookEvent = Lithic::Models::AuthRulesBacktestReportCreatedWebhookEvent @@ -81,6 +75,8 @@ module Lithic class BookTransferRetrieveParams = Lithic::Models::BookTransferRetrieveParams + class BookTransferRetryParams = Lithic::Models::BookTransferRetryParams + class BookTransferReverseParams = Lithic::Models::BookTransferReverseParams class BookTransferTransactionCreatedWebhookEvent = Lithic::Models::BookTransferTransactionCreatedWebhookEvent @@ -89,6 +85,8 @@ module Lithic class Card = Lithic::Models::Card + class CardAuthorizationApprovalRequestWebhookEvent = Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent + class CardBulkOrder = Lithic::Models::CardBulkOrder class CardBulkOrderCreateParams = Lithic::Models::CardBulkOrderCreateParams @@ -431,6 +429,8 @@ module Lithic class ThreeDSAuthentication = Lithic::Models::ThreeDSAuthentication + class ThreeDSAuthenticationApprovalRequestWebhookEvent = Lithic::Models::ThreeDSAuthenticationApprovalRequestWebhookEvent + class ThreeDSAuthenticationChallengeWebhookEvent = Lithic::Models::ThreeDSAuthenticationChallengeWebhookEvent class ThreeDSAuthenticationCreatedWebhookEvent = Lithic::Models::ThreeDSAuthenticationCreatedWebhookEvent @@ -511,6 +511,10 @@ module Lithic class TransferCreateParams = Lithic::Models::TransferCreateParams + class TransferLimitListParams = Lithic::Models::TransferLimitListParams + + class TransferLimitsResponse = Lithic::Models::TransferLimitsResponse + module VerificationMethod = Lithic::Models::VerificationMethod class WalletDecisioningInfo = Lithic::Models::WalletDecisioningInfo diff --git a/sig/lithic/models/aggregate_balance.rbs b/sig/lithic/models/aggregate_balance.rbs deleted file mode 100644 index 0cac39a2..00000000 --- a/sig/lithic/models/aggregate_balance.rbs +++ /dev/null @@ -1,78 +0,0 @@ -module Lithic - module Models - type aggregate_balance = - { - available_amount: Integer, - created: Time, - currency: String, - financial_account_type: Lithic::Models::AggregateBalance::financial_account_type, - last_financial_account_token: String, - last_transaction_event_token: String, - last_transaction_token: String, - pending_amount: Integer, - total_amount: Integer, - updated: Time - } - - class AggregateBalance < Lithic::Internal::Type::BaseModel - attr_accessor available_amount: Integer - - attr_accessor created: Time - - attr_accessor currency: String - - attr_accessor financial_account_type: Lithic::Models::AggregateBalance::financial_account_type - - attr_accessor last_financial_account_token: String - - attr_accessor last_transaction_event_token: String - - attr_accessor last_transaction_token: String - - attr_accessor pending_amount: Integer - - attr_accessor total_amount: Integer - - attr_accessor updated: Time - - def initialize: ( - available_amount: Integer, - created: Time, - currency: String, - financial_account_type: Lithic::Models::AggregateBalance::financial_account_type, - last_financial_account_token: String, - last_transaction_event_token: String, - last_transaction_token: String, - pending_amount: Integer, - total_amount: Integer, - updated: Time - ) -> void - - def to_hash: -> { - available_amount: Integer, - created: Time, - currency: String, - financial_account_type: Lithic::Models::AggregateBalance::financial_account_type, - last_financial_account_token: String, - last_transaction_event_token: String, - last_transaction_token: String, - pending_amount: Integer, - total_amount: Integer, - updated: Time - } - - type financial_account_type = :ISSUING | :OPERATING | :RESERVE | :SECURITY - - module FinancialAccountType - extend Lithic::Internal::Type::Enum - - ISSUING: :ISSUING - OPERATING: :OPERATING - RESERVE: :RESERVE - SECURITY: :SECURITY - - def self?.values: -> ::Array[Lithic::Models::AggregateBalance::financial_account_type] - end - end - end -end diff --git a/sig/lithic/models/aggregate_balance_list_params.rbs b/sig/lithic/models/aggregate_balance_list_params.rbs deleted file mode 100644 index 69972670..00000000 --- a/sig/lithic/models/aggregate_balance_list_params.rbs +++ /dev/null @@ -1,43 +0,0 @@ -module Lithic - module Models - type aggregate_balance_list_params = - { - financial_account_type: Lithic::Models::AggregateBalanceListParams::financial_account_type - } - & Lithic::Internal::Type::request_parameters - - class AggregateBalanceListParams < Lithic::Internal::Type::BaseModel - extend Lithic::Internal::Type::RequestParameters::Converter - include Lithic::Internal::Type::RequestParameters - - attr_reader financial_account_type: Lithic::Models::AggregateBalanceListParams::financial_account_type? - - def financial_account_type=: ( - Lithic::Models::AggregateBalanceListParams::financial_account_type - ) -> Lithic::Models::AggregateBalanceListParams::financial_account_type - - def initialize: ( - ?financial_account_type: Lithic::Models::AggregateBalanceListParams::financial_account_type, - ?request_options: Lithic::request_opts - ) -> void - - def to_hash: -> { - financial_account_type: Lithic::Models::AggregateBalanceListParams::financial_account_type, - request_options: Lithic::RequestOptions - } - - type financial_account_type = :ISSUING | :OPERATING | :RESERVE | :SECURITY - - module FinancialAccountType - extend Lithic::Internal::Type::Enum - - ISSUING: :ISSUING - OPERATING: :OPERATING - RESERVE: :RESERVE - SECURITY: :SECURITY - - def self?.values: -> ::Array[Lithic::Models::AggregateBalanceListParams::financial_account_type] - end - end - end -end diff --git a/sig/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbs b/sig/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbs index 9c575bd7..b435ba96 100644 --- a/sig/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbs +++ b/sig/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbs @@ -215,6 +215,7 @@ module Lithic | :WALLET_RECOMMENDATION_REASONS | :TOKEN_REQUESTOR_ID | :WALLET_TOKEN_STATUS + | :CARD_STATE module Attribute extend Lithic::Internal::Type::Enum @@ -229,6 +230,7 @@ module Lithic WALLET_RECOMMENDATION_REASONS: :WALLET_RECOMMENDATION_REASONS TOKEN_REQUESTOR_ID: :TOKEN_REQUESTOR_ID WALLET_TOKEN_STATUS: :WALLET_TOKEN_STATUS + CARD_STATE: :CARD_STATE def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Condition::attribute] end diff --git a/sig/lithic/models/book_transfer_retry_params.rbs b/sig/lithic/models/book_transfer_retry_params.rbs new file mode 100644 index 00000000..39b32cd1 --- /dev/null +++ b/sig/lithic/models/book_transfer_retry_params.rbs @@ -0,0 +1,23 @@ +module Lithic + module Models + type book_transfer_retry_params = + { retry_token: String } & Lithic::Internal::Type::request_parameters + + class BookTransferRetryParams < Lithic::Internal::Type::BaseModel + extend Lithic::Internal::Type::RequestParameters::Converter + include Lithic::Internal::Type::RequestParameters + + attr_accessor retry_token: String + + def initialize: ( + retry_token: String, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { + retry_token: String, + request_options: Lithic::RequestOptions + } + end + end +end diff --git a/sig/lithic/models/asa_request_webhook_event.rbs b/sig/lithic/models/card_authorization_approval_request_webhook_event.rbs similarity index 51% rename from sig/lithic/models/asa_request_webhook_event.rbs rename to sig/lithic/models/card_authorization_approval_request_webhook_event.rbs index fdf3f042..346f8b79 100644 --- a/sig/lithic/models/asa_request_webhook_event.rbs +++ b/sig/lithic/models/card_authorization_approval_request_webhook_event.rbs @@ -1,38 +1,39 @@ module Lithic module Models - type asa_request_webhook_event = + type card_authorization_approval_request_webhook_event = { token: String, acquirer_fee: Integer, amount: Integer, authorization_amount: Integer, - avs: Lithic::AsaRequestWebhookEvent::Avs, - card: Lithic::AsaRequestWebhookEvent::Card, + avs: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Avs, + card: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card, cardholder_currency: String, cash_amount: Integer, created: Time, + event_type: :"card_authorization.approval_request", merchant: Lithic::Merchant, merchant_amount: Integer, merchant_currency: String, settled_amount: Integer, - status: Lithic::Models::AsaRequestWebhookEvent::status, - transaction_initiator: Lithic::Models::AsaRequestWebhookEvent::transaction_initiator, - account_type: Lithic::Models::AsaRequestWebhookEvent::account_type, + status: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::status, + transaction_initiator: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::transaction_initiator, + account_type: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::account_type, cardholder_authentication: Lithic::CardholderAuthentication, cashback: Integer, conversion_rate: Float, event_token: String, - fleet_info: Lithic::AsaRequestWebhookEvent::FleetInfo?, - latest_challenge: Lithic::AsaRequestWebhookEvent::LatestChallenge, - network: Lithic::Models::AsaRequestWebhookEvent::network, + fleet_info: Lithic::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo?, + latest_challenge: Lithic::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge, + network: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::network, network_risk_score: Integer?, - network_specific_data: Lithic::AsaRequestWebhookEvent::NetworkSpecificData?, - pos: Lithic::AsaRequestWebhookEvent::Pos, + network_specific_data: Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData?, + pos: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos, token_info: Lithic::TokenInfo?, ttl: Time } - class AsaRequestWebhookEvent < Lithic::Internal::Type::BaseModel + class CardAuthorizationApprovalRequestWebhookEvent < Lithic::Internal::Type::BaseModel attr_accessor token: String attr_accessor acquirer_fee: Integer @@ -41,9 +42,9 @@ module Lithic attr_accessor authorization_amount: Integer - attr_accessor avs: Lithic::AsaRequestWebhookEvent::Avs + attr_accessor avs: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Avs - attr_accessor card: Lithic::AsaRequestWebhookEvent::Card + attr_accessor card: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card attr_accessor cardholder_currency: String @@ -51,6 +52,8 @@ module Lithic attr_accessor created: Time + attr_accessor event_type: :"card_authorization.approval_request" + attr_accessor merchant: Lithic::Merchant attr_accessor merchant_amount: Integer @@ -59,15 +62,15 @@ module Lithic attr_accessor settled_amount: Integer - attr_accessor status: Lithic::Models::AsaRequestWebhookEvent::status + attr_accessor status: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::status - attr_accessor transaction_initiator: Lithic::Models::AsaRequestWebhookEvent::transaction_initiator + attr_accessor transaction_initiator: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::transaction_initiator - attr_reader account_type: Lithic::Models::AsaRequestWebhookEvent::account_type? + attr_reader account_type: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::account_type? def account_type=: ( - Lithic::Models::AsaRequestWebhookEvent::account_type - ) -> Lithic::Models::AsaRequestWebhookEvent::account_type + Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::account_type + ) -> Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::account_type attr_reader cardholder_authentication: Lithic::CardholderAuthentication? @@ -87,29 +90,29 @@ module Lithic def event_token=: (String) -> String - attr_accessor fleet_info: Lithic::AsaRequestWebhookEvent::FleetInfo? + attr_accessor fleet_info: Lithic::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo? - attr_reader latest_challenge: Lithic::AsaRequestWebhookEvent::LatestChallenge? + attr_reader latest_challenge: Lithic::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge? def latest_challenge=: ( - Lithic::AsaRequestWebhookEvent::LatestChallenge - ) -> Lithic::AsaRequestWebhookEvent::LatestChallenge + Lithic::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge + ) -> Lithic::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge - attr_reader network: Lithic::Models::AsaRequestWebhookEvent::network? + attr_reader network: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::network? def network=: ( - Lithic::Models::AsaRequestWebhookEvent::network - ) -> Lithic::Models::AsaRequestWebhookEvent::network + Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::network + ) -> Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::network attr_accessor network_risk_score: Integer? - attr_accessor network_specific_data: Lithic::AsaRequestWebhookEvent::NetworkSpecificData? + attr_accessor network_specific_data: Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData? - attr_reader pos: Lithic::AsaRequestWebhookEvent::Pos? + attr_reader pos: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos? def pos=: ( - Lithic::AsaRequestWebhookEvent::Pos - ) -> Lithic::AsaRequestWebhookEvent::Pos + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos + ) -> Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos attr_accessor token_info: Lithic::TokenInfo? @@ -122,8 +125,8 @@ module Lithic acquirer_fee: Integer, amount: Integer, authorization_amount: Integer, - avs: Lithic::AsaRequestWebhookEvent::Avs, - card: Lithic::AsaRequestWebhookEvent::Card, + avs: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Avs, + card: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card, cardholder_currency: String, cash_amount: Integer, created: Time, @@ -131,21 +134,22 @@ module Lithic merchant_amount: Integer, merchant_currency: String, settled_amount: Integer, - status: Lithic::Models::AsaRequestWebhookEvent::status, - transaction_initiator: Lithic::Models::AsaRequestWebhookEvent::transaction_initiator, - ?account_type: Lithic::Models::AsaRequestWebhookEvent::account_type, + status: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::status, + transaction_initiator: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::transaction_initiator, + ?account_type: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::account_type, ?cardholder_authentication: Lithic::CardholderAuthentication, ?cashback: Integer, ?conversion_rate: Float, ?event_token: String, - ?fleet_info: Lithic::AsaRequestWebhookEvent::FleetInfo?, - ?latest_challenge: Lithic::AsaRequestWebhookEvent::LatestChallenge, - ?network: Lithic::Models::AsaRequestWebhookEvent::network, + ?fleet_info: Lithic::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo?, + ?latest_challenge: Lithic::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge, + ?network: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::network, ?network_risk_score: Integer?, - ?network_specific_data: Lithic::AsaRequestWebhookEvent::NetworkSpecificData?, - ?pos: Lithic::AsaRequestWebhookEvent::Pos, + ?network_specific_data: Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData?, + ?pos: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos, ?token_info: Lithic::TokenInfo?, - ?ttl: Time + ?ttl: Time, + ?event_type: :"card_authorization.approval_request" ) -> void def to_hash: -> { @@ -153,28 +157,29 @@ module Lithic acquirer_fee: Integer, amount: Integer, authorization_amount: Integer, - avs: Lithic::AsaRequestWebhookEvent::Avs, - card: Lithic::AsaRequestWebhookEvent::Card, + avs: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Avs, + card: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card, cardholder_currency: String, cash_amount: Integer, created: Time, + event_type: :"card_authorization.approval_request", merchant: Lithic::Merchant, merchant_amount: Integer, merchant_currency: String, settled_amount: Integer, - status: Lithic::Models::AsaRequestWebhookEvent::status, - transaction_initiator: Lithic::Models::AsaRequestWebhookEvent::transaction_initiator, - account_type: Lithic::Models::AsaRequestWebhookEvent::account_type, + status: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::status, + transaction_initiator: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::transaction_initiator, + account_type: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::account_type, cardholder_authentication: Lithic::CardholderAuthentication, cashback: Integer, conversion_rate: Float, event_token: String, - fleet_info: Lithic::AsaRequestWebhookEvent::FleetInfo?, - latest_challenge: Lithic::AsaRequestWebhookEvent::LatestChallenge, - network: Lithic::Models::AsaRequestWebhookEvent::network, + fleet_info: Lithic::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo?, + latest_challenge: Lithic::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge, + network: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::network, network_risk_score: Integer?, - network_specific_data: Lithic::AsaRequestWebhookEvent::NetworkSpecificData?, - pos: Lithic::AsaRequestWebhookEvent::Pos, + network_specific_data: Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData?, + pos: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos, token_info: Lithic::TokenInfo?, ttl: Time } @@ -182,26 +187,26 @@ module Lithic type avs = { address: String, - address_on_file_match: Lithic::Models::AsaRequestWebhookEvent::Avs::address_on_file_match, + address_on_file_match: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Avs::address_on_file_match, zipcode: String } class Avs < Lithic::Internal::Type::BaseModel attr_accessor address: String - attr_accessor address_on_file_match: Lithic::Models::AsaRequestWebhookEvent::Avs::address_on_file_match + attr_accessor address_on_file_match: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Avs::address_on_file_match attr_accessor zipcode: String def initialize: ( address: String, - address_on_file_match: Lithic::Models::AsaRequestWebhookEvent::Avs::address_on_file_match, + address_on_file_match: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Avs::address_on_file_match, zipcode: String ) -> void def to_hash: -> { address: String, - address_on_file_match: Lithic::Models::AsaRequestWebhookEvent::Avs::address_on_file_match, + address_on_file_match: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Avs::address_on_file_match, zipcode: String } @@ -221,7 +226,7 @@ module Lithic MISMATCH: :MISMATCH NOT_PRESENT: :NOT_PRESENT - def self?.values: -> ::Array[Lithic::Models::AsaRequestWebhookEvent::Avs::address_on_file_match] + def self?.values: -> ::Array[Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Avs::address_on_file_match] end end @@ -232,9 +237,9 @@ module Lithic last_four: String, memo: String, spend_limit: Integer, - spend_limit_duration: Lithic::Models::AsaRequestWebhookEvent::Card::spend_limit_duration, - state: Lithic::Models::AsaRequestWebhookEvent::Card::state, - type: Lithic::Models::AsaRequestWebhookEvent::Card::type_ + spend_limit_duration: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::spend_limit_duration, + state: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::state, + type: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::type_ } class Card < Lithic::Internal::Type::BaseModel @@ -258,23 +263,23 @@ module Lithic def spend_limit=: (Integer) -> Integer - attr_reader spend_limit_duration: Lithic::Models::AsaRequestWebhookEvent::Card::spend_limit_duration? + attr_reader spend_limit_duration: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::spend_limit_duration? def spend_limit_duration=: ( - Lithic::Models::AsaRequestWebhookEvent::Card::spend_limit_duration - ) -> Lithic::Models::AsaRequestWebhookEvent::Card::spend_limit_duration + Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::spend_limit_duration + ) -> Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::spend_limit_duration - attr_reader state: Lithic::Models::AsaRequestWebhookEvent::Card::state? + attr_reader state: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::state? def state=: ( - Lithic::Models::AsaRequestWebhookEvent::Card::state - ) -> Lithic::Models::AsaRequestWebhookEvent::Card::state + Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::state + ) -> Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::state - attr_reader type: Lithic::Models::AsaRequestWebhookEvent::Card::type_? + attr_reader type: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::type_? def type=: ( - Lithic::Models::AsaRequestWebhookEvent::Card::type_ - ) -> Lithic::Models::AsaRequestWebhookEvent::Card::type_ + Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::type_ + ) -> Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::type_ def initialize: ( ?token: String, @@ -282,9 +287,9 @@ module Lithic ?last_four: String, ?memo: String, ?spend_limit: Integer, - ?spend_limit_duration: Lithic::Models::AsaRequestWebhookEvent::Card::spend_limit_duration, - ?state: Lithic::Models::AsaRequestWebhookEvent::Card::state, - ?type: Lithic::Models::AsaRequestWebhookEvent::Card::type_ + ?spend_limit_duration: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::spend_limit_duration, + ?state: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::state, + ?type: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::type_ ) -> void def to_hash: -> { @@ -293,9 +298,9 @@ module Lithic last_four: String, memo: String, spend_limit: Integer, - spend_limit_duration: Lithic::Models::AsaRequestWebhookEvent::Card::spend_limit_duration, - state: Lithic::Models::AsaRequestWebhookEvent::Card::state, - type: Lithic::Models::AsaRequestWebhookEvent::Card::type_ + spend_limit_duration: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::spend_limit_duration, + state: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::state, + type: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::type_ } type spend_limit_duration = @@ -309,7 +314,7 @@ module Lithic MONTHLY: :MONTHLY TRANSACTION: :TRANSACTION - def self?.values: -> ::Array[Lithic::Models::AsaRequestWebhookEvent::Card::spend_limit_duration] + def self?.values: -> ::Array[Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::spend_limit_duration] end type state = @@ -324,7 +329,7 @@ module Lithic PENDING_ACTIVATION: :PENDING_ACTIVATION PENDING_FULFILLMENT: :PENDING_FULFILLMENT - def self?.values: -> ::Array[Lithic::Models::AsaRequestWebhookEvent::Card::state] + def self?.values: -> ::Array[Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::state] end type type_ = @@ -345,7 +350,7 @@ module Lithic DIGITAL_WALLET: :DIGITAL_WALLET VIRTUAL: :VIRTUAL - def self?.values: -> ::Array[Lithic::Models::AsaRequestWebhookEvent::Card::type_] + def self?.values: -> ::Array[Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Card::type_] end end @@ -365,7 +370,7 @@ module Lithic FINANCIAL_CREDIT_AUTHORIZATION: :FINANCIAL_CREDIT_AUTHORIZATION BALANCE_INQUIRY: :BALANCE_INQUIRY - def self?.values: -> ::Array[Lithic::Models::AsaRequestWebhookEvent::status] + def self?.values: -> ::Array[Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::status] end type transaction_initiator = :CARDHOLDER | :MERCHANT | :UNKNOWN @@ -377,7 +382,7 @@ module Lithic MERCHANT: :MERCHANT UNKNOWN: :UNKNOWN - def self?.values: -> ::Array[Lithic::Models::AsaRequestWebhookEvent::transaction_initiator] + def self?.values: -> ::Array[Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::transaction_initiator] end type account_type = :CHECKING | :SAVINGS @@ -388,36 +393,36 @@ module Lithic CHECKING: :CHECKING SAVINGS: :SAVINGS - def self?.values: -> ::Array[Lithic::Models::AsaRequestWebhookEvent::account_type] + def self?.values: -> ::Array[Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::account_type] end type fleet_info = { - fleet_prompt_code: Lithic::Models::AsaRequestWebhookEvent::FleetInfo::fleet_prompt_code, - fleet_restriction_code: Lithic::Models::AsaRequestWebhookEvent::FleetInfo::fleet_restriction_code, + fleet_prompt_code: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::fleet_prompt_code, + fleet_restriction_code: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::fleet_restriction_code, driver_number: String?, vehicle_number: String? } class FleetInfo < Lithic::Internal::Type::BaseModel - attr_accessor fleet_prompt_code: Lithic::Models::AsaRequestWebhookEvent::FleetInfo::fleet_prompt_code + attr_accessor fleet_prompt_code: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::fleet_prompt_code - attr_accessor fleet_restriction_code: Lithic::Models::AsaRequestWebhookEvent::FleetInfo::fleet_restriction_code + attr_accessor fleet_restriction_code: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::fleet_restriction_code attr_accessor driver_number: String? attr_accessor vehicle_number: String? def initialize: ( - fleet_prompt_code: Lithic::Models::AsaRequestWebhookEvent::FleetInfo::fleet_prompt_code, - fleet_restriction_code: Lithic::Models::AsaRequestWebhookEvent::FleetInfo::fleet_restriction_code, + fleet_prompt_code: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::fleet_prompt_code, + fleet_restriction_code: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::fleet_restriction_code, ?driver_number: String?, ?vehicle_number: String? ) -> void def to_hash: -> { - fleet_prompt_code: Lithic::Models::AsaRequestWebhookEvent::FleetInfo::fleet_prompt_code, - fleet_restriction_code: Lithic::Models::AsaRequestWebhookEvent::FleetInfo::fleet_restriction_code, + fleet_prompt_code: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::fleet_prompt_code, + fleet_restriction_code: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::fleet_restriction_code, driver_number: String?, vehicle_number: String? } @@ -431,7 +436,7 @@ module Lithic VEHICLE_NUMBER: :VEHICLE_NUMBER DRIVER_NUMBER: :DRIVER_NUMBER - def self?.values: -> ::Array[Lithic::Models::AsaRequestWebhookEvent::FleetInfo::fleet_prompt_code] + def self?.values: -> ::Array[Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::fleet_prompt_code] end type fleet_restriction_code = :NO_RESTRICTIONS | :FUEL_ONLY @@ -442,21 +447,21 @@ module Lithic NO_RESTRICTIONS: :NO_RESTRICTIONS FUEL_ONLY: :FUEL_ONLY - def self?.values: -> ::Array[Lithic::Models::AsaRequestWebhookEvent::FleetInfo::fleet_restriction_code] + def self?.values: -> ::Array[Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::FleetInfo::fleet_restriction_code] end end type latest_challenge = { phone_number: String, - status: Lithic::Models::AsaRequestWebhookEvent::LatestChallenge::status, + status: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge::status, completed_at: Time } class LatestChallenge < Lithic::Internal::Type::BaseModel attr_accessor phone_number: String - attr_accessor status: Lithic::Models::AsaRequestWebhookEvent::LatestChallenge::status + attr_accessor status: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge::status attr_reader completed_at: Time? @@ -464,13 +469,13 @@ module Lithic def initialize: ( phone_number: String, - status: Lithic::Models::AsaRequestWebhookEvent::LatestChallenge::status, + status: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge::status, ?completed_at: Time ) -> void def to_hash: -> { phone_number: String, - status: Lithic::Models::AsaRequestWebhookEvent::LatestChallenge::status, + status: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge::status, completed_at: Time } @@ -484,7 +489,7 @@ module Lithic EXPIRED: :EXPIRED ERROR: :ERROR - def self?.values: -> ::Array[Lithic::Models::AsaRequestWebhookEvent::LatestChallenge::status] + def self?.values: -> ::Array[Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::LatestChallenge::status] end end @@ -501,53 +506,53 @@ module Lithic UNKNOWN: :UNKNOWN VISA: :VISA - def self?.values: -> ::Array[Lithic::Models::AsaRequestWebhookEvent::network] + def self?.values: -> ::Array[Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::network] end type network_specific_data = { - mastercard: Lithic::AsaRequestWebhookEvent::NetworkSpecificData::Mastercard?, - visa: Lithic::AsaRequestWebhookEvent::NetworkSpecificData::Visa? + mastercard: Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Mastercard?, + visa: Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Visa? } class NetworkSpecificData < Lithic::Internal::Type::BaseModel - attr_accessor mastercard: Lithic::AsaRequestWebhookEvent::NetworkSpecificData::Mastercard? + attr_accessor mastercard: Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Mastercard? - attr_accessor visa: Lithic::AsaRequestWebhookEvent::NetworkSpecificData::Visa? + attr_accessor visa: Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Visa? def initialize: ( - ?mastercard: Lithic::AsaRequestWebhookEvent::NetworkSpecificData::Mastercard?, - ?visa: Lithic::AsaRequestWebhookEvent::NetworkSpecificData::Visa? + ?mastercard: Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Mastercard?, + ?visa: Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Visa? ) -> void def to_hash: -> { - mastercard: Lithic::AsaRequestWebhookEvent::NetworkSpecificData::Mastercard?, - visa: Lithic::AsaRequestWebhookEvent::NetworkSpecificData::Visa? + mastercard: Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Mastercard?, + visa: Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Visa? } type mastercard = { ecommerce_security_level_indicator: String?, - on_behalf_service_result: ::Array[Lithic::AsaRequestWebhookEvent::NetworkSpecificData::Mastercard::OnBehalfServiceResult]?, + on_behalf_service_result: ::Array[Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Mastercard::OnBehalfServiceResult]?, transaction_type_identifier: String? } class Mastercard < Lithic::Internal::Type::BaseModel attr_accessor ecommerce_security_level_indicator: String? - attr_accessor on_behalf_service_result: ::Array[Lithic::AsaRequestWebhookEvent::NetworkSpecificData::Mastercard::OnBehalfServiceResult]? + attr_accessor on_behalf_service_result: ::Array[Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Mastercard::OnBehalfServiceResult]? attr_accessor transaction_type_identifier: String? def initialize: ( ?ecommerce_security_level_indicator: String?, - ?on_behalf_service_result: ::Array[Lithic::AsaRequestWebhookEvent::NetworkSpecificData::Mastercard::OnBehalfServiceResult]?, + ?on_behalf_service_result: ::Array[Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Mastercard::OnBehalfServiceResult]?, ?transaction_type_identifier: String? ) -> void def to_hash: -> { ecommerce_security_level_indicator: String?, - on_behalf_service_result: ::Array[Lithic::AsaRequestWebhookEvent::NetworkSpecificData::Mastercard::OnBehalfServiceResult]?, + on_behalf_service_result: ::Array[Lithic::CardAuthorizationApprovalRequestWebhookEvent::NetworkSpecificData::Mastercard::OnBehalfServiceResult]?, transaction_type_identifier: String? } @@ -588,75 +593,75 @@ module Lithic type pos = { - entry_mode: Lithic::AsaRequestWebhookEvent::Pos::EntryMode, - terminal: Lithic::AsaRequestWebhookEvent::Pos::Terminal + entry_mode: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode, + terminal: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal } class Pos < Lithic::Internal::Type::BaseModel - attr_reader entry_mode: Lithic::AsaRequestWebhookEvent::Pos::EntryMode? + attr_reader entry_mode: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode? def entry_mode=: ( - Lithic::AsaRequestWebhookEvent::Pos::EntryMode - ) -> Lithic::AsaRequestWebhookEvent::Pos::EntryMode + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode + ) -> Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode - attr_reader terminal: Lithic::AsaRequestWebhookEvent::Pos::Terminal? + attr_reader terminal: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal? def terminal=: ( - Lithic::AsaRequestWebhookEvent::Pos::Terminal - ) -> Lithic::AsaRequestWebhookEvent::Pos::Terminal + Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal + ) -> Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal def initialize: ( - ?entry_mode: Lithic::AsaRequestWebhookEvent::Pos::EntryMode, - ?terminal: Lithic::AsaRequestWebhookEvent::Pos::Terminal + ?entry_mode: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode, + ?terminal: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal ) -> void def to_hash: -> { - entry_mode: Lithic::AsaRequestWebhookEvent::Pos::EntryMode, - terminal: Lithic::AsaRequestWebhookEvent::Pos::Terminal + entry_mode: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode, + terminal: Lithic::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal } type entry_mode = { - card: Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode::card, - cardholder: Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode::cardholder, - pan: Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode::pan, + card: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::card, + cardholder: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::cardholder, + pan: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::pan, pin_entered: bool } class EntryMode < Lithic::Internal::Type::BaseModel - attr_reader card: Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode::card? + attr_reader card: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::card? def card=: ( - Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode::card - ) -> Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode::card + Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::card + ) -> Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::card - attr_reader cardholder: Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode::cardholder? + attr_reader cardholder: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::cardholder? def cardholder=: ( - Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode::cardholder - ) -> Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode::cardholder + Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::cardholder + ) -> Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::cardholder - attr_reader pan: Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode::pan? + attr_reader pan: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::pan? def pan=: ( - Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode::pan - ) -> Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode::pan + Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::pan + ) -> Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::pan attr_reader pin_entered: bool? def pin_entered=: (bool) -> bool def initialize: ( - ?card: Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode::card, - ?cardholder: Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode::cardholder, - ?pan: Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode::pan, + ?card: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::card, + ?cardholder: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::cardholder, + ?pan: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::pan, ?pin_entered: bool ) -> void def to_hash: -> { - card: Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode::card, - cardholder: Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode::cardholder, - pan: Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode::pan, + card: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::card, + cardholder: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::cardholder, + pan: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::pan, pin_entered: bool } @@ -669,7 +674,7 @@ module Lithic NOT_PRESENT: :NOT_PRESENT UNKNOWN: :UNKNOWN - def self?.values: -> ::Array[Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode::card] + def self?.values: -> ::Array[Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::card] end type cardholder = @@ -696,7 +701,7 @@ module Lithic TELEPHONE_ORDER: :TELEPHONE_ORDER UNKNOWN: :UNKNOWN - def self?.values: -> ::Array[Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode::cardholder] + def self?.values: -> ::Array[Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::cardholder] end type pan = @@ -735,7 +740,7 @@ module Lithic UNKNOWN: :UNKNOWN CREDENTIAL_ON_FILE: :CREDENTIAL_ON_FILE - def self?.values: -> ::Array[Lithic::Models::AsaRequestWebhookEvent::Pos::EntryMode::pan] + def self?.values: -> ::Array[Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::EntryMode::pan] end end @@ -744,10 +749,10 @@ module Lithic attended: bool, card_retention_capable: bool, on_premise: bool, - operator: Lithic::Models::AsaRequestWebhookEvent::Pos::Terminal::operator, + operator: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::operator, partial_approval_capable: bool, - pin_capability: Lithic::Models::AsaRequestWebhookEvent::Pos::Terminal::pin_capability, - type: Lithic::Models::AsaRequestWebhookEvent::Pos::Terminal::type_, + pin_capability: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::pin_capability, + type: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::type_, acceptor_terminal_id: String? } @@ -758,13 +763,13 @@ module Lithic attr_accessor on_premise: bool - attr_accessor operator: Lithic::Models::AsaRequestWebhookEvent::Pos::Terminal::operator + attr_accessor operator: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::operator attr_accessor partial_approval_capable: bool - attr_accessor pin_capability: Lithic::Models::AsaRequestWebhookEvent::Pos::Terminal::pin_capability + attr_accessor pin_capability: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::pin_capability - attr_accessor type: Lithic::Models::AsaRequestWebhookEvent::Pos::Terminal::type_ + attr_accessor type: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::type_ attr_accessor acceptor_terminal_id: String? @@ -772,10 +777,10 @@ module Lithic attended: bool, card_retention_capable: bool, on_premise: bool, - operator: Lithic::Models::AsaRequestWebhookEvent::Pos::Terminal::operator, + operator: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::operator, partial_approval_capable: bool, - pin_capability: Lithic::Models::AsaRequestWebhookEvent::Pos::Terminal::pin_capability, - type: Lithic::Models::AsaRequestWebhookEvent::Pos::Terminal::type_, + pin_capability: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::pin_capability, + type: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::type_, ?acceptor_terminal_id: String? ) -> void @@ -783,10 +788,10 @@ module Lithic attended: bool, card_retention_capable: bool, on_premise: bool, - operator: Lithic::Models::AsaRequestWebhookEvent::Pos::Terminal::operator, + operator: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::operator, partial_approval_capable: bool, - pin_capability: Lithic::Models::AsaRequestWebhookEvent::Pos::Terminal::pin_capability, - type: Lithic::Models::AsaRequestWebhookEvent::Pos::Terminal::type_, + pin_capability: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::pin_capability, + type: Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::type_, acceptor_terminal_id: String? } @@ -801,7 +806,7 @@ module Lithic CARD_ACCEPTOR: :CARD_ACCEPTOR UNKNOWN: :UNKNOWN - def self?.values: -> ::Array[Lithic::Models::AsaRequestWebhookEvent::Pos::Terminal::operator] + def self?.values: -> ::Array[Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::operator] end type pin_capability = @@ -815,7 +820,7 @@ module Lithic NOT_CAPABLE: :NOT_CAPABLE UNSPECIFIED: :UNSPECIFIED - def self?.values: -> ::Array[Lithic::Models::AsaRequestWebhookEvent::Pos::Terminal::pin_capability] + def self?.values: -> ::Array[Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::pin_capability] end type type_ = @@ -872,7 +877,7 @@ module Lithic VOICE: :VOICE UNKNOWN: :UNKNOWN - def self?.values: -> ::Array[Lithic::Models::AsaRequestWebhookEvent::Pos::Terminal::type_] + def self?.values: -> ::Array[Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent::Pos::Terminal::type_] end end end diff --git a/sig/lithic/models/cards/aggregate_balance_list_params.rbs b/sig/lithic/models/cards/aggregate_balance_list_params.rbs deleted file mode 100644 index 8ccdaa43..00000000 --- a/sig/lithic/models/cards/aggregate_balance_list_params.rbs +++ /dev/null @@ -1,34 +0,0 @@ -module Lithic - module Models - module Cards - type aggregate_balance_list_params = - { account_token: String, business_account_token: String } - & Lithic::Internal::Type::request_parameters - - class AggregateBalanceListParams < Lithic::Internal::Type::BaseModel - extend Lithic::Internal::Type::RequestParameters::Converter - include Lithic::Internal::Type::RequestParameters - - attr_reader account_token: String? - - def account_token=: (String) -> String - - attr_reader business_account_token: String? - - def business_account_token=: (String) -> String - - def initialize: ( - ?account_token: String, - ?business_account_token: String, - ?request_options: Lithic::request_opts - ) -> void - - def to_hash: -> { - account_token: String, - business_account_token: String, - request_options: Lithic::RequestOptions - } - end - end - end -end diff --git a/sig/lithic/models/cards/aggregate_balance_list_response.rbs b/sig/lithic/models/cards/aggregate_balance_list_response.rbs deleted file mode 100644 index 8d3aae08..00000000 --- a/sig/lithic/models/cards/aggregate_balance_list_response.rbs +++ /dev/null @@ -1,62 +0,0 @@ -module Lithic - module Models - module Cards - type aggregate_balance_list_response = - { - available_amount: Integer, - created: Time, - currency: String, - last_card_token: String, - last_transaction_event_token: String, - last_transaction_token: String, - pending_amount: Integer, - total_amount: Integer, - updated: Time - } - - class AggregateBalanceListResponse < Lithic::Internal::Type::BaseModel - attr_accessor available_amount: Integer - - attr_accessor created: Time - - attr_accessor currency: String - - attr_accessor last_card_token: String - - attr_accessor last_transaction_event_token: String - - attr_accessor last_transaction_token: String - - attr_accessor pending_amount: Integer - - attr_accessor total_amount: Integer - - attr_accessor updated: Time - - def initialize: ( - available_amount: Integer, - created: Time, - currency: String, - last_card_token: String, - last_transaction_event_token: String, - last_transaction_token: String, - pending_amount: Integer, - total_amount: Integer, - updated: Time - ) -> void - - def to_hash: -> { - available_amount: Integer, - created: Time, - currency: String, - last_card_token: String, - last_transaction_event_token: String, - last_transaction_token: String, - pending_amount: Integer, - total_amount: Integer, - updated: Time - } - end - end - end -end diff --git a/sig/lithic/models/financial_account.rbs b/sig/lithic/models/financial_account.rbs index d5384592..798ac410 100644 --- a/sig/lithic/models/financial_account.rbs +++ b/sig/lithic/models/financial_account.rbs @@ -9,11 +9,12 @@ module Lithic is_for_benefit_of: bool, nickname: String?, status: Lithic::Models::FinancialAccount::status, + substatus: Lithic::Models::FinancialAccount::substatus?, type: Lithic::Models::FinancialAccount::type_, updated: Time, + user_defined_status: String?, account_number: String?, - routing_number: String?, - substatus: Lithic::Models::FinancialAccount::substatus? + routing_number: String? } class FinancialAccount < Lithic::Internal::Type::BaseModel @@ -31,16 +32,18 @@ module Lithic attr_accessor status: Lithic::Models::FinancialAccount::status + attr_accessor substatus: Lithic::Models::FinancialAccount::substatus? + attr_accessor type: Lithic::Models::FinancialAccount::type_ attr_accessor updated: Time + attr_accessor user_defined_status: String? + attr_accessor account_number: String? attr_accessor routing_number: String? - attr_accessor substatus: Lithic::Models::FinancialAccount::substatus? - def initialize: ( token: String, account_token: String?, @@ -49,11 +52,12 @@ module Lithic is_for_benefit_of: bool, nickname: String?, status: Lithic::Models::FinancialAccount::status, + substatus: Lithic::Models::FinancialAccount::substatus?, type: Lithic::Models::FinancialAccount::type_, updated: Time, + user_defined_status: String?, ?account_number: String?, - ?routing_number: String?, - ?substatus: Lithic::Models::FinancialAccount::substatus? + ?routing_number: String? ) -> void def to_hash: -> { @@ -64,11 +68,12 @@ module Lithic is_for_benefit_of: bool, nickname: String?, status: Lithic::Models::FinancialAccount::status, + substatus: Lithic::Models::FinancialAccount::substatus?, type: Lithic::Models::FinancialAccount::type_, updated: Time, + user_defined_status: String?, account_number: String?, - routing_number: String?, - substatus: Lithic::Models::FinancialAccount::substatus? + routing_number: String? } type credit_configuration = @@ -131,6 +136,25 @@ module Lithic def self?.values: -> ::Array[Lithic::Models::FinancialAccount::status] end + type substatus = + :CHARGED_OFF_DELINQUENT + | :CHARGED_OFF_FRAUD + | :END_USER_REQUEST + | :BANK_REQUEST + | :DELINQUENT + + module Substatus + extend Lithic::Internal::Type::Enum + + CHARGED_OFF_DELINQUENT: :CHARGED_OFF_DELINQUENT + CHARGED_OFF_FRAUD: :CHARGED_OFF_FRAUD + END_USER_REQUEST: :END_USER_REQUEST + BANK_REQUEST: :BANK_REQUEST + DELINQUENT: :DELINQUENT + + def self?.values: -> ::Array[Lithic::Models::FinancialAccount::substatus] + end + type type_ = :ISSUING | :RESERVE @@ -159,25 +183,6 @@ module Lithic def self?.values: -> ::Array[Lithic::Models::FinancialAccount::type_] end - - type substatus = - :CHARGED_OFF_DELINQUENT - | :CHARGED_OFF_FRAUD - | :END_USER_REQUEST - | :BANK_REQUEST - | :DELINQUENT - - module Substatus - extend Lithic::Internal::Type::Enum - - CHARGED_OFF_DELINQUENT: :CHARGED_OFF_DELINQUENT - CHARGED_OFF_FRAUD: :CHARGED_OFF_FRAUD - END_USER_REQUEST: :END_USER_REQUEST - BANK_REQUEST: :BANK_REQUEST - DELINQUENT: :DELINQUENT - - def self?.values: -> ::Array[Lithic::Models::FinancialAccount::substatus] - end end end end diff --git a/sig/lithic/models/financial_account_update_status_params.rbs b/sig/lithic/models/financial_account_update_status_params.rbs index 901b050e..7f1e2b32 100644 --- a/sig/lithic/models/financial_account_update_status_params.rbs +++ b/sig/lithic/models/financial_account_update_status_params.rbs @@ -3,7 +3,8 @@ module Lithic type financial_account_update_status_params = { status: Lithic::Models::FinancialAccountUpdateStatusParams::status, - substatus: Lithic::Models::FinancialAccountUpdateStatusParams::substatus? + substatus: Lithic::Models::FinancialAccountUpdateStatusParams::substatus?, + user_defined_status: String } & Lithic::Internal::Type::request_parameters @@ -15,15 +16,21 @@ module Lithic attr_accessor substatus: Lithic::Models::FinancialAccountUpdateStatusParams::substatus? + attr_reader user_defined_status: String? + + def user_defined_status=: (String) -> String + def initialize: ( status: Lithic::Models::FinancialAccountUpdateStatusParams::status, substatus: Lithic::Models::FinancialAccountUpdateStatusParams::substatus?, + ?user_defined_status: String, ?request_options: Lithic::request_opts ) -> void def to_hash: -> { status: Lithic::Models::FinancialAccountUpdateStatusParams::status, substatus: Lithic::Models::FinancialAccountUpdateStatusParams::substatus?, + user_defined_status: String, request_options: Lithic::RequestOptions } diff --git a/sig/lithic/models/financial_accounts/loan_tape.rbs b/sig/lithic/models/financial_accounts/loan_tape.rbs index 593b18be..e1e4ad52 100644 --- a/sig/lithic/models/financial_accounts/loan_tape.rbs +++ b/sig/lithic/models/financial_accounts/loan_tape.rbs @@ -17,7 +17,7 @@ module Lithic financial_account_token: String, interest_details: Lithic::FinancialAccounts::LoanTape::InterestDetails?, minimum_payment_balance: Lithic::FinancialAccounts::LoanTape::MinimumPaymentBalance, - payment_allocation: Lithic::FinancialAccounts::CategoryBalances, + payment_allocation: Lithic::FinancialAccounts::LoanTape::PaymentAllocation, period_totals: Lithic::StatementTotals, previous_statement_balance: Lithic::FinancialAccounts::LoanTape::PreviousStatementBalance, starting_balance: Integer, @@ -56,7 +56,7 @@ module Lithic attr_accessor minimum_payment_balance: Lithic::FinancialAccounts::LoanTape::MinimumPaymentBalance - attr_accessor payment_allocation: Lithic::FinancialAccounts::CategoryBalances + attr_accessor payment_allocation: Lithic::FinancialAccounts::LoanTape::PaymentAllocation attr_accessor period_totals: Lithic::StatementTotals @@ -87,7 +87,7 @@ module Lithic financial_account_token: String, interest_details: Lithic::FinancialAccounts::LoanTape::InterestDetails?, minimum_payment_balance: Lithic::FinancialAccounts::LoanTape::MinimumPaymentBalance, - payment_allocation: Lithic::FinancialAccounts::CategoryBalances, + payment_allocation: Lithic::FinancialAccounts::LoanTape::PaymentAllocation, period_totals: Lithic::StatementTotals, previous_statement_balance: Lithic::FinancialAccounts::LoanTape::PreviousStatementBalance, starting_balance: Integer, @@ -112,7 +112,7 @@ module Lithic financial_account_token: String, interest_details: Lithic::FinancialAccounts::LoanTape::InterestDetails?, minimum_payment_balance: Lithic::FinancialAccounts::LoanTape::MinimumPaymentBalance, - payment_allocation: Lithic::FinancialAccounts::CategoryBalances, + payment_allocation: Lithic::FinancialAccounts::LoanTape::PaymentAllocation, period_totals: Lithic::StatementTotals, previous_statement_balance: Lithic::FinancialAccounts::LoanTape::PreviousStatementBalance, starting_balance: Integer, @@ -342,6 +342,48 @@ module Lithic def to_hash: -> { amount: Integer, remaining: Integer } end + type payment_allocation = + { + fee_details: Lithic::CategoryDetails?, + fees: Integer, + interest: Integer, + interest_details: Lithic::CategoryDetails?, + principal: Integer, + principal_details: Lithic::CategoryDetails? + } + + class PaymentAllocation < Lithic::Internal::Type::BaseModel + attr_accessor fee_details: Lithic::CategoryDetails? + + attr_accessor fees: Integer + + attr_accessor interest: Integer + + attr_accessor interest_details: Lithic::CategoryDetails? + + attr_accessor principal: Integer + + attr_accessor principal_details: Lithic::CategoryDetails? + + def initialize: ( + fee_details: Lithic::CategoryDetails?, + fees: Integer, + interest: Integer, + interest_details: Lithic::CategoryDetails?, + principal: Integer, + principal_details: Lithic::CategoryDetails? + ) -> void + + def to_hash: -> { + fee_details: Lithic::CategoryDetails?, + fees: Integer, + interest: Integer, + interest_details: Lithic::CategoryDetails?, + principal: Integer, + principal_details: Lithic::CategoryDetails? + } + end + type previous_statement_balance = { amount: Integer, remaining: Integer } diff --git a/sig/lithic/models/parsed_webhook_event.rbs b/sig/lithic/models/parsed_webhook_event.rbs index 55da08e7..b80501d8 100644 --- a/sig/lithic/models/parsed_webhook_event.rbs +++ b/sig/lithic/models/parsed_webhook_event.rbs @@ -7,7 +7,7 @@ module Lithic | Lithic::ParsedWebhookEvent::LegacyPayload | Lithic::AccountHolderVerificationWebhookEvent | Lithic::AccountHolderDocumentUpdatedWebhookEvent - | Lithic::AsaRequestWebhookEvent + | Lithic::CardAuthorizationApprovalRequestWebhookEvent | Lithic::TokenizationDecisioningRequestWebhookEvent | Lithic::AuthRulesBacktestReportCreatedWebhookEvent | Lithic::BalanceUpdatedWebhookEvent @@ -55,7 +55,7 @@ module Lithic | Lithic::TokenizationTwoFactorAuthenticationCodeWebhookEvent | Lithic::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent | Lithic::TokenizationUpdatedWebhookEvent - | Lithic::ThreeDSAuthentication + | Lithic::ThreeDSAuthenticationApprovalRequestWebhookEvent | Lithic::DisputeTransactionCreatedWebhookEvent | Lithic::DisputeTransactionUpdatedWebhookEvent diff --git a/sig/lithic/models/payment.rbs b/sig/lithic/models/payment.rbs index e92b8e53..3fbdbd5b 100644 --- a/sig/lithic/models/payment.rbs +++ b/sig/lithic/models/payment.rbs @@ -194,7 +194,8 @@ module Lithic created: Time, result: Lithic::Models::Payment::Event::result, type: Lithic::Models::Payment::Event::type_, - detailed_results: ::Array[Lithic::Models::Payment::Event::detailed_result] + detailed_results: ::Array[Lithic::Models::Payment::Event::detailed_result], + external_id: String? } class Event < Lithic::Internal::Type::BaseModel @@ -214,13 +215,16 @@ module Lithic ::Array[Lithic::Models::Payment::Event::detailed_result] ) -> ::Array[Lithic::Models::Payment::Event::detailed_result] + attr_accessor external_id: String? + def initialize: ( token: String, amount: Integer, created: Time, result: Lithic::Models::Payment::Event::result, type: Lithic::Models::Payment::Event::type_, - ?detailed_results: ::Array[Lithic::Models::Payment::Event::detailed_result] + ?detailed_results: ::Array[Lithic::Models::Payment::Event::detailed_result], + ?external_id: String? ) -> void def to_hash: -> { @@ -229,7 +233,8 @@ module Lithic created: Time, result: Lithic::Models::Payment::Event::result, type: Lithic::Models::Payment::Event::type_, - detailed_results: ::Array[Lithic::Models::Payment::Event::detailed_result] + detailed_results: ::Array[Lithic::Models::Payment::Event::detailed_result], + external_id: String? } type result = :APPROVED | :DECLINED @@ -519,6 +524,7 @@ module Lithic | :WIRE_INBOUND_ADMIN | :WIRE_OUTBOUND_PAYMENT | :WIRE_OUTBOUND_ADMIN + | :WIRE_DRAWDOWN_REQUEST module Type extend Lithic::Internal::Type::Enum @@ -531,6 +537,7 @@ module Lithic WIRE_INBOUND_ADMIN: :WIRE_INBOUND_ADMIN WIRE_OUTBOUND_PAYMENT: :WIRE_OUTBOUND_PAYMENT WIRE_OUTBOUND_ADMIN: :WIRE_OUTBOUND_ADMIN + WIRE_DRAWDOWN_REQUEST: :WIRE_DRAWDOWN_REQUEST def self?.values: -> ::Array[Lithic::Models::Payment::type_] end diff --git a/sig/lithic/models/three_ds_authentication_approval_request_webhook_event.rbs b/sig/lithic/models/three_ds_authentication_approval_request_webhook_event.rbs new file mode 100644 index 00000000..9abec01b --- /dev/null +++ b/sig/lithic/models/three_ds_authentication_approval_request_webhook_event.rbs @@ -0,0 +1,22 @@ +module Lithic + module Models + type three_ds_authentication_approval_request_webhook_event = + { event_type: :"three_ds_authentication.approval_request" } + + class ThreeDSAuthenticationApprovalRequestWebhookEvent < Lithic::Models::ThreeDSAuthentication + def event_type: -> :"three_ds_authentication.approval_request" + + def event_type=: ( + :"three_ds_authentication.approval_request" _ + ) -> :"three_ds_authentication.approval_request" + + def initialize: ( + ?event_type: :"three_ds_authentication.approval_request" + ) -> void + + def to_hash: -> { + event_type: :"three_ds_authentication.approval_request" + } + end + end +end diff --git a/sig/lithic/models/transaction.rbs b/sig/lithic/models/transaction.rbs index e66da2b0..ab7e3025 100644 --- a/sig/lithic/models/transaction.rbs +++ b/sig/lithic/models/transaction.rbs @@ -787,6 +787,7 @@ module Lithic | :AUTH_RULE_ALLOWED_MCC | :AUTH_RULE_BLOCKED_COUNTRY | :AUTH_RULE_BLOCKED_MCC + | :AUTH_RULE | :CARD_CLOSED | :CARD_CRYPTOGRAM_VALIDATION_FAILURE | :CARD_EXPIRED @@ -847,6 +848,7 @@ module Lithic AUTH_RULE_ALLOWED_MCC: :AUTH_RULE_ALLOWED_MCC AUTH_RULE_BLOCKED_COUNTRY: :AUTH_RULE_BLOCKED_COUNTRY AUTH_RULE_BLOCKED_MCC: :AUTH_RULE_BLOCKED_MCC + AUTH_RULE: :AUTH_RULE CARD_CLOSED: :CARD_CLOSED CARD_CRYPTOGRAM_VALIDATION_FAILURE: :CARD_CRYPTOGRAM_VALIDATION_FAILURE CARD_EXPIRED: :CARD_EXPIRED @@ -1133,6 +1135,7 @@ module Lithic | :AUTH_RULE_ALLOWED_MCC | :AUTH_RULE_BLOCKED_COUNTRY | :AUTH_RULE_BLOCKED_MCC + | :AUTH_RULE | :CARD_CLOSED | :CARD_CRYPTOGRAM_VALIDATION_FAILURE | :CARD_EXPIRED @@ -1193,6 +1196,7 @@ module Lithic AUTH_RULE_ALLOWED_MCC: :AUTH_RULE_ALLOWED_MCC AUTH_RULE_BLOCKED_COUNTRY: :AUTH_RULE_BLOCKED_COUNTRY AUTH_RULE_BLOCKED_MCC: :AUTH_RULE_BLOCKED_MCC + AUTH_RULE: :AUTH_RULE CARD_CLOSED: :CARD_CLOSED CARD_CRYPTOGRAM_VALIDATION_FAILURE: :CARD_CRYPTOGRAM_VALIDATION_FAILURE CARD_EXPIRED: :CARD_EXPIRED diff --git a/sig/lithic/models/transfer_limit_list_params.rbs b/sig/lithic/models/transfer_limit_list_params.rbs new file mode 100644 index 00000000..cedc1844 --- /dev/null +++ b/sig/lithic/models/transfer_limit_list_params.rbs @@ -0,0 +1,22 @@ +module Lithic + module Models + type transfer_limit_list_params = + { date: Date } & Lithic::Internal::Type::request_parameters + + class TransferLimitListParams < Lithic::Internal::Type::BaseModel + extend Lithic::Internal::Type::RequestParameters::Converter + include Lithic::Internal::Type::RequestParameters + + attr_reader date: Date? + + def date=: (Date) -> Date + + def initialize: ( + ?date: Date, + ?request_options: Lithic::request_opts + ) -> void + + def to_hash: -> { date: Date, request_options: Lithic::RequestOptions } + end + end +end diff --git a/sig/lithic/models/transfer_limits_response.rbs b/sig/lithic/models/transfer_limits_response.rbs new file mode 100644 index 00000000..71eaca8c --- /dev/null +++ b/sig/lithic/models/transfer_limits_response.rbs @@ -0,0 +1,232 @@ +module Lithic + module Models + type transfer_limits_response = + { data: ::Array[Lithic::TransferLimitsResponse::Data], has_more: bool } + + class TransferLimitsResponse < Lithic::Internal::Type::BaseModel + attr_accessor data: ::Array[Lithic::TransferLimitsResponse::Data] + + attr_accessor has_more: bool + + def initialize: ( + data: ::Array[Lithic::TransferLimitsResponse::Data], + has_more: bool + ) -> void + + def to_hash: -> { + data: ::Array[Lithic::TransferLimitsResponse::Data], + has_more: bool + } + + type data = + { + company_id: String, + daily_limit: Lithic::TransferLimitsResponse::Data::DailyLimit, + date: Date, + is_fbo: bool, + monthly_limit: Lithic::TransferLimitsResponse::Data::MonthlyLimit, + program_limit_per_transaction: Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction + } + + class Data < Lithic::Internal::Type::BaseModel + attr_accessor company_id: String + + attr_accessor daily_limit: Lithic::TransferLimitsResponse::Data::DailyLimit + + attr_accessor date: Date + + attr_accessor is_fbo: bool + + attr_accessor monthly_limit: Lithic::TransferLimitsResponse::Data::MonthlyLimit + + attr_accessor program_limit_per_transaction: Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction + + def initialize: ( + company_id: String, + daily_limit: Lithic::TransferLimitsResponse::Data::DailyLimit, + date: Date, + is_fbo: bool, + monthly_limit: Lithic::TransferLimitsResponse::Data::MonthlyLimit, + program_limit_per_transaction: Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction + ) -> void + + def to_hash: -> { + company_id: String, + daily_limit: Lithic::TransferLimitsResponse::Data::DailyLimit, + date: Date, + is_fbo: bool, + monthly_limit: Lithic::TransferLimitsResponse::Data::MonthlyLimit, + program_limit_per_transaction: Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction + } + + type daily_limit = + { + credit: Lithic::TransferLimitsResponse::Data::DailyLimit::Credit, + debit: Lithic::TransferLimitsResponse::Data::DailyLimit::Debit + } + + class DailyLimit < Lithic::Internal::Type::BaseModel + attr_accessor credit: Lithic::TransferLimitsResponse::Data::DailyLimit::Credit + + attr_accessor debit: Lithic::TransferLimitsResponse::Data::DailyLimit::Debit + + def initialize: ( + credit: Lithic::TransferLimitsResponse::Data::DailyLimit::Credit, + debit: Lithic::TransferLimitsResponse::Data::DailyLimit::Debit + ) -> void + + def to_hash: -> { + credit: Lithic::TransferLimitsResponse::Data::DailyLimit::Credit, + debit: Lithic::TransferLimitsResponse::Data::DailyLimit::Debit + } + + type credit = { limit: Integer, amount_originated: Integer } + + class Credit < Lithic::Internal::Type::BaseModel + attr_accessor limit: Integer + + attr_reader amount_originated: Integer? + + def amount_originated=: (Integer) -> Integer + + def initialize: ( + limit: Integer, + ?amount_originated: Integer + ) -> void + + def to_hash: -> { limit: Integer, amount_originated: Integer } + end + + type debit = { limit: Integer, amount_originated: Integer } + + class Debit < Lithic::Internal::Type::BaseModel + attr_accessor limit: Integer + + attr_reader amount_originated: Integer? + + def amount_originated=: (Integer) -> Integer + + def initialize: ( + limit: Integer, + ?amount_originated: Integer + ) -> void + + def to_hash: -> { limit: Integer, amount_originated: Integer } + end + end + + type monthly_limit = + { + credit: Lithic::TransferLimitsResponse::Data::MonthlyLimit::Credit, + debit: Lithic::TransferLimitsResponse::Data::MonthlyLimit::Debit + } + + class MonthlyLimit < Lithic::Internal::Type::BaseModel + attr_accessor credit: Lithic::TransferLimitsResponse::Data::MonthlyLimit::Credit + + attr_accessor debit: Lithic::TransferLimitsResponse::Data::MonthlyLimit::Debit + + def initialize: ( + credit: Lithic::TransferLimitsResponse::Data::MonthlyLimit::Credit, + debit: Lithic::TransferLimitsResponse::Data::MonthlyLimit::Debit + ) -> void + + def to_hash: -> { + credit: Lithic::TransferLimitsResponse::Data::MonthlyLimit::Credit, + debit: Lithic::TransferLimitsResponse::Data::MonthlyLimit::Debit + } + + type credit = { limit: Integer, amount_originated: Integer } + + class Credit < Lithic::Internal::Type::BaseModel + attr_accessor limit: Integer + + attr_reader amount_originated: Integer? + + def amount_originated=: (Integer) -> Integer + + def initialize: ( + limit: Integer, + ?amount_originated: Integer + ) -> void + + def to_hash: -> { limit: Integer, amount_originated: Integer } + end + + type debit = { limit: Integer, amount_originated: Integer } + + class Debit < Lithic::Internal::Type::BaseModel + attr_accessor limit: Integer + + attr_reader amount_originated: Integer? + + def amount_originated=: (Integer) -> Integer + + def initialize: ( + limit: Integer, + ?amount_originated: Integer + ) -> void + + def to_hash: -> { limit: Integer, amount_originated: Integer } + end + end + + type program_limit_per_transaction = + { + credit: Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Credit, + debit: Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Debit + } + + class ProgramLimitPerTransaction < Lithic::Internal::Type::BaseModel + attr_accessor credit: Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Credit + + attr_accessor debit: Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Debit + + def initialize: ( + credit: Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Credit, + debit: Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Debit + ) -> void + + def to_hash: -> { + credit: Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Credit, + debit: Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction::Debit + } + + type credit = { limit: Integer, amount_originated: Integer } + + class Credit < Lithic::Internal::Type::BaseModel + attr_accessor limit: Integer + + attr_reader amount_originated: Integer? + + def amount_originated=: (Integer) -> Integer + + def initialize: ( + limit: Integer, + ?amount_originated: Integer + ) -> void + + def to_hash: -> { limit: Integer, amount_originated: Integer } + end + + type debit = { limit: Integer, amount_originated: Integer } + + class Debit < Lithic::Internal::Type::BaseModel + attr_accessor limit: Integer + + attr_reader amount_originated: Integer? + + def amount_originated=: (Integer) -> Integer + + def initialize: ( + limit: Integer, + ?amount_originated: Integer + ) -> void + + def to_hash: -> { limit: Integer, amount_originated: Integer } + end + end + end + end + end +end diff --git a/sig/lithic/resources/aggregate_balances.rbs b/sig/lithic/resources/aggregate_balances.rbs deleted file mode 100644 index 2860ab85..00000000 --- a/sig/lithic/resources/aggregate_balances.rbs +++ /dev/null @@ -1,12 +0,0 @@ -module Lithic - module Resources - class AggregateBalances - def list: ( - ?financial_account_type: Lithic::Models::AggregateBalanceListParams::financial_account_type, - ?request_options: Lithic::request_opts - ) -> Lithic::Internal::SinglePage[Lithic::AggregateBalance] - - def initialize: (client: Lithic::Client) -> void - end - end -end diff --git a/sig/lithic/resources/book_transfers.rbs b/sig/lithic/resources/book_transfers.rbs index 54bf3f2b..0db8c87f 100644 --- a/sig/lithic/resources/book_transfers.rbs +++ b/sig/lithic/resources/book_transfers.rbs @@ -35,6 +35,12 @@ module Lithic ?request_options: Lithic::request_opts ) -> Lithic::Internal::CursorPage[Lithic::BookTransferResponse] + def retry_: ( + String book_transfer_token, + retry_token: String, + ?request_options: Lithic::request_opts + ) -> Lithic::BookTransferResponse + def reverse: ( String book_transfer_token, ?memo: String, diff --git a/sig/lithic/resources/cards.rbs b/sig/lithic/resources/cards.rbs index ab54c670..ef8d2773 100644 --- a/sig/lithic/resources/cards.rbs +++ b/sig/lithic/resources/cards.rbs @@ -1,8 +1,6 @@ module Lithic module Resources class Cards - attr_reader aggregate_balances: Lithic::Resources::Cards::AggregateBalances - attr_reader balances: Lithic::Resources::Cards::Balances attr_reader financial_transactions: Lithic::Resources::Cards::FinancialTransactions diff --git a/sig/lithic/resources/cards/aggregate_balances.rbs b/sig/lithic/resources/cards/aggregate_balances.rbs deleted file mode 100644 index 680f8de0..00000000 --- a/sig/lithic/resources/cards/aggregate_balances.rbs +++ /dev/null @@ -1,15 +0,0 @@ -module Lithic - module Resources - class Cards - class AggregateBalances - def list: ( - ?account_token: String, - ?business_account_token: String, - ?request_options: Lithic::request_opts - ) -> Lithic::Internal::SinglePage[Lithic::Models::Cards::AggregateBalanceListResponse] - - def initialize: (client: Lithic::Client) -> void - end - end - end -end diff --git a/sig/lithic/resources/financial_accounts.rbs b/sig/lithic/resources/financial_accounts.rbs index 3793346d..5bcfe9eb 100644 --- a/sig/lithic/resources/financial_accounts.rbs +++ b/sig/lithic/resources/financial_accounts.rbs @@ -48,6 +48,7 @@ module Lithic String financial_account_token, status: Lithic::Models::FinancialAccountUpdateStatusParams::status, substatus: Lithic::Models::FinancialAccountUpdateStatusParams::substatus?, + ?user_defined_status: String, ?request_options: Lithic::request_opts ) -> Lithic::FinancialAccount diff --git a/sig/lithic/resources/transfer_limits.rbs b/sig/lithic/resources/transfer_limits.rbs new file mode 100644 index 00000000..a8c8c553 --- /dev/null +++ b/sig/lithic/resources/transfer_limits.rbs @@ -0,0 +1,12 @@ +module Lithic + module Resources + class TransferLimits + def list: ( + ?date: Date, + ?request_options: Lithic::request_opts + ) -> Lithic::Internal::SinglePage[Lithic::TransferLimitsResponse::Data] + + def initialize: (client: Lithic::Client) -> void + end + end +end diff --git a/sig/lithic/resources/webhooks.rbs b/sig/lithic/resources/webhooks.rbs index 910b38bc..66669a57 100644 --- a/sig/lithic/resources/webhooks.rbs +++ b/sig/lithic/resources/webhooks.rbs @@ -5,123 +5,9 @@ module Lithic String payload, headers: Hash[String, String], ?secret: String? - ) -> (Lithic::AccountHolderCreatedWebhookEvent - | Lithic::ParsedWebhookEvent::KYBPayload - | Lithic::ParsedWebhookEvent::KYCPayload - | Lithic::ParsedWebhookEvent::LegacyPayload - | Lithic::AccountHolderVerificationWebhookEvent - | Lithic::AccountHolderDocumentUpdatedWebhookEvent - | Lithic::AsaRequestWebhookEvent - | Lithic::TokenizationDecisioningRequestWebhookEvent - | Lithic::AuthRulesBacktestReportCreatedWebhookEvent - | Lithic::BalanceUpdatedWebhookEvent - | Lithic::BookTransferTransactionCreatedWebhookEvent - | Lithic::BookTransferTransactionUpdatedWebhookEvent - | Lithic::CardCreatedWebhookEvent - | Lithic::CardConvertedWebhookEvent - | Lithic::CardRenewedWebhookEvent - | Lithic::CardReissuedWebhookEvent - | Lithic::CardShippedWebhookEvent - | Lithic::CardTransactionUpdatedWebhookEvent - | Lithic::CardTransactionEnhancedDataCreatedWebhookEvent - | Lithic::CardTransactionEnhancedDataUpdatedWebhookEvent - | Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent - | Lithic::DigitalWalletTokenizationResultWebhookEvent - | Lithic::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent - | Lithic::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent - | Lithic::DigitalWalletTokenizationUpdatedWebhookEvent - | Lithic::DisputeUpdatedWebhookEvent - | Lithic::DisputeEvidenceUploadFailedWebhookEvent - | Lithic::ExternalBankAccountCreatedWebhookEvent - | Lithic::ExternalBankAccountUpdatedWebhookEvent - | Lithic::ExternalPaymentCreatedWebhookEvent - | Lithic::ExternalPaymentUpdatedWebhookEvent - | Lithic::FinancialAccountCreatedWebhookEvent - | Lithic::FinancialAccountUpdatedWebhookEvent - | Lithic::FundingEventCreatedWebhookEvent - | Lithic::LoanTapeCreatedWebhookEvent - | Lithic::LoanTapeUpdatedWebhookEvent - | Lithic::ManagementOperationCreatedWebhookEvent - | Lithic::ManagementOperationUpdatedWebhookEvent - | Lithic::InternalTransactionCreatedWebhookEvent - | Lithic::InternalTransactionUpdatedWebhookEvent - | Lithic::NetworkTotalCreatedWebhookEvent - | Lithic::NetworkTotalUpdatedWebhookEvent - | Lithic::PaymentTransactionCreatedWebhookEvent - | Lithic::PaymentTransactionUpdatedWebhookEvent - | Lithic::SettlementReportUpdatedWebhookEvent - | Lithic::StatementsCreatedWebhookEvent - | Lithic::ThreeDSAuthenticationCreatedWebhookEvent - | Lithic::ThreeDSAuthenticationUpdatedWebhookEvent - | Lithic::ThreeDSAuthenticationChallengeWebhookEvent - | Lithic::TokenizationApprovalRequestWebhookEvent - | Lithic::TokenizationResultWebhookEvent - | Lithic::TokenizationTwoFactorAuthenticationCodeWebhookEvent - | Lithic::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent - | Lithic::TokenizationUpdatedWebhookEvent - | Lithic::ThreeDSAuthentication - | Lithic::DisputeTransactionCreatedWebhookEvent - | Lithic::DisputeTransactionUpdatedWebhookEvent) + ) -> Lithic::Models::parsed_webhook_event - def parse_unsafe: ( - String payload - ) -> (Lithic::AccountHolderCreatedWebhookEvent - | Lithic::ParsedWebhookEvent::KYBPayload - | Lithic::ParsedWebhookEvent::KYCPayload - | Lithic::ParsedWebhookEvent::LegacyPayload - | Lithic::AccountHolderVerificationWebhookEvent - | Lithic::AccountHolderDocumentUpdatedWebhookEvent - | Lithic::AsaRequestWebhookEvent - | Lithic::TokenizationDecisioningRequestWebhookEvent - | Lithic::AuthRulesBacktestReportCreatedWebhookEvent - | Lithic::BalanceUpdatedWebhookEvent - | Lithic::BookTransferTransactionCreatedWebhookEvent - | Lithic::BookTransferTransactionUpdatedWebhookEvent - | Lithic::CardCreatedWebhookEvent - | Lithic::CardConvertedWebhookEvent - | Lithic::CardRenewedWebhookEvent - | Lithic::CardReissuedWebhookEvent - | Lithic::CardShippedWebhookEvent - | Lithic::CardTransactionUpdatedWebhookEvent - | Lithic::CardTransactionEnhancedDataCreatedWebhookEvent - | Lithic::CardTransactionEnhancedDataUpdatedWebhookEvent - | Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent - | Lithic::DigitalWalletTokenizationResultWebhookEvent - | Lithic::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent - | Lithic::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent - | Lithic::DigitalWalletTokenizationUpdatedWebhookEvent - | Lithic::DisputeUpdatedWebhookEvent - | Lithic::DisputeEvidenceUploadFailedWebhookEvent - | Lithic::ExternalBankAccountCreatedWebhookEvent - | Lithic::ExternalBankAccountUpdatedWebhookEvent - | Lithic::ExternalPaymentCreatedWebhookEvent - | Lithic::ExternalPaymentUpdatedWebhookEvent - | Lithic::FinancialAccountCreatedWebhookEvent - | Lithic::FinancialAccountUpdatedWebhookEvent - | Lithic::FundingEventCreatedWebhookEvent - | Lithic::LoanTapeCreatedWebhookEvent - | Lithic::LoanTapeUpdatedWebhookEvent - | Lithic::ManagementOperationCreatedWebhookEvent - | Lithic::ManagementOperationUpdatedWebhookEvent - | Lithic::InternalTransactionCreatedWebhookEvent - | Lithic::InternalTransactionUpdatedWebhookEvent - | Lithic::NetworkTotalCreatedWebhookEvent - | Lithic::NetworkTotalUpdatedWebhookEvent - | Lithic::PaymentTransactionCreatedWebhookEvent - | Lithic::PaymentTransactionUpdatedWebhookEvent - | Lithic::SettlementReportUpdatedWebhookEvent - | Lithic::StatementsCreatedWebhookEvent - | Lithic::ThreeDSAuthenticationCreatedWebhookEvent - | Lithic::ThreeDSAuthenticationUpdatedWebhookEvent - | Lithic::ThreeDSAuthenticationChallengeWebhookEvent - | Lithic::TokenizationApprovalRequestWebhookEvent - | Lithic::TokenizationResultWebhookEvent - | Lithic::TokenizationTwoFactorAuthenticationCodeWebhookEvent - | Lithic::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent - | Lithic::TokenizationUpdatedWebhookEvent - | Lithic::ThreeDSAuthentication - | Lithic::DisputeTransactionCreatedWebhookEvent - | Lithic::DisputeTransactionUpdatedWebhookEvent) + def parse_unsafe: (String payload) -> Lithic::Models::parsed_webhook_event def verify_signature: ( payload: String, diff --git a/test/lithic/resources/aggregate_balances_test.rb b/test/lithic/resources/aggregate_balances_test.rb deleted file mode 100644 index 531f4c0a..00000000 --- a/test/lithic/resources/aggregate_balances_test.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -require_relative "../test_helper" - -class Lithic::Test::Resources::AggregateBalancesTest < Lithic::Test::ResourceTest - def test_list - response = @lithic.aggregate_balances.list - - assert_pattern do - response => Lithic::Internal::SinglePage - end - - row = response.to_enum.first - return if row.nil? - - assert_pattern do - row => Lithic::AggregateBalance - end - - assert_pattern do - row => { - available_amount: Integer, - created: Time, - currency: String, - financial_account_type: Lithic::AggregateBalance::FinancialAccountType, - last_financial_account_token: String, - last_transaction_event_token: String, - last_transaction_token: String, - pending_amount: Integer, - total_amount: Integer, - updated: Time - } - end - end -end diff --git a/test/lithic/resources/book_transfers_test.rb b/test/lithic/resources/book_transfers_test.rb index 272ef0c2..5d1294bb 100644 --- a/test/lithic/resources/book_transfers_test.rb +++ b/test/lithic/resources/book_transfers_test.rb @@ -105,6 +105,39 @@ def test_list end end + def test_retry__required_params + response = + @lithic.book_transfers.retry_( + "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", + retry_token: "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" + ) + + assert_pattern do + response => Lithic::BookTransferResponse + end + + assert_pattern do + response => { + token: String, + category: Lithic::BookTransferResponse::Category, + created: Time, + currency: String, + events: ^(Lithic::Internal::Type::ArrayOf[Lithic::BookTransferResponse::Event]), + 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, + updated: Time, + external_id: String | nil, + external_resource: Lithic::ExternalResource | nil, + transaction_series: Lithic::BookTransferResponse::TransactionSeries | nil + } + end + end + def test_reverse response = @lithic.book_transfers.reverse("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") diff --git a/test/lithic/resources/cards/aggregate_balances_test.rb b/test/lithic/resources/cards/aggregate_balances_test.rb deleted file mode 100644 index 999c13e8..00000000 --- a/test/lithic/resources/cards/aggregate_balances_test.rb +++ /dev/null @@ -1,34 +0,0 @@ -# frozen_string_literal: true - -require_relative "../../test_helper" - -class Lithic::Test::Resources::Cards::AggregateBalancesTest < Lithic::Test::ResourceTest - def test_list - response = @lithic.cards.aggregate_balances.list - - assert_pattern do - response => Lithic::Internal::SinglePage - end - - row = response.to_enum.first - return if row.nil? - - assert_pattern do - row => Lithic::Models::Cards::AggregateBalanceListResponse - end - - assert_pattern do - row => { - available_amount: Integer, - created: Time, - currency: String, - last_card_token: String, - last_transaction_event_token: String, - last_transaction_token: String, - pending_amount: Integer, - total_amount: Integer, - updated: Time - } - end - end -end diff --git a/test/lithic/resources/financial_accounts/loan_tapes_test.rb b/test/lithic/resources/financial_accounts/loan_tapes_test.rb index f82e8ca6..1e42f8f4 100644 --- a/test/lithic/resources/financial_accounts/loan_tapes_test.rb +++ b/test/lithic/resources/financial_accounts/loan_tapes_test.rb @@ -30,7 +30,7 @@ def test_retrieve_required_params financial_account_token: String, interest_details: Lithic::FinancialAccounts::LoanTape::InterestDetails | nil, minimum_payment_balance: Lithic::FinancialAccounts::LoanTape::MinimumPaymentBalance, - payment_allocation: Lithic::FinancialAccounts::CategoryBalances, + payment_allocation: Lithic::FinancialAccounts::LoanTape::PaymentAllocation, period_totals: Lithic::StatementTotals, previous_statement_balance: Lithic::FinancialAccounts::LoanTape::PreviousStatementBalance, starting_balance: Integer, @@ -72,7 +72,7 @@ def test_list financial_account_token: String, interest_details: Lithic::FinancialAccounts::LoanTape::InterestDetails | nil, minimum_payment_balance: Lithic::FinancialAccounts::LoanTape::MinimumPaymentBalance, - payment_allocation: Lithic::FinancialAccounts::CategoryBalances, + payment_allocation: Lithic::FinancialAccounts::LoanTape::PaymentAllocation, period_totals: Lithic::StatementTotals, previous_statement_balance: Lithic::FinancialAccounts::LoanTape::PreviousStatementBalance, starting_balance: Integer, diff --git a/test/lithic/resources/financial_accounts_test.rb b/test/lithic/resources/financial_accounts_test.rb index c1fe67b5..58a4c366 100644 --- a/test/lithic/resources/financial_accounts_test.rb +++ b/test/lithic/resources/financial_accounts_test.rb @@ -19,11 +19,12 @@ def test_create_required_params is_for_benefit_of: Lithic::Internal::Type::Boolean, nickname: String | nil, status: Lithic::FinancialAccount::Status, + substatus: Lithic::FinancialAccount::Substatus | nil, type: Lithic::FinancialAccount::Type, updated: Time, + user_defined_status: String | nil, account_number: String | nil, - routing_number: String | nil, - substatus: Lithic::FinancialAccount::Substatus | nil + routing_number: String | nil } end end @@ -44,11 +45,12 @@ def test_retrieve is_for_benefit_of: Lithic::Internal::Type::Boolean, nickname: String | nil, status: Lithic::FinancialAccount::Status, + substatus: Lithic::FinancialAccount::Substatus | nil, type: Lithic::FinancialAccount::Type, updated: Time, + user_defined_status: String | nil, account_number: String | nil, - routing_number: String | nil, - substatus: Lithic::FinancialAccount::Substatus | nil + routing_number: String | nil } end end @@ -69,11 +71,12 @@ def test_update is_for_benefit_of: Lithic::Internal::Type::Boolean, nickname: String | nil, status: Lithic::FinancialAccount::Status, + substatus: Lithic::FinancialAccount::Substatus | nil, type: Lithic::FinancialAccount::Type, updated: Time, + user_defined_status: String | nil, account_number: String | nil, - routing_number: String | nil, - substatus: Lithic::FinancialAccount::Substatus | nil + routing_number: String | nil } end end @@ -101,11 +104,12 @@ def test_list is_for_benefit_of: Lithic::Internal::Type::Boolean, nickname: String | nil, status: Lithic::FinancialAccount::Status, + substatus: Lithic::FinancialAccount::Substatus | nil, type: Lithic::FinancialAccount::Type, updated: Time, + user_defined_status: String | nil, account_number: String | nil, - routing_number: String | nil, - substatus: Lithic::FinancialAccount::Substatus | nil + routing_number: String | nil } end end @@ -143,11 +147,12 @@ def test_update_status_required_params is_for_benefit_of: Lithic::Internal::Type::Boolean, nickname: String | nil, status: Lithic::FinancialAccount::Status, + substatus: Lithic::FinancialAccount::Substatus | nil, type: Lithic::FinancialAccount::Type, updated: Time, + user_defined_status: String | nil, account_number: String | nil, - routing_number: String | nil, - substatus: Lithic::FinancialAccount::Substatus | nil + routing_number: String | nil } end end diff --git a/test/lithic/resources/transfer_limits_test.rb b/test/lithic/resources/transfer_limits_test.rb new file mode 100644 index 00000000..a4326c87 --- /dev/null +++ b/test/lithic/resources/transfer_limits_test.rb @@ -0,0 +1,31 @@ +# frozen_string_literal: true + +require_relative "../test_helper" + +class Lithic::Test::Resources::TransferLimitsTest < Lithic::Test::ResourceTest + def test_list + response = @lithic.transfer_limits.list + + assert_pattern do + response => Lithic::Internal::SinglePage + end + + row = response.to_enum.first + return if row.nil? + + assert_pattern do + row => Lithic::TransferLimitsResponse::Data + end + + assert_pattern do + row => { + company_id: String, + daily_limit: Lithic::TransferLimitsResponse::Data::DailyLimit, + date: Date, + is_fbo: Lithic::Internal::Type::Boolean, + monthly_limit: Lithic::TransferLimitsResponse::Data::MonthlyLimit, + program_limit_per_transaction: Lithic::TransferLimitsResponse::Data::ProgramLimitPerTransaction + } + end + end +end