diff --git a/.release-please-manifest.json b/.release-please-manifest.json index d661066e..d7efce71 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.18.1" + ".": "0.18.2" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 189b2dd2..f99c3ec7 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-9e397c65ffb81e2928b8ecf979769a79131ae6058b6fb373a5e930dc8a168732.yml -openapi_spec_hash: 93aea3855d2d1c390107d223762aa818 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-1514911f233cb8bf0d6752c45bfa53a61b8f9b8ff215a4ea94a95f9505911000.yml +openapi_spec_hash: 9820a9c9a4ff778c627041eb53fd4ee5 config_hash: 5bb913c05ebeb301ec925b16e75bb251 diff --git a/CHANGELOG.md b/CHANGELOG.md index 3430c766..78f1bb69 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.18.2 (2026-07-09) + +Full Changelog: [v0.18.1...v0.18.2](https://github.com/lithic-com/lithic-ruby/compare/v0.18.1...v0.18.2) + +### Documentation + +* **api:** clarify simulate_clearing supports multiple calls in transactions ([7a7e783](https://github.com/lithic-com/lithic-ruby/commit/7a7e78338a405f4edb463df0de5f64cf157c0334)) + ## 0.18.1 (2026-06-29) Full Changelog: [v0.18.0...v0.18.1](https://github.com/lithic-com/lithic-ruby/compare/v0.18.0...v0.18.1) diff --git a/Gemfile.lock b/Gemfile.lock index a7cb7ed6..9722cad7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - lithic (0.18.1) + lithic (0.18.2) cgi connection_pool diff --git a/README.md b/README.md index 6589f4f8..713f92de 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.18.1" +gem "lithic", "~> 0.18.2" ``` diff --git a/lib/lithic/models/transaction_simulate_clearing_params.rb b/lib/lithic/models/transaction_simulate_clearing_params.rb index 446d2156..88a9193f 100644 --- a/lib/lithic/models/transaction_simulate_clearing_params.rb +++ b/lib/lithic/models/transaction_simulate_clearing_params.rb @@ -20,9 +20,10 @@ class TransactionSimulateClearingParams < Lithic::Internal::Type::BaseModel # example, entering 100 in this field will result in a -100 amount in the # transaction, if the original authorization is a credit authorization. # - # If `amount` is not set, the full amount of the transaction will be cleared. - # Transactions that have already cleared, either partially or fully, cannot be - # cleared again using this endpoint. + # If `amount` is not set, the full amount of the transaction will be cleared. This + # endpoint may be called multiple times against the same authorization to simulate + # a multiple-completion scenario, with each call creating a separate clearing + # event. # # @return [Integer, nil] optional :amount, Integer diff --git a/lib/lithic/resources/transactions.rb b/lib/lithic/resources/transactions.rb index e43cb0c2..c0fb3856 100644 --- a/lib/lithic/resources/transactions.rb +++ b/lib/lithic/resources/transactions.rb @@ -210,9 +210,10 @@ def simulate_authorization_advice(params) # Clears an existing authorization, either debit or credit. After this event, the # transaction transitions from `PENDING` to `SETTLED` status. # - # If `amount` is not set, the full amount of the transaction will be cleared. - # Transactions that have already cleared, either partially or fully, cannot be - # cleared again using this endpoint. + # If `amount` is not set, the full amount of the transaction will be cleared. This + # endpoint may be called multiple times against the same authorization to simulate + # a multiple-completion scenario, with each call creating a separate clearing + # event. # # @overload simulate_clearing(token:, amount: nil, request_options: {}) # diff --git a/lib/lithic/version.rb b/lib/lithic/version.rb index ce2aa0c5..e9edaeec 100644 --- a/lib/lithic/version.rb +++ b/lib/lithic/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Lithic - VERSION = "0.18.1" + VERSION = "0.18.2" end diff --git a/rbi/lithic/models/transaction_simulate_clearing_params.rbi b/rbi/lithic/models/transaction_simulate_clearing_params.rbi index 691a6ed4..61d16ea4 100644 --- a/rbi/lithic/models/transaction_simulate_clearing_params.rbi +++ b/rbi/lithic/models/transaction_simulate_clearing_params.rbi @@ -24,9 +24,10 @@ module Lithic # example, entering 100 in this field will result in a -100 amount in the # transaction, if the original authorization is a credit authorization. # - # If `amount` is not set, the full amount of the transaction will be cleared. - # Transactions that have already cleared, either partially or fully, cannot be - # cleared again using this endpoint. + # If `amount` is not set, the full amount of the transaction will be cleared. This + # endpoint may be called multiple times against the same authorization to simulate + # a multiple-completion scenario, with each call creating a separate clearing + # event. sig { returns(T.nilable(Integer)) } attr_reader :amount @@ -49,9 +50,10 @@ module Lithic # example, entering 100 in this field will result in a -100 amount in the # transaction, if the original authorization is a credit authorization. # - # If `amount` is not set, the full amount of the transaction will be cleared. - # Transactions that have already cleared, either partially or fully, cannot be - # cleared again using this endpoint. + # If `amount` is not set, the full amount of the transaction will be cleared. This + # endpoint may be called multiple times against the same authorization to simulate + # a multiple-completion scenario, with each call creating a separate clearing + # event. amount: nil, request_options: {} ) diff --git a/rbi/lithic/resources/transactions.rbi b/rbi/lithic/resources/transactions.rbi index 958a1edf..1838b80c 100644 --- a/rbi/lithic/resources/transactions.rbi +++ b/rbi/lithic/resources/transactions.rbi @@ -208,9 +208,10 @@ module Lithic # Clears an existing authorization, either debit or credit. After this event, the # transaction transitions from `PENDING` to `SETTLED` status. # - # If `amount` is not set, the full amount of the transaction will be cleared. - # Transactions that have already cleared, either partially or fully, cannot be - # cleared again using this endpoint. + # If `amount` is not set, the full amount of the transaction will be cleared. This + # endpoint may be called multiple times against the same authorization to simulate + # a multiple-completion scenario, with each call creating a separate clearing + # event. sig do params( token: String, @@ -227,9 +228,10 @@ module Lithic # example, entering 100 in this field will result in a -100 amount in the # transaction, if the original authorization is a credit authorization. # - # If `amount` is not set, the full amount of the transaction will be cleared. - # Transactions that have already cleared, either partially or fully, cannot be - # cleared again using this endpoint. + # If `amount` is not set, the full amount of the transaction will be cleared. This + # endpoint may be called multiple times against the same authorization to simulate + # a multiple-completion scenario, with each call creating a separate clearing + # event. amount: nil, request_options: {} )