Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.19.0"
".": "0.20.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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-81febc26f7987ef8f74f2038dddd4799a1e77b2c64d2fe36c2c9f2eb5079476b.yml
openapi_spec_hash: 91e4b19977ca68b988862e967be57d26
config_hash: 337a99d8cc30006358b7bc2531401669
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GIT
PATH
remote: .
specs:
lithic (0.19.0)
lithic (0.20.0)
cgi
connection_pool

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application
<!-- x-release-please-start-version -->

```ruby
gem "lithic", "~> 0.19.0"
gem "lithic", "~> 0.20.0"
```

<!-- x-release-please-end -->
Expand Down
25 changes: 24 additions & 1 deletion lib/lithic/models/auth_rules/velocity_limit_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
#
Expand All @@ -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
Expand Down
14 changes: 13 additions & 1 deletion lib/lithic/models/financial_account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/lithic/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Lithic
VERSION = "0.19.0"
VERSION = "0.20.0"
end
30 changes: 30 additions & 0 deletions rbi/lithic/models/auth_rules/velocity_limit_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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)
}
)
Expand Down
10 changes: 10 additions & 0 deletions rbi/lithic/models/financial_account.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand All @@ -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
Expand All @@ -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)
}
)
Expand Down
10 changes: 10 additions & 0 deletions sig/lithic/models/auth_rules/velocity_limit_params.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -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?
}

Expand All @@ -23,13 +25,19 @@ 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: (
period: Lithic::Models::AuthRules::velocity_limit_period,
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

Expand All @@ -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?
}

Expand Down
5 changes: 5 additions & 0 deletions sig/lithic/models/financial_account.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ module Lithic
updated: Time,
user_defined_status: String?,
account_number: String?,
blockchain_addresses: ::Hash[Symbol, String]?,
routing_number: String?
}

Expand Down Expand Up @@ -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: (
Expand All @@ -57,6 +60,7 @@ module Lithic
updated: Time,
user_defined_status: String?,
?account_number: String?,
?blockchain_addresses: ::Hash[Symbol, String]?,
?routing_number: String?
) -> void

Expand All @@ -73,6 +77,7 @@ module Lithic
updated: Time,
user_defined_status: String?,
account_number: String?,
blockchain_addresses: ::Hash[Symbol, String]?,
routing_number: String?
}

Expand Down
5 changes: 5 additions & 0 deletions test/lithic/resources/financial_accounts_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down