diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bf256a92..75752629 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: permissions: contents: read id-token: write - runs-on: ${{ github.repository == 'stainless-sdks/lithic-ruby' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} + runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} if: |- github.repository == 'stainless-sdks/lithic-ruby' && (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata') @@ -56,7 +56,7 @@ jobs: lint: timeout-minutes: 10 name: lint - runs-on: ${{ github.repository == 'stainless-sdks/lithic-ruby' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} + runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} if: github.event_name == 'push' || github.event.pull_request.head.repo.fork steps: @@ -73,7 +73,7 @@ jobs: test: timeout-minutes: 10 name: test - runs-on: ${{ github.repository == 'stainless-sdks/lithic-ruby' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} + runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} if: github.event_name == 'push' || github.event.pull_request.head.repo.fork steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 diff --git a/.release-please-manifest.json b/.release-please-manifest.json index d661066e..e7562934 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.18.1" + ".": "0.19.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 189b2dd2..03f061a3 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-09b6d1b85c657173562e9a372adc74551f07d476122003078e9168467329f792.yml +openapi_spec_hash: a2b3a526310ceccd4ccb59ec428d246f config_hash: 5bb913c05ebeb301ec925b16e75bb251 diff --git a/CHANGELOG.md b/CHANGELOG.md index 3430c766..0e1369c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,21 @@ # Changelog +## 0.19.0 (2026-07-17) + +Full Changelog: [v0.18.1...v0.19.0](https://github.com/lithic-com/lithic-ruby/compare/v0.18.1...v0.19.0) + +### Features + +* **api:** add PAYMENT type to book transfers ([979bd5d](https://github.com/lithic-com/lithic-ruby/commit/979bd5d73e39028767418a470e10fc39cfb9686f)) +* **stlc:** configurable CI runner and private-production-repo support in workflow templates ([69b6ead](https://github.com/lithic-com/lithic-ruby/commit/69b6ead528e48ca397c5b14bcfd5868d6819aaca)) + + +### Documentation + +* **api:** clarify simulate_clearing supports multiple calls in transactions ([7a7e783](https://github.com/lithic-com/lithic-ruby/commit/7a7e78338a405f4edb463df0de5f64cf157c0334)) +* **api:** expand dispute event descriptions across Event and subscription models ([4db3479](https://github.com/lithic-com/lithic-ruby/commit/4db3479aaf148f8f3ea7e16ea89eb3c275fe963e)) +* **api:** update category parameter description in external_payments ([db7d72a](https://github.com/lithic-com/lithic-ruby/commit/db7d72a41aaee552817197d85b7989d85f6399c3)) + ## 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..310ca168 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - lithic (0.18.1) + lithic (0.19.0) cgi connection_pool diff --git a/README.md b/README.md index 6589f4f8..18e8a51b 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.19.0" ``` diff --git a/lib/lithic/models/book_transfer_create_params.rb b/lib/lithic/models/book_transfer_create_params.rb index 529d2a34..f992a281 100644 --- a/lib/lithic/models/book_transfer_create_params.rb +++ b/lib/lithic/models/book_transfer_create_params.rb @@ -145,6 +145,7 @@ module Type INTEREST = :INTEREST LATE_PAYMENT = :LATE_PAYMENT BILL_PAYMENT = :BILL_PAYMENT + PAYMENT_FEE = :PAYMENT_FEE CASH_BACK = :CASH_BACK ACCOUNT_TO_ACCOUNT = :ACCOUNT_TO_ACCOUNT CARD_TO_CARD = :CARD_TO_CARD diff --git a/lib/lithic/models/book_transfer_response.rb b/lib/lithic/models/book_transfer_response.rb index 3059d390..b78c7ad3 100644 --- a/lib/lithic/models/book_transfer_response.rb +++ b/lib/lithic/models/book_transfer_response.rb @@ -285,6 +285,7 @@ module Type INTEREST = :INTEREST LATE_PAYMENT = :LATE_PAYMENT BILL_PAYMENT = :BILL_PAYMENT + PAYMENT_FEE = :PAYMENT_FEE CASH_BACK = :CASH_BACK ACCOUNT_TO_ACCOUNT = :ACCOUNT_TO_ACCOUNT CARD_TO_CARD = :CARD_TO_CARD diff --git a/lib/lithic/models/event.rb b/lib/lithic/models/event.rb index 3ba2bec2..2a1ed743 100644 --- a/lib/lithic/models/event.rb +++ b/lib/lithic/models/event.rb @@ -22,7 +22,7 @@ class Event < Lithic::Internal::Type::BaseModel # The type of event that occurred. Possible values: # # - account_holder_document.updated: Occurs when an account holder's document - # upload status has been updated + # upload status has been updated. # - account_holder.created: Occurs when a new account_holder is created. # - account_holder.updated: Occurs when an account_holder is updated. # - account_holder.verification: Occurs when an asynchronous account_holder's @@ -86,10 +86,21 @@ class Event < Lithic::Internal::Type::BaseModel # This event will be deprecated in the future. We recommend using # `tokenization.updated` instead. # - # - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails. + # - dispute_evidence.upload_failed: Occurs when an evidence upload fails for a + # dispute filed through the Chargebacks API (`/v1/disputes`). + # + # This event is not emitted for Managed Disputes. + # # - dispute_transaction.created: Occurs when a new dispute transaction is created - # - dispute_transaction.updated: Occurs when a dispute transaction is updated - # - dispute.updated: Occurs when a dispute is updated. + # for a Managed Disputes case. + # - dispute_transaction.updated: Occurs when a dispute transaction for a Managed + # Disputes case is updated. + # - dispute.updated: Occurs when a dispute filed through the Chargebacks API + # (`/v1/disputes`) is created or updated. + # + # This event is not emitted for Managed Disputes. Use + # `dispute_transaction.created` and `dispute_transaction.updated` instead. + # # - external_bank_account.created: Occurs when an external bank account is # created. # - external_bank_account.updated: Occurs when an external bank account is @@ -111,7 +122,7 @@ class Event < Lithic::Internal::Type::BaseModel # - payment_transaction.updated: Occurs when a payment transaction is updated. # - settlement_report.updated: Occurs when a settlement report is created or # updated. - # - statements.created: Occurs when a statement has been created + # - statements.created: Occurs when a statement has been created. # - three_ds_authentication.challenge: The `three_ds_authentication.challenge` # event. Upon receiving this request, the Card Program should issue its own # challenge to the cardholder. After a cardholder challenge is successfully @@ -158,7 +169,7 @@ class Event < Lithic::Internal::Type::BaseModel # The type of event that occurred. Possible values: # # - account_holder_document.updated: Occurs when an account holder's document - # upload status has been updated + # upload status has been updated. # - account_holder.created: Occurs when a new account_holder is created. # - account_holder.updated: Occurs when an account_holder is updated. # - account_holder.verification: Occurs when an asynchronous account_holder's @@ -222,10 +233,21 @@ class Event < Lithic::Internal::Type::BaseModel # This event will be deprecated in the future. We recommend using # `tokenization.updated` instead. # - # - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails. + # - dispute_evidence.upload_failed: Occurs when an evidence upload fails for a + # dispute filed through the Chargebacks API (`/v1/disputes`). + # + # This event is not emitted for Managed Disputes. + # # - dispute_transaction.created: Occurs when a new dispute transaction is created - # - dispute_transaction.updated: Occurs when a dispute transaction is updated - # - dispute.updated: Occurs when a dispute is updated. + # for a Managed Disputes case. + # - dispute_transaction.updated: Occurs when a dispute transaction for a Managed + # Disputes case is updated. + # - dispute.updated: Occurs when a dispute filed through the Chargebacks API + # (`/v1/disputes`) is created or updated. + # + # This event is not emitted for Managed Disputes. Use + # `dispute_transaction.created` and `dispute_transaction.updated` instead. + # # - external_bank_account.created: Occurs when an external bank account is # created. # - external_bank_account.updated: Occurs when an external bank account is @@ -247,7 +269,7 @@ class Event < Lithic::Internal::Type::BaseModel # - payment_transaction.updated: Occurs when a payment transaction is updated. # - settlement_report.updated: Occurs when a settlement report is created or # updated. - # - statements.created: Occurs when a statement has been created + # - statements.created: Occurs when a statement has been created. # - three_ds_authentication.challenge: The `three_ds_authentication.challenge` # event. Upon receiving this request, the Card Program should issue its own # challenge to the cardholder. After a cardholder challenge is successfully diff --git a/lib/lithic/models/event_list_params.rb b/lib/lithic/models/event_list_params.rb index e4b64766..6fe90f1e 100644 --- a/lib/lithic/models/event_list_params.rb +++ b/lib/lithic/models/event_list_params.rb @@ -76,7 +76,7 @@ class EventListParams < Lithic::Internal::Type::BaseModel # The type of event that occurred. Possible values: # # - account_holder_document.updated: Occurs when an account holder's document - # upload status has been updated + # upload status has been updated. # - account_holder.created: Occurs when a new account_holder is created. # - account_holder.updated: Occurs when an account_holder is updated. # - account_holder.verification: Occurs when an asynchronous account_holder's @@ -140,10 +140,21 @@ class EventListParams < Lithic::Internal::Type::BaseModel # This event will be deprecated in the future. We recommend using # `tokenization.updated` instead. # - # - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails. + # - dispute_evidence.upload_failed: Occurs when an evidence upload fails for a + # dispute filed through the Chargebacks API (`/v1/disputes`). + # + # This event is not emitted for Managed Disputes. + # # - dispute_transaction.created: Occurs when a new dispute transaction is created - # - dispute_transaction.updated: Occurs when a dispute transaction is updated - # - dispute.updated: Occurs when a dispute is updated. + # for a Managed Disputes case. + # - dispute_transaction.updated: Occurs when a dispute transaction for a Managed + # Disputes case is updated. + # - dispute.updated: Occurs when a dispute filed through the Chargebacks API + # (`/v1/disputes`) is created or updated. + # + # This event is not emitted for Managed Disputes. Use + # `dispute_transaction.created` and `dispute_transaction.updated` instead. + # # - external_bank_account.created: Occurs when an external bank account is # created. # - external_bank_account.updated: Occurs when an external bank account is @@ -165,7 +176,7 @@ class EventListParams < Lithic::Internal::Type::BaseModel # - payment_transaction.updated: Occurs when a payment transaction is updated. # - settlement_report.updated: Occurs when a settlement report is created or # updated. - # - statements.created: Occurs when a statement has been created + # - statements.created: Occurs when a statement has been created. # - three_ds_authentication.challenge: The `three_ds_authentication.challenge` # event. Upon receiving this request, the Card Program should issue its own # challenge to the cardholder. After a cardholder challenge is successfully diff --git a/lib/lithic/models/event_subscription.rb b/lib/lithic/models/event_subscription.rb index daab3ce3..b622e2c8 100644 --- a/lib/lithic/models/event_subscription.rb +++ b/lib/lithic/models/event_subscription.rb @@ -49,7 +49,7 @@ class EventSubscription < Lithic::Internal::Type::BaseModel # The type of event that occurred. Possible values: # # - account_holder_document.updated: Occurs when an account holder's document - # upload status has been updated + # upload status has been updated. # - account_holder.created: Occurs when a new account_holder is created. # - account_holder.updated: Occurs when an account_holder is updated. # - account_holder.verification: Occurs when an asynchronous account_holder's @@ -113,10 +113,21 @@ class EventSubscription < Lithic::Internal::Type::BaseModel # This event will be deprecated in the future. We recommend using # `tokenization.updated` instead. # - # - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails. + # - dispute_evidence.upload_failed: Occurs when an evidence upload fails for a + # dispute filed through the Chargebacks API (`/v1/disputes`). + # + # This event is not emitted for Managed Disputes. + # # - dispute_transaction.created: Occurs when a new dispute transaction is created - # - dispute_transaction.updated: Occurs when a dispute transaction is updated - # - dispute.updated: Occurs when a dispute is updated. + # for a Managed Disputes case. + # - dispute_transaction.updated: Occurs when a dispute transaction for a Managed + # Disputes case is updated. + # - dispute.updated: Occurs when a dispute filed through the Chargebacks API + # (`/v1/disputes`) is created or updated. + # + # This event is not emitted for Managed Disputes. Use + # `dispute_transaction.created` and `dispute_transaction.updated` instead. + # # - external_bank_account.created: Occurs when an external bank account is # created. # - external_bank_account.updated: Occurs when an external bank account is @@ -138,7 +149,7 @@ class EventSubscription < Lithic::Internal::Type::BaseModel # - payment_transaction.updated: Occurs when a payment transaction is updated. # - settlement_report.updated: Occurs when a settlement report is created or # updated. - # - statements.created: Occurs when a statement has been created + # - statements.created: Occurs when a statement has been created. # - three_ds_authentication.challenge: The `three_ds_authentication.challenge` # event. Upon receiving this request, the Card Program should issue its own # challenge to the cardholder. After a cardholder challenge is successfully diff --git a/lib/lithic/models/events/subscription_create_params.rb b/lib/lithic/models/events/subscription_create_params.rb index 218b5879..ec0b9dc7 100644 --- a/lib/lithic/models/events/subscription_create_params.rb +++ b/lib/lithic/models/events/subscription_create_params.rb @@ -51,7 +51,7 @@ class SubscriptionCreateParams < Lithic::Internal::Type::BaseModel # The type of event that occurred. Possible values: # # - account_holder_document.updated: Occurs when an account holder's document - # upload status has been updated + # upload status has been updated. # - account_holder.created: Occurs when a new account_holder is created. # - account_holder.updated: Occurs when an account_holder is updated. # - account_holder.verification: Occurs when an asynchronous account_holder's @@ -115,10 +115,21 @@ class SubscriptionCreateParams < Lithic::Internal::Type::BaseModel # This event will be deprecated in the future. We recommend using # `tokenization.updated` instead. # - # - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails. + # - dispute_evidence.upload_failed: Occurs when an evidence upload fails for a + # dispute filed through the Chargebacks API (`/v1/disputes`). + # + # This event is not emitted for Managed Disputes. + # # - dispute_transaction.created: Occurs when a new dispute transaction is created - # - dispute_transaction.updated: Occurs when a dispute transaction is updated - # - dispute.updated: Occurs when a dispute is updated. + # for a Managed Disputes case. + # - dispute_transaction.updated: Occurs when a dispute transaction for a Managed + # Disputes case is updated. + # - dispute.updated: Occurs when a dispute filed through the Chargebacks API + # (`/v1/disputes`) is created or updated. + # + # This event is not emitted for Managed Disputes. Use + # `dispute_transaction.created` and `dispute_transaction.updated` instead. + # # - external_bank_account.created: Occurs when an external bank account is # created. # - external_bank_account.updated: Occurs when an external bank account is @@ -140,7 +151,7 @@ class SubscriptionCreateParams < Lithic::Internal::Type::BaseModel # - payment_transaction.updated: Occurs when a payment transaction is updated. # - settlement_report.updated: Occurs when a settlement report is created or # updated. - # - statements.created: Occurs when a statement has been created + # - statements.created: Occurs when a statement has been created. # - three_ds_authentication.challenge: The `three_ds_authentication.challenge` # event. Upon receiving this request, the Card Program should issue its own # challenge to the cardholder. After a cardholder challenge is successfully diff --git a/lib/lithic/models/events/subscription_update_params.rb b/lib/lithic/models/events/subscription_update_params.rb index 40c826a0..18e05150 100644 --- a/lib/lithic/models/events/subscription_update_params.rb +++ b/lib/lithic/models/events/subscription_update_params.rb @@ -58,7 +58,7 @@ class SubscriptionUpdateParams < Lithic::Internal::Type::BaseModel # The type of event that occurred. Possible values: # # - account_holder_document.updated: Occurs when an account holder's document - # upload status has been updated + # upload status has been updated. # - account_holder.created: Occurs when a new account_holder is created. # - account_holder.updated: Occurs when an account_holder is updated. # - account_holder.verification: Occurs when an asynchronous account_holder's @@ -122,10 +122,21 @@ class SubscriptionUpdateParams < Lithic::Internal::Type::BaseModel # This event will be deprecated in the future. We recommend using # `tokenization.updated` instead. # - # - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails. + # - dispute_evidence.upload_failed: Occurs when an evidence upload fails for a + # dispute filed through the Chargebacks API (`/v1/disputes`). + # + # This event is not emitted for Managed Disputes. + # # - dispute_transaction.created: Occurs when a new dispute transaction is created - # - dispute_transaction.updated: Occurs when a dispute transaction is updated - # - dispute.updated: Occurs when a dispute is updated. + # for a Managed Disputes case. + # - dispute_transaction.updated: Occurs when a dispute transaction for a Managed + # Disputes case is updated. + # - dispute.updated: Occurs when a dispute filed through the Chargebacks API + # (`/v1/disputes`) is created or updated. + # + # This event is not emitted for Managed Disputes. Use + # `dispute_transaction.created` and `dispute_transaction.updated` instead. + # # - external_bank_account.created: Occurs when an external bank account is # created. # - external_bank_account.updated: Occurs when an external bank account is @@ -147,7 +158,7 @@ class SubscriptionUpdateParams < Lithic::Internal::Type::BaseModel # - payment_transaction.updated: Occurs when a payment transaction is updated. # - settlement_report.updated: Occurs when a settlement report is created or # updated. - # - statements.created: Occurs when a statement has been created + # - statements.created: Occurs when a statement has been created. # - three_ds_authentication.challenge: The `three_ds_authentication.challenge` # event. Upon receiving this request, the Card Program should issue its own # challenge to the cardholder. After a cardholder challenge is successfully diff --git a/lib/lithic/models/external_payment_list_params.rb b/lib/lithic/models/external_payment_list_params.rb index aff41236..980f3735 100644 --- a/lib/lithic/models/external_payment_list_params.rb +++ b/lib/lithic/models/external_payment_list_params.rb @@ -20,7 +20,7 @@ class ExternalPaymentListParams < Lithic::Internal::Type::BaseModel optional :business_account_token, String # @!attribute category - # External Payment category to be returned. + # The external rail the funds moved on # # @return [Symbol, Lithic::Models::ExternalPaymentListParams::Category, nil] optional :category, enum: -> { Lithic::ExternalPaymentListParams::Category } @@ -79,7 +79,7 @@ class ExternalPaymentListParams < Lithic::Internal::Type::BaseModel # # @param business_account_token [String] # - # @param category [Symbol, Lithic::Models::ExternalPaymentListParams::Category] External Payment category to be returned. + # @param category [Symbol, Lithic::Models::ExternalPaymentListParams::Category] The external rail the funds moved on # # @param end_ [Time] Date string in RFC 3339 format. Only entries created before the specified time w # @@ -97,7 +97,7 @@ class ExternalPaymentListParams < Lithic::Internal::Type::BaseModel # # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] - # External Payment category to be returned. + # The external rail the funds moved on module Category extend Lithic::Internal::Type::Enum 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/external_payments.rb b/lib/lithic/resources/external_payments.rb index 71194e87..77841754 100644 --- a/lib/lithic/resources/external_payments.rb +++ b/lib/lithic/resources/external_payments.rb @@ -75,7 +75,7 @@ def retrieve(external_payment_token, params = {}) # # @param business_account_token [String] # - # @param category [Symbol, Lithic::Models::ExternalPaymentListParams::Category] External Payment category to be returned. + # @param category [Symbol, Lithic::Models::ExternalPaymentListParams::Category] The external rail the funds moved on # # @param end_ [Time] Date string in RFC 3339 format. Only entries created before the specified time w # 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..2a47352e 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.19.0" end diff --git a/rbi/lithic/models/book_transfer_create_params.rbi b/rbi/lithic/models/book_transfer_create_params.rbi index abf9bd88..81d34710 100644 --- a/rbi/lithic/models/book_transfer_create_params.rbi +++ b/rbi/lithic/models/book_transfer_create_params.rbi @@ -311,6 +311,11 @@ module Lithic :BILL_PAYMENT, Lithic::BookTransferCreateParams::Type::TaggedSymbol ) + PAYMENT_FEE = + T.let( + :PAYMENT_FEE, + Lithic::BookTransferCreateParams::Type::TaggedSymbol + ) CASH_BACK = T.let( :CASH_BACK, diff --git a/rbi/lithic/models/book_transfer_response.rbi b/rbi/lithic/models/book_transfer_response.rbi index a5115590..66ebc3ba 100644 --- a/rbi/lithic/models/book_transfer_response.rbi +++ b/rbi/lithic/models/book_transfer_response.rbi @@ -512,6 +512,11 @@ module Lithic :BILL_PAYMENT, Lithic::BookTransferResponse::Event::Type::TaggedSymbol ) + PAYMENT_FEE = + T.let( + :PAYMENT_FEE, + Lithic::BookTransferResponse::Event::Type::TaggedSymbol + ) CASH_BACK = T.let( :CASH_BACK, diff --git a/rbi/lithic/models/event.rbi b/rbi/lithic/models/event.rbi index f7fa3974..9b0f81f5 100644 --- a/rbi/lithic/models/event.rbi +++ b/rbi/lithic/models/event.rbi @@ -18,7 +18,7 @@ module Lithic # The type of event that occurred. Possible values: # # - account_holder_document.updated: Occurs when an account holder's document - # upload status has been updated + # upload status has been updated. # - account_holder.created: Occurs when a new account_holder is created. # - account_holder.updated: Occurs when an account_holder is updated. # - account_holder.verification: Occurs when an asynchronous account_holder's @@ -82,10 +82,21 @@ module Lithic # This event will be deprecated in the future. We recommend using # `tokenization.updated` instead. # - # - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails. + # - dispute_evidence.upload_failed: Occurs when an evidence upload fails for a + # dispute filed through the Chargebacks API (`/v1/disputes`). + # + # This event is not emitted for Managed Disputes. + # # - dispute_transaction.created: Occurs when a new dispute transaction is created - # - dispute_transaction.updated: Occurs when a dispute transaction is updated - # - dispute.updated: Occurs when a dispute is updated. + # for a Managed Disputes case. + # - dispute_transaction.updated: Occurs when a dispute transaction for a Managed + # Disputes case is updated. + # - dispute.updated: Occurs when a dispute filed through the Chargebacks API + # (`/v1/disputes`) is created or updated. + # + # This event is not emitted for Managed Disputes. Use + # `dispute_transaction.created` and `dispute_transaction.updated` instead. + # # - external_bank_account.created: Occurs when an external bank account is # created. # - external_bank_account.updated: Occurs when an external bank account is @@ -107,7 +118,7 @@ module Lithic # - payment_transaction.updated: Occurs when a payment transaction is updated. # - settlement_report.updated: Occurs when a settlement report is created or # updated. - # - statements.created: Occurs when a statement has been created + # - statements.created: Occurs when a statement has been created. # - three_ds_authentication.challenge: The `three_ds_authentication.challenge` # event. Upon receiving this request, the Card Program should issue its own # challenge to the cardholder. After a cardholder challenge is successfully @@ -153,7 +164,7 @@ module Lithic # The type of event that occurred. Possible values: # # - account_holder_document.updated: Occurs when an account holder's document - # upload status has been updated + # upload status has been updated. # - account_holder.created: Occurs when a new account_holder is created. # - account_holder.updated: Occurs when an account_holder is updated. # - account_holder.verification: Occurs when an asynchronous account_holder's @@ -217,10 +228,21 @@ module Lithic # This event will be deprecated in the future. We recommend using # `tokenization.updated` instead. # - # - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails. + # - dispute_evidence.upload_failed: Occurs when an evidence upload fails for a + # dispute filed through the Chargebacks API (`/v1/disputes`). + # + # This event is not emitted for Managed Disputes. + # # - dispute_transaction.created: Occurs when a new dispute transaction is created - # - dispute_transaction.updated: Occurs when a dispute transaction is updated - # - dispute.updated: Occurs when a dispute is updated. + # for a Managed Disputes case. + # - dispute_transaction.updated: Occurs when a dispute transaction for a Managed + # Disputes case is updated. + # - dispute.updated: Occurs when a dispute filed through the Chargebacks API + # (`/v1/disputes`) is created or updated. + # + # This event is not emitted for Managed Disputes. Use + # `dispute_transaction.created` and `dispute_transaction.updated` instead. + # # - external_bank_account.created: Occurs when an external bank account is # created. # - external_bank_account.updated: Occurs when an external bank account is @@ -242,7 +264,7 @@ module Lithic # - payment_transaction.updated: Occurs when a payment transaction is updated. # - settlement_report.updated: Occurs when a settlement report is created or # updated. - # - statements.created: Occurs when a statement has been created + # - statements.created: Occurs when a statement has been created. # - three_ds_authentication.challenge: The `three_ds_authentication.challenge` # event. Upon receiving this request, the Card Program should issue its own # challenge to the cardholder. After a cardholder challenge is successfully @@ -284,7 +306,7 @@ module Lithic # The type of event that occurred. Possible values: # # - account_holder_document.updated: Occurs when an account holder's document - # upload status has been updated + # upload status has been updated. # - account_holder.created: Occurs when a new account_holder is created. # - account_holder.updated: Occurs when an account_holder is updated. # - account_holder.verification: Occurs when an asynchronous account_holder's @@ -348,10 +370,21 @@ module Lithic # This event will be deprecated in the future. We recommend using # `tokenization.updated` instead. # - # - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails. + # - dispute_evidence.upload_failed: Occurs when an evidence upload fails for a + # dispute filed through the Chargebacks API (`/v1/disputes`). + # + # This event is not emitted for Managed Disputes. + # # - dispute_transaction.created: Occurs when a new dispute transaction is created - # - dispute_transaction.updated: Occurs when a dispute transaction is updated - # - dispute.updated: Occurs when a dispute is updated. + # for a Managed Disputes case. + # - dispute_transaction.updated: Occurs when a dispute transaction for a Managed + # Disputes case is updated. + # - dispute.updated: Occurs when a dispute filed through the Chargebacks API + # (`/v1/disputes`) is created or updated. + # + # This event is not emitted for Managed Disputes. Use + # `dispute_transaction.created` and `dispute_transaction.updated` instead. + # # - external_bank_account.created: Occurs when an external bank account is # created. # - external_bank_account.updated: Occurs when an external bank account is @@ -373,7 +406,7 @@ module Lithic # - payment_transaction.updated: Occurs when a payment transaction is updated. # - settlement_report.updated: Occurs when a settlement report is created or # updated. - # - statements.created: Occurs when a statement has been created + # - statements.created: Occurs when a statement has been created. # - three_ds_authentication.challenge: The `three_ds_authentication.challenge` # event. Upon receiving this request, the Card Program should issue its own # challenge to the cardholder. After a cardholder challenge is successfully diff --git a/rbi/lithic/models/event_list_params.rbi b/rbi/lithic/models/event_list_params.rbi index de6e6516..c40f1154 100644 --- a/rbi/lithic/models/event_list_params.rbi +++ b/rbi/lithic/models/event_list_params.rbi @@ -127,7 +127,7 @@ module Lithic # The type of event that occurred. Possible values: # # - account_holder_document.updated: Occurs when an account holder's document - # upload status has been updated + # upload status has been updated. # - account_holder.created: Occurs when a new account_holder is created. # - account_holder.updated: Occurs when an account_holder is updated. # - account_holder.verification: Occurs when an asynchronous account_holder's @@ -191,10 +191,21 @@ module Lithic # This event will be deprecated in the future. We recommend using # `tokenization.updated` instead. # - # - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails. + # - dispute_evidence.upload_failed: Occurs when an evidence upload fails for a + # dispute filed through the Chargebacks API (`/v1/disputes`). + # + # This event is not emitted for Managed Disputes. + # # - dispute_transaction.created: Occurs when a new dispute transaction is created - # - dispute_transaction.updated: Occurs when a dispute transaction is updated - # - dispute.updated: Occurs when a dispute is updated. + # for a Managed Disputes case. + # - dispute_transaction.updated: Occurs when a dispute transaction for a Managed + # Disputes case is updated. + # - dispute.updated: Occurs when a dispute filed through the Chargebacks API + # (`/v1/disputes`) is created or updated. + # + # This event is not emitted for Managed Disputes. Use + # `dispute_transaction.created` and `dispute_transaction.updated` instead. + # # - external_bank_account.created: Occurs when an external bank account is # created. # - external_bank_account.updated: Occurs when an external bank account is @@ -216,7 +227,7 @@ module Lithic # - payment_transaction.updated: Occurs when a payment transaction is updated. # - settlement_report.updated: Occurs when a settlement report is created or # updated. - # - statements.created: Occurs when a statement has been created + # - statements.created: Occurs when a statement has been created. # - three_ds_authentication.challenge: The `three_ds_authentication.challenge` # event. Upon receiving this request, the Card Program should issue its own # challenge to the cardholder. After a cardholder challenge is successfully diff --git a/rbi/lithic/models/event_subscription.rbi b/rbi/lithic/models/event_subscription.rbi index 266af7b7..29b49ace 100644 --- a/rbi/lithic/models/event_subscription.rbi +++ b/rbi/lithic/models/event_subscription.rbi @@ -75,7 +75,7 @@ module Lithic # The type of event that occurred. Possible values: # # - account_holder_document.updated: Occurs when an account holder's document - # upload status has been updated + # upload status has been updated. # - account_holder.created: Occurs when a new account_holder is created. # - account_holder.updated: Occurs when an account_holder is updated. # - account_holder.verification: Occurs when an asynchronous account_holder's @@ -139,10 +139,21 @@ module Lithic # This event will be deprecated in the future. We recommend using # `tokenization.updated` instead. # - # - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails. + # - dispute_evidence.upload_failed: Occurs when an evidence upload fails for a + # dispute filed through the Chargebacks API (`/v1/disputes`). + # + # This event is not emitted for Managed Disputes. + # # - dispute_transaction.created: Occurs when a new dispute transaction is created - # - dispute_transaction.updated: Occurs when a dispute transaction is updated - # - dispute.updated: Occurs when a dispute is updated. + # for a Managed Disputes case. + # - dispute_transaction.updated: Occurs when a dispute transaction for a Managed + # Disputes case is updated. + # - dispute.updated: Occurs when a dispute filed through the Chargebacks API + # (`/v1/disputes`) is created or updated. + # + # This event is not emitted for Managed Disputes. Use + # `dispute_transaction.created` and `dispute_transaction.updated` instead. + # # - external_bank_account.created: Occurs when an external bank account is # created. # - external_bank_account.updated: Occurs when an external bank account is @@ -164,7 +175,7 @@ module Lithic # - payment_transaction.updated: Occurs when a payment transaction is updated. # - settlement_report.updated: Occurs when a settlement report is created or # updated. - # - statements.created: Occurs when a statement has been created + # - statements.created: Occurs when a statement has been created. # - three_ds_authentication.challenge: The `three_ds_authentication.challenge` # event. Upon receiving this request, the Card Program should issue its own # challenge to the cardholder. After a cardholder challenge is successfully diff --git a/rbi/lithic/models/events/subscription_create_params.rbi b/rbi/lithic/models/events/subscription_create_params.rbi index d52e03b3..236c2fbc 100644 --- a/rbi/lithic/models/events/subscription_create_params.rbi +++ b/rbi/lithic/models/events/subscription_create_params.rbi @@ -102,7 +102,7 @@ module Lithic # The type of event that occurred. Possible values: # # - account_holder_document.updated: Occurs when an account holder's document - # upload status has been updated + # upload status has been updated. # - account_holder.created: Occurs when a new account_holder is created. # - account_holder.updated: Occurs when an account_holder is updated. # - account_holder.verification: Occurs when an asynchronous account_holder's @@ -166,10 +166,21 @@ module Lithic # This event will be deprecated in the future. We recommend using # `tokenization.updated` instead. # - # - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails. + # - dispute_evidence.upload_failed: Occurs when an evidence upload fails for a + # dispute filed through the Chargebacks API (`/v1/disputes`). + # + # This event is not emitted for Managed Disputes. + # # - dispute_transaction.created: Occurs when a new dispute transaction is created - # - dispute_transaction.updated: Occurs when a dispute transaction is updated - # - dispute.updated: Occurs when a dispute is updated. + # for a Managed Disputes case. + # - dispute_transaction.updated: Occurs when a dispute transaction for a Managed + # Disputes case is updated. + # - dispute.updated: Occurs when a dispute filed through the Chargebacks API + # (`/v1/disputes`) is created or updated. + # + # This event is not emitted for Managed Disputes. Use + # `dispute_transaction.created` and `dispute_transaction.updated` instead. + # # - external_bank_account.created: Occurs when an external bank account is # created. # - external_bank_account.updated: Occurs when an external bank account is @@ -191,7 +202,7 @@ module Lithic # - payment_transaction.updated: Occurs when a payment transaction is updated. # - settlement_report.updated: Occurs when a settlement report is created or # updated. - # - statements.created: Occurs when a statement has been created + # - statements.created: Occurs when a statement has been created. # - three_ds_authentication.challenge: The `three_ds_authentication.challenge` # event. Upon receiving this request, the Card Program should issue its own # challenge to the cardholder. After a cardholder challenge is successfully diff --git a/rbi/lithic/models/events/subscription_update_params.rbi b/rbi/lithic/models/events/subscription_update_params.rbi index 4b283d59..cd8df516 100644 --- a/rbi/lithic/models/events/subscription_update_params.rbi +++ b/rbi/lithic/models/events/subscription_update_params.rbi @@ -108,7 +108,7 @@ module Lithic # The type of event that occurred. Possible values: # # - account_holder_document.updated: Occurs when an account holder's document - # upload status has been updated + # upload status has been updated. # - account_holder.created: Occurs when a new account_holder is created. # - account_holder.updated: Occurs when an account_holder is updated. # - account_holder.verification: Occurs when an asynchronous account_holder's @@ -172,10 +172,21 @@ module Lithic # This event will be deprecated in the future. We recommend using # `tokenization.updated` instead. # - # - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails. + # - dispute_evidence.upload_failed: Occurs when an evidence upload fails for a + # dispute filed through the Chargebacks API (`/v1/disputes`). + # + # This event is not emitted for Managed Disputes. + # # - dispute_transaction.created: Occurs when a new dispute transaction is created - # - dispute_transaction.updated: Occurs when a dispute transaction is updated - # - dispute.updated: Occurs when a dispute is updated. + # for a Managed Disputes case. + # - dispute_transaction.updated: Occurs when a dispute transaction for a Managed + # Disputes case is updated. + # - dispute.updated: Occurs when a dispute filed through the Chargebacks API + # (`/v1/disputes`) is created or updated. + # + # This event is not emitted for Managed Disputes. Use + # `dispute_transaction.created` and `dispute_transaction.updated` instead. + # # - external_bank_account.created: Occurs when an external bank account is # created. # - external_bank_account.updated: Occurs when an external bank account is @@ -197,7 +208,7 @@ module Lithic # - payment_transaction.updated: Occurs when a payment transaction is updated. # - settlement_report.updated: Occurs when a settlement report is created or # updated. - # - statements.created: Occurs when a statement has been created + # - statements.created: Occurs when a statement has been created. # - three_ds_authentication.challenge: The `three_ds_authentication.challenge` # event. Upon receiving this request, the Card Program should issue its own # challenge to the cardholder. After a cardholder challenge is successfully diff --git a/rbi/lithic/models/external_payment_list_params.rbi b/rbi/lithic/models/external_payment_list_params.rbi index 31d99150..84830e53 100644 --- a/rbi/lithic/models/external_payment_list_params.rbi +++ b/rbi/lithic/models/external_payment_list_params.rbi @@ -25,7 +25,7 @@ module Lithic sig { params(business_account_token: String).void } attr_writer :business_account_token - # External Payment category to be returned. + # The external rail the funds moved on sig do returns( T.nilable(Lithic::ExternalPaymentListParams::Category::OrSymbol) @@ -121,7 +121,7 @@ module Lithic # will be included. UTC time zone. begin_: nil, business_account_token: nil, - # External Payment category to be returned. + # The external rail the funds moved on category: nil, # Date string in RFC 3339 format. Only entries created before the specified time # will be included. UTC time zone. @@ -165,7 +165,7 @@ module Lithic def to_hash end - # External Payment category to be returned. + # The external rail the funds moved on module Category extend Lithic::Internal::Type::Enum 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/external_payments.rbi b/rbi/lithic/resources/external_payments.rbi index 65b83005..9c4a15c6 100644 --- a/rbi/lithic/resources/external_payments.rbi +++ b/rbi/lithic/resources/external_payments.rbi @@ -71,7 +71,7 @@ module Lithic # will be included. UTC time zone. begin_: nil, business_account_token: nil, - # External Payment category to be returned. + # The external rail the funds moved on category: nil, # Date string in RFC 3339 format. Only entries created before the specified time # will be included. UTC time zone. 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: {} ) diff --git a/sig/lithic/models/book_transfer_create_params.rbs b/sig/lithic/models/book_transfer_create_params.rbs index 34ae9c8e..886398ec 100644 --- a/sig/lithic/models/book_transfer_create_params.rbs +++ b/sig/lithic/models/book_transfer_create_params.rbs @@ -132,6 +132,7 @@ module Lithic | :INTEREST | :LATE_PAYMENT | :BILL_PAYMENT + | :PAYMENT_FEE | :CASH_BACK | :ACCOUNT_TO_ACCOUNT | :CARD_TO_CARD @@ -171,6 +172,7 @@ module Lithic INTEREST: :INTEREST LATE_PAYMENT: :LATE_PAYMENT BILL_PAYMENT: :BILL_PAYMENT + PAYMENT_FEE: :PAYMENT_FEE CASH_BACK: :CASH_BACK ACCOUNT_TO_ACCOUNT: :ACCOUNT_TO_ACCOUNT CARD_TO_CARD: :CARD_TO_CARD diff --git a/sig/lithic/models/book_transfer_response.rbs b/sig/lithic/models/book_transfer_response.rbs index 760bcd97..021b3155 100644 --- a/sig/lithic/models/book_transfer_response.rbs +++ b/sig/lithic/models/book_transfer_response.rbs @@ -212,6 +212,7 @@ module Lithic | :INTEREST | :LATE_PAYMENT | :BILL_PAYMENT + | :PAYMENT_FEE | :CASH_BACK | :ACCOUNT_TO_ACCOUNT | :CARD_TO_CARD @@ -251,6 +252,7 @@ module Lithic INTEREST: :INTEREST LATE_PAYMENT: :LATE_PAYMENT BILL_PAYMENT: :BILL_PAYMENT + PAYMENT_FEE: :PAYMENT_FEE CASH_BACK: :CASH_BACK ACCOUNT_TO_ACCOUNT: :ACCOUNT_TO_ACCOUNT CARD_TO_CARD: :CARD_TO_CARD