From 4e4dfb78069500939027ed67d445d63160cd9e1c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 3 Aug 2026 21:54:35 +0000 Subject: [PATCH 1/3] feat(api): add limit_cash_amount and limit_cash_count to velocity limit params --- .stats.yml | 4 +-- .../auth_rules/velocity_limit_params.rb | 25 +++++++++++++++- .../auth_rules/velocity_limit_params.rbi | 30 +++++++++++++++++++ .../auth_rules/velocity_limit_params.rbs | 10 +++++++ 4 files changed, 66 insertions(+), 3 deletions(-) diff --git a/.stats.yml b/.stats.yml index a5715819..51c96b22 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 214 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-59c09c7355b21b663e001d2ee1086ebd0a70d9b5433823282bca296eedff9eb0.yml -openapi_spec_hash: d9c3b932c810809abc6e973d662ad376 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-1d6c7b672aa49dfe0fe5175965307f63a0ed42c13697b2f9f3b9275f32331937.yml +openapi_spec_hash: 06e73960c7506484c589d718fa1ddad8 config_hash: 337a99d8cc30006358b7bc2531401669 diff --git a/lib/lithic/models/auth_rules/velocity_limit_params.rb b/lib/lithic/models/auth_rules/velocity_limit_params.rb index fab01fca..27cb0d30 100644 --- a/lib/lithic/models/auth_rules/velocity_limit_params.rb +++ b/lib/lithic/models/auth_rules/velocity_limit_params.rb @@ -29,6 +29,25 @@ class VelocityLimitParams < Lithic::Internal::Type::BaseModel # @return [Integer, nil] optional :limit_amount, Integer, nil?: true + # @!attribute limit_cash_amount + # The maximum amount of cash spend velocity allowed in the period in minor units + # (the smallest unit of a currency, e.g. cents for USD). Cash spend covers ATM + # withdrawals, cash disbursements, and purchases with cashback. Transactions + # exceeding this limit will be declined. + # + # @return [Integer, nil] + optional :limit_cash_amount, Integer, nil?: true + + # @!attribute limit_cash_count + # The number of cash spend velocity impacting transactions may not exceed this + # limit in the period. Transactions exceeding this limit will be declined. A cash + # velocity impacting transaction is an ATM withdrawal, cash disbursement, or + # purchase with cashback that has been authorized, and optionally settled, or a + # force post (a transaction that settled without prior authorization). + # + # @return [Integer, nil] + optional :limit_cash_count, Integer, nil?: true + # @!attribute limit_count # The number of spend velocity impacting transactions may not exceed this limit in # the period. Transactions exceeding this limit will be declined. A spend velocity @@ -39,7 +58,7 @@ class VelocityLimitParams < Lithic::Internal::Type::BaseModel # @return [Integer, nil] optional :limit_count, Integer, nil?: true - # @!method initialize(period:, scope:, filters: nil, limit_amount: nil, limit_count: nil) + # @!method initialize(period:, scope:, filters: nil, limit_amount: nil, limit_cash_amount: nil, limit_cash_count: nil, limit_count: nil) # Some parameter documentations has been truncated, see # {Lithic::Models::AuthRules::VelocityLimitParams} for more details. # @@ -51,6 +70,10 @@ class VelocityLimitParams < Lithic::Internal::Type::BaseModel # # @param limit_amount [Integer, nil] The maximum amount of spend velocity allowed in the period in minor units (the s # + # @param limit_cash_amount [Integer, nil] The maximum amount of cash spend velocity allowed in the period in minor units ( + # + # @param limit_cash_count [Integer, nil] The number of cash spend velocity impacting transactions may not exceed this lim + # # @param limit_count [Integer, nil] The number of spend velocity impacting transactions may not exceed this limit in # The scope the velocity is calculated for diff --git a/rbi/lithic/models/auth_rules/velocity_limit_params.rbi b/rbi/lithic/models/auth_rules/velocity_limit_params.rbi index d050b654..c25e5ae5 100644 --- a/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +++ b/rbi/lithic/models/auth_rules/velocity_limit_params.rbi @@ -44,6 +44,21 @@ module Lithic sig { returns(T.nilable(Integer)) } attr_accessor :limit_amount + # The maximum amount of cash spend velocity allowed in the period in minor units + # (the smallest unit of a currency, e.g. cents for USD). Cash spend covers ATM + # withdrawals, cash disbursements, and purchases with cashback. Transactions + # exceeding this limit will be declined. + sig { returns(T.nilable(Integer)) } + attr_accessor :limit_cash_amount + + # The number of cash spend velocity impacting transactions may not exceed this + # limit in the period. Transactions exceeding this limit will be declined. A cash + # velocity impacting transaction is an ATM withdrawal, cash disbursement, or + # purchase with cashback that has been authorized, and optionally settled, or a + # force post (a transaction that settled without prior authorization). + sig { returns(T.nilable(Integer)) } + attr_accessor :limit_cash_count + # The number of spend velocity impacting transactions may not exceed this limit in # the period. Transactions exceeding this limit will be declined. A spend velocity # impacting transaction is a transaction that has been authorized, and optionally @@ -65,6 +80,8 @@ module Lithic scope: Lithic::AuthRules::VelocityLimitParams::Scope::OrSymbol, filters: Lithic::AuthRules::VelocityLimitFilters::OrHash, limit_amount: T.nilable(Integer), + limit_cash_amount: T.nilable(Integer), + limit_cash_count: T.nilable(Integer), limit_count: T.nilable(Integer) ).returns(T.attached_class) end @@ -78,6 +95,17 @@ module Lithic # smallest unit of a currency, e.g. cents for USD). Transactions exceeding this # limit will be declined. limit_amount: nil, + # The maximum amount of cash spend velocity allowed in the period in minor units + # (the smallest unit of a currency, e.g. cents for USD). Cash spend covers ATM + # withdrawals, cash disbursements, and purchases with cashback. Transactions + # exceeding this limit will be declined. + limit_cash_amount: nil, + # The number of cash spend velocity impacting transactions may not exceed this + # limit in the period. Transactions exceeding this limit will be declined. A cash + # velocity impacting transaction is an ATM withdrawal, cash disbursement, or + # purchase with cashback that has been authorized, and optionally settled, or a + # force post (a transaction that settled without prior authorization). + limit_cash_count: nil, # The number of spend velocity impacting transactions may not exceed this limit in # the period. Transactions exceeding this limit will be declined. A spend velocity # impacting transaction is a transaction that has been authorized, and optionally @@ -101,6 +129,8 @@ module Lithic scope: Lithic::AuthRules::VelocityLimitParams::Scope::OrSymbol, filters: Lithic::AuthRules::VelocityLimitFilters, limit_amount: T.nilable(Integer), + limit_cash_amount: T.nilable(Integer), + limit_cash_count: T.nilable(Integer), limit_count: T.nilable(Integer) } ) diff --git a/sig/lithic/models/auth_rules/velocity_limit_params.rbs b/sig/lithic/models/auth_rules/velocity_limit_params.rbs index cd93489d..ce06d04f 100644 --- a/sig/lithic/models/auth_rules/velocity_limit_params.rbs +++ b/sig/lithic/models/auth_rules/velocity_limit_params.rbs @@ -7,6 +7,8 @@ module Lithic scope: Lithic::Models::AuthRules::VelocityLimitParams::scope, filters: Lithic::AuthRules::VelocityLimitFilters, limit_amount: Integer?, + limit_cash_amount: Integer?, + limit_cash_count: Integer?, limit_count: Integer? } @@ -23,6 +25,10 @@ module Lithic attr_accessor limit_amount: Integer? + attr_accessor limit_cash_amount: Integer? + + attr_accessor limit_cash_count: Integer? + attr_accessor limit_count: Integer? def initialize: ( @@ -30,6 +36,8 @@ module Lithic scope: Lithic::Models::AuthRules::VelocityLimitParams::scope, ?filters: Lithic::AuthRules::VelocityLimitFilters, ?limit_amount: Integer?, + ?limit_cash_amount: Integer?, + ?limit_cash_count: Integer?, ?limit_count: Integer? ) -> void @@ -38,6 +46,8 @@ module Lithic scope: Lithic::Models::AuthRules::VelocityLimitParams::scope, filters: Lithic::AuthRules::VelocityLimitFilters, limit_amount: Integer?, + limit_cash_amount: Integer?, + limit_cash_count: Integer?, limit_count: Integer? } From c46e82cc5bf4560c31adc1ebd6e991b55a1c3f2d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 4 Aug 2026 14:24:48 +0000 Subject: [PATCH 2/3] feat(api): add blockchain_addresses field to FinancialAccount model --- .stats.yml | 4 ++-- lib/lithic/models/financial_account.rb | 14 +++++++++++++- rbi/lithic/models/financial_account.rbi | 10 ++++++++++ sig/lithic/models/financial_account.rbs | 5 +++++ test/lithic/resources/financial_accounts_test.rb | 5 +++++ 5 files changed, 35 insertions(+), 3 deletions(-) diff --git a/.stats.yml b/.stats.yml index 51c96b22..12c884de 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 214 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-1d6c7b672aa49dfe0fe5175965307f63a0ed42c13697b2f9f3b9275f32331937.yml -openapi_spec_hash: 06e73960c7506484c589d718fa1ddad8 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-81febc26f7987ef8f74f2038dddd4799a1e77b2c64d2fe36c2c9f2eb5079476b.yml +openapi_spec_hash: 91e4b19977ca68b988862e967be57d26 config_hash: 337a99d8cc30006358b7bc2531401669 diff --git a/lib/lithic/models/financial_account.rb b/lib/lithic/models/financial_account.rb index 2cb731e3..2dc28bf5 100644 --- a/lib/lithic/models/financial_account.rb +++ b/lib/lithic/models/financial_account.rb @@ -69,12 +69,22 @@ class FinancialAccount < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :account_number, String, nil?: true + # @!attribute blockchain_addresses + # Provisioned blockchain deposit addresses for this financial account, keyed by + # the blockchain network that each address belongs to + # + # @return [Hash{Symbol=>String}, nil] + optional :blockchain_addresses, Lithic::Internal::Type::HashOf[String], nil?: true + # @!attribute routing_number # # @return [String, nil] optional :routing_number, String, nil?: true - # @!method initialize(token:, account_token:, created:, credit_configuration:, is_for_benefit_of:, nickname:, status:, substatus:, type:, updated:, user_defined_status:, account_number: nil, routing_number: nil) + # @!method initialize(token:, account_token:, created:, credit_configuration:, is_for_benefit_of:, nickname:, status:, substatus:, type:, updated:, user_defined_status:, account_number: nil, blockchain_addresses: nil, routing_number: nil) + # Some parameter documentations has been truncated, see + # {Lithic::Models::FinancialAccount} for more details. + # # @param token [String] Globally unique identifier for the account # # @param account_token [String, nil] @@ -99,6 +109,8 @@ class FinancialAccount < Lithic::Internal::Type::BaseModel # # @param account_number [String, nil] # + # @param blockchain_addresses [Hash{Symbol=>String}, nil] Provisioned blockchain deposit addresses for this financial account, keyed by th + # # @param routing_number [String, nil] # @see Lithic::Models::FinancialAccount#credit_configuration diff --git a/rbi/lithic/models/financial_account.rbi b/rbi/lithic/models/financial_account.rbi index c80f0ef0..ba66ebf0 100644 --- a/rbi/lithic/models/financial_account.rbi +++ b/rbi/lithic/models/financial_account.rbi @@ -59,6 +59,11 @@ module Lithic sig { returns(T.nilable(String)) } attr_accessor :account_number + # Provisioned blockchain deposit addresses for this financial account, keyed by + # the blockchain network that each address belongs to + sig { returns(T.nilable(T::Hash[Symbol, String])) } + attr_accessor :blockchain_addresses + sig { returns(T.nilable(String)) } attr_accessor :routing_number @@ -77,6 +82,7 @@ module Lithic updated: Time, user_defined_status: T.nilable(String), account_number: T.nilable(String), + blockchain_addresses: T.nilable(T::Hash[Symbol, String]), routing_number: T.nilable(String) ).returns(T.attached_class) end @@ -98,6 +104,9 @@ module Lithic # User-defined status for the financial account user_defined_status:, account_number: nil, + # Provisioned blockchain deposit addresses for this financial account, keyed by + # the blockchain network that each address belongs to + blockchain_addresses: nil, routing_number: nil ) end @@ -119,6 +128,7 @@ module Lithic updated: Time, user_defined_status: T.nilable(String), account_number: T.nilable(String), + blockchain_addresses: T.nilable(T::Hash[Symbol, String]), routing_number: T.nilable(String) } ) diff --git a/sig/lithic/models/financial_account.rbs b/sig/lithic/models/financial_account.rbs index 60fed134..9cb396d8 100644 --- a/sig/lithic/models/financial_account.rbs +++ b/sig/lithic/models/financial_account.rbs @@ -14,6 +14,7 @@ module Lithic updated: Time, user_defined_status: String?, account_number: String?, + blockchain_addresses: ::Hash[Symbol, String]?, routing_number: String? } @@ -42,6 +43,8 @@ module Lithic attr_accessor account_number: String? + attr_accessor blockchain_addresses: ::Hash[Symbol, String]? + attr_accessor routing_number: String? def initialize: ( @@ -57,6 +60,7 @@ module Lithic updated: Time, user_defined_status: String?, ?account_number: String?, + ?blockchain_addresses: ::Hash[Symbol, String]?, ?routing_number: String? ) -> void @@ -73,6 +77,7 @@ module Lithic updated: Time, user_defined_status: String?, account_number: String?, + blockchain_addresses: ::Hash[Symbol, String]?, routing_number: String? } diff --git a/test/lithic/resources/financial_accounts_test.rb b/test/lithic/resources/financial_accounts_test.rb index 862cf2e7..585a4580 100644 --- a/test/lithic/resources/financial_accounts_test.rb +++ b/test/lithic/resources/financial_accounts_test.rb @@ -24,6 +24,7 @@ def test_create_required_params updated: Time, user_defined_status: String | nil, account_number: String | nil, + blockchain_addresses: ^(Lithic::Internal::Type::HashOf[String]) | nil, routing_number: String | nil } end @@ -50,6 +51,7 @@ def test_retrieve updated: Time, user_defined_status: String | nil, account_number: String | nil, + blockchain_addresses: ^(Lithic::Internal::Type::HashOf[String]) | nil, routing_number: String | nil } end @@ -76,6 +78,7 @@ def test_update updated: Time, user_defined_status: String | nil, account_number: String | nil, + blockchain_addresses: ^(Lithic::Internal::Type::HashOf[String]) | nil, routing_number: String | nil } end @@ -109,6 +112,7 @@ def test_list updated: Time, user_defined_status: String | nil, account_number: String | nil, + blockchain_addresses: ^(Lithic::Internal::Type::HashOf[String]) | nil, routing_number: String | nil } end @@ -152,6 +156,7 @@ def test_update_status_required_params updated: Time, user_defined_status: String | nil, account_number: String | nil, + blockchain_addresses: ^(Lithic::Internal::Type::HashOf[String]) | nil, routing_number: String | nil } end From 320da93dc1e8329743115bb3f64212bf775379f3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 4 Aug 2026 14:25:23 +0000 Subject: [PATCH 3/3] release: 0.20.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 9 +++++++++ Gemfile.lock | 2 +- README.md | 2 +- lib/lithic/version.rb | 2 +- 5 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index e7562934..0c2ecec6 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.19.0" + ".": "0.20.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index e65cdb43..6e593b71 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 0.20.0 (2026-08-04) + +Full Changelog: [v0.19.0...v0.20.0](https://github.com/lithic-com/lithic-ruby/compare/v0.19.0...v0.20.0) + +### Features + +* **api:** add blockchain_addresses field to FinancialAccount model ([c46e82c](https://github.com/lithic-com/lithic-ruby/commit/c46e82cc5bf4560c31adc1ebd6e991b55a1c3f2d)) +* **api:** add limit_cash_amount and limit_cash_count to velocity limit params ([4e4dfb7](https://github.com/lithic-com/lithic-ruby/commit/4e4dfb78069500939027ed67d445d63160cd9e1c)) + ## 0.19.0 (2026-07-30) Full Changelog: [v0.18.1...v0.19.0](https://github.com/lithic-com/lithic-ruby/compare/v0.18.1...v0.19.0) diff --git a/Gemfile.lock b/Gemfile.lock index 310ca168..53f1b0d1 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - lithic (0.19.0) + lithic (0.20.0) cgi connection_pool diff --git a/README.md b/README.md index 18e8a51b..55ac7cac 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "lithic", "~> 0.19.0" +gem "lithic", "~> 0.20.0" ``` diff --git a/lib/lithic/version.rb b/lib/lithic/version.rb index 2a47352e..125be3f9 100644 --- a/lib/lithic/version.rb +++ b/lib/lithic/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Lithic - VERSION = "0.19.0" + VERSION = "0.20.0" end