diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 1916b020..56c23893 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-alpha.49" + ".": "0.1.0-alpha.50" } \ No newline at end of file diff --git a/.rubocop.yml b/.rubocop.yml index e5786fb4..a52323b4 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -121,6 +121,10 @@ Metrics/BlockLength: Metrics/ClassLength: Enabled: false +Metrics/CollectionLiteralLength: + Exclude: + - "test/**/*" + Metrics/CyclomaticComplexity: Enabled: false diff --git a/.stats.yml b/.stats.yml index 890e2adb..13cfc26b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 170 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-1a0e3a42c88b88140af0f9ad05ab0026fc87f0a500d6879c86b93dfa7f923810.yml -openapi_spec_hash: 2b4db6185c6e4ab3626461a448c97d4b -config_hash: 7a6a0c0bab3306093c6c171cd7407a45 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-b1839661d8405911184d5cb7230f16e626a616e5b744634bd7f0bb4e730bf899.yml +openapi_spec_hash: c1c2c5a5c2a4067a714b35f873e3846f +config_hash: 98214f2eab6804b5c0048331e32c08e3 diff --git a/CHANGELOG.md b/CHANGELOG.md index 968ead49..6c99d38b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 0.1.0-alpha.50 (2025-10-08) + +Full Changelog: [v0.1.0-alpha.49...v0.1.0-alpha.50](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0-alpha.49...v0.1.0-alpha.50) + +### Features + +* **api:** adds support for Auto-Collections ([9a83609](https://github.com/lithic-com/lithic-ruby/commit/9a8360991fa3f625725ca4055caea66cd6a1a46d)) + + +### Chores + +* ignore linter error for tests having large collections ([655be4b](https://github.com/lithic-com/lithic-ruby/commit/655be4b22393b0ded92424e58393993c6edbeb16)) + ## 0.1.0-alpha.49 (2025-09-30) Full Changelog: [v0.1.0-alpha.48...v0.1.0-alpha.49](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0-alpha.48...v0.1.0-alpha.49) diff --git a/Gemfile.lock b/Gemfile.lock index 92ff86a5..22b8e1ef 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - lithic (0.1.0.pre.alpha.49) + lithic (0.1.0.pre.alpha.50) connection_pool GEM diff --git a/README.md b/README.md index f7144a7c..681db60f 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "lithic", "~> 0.1.0.pre.alpha.49" +gem "lithic", "~> 0.1.0.pre.alpha.50" ``` diff --git a/lib/lithic/models/account_activity_list_params.rb b/lib/lithic/models/account_activity_list_params.rb index 04e1aafa..7cc7bbb5 100644 --- a/lib/lithic/models/account_activity_list_params.rb +++ b/lib/lithic/models/account_activity_list_params.rb @@ -111,6 +111,11 @@ module Category ACH = :ACH BALANCE_OR_FUNDING = :BALANCE_OR_FUNDING + FEE = :FEE + REWARD = :REWARD + ADJUSTMENT = :ADJUSTMENT + DERECOGNITION = :DERECOGNITION + DISPUTE = :DISPUTE CARD = :CARD EXTERNAL_ACH = :EXTERNAL_ACH EXTERNAL_CHECK = :EXTERNAL_CHECK diff --git a/lib/lithic/models/account_activity_list_response.rb b/lib/lithic/models/account_activity_list_response.rb index b735fa67..5d41eee0 100644 --- a/lib/lithic/models/account_activity_list_response.rb +++ b/lib/lithic/models/account_activity_list_response.rb @@ -143,6 +143,11 @@ module Category ACH = :ACH BALANCE_OR_FUNDING = :BALANCE_OR_FUNDING + FEE = :FEE + REWARD = :REWARD + ADJUSTMENT = :ADJUSTMENT + DERECOGNITION = :DERECOGNITION + DISPUTE = :DISPUTE CARD = :CARD EXTERNAL_ACH = :EXTERNAL_ACH EXTERNAL_CHECK = :EXTERNAL_CHECK @@ -232,12 +237,14 @@ module Type ACH_ORIGINATION_INITIATED = :ACH_ORIGINATION_INITIATED ACH_ORIGINATION_PROCESSED = :ACH_ORIGINATION_PROCESSED ACH_ORIGINATION_RELEASED = :ACH_ORIGINATION_RELEASED + ACH_ORIGINATION_REJECTED = :ACH_ORIGINATION_REJECTED ACH_ORIGINATION_REVIEWED = :ACH_ORIGINATION_REVIEWED ACH_ORIGINATION_SETTLED = :ACH_ORIGINATION_SETTLED ACH_RECEIPT_PROCESSED = :ACH_RECEIPT_PROCESSED ACH_RECEIPT_SETTLED = :ACH_RECEIPT_SETTLED ACH_RETURN_INITIATED = :ACH_RETURN_INITIATED ACH_RETURN_PROCESSED = :ACH_RETURN_PROCESSED + ACH_RETURN_REJECTED = :ACH_RETURN_REJECTED ACH_RETURN_SETTLED = :ACH_RETURN_SETTLED AUTHORIZATION = :AUTHORIZATION AUTHORIZATION_ADVICE = :AUTHORIZATION_ADVICE @@ -486,19 +493,15 @@ class BookTransferTransaction < Lithic::Internal::Type::BaseModel module Category extend Lithic::Internal::Type::Enum - ACH = :ACH + ADJUSTMENT = :ADJUSTMENT BALANCE_OR_FUNDING = :BALANCE_OR_FUNDING - CARD = :CARD - EXTERNAL_ACH = :EXTERNAL_ACH - EXTERNAL_CHECK = :EXTERNAL_CHECK - EXTERNAL_TRANSFER = :EXTERNAL_TRANSFER - EXTERNAL_WIRE = :EXTERNAL_WIRE - MANAGEMENT_ADJUSTMENT = :MANAGEMENT_ADJUSTMENT - MANAGEMENT_DISPUTE = :MANAGEMENT_DISPUTE - MANAGEMENT_FEE = :MANAGEMENT_FEE - MANAGEMENT_REWARD = :MANAGEMENT_REWARD - MANAGEMENT_DISBURSEMENT = :MANAGEMENT_DISBURSEMENT + DERECOGNITION = :DERECOGNITION + DISPUTE = :DISPUTE + FEE = :FEE + INTERNAL = :INTERNAL + REWARD = :REWARD PROGRAM_FUNDING = :PROGRAM_FUNDING + TRANSFER = :TRANSFER # @!method self.values # @return [Array] @@ -611,6 +614,7 @@ module Result module Type extend Lithic::Internal::Type::Enum + ATM_BALANCE_INQUIRY = :ATM_BALANCE_INQUIRY ATM_WITHDRAWAL = :ATM_WITHDRAWAL ATM_DECLINE = :ATM_DECLINE INTERNATIONAL_ATM_WITHDRAWAL = :INTERNATIONAL_ATM_WITHDRAWAL @@ -981,6 +985,11 @@ module Category ACH = :ACH BALANCE_OR_FUNDING = :BALANCE_OR_FUNDING + FEE = :FEE + REWARD = :REWARD + ADJUSTMENT = :ADJUSTMENT + DERECOGNITION = :DERECOGNITION + DISPUTE = :DISPUTE CARD = :CARD EXTERNAL_ACH = :EXTERNAL_ACH EXTERNAL_CHECK = :EXTERNAL_CHECK diff --git a/lib/lithic/models/account_activity_retrieve_transaction_response.rb b/lib/lithic/models/account_activity_retrieve_transaction_response.rb index a4042374..998aa857 100644 --- a/lib/lithic/models/account_activity_retrieve_transaction_response.rb +++ b/lib/lithic/models/account_activity_retrieve_transaction_response.rb @@ -146,6 +146,11 @@ module Category ACH = :ACH BALANCE_OR_FUNDING = :BALANCE_OR_FUNDING + FEE = :FEE + REWARD = :REWARD + ADJUSTMENT = :ADJUSTMENT + DERECOGNITION = :DERECOGNITION + DISPUTE = :DISPUTE CARD = :CARD EXTERNAL_ACH = :EXTERNAL_ACH EXTERNAL_CHECK = :EXTERNAL_CHECK @@ -235,12 +240,14 @@ module Type ACH_ORIGINATION_INITIATED = :ACH_ORIGINATION_INITIATED ACH_ORIGINATION_PROCESSED = :ACH_ORIGINATION_PROCESSED ACH_ORIGINATION_RELEASED = :ACH_ORIGINATION_RELEASED + ACH_ORIGINATION_REJECTED = :ACH_ORIGINATION_REJECTED ACH_ORIGINATION_REVIEWED = :ACH_ORIGINATION_REVIEWED ACH_ORIGINATION_SETTLED = :ACH_ORIGINATION_SETTLED ACH_RECEIPT_PROCESSED = :ACH_RECEIPT_PROCESSED ACH_RECEIPT_SETTLED = :ACH_RECEIPT_SETTLED ACH_RETURN_INITIATED = :ACH_RETURN_INITIATED ACH_RETURN_PROCESSED = :ACH_RETURN_PROCESSED + ACH_RETURN_REJECTED = :ACH_RETURN_REJECTED ACH_RETURN_SETTLED = :ACH_RETURN_SETTLED AUTHORIZATION = :AUTHORIZATION AUTHORIZATION_ADVICE = :AUTHORIZATION_ADVICE @@ -489,19 +496,15 @@ class BookTransferTransaction < Lithic::Internal::Type::BaseModel module Category extend Lithic::Internal::Type::Enum - ACH = :ACH + ADJUSTMENT = :ADJUSTMENT BALANCE_OR_FUNDING = :BALANCE_OR_FUNDING - CARD = :CARD - EXTERNAL_ACH = :EXTERNAL_ACH - EXTERNAL_CHECK = :EXTERNAL_CHECK - EXTERNAL_TRANSFER = :EXTERNAL_TRANSFER - EXTERNAL_WIRE = :EXTERNAL_WIRE - MANAGEMENT_ADJUSTMENT = :MANAGEMENT_ADJUSTMENT - MANAGEMENT_DISPUTE = :MANAGEMENT_DISPUTE - MANAGEMENT_FEE = :MANAGEMENT_FEE - MANAGEMENT_REWARD = :MANAGEMENT_REWARD - MANAGEMENT_DISBURSEMENT = :MANAGEMENT_DISBURSEMENT + DERECOGNITION = :DERECOGNITION + DISPUTE = :DISPUTE + FEE = :FEE + INTERNAL = :INTERNAL + REWARD = :REWARD PROGRAM_FUNDING = :PROGRAM_FUNDING + TRANSFER = :TRANSFER # @!method self.values # @return [Array] @@ -614,6 +617,7 @@ module Result module Type extend Lithic::Internal::Type::Enum + ATM_BALANCE_INQUIRY = :ATM_BALANCE_INQUIRY ATM_WITHDRAWAL = :ATM_WITHDRAWAL ATM_DECLINE = :ATM_DECLINE INTERNATIONAL_ATM_WITHDRAWAL = :INTERNATIONAL_ATM_WITHDRAWAL @@ -992,6 +996,11 @@ module Category ACH = :ACH BALANCE_OR_FUNDING = :BALANCE_OR_FUNDING + FEE = :FEE + REWARD = :REWARD + ADJUSTMENT = :ADJUSTMENT + DERECOGNITION = :DERECOGNITION + DISPUTE = :DISPUTE CARD = :CARD EXTERNAL_ACH = :EXTERNAL_ACH EXTERNAL_CHECK = :EXTERNAL_CHECK diff --git a/lib/lithic/models/auth_rules/v2_update_params.rb b/lib/lithic/models/auth_rules/v2_update_params.rb index a7dae2e7..b4ccdcc5 100644 --- a/lib/lithic/models/auth_rules/v2_update_params.rb +++ b/lib/lithic/models/auth_rules/v2_update_params.rb @@ -8,6 +8,18 @@ class V2UpdateParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute account_tokens + # Account tokens to which the Auth Rule applies. + # + # @return [Array, nil] + optional :account_tokens, Lithic::Internal::Type::ArrayOf[String] + + # @!attribute business_account_tokens + # Business Account tokens to which the Auth Rule applies. + # + # @return [Array, nil] + optional :business_account_tokens, Lithic::Internal::Type::ArrayOf[String] + # @!attribute name # Auth Rule Name # @@ -42,10 +54,14 @@ class V2UpdateParams < Lithic::Internal::Type::BaseModel # @return [Boolean, nil] optional :program_level, Lithic::Internal::Type::Boolean - # @!method initialize(name: nil, state: nil, card_tokens: nil, excluded_card_tokens: nil, program_level: nil, request_options: {}) + # @!method initialize(account_tokens: nil, business_account_tokens: nil, name: nil, state: nil, card_tokens: nil, excluded_card_tokens: nil, program_level: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Lithic::Models::AuthRules::V2UpdateParams} for more details. # + # @param account_tokens [Array] Account tokens to which the Auth Rule applies. + # + # @param business_account_tokens [Array] Business Account tokens to which the Auth Rule applies. + # # @param name [String, nil] Auth Rule Name # # @param state [Symbol, Lithic::Models::AuthRules::V2UpdateParams::State] The desired state of the Auth Rule. diff --git a/lib/lithic/models/book_transfer_create_params.rb b/lib/lithic/models/book_transfer_create_params.rb index 30a83c8b..e0f1c015 100644 --- a/lib/lithic/models/book_transfer_create_params.rb +++ b/lib/lithic/models/book_transfer_create_params.rb @@ -15,7 +15,6 @@ class BookTransferCreateParams < Lithic::Internal::Type::BaseModel required :amount, Integer # @!attribute category - # Category of the book transfer # # @return [Symbol, Lithic::Models::BookTransferCreateParams::Category] required :category, enum: -> { Lithic::BookTransferCreateParams::Category } @@ -77,7 +76,7 @@ class BookTransferCreateParams < Lithic::Internal::Type::BaseModel # # @param amount [Integer] Amount to be transferred in the currency's smallest unit (e.g., cents for USD). # - # @param category [Symbol, Lithic::Models::BookTransferCreateParams::Category] Category of the book transfer + # @param category [Symbol, Lithic::Models::BookTransferCreateParams::Category] # # @param from_financial_account_token [String] Globally unique identifier for the financial account or card that will send the # @@ -97,7 +96,6 @@ class BookTransferCreateParams < Lithic::Internal::Type::BaseModel # # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] - # Category of the book transfer module Category extend Lithic::Internal::Type::Enum @@ -106,7 +104,9 @@ module Category DERECOGNITION = :DERECOGNITION DISPUTE = :DISPUTE FEE = :FEE + INTERNAL = :INTERNAL REWARD = :REWARD + PROGRAM_FUNDING = :PROGRAM_FUNDING TRANSFER = :TRANSFER # @!method self.values @@ -117,6 +117,7 @@ module Category module Type extend Lithic::Internal::Type::Enum + ATM_BALANCE_INQUIRY = :ATM_BALANCE_INQUIRY ATM_WITHDRAWAL = :ATM_WITHDRAWAL ATM_DECLINE = :ATM_DECLINE INTERNATIONAL_ATM_WITHDRAWAL = :INTERNATIONAL_ATM_WITHDRAWAL diff --git a/lib/lithic/models/book_transfer_list_params.rb b/lib/lithic/models/book_transfer_list_params.rb index 5efb90be..770e78ac 100644 --- a/lib/lithic/models/book_transfer_list_params.rb +++ b/lib/lithic/models/book_transfer_list_params.rb @@ -108,13 +108,15 @@ class BookTransferListParams < Lithic::Internal::Type::BaseModel module Category extend Lithic::Internal::Type::Enum - BALANCE_OR_FUNDING = :BALANCE_OR_FUNDING - FEE = :FEE - REWARD = :REWARD ADJUSTMENT = :ADJUSTMENT + BALANCE_OR_FUNDING = :BALANCE_OR_FUNDING DERECOGNITION = :DERECOGNITION DISPUTE = :DISPUTE + FEE = :FEE INTERNAL = :INTERNAL + REWARD = :REWARD + PROGRAM_FUNDING = :PROGRAM_FUNDING + TRANSFER = :TRANSFER # @!method self.values # @return [Array] diff --git a/lib/lithic/models/book_transfer_response.rb b/lib/lithic/models/book_transfer_response.rb index 73876582..170fd6a4 100644 --- a/lib/lithic/models/book_transfer_response.rb +++ b/lib/lithic/models/book_transfer_response.rb @@ -12,7 +12,6 @@ class BookTransferResponse < Lithic::Internal::Type::BaseModel required :token, String # @!attribute category - # Category of the book transfer # # @return [Symbol, Lithic::Models::BookTransferResponse::Category] required :category, enum: -> { Lithic::BookTransferResponse::Category } @@ -112,7 +111,7 @@ class BookTransferResponse < Lithic::Internal::Type::BaseModel # # @param token [String] Customer-provided token that will serve as an idempotency token. This token will # - # @param category [Symbol, Lithic::Models::BookTransferResponse::Category] Category of the book transfer + # @param category [Symbol, Lithic::Models::BookTransferResponse::Category] # # @param created [Time] Date and time when the transfer occurred. UTC time zone. # @@ -140,8 +139,6 @@ class BookTransferResponse < Lithic::Internal::Type::BaseModel # # @param updated [Time] Date and time when the financial transaction was last updated. UTC time zone. - # Category of the book transfer - # # @see Lithic::Models::BookTransferResponse#category module Category extend Lithic::Internal::Type::Enum @@ -151,7 +148,9 @@ module Category DERECOGNITION = :DERECOGNITION DISPUTE = :DISPUTE FEE = :FEE + INTERNAL = :INTERNAL REWARD = :REWARD + PROGRAM_FUNDING = :PROGRAM_FUNDING TRANSFER = :TRANSFER # @!method self.values @@ -261,6 +260,7 @@ module Result module Type extend Lithic::Internal::Type::Enum + ATM_BALANCE_INQUIRY = :ATM_BALANCE_INQUIRY ATM_WITHDRAWAL = :ATM_WITHDRAWAL ATM_DECLINE = :ATM_DECLINE INTERNATIONAL_ATM_WITHDRAWAL = :INTERNATIONAL_ATM_WITHDRAWAL diff --git a/lib/lithic/models/financial_account.rb b/lib/lithic/models/financial_account.rb index 52045301..734eb586 100644 --- a/lib/lithic/models/financial_account.rb +++ b/lib/lithic/models/financial_account.rb @@ -138,7 +138,13 @@ class CreditConfiguration < Lithic::Internal::Type::BaseModel # @return [String, nil] required :tier, String, nil?: true - # @!method initialize(charged_off_reason:, credit_limit:, credit_product_token:, external_bank_account_token:, financial_account_state:, is_spend_blocked:, tier:) + # @!attribute auto_collection_configuration + # + # @return [Lithic::Models::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration, nil] + optional :auto_collection_configuration, + -> { Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration } + + # @!method initialize(charged_off_reason:, credit_limit:, credit_product_token:, external_bank_account_token:, financial_account_state:, is_spend_blocked:, tier:, auto_collection_configuration: nil) # @param charged_off_reason [Symbol, Lithic::Models::FinancialAccount::CreditConfiguration::ChargedOffReason, nil] Reason for the financial account being marked as Charged Off # # @param credit_limit [Integer, nil] @@ -152,6 +158,8 @@ class CreditConfiguration < Lithic::Internal::Type::BaseModel # @param is_spend_blocked [Boolean] # # @param tier [String, nil] Tier assigned to the financial account + # + # @param auto_collection_configuration [Lithic::Models::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration] # Reason for the financial account being marked as Charged Off # @@ -180,6 +188,18 @@ module FinancialAccountState # @!method self.values # @return [Array] end + + # @see Lithic::Models::FinancialAccount::CreditConfiguration#auto_collection_configuration + class AutoCollectionConfiguration < Lithic::Internal::Type::BaseModel + # @!attribute auto_collection_enabled + # If auto collection is enabled for this account + # + # @return [Boolean] + required :auto_collection_enabled, Lithic::Internal::Type::Boolean + + # @!method initialize(auto_collection_enabled:) + # @param auto_collection_enabled [Boolean] If auto collection is enabled for this account + end end # Status of the financial account diff --git a/lib/lithic/models/financial_accounts/credit_configuration_update_params.rb b/lib/lithic/models/financial_accounts/credit_configuration_update_params.rb index 8312916a..96d0efdb 100644 --- a/lib/lithic/models/financial_accounts/credit_configuration_update_params.rb +++ b/lib/lithic/models/financial_accounts/credit_configuration_update_params.rb @@ -8,6 +8,12 @@ class CreditConfigurationUpdateParams < Lithic::Internal::Type::BaseModel extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + # @!attribute auto_collection_configuration + # + # @return [Lithic::Models::FinancialAccounts::CreditConfigurationUpdateParams::AutoCollectionConfiguration, nil] + optional :auto_collection_configuration, + -> { Lithic::FinancialAccounts::CreditConfigurationUpdateParams::AutoCollectionConfiguration } + # @!attribute credit_limit # # @return [Integer, nil] @@ -30,7 +36,9 @@ class CreditConfigurationUpdateParams < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :tier, String - # @!method initialize(credit_limit: nil, credit_product_token: nil, external_bank_account_token: nil, tier: nil, request_options: {}) + # @!method initialize(auto_collection_configuration: nil, credit_limit: nil, credit_product_token: nil, external_bank_account_token: nil, tier: nil, request_options: {}) + # @param auto_collection_configuration [Lithic::Models::FinancialAccounts::CreditConfigurationUpdateParams::AutoCollectionConfiguration] + # # @param credit_limit [Integer] # # @param credit_product_token [String] Globally unique identifier for the credit product @@ -40,6 +48,17 @@ class CreditConfigurationUpdateParams < Lithic::Internal::Type::BaseModel # @param tier [String] Tier to assign to a financial account # # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] + + class AutoCollectionConfiguration < Lithic::Internal::Type::BaseModel + # @!attribute auto_collection_enabled + # If auto collection is enabled for this account + # + # @return [Boolean, nil] + optional :auto_collection_enabled, Lithic::Internal::Type::Boolean + + # @!method initialize(auto_collection_enabled: nil) + # @param auto_collection_enabled [Boolean] If auto collection is enabled for this account + end end end end diff --git a/lib/lithic/models/financial_accounts/financial_account_credit_config.rb b/lib/lithic/models/financial_accounts/financial_account_credit_config.rb index e6bb9113..8460ca4b 100644 --- a/lib/lithic/models/financial_accounts/financial_account_credit_config.rb +++ b/lib/lithic/models/financial_accounts/financial_account_credit_config.rb @@ -11,6 +11,12 @@ class FinancialAccountCreditConfig < Lithic::Internal::Type::BaseModel # @return [String] required :account_token, String + # @!attribute auto_collection_configuration + # + # @return [Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::AutoCollectionConfiguration] + required :auto_collection_configuration, + -> { Lithic::FinancialAccounts::FinancialAccountCreditConfig::AutoCollectionConfiguration } + # @!attribute charged_off_reason # Reason for the financial account being marked as Charged Off # @@ -53,9 +59,11 @@ class FinancialAccountCreditConfig < Lithic::Internal::Type::BaseModel # @return [String, nil] required :tier, String, nil?: true - # @!method initialize(account_token:, charged_off_reason:, credit_limit:, credit_product_token:, external_bank_account_token:, financial_account_state:, is_spend_blocked:, tier:) + # @!method initialize(account_token:, auto_collection_configuration:, charged_off_reason:, credit_limit:, credit_product_token:, external_bank_account_token:, financial_account_state:, is_spend_blocked:, tier:) # @param account_token [String] Globally unique identifier for the account # + # @param auto_collection_configuration [Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::AutoCollectionConfiguration] + # # @param charged_off_reason [Symbol, Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason, nil] Reason for the financial account being marked as Charged Off # # @param credit_limit [Integer, nil] @@ -70,6 +78,18 @@ class FinancialAccountCreditConfig < Lithic::Internal::Type::BaseModel # # @param tier [String, nil] Tier assigned to the financial account + # @see Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig#auto_collection_configuration + class AutoCollectionConfiguration < Lithic::Internal::Type::BaseModel + # @!attribute auto_collection_enabled + # If auto collection is enabled for this account + # + # @return [Boolean] + required :auto_collection_enabled, Lithic::Internal::Type::Boolean + + # @!method initialize(auto_collection_enabled:) + # @param auto_collection_enabled [Boolean] If auto collection is enabled for this account + end + # Reason for the financial account being marked as Charged Off # # @see Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig#charged_off_reason diff --git a/lib/lithic/models/financial_accounts/statements/statement_line_items.rb b/lib/lithic/models/financial_accounts/statements/statement_line_items.rb index a0e401b0..e22719c3 100644 --- a/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +++ b/lib/lithic/models/financial_accounts/statements/statement_line_items.rb @@ -127,6 +127,11 @@ module Category ACH = :ACH BALANCE_OR_FUNDING = :BALANCE_OR_FUNDING + FEE = :FEE + REWARD = :REWARD + ADJUSTMENT = :ADJUSTMENT + DERECOGNITION = :DERECOGNITION + DISPUTE = :DISPUTE CARD = :CARD EXTERNAL_ACH = :EXTERNAL_ACH EXTERNAL_CHECK = :EXTERNAL_CHECK @@ -151,12 +156,14 @@ module EventType ACH_ORIGINATION_INITIATED = :ACH_ORIGINATION_INITIATED ACH_ORIGINATION_PROCESSED = :ACH_ORIGINATION_PROCESSED ACH_ORIGINATION_RELEASED = :ACH_ORIGINATION_RELEASED + ACH_ORIGINATION_REJECTED = :ACH_ORIGINATION_REJECTED ACH_ORIGINATION_REVIEWED = :ACH_ORIGINATION_REVIEWED ACH_ORIGINATION_SETTLED = :ACH_ORIGINATION_SETTLED ACH_RECEIPT_PROCESSED = :ACH_RECEIPT_PROCESSED ACH_RECEIPT_SETTLED = :ACH_RECEIPT_SETTLED ACH_RETURN_INITIATED = :ACH_RETURN_INITIATED ACH_RETURN_PROCESSED = :ACH_RETURN_PROCESSED + ACH_RETURN_REJECTED = :ACH_RETURN_REJECTED ACH_RETURN_SETTLED = :ACH_RETURN_SETTLED AUTHORIZATION = :AUTHORIZATION AUTHORIZATION_ADVICE = :AUTHORIZATION_ADVICE diff --git a/lib/lithic/models/financial_transaction.rb b/lib/lithic/models/financial_transaction.rb index bb8ab0cb..e2ef14dd 100644 --- a/lib/lithic/models/financial_transaction.rb +++ b/lib/lithic/models/financial_transaction.rb @@ -206,12 +206,14 @@ module Type ACH_ORIGINATION_INITIATED = :ACH_ORIGINATION_INITIATED ACH_ORIGINATION_PROCESSED = :ACH_ORIGINATION_PROCESSED ACH_ORIGINATION_RELEASED = :ACH_ORIGINATION_RELEASED + ACH_ORIGINATION_REJECTED = :ACH_ORIGINATION_REJECTED ACH_ORIGINATION_REVIEWED = :ACH_ORIGINATION_REVIEWED ACH_ORIGINATION_SETTLED = :ACH_ORIGINATION_SETTLED ACH_RECEIPT_PROCESSED = :ACH_RECEIPT_PROCESSED ACH_RECEIPT_SETTLED = :ACH_RECEIPT_SETTLED ACH_RETURN_INITIATED = :ACH_RETURN_INITIATED ACH_RETURN_PROCESSED = :ACH_RETURN_PROCESSED + ACH_RETURN_REJECTED = :ACH_RETURN_REJECTED ACH_RETURN_SETTLED = :ACH_RETURN_SETTLED AUTHORIZATION = :AUTHORIZATION AUTHORIZATION_ADVICE = :AUTHORIZATION_ADVICE diff --git a/lib/lithic/models/settlement_detail.rb b/lib/lithic/models/settlement_detail.rb index e9216c0c..054de972 100644 --- a/lib/lithic/models/settlement_detail.rb +++ b/lib/lithic/models/settlement_detail.rb @@ -10,21 +10,21 @@ class SettlementDetail < Lithic::Internal::Type::BaseModel required :token, String # @!attribute account_token - # The most granular ID the network settles with (e.g., ICA for Mastercard, FTSRE - # for Visa). + # Globally unique identifier denoting the account that the associated transaction + # occurred on. # # @return [String] required :account_token, String # @!attribute card_program_token # Globally unique identifier denoting the card program that the associated - # Transaction occurred on. + # transaction occurred on. # # @return [String] required :card_program_token, String # @!attribute card_token - # Globally unique identifier denoting the card that the associated Transaction + # Globally unique identifier denoting the card that the associated transaction # occurred on. # # @return [String] @@ -142,11 +142,11 @@ class SettlementDetail < Lithic::Internal::Type::BaseModel # # @param token [String] Globally unique identifier denoting the Settlement Detail. # - # @param account_token [String] The most granular ID the network settles with (e.g., ICA for Mastercard, FTSRE f + # @param account_token [String] Globally unique identifier denoting the account that the associated transaction # - # @param card_program_token [String] Globally unique identifier denoting the card program that the associated Transac + # @param card_program_token [String] Globally unique identifier denoting the card program that the associated transac # - # @param card_token [String] Globally unique identifier denoting the card that the associated Transaction occ + # @param card_token [String] Globally unique identifier denoting the card that the associated transaction occ # # @param created [Time] Date and time when the transaction first occurred. UTC time zone. # diff --git a/lib/lithic/models/tokenization.rb b/lib/lithic/models/tokenization.rb index 784b9b1e..192898d3 100644 --- a/lib/lithic/models/tokenization.rb +++ b/lib/lithic/models/tokenization.rb @@ -28,6 +28,12 @@ class Tokenization < Lithic::Internal::Type::BaseModel # @return [Time] required :created_at, Time + # @!attribute device_id + # The device identifier associated with the tokenization. + # + # @return [String, nil] + required :device_id, String, nil?: true + # @!attribute dpan # The dynamic pan assigned to the token by the network. # @@ -86,7 +92,7 @@ class Tokenization < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :payment_account_reference_id, String, nil?: true - # @!method initialize(token:, account_token:, card_token:, created_at:, dpan:, status:, token_requestor_name:, token_unique_reference:, tokenization_channel:, updated_at:, digital_card_art_token: nil, events: nil, payment_account_reference_id: nil) + # @!method initialize(token:, account_token:, card_token:, created_at:, device_id:, dpan:, status:, token_requestor_name:, token_unique_reference:, tokenization_channel:, updated_at:, digital_card_art_token: nil, events: nil, payment_account_reference_id: nil) # Some parameter documentations has been truncated, see # {Lithic::Models::Tokenization} for more details. # @@ -98,6 +104,8 @@ class Tokenization < Lithic::Internal::Type::BaseModel # # @param created_at [Time] Date and time when the tokenization first occurred. UTC time zone. # + # @param device_id [String, nil] The device identifier associated with the tokenization. + # # @param dpan [String, nil] The dynamic pan assigned to the token by the network. # # @param status [Symbol, Lithic::Models::Tokenization::Status] The status of the tokenization request diff --git a/lib/lithic/models/transaction.rb b/lib/lithic/models/transaction.rb index 0cdef3ce..f142363c 100644 --- a/lib/lithic/models/transaction.rb +++ b/lib/lithic/models/transaction.rb @@ -87,6 +87,11 @@ class Transaction < Lithic::Internal::Type::BaseModel # @return [Time] required :created, Time + # @!attribute financial_account_token + # + # @return [String, nil] + required :financial_account_token, String, nil?: true + # @!attribute merchant # # @return [Lithic::Models::Transaction::Merchant] @@ -173,7 +178,7 @@ class Transaction < Lithic::Internal::Type::BaseModel # @return [Array, nil] optional :events, -> { Lithic::Internal::Type::ArrayOf[Lithic::Transaction::Event] } - # @!method initialize(token:, account_token:, acquirer_fee:, acquirer_reference_number:, amount:, amounts:, authorization_amount:, authorization_code:, avs:, card_token:, cardholder_authentication:, created:, merchant:, merchant_amount:, merchant_authorization_amount:, merchant_currency:, network:, network_risk_score:, pos:, result:, settled_amount:, status:, token_info:, updated:, events: nil) + # @!method initialize(token:, account_token:, acquirer_fee:, acquirer_reference_number:, amount:, amounts:, authorization_amount:, authorization_code:, avs:, card_token:, cardholder_authentication:, created:, financial_account_token:, merchant:, merchant_amount:, merchant_authorization_amount:, merchant_currency:, network:, network_risk_score:, pos:, result:, settled_amount:, status:, token_info:, updated:, events: nil) # Some parameter documentations has been truncated, see # {Lithic::Models::Transaction} for more details. # @@ -201,6 +206,8 @@ class Transaction < Lithic::Internal::Type::BaseModel # # @param created [Time] Date and time when the transaction first occurred. UTC time zone. # + # @param financial_account_token [String, nil] + # # @param merchant [Lithic::Models::Transaction::Merchant] # # @param merchant_amount [Integer, nil] Analogous to the 'amount', but in the merchant currency. @@ -957,6 +964,7 @@ module Result DECLINED = :DECLINED FRAUD_ADVICE = :FRAUD_ADVICE IGNORED_TTL_EXPIRY = :IGNORED_TTL_EXPIRY + SUSPECTED_FRAUD = :SUSPECTED_FRAUD INACTIVE_ACCOUNT = :INACTIVE_ACCOUNT INCORRECT_PIN = :INCORRECT_PIN INVALID_CARD_DETAILS = :INVALID_CARD_DETAILS @@ -1293,6 +1301,7 @@ module DetailedResult REVERSAL_UNMATCHED = :REVERSAL_UNMATCHED SECURITY_VIOLATION = :SECURITY_VIOLATION SINGLE_USE_CARD_REATTEMPTED = :SINGLE_USE_CARD_REATTEMPTED + SUSPECTED_FRAUD = :SUSPECTED_FRAUD TRANSACTION_INVALID = :TRANSACTION_INVALID TRANSACTION_NOT_PERMITTED_TO_ACQUIRER_OR_TERMINAL = :TRANSACTION_NOT_PERMITTED_TO_ACQUIRER_OR_TERMINAL TRANSACTION_NOT_PERMITTED_TO_ISSUER_OR_CARDHOLDER = :TRANSACTION_NOT_PERMITTED_TO_ISSUER_OR_CARDHOLDER @@ -1506,6 +1515,7 @@ module Result DECLINED = :DECLINED FRAUD_ADVICE = :FRAUD_ADVICE IGNORED_TTL_EXPIRY = :IGNORED_TTL_EXPIRY + SUSPECTED_FRAUD = :SUSPECTED_FRAUD INACTIVE_ACCOUNT = :INACTIVE_ACCOUNT INCORRECT_PIN = :INCORRECT_PIN INVALID_CARD_DETAILS = :INVALID_CARD_DETAILS @@ -1618,6 +1628,7 @@ module Result REVERSAL_UNMATCHED = :REVERSAL_UNMATCHED SECURITY_VIOLATION = :SECURITY_VIOLATION SINGLE_USE_CARD_REATTEMPTED = :SINGLE_USE_CARD_REATTEMPTED + SUSPECTED_FRAUD = :SUSPECTED_FRAUD TRANSACTION_INVALID = :TRANSACTION_INVALID TRANSACTION_NOT_PERMITTED_TO_ACQUIRER_OR_TERMINAL = :TRANSACTION_NOT_PERMITTED_TO_ACQUIRER_OR_TERMINAL TRANSACTION_NOT_PERMITTED_TO_ISSUER_OR_CARDHOLDER = :TRANSACTION_NOT_PERMITTED_TO_ISSUER_OR_CARDHOLDER diff --git a/lib/lithic/models/transfer.rb b/lib/lithic/models/transfer.rb index 6aec3fa4..aa26b931 100644 --- a/lib/lithic/models/transfer.rb +++ b/lib/lithic/models/transfer.rb @@ -212,12 +212,14 @@ module Type ACH_ORIGINATION_INITIATED = :ACH_ORIGINATION_INITIATED ACH_ORIGINATION_PROCESSED = :ACH_ORIGINATION_PROCESSED ACH_ORIGINATION_RELEASED = :ACH_ORIGINATION_RELEASED + ACH_ORIGINATION_REJECTED = :ACH_ORIGINATION_REJECTED ACH_ORIGINATION_REVIEWED = :ACH_ORIGINATION_REVIEWED ACH_ORIGINATION_SETTLED = :ACH_ORIGINATION_SETTLED ACH_RECEIPT_PROCESSED = :ACH_RECEIPT_PROCESSED ACH_RECEIPT_SETTLED = :ACH_RECEIPT_SETTLED ACH_RETURN_INITIATED = :ACH_RETURN_INITIATED ACH_RETURN_PROCESSED = :ACH_RETURN_PROCESSED + ACH_RETURN_REJECTED = :ACH_RETURN_REJECTED ACH_RETURN_SETTLED = :ACH_RETURN_SETTLED AUTHORIZATION = :AUTHORIZATION AUTHORIZATION_ADVICE = :AUTHORIZATION_ADVICE diff --git a/lib/lithic/resources/auth_rules/v2.rb b/lib/lithic/resources/auth_rules/v2.rb index 8a49e162..4bf9edb6 100644 --- a/lib/lithic/resources/auth_rules/v2.rb +++ b/lib/lithic/resources/auth_rules/v2.rb @@ -77,10 +77,14 @@ def retrieve(auth_rule_token, params = {}) # is provided, this will replace existing associations with the provided list of # entities. # - # @overload update(auth_rule_token, name: nil, state: nil, card_tokens: nil, excluded_card_tokens: nil, program_level: nil, request_options: {}) + # @overload update(auth_rule_token, account_tokens: nil, business_account_tokens: nil, name: nil, state: nil, card_tokens: nil, excluded_card_tokens: nil, program_level: nil, request_options: {}) # # @param auth_rule_token [String] Globally unique identifier for the Auth Rule. # + # @param account_tokens [Array] Account tokens to which the Auth Rule applies. + # + # @param business_account_tokens [Array] Business Account tokens to which the Auth Rule applies. + # # @param name [String, nil] Auth Rule Name # # @param state [Symbol, Lithic::Models::AuthRules::V2UpdateParams::State] The desired state of the Auth Rule. diff --git a/lib/lithic/resources/book_transfers.rb b/lib/lithic/resources/book_transfers.rb index 47eb4370..fc39e345 100644 --- a/lib/lithic/resources/book_transfers.rb +++ b/lib/lithic/resources/book_transfers.rb @@ -13,7 +13,7 @@ class BookTransfers # # @param amount [Integer] Amount to be transferred in the currency's smallest unit (e.g., cents for USD). # - # @param category [Symbol, Lithic::Models::BookTransferCreateParams::Category] Category of the book transfer + # @param category [Symbol, Lithic::Models::BookTransferCreateParams::Category] # # @param from_financial_account_token [String] Globally unique identifier for the financial account or card that will send the # diff --git a/lib/lithic/resources/financial_accounts/credit_configuration.rb b/lib/lithic/resources/financial_accounts/credit_configuration.rb index d175e01b..47913448 100644 --- a/lib/lithic/resources/financial_accounts/credit_configuration.rb +++ b/lib/lithic/resources/financial_accounts/credit_configuration.rb @@ -26,10 +26,12 @@ def retrieve(financial_account_token, params = {}) # Update an account's credit configuration # - # @overload update(financial_account_token, credit_limit: nil, credit_product_token: nil, external_bank_account_token: nil, tier: nil, request_options: {}) + # @overload update(financial_account_token, auto_collection_configuration: nil, credit_limit: nil, credit_product_token: nil, external_bank_account_token: nil, tier: nil, request_options: {}) # # @param financial_account_token [String] Globally unique identifier for financial account. # + # @param auto_collection_configuration [Lithic::Models::FinancialAccounts::CreditConfigurationUpdateParams::AutoCollectionConfiguration] + # # @param credit_limit [Integer] # # @param credit_product_token [String] Globally unique identifier for the credit product diff --git a/lib/lithic/version.rb b/lib/lithic/version.rb index dd94a35d..67b696a7 100644 --- a/lib/lithic/version.rb +++ b/lib/lithic/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Lithic - VERSION = "0.1.0.pre.alpha.49" + VERSION = "0.1.0.pre.alpha.50" end diff --git a/rbi/lithic/models/account_activity_list_params.rbi b/rbi/lithic/models/account_activity_list_params.rbi index cd92df07..a715d5e5 100644 --- a/rbi/lithic/models/account_activity_list_params.rbi +++ b/rbi/lithic/models/account_activity_list_params.rbi @@ -193,6 +193,28 @@ module Lithic :BALANCE_OR_FUNDING, Lithic::AccountActivityListParams::Category::TaggedSymbol ) + FEE = + T.let(:FEE, Lithic::AccountActivityListParams::Category::TaggedSymbol) + REWARD = + T.let( + :REWARD, + Lithic::AccountActivityListParams::Category::TaggedSymbol + ) + ADJUSTMENT = + T.let( + :ADJUSTMENT, + Lithic::AccountActivityListParams::Category::TaggedSymbol + ) + DERECOGNITION = + T.let( + :DERECOGNITION, + Lithic::AccountActivityListParams::Category::TaggedSymbol + ) + DISPUTE = + T.let( + :DISPUTE, + Lithic::AccountActivityListParams::Category::TaggedSymbol + ) CARD = T.let( :CARD, diff --git a/rbi/lithic/models/account_activity_list_response.rbi b/rbi/lithic/models/account_activity_list_response.rbi index afe81d66..0f61d6fb 100644 --- a/rbi/lithic/models/account_activity_list_response.rbi +++ b/rbi/lithic/models/account_activity_list_response.rbi @@ -206,6 +206,31 @@ module Lithic :BALANCE_OR_FUNDING, Lithic::Models::AccountActivityListResponse::FinancialTransaction::Category::TaggedSymbol ) + FEE = + T.let( + :FEE, + Lithic::Models::AccountActivityListResponse::FinancialTransaction::Category::TaggedSymbol + ) + REWARD = + T.let( + :REWARD, + Lithic::Models::AccountActivityListResponse::FinancialTransaction::Category::TaggedSymbol + ) + ADJUSTMENT = + T.let( + :ADJUSTMENT, + Lithic::Models::AccountActivityListResponse::FinancialTransaction::Category::TaggedSymbol + ) + DERECOGNITION = + T.let( + :DERECOGNITION, + Lithic::Models::AccountActivityListResponse::FinancialTransaction::Category::TaggedSymbol + ) + DISPUTE = + T.let( + :DISPUTE, + Lithic::Models::AccountActivityListResponse::FinancialTransaction::Category::TaggedSymbol + ) CARD = T.let( :CARD, @@ -451,6 +476,11 @@ module Lithic :ACH_ORIGINATION_RELEASED, Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol ) + ACH_ORIGINATION_REJECTED = + T.let( + :ACH_ORIGINATION_REJECTED, + Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + ) ACH_ORIGINATION_REVIEWED = T.let( :ACH_ORIGINATION_REVIEWED, @@ -481,6 +511,11 @@ module Lithic :ACH_RETURN_PROCESSED, Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol ) + ACH_RETURN_REJECTED = + T.let( + :ACH_RETURN_REJECTED, + Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type::TaggedSymbol + ) ACH_RETURN_SETTLED = T.let( :ACH_RETURN_SETTLED, @@ -1151,9 +1186,9 @@ module Lithic end OrSymbol = T.type_alias { T.any(Symbol, String) } - ACH = + ADJUSTMENT = T.let( - :ACH, + :ADJUSTMENT, Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Category::TaggedSymbol ) BALANCE_OR_FUNDING = @@ -1161,59 +1196,39 @@ module Lithic :BALANCE_OR_FUNDING, Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Category::TaggedSymbol ) - CARD = - T.let( - :CARD, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Category::TaggedSymbol - ) - EXTERNAL_ACH = - T.let( - :EXTERNAL_ACH, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Category::TaggedSymbol - ) - EXTERNAL_CHECK = + DERECOGNITION = T.let( - :EXTERNAL_CHECK, + :DERECOGNITION, Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Category::TaggedSymbol ) - EXTERNAL_TRANSFER = + DISPUTE = T.let( - :EXTERNAL_TRANSFER, + :DISPUTE, Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Category::TaggedSymbol ) - EXTERNAL_WIRE = + FEE = T.let( - :EXTERNAL_WIRE, + :FEE, Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Category::TaggedSymbol ) - MANAGEMENT_ADJUSTMENT = - T.let( - :MANAGEMENT_ADJUSTMENT, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Category::TaggedSymbol - ) - MANAGEMENT_DISPUTE = - T.let( - :MANAGEMENT_DISPUTE, - Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Category::TaggedSymbol - ) - MANAGEMENT_FEE = + INTERNAL = T.let( - :MANAGEMENT_FEE, + :INTERNAL, Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Category::TaggedSymbol ) - MANAGEMENT_REWARD = + REWARD = T.let( - :MANAGEMENT_REWARD, + :REWARD, Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Category::TaggedSymbol ) - MANAGEMENT_DISBURSEMENT = + PROGRAM_FUNDING = T.let( - :MANAGEMENT_DISBURSEMENT, + :PROGRAM_FUNDING, Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Category::TaggedSymbol ) - PROGRAM_FUNDING = + TRANSFER = T.let( - :PROGRAM_FUNDING, + :TRANSFER, Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Category::TaggedSymbol ) @@ -1422,6 +1437,11 @@ module Lithic end OrSymbol = T.type_alias { T.any(Symbol, String) } + ATM_BALANCE_INQUIRY = + T.let( + :ATM_BALANCE_INQUIRY, + Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type::TaggedSymbol + ) ATM_WITHDRAWAL = T.let( :ATM_WITHDRAWAL, @@ -2289,6 +2309,31 @@ module Lithic :BALANCE_OR_FUNDING, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Category::TaggedSymbol ) + FEE = + T.let( + :FEE, + Lithic::Models::AccountActivityListResponse::PaymentTransaction::Category::TaggedSymbol + ) + REWARD = + T.let( + :REWARD, + Lithic::Models::AccountActivityListResponse::PaymentTransaction::Category::TaggedSymbol + ) + ADJUSTMENT = + T.let( + :ADJUSTMENT, + Lithic::Models::AccountActivityListResponse::PaymentTransaction::Category::TaggedSymbol + ) + DERECOGNITION = + T.let( + :DERECOGNITION, + Lithic::Models::AccountActivityListResponse::PaymentTransaction::Category::TaggedSymbol + ) + DISPUTE = + T.let( + :DISPUTE, + Lithic::Models::AccountActivityListResponse::PaymentTransaction::Category::TaggedSymbol + ) CARD = T.let( :CARD, diff --git a/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi b/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi index d2cf9e12..412a458b 100644 --- a/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +++ b/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi @@ -206,6 +206,31 @@ module Lithic :BALANCE_OR_FUNDING, Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Category::TaggedSymbol ) + FEE = + T.let( + :FEE, + Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Category::TaggedSymbol + ) + REWARD = + T.let( + :REWARD, + Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Category::TaggedSymbol + ) + ADJUSTMENT = + T.let( + :ADJUSTMENT, + Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Category::TaggedSymbol + ) + DERECOGNITION = + T.let( + :DERECOGNITION, + Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Category::TaggedSymbol + ) + DISPUTE = + T.let( + :DISPUTE, + Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Category::TaggedSymbol + ) CARD = T.let( :CARD, @@ -451,6 +476,11 @@ module Lithic :ACH_ORIGINATION_RELEASED, Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol ) + ACH_ORIGINATION_REJECTED = + T.let( + :ACH_ORIGINATION_REJECTED, + Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + ) ACH_ORIGINATION_REVIEWED = T.let( :ACH_ORIGINATION_REVIEWED, @@ -481,6 +511,11 @@ module Lithic :ACH_RETURN_PROCESSED, Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol ) + ACH_RETURN_REJECTED = + T.let( + :ACH_RETURN_REJECTED, + Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction::Event::Type::TaggedSymbol + ) ACH_RETURN_SETTLED = T.let( :ACH_RETURN_SETTLED, @@ -1151,9 +1186,9 @@ module Lithic end OrSymbol = T.type_alias { T.any(Symbol, String) } - ACH = + ADJUSTMENT = T.let( - :ACH, + :ADJUSTMENT, Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Category::TaggedSymbol ) BALANCE_OR_FUNDING = @@ -1161,59 +1196,39 @@ module Lithic :BALANCE_OR_FUNDING, Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Category::TaggedSymbol ) - CARD = - T.let( - :CARD, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Category::TaggedSymbol - ) - EXTERNAL_ACH = - T.let( - :EXTERNAL_ACH, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Category::TaggedSymbol - ) - EXTERNAL_CHECK = + DERECOGNITION = T.let( - :EXTERNAL_CHECK, + :DERECOGNITION, Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Category::TaggedSymbol ) - EXTERNAL_TRANSFER = + DISPUTE = T.let( - :EXTERNAL_TRANSFER, + :DISPUTE, Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Category::TaggedSymbol ) - EXTERNAL_WIRE = + FEE = T.let( - :EXTERNAL_WIRE, + :FEE, Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Category::TaggedSymbol ) - MANAGEMENT_ADJUSTMENT = - T.let( - :MANAGEMENT_ADJUSTMENT, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Category::TaggedSymbol - ) - MANAGEMENT_DISPUTE = - T.let( - :MANAGEMENT_DISPUTE, - Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Category::TaggedSymbol - ) - MANAGEMENT_FEE = + INTERNAL = T.let( - :MANAGEMENT_FEE, + :INTERNAL, Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Category::TaggedSymbol ) - MANAGEMENT_REWARD = + REWARD = T.let( - :MANAGEMENT_REWARD, + :REWARD, Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Category::TaggedSymbol ) - MANAGEMENT_DISBURSEMENT = + PROGRAM_FUNDING = T.let( - :MANAGEMENT_DISBURSEMENT, + :PROGRAM_FUNDING, Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Category::TaggedSymbol ) - PROGRAM_FUNDING = + TRANSFER = T.let( - :PROGRAM_FUNDING, + :TRANSFER, Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Category::TaggedSymbol ) @@ -1422,6 +1437,11 @@ module Lithic end OrSymbol = T.type_alias { T.any(Symbol, String) } + ATM_BALANCE_INQUIRY = + T.let( + :ATM_BALANCE_INQUIRY, + Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::Event::Type::TaggedSymbol + ) ATM_WITHDRAWAL = T.let( :ATM_WITHDRAWAL, @@ -2289,6 +2309,31 @@ module Lithic :BALANCE_OR_FUNDING, Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Category::TaggedSymbol ) + FEE = + T.let( + :FEE, + Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Category::TaggedSymbol + ) + REWARD = + T.let( + :REWARD, + Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Category::TaggedSymbol + ) + ADJUSTMENT = + T.let( + :ADJUSTMENT, + Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Category::TaggedSymbol + ) + DERECOGNITION = + T.let( + :DERECOGNITION, + Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Category::TaggedSymbol + ) + DISPUTE = + T.let( + :DISPUTE, + Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction::Category::TaggedSymbol + ) CARD = T.let( :CARD, diff --git a/rbi/lithic/models/auth_rules/v2_update_params.rbi b/rbi/lithic/models/auth_rules/v2_update_params.rbi index 956dd597..9b948b11 100644 --- a/rbi/lithic/models/auth_rules/v2_update_params.rbi +++ b/rbi/lithic/models/auth_rules/v2_update_params.rbi @@ -12,6 +12,20 @@ module Lithic T.any(Lithic::AuthRules::V2UpdateParams, Lithic::Internal::AnyHash) end + # Account tokens to which the Auth Rule applies. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :account_tokens + + sig { params(account_tokens: T::Array[String]).void } + attr_writer :account_tokens + + # Business Account tokens to which the Auth Rule applies. + sig { returns(T.nilable(T::Array[String])) } + attr_reader :business_account_tokens + + sig { params(business_account_tokens: T::Array[String]).void } + attr_writer :business_account_tokens + # Auth Rule Name sig { returns(T.nilable(String)) } attr_accessor :name @@ -54,6 +68,8 @@ module Lithic sig do params( + account_tokens: T::Array[String], + business_account_tokens: T::Array[String], name: T.nilable(String), state: Lithic::AuthRules::V2UpdateParams::State::OrSymbol, card_tokens: T::Array[String], @@ -63,6 +79,10 @@ module Lithic ).returns(T.attached_class) end def self.new( + # Account tokens to which the Auth Rule applies. + account_tokens: nil, + # Business Account tokens to which the Auth Rule applies. + business_account_tokens: nil, # Auth Rule Name name: nil, # The desired state of the Auth Rule. @@ -84,6 +104,8 @@ module Lithic sig do override.returns( { + account_tokens: T::Array[String], + business_account_tokens: T::Array[String], name: T.nilable(String), state: Lithic::AuthRules::V2UpdateParams::State::OrSymbol, card_tokens: T::Array[String], diff --git a/rbi/lithic/models/book_transfer_create_params.rbi b/rbi/lithic/models/book_transfer_create_params.rbi index 33ef1cd9..808f3401 100644 --- a/rbi/lithic/models/book_transfer_create_params.rbi +++ b/rbi/lithic/models/book_transfer_create_params.rbi @@ -16,7 +16,6 @@ module Lithic sig { returns(Integer) } attr_accessor :amount - # Category of the book transfer sig { returns(Lithic::BookTransferCreateParams::Category::OrSymbol) } attr_accessor :category @@ -96,7 +95,6 @@ module Lithic # Amount to be transferred in the currency's smallest unit (e.g., cents for USD). # This should always be a positive value. amount:, - # Category of the book transfer category:, # Globally unique identifier for the financial account or card that will send the # funds. Accepted type dependent on the program's use case. @@ -142,7 +140,6 @@ module Lithic def to_hash end - # Category of the book transfer module Category extend Lithic::Internal::Type::Enum @@ -174,11 +171,21 @@ module Lithic ) FEE = T.let(:FEE, Lithic::BookTransferCreateParams::Category::TaggedSymbol) + INTERNAL = + T.let( + :INTERNAL, + Lithic::BookTransferCreateParams::Category::TaggedSymbol + ) REWARD = T.let( :REWARD, Lithic::BookTransferCreateParams::Category::TaggedSymbol ) + PROGRAM_FUNDING = + T.let( + :PROGRAM_FUNDING, + Lithic::BookTransferCreateParams::Category::TaggedSymbol + ) TRANSFER = T.let( :TRANSFER, @@ -202,6 +209,11 @@ module Lithic T.type_alias { T.all(Symbol, Lithic::BookTransferCreateParams::Type) } OrSymbol = T.type_alias { T.any(Symbol, String) } + ATM_BALANCE_INQUIRY = + T.let( + :ATM_BALANCE_INQUIRY, + Lithic::BookTransferCreateParams::Type::TaggedSymbol + ) ATM_WITHDRAWAL = T.let( :ATM_WITHDRAWAL, diff --git a/rbi/lithic/models/book_transfer_list_params.rbi b/rbi/lithic/models/book_transfer_list_params.rbi index 80787c73..38a99db3 100644 --- a/rbi/lithic/models/book_transfer_list_params.rbi +++ b/rbi/lithic/models/book_transfer_list_params.rbi @@ -182,18 +182,14 @@ module Lithic end OrSymbol = T.type_alias { T.any(Symbol, String) } - BALANCE_OR_FUNDING = + ADJUSTMENT = T.let( - :BALANCE_OR_FUNDING, + :ADJUSTMENT, Lithic::BookTransferListParams::Category::TaggedSymbol ) - FEE = - T.let(:FEE, Lithic::BookTransferListParams::Category::TaggedSymbol) - REWARD = - T.let(:REWARD, Lithic::BookTransferListParams::Category::TaggedSymbol) - ADJUSTMENT = + BALANCE_OR_FUNDING = T.let( - :ADJUSTMENT, + :BALANCE_OR_FUNDING, Lithic::BookTransferListParams::Category::TaggedSymbol ) DERECOGNITION = @@ -206,11 +202,25 @@ module Lithic :DISPUTE, Lithic::BookTransferListParams::Category::TaggedSymbol ) + FEE = + T.let(:FEE, Lithic::BookTransferListParams::Category::TaggedSymbol) INTERNAL = T.let( :INTERNAL, Lithic::BookTransferListParams::Category::TaggedSymbol ) + REWARD = + T.let(:REWARD, Lithic::BookTransferListParams::Category::TaggedSymbol) + PROGRAM_FUNDING = + T.let( + :PROGRAM_FUNDING, + Lithic::BookTransferListParams::Category::TaggedSymbol + ) + TRANSFER = + T.let( + :TRANSFER, + Lithic::BookTransferListParams::Category::TaggedSymbol + ) sig do override.returns( diff --git a/rbi/lithic/models/book_transfer_response.rbi b/rbi/lithic/models/book_transfer_response.rbi index 9ab6f3d2..8cf5f1ad 100644 --- a/rbi/lithic/models/book_transfer_response.rbi +++ b/rbi/lithic/models/book_transfer_response.rbi @@ -13,7 +13,6 @@ module Lithic sig { returns(String) } attr_accessor :token - # Category of the book transfer sig { returns(Lithic::BookTransferResponse::Category::TaggedSymbol) } attr_accessor :category @@ -121,7 +120,6 @@ module Lithic # Customer-provided token that will serve as an idempotency token. This token will # become the transaction token. token:, - # Category of the book transfer category:, # Date and time when the transfer occurred. UTC time zone. created:, @@ -188,7 +186,6 @@ module Lithic def to_hash end - # Category of the book transfer module Category extend Lithic::Internal::Type::Enum @@ -214,8 +211,15 @@ module Lithic DISPUTE = T.let(:DISPUTE, Lithic::BookTransferResponse::Category::TaggedSymbol) FEE = T.let(:FEE, Lithic::BookTransferResponse::Category::TaggedSymbol) + INTERNAL = + T.let(:INTERNAL, Lithic::BookTransferResponse::Category::TaggedSymbol) REWARD = T.let(:REWARD, Lithic::BookTransferResponse::Category::TaggedSymbol) + PROGRAM_FUNDING = + T.let( + :PROGRAM_FUNDING, + Lithic::BookTransferResponse::Category::TaggedSymbol + ) TRANSFER = T.let(:TRANSFER, Lithic::BookTransferResponse::Category::TaggedSymbol) @@ -406,6 +410,11 @@ module Lithic end OrSymbol = T.type_alias { T.any(Symbol, String) } + ATM_BALANCE_INQUIRY = + T.let( + :ATM_BALANCE_INQUIRY, + Lithic::BookTransferResponse::Event::Type::TaggedSymbol + ) ATM_WITHDRAWAL = T.let( :ATM_WITHDRAWAL, diff --git a/rbi/lithic/models/financial_account.rbi b/rbi/lithic/models/financial_account.rbi index 80d40176..1896e476 100644 --- a/rbi/lithic/models/financial_account.rbi +++ b/rbi/lithic/models/financial_account.rbi @@ -164,6 +164,23 @@ module Lithic sig { returns(T.nilable(String)) } attr_accessor :tier + sig do + returns( + T.nilable( + Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration + ) + ) + end + attr_reader :auto_collection_configuration + + sig do + params( + auto_collection_configuration: + Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration::OrHash + ).void + end + attr_writer :auto_collection_configuration + sig do params( charged_off_reason: @@ -178,7 +195,9 @@ module Lithic Lithic::FinancialAccount::CreditConfiguration::FinancialAccountState::OrSymbol ), is_spend_blocked: T::Boolean, - tier: T.nilable(String) + tier: T.nilable(String), + auto_collection_configuration: + Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration::OrHash ).returns(T.attached_class) end def self.new( @@ -192,7 +211,8 @@ module Lithic financial_account_state:, is_spend_blocked:, # Tier assigned to the financial account - tier: + tier:, + auto_collection_configuration: nil ) end @@ -211,7 +231,9 @@ module Lithic Lithic::FinancialAccount::CreditConfiguration::FinancialAccountState::TaggedSymbol ), is_spend_blocked: T::Boolean, - tier: T.nilable(String) + tier: T.nilable(String), + auto_collection_configuration: + Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration } ) end @@ -297,6 +319,35 @@ module Lithic def self.values end end + + class AutoCollectionConfiguration < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration, + Lithic::Internal::AnyHash + ) + end + + # If auto collection is enabled for this account + sig { returns(T::Boolean) } + attr_accessor :auto_collection_enabled + + sig do + params(auto_collection_enabled: T::Boolean).returns( + T.attached_class + ) + end + def self.new( + # If auto collection is enabled for this account + auto_collection_enabled: + ) + end + + sig { override.returns({ auto_collection_enabled: T::Boolean }) } + def to_hash + end + end end # Status of the financial account diff --git a/rbi/lithic/models/financial_accounts/credit_configuration_update_params.rbi b/rbi/lithic/models/financial_accounts/credit_configuration_update_params.rbi index 2faf0a86..04e7b1a5 100644 --- a/rbi/lithic/models/financial_accounts/credit_configuration_update_params.rbi +++ b/rbi/lithic/models/financial_accounts/credit_configuration_update_params.rbi @@ -15,6 +15,23 @@ module Lithic ) end + sig do + returns( + T.nilable( + Lithic::FinancialAccounts::CreditConfigurationUpdateParams::AutoCollectionConfiguration + ) + ) + end + attr_reader :auto_collection_configuration + + sig do + params( + auto_collection_configuration: + Lithic::FinancialAccounts::CreditConfigurationUpdateParams::AutoCollectionConfiguration::OrHash + ).void + end + attr_writer :auto_collection_configuration + sig { returns(T.nilable(Integer)) } attr_reader :credit_limit @@ -43,6 +60,8 @@ module Lithic sig do params( + auto_collection_configuration: + Lithic::FinancialAccounts::CreditConfigurationUpdateParams::AutoCollectionConfiguration::OrHash, credit_limit: Integer, credit_product_token: String, external_bank_account_token: String, @@ -51,6 +70,7 @@ module Lithic ).returns(T.attached_class) end def self.new( + auto_collection_configuration: nil, credit_limit: nil, # Globally unique identifier for the credit product credit_product_token: nil, @@ -64,6 +84,8 @@ module Lithic sig do override.returns( { + auto_collection_configuration: + Lithic::FinancialAccounts::CreditConfigurationUpdateParams::AutoCollectionConfiguration, credit_limit: Integer, credit_product_token: String, external_bank_account_token: String, @@ -74,6 +96,38 @@ module Lithic end def to_hash end + + class AutoCollectionConfiguration < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::FinancialAccounts::CreditConfigurationUpdateParams::AutoCollectionConfiguration, + Lithic::Internal::AnyHash + ) + end + + # If auto collection is enabled for this account + sig { returns(T.nilable(T::Boolean)) } + attr_reader :auto_collection_enabled + + sig { params(auto_collection_enabled: T::Boolean).void } + attr_writer :auto_collection_enabled + + sig do + params(auto_collection_enabled: T::Boolean).returns( + T.attached_class + ) + end + def self.new( + # If auto collection is enabled for this account + auto_collection_enabled: nil + ) + end + + sig { override.returns({ auto_collection_enabled: T::Boolean }) } + def to_hash + end + end end end end diff --git a/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi b/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi index 4ab18667..15878058 100644 --- a/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi +++ b/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi @@ -19,6 +19,21 @@ module Lithic sig { returns(String) } attr_accessor :account_token + sig do + returns( + Lithic::FinancialAccounts::FinancialAccountCreditConfig::AutoCollectionConfiguration + ) + end + attr_reader :auto_collection_configuration + + sig do + params( + auto_collection_configuration: + Lithic::FinancialAccounts::FinancialAccountCreditConfig::AutoCollectionConfiguration::OrHash + ).void + end + attr_writer :auto_collection_configuration + # Reason for the financial account being marked as Charged Off sig do returns( @@ -57,6 +72,8 @@ module Lithic sig do params( account_token: String, + auto_collection_configuration: + Lithic::FinancialAccounts::FinancialAccountCreditConfig::AutoCollectionConfiguration::OrHash, charged_off_reason: T.nilable( Lithic::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason::OrSymbol @@ -73,6 +90,7 @@ module Lithic def self.new( # Globally unique identifier for the account account_token:, + auto_collection_configuration:, # Reason for the financial account being marked as Charged Off charged_off_reason:, credit_limit:, @@ -91,6 +109,8 @@ module Lithic override.returns( { account_token: String, + auto_collection_configuration: + Lithic::FinancialAccounts::FinancialAccountCreditConfig::AutoCollectionConfiguration, charged_off_reason: T.nilable( Lithic::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason::TaggedSymbol @@ -108,6 +128,35 @@ module Lithic def to_hash end + class AutoCollectionConfiguration < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::FinancialAccounts::FinancialAccountCreditConfig::AutoCollectionConfiguration, + Lithic::Internal::AnyHash + ) + end + + # If auto collection is enabled for this account + sig { returns(T::Boolean) } + attr_accessor :auto_collection_enabled + + sig do + params(auto_collection_enabled: T::Boolean).returns( + T.attached_class + ) + end + def self.new( + # If auto collection is enabled for this account + auto_collection_enabled: + ) + end + + sig { override.returns({ auto_collection_enabled: T::Boolean }) } + def to_hash + end + end + # Reason for the financial account being marked as Charged Off module ChargedOffReason extend Lithic::Internal::Type::Enum diff --git a/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi b/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi index 808630ae..6c8f8eb4 100644 --- a/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +++ b/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi @@ -211,6 +211,31 @@ module Lithic :BALANCE_OR_FUNDING, Lithic::FinancialAccounts::Statements::StatementLineItems::Data::Category::TaggedSymbol ) + FEE = + T.let( + :FEE, + Lithic::FinancialAccounts::Statements::StatementLineItems::Data::Category::TaggedSymbol + ) + REWARD = + T.let( + :REWARD, + Lithic::FinancialAccounts::Statements::StatementLineItems::Data::Category::TaggedSymbol + ) + ADJUSTMENT = + T.let( + :ADJUSTMENT, + Lithic::FinancialAccounts::Statements::StatementLineItems::Data::Category::TaggedSymbol + ) + DERECOGNITION = + T.let( + :DERECOGNITION, + Lithic::FinancialAccounts::Statements::StatementLineItems::Data::Category::TaggedSymbol + ) + DISPUTE = + T.let( + :DISPUTE, + Lithic::FinancialAccounts::Statements::StatementLineItems::Data::Category::TaggedSymbol + ) CARD = T.let( :CARD, @@ -310,6 +335,11 @@ module Lithic :ACH_ORIGINATION_RELEASED, Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol ) + ACH_ORIGINATION_REJECTED = + T.let( + :ACH_ORIGINATION_REJECTED, + Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol + ) ACH_ORIGINATION_REVIEWED = T.let( :ACH_ORIGINATION_REVIEWED, @@ -340,6 +370,11 @@ module Lithic :ACH_RETURN_PROCESSED, Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol ) + ACH_RETURN_REJECTED = + T.let( + :ACH_RETURN_REJECTED, + Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol + ) ACH_RETURN_SETTLED = T.let( :ACH_RETURN_SETTLED, diff --git a/rbi/lithic/models/financial_transaction.rbi b/rbi/lithic/models/financial_transaction.rbi index dad5fde8..8cdb3181 100644 --- a/rbi/lithic/models/financial_transaction.rbi +++ b/rbi/lithic/models/financial_transaction.rbi @@ -344,6 +344,11 @@ module Lithic :ACH_ORIGINATION_RELEASED, Lithic::FinancialTransaction::Event::Type::TaggedSymbol ) + ACH_ORIGINATION_REJECTED = + T.let( + :ACH_ORIGINATION_REJECTED, + Lithic::FinancialTransaction::Event::Type::TaggedSymbol + ) ACH_ORIGINATION_REVIEWED = T.let( :ACH_ORIGINATION_REVIEWED, @@ -374,6 +379,11 @@ module Lithic :ACH_RETURN_PROCESSED, Lithic::FinancialTransaction::Event::Type::TaggedSymbol ) + ACH_RETURN_REJECTED = + T.let( + :ACH_RETURN_REJECTED, + Lithic::FinancialTransaction::Event::Type::TaggedSymbol + ) ACH_RETURN_SETTLED = T.let( :ACH_RETURN_SETTLED, diff --git a/rbi/lithic/models/settlement_detail.rbi b/rbi/lithic/models/settlement_detail.rbi index a007d22d..ac051101 100644 --- a/rbi/lithic/models/settlement_detail.rbi +++ b/rbi/lithic/models/settlement_detail.rbi @@ -12,17 +12,17 @@ module Lithic sig { returns(String) } attr_accessor :token - # The most granular ID the network settles with (e.g., ICA for Mastercard, FTSRE - # for Visa). + # Globally unique identifier denoting the account that the associated transaction + # occurred on. sig { returns(String) } attr_accessor :account_token # Globally unique identifier denoting the card program that the associated - # Transaction occurred on. + # transaction occurred on. sig { returns(String) } attr_accessor :card_program_token - # Globally unique identifier denoting the card that the associated Transaction + # Globally unique identifier denoting the card that the associated transaction # occurred on. sig { returns(String) } attr_accessor :card_token @@ -138,13 +138,13 @@ module Lithic def self.new( # Globally unique identifier denoting the Settlement Detail. token:, - # The most granular ID the network settles with (e.g., ICA for Mastercard, FTSRE - # for Visa). + # Globally unique identifier denoting the account that the associated transaction + # occurred on. account_token:, # Globally unique identifier denoting the card program that the associated - # Transaction occurred on. + # transaction occurred on. card_program_token:, - # Globally unique identifier denoting the card that the associated Transaction + # Globally unique identifier denoting the card that the associated transaction # occurred on. card_token:, # Date and time when the transaction first occurred. UTC time zone. diff --git a/rbi/lithic/models/tokenization.rbi b/rbi/lithic/models/tokenization.rbi index 2533562d..000f427d 100644 --- a/rbi/lithic/models/tokenization.rbi +++ b/rbi/lithic/models/tokenization.rbi @@ -22,6 +22,10 @@ module Lithic sig { returns(Time) } attr_accessor :created_at + # The device identifier associated with the tokenization. + sig { returns(T.nilable(String)) } + attr_accessor :device_id + # The dynamic pan assigned to the token by the network. sig { returns(T.nilable(String)) } attr_accessor :dpan @@ -74,6 +78,7 @@ module Lithic account_token: String, card_token: String, created_at: Time, + device_id: T.nilable(String), dpan: T.nilable(String), status: Lithic::Tokenization::Status::OrSymbol, token_requestor_name: @@ -96,6 +101,8 @@ module Lithic card_token:, # Date and time when the tokenization first occurred. UTC time zone. created_at:, + # The device identifier associated with the tokenization. + device_id:, # The dynamic pan assigned to the token by the network. dpan:, # The status of the tokenization request @@ -128,6 +135,7 @@ module Lithic account_token: String, card_token: String, created_at: Time, + device_id: T.nilable(String), dpan: T.nilable(String), status: Lithic::Tokenization::Status::TaggedSymbol, token_requestor_name: diff --git a/rbi/lithic/models/transaction.rbi b/rbi/lithic/models/transaction.rbi index c37aef40..59e93d59 100644 --- a/rbi/lithic/models/transaction.rbi +++ b/rbi/lithic/models/transaction.rbi @@ -73,6 +73,9 @@ module Lithic sig { returns(Time) } attr_accessor :created + sig { returns(T.nilable(String)) } + attr_accessor :financial_account_token + sig { returns(Lithic::Transaction::Merchant) } attr_reader :merchant @@ -156,6 +159,7 @@ module Lithic cardholder_authentication: T.nilable(Lithic::Transaction::CardholderAuthentication::OrHash), created: Time, + financial_account_token: T.nilable(String), merchant: Lithic::Transaction::Merchant::OrHash, merchant_amount: T.nilable(Integer), merchant_authorization_amount: T.nilable(Integer), @@ -201,6 +205,7 @@ module Lithic cardholder_authentication:, # Date and time when the transaction first occurred. UTC time zone. created:, + financial_account_token:, merchant:, # Analogous to the 'amount', but in the merchant currency. merchant_amount:, @@ -246,6 +251,7 @@ module Lithic cardholder_authentication: T.nilable(Lithic::Transaction::CardholderAuthentication), created: Time, + financial_account_token: T.nilable(String), merchant: Lithic::Transaction::Merchant, merchant_amount: T.nilable(Integer), merchant_authorization_amount: T.nilable(Integer), @@ -1837,6 +1843,8 @@ module Lithic T.let(:FRAUD_ADVICE, Lithic::Transaction::Result::TaggedSymbol) IGNORED_TTL_EXPIRY = T.let(:IGNORED_TTL_EXPIRY, Lithic::Transaction::Result::TaggedSymbol) + SUSPECTED_FRAUD = + T.let(:SUSPECTED_FRAUD, Lithic::Transaction::Result::TaggedSymbol) INACTIVE_ACCOUNT = T.let(:INACTIVE_ACCOUNT, Lithic::Transaction::Result::TaggedSymbol) INCORRECT_PIN = @@ -2636,6 +2644,11 @@ module Lithic :SINGLE_USE_CARD_REATTEMPTED, Lithic::Transaction::Event::DetailedResult::TaggedSymbol ) + SUSPECTED_FRAUD = + T.let( + :SUSPECTED_FRAUD, + Lithic::Transaction::Event::DetailedResult::TaggedSymbol + ) TRANSACTION_INVALID = T.let( :TRANSACTION_INVALID, @@ -3120,6 +3133,11 @@ module Lithic :IGNORED_TTL_EXPIRY, Lithic::Transaction::Event::Result::TaggedSymbol ) + SUSPECTED_FRAUD = + T.let( + :SUSPECTED_FRAUD, + Lithic::Transaction::Event::Result::TaggedSymbol + ) INACTIVE_ACCOUNT = T.let( :INACTIVE_ACCOUNT, @@ -3514,6 +3532,11 @@ module Lithic :SINGLE_USE_CARD_REATTEMPTED, Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol ) + SUSPECTED_FRAUD = + T.let( + :SUSPECTED_FRAUD, + Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol + ) TRANSACTION_INVALID = T.let( :TRANSACTION_INVALID, diff --git a/rbi/lithic/models/transfer.rbi b/rbi/lithic/models/transfer.rbi index 47c32ff2..afdf9778 100644 --- a/rbi/lithic/models/transfer.rbi +++ b/rbi/lithic/models/transfer.rbi @@ -349,6 +349,11 @@ module Lithic :ACH_ORIGINATION_RELEASED, Lithic::Transfer::Event::Type::TaggedSymbol ) + ACH_ORIGINATION_REJECTED = + T.let( + :ACH_ORIGINATION_REJECTED, + Lithic::Transfer::Event::Type::TaggedSymbol + ) ACH_ORIGINATION_REVIEWED = T.let( :ACH_ORIGINATION_REVIEWED, @@ -379,6 +384,11 @@ module Lithic :ACH_RETURN_PROCESSED, Lithic::Transfer::Event::Type::TaggedSymbol ) + ACH_RETURN_REJECTED = + T.let( + :ACH_RETURN_REJECTED, + Lithic::Transfer::Event::Type::TaggedSymbol + ) ACH_RETURN_SETTLED = T.let( :ACH_RETURN_SETTLED, diff --git a/rbi/lithic/resources/auth_rules/v2.rbi b/rbi/lithic/resources/auth_rules/v2.rbi index 66fda53b..8dd8ff45 100644 --- a/rbi/lithic/resources/auth_rules/v2.rbi +++ b/rbi/lithic/resources/auth_rules/v2.rbi @@ -83,6 +83,8 @@ module Lithic sig do params( auth_rule_token: String, + account_tokens: T::Array[String], + business_account_tokens: T::Array[String], name: T.nilable(String), state: Lithic::AuthRules::V2UpdateParams::State::OrSymbol, card_tokens: T::Array[String], @@ -94,6 +96,10 @@ module Lithic def update( # Globally unique identifier for the Auth Rule. auth_rule_token, + # Account tokens to which the Auth Rule applies. + account_tokens: nil, + # Business Account tokens to which the Auth Rule applies. + business_account_tokens: nil, # Auth Rule Name name: nil, # The desired state of the Auth Rule. diff --git a/rbi/lithic/resources/book_transfers.rbi b/rbi/lithic/resources/book_transfers.rbi index cbc3cc0e..0e43dbc8 100644 --- a/rbi/lithic/resources/book_transfers.rbi +++ b/rbi/lithic/resources/book_transfers.rbi @@ -25,7 +25,6 @@ module Lithic # Amount to be transferred in the currency's smallest unit (e.g., cents for USD). # This should always be a positive value. amount:, - # Category of the book transfer category:, # Globally unique identifier for the financial account or card that will send the # funds. Accepted type dependent on the program's use case. diff --git a/rbi/lithic/resources/financial_accounts/credit_configuration.rbi b/rbi/lithic/resources/financial_accounts/credit_configuration.rbi index 777700e6..7c487077 100644 --- a/rbi/lithic/resources/financial_accounts/credit_configuration.rbi +++ b/rbi/lithic/resources/financial_accounts/credit_configuration.rbi @@ -22,6 +22,8 @@ module Lithic sig do params( financial_account_token: String, + auto_collection_configuration: + Lithic::FinancialAccounts::CreditConfigurationUpdateParams::AutoCollectionConfiguration::OrHash, credit_limit: Integer, credit_product_token: String, external_bank_account_token: String, @@ -32,6 +34,7 @@ module Lithic def update( # Globally unique identifier for financial account. financial_account_token, + auto_collection_configuration: nil, credit_limit: nil, # Globally unique identifier for the credit product credit_product_token: nil, diff --git a/sig/lithic/models/account_activity_list_params.rbs b/sig/lithic/models/account_activity_list_params.rbs index a4865479..8da27203 100644 --- a/sig/lithic/models/account_activity_list_params.rbs +++ b/sig/lithic/models/account_activity_list_params.rbs @@ -103,6 +103,11 @@ module Lithic type category = :ACH | :BALANCE_OR_FUNDING + | :FEE + | :REWARD + | :ADJUSTMENT + | :DERECOGNITION + | :DISPUTE | :CARD | :EXTERNAL_ACH | :EXTERNAL_CHECK @@ -120,6 +125,11 @@ module Lithic ACH: :ACH BALANCE_OR_FUNDING: :BALANCE_OR_FUNDING + FEE: :FEE + REWARD: :REWARD + ADJUSTMENT: :ADJUSTMENT + DERECOGNITION: :DERECOGNITION + DISPUTE: :DISPUTE CARD: :CARD EXTERNAL_ACH: :EXTERNAL_ACH EXTERNAL_CHECK: :EXTERNAL_CHECK diff --git a/sig/lithic/models/account_activity_list_response.rbs b/sig/lithic/models/account_activity_list_response.rbs index 1e586c3d..11d3d4f6 100644 --- a/sig/lithic/models/account_activity_list_response.rbs +++ b/sig/lithic/models/account_activity_list_response.rbs @@ -90,6 +90,11 @@ module Lithic type category = :ACH | :BALANCE_OR_FUNDING + | :FEE + | :REWARD + | :ADJUSTMENT + | :DERECOGNITION + | :DISPUTE | :CARD | :EXTERNAL_ACH | :EXTERNAL_CHECK @@ -107,6 +112,11 @@ module Lithic ACH: :ACH BALANCE_OR_FUNDING: :BALANCE_OR_FUNDING + FEE: :FEE + REWARD: :REWARD + ADJUSTMENT: :ADJUSTMENT + DERECOGNITION: :DERECOGNITION + DISPUTE: :DISPUTE CARD: :CARD EXTERNAL_ACH: :EXTERNAL_ACH EXTERNAL_CHECK: :EXTERNAL_CHECK @@ -188,12 +198,14 @@ module Lithic | :ACH_ORIGINATION_INITIATED | :ACH_ORIGINATION_PROCESSED | :ACH_ORIGINATION_RELEASED + | :ACH_ORIGINATION_REJECTED | :ACH_ORIGINATION_REVIEWED | :ACH_ORIGINATION_SETTLED | :ACH_RECEIPT_PROCESSED | :ACH_RECEIPT_SETTLED | :ACH_RETURN_INITIATED | :ACH_RETURN_PROCESSED + | :ACH_RETURN_REJECTED | :ACH_RETURN_SETTLED | :AUTHORIZATION | :AUTHORIZATION_ADVICE @@ -260,12 +272,14 @@ module Lithic ACH_ORIGINATION_INITIATED: :ACH_ORIGINATION_INITIATED ACH_ORIGINATION_PROCESSED: :ACH_ORIGINATION_PROCESSED ACH_ORIGINATION_RELEASED: :ACH_ORIGINATION_RELEASED + ACH_ORIGINATION_REJECTED: :ACH_ORIGINATION_REJECTED ACH_ORIGINATION_REVIEWED: :ACH_ORIGINATION_REVIEWED ACH_ORIGINATION_SETTLED: :ACH_ORIGINATION_SETTLED ACH_RECEIPT_PROCESSED: :ACH_RECEIPT_PROCESSED ACH_RECEIPT_SETTLED: :ACH_RECEIPT_SETTLED ACH_RETURN_INITIATED: :ACH_RETURN_INITIATED ACH_RETURN_PROCESSED: :ACH_RETURN_PROCESSED + ACH_RETURN_REJECTED: :ACH_RETURN_REJECTED ACH_RETURN_SETTLED: :ACH_RETURN_SETTLED AUTHORIZATION: :AUTHORIZATION AUTHORIZATION_ADVICE: :AUTHORIZATION_ADVICE @@ -470,36 +484,28 @@ module Lithic } type category = - :ACH + :ADJUSTMENT | :BALANCE_OR_FUNDING - | :CARD - | :EXTERNAL_ACH - | :EXTERNAL_CHECK - | :EXTERNAL_TRANSFER - | :EXTERNAL_WIRE - | :MANAGEMENT_ADJUSTMENT - | :MANAGEMENT_DISPUTE - | :MANAGEMENT_FEE - | :MANAGEMENT_REWARD - | :MANAGEMENT_DISBURSEMENT + | :DERECOGNITION + | :DISPUTE + | :FEE + | :INTERNAL + | :REWARD | :PROGRAM_FUNDING + | :TRANSFER module Category extend Lithic::Internal::Type::Enum - ACH: :ACH + ADJUSTMENT: :ADJUSTMENT BALANCE_OR_FUNDING: :BALANCE_OR_FUNDING - CARD: :CARD - EXTERNAL_ACH: :EXTERNAL_ACH - EXTERNAL_CHECK: :EXTERNAL_CHECK - EXTERNAL_TRANSFER: :EXTERNAL_TRANSFER - EXTERNAL_WIRE: :EXTERNAL_WIRE - MANAGEMENT_ADJUSTMENT: :MANAGEMENT_ADJUSTMENT - MANAGEMENT_DISPUTE: :MANAGEMENT_DISPUTE - MANAGEMENT_FEE: :MANAGEMENT_FEE - MANAGEMENT_REWARD: :MANAGEMENT_REWARD - MANAGEMENT_DISBURSEMENT: :MANAGEMENT_DISBURSEMENT + DERECOGNITION: :DERECOGNITION + DISPUTE: :DISPUTE + FEE: :FEE + INTERNAL: :INTERNAL + REWARD: :REWARD PROGRAM_FUNDING: :PROGRAM_FUNDING + TRANSFER: :TRANSFER def self?.values: -> ::Array[Lithic::Models::AccountActivityListResponse::BookTransferTransaction::category] end @@ -578,7 +584,8 @@ module Lithic end type type_ = - :ATM_WITHDRAWAL + :ATM_BALANCE_INQUIRY + | :ATM_WITHDRAWAL | :ATM_DECLINE | :INTERNATIONAL_ATM_WITHDRAWAL | :INACTIVITY @@ -616,6 +623,7 @@ module Lithic module Type extend Lithic::Internal::Type::Enum + ATM_BALANCE_INQUIRY: :ATM_BALANCE_INQUIRY ATM_WITHDRAWAL: :ATM_WITHDRAWAL ATM_DECLINE: :ATM_DECLINE INTERNATIONAL_ATM_WITHDRAWAL: :INTERNATIONAL_ATM_WITHDRAWAL @@ -945,6 +953,11 @@ module Lithic type category = :ACH | :BALANCE_OR_FUNDING + | :FEE + | :REWARD + | :ADJUSTMENT + | :DERECOGNITION + | :DISPUTE | :CARD | :EXTERNAL_ACH | :EXTERNAL_CHECK @@ -962,6 +975,11 @@ module Lithic ACH: :ACH BALANCE_OR_FUNDING: :BALANCE_OR_FUNDING + FEE: :FEE + REWARD: :REWARD + ADJUSTMENT: :ADJUSTMENT + DERECOGNITION: :DERECOGNITION + DISPUTE: :DISPUTE CARD: :CARD EXTERNAL_ACH: :EXTERNAL_ACH EXTERNAL_CHECK: :EXTERNAL_CHECK diff --git a/sig/lithic/models/account_activity_retrieve_transaction_response.rbs b/sig/lithic/models/account_activity_retrieve_transaction_response.rbs index 20a69a25..62aa166d 100644 --- a/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +++ b/sig/lithic/models/account_activity_retrieve_transaction_response.rbs @@ -90,6 +90,11 @@ module Lithic type category = :ACH | :BALANCE_OR_FUNDING + | :FEE + | :REWARD + | :ADJUSTMENT + | :DERECOGNITION + | :DISPUTE | :CARD | :EXTERNAL_ACH | :EXTERNAL_CHECK @@ -107,6 +112,11 @@ module Lithic ACH: :ACH BALANCE_OR_FUNDING: :BALANCE_OR_FUNDING + FEE: :FEE + REWARD: :REWARD + ADJUSTMENT: :ADJUSTMENT + DERECOGNITION: :DERECOGNITION + DISPUTE: :DISPUTE CARD: :CARD EXTERNAL_ACH: :EXTERNAL_ACH EXTERNAL_CHECK: :EXTERNAL_CHECK @@ -188,12 +198,14 @@ module Lithic | :ACH_ORIGINATION_INITIATED | :ACH_ORIGINATION_PROCESSED | :ACH_ORIGINATION_RELEASED + | :ACH_ORIGINATION_REJECTED | :ACH_ORIGINATION_REVIEWED | :ACH_ORIGINATION_SETTLED | :ACH_RECEIPT_PROCESSED | :ACH_RECEIPT_SETTLED | :ACH_RETURN_INITIATED | :ACH_RETURN_PROCESSED + | :ACH_RETURN_REJECTED | :ACH_RETURN_SETTLED | :AUTHORIZATION | :AUTHORIZATION_ADVICE @@ -260,12 +272,14 @@ module Lithic ACH_ORIGINATION_INITIATED: :ACH_ORIGINATION_INITIATED ACH_ORIGINATION_PROCESSED: :ACH_ORIGINATION_PROCESSED ACH_ORIGINATION_RELEASED: :ACH_ORIGINATION_RELEASED + ACH_ORIGINATION_REJECTED: :ACH_ORIGINATION_REJECTED ACH_ORIGINATION_REVIEWED: :ACH_ORIGINATION_REVIEWED ACH_ORIGINATION_SETTLED: :ACH_ORIGINATION_SETTLED ACH_RECEIPT_PROCESSED: :ACH_RECEIPT_PROCESSED ACH_RECEIPT_SETTLED: :ACH_RECEIPT_SETTLED ACH_RETURN_INITIATED: :ACH_RETURN_INITIATED ACH_RETURN_PROCESSED: :ACH_RETURN_PROCESSED + ACH_RETURN_REJECTED: :ACH_RETURN_REJECTED ACH_RETURN_SETTLED: :ACH_RETURN_SETTLED AUTHORIZATION: :AUTHORIZATION AUTHORIZATION_ADVICE: :AUTHORIZATION_ADVICE @@ -470,36 +484,28 @@ module Lithic } type category = - :ACH + :ADJUSTMENT | :BALANCE_OR_FUNDING - | :CARD - | :EXTERNAL_ACH - | :EXTERNAL_CHECK - | :EXTERNAL_TRANSFER - | :EXTERNAL_WIRE - | :MANAGEMENT_ADJUSTMENT - | :MANAGEMENT_DISPUTE - | :MANAGEMENT_FEE - | :MANAGEMENT_REWARD - | :MANAGEMENT_DISBURSEMENT + | :DERECOGNITION + | :DISPUTE + | :FEE + | :INTERNAL + | :REWARD | :PROGRAM_FUNDING + | :TRANSFER module Category extend Lithic::Internal::Type::Enum - ACH: :ACH + ADJUSTMENT: :ADJUSTMENT BALANCE_OR_FUNDING: :BALANCE_OR_FUNDING - CARD: :CARD - EXTERNAL_ACH: :EXTERNAL_ACH - EXTERNAL_CHECK: :EXTERNAL_CHECK - EXTERNAL_TRANSFER: :EXTERNAL_TRANSFER - EXTERNAL_WIRE: :EXTERNAL_WIRE - MANAGEMENT_ADJUSTMENT: :MANAGEMENT_ADJUSTMENT - MANAGEMENT_DISPUTE: :MANAGEMENT_DISPUTE - MANAGEMENT_FEE: :MANAGEMENT_FEE - MANAGEMENT_REWARD: :MANAGEMENT_REWARD - MANAGEMENT_DISBURSEMENT: :MANAGEMENT_DISBURSEMENT + DERECOGNITION: :DERECOGNITION + DISPUTE: :DISPUTE + FEE: :FEE + INTERNAL: :INTERNAL + REWARD: :REWARD PROGRAM_FUNDING: :PROGRAM_FUNDING + TRANSFER: :TRANSFER def self?.values: -> ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction::category] end @@ -578,7 +584,8 @@ module Lithic end type type_ = - :ATM_WITHDRAWAL + :ATM_BALANCE_INQUIRY + | :ATM_WITHDRAWAL | :ATM_DECLINE | :INTERNATIONAL_ATM_WITHDRAWAL | :INACTIVITY @@ -616,6 +623,7 @@ module Lithic module Type extend Lithic::Internal::Type::Enum + ATM_BALANCE_INQUIRY: :ATM_BALANCE_INQUIRY ATM_WITHDRAWAL: :ATM_WITHDRAWAL ATM_DECLINE: :ATM_DECLINE INTERNATIONAL_ATM_WITHDRAWAL: :INTERNATIONAL_ATM_WITHDRAWAL @@ -945,6 +953,11 @@ module Lithic type category = :ACH | :BALANCE_OR_FUNDING + | :FEE + | :REWARD + | :ADJUSTMENT + | :DERECOGNITION + | :DISPUTE | :CARD | :EXTERNAL_ACH | :EXTERNAL_CHECK @@ -962,6 +975,11 @@ module Lithic ACH: :ACH BALANCE_OR_FUNDING: :BALANCE_OR_FUNDING + FEE: :FEE + REWARD: :REWARD + ADJUSTMENT: :ADJUSTMENT + DERECOGNITION: :DERECOGNITION + DISPUTE: :DISPUTE CARD: :CARD EXTERNAL_ACH: :EXTERNAL_ACH EXTERNAL_CHECK: :EXTERNAL_CHECK diff --git a/sig/lithic/models/auth_rules/v2_update_params.rbs b/sig/lithic/models/auth_rules/v2_update_params.rbs index 160364b1..77bf19aa 100644 --- a/sig/lithic/models/auth_rules/v2_update_params.rbs +++ b/sig/lithic/models/auth_rules/v2_update_params.rbs @@ -3,6 +3,8 @@ module Lithic module AuthRules type v2_update_params = { + account_tokens: ::Array[String], + business_account_tokens: ::Array[String], name: String?, state: Lithic::Models::AuthRules::V2UpdateParams::state, card_tokens: ::Array[String], @@ -15,6 +17,14 @@ module Lithic extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_reader account_tokens: ::Array[String]? + + def account_tokens=: (::Array[String]) -> ::Array[String] + + attr_reader business_account_tokens: ::Array[String]? + + def business_account_tokens=: (::Array[String]) -> ::Array[String] + attr_accessor name: String? attr_reader state: Lithic::Models::AuthRules::V2UpdateParams::state? @@ -36,6 +46,8 @@ module Lithic def program_level=: (bool) -> bool def initialize: ( + ?account_tokens: ::Array[String], + ?business_account_tokens: ::Array[String], ?name: String?, ?state: Lithic::Models::AuthRules::V2UpdateParams::state, ?card_tokens: ::Array[String], @@ -45,6 +57,8 @@ module Lithic ) -> void def to_hash: -> { + account_tokens: ::Array[String], + business_account_tokens: ::Array[String], name: String?, state: Lithic::Models::AuthRules::V2UpdateParams::state, card_tokens: ::Array[String], diff --git a/sig/lithic/models/book_transfer_create_params.rbs b/sig/lithic/models/book_transfer_create_params.rbs index 2151bf82..c032c63c 100644 --- a/sig/lithic/models/book_transfer_create_params.rbs +++ b/sig/lithic/models/book_transfer_create_params.rbs @@ -83,7 +83,9 @@ module Lithic | :DERECOGNITION | :DISPUTE | :FEE + | :INTERNAL | :REWARD + | :PROGRAM_FUNDING | :TRANSFER module Category @@ -94,14 +96,17 @@ module Lithic DERECOGNITION: :DERECOGNITION DISPUTE: :DISPUTE FEE: :FEE + INTERNAL: :INTERNAL REWARD: :REWARD + PROGRAM_FUNDING: :PROGRAM_FUNDING TRANSFER: :TRANSFER def self?.values: -> ::Array[Lithic::Models::BookTransferCreateParams::category] end type type_ = - :ATM_WITHDRAWAL + :ATM_BALANCE_INQUIRY + | :ATM_WITHDRAWAL | :ATM_DECLINE | :INTERNATIONAL_ATM_WITHDRAWAL | :INACTIVITY @@ -139,6 +144,7 @@ module Lithic module Type extend Lithic::Internal::Type::Enum + ATM_BALANCE_INQUIRY: :ATM_BALANCE_INQUIRY ATM_WITHDRAWAL: :ATM_WITHDRAWAL ATM_DECLINE: :ATM_DECLINE INTERNATIONAL_ATM_WITHDRAWAL: :INTERNATIONAL_ATM_WITHDRAWAL diff --git a/sig/lithic/models/book_transfer_list_params.rbs b/sig/lithic/models/book_transfer_list_params.rbs index 22b34bf7..c1ffc309 100644 --- a/sig/lithic/models/book_transfer_list_params.rbs +++ b/sig/lithic/models/book_transfer_list_params.rbs @@ -101,24 +101,28 @@ module Lithic } type category = - :BALANCE_OR_FUNDING - | :FEE - | :REWARD - | :ADJUSTMENT + :ADJUSTMENT + | :BALANCE_OR_FUNDING | :DERECOGNITION | :DISPUTE + | :FEE | :INTERNAL + | :REWARD + | :PROGRAM_FUNDING + | :TRANSFER module Category extend Lithic::Internal::Type::Enum - BALANCE_OR_FUNDING: :BALANCE_OR_FUNDING - FEE: :FEE - REWARD: :REWARD ADJUSTMENT: :ADJUSTMENT + BALANCE_OR_FUNDING: :BALANCE_OR_FUNDING DERECOGNITION: :DERECOGNITION DISPUTE: :DISPUTE + FEE: :FEE INTERNAL: :INTERNAL + REWARD: :REWARD + PROGRAM_FUNDING: :PROGRAM_FUNDING + TRANSFER: :TRANSFER def self?.values: -> ::Array[Lithic::Models::BookTransferListParams::category] end diff --git a/sig/lithic/models/book_transfer_response.rbs b/sig/lithic/models/book_transfer_response.rbs index 7c29c444..657c6819 100644 --- a/sig/lithic/models/book_transfer_response.rbs +++ b/sig/lithic/models/book_transfer_response.rbs @@ -92,7 +92,9 @@ module Lithic | :DERECOGNITION | :DISPUTE | :FEE + | :INTERNAL | :REWARD + | :PROGRAM_FUNDING | :TRANSFER module Category @@ -103,7 +105,9 @@ module Lithic DERECOGNITION: :DERECOGNITION DISPUTE: :DISPUTE FEE: :FEE + INTERNAL: :INTERNAL REWARD: :REWARD + PROGRAM_FUNDING: :PROGRAM_FUNDING TRANSFER: :TRANSFER def self?.values: -> ::Array[Lithic::Models::BookTransferResponse::category] @@ -183,7 +187,8 @@ module Lithic end type type_ = - :ATM_WITHDRAWAL + :ATM_BALANCE_INQUIRY + | :ATM_WITHDRAWAL | :ATM_DECLINE | :INTERNATIONAL_ATM_WITHDRAWAL | :INACTIVITY @@ -221,6 +226,7 @@ module Lithic module Type extend Lithic::Internal::Type::Enum + ATM_BALANCE_INQUIRY: :ATM_BALANCE_INQUIRY ATM_WITHDRAWAL: :ATM_WITHDRAWAL ATM_DECLINE: :ATM_DECLINE INTERNATIONAL_ATM_WITHDRAWAL: :INTERNATIONAL_ATM_WITHDRAWAL diff --git a/sig/lithic/models/financial_account.rbs b/sig/lithic/models/financial_account.rbs index cee51492..eadf2629 100644 --- a/sig/lithic/models/financial_account.rbs +++ b/sig/lithic/models/financial_account.rbs @@ -79,7 +79,8 @@ module Lithic external_bank_account_token: String?, financial_account_state: Lithic::Models::FinancialAccount::CreditConfiguration::financial_account_state?, is_spend_blocked: bool, - tier: String? + tier: String?, + auto_collection_configuration: Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration } class CreditConfiguration < Lithic::Internal::Type::BaseModel @@ -97,6 +98,12 @@ module Lithic attr_accessor tier: String? + attr_reader auto_collection_configuration: Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration? + + def auto_collection_configuration=: ( + Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration + ) -> Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration + def initialize: ( charged_off_reason: Lithic::Models::FinancialAccount::CreditConfiguration::charged_off_reason?, credit_limit: Integer?, @@ -104,7 +111,8 @@ module Lithic external_bank_account_token: String?, financial_account_state: Lithic::Models::FinancialAccount::CreditConfiguration::financial_account_state?, is_spend_blocked: bool, - tier: String? + tier: String?, + ?auto_collection_configuration: Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration ) -> void def to_hash: -> { @@ -114,7 +122,8 @@ module Lithic external_bank_account_token: String?, financial_account_state: Lithic::Models::FinancialAccount::CreditConfiguration::financial_account_state?, is_spend_blocked: bool, - tier: String? + tier: String?, + auto_collection_configuration: Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration } type charged_off_reason = :DELINQUENT | :FRAUD @@ -141,6 +150,16 @@ module Lithic def self?.values: -> ::Array[Lithic::Models::FinancialAccount::CreditConfiguration::financial_account_state] end + + type auto_collection_configuration = { auto_collection_enabled: bool } + + class AutoCollectionConfiguration < Lithic::Internal::Type::BaseModel + attr_accessor auto_collection_enabled: bool + + def initialize: (auto_collection_enabled: bool) -> void + + def to_hash: -> { auto_collection_enabled: bool } + end end type status = :OPEN | :CLOSED | :SUSPENDED | :PENDING diff --git a/sig/lithic/models/financial_accounts/credit_configuration_update_params.rbs b/sig/lithic/models/financial_accounts/credit_configuration_update_params.rbs index e8593b5f..7af86f1e 100644 --- a/sig/lithic/models/financial_accounts/credit_configuration_update_params.rbs +++ b/sig/lithic/models/financial_accounts/credit_configuration_update_params.rbs @@ -3,6 +3,7 @@ module Lithic module FinancialAccounts type credit_configuration_update_params = { + auto_collection_configuration: Lithic::FinancialAccounts::CreditConfigurationUpdateParams::AutoCollectionConfiguration, credit_limit: Integer, credit_product_token: String, external_bank_account_token: String, @@ -14,6 +15,12 @@ module Lithic extend Lithic::Internal::Type::RequestParameters::Converter include Lithic::Internal::Type::RequestParameters + attr_reader auto_collection_configuration: Lithic::FinancialAccounts::CreditConfigurationUpdateParams::AutoCollectionConfiguration? + + def auto_collection_configuration=: ( + Lithic::FinancialAccounts::CreditConfigurationUpdateParams::AutoCollectionConfiguration + ) -> Lithic::FinancialAccounts::CreditConfigurationUpdateParams::AutoCollectionConfiguration + attr_reader credit_limit: Integer? def credit_limit=: (Integer) -> Integer @@ -31,6 +38,7 @@ module Lithic def tier=: (String) -> String def initialize: ( + ?auto_collection_configuration: Lithic::FinancialAccounts::CreditConfigurationUpdateParams::AutoCollectionConfiguration, ?credit_limit: Integer, ?credit_product_token: String, ?external_bank_account_token: String, @@ -39,12 +47,25 @@ module Lithic ) -> void def to_hash: -> { + auto_collection_configuration: Lithic::FinancialAccounts::CreditConfigurationUpdateParams::AutoCollectionConfiguration, credit_limit: Integer, credit_product_token: String, external_bank_account_token: String, tier: String, request_options: Lithic::RequestOptions } + + type auto_collection_configuration = { auto_collection_enabled: bool } + + class AutoCollectionConfiguration < Lithic::Internal::Type::BaseModel + attr_reader auto_collection_enabled: bool? + + def auto_collection_enabled=: (bool) -> bool + + def initialize: (?auto_collection_enabled: bool) -> void + + def to_hash: -> { auto_collection_enabled: bool } + end end end end diff --git a/sig/lithic/models/financial_accounts/financial_account_credit_config.rbs b/sig/lithic/models/financial_accounts/financial_account_credit_config.rbs index 3b56357a..cbab78ba 100644 --- a/sig/lithic/models/financial_accounts/financial_account_credit_config.rbs +++ b/sig/lithic/models/financial_accounts/financial_account_credit_config.rbs @@ -6,6 +6,7 @@ module Lithic type financial_account_credit_config = { account_token: String, + auto_collection_configuration: Lithic::FinancialAccounts::FinancialAccountCreditConfig::AutoCollectionConfiguration, charged_off_reason: Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::charged_off_reason?, credit_limit: Integer?, credit_product_token: String?, @@ -18,6 +19,8 @@ module Lithic class FinancialAccountCreditConfig < Lithic::Internal::Type::BaseModel attr_accessor account_token: String + attr_accessor auto_collection_configuration: Lithic::FinancialAccounts::FinancialAccountCreditConfig::AutoCollectionConfiguration + attr_accessor charged_off_reason: Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::charged_off_reason? attr_accessor credit_limit: Integer? @@ -34,6 +37,7 @@ module Lithic def initialize: ( account_token: String, + auto_collection_configuration: Lithic::FinancialAccounts::FinancialAccountCreditConfig::AutoCollectionConfiguration, charged_off_reason: Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::charged_off_reason?, credit_limit: Integer?, credit_product_token: String?, @@ -45,6 +49,7 @@ module Lithic def to_hash: -> { account_token: String, + auto_collection_configuration: Lithic::FinancialAccounts::FinancialAccountCreditConfig::AutoCollectionConfiguration, charged_off_reason: Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::charged_off_reason?, credit_limit: Integer?, credit_product_token: String?, @@ -54,6 +59,16 @@ module Lithic tier: String? } + type auto_collection_configuration = { auto_collection_enabled: bool } + + class AutoCollectionConfiguration < Lithic::Internal::Type::BaseModel + attr_accessor auto_collection_enabled: bool + + def initialize: (auto_collection_enabled: bool) -> void + + def to_hash: -> { auto_collection_enabled: bool } + end + type charged_off_reason = :DELINQUENT | :FRAUD module ChargedOffReason diff --git a/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs b/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs index 85369381..8c9edddd 100644 --- a/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +++ b/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs @@ -103,6 +103,11 @@ module Lithic type category = :ACH | :BALANCE_OR_FUNDING + | :FEE + | :REWARD + | :ADJUSTMENT + | :DERECOGNITION + | :DISPUTE | :CARD | :EXTERNAL_ACH | :EXTERNAL_CHECK @@ -120,6 +125,11 @@ module Lithic ACH: :ACH BALANCE_OR_FUNDING: :BALANCE_OR_FUNDING + FEE: :FEE + REWARD: :REWARD + ADJUSTMENT: :ADJUSTMENT + DERECOGNITION: :DERECOGNITION + DISPUTE: :DISPUTE CARD: :CARD EXTERNAL_ACH: :EXTERNAL_ACH EXTERNAL_CHECK: :EXTERNAL_CHECK @@ -140,12 +150,14 @@ module Lithic | :ACH_ORIGINATION_INITIATED | :ACH_ORIGINATION_PROCESSED | :ACH_ORIGINATION_RELEASED + | :ACH_ORIGINATION_REJECTED | :ACH_ORIGINATION_REVIEWED | :ACH_ORIGINATION_SETTLED | :ACH_RECEIPT_PROCESSED | :ACH_RECEIPT_SETTLED | :ACH_RETURN_INITIATED | :ACH_RETURN_PROCESSED + | :ACH_RETURN_REJECTED | :ACH_RETURN_SETTLED | :AUTHORIZATION | :AUTHORIZATION_ADVICE @@ -212,12 +224,14 @@ module Lithic ACH_ORIGINATION_INITIATED: :ACH_ORIGINATION_INITIATED ACH_ORIGINATION_PROCESSED: :ACH_ORIGINATION_PROCESSED ACH_ORIGINATION_RELEASED: :ACH_ORIGINATION_RELEASED + ACH_ORIGINATION_REJECTED: :ACH_ORIGINATION_REJECTED ACH_ORIGINATION_REVIEWED: :ACH_ORIGINATION_REVIEWED ACH_ORIGINATION_SETTLED: :ACH_ORIGINATION_SETTLED ACH_RECEIPT_PROCESSED: :ACH_RECEIPT_PROCESSED ACH_RECEIPT_SETTLED: :ACH_RECEIPT_SETTLED ACH_RETURN_INITIATED: :ACH_RETURN_INITIATED ACH_RETURN_PROCESSED: :ACH_RETURN_PROCESSED + ACH_RETURN_REJECTED: :ACH_RETURN_REJECTED ACH_RETURN_SETTLED: :ACH_RETURN_SETTLED AUTHORIZATION: :AUTHORIZATION AUTHORIZATION_ADVICE: :AUTHORIZATION_ADVICE diff --git a/sig/lithic/models/financial_transaction.rbs b/sig/lithic/models/financial_transaction.rbs index 03865590..de3bb2d7 100644 --- a/sig/lithic/models/financial_transaction.rbs +++ b/sig/lithic/models/financial_transaction.rbs @@ -145,12 +145,14 @@ module Lithic | :ACH_ORIGINATION_INITIATED | :ACH_ORIGINATION_PROCESSED | :ACH_ORIGINATION_RELEASED + | :ACH_ORIGINATION_REJECTED | :ACH_ORIGINATION_REVIEWED | :ACH_ORIGINATION_SETTLED | :ACH_RECEIPT_PROCESSED | :ACH_RECEIPT_SETTLED | :ACH_RETURN_INITIATED | :ACH_RETURN_PROCESSED + | :ACH_RETURN_REJECTED | :ACH_RETURN_SETTLED | :AUTHORIZATION | :AUTHORIZATION_ADVICE @@ -217,12 +219,14 @@ module Lithic ACH_ORIGINATION_INITIATED: :ACH_ORIGINATION_INITIATED ACH_ORIGINATION_PROCESSED: :ACH_ORIGINATION_PROCESSED ACH_ORIGINATION_RELEASED: :ACH_ORIGINATION_RELEASED + ACH_ORIGINATION_REJECTED: :ACH_ORIGINATION_REJECTED ACH_ORIGINATION_REVIEWED: :ACH_ORIGINATION_REVIEWED ACH_ORIGINATION_SETTLED: :ACH_ORIGINATION_SETTLED ACH_RECEIPT_PROCESSED: :ACH_RECEIPT_PROCESSED ACH_RECEIPT_SETTLED: :ACH_RECEIPT_SETTLED ACH_RETURN_INITIATED: :ACH_RETURN_INITIATED ACH_RETURN_PROCESSED: :ACH_RETURN_PROCESSED + ACH_RETURN_REJECTED: :ACH_RETURN_REJECTED ACH_RETURN_SETTLED: :ACH_RETURN_SETTLED AUTHORIZATION: :AUTHORIZATION AUTHORIZATION_ADVICE: :AUTHORIZATION_ADVICE diff --git a/sig/lithic/models/tokenization.rbs b/sig/lithic/models/tokenization.rbs index da5d827e..f2cb6fa7 100644 --- a/sig/lithic/models/tokenization.rbs +++ b/sig/lithic/models/tokenization.rbs @@ -6,6 +6,7 @@ module Lithic account_token: String, card_token: String, created_at: Time, + device_id: String?, dpan: String?, status: Lithic::Models::Tokenization::status, token_requestor_name: Lithic::Models::Tokenization::token_requestor_name, @@ -26,6 +27,8 @@ module Lithic attr_accessor created_at: Time + attr_accessor device_id: String? + attr_accessor dpan: String? attr_accessor status: Lithic::Models::Tokenization::status @@ -55,6 +58,7 @@ module Lithic account_token: String, card_token: String, created_at: Time, + device_id: String?, dpan: String?, status: Lithic::Models::Tokenization::status, token_requestor_name: Lithic::Models::Tokenization::token_requestor_name, @@ -71,6 +75,7 @@ module Lithic account_token: String, card_token: String, created_at: Time, + device_id: String?, dpan: String?, status: Lithic::Models::Tokenization::status, token_requestor_name: Lithic::Models::Tokenization::token_requestor_name, diff --git a/sig/lithic/models/transaction.rbs b/sig/lithic/models/transaction.rbs index fa884cd2..6fc6901f 100644 --- a/sig/lithic/models/transaction.rbs +++ b/sig/lithic/models/transaction.rbs @@ -14,6 +14,7 @@ module Lithic card_token: String, cardholder_authentication: Lithic::Transaction::CardholderAuthentication?, created: Time, + financial_account_token: String?, merchant: Lithic::Transaction::Merchant, merchant_amount: Integer?, merchant_authorization_amount: Integer?, @@ -54,6 +55,8 @@ module Lithic attr_accessor created: Time + attr_accessor financial_account_token: String? + attr_accessor merchant: Lithic::Transaction::Merchant attr_accessor merchant_amount: Integer? @@ -97,6 +100,7 @@ module Lithic card_token: String, cardholder_authentication: Lithic::Transaction::CardholderAuthentication?, created: Time, + financial_account_token: String?, merchant: Lithic::Transaction::Merchant, merchant_amount: Integer?, merchant_authorization_amount: Integer?, @@ -125,6 +129,7 @@ module Lithic card_token: String, cardholder_authentication: Lithic::Transaction::CardholderAuthentication?, created: Time, + financial_account_token: String?, merchant: Lithic::Transaction::Merchant, merchant_amount: Integer?, merchant_authorization_amount: Integer?, @@ -766,6 +771,7 @@ module Lithic | :DECLINED | :FRAUD_ADVICE | :IGNORED_TTL_EXPIRY + | :SUSPECTED_FRAUD | :INACTIVE_ACCOUNT | :INCORRECT_PIN | :INVALID_CARD_DETAILS @@ -794,6 +800,7 @@ module Lithic DECLINED: :DECLINED FRAUD_ADVICE: :FRAUD_ADVICE IGNORED_TTL_EXPIRY: :IGNORED_TTL_EXPIRY + SUSPECTED_FRAUD: :SUSPECTED_FRAUD INACTIVE_ACCOUNT: :INACTIVE_ACCOUNT INCORRECT_PIN: :INCORRECT_PIN INVALID_CARD_DETAILS: :INVALID_CARD_DETAILS @@ -1074,6 +1081,7 @@ module Lithic | :REVERSAL_UNMATCHED | :SECURITY_VIOLATION | :SINGLE_USE_CARD_REATTEMPTED + | :SUSPECTED_FRAUD | :TRANSACTION_INVALID | :TRANSACTION_NOT_PERMITTED_TO_ACQUIRER_OR_TERMINAL | :TRANSACTION_NOT_PERMITTED_TO_ISSUER_OR_CARDHOLDER @@ -1131,6 +1139,7 @@ module Lithic REVERSAL_UNMATCHED: :REVERSAL_UNMATCHED SECURITY_VIOLATION: :SECURITY_VIOLATION SINGLE_USE_CARD_REATTEMPTED: :SINGLE_USE_CARD_REATTEMPTED + SUSPECTED_FRAUD: :SUSPECTED_FRAUD TRANSACTION_INVALID: :TRANSACTION_INVALID TRANSACTION_NOT_PERMITTED_TO_ACQUIRER_OR_TERMINAL: :TRANSACTION_NOT_PERMITTED_TO_ACQUIRER_OR_TERMINAL TRANSACTION_NOT_PERMITTED_TO_ISSUER_OR_CARDHOLDER: :TRANSACTION_NOT_PERMITTED_TO_ISSUER_OR_CARDHOLDER @@ -1287,6 +1296,7 @@ module Lithic | :DECLINED | :FRAUD_ADVICE | :IGNORED_TTL_EXPIRY + | :SUSPECTED_FRAUD | :INACTIVE_ACCOUNT | :INCORRECT_PIN | :INVALID_CARD_DETAILS @@ -1315,6 +1325,7 @@ module Lithic DECLINED: :DECLINED FRAUD_ADVICE: :FRAUD_ADVICE IGNORED_TTL_EXPIRY: :IGNORED_TTL_EXPIRY + SUSPECTED_FRAUD: :SUSPECTED_FRAUD INACTIVE_ACCOUNT: :INACTIVE_ACCOUNT INCORRECT_PIN: :INCORRECT_PIN INVALID_CARD_DETAILS: :INVALID_CARD_DETAILS @@ -1412,6 +1423,7 @@ module Lithic | :REVERSAL_UNMATCHED | :SECURITY_VIOLATION | :SINGLE_USE_CARD_REATTEMPTED + | :SUSPECTED_FRAUD | :TRANSACTION_INVALID | :TRANSACTION_NOT_PERMITTED_TO_ACQUIRER_OR_TERMINAL | :TRANSACTION_NOT_PERMITTED_TO_ISSUER_OR_CARDHOLDER @@ -1469,6 +1481,7 @@ module Lithic REVERSAL_UNMATCHED: :REVERSAL_UNMATCHED SECURITY_VIOLATION: :SECURITY_VIOLATION SINGLE_USE_CARD_REATTEMPTED: :SINGLE_USE_CARD_REATTEMPTED + SUSPECTED_FRAUD: :SUSPECTED_FRAUD TRANSACTION_INVALID: :TRANSACTION_INVALID TRANSACTION_NOT_PERMITTED_TO_ACQUIRER_OR_TERMINAL: :TRANSACTION_NOT_PERMITTED_TO_ACQUIRER_OR_TERMINAL TRANSACTION_NOT_PERMITTED_TO_ISSUER_OR_CARDHOLDER: :TRANSACTION_NOT_PERMITTED_TO_ISSUER_OR_CARDHOLDER diff --git a/sig/lithic/models/transfer.rbs b/sig/lithic/models/transfer.rbs index 123f9d93..c27a68fb 100644 --- a/sig/lithic/models/transfer.rbs +++ b/sig/lithic/models/transfer.rbs @@ -186,12 +186,14 @@ module Lithic | :ACH_ORIGINATION_INITIATED | :ACH_ORIGINATION_PROCESSED | :ACH_ORIGINATION_RELEASED + | :ACH_ORIGINATION_REJECTED | :ACH_ORIGINATION_REVIEWED | :ACH_ORIGINATION_SETTLED | :ACH_RECEIPT_PROCESSED | :ACH_RECEIPT_SETTLED | :ACH_RETURN_INITIATED | :ACH_RETURN_PROCESSED + | :ACH_RETURN_REJECTED | :ACH_RETURN_SETTLED | :AUTHORIZATION | :AUTHORIZATION_ADVICE @@ -258,12 +260,14 @@ module Lithic ACH_ORIGINATION_INITIATED: :ACH_ORIGINATION_INITIATED ACH_ORIGINATION_PROCESSED: :ACH_ORIGINATION_PROCESSED ACH_ORIGINATION_RELEASED: :ACH_ORIGINATION_RELEASED + ACH_ORIGINATION_REJECTED: :ACH_ORIGINATION_REJECTED ACH_ORIGINATION_REVIEWED: :ACH_ORIGINATION_REVIEWED ACH_ORIGINATION_SETTLED: :ACH_ORIGINATION_SETTLED ACH_RECEIPT_PROCESSED: :ACH_RECEIPT_PROCESSED ACH_RECEIPT_SETTLED: :ACH_RECEIPT_SETTLED ACH_RETURN_INITIATED: :ACH_RETURN_INITIATED ACH_RETURN_PROCESSED: :ACH_RETURN_PROCESSED + ACH_RETURN_REJECTED: :ACH_RETURN_REJECTED ACH_RETURN_SETTLED: :ACH_RETURN_SETTLED AUTHORIZATION: :AUTHORIZATION AUTHORIZATION_ADVICE: :AUTHORIZATION_ADVICE diff --git a/sig/lithic/resources/auth_rules/v2.rbs b/sig/lithic/resources/auth_rules/v2.rbs index 2eaa78d7..84424559 100644 --- a/sig/lithic/resources/auth_rules/v2.rbs +++ b/sig/lithic/resources/auth_rules/v2.rbs @@ -24,6 +24,8 @@ module Lithic def update: ( String auth_rule_token, + ?account_tokens: ::Array[String], + ?business_account_tokens: ::Array[String], ?name: String?, ?state: Lithic::Models::AuthRules::V2UpdateParams::state, ?card_tokens: ::Array[String], diff --git a/sig/lithic/resources/financial_accounts/credit_configuration.rbs b/sig/lithic/resources/financial_accounts/credit_configuration.rbs index 29c0ad96..1de579e6 100644 --- a/sig/lithic/resources/financial_accounts/credit_configuration.rbs +++ b/sig/lithic/resources/financial_accounts/credit_configuration.rbs @@ -9,6 +9,7 @@ module Lithic def update: ( String financial_account_token, + ?auto_collection_configuration: Lithic::FinancialAccounts::CreditConfigurationUpdateParams::AutoCollectionConfiguration, ?credit_limit: Integer, ?credit_product_token: String, ?external_bank_account_token: String, diff --git a/test/lithic/resources/book_transfers_test.rb b/test/lithic/resources/book_transfers_test.rb index 4aa95939..1969710e 100644 --- a/test/lithic/resources/book_transfers_test.rb +++ b/test/lithic/resources/book_transfers_test.rb @@ -11,7 +11,7 @@ def test_create_required_params from_financial_account_token: "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", subtype: "subtype", to_financial_account_token: "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", - type: :ATM_WITHDRAWAL + type: :ATM_BALANCE_INQUIRY ) assert_pattern do diff --git a/test/lithic/resources/financial_accounts/credit_configuration_test.rb b/test/lithic/resources/financial_accounts/credit_configuration_test.rb index 5d71afc9..76f113cb 100644 --- a/test/lithic/resources/financial_accounts/credit_configuration_test.rb +++ b/test/lithic/resources/financial_accounts/credit_configuration_test.rb @@ -14,6 +14,7 @@ def test_retrieve assert_pattern do response => { account_token: String, + auto_collection_configuration: Lithic::FinancialAccounts::FinancialAccountCreditConfig::AutoCollectionConfiguration, charged_off_reason: Lithic::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason | nil, credit_limit: Integer | nil, credit_product_token: String | nil, @@ -35,6 +36,7 @@ def test_update assert_pattern do response => { account_token: String, + auto_collection_configuration: Lithic::FinancialAccounts::FinancialAccountCreditConfig::AutoCollectionConfiguration, charged_off_reason: Lithic::FinancialAccounts::FinancialAccountCreditConfig::ChargedOffReason | nil, credit_limit: Integer | nil, credit_product_token: String | nil, diff --git a/test/lithic/resources/tokenizations_test.rb b/test/lithic/resources/tokenizations_test.rb index 2eca8c98..87cf16f9 100644 --- a/test/lithic/resources/tokenizations_test.rb +++ b/test/lithic/resources/tokenizations_test.rb @@ -16,6 +16,7 @@ def test_retrieve account_token: String, card_token: String, created_at: Time, + device_id: String | nil, dpan: String | nil, status: Lithic::Tokenization::Status, token_requestor_name: Lithic::Tokenization::TokenRequestorName, @@ -49,6 +50,7 @@ def test_list account_token: String, card_token: String, created_at: Time, + device_id: String | nil, dpan: String | nil, status: Lithic::Tokenization::Status, token_requestor_name: Lithic::Tokenization::TokenRequestorName, diff --git a/test/lithic/resources/transactions_test.rb b/test/lithic/resources/transactions_test.rb index c1b9e788..f4b6b5a3 100644 --- a/test/lithic/resources/transactions_test.rb +++ b/test/lithic/resources/transactions_test.rb @@ -24,6 +24,7 @@ def test_retrieve card_token: String, cardholder_authentication: Lithic::Transaction::CardholderAuthentication | nil, created: Time, + financial_account_token: String | nil, merchant: Lithic::Transaction::Merchant, merchant_amount: Integer | nil, merchant_authorization_amount: Integer | nil, @@ -69,6 +70,7 @@ def test_list card_token: String, cardholder_authentication: Lithic::Transaction::CardholderAuthentication | nil, created: Time, + financial_account_token: String | nil, merchant: Lithic::Transaction::Merchant, merchant_amount: Integer | nil, merchant_authorization_amount: Integer | nil,