From 1385cde62aca3c83a7525150b535decc016c8ed4 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 25 Jun 2026 20:27:14 +0000 Subject: [PATCH 1/4] docs(types): update cash_amount field description in CardAuthorization --- .stats.yml | 4 ++-- lib/lithic/models/card_authorization.rb | 13 +++++++------ rbi/lithic/models/card_authorization.rbi | 22 ++++++++++++---------- 3 files changed, 21 insertions(+), 18 deletions(-) diff --git a/.stats.yml b/.stats.yml index d092e24a..e05fda1e 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-47e9f78d22682623e313f1689f5fa7e3420575ff285a14a2f4704c49ffb6b72e.yml -openapi_spec_hash: 4797fe46d942cb32e648a79015783d01 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-d83e3ddb148bc0c81ff97bd31b82027d5b37efc110f5981103e7b9a2ae281c86.yml +openapi_spec_hash: f607b0571c4ed82a93a3df7bc9e9351b config_hash: 5bb913c05ebeb301ec925b16e75bb251 diff --git a/lib/lithic/models/card_authorization.rb b/lib/lithic/models/card_authorization.rb index b77e9ec0..d2f3855a 100644 --- a/lib/lithic/models/card_authorization.rb +++ b/lib/lithic/models/card_authorization.rb @@ -68,12 +68,13 @@ class CardAuthorization < Lithic::Internal::Type::BaseModel required :cardholder_currency, String # @!attribute cash_amount - # The portion of the transaction requested as cash back by the cardholder, and - # does not include any acquirer fees. The amount field includes the purchase - # amount, the requested cash back amount, and any acquirer fees. + # The amount of cash requested by the cardholder, in the cardholder billing + # currency's smallest unit. For purchase-with-cashback transactions this is the + # cashback portion only; for ATM transactions this is the full amount. This amount + # includes all acquirer fees. # - # If no cash back was requested, the value of this field will be 0, and the field - # will always be present. + # If no cash was requested, the value of this field will be 0, and the field will + # always be present. # # @return [Integer] required :cash_amount, Integer @@ -263,7 +264,7 @@ class CardAuthorization < Lithic::Internal::Type::BaseModel # # @param cardholder_currency [String] Deprecated, use `amounts`. 3-character alphabetic ISO 4217 code for cardholder's # - # @param cash_amount [Integer] The portion of the transaction requested as cash back by the cardholder, and doe + # @param cash_amount [Integer] The amount of cash requested by the cardholder, in the cardholder billing curren # # @param created [Time] Date and time when the transaction first occurred in UTC. # diff --git a/rbi/lithic/models/card_authorization.rbi b/rbi/lithic/models/card_authorization.rbi index f068d17e..70034e96 100644 --- a/rbi/lithic/models/card_authorization.rbi +++ b/rbi/lithic/models/card_authorization.rbi @@ -59,12 +59,13 @@ module Lithic sig { returns(String) } attr_accessor :cardholder_currency - # The portion of the transaction requested as cash back by the cardholder, and - # does not include any acquirer fees. The amount field includes the purchase - # amount, the requested cash back amount, and any acquirer fees. + # The amount of cash requested by the cardholder, in the cardholder billing + # currency's smallest unit. For purchase-with-cashback transactions this is the + # cashback portion only; for ATM transactions this is the full amount. This amount + # includes all acquirer fees. # - # If no cash back was requested, the value of this field will be 0, and the field - # will always be present. + # If no cash was requested, the value of this field will be 0, and the field will + # always be present. sig { returns(Integer) } attr_accessor :cash_amount @@ -328,12 +329,13 @@ module Lithic # Deprecated, use `amounts`. 3-character alphabetic ISO 4217 code for cardholder's # billing currency. cardholder_currency:, - # The portion of the transaction requested as cash back by the cardholder, and - # does not include any acquirer fees. The amount field includes the purchase - # amount, the requested cash back amount, and any acquirer fees. + # The amount of cash requested by the cardholder, in the cardholder billing + # currency's smallest unit. For purchase-with-cashback transactions this is the + # cashback portion only; for ATM transactions this is the full amount. This amount + # includes all acquirer fees. # - # If no cash back was requested, the value of this field will be 0, and the field - # will always be present. + # If no cash was requested, the value of this field will be 0, and the field will + # always be present. cash_amount:, # Date and time when the transaction first occurred in UTC. created:, From 0d84634d5cf4e42f4270832089df3cdbd50deed2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 29 Jun 2026 12:33:38 +0000 Subject: [PATCH 2/4] fix(types): convert CaseTransaction to union with Card/Payment variants --- .stats.yml | 4 +- lib/lithic/internal/type/union.rb | 28 +-- .../case_transaction.rb | 163 +++++++++++---- .../resources/transaction_monitoring/cases.rb | 2 +- .../case_transaction.rbi | 197 ++++++++++++++---- .../transaction_monitoring/cases.rbi | 2 +- .../case_transaction.rbs | 127 ++++++++--- .../transaction_monitoring/cases.rbs | 2 +- .../transaction_monitoring/cases_test.rb | 11 +- 9 files changed, 380 insertions(+), 156 deletions(-) diff --git a/.stats.yml b/.stats.yml index e05fda1e..189b2dd2 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-d83e3ddb148bc0c81ff97bd31b82027d5b37efc110f5981103e7b9a2ae281c86.yml -openapi_spec_hash: f607b0571c4ed82a93a3df7bc9e9351b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-9e397c65ffb81e2928b8ecf979769a79131ae6058b6fb373a5e930dc8a168732.yml +openapi_spec_hash: 93aea3855d2d1c390107d223762aa818 config_hash: 5bb913c05ebeb301ec925b16e75bb251 diff --git a/lib/lithic/internal/type/union.rb b/lib/lithic/internal/type/union.rb index 7cf59a53..21ae335f 100644 --- a/lib/lithic/internal/type/union.rb +++ b/lib/lithic/internal/type/union.rb @@ -6,28 +6,14 @@ module Type # @api private # # @example - # # `account_activity_list_response` is a `Lithic::Models::AccountActivityListResponse` - # case account_activity_list_response - # when Lithic::Models::AccountActivityListResponse::Internal - # puts(account_activity_list_response.token) - # when Lithic::BookTransferResponse - # puts(account_activity_list_response.category) - # when Lithic::Models::AccountActivityListResponse::Card - # # ... + # # `case_transaction` is a `Lithic::TransactionMonitoring::CaseTransaction` + # case case_transaction + # when Lithic::TransactionMonitoring::CaseTransaction::CardCaseTransaction + # puts(case_transaction.token) + # when Lithic::TransactionMonitoring::CaseTransaction::PaymentCaseTransaction + # puts(case_transaction.added_at) # else - # puts(account_activity_list_response) - # end - # - # @example - # case account_activity_list_response - # in {family: :INTERNAL, token: token, category: category, created: created} - # puts(token) - # in {family: :TRANSFER, token: token, category: category, created: created} - # puts(category) - # in {family: :PAYMENT, token: token, category: category, created: created} - # puts(created) - # else - # puts(account_activity_list_response) + # puts(case_transaction) # end module Union include Lithic::Internal::Type::Converter diff --git a/lib/lithic/models/transaction_monitoring/case_transaction.rb b/lib/lithic/models/transaction_monitoring/case_transaction.rb index 8df5e572..fe5f6416 100644 --- a/lib/lithic/models/transaction_monitoring/case_transaction.rb +++ b/lib/lithic/models/transaction_monitoring/case_transaction.rb @@ -3,50 +3,127 @@ module Lithic module Models module TransactionMonitoring + # A single transaction associated with a case. The `category` field identifies + # whether this is a card transaction or a payment transaction. + # # @see Lithic::Resources::TransactionMonitoring::Cases#list_transactions - class CaseTransaction < Lithic::Internal::Type::BaseModel - # @!attribute token - # Globally unique identifier for the transaction - # - # @return [String] - required :token, String - - # @!attribute account_token - # Token of the account the transaction belongs to - # - # @return [String] - required :account_token, String - - # @!attribute added_at - # Date and time at which the transaction was added to the case - # - # @return [Time] - required :added_at, Time - - # @!attribute card_token - # Token of the card the transaction was made on - # - # @return [String] - required :card_token, String - - # @!attribute transaction_created_at - # Date and time at which the transaction was created - # - # @return [Time] - required :transaction_created_at, Time - - # @!method initialize(token:, account_token:, added_at:, card_token:, transaction_created_at:) - # A single transaction associated with a case - # - # @param token [String] Globally unique identifier for the transaction - # - # @param account_token [String] Token of the account the transaction belongs to - # - # @param added_at [Time] Date and time at which the transaction was added to the case - # - # @param card_token [String] Token of the card the transaction was made on - # - # @param transaction_created_at [Time] Date and time at which the transaction was created + module CaseTransaction + extend Lithic::Internal::Type::Union + + discriminator :category + + # A card transaction associated with a case + variant -> { Lithic::TransactionMonitoring::CaseTransaction::CardCaseTransaction } + + # A payment (ACH) transaction associated with a case + variant -> { Lithic::TransactionMonitoring::CaseTransaction::PaymentCaseTransaction } + + class CardCaseTransaction < Lithic::Internal::Type::BaseModel + # @!attribute token + # Globally unique identifier for the card transaction + # + # @return [String] + required :token, String + + # @!attribute account_token + # Token of the account the transaction belongs to + # + # @return [String] + required :account_token, String + + # @!attribute added_at + # Date and time at which the transaction was added to the case + # + # @return [Time] + required :added_at, Time + + # @!attribute card_token + # Token of the card the transaction was made on + # + # @return [String] + required :card_token, String + + # @!attribute category + # + # @return [Symbol, :CARD] + required :category, const: :CARD + + # @!attribute transaction_created_at + # Date and time at which the transaction was created + # + # @return [Time] + required :transaction_created_at, Time + + # @!method initialize(token:, account_token:, added_at:, card_token:, transaction_created_at:, category: :CARD) + # A card transaction associated with a case + # + # @param token [String] Globally unique identifier for the card transaction + # + # @param account_token [String] Token of the account the transaction belongs to + # + # @param added_at [Time] Date and time at which the transaction was added to the case + # + # @param card_token [String] Token of the card the transaction was made on + # + # @param transaction_created_at [Time] Date and time at which the transaction was created + # + # @param category [Symbol, :CARD] + end + + class PaymentCaseTransaction < Lithic::Internal::Type::BaseModel + # @!attribute token + # Globally unique identifier for the payment transaction + # + # @return [String] + required :token, String + + # @!attribute added_at + # Date and time at which the transaction was added to the case + # + # @return [Time] + required :added_at, Time + + # @!attribute category + # + # @return [Symbol, :PAYMENT] + required :category, const: :PAYMENT + + # @!attribute financial_account_token + # Token of the financial account the payment belongs to + # + # @return [String] + required :financial_account_token, String + + # @!attribute transaction_created_at + # Date and time at which the transaction was created + # + # @return [Time] + required :transaction_created_at, Time + + # @!attribute account_token + # Token of the account the payment belongs to, if applicable + # + # @return [String, nil] + optional :account_token, String + + # @!method initialize(token:, added_at:, financial_account_token:, transaction_created_at:, account_token: nil, category: :PAYMENT) + # A payment (ACH) transaction associated with a case + # + # @param token [String] Globally unique identifier for the payment transaction + # + # @param added_at [Time] Date and time at which the transaction was added to the case + # + # @param financial_account_token [String] Token of the financial account the payment belongs to + # + # @param transaction_created_at [Time] Date and time at which the transaction was created + # + # @param account_token [String] Token of the account the payment belongs to, if applicable + # + # @param category [Symbol, :PAYMENT] + end + + # @!method self.variants + # @return [Array(Lithic::Models::TransactionMonitoring::CaseTransaction::CardCaseTransaction, Lithic::Models::TransactionMonitoring::CaseTransaction::PaymentCaseTransaction)] end end end diff --git a/lib/lithic/resources/transaction_monitoring/cases.rb b/lib/lithic/resources/transaction_monitoring/cases.rb index deb32755..bee2ab64 100644 --- a/lib/lithic/resources/transaction_monitoring/cases.rb +++ b/lib/lithic/resources/transaction_monitoring/cases.rb @@ -178,7 +178,7 @@ def list_activity(case_token, params = {}) # # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Lithic::Internal::CursorPage] + # @return [Lithic::Internal::CursorPage] # # @see Lithic::Models::TransactionMonitoring::CaseListTransactionsParams def list_transactions(case_token, params = {}) diff --git a/rbi/lithic/models/transaction_monitoring/case_transaction.rbi b/rbi/lithic/models/transaction_monitoring/case_transaction.rbi index ef8463e8..a8a9eec3 100644 --- a/rbi/lithic/models/transaction_monitoring/case_transaction.rbi +++ b/rbi/lithic/models/transaction_monitoring/case_transaction.rbi @@ -3,71 +3,176 @@ module Lithic module Models module TransactionMonitoring - class CaseTransaction < Lithic::Internal::Type::BaseModel - OrHash = + # A single transaction associated with a case. The `category` field identifies + # whether this is a card transaction or a payment transaction. + module CaseTransaction + extend Lithic::Internal::Type::Union + + Variants = T.type_alias do T.any( - Lithic::TransactionMonitoring::CaseTransaction, - Lithic::Internal::AnyHash + Lithic::TransactionMonitoring::CaseTransaction::CardCaseTransaction, + Lithic::TransactionMonitoring::CaseTransaction::PaymentCaseTransaction ) end - # Globally unique identifier for the transaction - sig { returns(String) } - attr_accessor :token + class CardCaseTransaction < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::TransactionMonitoring::CaseTransaction::CardCaseTransaction, + Lithic::Internal::AnyHash + ) + end + + # Globally unique identifier for the card transaction + sig { returns(String) } + attr_accessor :token - # Token of the account the transaction belongs to - sig { returns(String) } - attr_accessor :account_token + # Token of the account the transaction belongs to + sig { returns(String) } + attr_accessor :account_token - # Date and time at which the transaction was added to the case - sig { returns(Time) } - attr_accessor :added_at + # Date and time at which the transaction was added to the case + sig { returns(Time) } + attr_accessor :added_at - # Token of the card the transaction was made on - sig { returns(String) } - attr_accessor :card_token + # Token of the card the transaction was made on + sig { returns(String) } + attr_accessor :card_token - # Date and time at which the transaction was created - sig { returns(Time) } - attr_accessor :transaction_created_at + sig { returns(Symbol) } + attr_accessor :category - # A single transaction associated with a case - sig do - params( - token: String, - account_token: String, - added_at: Time, - card_token: String, - transaction_created_at: Time - ).returns(T.attached_class) + # Date and time at which the transaction was created + sig { returns(Time) } + attr_accessor :transaction_created_at + + # A card transaction associated with a case + sig do + params( + token: String, + account_token: String, + added_at: Time, + card_token: String, + transaction_created_at: Time, + category: Symbol + ).returns(T.attached_class) + end + def self.new( + # Globally unique identifier for the card transaction + token:, + # Token of the account the transaction belongs to + account_token:, + # Date and time at which the transaction was added to the case + added_at:, + # Token of the card the transaction was made on + card_token:, + # Date and time at which the transaction was created + transaction_created_at:, + category: :CARD + ) + end + + sig do + override.returns( + { + token: String, + account_token: String, + added_at: Time, + card_token: String, + category: Symbol, + transaction_created_at: Time + } + ) + end + def to_hash + end end - def self.new( - # Globally unique identifier for the transaction - token:, - # Token of the account the transaction belongs to - account_token:, + + class PaymentCaseTransaction < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::TransactionMonitoring::CaseTransaction::PaymentCaseTransaction, + Lithic::Internal::AnyHash + ) + end + + # Globally unique identifier for the payment transaction + sig { returns(String) } + attr_accessor :token + # Date and time at which the transaction was added to the case - added_at:, - # Token of the card the transaction was made on - card_token:, + sig { returns(Time) } + attr_accessor :added_at + + sig { returns(Symbol) } + attr_accessor :category + + # Token of the financial account the payment belongs to + sig { returns(String) } + attr_accessor :financial_account_token + # Date and time at which the transaction was created - transaction_created_at: - ) + sig { returns(Time) } + attr_accessor :transaction_created_at + + # Token of the account the payment belongs to, if applicable + sig { returns(T.nilable(String)) } + attr_reader :account_token + + sig { params(account_token: String).void } + attr_writer :account_token + + # A payment (ACH) transaction associated with a case + sig do + params( + token: String, + added_at: Time, + financial_account_token: String, + transaction_created_at: Time, + account_token: String, + category: Symbol + ).returns(T.attached_class) + end + def self.new( + # Globally unique identifier for the payment transaction + token:, + # Date and time at which the transaction was added to the case + added_at:, + # Token of the financial account the payment belongs to + financial_account_token:, + # Date and time at which the transaction was created + transaction_created_at:, + # Token of the account the payment belongs to, if applicable + account_token: nil, + category: :PAYMENT + ) + end + + sig do + override.returns( + { + token: String, + added_at: Time, + category: Symbol, + financial_account_token: String, + transaction_created_at: Time, + account_token: String + } + ) + end + def to_hash + end end sig do override.returns( - { - token: String, - account_token: String, - added_at: Time, - card_token: String, - transaction_created_at: Time - } + T::Array[Lithic::TransactionMonitoring::CaseTransaction::Variants] ) end - def to_hash + def self.variants end end end diff --git a/rbi/lithic/resources/transaction_monitoring/cases.rbi b/rbi/lithic/resources/transaction_monitoring/cases.rbi index c341531f..16652cca 100644 --- a/rbi/lithic/resources/transaction_monitoring/cases.rbi +++ b/rbi/lithic/resources/transaction_monitoring/cases.rbi @@ -187,7 +187,7 @@ module Lithic request_options: Lithic::RequestOptions::OrHash ).returns( Lithic::Internal::CursorPage[ - Lithic::TransactionMonitoring::CaseTransaction + Lithic::TransactionMonitoring::CaseTransaction::Variants ] ) end diff --git a/sig/lithic/models/transaction_monitoring/case_transaction.rbs b/sig/lithic/models/transaction_monitoring/case_transaction.rbs index 24d2bdb9..b567ac0c 100644 --- a/sig/lithic/models/transaction_monitoring/case_transaction.rbs +++ b/sig/lithic/models/transaction_monitoring/case_transaction.rbs @@ -2,40 +2,99 @@ module Lithic module Models module TransactionMonitoring type case_transaction = - { - token: String, - account_token: String, - added_at: Time, - card_token: String, - transaction_created_at: Time - } - - class CaseTransaction < Lithic::Internal::Type::BaseModel - attr_accessor token: String - - attr_accessor account_token: String - - attr_accessor added_at: Time - - attr_accessor card_token: String - - attr_accessor transaction_created_at: Time - - def initialize: ( - token: String, - account_token: String, - added_at: Time, - card_token: String, - transaction_created_at: Time - ) -> void - - def to_hash: -> { - token: String, - account_token: String, - added_at: Time, - card_token: String, - transaction_created_at: Time - } + Lithic::TransactionMonitoring::CaseTransaction::CardCaseTransaction + | Lithic::TransactionMonitoring::CaseTransaction::PaymentCaseTransaction + + module CaseTransaction + extend Lithic::Internal::Type::Union + + type card_case_transaction = + { + token: String, + account_token: String, + added_at: Time, + card_token: String, + category: :CARD, + transaction_created_at: Time + } + + class CardCaseTransaction < Lithic::Internal::Type::BaseModel + attr_accessor token: String + + attr_accessor account_token: String + + attr_accessor added_at: Time + + attr_accessor card_token: String + + attr_accessor category: :CARD + + attr_accessor transaction_created_at: Time + + def initialize: ( + token: String, + account_token: String, + added_at: Time, + card_token: String, + transaction_created_at: Time, + ?category: :CARD + ) -> void + + def to_hash: -> { + token: String, + account_token: String, + added_at: Time, + card_token: String, + category: :CARD, + transaction_created_at: Time + } + end + + type payment_case_transaction = + { + token: String, + added_at: Time, + category: :PAYMENT, + financial_account_token: String, + transaction_created_at: Time, + account_token: String + } + + class PaymentCaseTransaction < Lithic::Internal::Type::BaseModel + attr_accessor token: String + + attr_accessor added_at: Time + + attr_accessor category: :PAYMENT + + attr_accessor financial_account_token: String + + attr_accessor transaction_created_at: Time + + attr_reader account_token: String? + + def account_token=: (String) -> String + + def initialize: ( + token: String, + added_at: Time, + financial_account_token: String, + transaction_created_at: Time, + ?account_token: String, + ?category: :PAYMENT + ) -> void + + def to_hash: -> { + token: String, + added_at: Time, + category: :PAYMENT, + financial_account_token: String, + transaction_created_at: Time, + account_token: String + } + end + + def self?.variants: -> ::Array[Lithic::Models::TransactionMonitoring::case_transaction] end end end diff --git a/sig/lithic/resources/transaction_monitoring/cases.rbs b/sig/lithic/resources/transaction_monitoring/cases.rbs index 2190a299..56365860 100644 --- a/sig/lithic/resources/transaction_monitoring/cases.rbs +++ b/sig/lithic/resources/transaction_monitoring/cases.rbs @@ -57,7 +57,7 @@ module Lithic ?page_size: Integer, ?starting_after: String, ?request_options: Lithic::request_opts - ) -> Lithic::Internal::CursorPage[Lithic::TransactionMonitoring::CaseTransaction] + ) -> Lithic::Internal::CursorPage[Lithic::Models::TransactionMonitoring::case_transaction] def retrieve_cards: ( String case_token, diff --git a/test/lithic/resources/transaction_monitoring/cases_test.rb b/test/lithic/resources/transaction_monitoring/cases_test.rb index 780a9cb4..950b0aba 100644 --- a/test/lithic/resources/transaction_monitoring/cases_test.rb +++ b/test/lithic/resources/transaction_monitoring/cases_test.rb @@ -141,13 +141,10 @@ def test_list_transactions end assert_pattern do - row => { - token: String, - account_token: String, - added_at: Time, - card_token: String, - transaction_created_at: Time - } + case row + in Lithic::TransactionMonitoring::CaseTransaction::CardCaseTransaction + in Lithic::TransactionMonitoring::CaseTransaction::PaymentCaseTransaction + end end end From acf4dc52c4d33ea1bce9b0544123caf6c2d764d2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 29 Jun 2026 15:38:52 +0000 Subject: [PATCH 3/4] chore(internal): bound formatter parallelism to CPU count --- Rakefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 7d530a32..fc537d1a 100644 --- a/Rakefile +++ b/Rakefile @@ -1,5 +1,6 @@ # frozen_string_literal: true +require "etc" require "pathname" require "securerandom" require "shellwords" @@ -37,7 +38,11 @@ multitask(:test) do ruby(*%w[-w -e], rb, verbose: false) { fail unless _1 } end -xargs = %w[xargs --no-run-if-empty --null --max-procs=0 --max-args=300 --] +# Cap parallelism at the CPU count. `--max-procs=0` spawns one process per +# 300-file batch with no upper bound; on large SDKs (thousands of files) that +# oversubscribes CPUs and stacks up rubocop processes, exhausting memory and +# slowing CI to the point of timing out. +xargs = %W[xargs --no-run-if-empty --null --max-procs=#{Etc.nprocessors} --max-args=300 --] ruby_opt = {"RUBYOPT" => [ENV["RUBYOPT"], "--encoding=UTF-8"].compact.join(" ")} filtered = ->(ext, dirs) do From b3fc1216e81407dddd72e34699bc2f0ec7dd9f97 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 29 Jun 2026 15:40:13 +0000 Subject: [PATCH 4/4] release: 0.18.1 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 18 ++++++++++++++++++ Gemfile.lock | 2 +- README.md | 2 +- lib/lithic/version.rb | 2 +- 5 files changed, 22 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 4ad3fef3..d661066e 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.18.0" + ".": "0.18.1" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 1288b916..3430c766 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,23 @@ # Changelog +## 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) + +### Bug Fixes + +* **types:** convert CaseTransaction to union with Card/Payment variants ([0d84634](https://github.com/lithic-com/lithic-ruby/commit/0d84634d5cf4e42f4270832089df3cdbd50deed2)) + + +### Chores + +* **internal:** bound formatter parallelism to CPU count ([acf4dc5](https://github.com/lithic-com/lithic-ruby/commit/acf4dc52c4d33ea1bce9b0544123caf6c2d764d2)) + + +### Documentation + +* **types:** update cash_amount field description in CardAuthorization ([1385cde](https://github.com/lithic-com/lithic-ruby/commit/1385cde62aca3c83a7525150b535decc016c8ed4)) + ## 0.18.0 (2026-06-23) Full Changelog: [v0.17.0...v0.18.0](https://github.com/lithic-com/lithic-ruby/compare/v0.17.0...v0.18.0) diff --git a/Gemfile.lock b/Gemfile.lock index 3afffbfd..a7cb7ed6 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - lithic (0.18.0) + lithic (0.18.1) cgi connection_pool diff --git a/README.md b/README.md index 45f01c1f..6589f4f8 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.0" +gem "lithic", "~> 0.18.1" ``` diff --git a/lib/lithic/version.rb b/lib/lithic/version.rb index fc3aad92..ce2aa0c5 100644 --- a/lib/lithic/version.rb +++ b/lib/lithic/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Lithic - VERSION = "0.18.0" + VERSION = "0.18.1" end