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..a5715819 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 -config_hash: 5bb913c05ebeb301ec925b16e75bb251 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-59c09c7355b21b663e001d2ee1086ebd0a70d9b5433823282bca296eedff9eb0.yml +openapi_spec_hash: d9c3b932c810809abc6e973d662ad376 +config_hash: 337a99d8cc30006358b7bc2531401669 diff --git a/CHANGELOG.md b/CHANGELOG.md index 3430c766..e65cdb43 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,35 @@ # Changelog +## 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) + +### Features + +* **api:** add disposition_reasons to queues, change resolution to string in cases ([81b7499](https://github.com/lithic-com/lithic-ruby/commit/81b74990960f2f1ee8666118fc6afe8b9ac8f0ca)) +* **api:** add PAYMENT type to book transfers ([979bd5d](https://github.com/lithic-com/lithic-ruby/commit/979bd5d73e39028767418a470e10fc39cfb9686f)) +* **api:** add PROGRAM_TRANSFER category, LITHIC/BANK_PROGRAM_TRANSFER type enum values ([774ebfa](https://github.com/lithic-com/lithic-ruby/commit/774ebfa41c6c7c8d249265ba518f781f59e79237)) +* **api:** add RECIPIENT_NAME attribute to auth rules conditional ACH parameters ([7e2398e](https://github.com/lithic-com/lithic-ruby/commit/7e2398e3c0fe3d08ece0c70249da4b73764541f6)) +* **api:** add recipient_name field to payment ACH method attributes ([9ed474c](https://github.com/lithic-com/lithic-ruby/commit/9ed474c7521804e6cb99902aabea5fa4f5178ca1)) +* **api:** add REVERSED status value to payment list params ([f5f2fdb](https://github.com/lithic-com/lithic-ruby/commit/f5f2fdb6c4d34e9f4ab5ed40fb2516872b419418)) +* **api:** add stablecoin support to payments, account activity, financial events ([92a2b8b](https://github.com/lithic-com/lithic-ruby/commit/92a2b8b3ab8ecfab83ed698164de87c4b23ae31d)) +* **api:** Extend velocity Custom period cap to 90 days ([eeb4a32](https://github.com/lithic-com/lithic-ruby/commit/eeb4a3228542f9d61966dc4c09987b40bdfdde3d)) +* **stlc:** configurable CI runner and private-production-repo support in workflow templates ([69b6ead](https://github.com/lithic-com/lithic-ruby/commit/69b6ead528e48ca397c5b14bcfd5868d6819aaca)) + + +### Bug Fixes + +* **types:** make optional fields nullable in fraud transaction responses ([796975f](https://github.com/lithic-com/lithic-ruby/commit/796975f199c3f8ad5b1646274d243944398c06e8)) + + +### Documentation + +* Add card embed documentation ([0543caa](https://github.com/lithic-com/lithic-ruby/commit/0543caa4d27cde3479e6a3536cdd037073940f03)) +* **api:** clarify last_transaction_event_token parameter in financial_accounts balances ([9dd45f0](https://github.com/lithic-com/lithic-ruby/commit/9dd45f05a127d34a45db81c875446e3fd1df5e42)) +* **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.rb b/lib/lithic.rb index f15b663e..5a390511 100644 --- a/lib/lithic.rb +++ b/lib/lithic.rb @@ -256,6 +256,8 @@ require_relative "lithic/models/dispute_updated_webhook_event" require_relative "lithic/models/dispute_update_params" require_relative "lithic/models/document" +require_relative "lithic/models/embed_session_generated_webhook_event" +require_relative "lithic/models/embed_viewed_webhook_event" require_relative "lithic/models/event" require_relative "lithic/models/event_list_attempts_params" require_relative "lithic/models/event_list_params" @@ -484,7 +486,6 @@ require_relative "lithic/models/transaction_monitoring/queue_list_params" require_relative "lithic/models/transaction_monitoring/queue_retrieve_params" require_relative "lithic/models/transaction_monitoring/queue_update_params" -require_relative "lithic/models/transaction_monitoring/resolution_outcome" require_relative "lithic/models/transaction_retrieve_params" require_relative "lithic/models/transaction_route_params" require_relative "lithic/models/transactions/enhanced_commercial_data_retrieve_params" diff --git a/lib/lithic/models.rb b/lib/lithic/models.rb index 4e098cc5..5f573ad8 100644 --- a/lib/lithic/models.rb +++ b/lib/lithic/models.rb @@ -290,6 +290,10 @@ module Lithic Document = Lithic::Models::Document + EmbedSessionGeneratedWebhookEvent = Lithic::Models::EmbedSessionGeneratedWebhookEvent + + EmbedViewedWebhookEvent = Lithic::Models::EmbedViewedWebhookEvent + Event = Lithic::Models::Event EventListAttemptsParams = Lithic::Models::EventListAttemptsParams diff --git a/lib/lithic/models/account_activity_list_params.rb b/lib/lithic/models/account_activity_list_params.rb index 266e2537..5465acda 100644 --- a/lib/lithic/models/account_activity_list_params.rb +++ b/lib/lithic/models/account_activity_list_params.rb @@ -111,6 +111,7 @@ module Category ACH = :ACH WIRE = :WIRE + STABLECOIN = :STABLECOIN BALANCE_OR_FUNDING = :BALANCE_OR_FUNDING FEE = :FEE REWARD = :REWARD @@ -131,6 +132,7 @@ module Category MANAGEMENT_DISBURSEMENT = :MANAGEMENT_DISBURSEMENT HOLD = :HOLD PROGRAM_FUNDING = :PROGRAM_FUNDING + PROGRAM_TRANSFER = :PROGRAM_TRANSFER # @!method self.values # @return [Array] diff --git a/lib/lithic/models/account_activity_list_response.rb b/lib/lithic/models/account_activity_list_response.rb index b78f1541..5572dd54 100644 --- a/lib/lithic/models/account_activity_list_response.rb +++ b/lib/lithic/models/account_activity_list_response.rb @@ -150,6 +150,7 @@ module Category ACH = :ACH WIRE = :WIRE + STABLECOIN = :STABLECOIN BALANCE_OR_FUNDING = :BALANCE_OR_FUNDING FEE = :FEE REWARD = :REWARD @@ -170,6 +171,7 @@ module Category MANAGEMENT_DISBURSEMENT = :MANAGEMENT_DISBURSEMENT HOLD = :HOLD PROGRAM_FUNDING = :PROGRAM_FUNDING + PROGRAM_TRANSFER = :PROGRAM_TRANSFER # @!method self.values # @return [Array] diff --git a/lib/lithic/models/account_activity_retrieve_transaction_response.rb b/lib/lithic/models/account_activity_retrieve_transaction_response.rb index 3ce6d9cd..86cd3c86 100644 --- a/lib/lithic/models/account_activity_retrieve_transaction_response.rb +++ b/lib/lithic/models/account_activity_retrieve_transaction_response.rb @@ -153,6 +153,7 @@ module Category ACH = :ACH WIRE = :WIRE + STABLECOIN = :STABLECOIN BALANCE_OR_FUNDING = :BALANCE_OR_FUNDING FEE = :FEE REWARD = :REWARD @@ -173,6 +174,7 @@ module Category MANAGEMENT_DISBURSEMENT = :MANAGEMENT_DISBURSEMENT HOLD = :HOLD PROGRAM_FUNDING = :PROGRAM_FUNDING + PROGRAM_TRANSFER = :PROGRAM_TRANSFER # @!method self.values # @return [Array] diff --git a/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb b/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb index 1a19e416..d00b3fdd 100644 --- a/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +++ b/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb @@ -196,6 +196,7 @@ class Condition < Lithic::Internal::Type::BaseModel # (Corporate Credit or Debit Entry), WEB (Internet-Initiated/Mobile Entry), TEL # (Telephone-Initiated Entry), and others. # - `MEMO`: Optional memo or description field included with the ACH transaction. + # - `RECIPIENT_NAME`: The name of the recipient of the ACH transaction. # # @return [Symbol, Lithic::Models::AuthRules::ConditionalACHActionParameters::Condition::Attribute] required :attribute, enum: -> { Lithic::AuthRules::ConditionalACHActionParameters::Condition::Attribute } @@ -238,6 +239,7 @@ class Condition < Lithic::Internal::Type::BaseModel # (Corporate Credit or Debit Entry), WEB (Internet-Initiated/Mobile Entry), TEL # (Telephone-Initiated Entry), and others. # - `MEMO`: Optional memo or description field included with the ACH transaction. + # - `RECIPIENT_NAME`: The name of the recipient of the ACH transaction. # # @see Lithic::Models::AuthRules::ConditionalACHActionParameters::Condition#attribute module Attribute @@ -249,6 +251,7 @@ module Attribute TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT SEC_CODE = :SEC_CODE MEMO = :MEMO + RECIPIENT_NAME = :RECIPIENT_NAME # @!method self.values # @return [Array] diff --git a/lib/lithic/models/auth_rules/velocity_limit_period.rb b/lib/lithic/models/auth_rules/velocity_limit_period.rb index ce2811f8..d3d14c43 100644 --- a/lib/lithic/models/auth_rules/velocity_limit_period.rb +++ b/lib/lithic/models/auth_rules/velocity_limit_period.rb @@ -24,7 +24,7 @@ module VelocityLimitPeriod class TrailingWindowObject < Lithic::Internal::Type::BaseModel # @!attribute duration # The size of the trailing window to calculate Spend Velocity over in seconds. The - # minimum value is 10 seconds, and the maximum value is 2678400 seconds (31 days). + # minimum value is 10 seconds, and the maximum value is 7776000 seconds (90 days). # # @return [Integer] required :duration, Integer diff --git a/lib/lithic/models/book_transfer_create_params.rb b/lib/lithic/models/book_transfer_create_params.rb index 529d2a34..048e3a40 100644 --- a/lib/lithic/models/book_transfer_create_params.rb +++ b/lib/lithic/models/book_transfer_create_params.rb @@ -115,6 +115,7 @@ module Category INTERNAL = :INTERNAL REWARD = :REWARD PROGRAM_FUNDING = :PROGRAM_FUNDING + PROGRAM_TRANSFER = :PROGRAM_TRANSFER TRANSFER = :TRANSFER # @!method self.values @@ -145,6 +146,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 @@ -160,6 +162,8 @@ module Type SERVICE = :SERVICE TRANSFER = :TRANSFER COLLECTION = :COLLECTION + LITHIC_PROGRAM_TRANSFER = :LITHIC_PROGRAM_TRANSFER + BANK_PROGRAM_TRANSFER = :BANK_PROGRAM_TRANSFER # @!method self.values # @return [Array] diff --git a/lib/lithic/models/book_transfer_list_params.rb b/lib/lithic/models/book_transfer_list_params.rb index 770e78ac..e3375499 100644 --- a/lib/lithic/models/book_transfer_list_params.rb +++ b/lib/lithic/models/book_transfer_list_params.rb @@ -116,6 +116,7 @@ module Category INTERNAL = :INTERNAL REWARD = :REWARD PROGRAM_FUNDING = :PROGRAM_FUNDING + PROGRAM_TRANSFER = :PROGRAM_TRANSFER TRANSFER = :TRANSFER # @!method self.values diff --git a/lib/lithic/models/book_transfer_response.rb b/lib/lithic/models/book_transfer_response.rb index 3059d390..4d64fdb0 100644 --- a/lib/lithic/models/book_transfer_response.rb +++ b/lib/lithic/models/book_transfer_response.rb @@ -156,6 +156,7 @@ module Category INTERNAL = :INTERNAL REWARD = :REWARD PROGRAM_FUNDING = :PROGRAM_FUNDING + PROGRAM_TRANSFER = :PROGRAM_TRANSFER TRANSFER = :TRANSFER # @!method self.values @@ -285,6 +286,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 @@ -300,6 +302,8 @@ module Type SERVICE = :SERVICE TRANSFER = :TRANSFER COLLECTION = :COLLECTION + LITHIC_PROGRAM_TRANSFER = :LITHIC_PROGRAM_TRANSFER + BANK_PROGRAM_TRANSFER = :BANK_PROGRAM_TRANSFER # @!method self.values # @return [Array] diff --git a/lib/lithic/models/embed_session_generated_webhook_event.rb b/lib/lithic/models/embed_session_generated_webhook_event.rb new file mode 100644 index 00000000..4ca8a8c1 --- /dev/null +++ b/lib/lithic/models/embed_session_generated_webhook_event.rb @@ -0,0 +1,83 @@ +# frozen_string_literal: true + +module Lithic + module Models + class EmbedSessionGeneratedWebhookEvent < Lithic::Internal::Type::BaseModel + # @!attribute account_token + # The token of the account associated with the card + # + # @return [String] + required :account_token, String + + # @!attribute card_token + # The token of the card associated with the embed session + # + # @return [String] + required :card_token, String + + # @!attribute device_details + # Details about the request that generated the embed session + # + # @return [Lithic::Models::EmbedSessionGeneratedWebhookEvent::DeviceDetails] + required :device_details, -> { Lithic::EmbedSessionGeneratedWebhookEvent::DeviceDetails } + + # @!attribute event_type + # The type of event + # + # @return [Symbol, :"embed.session_generated"] + required :event_type, const: :"embed.session_generated" + + # @!attribute session_id + # The identifier shared by webhook events for the same embed session. + # + # @return [String] + required :session_id, String + + # @!attribute session_type + # The type of embed session that was generated + # + # @return [Symbol, Lithic::Models::EmbedSessionGeneratedWebhookEvent::SessionType] + required :session_type, enum: -> { Lithic::EmbedSessionGeneratedWebhookEvent::SessionType } + + # @!method initialize(account_token:, card_token:, device_details:, session_id:, session_type:, event_type: :"embed.session_generated") + # @param account_token [String] The token of the account associated with the card + # + # @param card_token [String] The token of the card associated with the embed session + # + # @param device_details [Lithic::Models::EmbedSessionGeneratedWebhookEvent::DeviceDetails] Details about the request that generated the embed session + # + # @param session_id [String] The identifier shared by webhook events for the same embed session. + # + # @param session_type [Symbol, Lithic::Models::EmbedSessionGeneratedWebhookEvent::SessionType] The type of embed session that was generated + # + # @param event_type [Symbol, :"embed.session_generated"] The type of event + + # @see Lithic::Models::EmbedSessionGeneratedWebhookEvent#device_details + class DeviceDetails < Lithic::Internal::Type::BaseModel + # @!attribute ip_address + # The IP address recorded for the request that generated the event + # + # @return [String] + required :ip_address, String + + # @!method initialize(ip_address:) + # Details about the request that generated the embed session + # + # @param ip_address [String] The IP address recorded for the request that generated the event + end + + # The type of embed session that was generated + # + # @see Lithic::Models::EmbedSessionGeneratedWebhookEvent#session_type + module SessionType + extend Lithic::Internal::Type::Enum + + CARD_EMBED = :CARD_EMBED + PIN_SETTING_EMBED = :PIN_SETTING_EMBED + + # @!method self.values + # @return [Array] + end + end + end +end diff --git a/lib/lithic/models/embed_viewed_webhook_event.rb b/lib/lithic/models/embed_viewed_webhook_event.rb new file mode 100644 index 00000000..0aa6e4a1 --- /dev/null +++ b/lib/lithic/models/embed_viewed_webhook_event.rb @@ -0,0 +1,85 @@ +# frozen_string_literal: true + +module Lithic + module Models + class EmbedViewedWebhookEvent < Lithic::Internal::Type::BaseModel + # @!attribute account_token + # The token of the account associated with the card + # + # @return [String] + required :account_token, String + + # @!attribute card_token + # The token of the card whose details were revealed + # + # @return [String] + required :card_token, String + + # @!attribute device_details + # Details about the request that revealed the card detail + # + # @return [Lithic::Models::EmbedViewedWebhookEvent::DeviceDetails] + required :device_details, -> { Lithic::EmbedViewedWebhookEvent::DeviceDetails } + + # @!attribute embed_type + # The type of card detail that was revealed + # + # @return [Symbol, Lithic::Models::EmbedViewedWebhookEvent::EmbedType] + required :embed_type, enum: -> { Lithic::EmbedViewedWebhookEvent::EmbedType } + + # @!attribute event_type + # The type of event + # + # @return [Symbol, :"embed.viewed"] + required :event_type, const: :"embed.viewed" + + # @!attribute session_id + # The identifier shared by webhook events for the same embed session. + # + # @return [String] + required :session_id, String + + # @!method initialize(account_token:, card_token:, device_details:, embed_type:, session_id:, event_type: :"embed.viewed") + # @param account_token [String] The token of the account associated with the card + # + # @param card_token [String] The token of the card whose details were revealed + # + # @param device_details [Lithic::Models::EmbedViewedWebhookEvent::DeviceDetails] Details about the request that revealed the card detail + # + # @param embed_type [Symbol, Lithic::Models::EmbedViewedWebhookEvent::EmbedType] The type of card detail that was revealed + # + # @param session_id [String] The identifier shared by webhook events for the same embed session. + # + # @param event_type [Symbol, :"embed.viewed"] The type of event + + # @see Lithic::Models::EmbedViewedWebhookEvent#device_details + class DeviceDetails < Lithic::Internal::Type::BaseModel + # @!attribute ip_address + # The IP address recorded for the request that generated the event + # + # @return [String] + required :ip_address, String + + # @!method initialize(ip_address:) + # Details about the request that revealed the card detail + # + # @param ip_address [String] The IP address recorded for the request that generated the event + end + + # The type of card detail that was revealed + # + # @see Lithic::Models::EmbedViewedWebhookEvent#embed_type + module EmbedType + extend Lithic::Internal::Type::Enum + + PAN = :PAN + CVV = :CVV + EXP_MONTH = :EXP_MONTH + EXP_YEAR = :EXP_YEAR + + # @!method self.values + # @return [Array] + end + end + end +end diff --git a/lib/lithic/models/event.rb b/lib/lithic/models/event.rb index 3ba2bec2..ded0b720 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,25 @@ 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. + # + # - embed.session_generated: Occurs when a card embed session is successfully + # generated. + # - embed.viewed: Occurs when a card detail is successfully revealed through an + # embed. # - external_bank_account.created: Occurs when an external bank account is # created. # - external_bank_account.updated: Occurs when an external bank account is @@ -111,12 +126,12 @@ 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 # completed, the Card Program needs to respond back to Lithic by call to - # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response). + # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/postthreedschallengeresponse). # Then the cardholder must navigate back to the merchant checkout flow to # complete the transaction. Some merchants will include an `app_requestor_url` # for app-based purchases; Lithic recommends triggering a redirect to that URL @@ -158,7 +173,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 +237,25 @@ 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. + # + # - embed.session_generated: Occurs when a card embed session is successfully + # generated. + # - embed.viewed: Occurs when a card detail is successfully revealed through an + # embed. # - external_bank_account.created: Occurs when an external bank account is # created. # - external_bank_account.updated: Occurs when an external bank account is @@ -247,12 +277,12 @@ 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 # completed, the Card Program needs to respond back to Lithic by call to - # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response). + # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/postthreedschallengeresponse). # Then the cardholder must navigate back to the merchant checkout flow to # complete the transaction. Some merchants will include an `app_requestor_url` # for app-based purchases; Lithic recommends triggering a redirect to that URL @@ -307,6 +337,8 @@ module EventType DISPUTE_TRANSACTION_CREATED = :"dispute_transaction.created" DISPUTE_TRANSACTION_UPDATED = :"dispute_transaction.updated" DISPUTE_UPDATED = :"dispute.updated" + EMBED_SESSION_GENERATED = :"embed.session_generated" + EMBED_VIEWED = :"embed.viewed" EXTERNAL_BANK_ACCOUNT_CREATED = :"external_bank_account.created" EXTERNAL_BANK_ACCOUNT_UPDATED = :"external_bank_account.updated" EXTERNAL_PAYMENT_CREATED = :"external_payment.created" diff --git a/lib/lithic/models/event_list_params.rb b/lib/lithic/models/event_list_params.rb index e4b64766..982d688b 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,25 @@ 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. + # + # - embed.session_generated: Occurs when a card embed session is successfully + # generated. + # - embed.viewed: Occurs when a card detail is successfully revealed through an + # embed. # - external_bank_account.created: Occurs when an external bank account is # created. # - external_bank_account.updated: Occurs when an external bank account is @@ -165,12 +180,12 @@ 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 # completed, the Card Program needs to respond back to Lithic by call to - # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response). + # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/postthreedschallengeresponse). # Then the cardholder must navigate back to the merchant checkout flow to # complete the transaction. Some merchants will include an `app_requestor_url` # for app-based purchases; Lithic recommends triggering a redirect to that URL @@ -223,6 +238,8 @@ module EventType DISPUTE_TRANSACTION_CREATED = :"dispute_transaction.created" DISPUTE_TRANSACTION_UPDATED = :"dispute_transaction.updated" DISPUTE_UPDATED = :"dispute.updated" + EMBED_SESSION_GENERATED = :"embed.session_generated" + EMBED_VIEWED = :"embed.viewed" EXTERNAL_BANK_ACCOUNT_CREATED = :"external_bank_account.created" EXTERNAL_BANK_ACCOUNT_UPDATED = :"external_bank_account.updated" EXTERNAL_PAYMENT_CREATED = :"external_payment.created" diff --git a/lib/lithic/models/event_subscription.rb b/lib/lithic/models/event_subscription.rb index daab3ce3..cad4b296 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,25 @@ 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. + # + # - embed.session_generated: Occurs when a card embed session is successfully + # generated. + # - embed.viewed: Occurs when a card detail is successfully revealed through an + # embed. # - external_bank_account.created: Occurs when an external bank account is # created. # - external_bank_account.updated: Occurs when an external bank account is @@ -138,12 +153,12 @@ 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 # completed, the Card Program needs to respond back to Lithic by call to - # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response). + # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/postthreedschallengeresponse). # Then the cardholder must navigate back to the merchant checkout flow to # complete the transaction. Some merchants will include an `app_requestor_url` # for app-based purchases; Lithic recommends triggering a redirect to that URL @@ -196,6 +211,8 @@ module EventType DISPUTE_TRANSACTION_CREATED = :"dispute_transaction.created" DISPUTE_TRANSACTION_UPDATED = :"dispute_transaction.updated" DISPUTE_UPDATED = :"dispute.updated" + EMBED_SESSION_GENERATED = :"embed.session_generated" + EMBED_VIEWED = :"embed.viewed" EXTERNAL_BANK_ACCOUNT_CREATED = :"external_bank_account.created" EXTERNAL_BANK_ACCOUNT_UPDATED = :"external_bank_account.updated" EXTERNAL_PAYMENT_CREATED = :"external_payment.created" diff --git a/lib/lithic/models/events/subscription_create_params.rb b/lib/lithic/models/events/subscription_create_params.rb index 218b5879..2fc41689 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,25 @@ 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. + # + # - embed.session_generated: Occurs when a card embed session is successfully + # generated. + # - embed.viewed: Occurs when a card detail is successfully revealed through an + # embed. # - external_bank_account.created: Occurs when an external bank account is # created. # - external_bank_account.updated: Occurs when an external bank account is @@ -140,12 +155,12 @@ 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 # completed, the Card Program needs to respond back to Lithic by call to - # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response). + # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/postthreedschallengeresponse). # Then the cardholder must navigate back to the merchant checkout flow to # complete the transaction. Some merchants will include an `app_requestor_url` # for app-based purchases; Lithic recommends triggering a redirect to that URL @@ -198,6 +213,8 @@ module EventType DISPUTE_TRANSACTION_CREATED = :"dispute_transaction.created" DISPUTE_TRANSACTION_UPDATED = :"dispute_transaction.updated" DISPUTE_UPDATED = :"dispute.updated" + EMBED_SESSION_GENERATED = :"embed.session_generated" + EMBED_VIEWED = :"embed.viewed" EXTERNAL_BANK_ACCOUNT_CREATED = :"external_bank_account.created" EXTERNAL_BANK_ACCOUNT_UPDATED = :"external_bank_account.updated" EXTERNAL_PAYMENT_CREATED = :"external_payment.created" diff --git a/lib/lithic/models/events/subscription_send_simulated_example_params.rb b/lib/lithic/models/events/subscription_send_simulated_example_params.rb index a572d64c..82e616cc 100644 --- a/lib/lithic/models/events/subscription_send_simulated_example_params.rb +++ b/lib/lithic/models/events/subscription_send_simulated_example_params.rb @@ -64,6 +64,8 @@ module EventType DISPUTE_TRANSACTION_CREATED = :"dispute_transaction.created" DISPUTE_TRANSACTION_UPDATED = :"dispute_transaction.updated" DISPUTE_UPDATED = :"dispute.updated" + EMBED_SESSION_GENERATED = :"embed.session_generated" + EMBED_VIEWED = :"embed.viewed" EXTERNAL_BANK_ACCOUNT_CREATED = :"external_bank_account.created" EXTERNAL_BANK_ACCOUNT_UPDATED = :"external_bank_account.updated" EXTERNAL_PAYMENT_CREATED = :"external_payment.created" diff --git a/lib/lithic/models/events/subscription_update_params.rb b/lib/lithic/models/events/subscription_update_params.rb index 40c826a0..f60af3a0 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,25 @@ 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. + # + # - embed.session_generated: Occurs when a card embed session is successfully + # generated. + # - embed.viewed: Occurs when a card detail is successfully revealed through an + # embed. # - external_bank_account.created: Occurs when an external bank account is # created. # - external_bank_account.updated: Occurs when an external bank account is @@ -147,12 +162,12 @@ 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 # completed, the Card Program needs to respond back to Lithic by call to - # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response). + # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/postthreedschallengeresponse). # Then the cardholder must navigate back to the merchant checkout flow to # complete the transaction. Some merchants will include an `app_requestor_url` # for app-based purchases; Lithic recommends triggering a redirect to that URL @@ -205,6 +220,8 @@ module EventType DISPUTE_TRANSACTION_CREATED = :"dispute_transaction.created" DISPUTE_TRANSACTION_UPDATED = :"dispute_transaction.updated" DISPUTE_UPDATED = :"dispute.updated" + EMBED_SESSION_GENERATED = :"embed.session_generated" + EMBED_VIEWED = :"embed.viewed" EXTERNAL_BANK_ACCOUNT_CREATED = :"external_bank_account.created" EXTERNAL_BANK_ACCOUNT_UPDATED = :"external_bank_account.updated" EXTERNAL_PAYMENT_CREATED = :"external_payment.created" 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/financial_accounts/balance_list_params.rb b/lib/lithic/models/financial_accounts/balance_list_params.rb index bb19db70..c9589d3e 100644 --- a/lib/lithic/models/financial_accounts/balance_list_params.rb +++ b/lib/lithic/models/financial_accounts/balance_list_params.rb @@ -20,9 +20,10 @@ class BalanceListParams < Lithic::Internal::Type::BaseModel optional :balance_date, Time # @!attribute last_transaction_event_token - # Balance after a given financial event occured. For example, passing the - # event_token of a $5 CARD_CLEARING financial event will return a balance - # decreased by $5 + # Balance after a given financial event occured. Note: if an account receives + # multiple events around the same time whose financial impacts cancel out, a + # balance lookup by one of those event tokens may return 404, since their combined + # impact on the account is zero. # # @return [String, nil] optional :last_transaction_event_token, String diff --git a/lib/lithic/models/financial_accounts/statements/statement_line_items.rb b/lib/lithic/models/financial_accounts/statements/statement_line_items.rb index e41c8987..3041c2ff 100644 --- a/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +++ b/lib/lithic/models/financial_accounts/statements/statement_line_items.rb @@ -150,6 +150,7 @@ module Category ACH = :ACH WIRE = :WIRE + STABLECOIN = :STABLECOIN BALANCE_OR_FUNDING = :BALANCE_OR_FUNDING FEE = :FEE REWARD = :REWARD @@ -170,6 +171,7 @@ module Category MANAGEMENT_DISBURSEMENT = :MANAGEMENT_DISBURSEMENT HOLD = :HOLD PROGRAM_FUNDING = :PROGRAM_FUNDING + PROGRAM_TRANSFER = :PROGRAM_TRANSFER # @!method self.values # @return [Array] @@ -260,6 +262,8 @@ module EventType RETURNED_PAYMENT = :RETURNED_PAYMENT RETURNED_PAYMENT_REVERSAL = :RETURNED_PAYMENT_REVERSAL LITHIC_NETWORK_PAYMENT = :LITHIC_NETWORK_PAYMENT + LITHIC_PROGRAM_TRANSFER = :LITHIC_PROGRAM_TRANSFER + BANK_PROGRAM_TRANSFER = :BANK_PROGRAM_TRANSFER ANNUAL = :ANNUAL ANNUAL_REVERSAL = :ANNUAL_REVERSAL QUARTERLY = :QUARTERLY @@ -267,6 +271,9 @@ module EventType MONTHLY = :MONTHLY MONTHLY_REVERSAL = :MONTHLY_REVERSAL ACCOUNT_TO_ACCOUNT = :ACCOUNT_TO_ACCOUNT + STABLECOIN_RECEIVED = :STABLECOIN_RECEIVED + STABLECOIN_REVIEWED = :STABLECOIN_REVIEWED + STABLECOIN_SETTLED = :STABLECOIN_SETTLED # @!method self.values # @return [Array] diff --git a/lib/lithic/models/financial_event.rb b/lib/lithic/models/financial_event.rb index 0e7fc6ab..2dadb051 100644 --- a/lib/lithic/models/financial_event.rb +++ b/lib/lithic/models/financial_event.rb @@ -149,6 +149,8 @@ module Type RETURNED_PAYMENT = :RETURNED_PAYMENT RETURNED_PAYMENT_REVERSAL = :RETURNED_PAYMENT_REVERSAL LITHIC_NETWORK_PAYMENT = :LITHIC_NETWORK_PAYMENT + LITHIC_PROGRAM_TRANSFER = :LITHIC_PROGRAM_TRANSFER + BANK_PROGRAM_TRANSFER = :BANK_PROGRAM_TRANSFER ANNUAL = :ANNUAL ANNUAL_REVERSAL = :ANNUAL_REVERSAL QUARTERLY = :QUARTERLY @@ -156,6 +158,9 @@ module Type MONTHLY = :MONTHLY MONTHLY_REVERSAL = :MONTHLY_REVERSAL ACCOUNT_TO_ACCOUNT = :ACCOUNT_TO_ACCOUNT + STABLECOIN_RECEIVED = :STABLECOIN_RECEIVED + STABLECOIN_REVIEWED = :STABLECOIN_REVIEWED + STABLECOIN_SETTLED = :STABLECOIN_SETTLED # @!method self.values # @return [Array] diff --git a/lib/lithic/models/fraud/transaction_report_response.rb b/lib/lithic/models/fraud/transaction_report_response.rb index 30f3d331..eccae11f 100644 --- a/lib/lithic/models/fraud/transaction_report_response.rb +++ b/lib/lithic/models/fraud/transaction_report_response.rb @@ -35,13 +35,13 @@ class TransactionReportResponse < Lithic::Internal::Type::BaseModel # Provides additional context or details about the fraud report. # # @return [String, nil] - optional :comment, String + optional :comment, String, nil?: true # @!attribute created_at # Timestamp representing when the fraud report was created. # # @return [Time, nil] - optional :created_at, Time + optional :created_at, Time, nil?: true # @!attribute fraud_type # Specifies the type or category of fraud that the transaction is suspected or @@ -67,13 +67,13 @@ class TransactionReportResponse < Lithic::Internal::Type::BaseModel # often through social engineering tactics. # # @return [Symbol, Lithic::Models::Fraud::TransactionReportResponse::FraudType, nil] - optional :fraud_type, enum: -> { Lithic::Models::Fraud::TransactionReportResponse::FraudType } + optional :fraud_type, enum: -> { Lithic::Models::Fraud::TransactionReportResponse::FraudType }, nil?: true # @!attribute updated_at # Timestamp representing the last update to the fraud report. # # @return [Time, nil] - optional :updated_at, Time + optional :updated_at, Time, nil?: true # @!method initialize(fraud_status:, transaction_token:, comment: nil, created_at: nil, fraud_type: nil, updated_at: nil) # Some parameter documentations has been truncated, see @@ -83,13 +83,13 @@ class TransactionReportResponse < Lithic::Internal::Type::BaseModel # # @param transaction_token [String] The universally unique identifier (UUID) associated with the transaction being r # - # @param comment [String] Provides additional context or details about the fraud report. + # @param comment [String, nil] Provides additional context or details about the fraud report. # - # @param created_at [Time] Timestamp representing when the fraud report was created. + # @param created_at [Time, nil] Timestamp representing when the fraud report was created. # - # @param fraud_type [Symbol, Lithic::Models::Fraud::TransactionReportResponse::FraudType] Specifies the type or category of fraud that the transaction is suspected or con + # @param fraud_type [Symbol, Lithic::Models::Fraud::TransactionReportResponse::FraudType, nil] Specifies the type or category of fraud that the transaction is suspected or con # - # @param updated_at [Time] Timestamp representing the last update to the fraud report. + # @param updated_at [Time, nil] Timestamp representing the last update to the fraud report. # The fraud status of the transaction, string (enum) supporting the following # values: diff --git a/lib/lithic/models/fraud/transaction_retrieve_response.rb b/lib/lithic/models/fraud/transaction_retrieve_response.rb index df1fb69e..4b0a8b39 100644 --- a/lib/lithic/models/fraud/transaction_retrieve_response.rb +++ b/lib/lithic/models/fraud/transaction_retrieve_response.rb @@ -35,13 +35,13 @@ class TransactionRetrieveResponse < Lithic::Internal::Type::BaseModel # Provides additional context or details about the fraud report. # # @return [String, nil] - optional :comment, String + optional :comment, String, nil?: true # @!attribute created_at # Timestamp representing when the fraud report was created. # # @return [Time, nil] - optional :created_at, Time + optional :created_at, Time, nil?: true # @!attribute fraud_type # Specifies the type or category of fraud that the transaction is suspected or @@ -67,13 +67,15 @@ class TransactionRetrieveResponse < Lithic::Internal::Type::BaseModel # often through social engineering tactics. # # @return [Symbol, Lithic::Models::Fraud::TransactionRetrieveResponse::FraudType, nil] - optional :fraud_type, enum: -> { Lithic::Models::Fraud::TransactionRetrieveResponse::FraudType } + optional :fraud_type, + enum: -> { Lithic::Models::Fraud::TransactionRetrieveResponse::FraudType }, + nil?: true # @!attribute updated_at # Timestamp representing the last update to the fraud report. # # @return [Time, nil] - optional :updated_at, Time + optional :updated_at, Time, nil?: true # @!method initialize(fraud_status:, transaction_token:, comment: nil, created_at: nil, fraud_type: nil, updated_at: nil) # Some parameter documentations has been truncated, see @@ -83,13 +85,13 @@ class TransactionRetrieveResponse < Lithic::Internal::Type::BaseModel # # @param transaction_token [String] The universally unique identifier (UUID) associated with the transaction being r # - # @param comment [String] Provides additional context or details about the fraud report. + # @param comment [String, nil] Provides additional context or details about the fraud report. # - # @param created_at [Time] Timestamp representing when the fraud report was created. + # @param created_at [Time, nil] Timestamp representing when the fraud report was created. # - # @param fraud_type [Symbol, Lithic::Models::Fraud::TransactionRetrieveResponse::FraudType] Specifies the type or category of fraud that the transaction is suspected or con + # @param fraud_type [Symbol, Lithic::Models::Fraud::TransactionRetrieveResponse::FraudType, nil] Specifies the type or category of fraud that the transaction is suspected or con # - # @param updated_at [Time] Timestamp representing the last update to the fraud report. + # @param updated_at [Time, nil] Timestamp representing the last update to the fraud report. # The fraud status of the transaction, string (enum) supporting the following # values: diff --git a/lib/lithic/models/parsed_webhook_event.rb b/lib/lithic/models/parsed_webhook_event.rb index effdc98b..60479516 100644 --- a/lib/lithic/models/parsed_webhook_event.rb +++ b/lib/lithic/models/parsed_webhook_event.rb @@ -83,6 +83,10 @@ module ParsedWebhookEvent # Dispute evidence. variant -> { Lithic::DisputeEvidenceUploadFailedWebhookEvent } + variant -> { Lithic::EmbedSessionGeneratedWebhookEvent } + + variant -> { Lithic::EmbedViewedWebhookEvent } + variant -> { Lithic::ExternalBankAccountCreatedWebhookEvent } variant -> { Lithic::ExternalBankAccountUpdatedWebhookEvent } @@ -826,7 +830,7 @@ module EventType end # @!method self.variants - # @return [Array(Lithic::Models::AccountHolderCreatedWebhookEvent, Lithic::Models::ParsedWebhookEvent::KYBPayload, Lithic::Models::ParsedWebhookEvent::KYCPayload, Lithic::Models::ParsedWebhookEvent::LegacyPayload, Lithic::Models::AccountHolderVerificationWebhookEvent, Lithic::Models::AccountHolderDocumentUpdatedWebhookEvent, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent, Lithic::Models::CardAuthorizationChallengeWebhookEvent, Lithic::Models::CardAuthorizationChallengeResponseWebhookEvent, Lithic::Models::AuthRulesBacktestReportCreatedWebhookEvent, Lithic::Models::BalanceUpdatedWebhookEvent, Lithic::Models::BookTransferTransactionCreatedWebhookEvent, Lithic::Models::BookTransferTransactionUpdatedWebhookEvent, Lithic::Models::CardCreatedWebhookEvent, Lithic::Models::CardConvertedWebhookEvent, Lithic::Models::CardRenewedWebhookEvent, Lithic::Models::CardReissuedWebhookEvent, Lithic::Models::CardShippedWebhookEvent, Lithic::Models::CardUpdatedWebhookEvent, Lithic::Models::CardTransactionUpdatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataCreatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataUpdatedWebhookEvent, Lithic::Models::ClaimCreatedWebhookEvent, Lithic::Models::ClaimUpdatedWebhookEvent, Lithic::Models::ClaimDocumentUploadedWebhookEvent, Lithic::Models::ClaimDocumentAcceptedWebhookEvent, Lithic::Models::ClaimDocumentRejectedWebhookEvent, Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent, Lithic::Models::DigitalWalletTokenizationResultWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::DigitalWalletTokenizationUpdatedWebhookEvent, Lithic::Models::DisputeUpdatedWebhookEvent, Lithic::Models::DisputeEvidenceUploadFailedWebhookEvent, Lithic::Models::ExternalBankAccountCreatedWebhookEvent, Lithic::Models::ExternalBankAccountUpdatedWebhookEvent, Lithic::Models::ExternalPaymentCreatedWebhookEvent, Lithic::Models::ExternalPaymentUpdatedWebhookEvent, Lithic::Models::FinancialAccountCreatedWebhookEvent, Lithic::Models::FinancialAccountUpdatedWebhookEvent, Lithic::Models::FundingEventCreatedWebhookEvent, Lithic::Models::LoanTapeCreatedWebhookEvent, Lithic::Models::LoanTapeUpdatedWebhookEvent, Lithic::Models::ManagementOperationCreatedWebhookEvent, Lithic::Models::ManagementOperationUpdatedWebhookEvent, Lithic::Models::InternalTransactionCreatedWebhookEvent, Lithic::Models::InternalTransactionUpdatedWebhookEvent, Lithic::Models::NetworkTotalCreatedWebhookEvent, Lithic::Models::NetworkTotalUpdatedWebhookEvent, Lithic::Models::PaymentTransactionCreatedWebhookEvent, Lithic::Models::PaymentTransactionUpdatedWebhookEvent, Lithic::Models::SettlementReportUpdatedWebhookEvent, Lithic::Models::StatementsCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationChallengeWebhookEvent, Lithic::Models::TokenizationApprovalRequestWebhookEvent, Lithic::Models::TokenizationResultWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::TokenizationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationApprovalRequestWebhookEvent, Lithic::Models::DisputeTransactionCreatedWebhookEvent, Lithic::Models::DisputeTransactionUpdatedWebhookEvent)] + # @return [Array(Lithic::Models::AccountHolderCreatedWebhookEvent, Lithic::Models::ParsedWebhookEvent::KYBPayload, Lithic::Models::ParsedWebhookEvent::KYCPayload, Lithic::Models::ParsedWebhookEvent::LegacyPayload, Lithic::Models::AccountHolderVerificationWebhookEvent, Lithic::Models::AccountHolderDocumentUpdatedWebhookEvent, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent, Lithic::Models::CardAuthorizationChallengeWebhookEvent, Lithic::Models::CardAuthorizationChallengeResponseWebhookEvent, Lithic::Models::AuthRulesBacktestReportCreatedWebhookEvent, Lithic::Models::BalanceUpdatedWebhookEvent, Lithic::Models::BookTransferTransactionCreatedWebhookEvent, Lithic::Models::BookTransferTransactionUpdatedWebhookEvent, Lithic::Models::CardCreatedWebhookEvent, Lithic::Models::CardConvertedWebhookEvent, Lithic::Models::CardRenewedWebhookEvent, Lithic::Models::CardReissuedWebhookEvent, Lithic::Models::CardShippedWebhookEvent, Lithic::Models::CardUpdatedWebhookEvent, Lithic::Models::CardTransactionUpdatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataCreatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataUpdatedWebhookEvent, Lithic::Models::ClaimCreatedWebhookEvent, Lithic::Models::ClaimUpdatedWebhookEvent, Lithic::Models::ClaimDocumentUploadedWebhookEvent, Lithic::Models::ClaimDocumentAcceptedWebhookEvent, Lithic::Models::ClaimDocumentRejectedWebhookEvent, Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent, Lithic::Models::DigitalWalletTokenizationResultWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::DigitalWalletTokenizationUpdatedWebhookEvent, Lithic::Models::DisputeUpdatedWebhookEvent, Lithic::Models::DisputeEvidenceUploadFailedWebhookEvent, Lithic::Models::EmbedSessionGeneratedWebhookEvent, Lithic::Models::EmbedViewedWebhookEvent, Lithic::Models::ExternalBankAccountCreatedWebhookEvent, Lithic::Models::ExternalBankAccountUpdatedWebhookEvent, Lithic::Models::ExternalPaymentCreatedWebhookEvent, Lithic::Models::ExternalPaymentUpdatedWebhookEvent, Lithic::Models::FinancialAccountCreatedWebhookEvent, Lithic::Models::FinancialAccountUpdatedWebhookEvent, Lithic::Models::FundingEventCreatedWebhookEvent, Lithic::Models::LoanTapeCreatedWebhookEvent, Lithic::Models::LoanTapeUpdatedWebhookEvent, Lithic::Models::ManagementOperationCreatedWebhookEvent, Lithic::Models::ManagementOperationUpdatedWebhookEvent, Lithic::Models::InternalTransactionCreatedWebhookEvent, Lithic::Models::InternalTransactionUpdatedWebhookEvent, Lithic::Models::NetworkTotalCreatedWebhookEvent, Lithic::Models::NetworkTotalUpdatedWebhookEvent, Lithic::Models::PaymentTransactionCreatedWebhookEvent, Lithic::Models::PaymentTransactionUpdatedWebhookEvent, Lithic::Models::SettlementReportUpdatedWebhookEvent, Lithic::Models::StatementsCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationChallengeWebhookEvent, Lithic::Models::TokenizationApprovalRequestWebhookEvent, Lithic::Models::TokenizationResultWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::TokenizationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationApprovalRequestWebhookEvent, Lithic::Models::DisputeTransactionCreatedWebhookEvent, Lithic::Models::DisputeTransactionUpdatedWebhookEvent)] end end end diff --git a/lib/lithic/models/payment.rb b/lib/lithic/models/payment.rb index 24809660..99d200f1 100644 --- a/lib/lithic/models/payment.rb +++ b/lib/lithic/models/payment.rb @@ -202,6 +202,7 @@ module Category ACH = :ACH WIRE = :WIRE + STABLECOIN = :STABLECOIN BALANCE_OR_FUNDING = :BALANCE_OR_FUNDING FEE = :FEE REWARD = :REWARD @@ -222,6 +223,7 @@ module Category MANAGEMENT_DISBURSEMENT = :MANAGEMENT_DISBURSEMENT HOLD = :HOLD PROGRAM_FUNDING = :PROGRAM_FUNDING + PROGRAM_TRANSFER = :PROGRAM_TRANSFER # @!method self.values # @return [Array] @@ -321,6 +323,13 @@ class Event < Lithic::Internal::Type::BaseModel # - `WIRE_RETURN_OUTBOUND_REJECTED` - Outbound wire return rejected by the Federal # Reserve. # + # Stablecoin events: + # + # - `STABLECOIN_RECEIVED` - Stablecoin pay-in received on-chain and pending + # release to available balance. + # - `STABLECOIN_REVIEWED` - Stablecoin pay-in has completed the review process. + # - `STABLECOIN_SETTLED` - Stablecoin pay-in funds released to available balance. + # # @return [Symbol, Lithic::Models::Payment::Event::Type] required :type, enum: -> { Lithic::Payment::Event::Type } @@ -430,6 +439,13 @@ module Result # - `WIRE_RETURN_OUTBOUND_REJECTED` - Outbound wire return rejected by the Federal # Reserve. # + # Stablecoin events: + # + # - `STABLECOIN_RECEIVED` - Stablecoin pay-in received on-chain and pending + # release to available balance. + # - `STABLECOIN_REVIEWED` - Stablecoin pay-in has completed the review process. + # - `STABLECOIN_SETTLED` - Stablecoin pay-in funds released to available balance. + # # @see Lithic::Models::Payment::Event#type module Type extend Lithic::Internal::Type::Enum @@ -456,6 +472,9 @@ module Type WIRE_RETURN_OUTBOUND_SENT = :WIRE_RETURN_OUTBOUND_SENT WIRE_RETURN_OUTBOUND_SETTLED = :WIRE_RETURN_OUTBOUND_SETTLED WIRE_RETURN_OUTBOUND_REJECTED = :WIRE_RETURN_OUTBOUND_REJECTED + STABLECOIN_RECEIVED = :STABLECOIN_RECEIVED + STABLECOIN_REVIEWED = :STABLECOIN_REVIEWED + STABLECOIN_SETTLED = :STABLECOIN_SETTLED # @!method self.values # @return [Array] @@ -539,6 +558,12 @@ class ACHMethodAttributes < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :receipt_routing_number, String, nil?: true + # @!attribute recipient_name + # Name of the recipient on ACH receipts. Reflects the originating bank's record + # + # @return [String, nil] + optional :recipient_name, String, nil?: true + # @!attribute retries # Number of retries attempted # @@ -557,7 +582,7 @@ class ACHMethodAttributes < Lithic::Internal::Type::BaseModel # @return [Array, nil] optional :trace_numbers, Lithic::Internal::Type::ArrayOf[String] - # @!method initialize(sec_code:, ach_hold_period: nil, addenda: nil, company_id: nil, override_company_name: nil, receipt_routing_number: nil, retries: nil, return_reason_code: nil, trace_numbers: nil) + # @!method initialize(sec_code:, ach_hold_period: nil, addenda: nil, company_id: nil, override_company_name: nil, receipt_routing_number: nil, recipient_name: nil, retries: nil, return_reason_code: nil, trace_numbers: nil) # Some parameter documentations has been truncated, see # {Lithic::Models::Payment::MethodAttributes::ACHMethodAttributes} for more # details. @@ -574,6 +599,8 @@ class ACHMethodAttributes < Lithic::Internal::Type::BaseModel # # @param receipt_routing_number [String, nil] Receipt routing number # + # @param recipient_name [String, nil] Name of the recipient on ACH receipts. Reflects the originating bank's record + # # @param retries [Integer, nil] Number of retries attempted # # @param return_reason_code [String, nil] Return reason code if the transaction was returned diff --git a/lib/lithic/models/payment_list_params.rb b/lib/lithic/models/payment_list_params.rb index 2da625f0..721f43a0 100644 --- a/lib/lithic/models/payment_list_params.rb +++ b/lib/lithic/models/payment_list_params.rb @@ -124,6 +124,7 @@ module Status DECLINED = :DECLINED PENDING = :PENDING RETURNED = :RETURNED + REVERSED = :REVERSED SETTLED = :SETTLED # @!method self.values diff --git a/lib/lithic/models/transaction_monitoring/case_update_params.rb b/lib/lithic/models/transaction_monitoring/case_update_params.rb index 1a9b7317..06037f07 100644 --- a/lib/lithic/models/transaction_monitoring/case_update_params.rb +++ b/lib/lithic/models/transaction_monitoring/case_update_params.rb @@ -34,17 +34,11 @@ class CaseUpdateParams < Lithic::Internal::Type::BaseModel optional :priority, enum: -> { Lithic::TransactionMonitoring::CasePriority } # @!attribute resolution - # Outcome recorded when a case is resolved: + # Resolution to record on the case. Must be one of the `allowed_resolutions` + # configured on the case's queue, otherwise the request is rejected with a `400` # - # - `CONFIRMED_FRAUD` - The reviewed activity was confirmed to be fraudulent - # - `SUSPICIOUS_ACTIVITY` - The activity is suspicious but not confirmed fraud - # - `FALSE_POSITIVE` - The activity was legitimate and the alert was a false - # positive - # - `NO_ACTION_REQUIRED` - No further action is required - # - `ESCALATED_EXTERNAL` - The case was escalated to an external party - # - # @return [Symbol, Lithic::Models::TransactionMonitoring::ResolutionOutcome, nil] - optional :resolution, enum: -> { Lithic::TransactionMonitoring::ResolutionOutcome } + # @return [String, nil] + optional :resolution, String # @!attribute resolution_notes # Notes describing the resolution @@ -97,7 +91,7 @@ class CaseUpdateParams < Lithic::Internal::Type::BaseModel # # @param priority [Symbol, Lithic::Models::TransactionMonitoring::CasePriority] Priority level of a case, controlling queue ordering and SLA urgency # - # @param resolution [Symbol, Lithic::Models::TransactionMonitoring::ResolutionOutcome] Outcome recorded when a case is resolved: + # @param resolution [String] Resolution to record on the case. Must be one of the # # @param resolution_notes [String] Notes describing the resolution # diff --git a/lib/lithic/models/transaction_monitoring/monitoring_case.rb b/lib/lithic/models/transaction_monitoring/monitoring_case.rb index 7f43fb74..65d36b3b 100644 --- a/lib/lithic/models/transaction_monitoring/monitoring_case.rb +++ b/lib/lithic/models/transaction_monitoring/monitoring_case.rb @@ -54,17 +54,11 @@ class MonitoringCase < Lithic::Internal::Type::BaseModel required :queue_token, String # @!attribute resolution - # Outcome recorded when a case is resolved: + # Outcome recorded when the case was resolved, from the `allowed_resolutions` + # configured on the case's queue # - # - `CONFIRMED_FRAUD` - The reviewed activity was confirmed to be fraudulent - # - `SUSPICIOUS_ACTIVITY` - The activity is suspicious but not confirmed fraud - # - `FALSE_POSITIVE` - The activity was legitimate and the alert was a false - # positive - # - `NO_ACTION_REQUIRED` - No further action is required - # - `ESCALATED_EXTERNAL` - The case was escalated to an external party - # - # @return [Symbol, Lithic::Models::TransactionMonitoring::ResolutionOutcome, nil] - required :resolution, enum: -> { Lithic::TransactionMonitoring::ResolutionOutcome }, nil?: true + # @return [String, nil] + required :resolution, String, nil?: true # @!attribute resolution_notes # Free-form notes describing the resolution @@ -145,7 +139,7 @@ class MonitoringCase < Lithic::Internal::Type::BaseModel # # @param queue_token [String] Token of the queue the case belongs to # - # @param resolution [Symbol, Lithic::Models::TransactionMonitoring::ResolutionOutcome, nil] Outcome recorded when a case is resolved: + # @param resolution [String, nil] Outcome recorded when the case was resolved, from the `allowed_resolutions` # # @param resolution_notes [String, nil] Free-form notes describing the resolution # diff --git a/lib/lithic/models/transaction_monitoring/queue.rb b/lib/lithic/models/transaction_monitoring/queue.rb index ac563d9e..e4c59637 100644 --- a/lib/lithic/models/transaction_monitoring/queue.rb +++ b/lib/lithic/models/transaction_monitoring/queue.rb @@ -11,6 +11,13 @@ class Queue < Lithic::Internal::Type::BaseModel # @return [String] required :token, String + # @!attribute allowed_resolutions + # Resolutions that can be recorded on cases in this queue. Always the effective + # list: the queue's own values when it defines them, otherwise the default list + # + # @return [Array] + required :allowed_resolutions, Lithic::Internal::Type::ArrayOf[String] + # @!attribute case_counts # Number of cases in the queue, broken down by status. A status is omitted when # the queue has no cases in that status @@ -42,7 +49,7 @@ class Queue < Lithic::Internal::Type::BaseModel # @return [Time] required :updated, Time - # @!method initialize(token:, case_counts:, created:, description:, name:, updated:) + # @!method initialize(token:, allowed_resolutions:, case_counts:, created:, description:, name:, updated:) # Some parameter documentations has been truncated, see # {Lithic::Models::TransactionMonitoring::Queue} for more details. # @@ -50,6 +57,8 @@ class Queue < Lithic::Internal::Type::BaseModel # # @param token [String] Globally unique identifier for the queue # + # @param allowed_resolutions [Array] Resolutions that can be recorded on cases in this queue. Always the effective + # # @param case_counts [Lithic::Models::TransactionMonitoring::Queue::CaseCounts] Number of cases in the queue, broken down by status. A status is omitted # # @param created [Time] Date and time at which the queue was created diff --git a/lib/lithic/models/transaction_monitoring/queue_create_params.rb b/lib/lithic/models/transaction_monitoring/queue_create_params.rb index 594dd9a4..c9214670 100644 --- a/lib/lithic/models/transaction_monitoring/queue_create_params.rb +++ b/lib/lithic/models/transaction_monitoring/queue_create_params.rb @@ -14,15 +14,28 @@ class QueueCreateParams < Lithic::Internal::Type::BaseModel # @return [String] required :name, String + # @!attribute allowed_resolutions + # Resolutions that can be recorded on cases in this queue. Omit or send `null` to + # use the default list. Values are free-form labels and must be non-empty and + # unique + # + # @return [Array, nil] + optional :allowed_resolutions, Lithic::Internal::Type::ArrayOf[String], nil?: true + # @!attribute description # Optional description of the queue # # @return [String, nil] optional :description, String, nil?: true - # @!method initialize(name:, description: nil, request_options: {}) + # @!method initialize(name:, allowed_resolutions: nil, description: nil, request_options: {}) + # Some parameter documentations has been truncated, see + # {Lithic::Models::TransactionMonitoring::QueueCreateParams} for more details. + # # @param name [String] Human-readable name of the queue # + # @param allowed_resolutions [Array, nil] Resolutions that can be recorded on cases in this queue. Omit or send `null` to + # # @param description [String, nil] Optional description of the queue # # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}] diff --git a/lib/lithic/models/transaction_monitoring/queue_update_params.rb b/lib/lithic/models/transaction_monitoring/queue_update_params.rb index ddae6426..1b6b22b6 100644 --- a/lib/lithic/models/transaction_monitoring/queue_update_params.rb +++ b/lib/lithic/models/transaction_monitoring/queue_update_params.rb @@ -13,6 +13,15 @@ class QueueUpdateParams < Lithic::Internal::Type::BaseModel # @return [String] required :queue_token, String + # @!attribute allowed_resolutions + # New list of resolutions that can be recorded on cases in this queue, or `null` + # to revert to the default list. Values are free-form labels and must be non-empty + # and unique. Changing the list only affects what is selectable going forward; the + # `resolution` already stored on a case is preserved as-is + # + # @return [Array, nil] + optional :allowed_resolutions, Lithic::Internal::Type::ArrayOf[String], nil?: true + # @!attribute description # New description for the queue, or `null` to clear it # @@ -25,9 +34,14 @@ class QueueUpdateParams < Lithic::Internal::Type::BaseModel # @return [String, nil] optional :name, String - # @!method initialize(queue_token:, description: nil, name: nil, request_options: {}) + # @!method initialize(queue_token:, allowed_resolutions: nil, description: nil, name: nil, request_options: {}) + # Some parameter documentations has been truncated, see + # {Lithic::Models::TransactionMonitoring::QueueUpdateParams} for more details. + # # @param queue_token [String] # + # @param allowed_resolutions [Array, nil] New list of resolutions that can be recorded on cases in this queue, or `null` t + # # @param description [String, nil] New description for the queue, or `null` to clear it # # @param name [String] New name for the queue diff --git a/lib/lithic/models/transaction_monitoring/resolution_outcome.rb b/lib/lithic/models/transaction_monitoring/resolution_outcome.rb deleted file mode 100644 index aa1d352a..00000000 --- a/lib/lithic/models/transaction_monitoring/resolution_outcome.rb +++ /dev/null @@ -1,28 +0,0 @@ -# frozen_string_literal: true - -module Lithic - module Models - module TransactionMonitoring - # Outcome recorded when a case is resolved: - # - # - `CONFIRMED_FRAUD` - The reviewed activity was confirmed to be fraudulent - # - `SUSPICIOUS_ACTIVITY` - The activity is suspicious but not confirmed fraud - # - `FALSE_POSITIVE` - The activity was legitimate and the alert was a false - # positive - # - `NO_ACTION_REQUIRED` - No further action is required - # - `ESCALATED_EXTERNAL` - The case was escalated to an external party - module ResolutionOutcome - extend Lithic::Internal::Type::Enum - - CONFIRMED_FRAUD = :CONFIRMED_FRAUD - SUSPICIOUS_ACTIVITY = :SUSPICIOUS_ACTIVITY - FALSE_POSITIVE = :FALSE_POSITIVE - NO_ACTION_REQUIRED = :NO_ACTION_REQUIRED - ESCALATED_EXTERNAL = :ESCALATED_EXTERNAL - - # @!method self.values - # @return [Array] - end - end - end -end 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/card_authorizations.rb b/lib/lithic/resources/card_authorizations.rb index 14d41cf1..1a96a970 100644 --- a/lib/lithic/resources/card_authorizations.rb +++ b/lib/lithic/resources/card_authorizations.rb @@ -8,7 +8,7 @@ class CardAuthorizations # # Card program's response to Authorization Challenge. Programs that have # Authorization Challenges configured as Out of Band receive a - # [card_authorization.challenge](https://docs.lithic.com/reference/post_card-authorization-challenge) + # [card_authorization.challenge](https://docs.lithic.com/reference/cardauthorizationchallengewebhook) # webhook when an authorization attempt triggers a challenge. The card program # should respond using this endpoint after the cardholder completes the challenge. # diff --git a/lib/lithic/resources/cards.rb b/lib/lithic/resources/cards.rb index 7eb72a22..fc8d23bd 100644 --- a/lib/lithic/resources/cards.rb +++ b/lib/lithic/resources/cards.rb @@ -228,6 +228,11 @@ def convert_physical(card_token, params) ) end + # @deprecated + # + # **Deprecated.** Use the modern embedded card flow instead: create a session with + # `POST /v1/cards/{card_token}/embed` and render it via `GET /v1/embed`. + # # Handling full card PANs and CVV codes requires that you comply with the Payment # Card Industry Data Security Standards (PCI DSS). Some clients choose to reduce # their compliance obligations by leveraging our embedded card UI solution 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/three_ds/decisioning.rb b/lib/lithic/resources/three_ds/decisioning.rb index dbaa8c77..b3702456 100644 --- a/lib/lithic/resources/three_ds/decisioning.rb +++ b/lib/lithic/resources/three_ds/decisioning.rb @@ -9,7 +9,7 @@ class Decisioning # # Card program's response to a 3DS Challenge Request. Challenge Request is emitted # as a webhook - # [three_ds_authentication.challenge](https://docs.lithic.com/reference/post_three-ds-authentication-challenge) + # [three_ds_authentication.challenge](https://docs.lithic.com/reference/threedsauthenticationchallengewebhook) # and your Card Program needs to be configured with Out of Band (OOB) Challenges # in order to receive it (see https://docs.lithic.com/docs/3ds-challenge-flow for # more information). diff --git a/lib/lithic/resources/transaction_monitoring/cases.rb b/lib/lithic/resources/transaction_monitoring/cases.rb index bee2ab64..3aabab5c 100644 --- a/lib/lithic/resources/transaction_monitoring/cases.rb +++ b/lib/lithic/resources/transaction_monitoring/cases.rb @@ -45,7 +45,7 @@ def retrieve(case_token, params = {}) # # @param priority [Symbol, Lithic::Models::TransactionMonitoring::CasePriority] Priority level of a case, controlling queue ordering and SLA urgency # - # @param resolution [Symbol, Lithic::Models::TransactionMonitoring::ResolutionOutcome] Outcome recorded when a case is resolved: + # @param resolution [String] Resolution to record on the case. Must be one of the # # @param resolution_notes [String] Notes describing the resolution # diff --git a/lib/lithic/resources/transaction_monitoring/queues.rb b/lib/lithic/resources/transaction_monitoring/queues.rb index 5b2b2fd9..b079859d 100644 --- a/lib/lithic/resources/transaction_monitoring/queues.rb +++ b/lib/lithic/resources/transaction_monitoring/queues.rb @@ -4,12 +4,17 @@ module Lithic module Resources class TransactionMonitoring class Queues + # Some parameter documentations has been truncated, see + # {Lithic::Models::TransactionMonitoring::QueueCreateParams} for more details. + # # Creates a new queue for grouping transaction monitoring cases. # - # @overload create(name:, description: nil, request_options: {}) + # @overload create(name:, allowed_resolutions: nil, description: nil, request_options: {}) # # @param name [String] Human-readable name of the queue # + # @param allowed_resolutions [Array, nil] Resolutions that can be recorded on cases in this queue. Omit or send `null` to + # # @param description [String, nil] Optional description of the queue # # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] @@ -48,12 +53,17 @@ def retrieve(queue_token, params = {}) ) end + # Some parameter documentations has been truncated, see + # {Lithic::Models::TransactionMonitoring::QueueUpdateParams} for more details. + # # Updates a transaction monitoring queue. # - # @overload update(queue_token, description: nil, name: nil, request_options: {}) + # @overload update(queue_token, allowed_resolutions: nil, description: nil, name: nil, request_options: {}) # # @param queue_token [String] Globally unique identifier for the queue. # + # @param allowed_resolutions [Array, nil] New list of resolutions that can be recorded on cases in this queue, or `null` t + # # @param description [String, nil] New description for the queue, or `null` to clear it # # @param name [String] New name for the queue 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/resources/webhooks.rb b/lib/lithic/resources/webhooks.rb index 6ce46b1c..5b209120 100644 --- a/lib/lithic/resources/webhooks.rb +++ b/lib/lithic/resources/webhooks.rb @@ -9,7 +9,7 @@ class Webhooks # @param headers [Hash{String => String}] The webhook request headers # @param secret [String, nil] The webhook secret. If not provided, reads from LITHIC_WEBHOOK_SECRET environment variable. # - # @return [Lithic::Models::AccountHolderCreatedWebhookEvent, Lithic::Models::ParsedWebhookEvent::KYBPayload, Lithic::Models::ParsedWebhookEvent::KYCPayload, Lithic::Models::ParsedWebhookEvent::LegacyPayload, Lithic::Models::AccountHolderVerificationWebhookEvent, Lithic::Models::AccountHolderDocumentUpdatedWebhookEvent, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent, Lithic::Models::CardAuthorizationChallengeWebhookEvent, Lithic::Models::CardAuthorizationChallengeResponseWebhookEvent, Lithic::Models::AuthRulesBacktestReportCreatedWebhookEvent, Lithic::Models::BalanceUpdatedWebhookEvent, Lithic::Models::BookTransferTransactionCreatedWebhookEvent, Lithic::Models::BookTransferTransactionUpdatedWebhookEvent, Lithic::Models::CardCreatedWebhookEvent, Lithic::Models::CardConvertedWebhookEvent, Lithic::Models::CardRenewedWebhookEvent, Lithic::Models::CardReissuedWebhookEvent, Lithic::Models::CardShippedWebhookEvent, Lithic::Models::CardUpdatedWebhookEvent, Lithic::Models::CardTransactionUpdatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataCreatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataUpdatedWebhookEvent, Lithic::Models::ClaimCreatedWebhookEvent, Lithic::Models::ClaimUpdatedWebhookEvent, Lithic::Models::ClaimDocumentUploadedWebhookEvent, Lithic::Models::ClaimDocumentAcceptedWebhookEvent, Lithic::Models::ClaimDocumentRejectedWebhookEvent, Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent, Lithic::Models::DigitalWalletTokenizationResultWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::DigitalWalletTokenizationUpdatedWebhookEvent, Lithic::Models::DisputeUpdatedWebhookEvent, Lithic::Models::DisputeEvidenceUploadFailedWebhookEvent, Lithic::Models::ExternalBankAccountCreatedWebhookEvent, Lithic::Models::ExternalBankAccountUpdatedWebhookEvent, Lithic::Models::ExternalPaymentCreatedWebhookEvent, Lithic::Models::ExternalPaymentUpdatedWebhookEvent, Lithic::Models::FinancialAccountCreatedWebhookEvent, Lithic::Models::FinancialAccountUpdatedWebhookEvent, Lithic::Models::FundingEventCreatedWebhookEvent, Lithic::Models::LoanTapeCreatedWebhookEvent, Lithic::Models::LoanTapeUpdatedWebhookEvent, Lithic::Models::ManagementOperationCreatedWebhookEvent, Lithic::Models::ManagementOperationUpdatedWebhookEvent, Lithic::Models::InternalTransactionCreatedWebhookEvent, Lithic::Models::InternalTransactionUpdatedWebhookEvent, Lithic::Models::NetworkTotalCreatedWebhookEvent, Lithic::Models::NetworkTotalUpdatedWebhookEvent, Lithic::Models::PaymentTransactionCreatedWebhookEvent, Lithic::Models::PaymentTransactionUpdatedWebhookEvent, Lithic::Models::SettlementReportUpdatedWebhookEvent, Lithic::Models::StatementsCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationChallengeWebhookEvent, Lithic::Models::TokenizationApprovalRequestWebhookEvent, Lithic::Models::TokenizationResultWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::TokenizationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationApprovalRequestWebhookEvent, Lithic::Models::DisputeTransactionCreatedWebhookEvent, Lithic::Models::DisputeTransactionUpdatedWebhookEvent] # + # @return [Lithic::Models::AccountHolderCreatedWebhookEvent, Lithic::Models::ParsedWebhookEvent::KYBPayload, Lithic::Models::ParsedWebhookEvent::KYCPayload, Lithic::Models::ParsedWebhookEvent::LegacyPayload, Lithic::Models::AccountHolderVerificationWebhookEvent, Lithic::Models::AccountHolderDocumentUpdatedWebhookEvent, Lithic::Models::CardAuthorizationApprovalRequestWebhookEvent, Lithic::Models::CardAuthorizationChallengeWebhookEvent, Lithic::Models::CardAuthorizationChallengeResponseWebhookEvent, Lithic::Models::AuthRulesBacktestReportCreatedWebhookEvent, Lithic::Models::BalanceUpdatedWebhookEvent, Lithic::Models::BookTransferTransactionCreatedWebhookEvent, Lithic::Models::BookTransferTransactionUpdatedWebhookEvent, Lithic::Models::CardCreatedWebhookEvent, Lithic::Models::CardConvertedWebhookEvent, Lithic::Models::CardRenewedWebhookEvent, Lithic::Models::CardReissuedWebhookEvent, Lithic::Models::CardShippedWebhookEvent, Lithic::Models::CardUpdatedWebhookEvent, Lithic::Models::CardTransactionUpdatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataCreatedWebhookEvent, Lithic::Models::CardTransactionEnhancedDataUpdatedWebhookEvent, Lithic::Models::ClaimCreatedWebhookEvent, Lithic::Models::ClaimUpdatedWebhookEvent, Lithic::Models::ClaimDocumentUploadedWebhookEvent, Lithic::Models::ClaimDocumentAcceptedWebhookEvent, Lithic::Models::ClaimDocumentRejectedWebhookEvent, Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent, Lithic::Models::DigitalWalletTokenizationResultWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::DigitalWalletTokenizationUpdatedWebhookEvent, Lithic::Models::DisputeUpdatedWebhookEvent, Lithic::Models::DisputeEvidenceUploadFailedWebhookEvent, Lithic::Models::EmbedSessionGeneratedWebhookEvent, Lithic::Models::EmbedViewedWebhookEvent, Lithic::Models::ExternalBankAccountCreatedWebhookEvent, Lithic::Models::ExternalBankAccountUpdatedWebhookEvent, Lithic::Models::ExternalPaymentCreatedWebhookEvent, Lithic::Models::ExternalPaymentUpdatedWebhookEvent, Lithic::Models::FinancialAccountCreatedWebhookEvent, Lithic::Models::FinancialAccountUpdatedWebhookEvent, Lithic::Models::FundingEventCreatedWebhookEvent, Lithic::Models::LoanTapeCreatedWebhookEvent, Lithic::Models::LoanTapeUpdatedWebhookEvent, Lithic::Models::ManagementOperationCreatedWebhookEvent, Lithic::Models::ManagementOperationUpdatedWebhookEvent, Lithic::Models::InternalTransactionCreatedWebhookEvent, Lithic::Models::InternalTransactionUpdatedWebhookEvent, Lithic::Models::NetworkTotalCreatedWebhookEvent, Lithic::Models::NetworkTotalUpdatedWebhookEvent, Lithic::Models::PaymentTransactionCreatedWebhookEvent, Lithic::Models::PaymentTransactionUpdatedWebhookEvent, Lithic::Models::SettlementReportUpdatedWebhookEvent, Lithic::Models::StatementsCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationCreatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationChallengeWebhookEvent, Lithic::Models::TokenizationApprovalRequestWebhookEvent, Lithic::Models::TokenizationResultWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeWebhookEvent, Lithic::Models::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent, Lithic::Models::TokenizationUpdatedWebhookEvent, Lithic::Models::ThreeDSAuthenticationApprovalRequestWebhookEvent, Lithic::Models::DisputeTransactionCreatedWebhookEvent, Lithic::Models::DisputeTransactionUpdatedWebhookEvent] # # @raise [ArgumentError] if secret is not provided and LITHIC_WEBHOOK_SECRET env var is not set # @raise [Lithic::Errors::MissingDependencyError] if the standardwebhooks gem is not installed # @raise [StandardWebhooks::WebhookVerificationError] if the signature is invalid 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.rbi b/rbi/lithic/models.rbi index 448fbd2c..7a10292c 100644 --- a/rbi/lithic/models.rbi +++ b/rbi/lithic/models.rbi @@ -278,6 +278,11 @@ module Lithic Document = Lithic::Models::Document + EmbedSessionGeneratedWebhookEvent = + Lithic::Models::EmbedSessionGeneratedWebhookEvent + + EmbedViewedWebhookEvent = Lithic::Models::EmbedViewedWebhookEvent + Event = Lithic::Models::Event EventListAttemptsParams = Lithic::Models::EventListAttemptsParams diff --git a/rbi/lithic/models/account_activity_list_params.rbi b/rbi/lithic/models/account_activity_list_params.rbi index 6443103a..a137b151 100644 --- a/rbi/lithic/models/account_activity_list_params.rbi +++ b/rbi/lithic/models/account_activity_list_params.rbi @@ -193,6 +193,11 @@ module Lithic :WIRE, Lithic::AccountActivityListParams::Category::TaggedSymbol ) + STABLECOIN = + T.let( + :STABLECOIN, + Lithic::AccountActivityListParams::Category::TaggedSymbol + ) BALANCE_OR_FUNDING = T.let( :BALANCE_OR_FUNDING, @@ -290,6 +295,11 @@ module Lithic :PROGRAM_FUNDING, Lithic::AccountActivityListParams::Category::TaggedSymbol ) + PROGRAM_TRANSFER = + T.let( + :PROGRAM_TRANSFER, + Lithic::AccountActivityListParams::Category::TaggedSymbol + ) sig do override.returns( diff --git a/rbi/lithic/models/account_activity_list_response.rbi b/rbi/lithic/models/account_activity_list_response.rbi index a7b9751b..0b5b8a00 100644 --- a/rbi/lithic/models/account_activity_list_response.rbi +++ b/rbi/lithic/models/account_activity_list_response.rbi @@ -196,6 +196,11 @@ module Lithic :WIRE, Lithic::Models::AccountActivityListResponse::Internal::Category::TaggedSymbol ) + STABLECOIN = + T.let( + :STABLECOIN, + Lithic::Models::AccountActivityListResponse::Internal::Category::TaggedSymbol + ) BALANCE_OR_FUNDING = T.let( :BALANCE_OR_FUNDING, @@ -296,6 +301,11 @@ module Lithic :PROGRAM_FUNDING, Lithic::Models::AccountActivityListResponse::Internal::Category::TaggedSymbol ) + PROGRAM_TRANSFER = + T.let( + :PROGRAM_TRANSFER, + Lithic::Models::AccountActivityListResponse::Internal::Category::TaggedSymbol + ) sig do override.returns( diff --git a/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi b/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi index e1ead582..564e8f49 100644 --- a/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +++ b/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi @@ -196,6 +196,11 @@ module Lithic :WIRE, Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category::TaggedSymbol ) + STABLECOIN = + T.let( + :STABLECOIN, + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category::TaggedSymbol + ) BALANCE_OR_FUNDING = T.let( :BALANCE_OR_FUNDING, @@ -296,6 +301,11 @@ module Lithic :PROGRAM_FUNDING, Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category::TaggedSymbol ) + PROGRAM_TRANSFER = + T.let( + :PROGRAM_TRANSFER, + Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category::TaggedSymbol + ) sig do override.returns( diff --git a/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi b/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi index c51ae8b1..5091eb23 100644 --- a/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +++ b/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi @@ -654,6 +654,7 @@ module Lithic # (Corporate Credit or Debit Entry), WEB (Internet-Initiated/Mobile Entry), TEL # (Telephone-Initiated Entry), and others. # - `MEMO`: Optional memo or description field included with the ACH transaction. + # - `RECIPIENT_NAME`: The name of the recipient of the ACH transaction. sig do returns( Lithic::AuthRules::ConditionalACHActionParameters::Condition::Attribute::OrSymbol @@ -693,6 +694,7 @@ module Lithic # (Corporate Credit or Debit Entry), WEB (Internet-Initiated/Mobile Entry), TEL # (Telephone-Initiated Entry), and others. # - `MEMO`: Optional memo or description field included with the ACH transaction. + # - `RECIPIENT_NAME`: The name of the recipient of the ACH transaction. attribute:, # The operation to apply to the attribute operation:, @@ -729,6 +731,7 @@ module Lithic # (Corporate Credit or Debit Entry), WEB (Internet-Initiated/Mobile Entry), TEL # (Telephone-Initiated Entry), and others. # - `MEMO`: Optional memo or description field included with the ACH transaction. + # - `RECIPIENT_NAME`: The name of the recipient of the ACH transaction. module Attribute extend Lithic::Internal::Type::Enum @@ -771,6 +774,11 @@ module Lithic :MEMO, Lithic::AuthRules::ConditionalACHActionParameters::Condition::Attribute::TaggedSymbol ) + RECIPIENT_NAME = + T.let( + :RECIPIENT_NAME, + Lithic::AuthRules::ConditionalACHActionParameters::Condition::Attribute::TaggedSymbol + ) sig do override.returns( diff --git a/rbi/lithic/models/auth_rules/velocity_limit_period.rbi b/rbi/lithic/models/auth_rules/velocity_limit_period.rbi index 82871b54..1387ed93 100644 --- a/rbi/lithic/models/auth_rules/velocity_limit_period.rbi +++ b/rbi/lithic/models/auth_rules/velocity_limit_period.rbi @@ -28,7 +28,7 @@ module Lithic end # The size of the trailing window to calculate Spend Velocity over in seconds. The - # minimum value is 10 seconds, and the maximum value is 2678400 seconds (31 days). + # minimum value is 10 seconds, and the maximum value is 7776000 seconds (90 days). sig { returns(Integer) } attr_accessor :duration @@ -40,7 +40,7 @@ module Lithic end def self.new( # The size of the trailing window to calculate Spend Velocity over in seconds. The - # minimum value is 10 seconds, and the maximum value is 2678400 seconds (31 days). + # minimum value is 10 seconds, and the maximum value is 7776000 seconds (90 days). duration:, type: :CUSTOM ) diff --git a/rbi/lithic/models/book_transfer_create_params.rbi b/rbi/lithic/models/book_transfer_create_params.rbi index abf9bd88..571a3ade 100644 --- a/rbi/lithic/models/book_transfer_create_params.rbi +++ b/rbi/lithic/models/book_transfer_create_params.rbi @@ -197,6 +197,11 @@ module Lithic :PROGRAM_FUNDING, Lithic::BookTransferCreateParams::Category::TaggedSymbol ) + PROGRAM_TRANSFER = + T.let( + :PROGRAM_TRANSFER, + Lithic::BookTransferCreateParams::Category::TaggedSymbol + ) TRANSFER = T.let( :TRANSFER, @@ -311,6 +316,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, @@ -377,6 +387,16 @@ module Lithic :COLLECTION, Lithic::BookTransferCreateParams::Type::TaggedSymbol ) + LITHIC_PROGRAM_TRANSFER = + T.let( + :LITHIC_PROGRAM_TRANSFER, + Lithic::BookTransferCreateParams::Type::TaggedSymbol + ) + BANK_PROGRAM_TRANSFER = + T.let( + :BANK_PROGRAM_TRANSFER, + Lithic::BookTransferCreateParams::Type::TaggedSymbol + ) sig do override.returns( diff --git a/rbi/lithic/models/book_transfer_list_params.rbi b/rbi/lithic/models/book_transfer_list_params.rbi index 38a99db3..e13c21a1 100644 --- a/rbi/lithic/models/book_transfer_list_params.rbi +++ b/rbi/lithic/models/book_transfer_list_params.rbi @@ -216,6 +216,11 @@ module Lithic :PROGRAM_FUNDING, Lithic::BookTransferListParams::Category::TaggedSymbol ) + PROGRAM_TRANSFER = + T.let( + :PROGRAM_TRANSFER, + Lithic::BookTransferListParams::Category::TaggedSymbol + ) TRANSFER = T.let( :TRANSFER, diff --git a/rbi/lithic/models/book_transfer_response.rbi b/rbi/lithic/models/book_transfer_response.rbi index a5115590..cefab118 100644 --- a/rbi/lithic/models/book_transfer_response.rbi +++ b/rbi/lithic/models/book_transfer_response.rbi @@ -219,6 +219,11 @@ module Lithic :PROGRAM_FUNDING, Lithic::BookTransferResponse::Category::TaggedSymbol ) + PROGRAM_TRANSFER = + T.let( + :PROGRAM_TRANSFER, + Lithic::BookTransferResponse::Category::TaggedSymbol + ) TRANSFER = T.let(:TRANSFER, Lithic::BookTransferResponse::Category::TaggedSymbol) @@ -512,6 +517,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, @@ -587,6 +597,16 @@ module Lithic :COLLECTION, Lithic::BookTransferResponse::Event::Type::TaggedSymbol ) + LITHIC_PROGRAM_TRANSFER = + T.let( + :LITHIC_PROGRAM_TRANSFER, + Lithic::BookTransferResponse::Event::Type::TaggedSymbol + ) + BANK_PROGRAM_TRANSFER = + T.let( + :BANK_PROGRAM_TRANSFER, + Lithic::BookTransferResponse::Event::Type::TaggedSymbol + ) sig do override.returns( diff --git a/rbi/lithic/models/embed_session_generated_webhook_event.rbi b/rbi/lithic/models/embed_session_generated_webhook_event.rbi new file mode 100644 index 00000000..cf1fef0f --- /dev/null +++ b/rbi/lithic/models/embed_session_generated_webhook_event.rbi @@ -0,0 +1,157 @@ +# typed: strong + +module Lithic + module Models + class EmbedSessionGeneratedWebhookEvent < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::EmbedSessionGeneratedWebhookEvent, + Lithic::Internal::AnyHash + ) + end + + # The token of the account associated with the card + sig { returns(String) } + attr_accessor :account_token + + # The token of the card associated with the embed session + sig { returns(String) } + attr_accessor :card_token + + # Details about the request that generated the embed session + sig { returns(Lithic::EmbedSessionGeneratedWebhookEvent::DeviceDetails) } + attr_reader :device_details + + sig do + params( + device_details: + Lithic::EmbedSessionGeneratedWebhookEvent::DeviceDetails::OrHash + ).void + end + attr_writer :device_details + + # The type of event + sig { returns(Symbol) } + attr_accessor :event_type + + # The identifier shared by webhook events for the same embed session. + sig { returns(String) } + attr_accessor :session_id + + # The type of embed session that was generated + sig do + returns( + Lithic::EmbedSessionGeneratedWebhookEvent::SessionType::TaggedSymbol + ) + end + attr_accessor :session_type + + sig do + params( + account_token: String, + card_token: String, + device_details: + Lithic::EmbedSessionGeneratedWebhookEvent::DeviceDetails::OrHash, + session_id: String, + session_type: + Lithic::EmbedSessionGeneratedWebhookEvent::SessionType::OrSymbol, + event_type: Symbol + ).returns(T.attached_class) + end + def self.new( + # The token of the account associated with the card + account_token:, + # The token of the card associated with the embed session + card_token:, + # Details about the request that generated the embed session + device_details:, + # The identifier shared by webhook events for the same embed session. + session_id:, + # The type of embed session that was generated + session_type:, + # The type of event + event_type: :"embed.session_generated" + ) + end + + sig do + override.returns( + { + account_token: String, + card_token: String, + device_details: + Lithic::EmbedSessionGeneratedWebhookEvent::DeviceDetails, + event_type: Symbol, + session_id: String, + session_type: + Lithic::EmbedSessionGeneratedWebhookEvent::SessionType::TaggedSymbol + } + ) + end + def to_hash + end + + class DeviceDetails < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::EmbedSessionGeneratedWebhookEvent::DeviceDetails, + Lithic::Internal::AnyHash + ) + end + + # The IP address recorded for the request that generated the event + sig { returns(String) } + attr_accessor :ip_address + + # Details about the request that generated the embed session + sig { params(ip_address: String).returns(T.attached_class) } + def self.new( + # The IP address recorded for the request that generated the event + ip_address: + ) + end + + sig { override.returns({ ip_address: String }) } + def to_hash + end + end + + # The type of embed session that was generated + module SessionType + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Lithic::EmbedSessionGeneratedWebhookEvent::SessionType + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + CARD_EMBED = + T.let( + :CARD_EMBED, + Lithic::EmbedSessionGeneratedWebhookEvent::SessionType::TaggedSymbol + ) + PIN_SETTING_EMBED = + T.let( + :PIN_SETTING_EMBED, + Lithic::EmbedSessionGeneratedWebhookEvent::SessionType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Lithic::EmbedSessionGeneratedWebhookEvent::SessionType::TaggedSymbol + ] + ) + end + def self.values + end + end + end + end +end diff --git a/rbi/lithic/models/embed_viewed_webhook_event.rbi b/rbi/lithic/models/embed_viewed_webhook_event.rbi new file mode 100644 index 00000000..95d8304b --- /dev/null +++ b/rbi/lithic/models/embed_viewed_webhook_event.rbi @@ -0,0 +1,146 @@ +# typed: strong + +module Lithic + module Models + class EmbedViewedWebhookEvent < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any(Lithic::EmbedViewedWebhookEvent, Lithic::Internal::AnyHash) + end + + # The token of the account associated with the card + sig { returns(String) } + attr_accessor :account_token + + # The token of the card whose details were revealed + sig { returns(String) } + attr_accessor :card_token + + # Details about the request that revealed the card detail + sig { returns(Lithic::EmbedViewedWebhookEvent::DeviceDetails) } + attr_reader :device_details + + sig do + params( + device_details: Lithic::EmbedViewedWebhookEvent::DeviceDetails::OrHash + ).void + end + attr_writer :device_details + + # The type of card detail that was revealed + sig { returns(Lithic::EmbedViewedWebhookEvent::EmbedType::TaggedSymbol) } + attr_accessor :embed_type + + # The type of event + sig { returns(Symbol) } + attr_accessor :event_type + + # The identifier shared by webhook events for the same embed session. + sig { returns(String) } + attr_accessor :session_id + + sig do + params( + account_token: String, + card_token: String, + device_details: + Lithic::EmbedViewedWebhookEvent::DeviceDetails::OrHash, + embed_type: Lithic::EmbedViewedWebhookEvent::EmbedType::OrSymbol, + session_id: String, + event_type: Symbol + ).returns(T.attached_class) + end + def self.new( + # The token of the account associated with the card + account_token:, + # The token of the card whose details were revealed + card_token:, + # Details about the request that revealed the card detail + device_details:, + # The type of card detail that was revealed + embed_type:, + # The identifier shared by webhook events for the same embed session. + session_id:, + # The type of event + event_type: :"embed.viewed" + ) + end + + sig do + override.returns( + { + account_token: String, + card_token: String, + device_details: Lithic::EmbedViewedWebhookEvent::DeviceDetails, + embed_type: + Lithic::EmbedViewedWebhookEvent::EmbedType::TaggedSymbol, + event_type: Symbol, + session_id: String + } + ) + end + def to_hash + end + + class DeviceDetails < Lithic::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Lithic::EmbedViewedWebhookEvent::DeviceDetails, + Lithic::Internal::AnyHash + ) + end + + # The IP address recorded for the request that generated the event + sig { returns(String) } + attr_accessor :ip_address + + # Details about the request that revealed the card detail + sig { params(ip_address: String).returns(T.attached_class) } + def self.new( + # The IP address recorded for the request that generated the event + ip_address: + ) + end + + sig { override.returns({ ip_address: String }) } + def to_hash + end + end + + # The type of card detail that was revealed + module EmbedType + extend Lithic::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Lithic::EmbedViewedWebhookEvent::EmbedType) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + PAN = + T.let(:PAN, Lithic::EmbedViewedWebhookEvent::EmbedType::TaggedSymbol) + CVV = + T.let(:CVV, Lithic::EmbedViewedWebhookEvent::EmbedType::TaggedSymbol) + EXP_MONTH = + T.let( + :EXP_MONTH, + Lithic::EmbedViewedWebhookEvent::EmbedType::TaggedSymbol + ) + EXP_YEAR = + T.let( + :EXP_YEAR, + Lithic::EmbedViewedWebhookEvent::EmbedType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[Lithic::EmbedViewedWebhookEvent::EmbedType::TaggedSymbol] + ) + end + def self.values + end + end + end + end +end diff --git a/rbi/lithic/models/event.rbi b/rbi/lithic/models/event.rbi index f7fa3974..c45e6def 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,25 @@ 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. + # + # - embed.session_generated: Occurs when a card embed session is successfully + # generated. + # - embed.viewed: Occurs when a card detail is successfully revealed through an + # embed. # - external_bank_account.created: Occurs when an external bank account is # created. # - external_bank_account.updated: Occurs when an external bank account is @@ -107,12 +122,12 @@ 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 # completed, the Card Program needs to respond back to Lithic by call to - # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response). + # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/postthreedschallengeresponse). # Then the cardholder must navigate back to the merchant checkout flow to # complete the transaction. Some merchants will include an `app_requestor_url` # for app-based purchases; Lithic recommends triggering a redirect to that URL @@ -153,7 +168,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 +232,25 @@ 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. + # + # - embed.session_generated: Occurs when a card embed session is successfully + # generated. + # - embed.viewed: Occurs when a card detail is successfully revealed through an + # embed. # - external_bank_account.created: Occurs when an external bank account is # created. # - external_bank_account.updated: Occurs when an external bank account is @@ -242,12 +272,12 @@ 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 # completed, the Card Program needs to respond back to Lithic by call to - # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response). + # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/postthreedschallengeresponse). # Then the cardholder must navigate back to the merchant checkout flow to # complete the transaction. Some merchants will include an `app_requestor_url` # for app-based purchases; Lithic recommends triggering a redirect to that URL @@ -284,7 +314,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 +378,25 @@ 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. + # + # - embed.session_generated: Occurs when a card embed session is successfully + # generated. + # - embed.viewed: Occurs when a card detail is successfully revealed through an + # embed. # - external_bank_account.created: Occurs when an external bank account is # created. # - external_bank_account.updated: Occurs when an external bank account is @@ -373,12 +418,12 @@ 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 # completed, the Card Program needs to respond back to Lithic by call to - # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response). + # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/postthreedschallengeresponse). # Then the cardholder must navigate back to the merchant checkout flow to # complete the transaction. Some merchants will include an `app_requestor_url` # for app-based purchases; Lithic recommends triggering a redirect to that URL @@ -530,6 +575,13 @@ module Lithic ) DISPUTE_UPDATED = T.let(:"dispute.updated", Lithic::Event::EventType::TaggedSymbol) + EMBED_SESSION_GENERATED = + T.let( + :"embed.session_generated", + Lithic::Event::EventType::TaggedSymbol + ) + EMBED_VIEWED = + T.let(:"embed.viewed", Lithic::Event::EventType::TaggedSymbol) EXTERNAL_BANK_ACCOUNT_CREATED = T.let( :"external_bank_account.created", diff --git a/rbi/lithic/models/event_list_params.rbi b/rbi/lithic/models/event_list_params.rbi index de6e6516..58b62f1a 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,25 @@ 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. + # + # - embed.session_generated: Occurs when a card embed session is successfully + # generated. + # - embed.viewed: Occurs when a card detail is successfully revealed through an + # embed. # - external_bank_account.created: Occurs when an external bank account is # created. # - external_bank_account.updated: Occurs when an external bank account is @@ -216,12 +231,12 @@ 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 # completed, the Card Program needs to respond back to Lithic by call to - # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response). + # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/postthreedschallengeresponse). # Then the cardholder must navigate back to the merchant checkout flow to # complete the transaction. Some merchants will include an `app_requestor_url` # for app-based purchases; Lithic recommends triggering a redirect to that URL @@ -404,6 +419,16 @@ module Lithic :"dispute.updated", Lithic::EventListParams::EventType::TaggedSymbol ) + EMBED_SESSION_GENERATED = + T.let( + :"embed.session_generated", + Lithic::EventListParams::EventType::TaggedSymbol + ) + EMBED_VIEWED = + T.let( + :"embed.viewed", + Lithic::EventListParams::EventType::TaggedSymbol + ) EXTERNAL_BANK_ACCOUNT_CREATED = T.let( :"external_bank_account.created", diff --git a/rbi/lithic/models/event_subscription.rbi b/rbi/lithic/models/event_subscription.rbi index 266af7b7..f82f9ffb 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,25 @@ 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. + # + # - embed.session_generated: Occurs when a card embed session is successfully + # generated. + # - embed.viewed: Occurs when a card detail is successfully revealed through an + # embed. # - external_bank_account.created: Occurs when an external bank account is # created. # - external_bank_account.updated: Occurs when an external bank account is @@ -164,12 +179,12 @@ 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 # completed, the Card Program needs to respond back to Lithic by call to - # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response). + # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/postthreedschallengeresponse). # Then the cardholder must navigate back to the merchant checkout flow to # complete the transaction. Some merchants will include an `app_requestor_url` # for app-based purchases; Lithic recommends triggering a redirect to that URL @@ -352,6 +367,16 @@ module Lithic :"dispute.updated", Lithic::EventSubscription::EventType::TaggedSymbol ) + EMBED_SESSION_GENERATED = + T.let( + :"embed.session_generated", + Lithic::EventSubscription::EventType::TaggedSymbol + ) + EMBED_VIEWED = + T.let( + :"embed.viewed", + Lithic::EventSubscription::EventType::TaggedSymbol + ) EXTERNAL_BANK_ACCOUNT_CREATED = T.let( :"external_bank_account.created", diff --git a/rbi/lithic/models/events/subscription_create_params.rbi b/rbi/lithic/models/events/subscription_create_params.rbi index d52e03b3..14cb5824 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,25 @@ 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. + # + # - embed.session_generated: Occurs when a card embed session is successfully + # generated. + # - embed.viewed: Occurs when a card detail is successfully revealed through an + # embed. # - external_bank_account.created: Occurs when an external bank account is # created. # - external_bank_account.updated: Occurs when an external bank account is @@ -191,12 +206,12 @@ 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 # completed, the Card Program needs to respond back to Lithic by call to - # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response). + # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/postthreedschallengeresponse). # Then the cardholder must navigate back to the merchant checkout flow to # complete the transaction. Some merchants will include an `app_requestor_url` # for app-based purchases; Lithic recommends triggering a redirect to that URL @@ -381,6 +396,16 @@ module Lithic :"dispute.updated", Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol ) + EMBED_SESSION_GENERATED = + T.let( + :"embed.session_generated", + Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol + ) + EMBED_VIEWED = + T.let( + :"embed.viewed", + Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol + ) EXTERNAL_BANK_ACCOUNT_CREATED = T.let( :"external_bank_account.created", diff --git a/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi b/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi index bf3bef6d..0e38f181 100644 --- a/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +++ b/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi @@ -238,6 +238,16 @@ module Lithic :"dispute.updated", Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol ) + EMBED_SESSION_GENERATED = + T.let( + :"embed.session_generated", + Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol + ) + EMBED_VIEWED = + T.let( + :"embed.viewed", + Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol + ) EXTERNAL_BANK_ACCOUNT_CREATED = T.let( :"external_bank_account.created", diff --git a/rbi/lithic/models/events/subscription_update_params.rbi b/rbi/lithic/models/events/subscription_update_params.rbi index 4b283d59..f53db066 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,25 @@ 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. + # + # - embed.session_generated: Occurs when a card embed session is successfully + # generated. + # - embed.viewed: Occurs when a card detail is successfully revealed through an + # embed. # - external_bank_account.created: Occurs when an external bank account is # created. # - external_bank_account.updated: Occurs when an external bank account is @@ -197,12 +212,12 @@ 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 # completed, the Card Program needs to respond back to Lithic by call to - # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response). + # [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/postthreedschallengeresponse). # Then the cardholder must navigate back to the merchant checkout flow to # complete the transaction. Some merchants will include an `app_requestor_url` # for app-based purchases; Lithic recommends triggering a redirect to that URL @@ -387,6 +402,16 @@ module Lithic :"dispute.updated", Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol ) + EMBED_SESSION_GENERATED = + T.let( + :"embed.session_generated", + Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol + ) + EMBED_VIEWED = + T.let( + :"embed.viewed", + Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol + ) EXTERNAL_BANK_ACCOUNT_CREATED = T.let( :"external_bank_account.created", 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/financial_accounts/balance_list_params.rbi b/rbi/lithic/models/financial_accounts/balance_list_params.rbi index c54929e9..fb6a0717 100644 --- a/rbi/lithic/models/financial_accounts/balance_list_params.rbi +++ b/rbi/lithic/models/financial_accounts/balance_list_params.rbi @@ -25,9 +25,10 @@ module Lithic sig { params(balance_date: Time).void } attr_writer :balance_date - # Balance after a given financial event occured. For example, passing the - # event_token of a $5 CARD_CLEARING financial event will return a balance - # decreased by $5 + # Balance after a given financial event occured. Note: if an account receives + # multiple events around the same time whose financial impacts cancel out, a + # balance lookup by one of those event tokens may return 404, since their combined + # impact on the account is zero. sig { returns(T.nilable(String)) } attr_reader :last_transaction_event_token @@ -46,9 +47,10 @@ module Lithic financial_account_token:, # UTC date of the balance to retrieve. Defaults to latest available balance balance_date: nil, - # Balance after a given financial event occured. For example, passing the - # event_token of a $5 CARD_CLEARING financial event will return a balance - # decreased by $5 + # Balance after a given financial event occured. Note: if an account receives + # multiple events around the same time whose financial impacts cancel out, a + # balance lookup by one of those event tokens may return 404, since their combined + # impact on the account is zero. last_transaction_event_token: nil, request_options: {} ) diff --git a/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi b/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi index eedb1ad4..6a526d5a 100644 --- a/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +++ b/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi @@ -233,6 +233,11 @@ module Lithic :WIRE, Lithic::FinancialAccounts::Statements::StatementLineItems::Data::Category::TaggedSymbol ) + STABLECOIN = + T.let( + :STABLECOIN, + Lithic::FinancialAccounts::Statements::StatementLineItems::Data::Category::TaggedSymbol + ) BALANCE_OR_FUNDING = T.let( :BALANCE_OR_FUNDING, @@ -333,6 +338,11 @@ module Lithic :PROGRAM_FUNDING, Lithic::FinancialAccounts::Statements::StatementLineItems::Data::Category::TaggedSymbol ) + PROGRAM_TRANSFER = + T.let( + :PROGRAM_TRANSFER, + Lithic::FinancialAccounts::Statements::StatementLineItems::Data::Category::TaggedSymbol + ) sig do override.returns( @@ -762,6 +772,16 @@ module Lithic :LITHIC_NETWORK_PAYMENT, Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol ) + LITHIC_PROGRAM_TRANSFER = + T.let( + :LITHIC_PROGRAM_TRANSFER, + Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol + ) + BANK_PROGRAM_TRANSFER = + T.let( + :BANK_PROGRAM_TRANSFER, + Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol + ) ANNUAL = T.let( :ANNUAL, @@ -797,6 +817,21 @@ module Lithic :ACCOUNT_TO_ACCOUNT, Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol ) + STABLECOIN_RECEIVED = + T.let( + :STABLECOIN_RECEIVED, + Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol + ) + STABLECOIN_REVIEWED = + T.let( + :STABLECOIN_REVIEWED, + Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol + ) + STABLECOIN_SETTLED = + T.let( + :STABLECOIN_SETTLED, + Lithic::FinancialAccounts::Statements::StatementLineItems::Data::EventType::TaggedSymbol + ) sig do override.returns( diff --git a/rbi/lithic/models/financial_event.rbi b/rbi/lithic/models/financial_event.rbi index 8e66532f..3b74a113 100644 --- a/rbi/lithic/models/financial_event.rbi +++ b/rbi/lithic/models/financial_event.rbi @@ -447,6 +447,16 @@ module Lithic :LITHIC_NETWORK_PAYMENT, Lithic::FinancialEvent::Type::TaggedSymbol ) + LITHIC_PROGRAM_TRANSFER = + T.let( + :LITHIC_PROGRAM_TRANSFER, + Lithic::FinancialEvent::Type::TaggedSymbol + ) + BANK_PROGRAM_TRANSFER = + T.let( + :BANK_PROGRAM_TRANSFER, + Lithic::FinancialEvent::Type::TaggedSymbol + ) ANNUAL = T.let(:ANNUAL, Lithic::FinancialEvent::Type::TaggedSymbol) ANNUAL_REVERSAL = T.let(:ANNUAL_REVERSAL, Lithic::FinancialEvent::Type::TaggedSymbol) @@ -459,6 +469,18 @@ module Lithic T.let(:MONTHLY_REVERSAL, Lithic::FinancialEvent::Type::TaggedSymbol) ACCOUNT_TO_ACCOUNT = T.let(:ACCOUNT_TO_ACCOUNT, Lithic::FinancialEvent::Type::TaggedSymbol) + STABLECOIN_RECEIVED = + T.let( + :STABLECOIN_RECEIVED, + Lithic::FinancialEvent::Type::TaggedSymbol + ) + STABLECOIN_REVIEWED = + T.let( + :STABLECOIN_REVIEWED, + Lithic::FinancialEvent::Type::TaggedSymbol + ) + STABLECOIN_SETTLED = + T.let(:STABLECOIN_SETTLED, Lithic::FinancialEvent::Type::TaggedSymbol) sig do override.returns(T::Array[Lithic::FinancialEvent::Type::TaggedSymbol]) diff --git a/rbi/lithic/models/fraud/transaction_report_response.rbi b/rbi/lithic/models/fraud/transaction_report_response.rbi index 2a1c5778..0963e606 100644 --- a/rbi/lithic/models/fraud/transaction_report_response.rbi +++ b/rbi/lithic/models/fraud/transaction_report_response.rbi @@ -40,17 +40,11 @@ module Lithic # Provides additional context or details about the fraud report. sig { returns(T.nilable(String)) } - attr_reader :comment - - sig { params(comment: String).void } - attr_writer :comment + attr_accessor :comment # Timestamp representing when the fraud report was created. sig { returns(T.nilable(Time)) } - attr_reader :created_at - - sig { params(created_at: Time).void } - attr_writer :created_at + attr_accessor :created_at # Specifies the type or category of fraud that the transaction is suspected or # confirmed to involve, string (enum) supporting the following values: @@ -80,33 +74,24 @@ module Lithic ) ) end - attr_reader :fraud_type - - sig do - params( - fraud_type: - Lithic::Models::Fraud::TransactionReportResponse::FraudType::OrSymbol - ).void - end - attr_writer :fraud_type + attr_accessor :fraud_type # Timestamp representing the last update to the fraud report. sig { returns(T.nilable(Time)) } - attr_reader :updated_at - - sig { params(updated_at: Time).void } - attr_writer :updated_at + attr_accessor :updated_at sig do params( fraud_status: Lithic::Models::Fraud::TransactionReportResponse::FraudStatus::OrSymbol, transaction_token: String, - comment: String, - created_at: Time, + comment: T.nilable(String), + created_at: T.nilable(Time), fraud_type: - Lithic::Models::Fraud::TransactionReportResponse::FraudType::OrSymbol, - updated_at: Time + T.nilable( + Lithic::Models::Fraud::TransactionReportResponse::FraudType::OrSymbol + ), + updated_at: T.nilable(Time) ).returns(T.attached_class) end def self.new( @@ -165,11 +150,13 @@ module Lithic fraud_status: Lithic::Models::Fraud::TransactionReportResponse::FraudStatus::TaggedSymbol, transaction_token: String, - comment: String, - created_at: Time, + comment: T.nilable(String), + created_at: T.nilable(Time), fraud_type: - Lithic::Models::Fraud::TransactionReportResponse::FraudType::TaggedSymbol, - updated_at: Time + T.nilable( + Lithic::Models::Fraud::TransactionReportResponse::FraudType::TaggedSymbol + ), + updated_at: T.nilable(Time) } ) end diff --git a/rbi/lithic/models/fraud/transaction_retrieve_response.rbi b/rbi/lithic/models/fraud/transaction_retrieve_response.rbi index 85312b49..50fcc2d7 100644 --- a/rbi/lithic/models/fraud/transaction_retrieve_response.rbi +++ b/rbi/lithic/models/fraud/transaction_retrieve_response.rbi @@ -40,17 +40,11 @@ module Lithic # Provides additional context or details about the fraud report. sig { returns(T.nilable(String)) } - attr_reader :comment - - sig { params(comment: String).void } - attr_writer :comment + attr_accessor :comment # Timestamp representing when the fraud report was created. sig { returns(T.nilable(Time)) } - attr_reader :created_at - - sig { params(created_at: Time).void } - attr_writer :created_at + attr_accessor :created_at # Specifies the type or category of fraud that the transaction is suspected or # confirmed to involve, string (enum) supporting the following values: @@ -80,33 +74,24 @@ module Lithic ) ) end - attr_reader :fraud_type - - sig do - params( - fraud_type: - Lithic::Models::Fraud::TransactionRetrieveResponse::FraudType::OrSymbol - ).void - end - attr_writer :fraud_type + attr_accessor :fraud_type # Timestamp representing the last update to the fraud report. sig { returns(T.nilable(Time)) } - attr_reader :updated_at - - sig { params(updated_at: Time).void } - attr_writer :updated_at + attr_accessor :updated_at sig do params( fraud_status: Lithic::Models::Fraud::TransactionRetrieveResponse::FraudStatus::OrSymbol, transaction_token: String, - comment: String, - created_at: Time, + comment: T.nilable(String), + created_at: T.nilable(Time), fraud_type: - Lithic::Models::Fraud::TransactionRetrieveResponse::FraudType::OrSymbol, - updated_at: Time + T.nilable( + Lithic::Models::Fraud::TransactionRetrieveResponse::FraudType::OrSymbol + ), + updated_at: T.nilable(Time) ).returns(T.attached_class) end def self.new( @@ -165,11 +150,13 @@ module Lithic fraud_status: Lithic::Models::Fraud::TransactionRetrieveResponse::FraudStatus::TaggedSymbol, transaction_token: String, - comment: String, - created_at: Time, + comment: T.nilable(String), + created_at: T.nilable(Time), fraud_type: - Lithic::Models::Fraud::TransactionRetrieveResponse::FraudType::TaggedSymbol, - updated_at: Time + T.nilable( + Lithic::Models::Fraud::TransactionRetrieveResponse::FraudType::TaggedSymbol + ), + updated_at: T.nilable(Time) } ) end diff --git a/rbi/lithic/models/parsed_webhook_event.rbi b/rbi/lithic/models/parsed_webhook_event.rbi index a7a78543..01b23685 100644 --- a/rbi/lithic/models/parsed_webhook_event.rbi +++ b/rbi/lithic/models/parsed_webhook_event.rbi @@ -43,6 +43,8 @@ module Lithic Lithic::DigitalWalletTokenizationUpdatedWebhookEvent, Lithic::DisputeUpdatedWebhookEvent, Lithic::DisputeEvidenceUploadFailedWebhookEvent, + Lithic::EmbedSessionGeneratedWebhookEvent, + Lithic::EmbedViewedWebhookEvent, Lithic::ExternalBankAccountCreatedWebhookEvent, Lithic::ExternalBankAccountUpdatedWebhookEvent, Lithic::ExternalPaymentCreatedWebhookEvent, diff --git a/rbi/lithic/models/payment.rbi b/rbi/lithic/models/payment.rbi index 278bfb68..85121151 100644 --- a/rbi/lithic/models/payment.rbi +++ b/rbi/lithic/models/payment.rbi @@ -240,6 +240,7 @@ module Lithic ACH = T.let(:ACH, Lithic::Payment::Category::TaggedSymbol) WIRE = T.let(:WIRE, Lithic::Payment::Category::TaggedSymbol) + STABLECOIN = T.let(:STABLECOIN, Lithic::Payment::Category::TaggedSymbol) BALANCE_OR_FUNDING = T.let(:BALANCE_OR_FUNDING, Lithic::Payment::Category::TaggedSymbol) FEE = T.let(:FEE, Lithic::Payment::Category::TaggedSymbol) @@ -277,6 +278,8 @@ module Lithic HOLD = T.let(:HOLD, Lithic::Payment::Category::TaggedSymbol) PROGRAM_FUNDING = T.let(:PROGRAM_FUNDING, Lithic::Payment::Category::TaggedSymbol) + PROGRAM_TRANSFER = + T.let(:PROGRAM_TRANSFER, Lithic::Payment::Category::TaggedSymbol) sig do override.returns(T::Array[Lithic::Payment::Category::TaggedSymbol]) @@ -379,6 +382,13 @@ module Lithic # Reserve and funds returned to sender. # - `WIRE_RETURN_OUTBOUND_REJECTED` - Outbound wire return rejected by the Federal # Reserve. + # + # Stablecoin events: + # + # - `STABLECOIN_RECEIVED` - Stablecoin pay-in received on-chain and pending + # release to available balance. + # - `STABLECOIN_REVIEWED` - Stablecoin pay-in has completed the review process. + # - `STABLECOIN_SETTLED` - Stablecoin pay-in funds released to available balance. sig { returns(Lithic::Payment::Event::Type::TaggedSymbol) } attr_accessor :type @@ -486,6 +496,13 @@ module Lithic # Reserve and funds returned to sender. # - `WIRE_RETURN_OUTBOUND_REJECTED` - Outbound wire return rejected by the Federal # Reserve. + # + # Stablecoin events: + # + # - `STABLECOIN_RECEIVED` - Stablecoin pay-in received on-chain and pending + # release to available balance. + # - `STABLECOIN_REVIEWED` - Stablecoin pay-in has completed the review process. + # - `STABLECOIN_SETTLED` - Stablecoin pay-in funds released to available balance. type:, # More detailed reasons for the event detailed_results: nil, @@ -588,6 +605,13 @@ module Lithic # Reserve and funds returned to sender. # - `WIRE_RETURN_OUTBOUND_REJECTED` - Outbound wire return rejected by the Federal # Reserve. + # + # Stablecoin events: + # + # - `STABLECOIN_RECEIVED` - Stablecoin pay-in received on-chain and pending + # release to available balance. + # - `STABLECOIN_REVIEWED` - Stablecoin pay-in has completed the review process. + # - `STABLECOIN_SETTLED` - Stablecoin pay-in funds released to available balance. module Type extend Lithic::Internal::Type::Enum @@ -705,6 +729,21 @@ module Lithic :WIRE_RETURN_OUTBOUND_REJECTED, Lithic::Payment::Event::Type::TaggedSymbol ) + STABLECOIN_RECEIVED = + T.let( + :STABLECOIN_RECEIVED, + Lithic::Payment::Event::Type::TaggedSymbol + ) + STABLECOIN_REVIEWED = + T.let( + :STABLECOIN_REVIEWED, + Lithic::Payment::Event::Type::TaggedSymbol + ) + STABLECOIN_SETTLED = + T.let( + :STABLECOIN_SETTLED, + Lithic::Payment::Event::Type::TaggedSymbol + ) sig do override.returns( @@ -840,6 +879,10 @@ module Lithic sig { returns(T.nilable(String)) } attr_accessor :receipt_routing_number + # Name of the recipient on ACH receipts. Reflects the originating bank's record + sig { returns(T.nilable(String)) } + attr_accessor :recipient_name + # Number of retries attempted sig { returns(T.nilable(Integer)) } attr_accessor :retries @@ -864,6 +907,7 @@ module Lithic company_id: T.nilable(String), override_company_name: T.nilable(String), receipt_routing_number: T.nilable(String), + recipient_name: T.nilable(String), retries: T.nilable(Integer), return_reason_code: T.nilable(String), trace_numbers: T::Array[String] @@ -883,6 +927,8 @@ module Lithic override_company_name: nil, # Receipt routing number receipt_routing_number: nil, + # Name of the recipient on ACH receipts. Reflects the originating bank's record + recipient_name: nil, # Number of retries attempted retries: nil, # Return reason code if the transaction was returned @@ -902,6 +948,7 @@ module Lithic company_id: T.nilable(String), override_company_name: T.nilable(String), receipt_routing_number: T.nilable(String), + recipient_name: T.nilable(String), retries: T.nilable(Integer), return_reason_code: T.nilable(String), trace_numbers: T::Array[String] diff --git a/rbi/lithic/models/payment_list_params.rbi b/rbi/lithic/models/payment_list_params.rbi index 5372d18b..3cf3a6f9 100644 --- a/rbi/lithic/models/payment_list_params.rbi +++ b/rbi/lithic/models/payment_list_params.rbi @@ -202,6 +202,8 @@ module Lithic T.let(:PENDING, Lithic::PaymentListParams::Status::TaggedSymbol) RETURNED = T.let(:RETURNED, Lithic::PaymentListParams::Status::TaggedSymbol) + REVERSED = + T.let(:REVERSED, Lithic::PaymentListParams::Status::TaggedSymbol) SETTLED = T.let(:SETTLED, Lithic::PaymentListParams::Status::TaggedSymbol) diff --git a/rbi/lithic/models/transaction_monitoring/case_update_params.rbi b/rbi/lithic/models/transaction_monitoring/case_update_params.rbi index 1d2e79aa..e5db14fa 100644 --- a/rbi/lithic/models/transaction_monitoring/case_update_params.rbi +++ b/rbi/lithic/models/transaction_monitoring/case_update_params.rbi @@ -46,29 +46,12 @@ module Lithic end attr_writer :priority - # Outcome recorded when a case is resolved: - # - # - `CONFIRMED_FRAUD` - The reviewed activity was confirmed to be fraudulent - # - `SUSPICIOUS_ACTIVITY` - The activity is suspicious but not confirmed fraud - # - `FALSE_POSITIVE` - The activity was legitimate and the alert was a false - # positive - # - `NO_ACTION_REQUIRED` - No further action is required - # - `ESCALATED_EXTERNAL` - The case was escalated to an external party - sig do - returns( - T.nilable( - Lithic::TransactionMonitoring::ResolutionOutcome::OrSymbol - ) - ) - end + # Resolution to record on the case. Must be one of the `allowed_resolutions` + # configured on the case's queue, otherwise the request is rejected with a `400` + sig { returns(T.nilable(String)) } attr_reader :resolution - sig do - params( - resolution: - Lithic::TransactionMonitoring::ResolutionOutcome::OrSymbol - ).void - end + sig { params(resolution: String).void } attr_writer :resolution # Notes describing the resolution @@ -123,8 +106,7 @@ module Lithic actor_token: String, assignee: T.nilable(String), priority: Lithic::TransactionMonitoring::CasePriority::OrSymbol, - resolution: - Lithic::TransactionMonitoring::ResolutionOutcome::OrSymbol, + resolution: String, resolution_notes: String, sla_deadline: T.nilable(Time), status: Lithic::TransactionMonitoring::CaseStatus::OrSymbol, @@ -143,14 +125,8 @@ module Lithic assignee: nil, # Priority level of a case, controlling queue ordering and SLA urgency priority: nil, - # Outcome recorded when a case is resolved: - # - # - `CONFIRMED_FRAUD` - The reviewed activity was confirmed to be fraudulent - # - `SUSPICIOUS_ACTIVITY` - The activity is suspicious but not confirmed fraud - # - `FALSE_POSITIVE` - The activity was legitimate and the alert was a false - # positive - # - `NO_ACTION_REQUIRED` - No further action is required - # - `ESCALATED_EXTERNAL` - The case was escalated to an external party + # Resolution to record on the case. Must be one of the `allowed_resolutions` + # configured on the case's queue, otherwise the request is rejected with a `400` resolution: nil, # Notes describing the resolution resolution_notes: nil, @@ -182,8 +158,7 @@ module Lithic actor_token: String, assignee: T.nilable(String), priority: Lithic::TransactionMonitoring::CasePriority::OrSymbol, - resolution: - Lithic::TransactionMonitoring::ResolutionOutcome::OrSymbol, + resolution: String, resolution_notes: String, sla_deadline: T.nilable(Time), status: Lithic::TransactionMonitoring::CaseStatus::OrSymbol, diff --git a/rbi/lithic/models/transaction_monitoring/monitoring_case.rbi b/rbi/lithic/models/transaction_monitoring/monitoring_case.rbi index 915da180..f035ff11 100644 --- a/rbi/lithic/models/transaction_monitoring/monitoring_case.rbi +++ b/rbi/lithic/models/transaction_monitoring/monitoring_case.rbi @@ -53,21 +53,9 @@ module Lithic sig { returns(String) } attr_accessor :queue_token - # Outcome recorded when a case is resolved: - # - # - `CONFIRMED_FRAUD` - The reviewed activity was confirmed to be fraudulent - # - `SUSPICIOUS_ACTIVITY` - The activity is suspicious but not confirmed fraud - # - `FALSE_POSITIVE` - The activity was legitimate and the alert was a false - # positive - # - `NO_ACTION_REQUIRED` - No further action is required - # - `ESCALATED_EXTERNAL` - The case was escalated to an external party - sig do - returns( - T.nilable( - Lithic::TransactionMonitoring::ResolutionOutcome::TaggedSymbol - ) - ) - end + # Outcome recorded when the case was resolved, from the `allowed_resolutions` + # configured on the case's queue + sig { returns(T.nilable(String)) } attr_accessor :resolution # Free-form notes describing the resolution @@ -123,10 +111,7 @@ module Lithic pending_transactions: T::Boolean, priority: Lithic::TransactionMonitoring::CasePriority::OrSymbol, queue_token: String, - resolution: - T.nilable( - Lithic::TransactionMonitoring::ResolutionOutcome::OrSymbol - ), + resolution: T.nilable(String), resolution_notes: T.nilable(String), resolved: T.nilable(Time), rule_token: T.nilable(String), @@ -154,14 +139,8 @@ module Lithic priority:, # Token of the queue the case belongs to queue_token:, - # Outcome recorded when a case is resolved: - # - # - `CONFIRMED_FRAUD` - The reviewed activity was confirmed to be fraudulent - # - `SUSPICIOUS_ACTIVITY` - The activity is suspicious but not confirmed fraud - # - `FALSE_POSITIVE` - The activity was legitimate and the alert was a false - # positive - # - `NO_ACTION_REQUIRED` - No further action is required - # - `ESCALATED_EXTERNAL` - The case was escalated to an external party + # Outcome recorded when the case was resolved, from the `allowed_resolutions` + # configured on the case's queue resolution:, # Free-form notes describing the resolution resolution_notes:, @@ -203,10 +182,7 @@ module Lithic priority: Lithic::TransactionMonitoring::CasePriority::TaggedSymbol, queue_token: String, - resolution: - T.nilable( - Lithic::TransactionMonitoring::ResolutionOutcome::TaggedSymbol - ), + resolution: T.nilable(String), resolution_notes: T.nilable(String), resolved: T.nilable(Time), rule_token: T.nilable(String), diff --git a/rbi/lithic/models/transaction_monitoring/queue.rbi b/rbi/lithic/models/transaction_monitoring/queue.rbi index 6abc7d7a..76c546be 100644 --- a/rbi/lithic/models/transaction_monitoring/queue.rbi +++ b/rbi/lithic/models/transaction_monitoring/queue.rbi @@ -16,6 +16,11 @@ module Lithic sig { returns(String) } attr_accessor :token + # Resolutions that can be recorded on cases in this queue. Always the effective + # list: the queue's own values when it defines them, otherwise the default list + sig { returns(T::Array[String]) } + attr_accessor :allowed_resolutions + # Number of cases in the queue, broken down by status. A status is omitted when # the queue has no cases in that status sig { returns(Lithic::TransactionMonitoring::Queue::CaseCounts) } @@ -49,6 +54,7 @@ module Lithic sig do params( token: String, + allowed_resolutions: T::Array[String], case_counts: Lithic::TransactionMonitoring::Queue::CaseCounts::OrHash, created: Time, @@ -60,6 +66,9 @@ module Lithic def self.new( # Globally unique identifier for the queue token:, + # Resolutions that can be recorded on cases in this queue. Always the effective + # list: the queue's own values when it defines them, otherwise the default list + allowed_resolutions:, # Number of cases in the queue, broken down by status. A status is omitted when # the queue has no cases in that status case_counts:, @@ -78,6 +87,7 @@ module Lithic override.returns( { token: String, + allowed_resolutions: T::Array[String], case_counts: Lithic::TransactionMonitoring::Queue::CaseCounts, created: Time, description: T.nilable(String), diff --git a/rbi/lithic/models/transaction_monitoring/queue_create_params.rbi b/rbi/lithic/models/transaction_monitoring/queue_create_params.rbi index 2ef88493..92b46572 100644 --- a/rbi/lithic/models/transaction_monitoring/queue_create_params.rbi +++ b/rbi/lithic/models/transaction_monitoring/queue_create_params.rbi @@ -19,6 +19,12 @@ module Lithic sig { returns(String) } attr_accessor :name + # Resolutions that can be recorded on cases in this queue. Omit or send `null` to + # use the default list. Values are free-form labels and must be non-empty and + # unique + sig { returns(T.nilable(T::Array[String])) } + attr_accessor :allowed_resolutions + # Optional description of the queue sig { returns(T.nilable(String)) } attr_accessor :description @@ -26,6 +32,7 @@ module Lithic sig do params( name: String, + allowed_resolutions: T.nilable(T::Array[String]), description: T.nilable(String), request_options: Lithic::RequestOptions::OrHash ).returns(T.attached_class) @@ -33,6 +40,10 @@ module Lithic def self.new( # Human-readable name of the queue name:, + # Resolutions that can be recorded on cases in this queue. Omit or send `null` to + # use the default list. Values are free-form labels and must be non-empty and + # unique + allowed_resolutions: nil, # Optional description of the queue description: nil, request_options: {} @@ -43,6 +54,7 @@ module Lithic override.returns( { name: String, + allowed_resolutions: T.nilable(T::Array[String]), description: T.nilable(String), request_options: Lithic::RequestOptions } diff --git a/rbi/lithic/models/transaction_monitoring/queue_update_params.rbi b/rbi/lithic/models/transaction_monitoring/queue_update_params.rbi index 6b422b80..a72a6cae 100644 --- a/rbi/lithic/models/transaction_monitoring/queue_update_params.rbi +++ b/rbi/lithic/models/transaction_monitoring/queue_update_params.rbi @@ -18,6 +18,13 @@ module Lithic sig { returns(String) } attr_accessor :queue_token + # New list of resolutions that can be recorded on cases in this queue, or `null` + # to revert to the default list. Values are free-form labels and must be non-empty + # and unique. Changing the list only affects what is selectable going forward; the + # `resolution` already stored on a case is preserved as-is + sig { returns(T.nilable(T::Array[String])) } + attr_accessor :allowed_resolutions + # New description for the queue, or `null` to clear it sig { returns(T.nilable(String)) } attr_accessor :description @@ -32,6 +39,7 @@ module Lithic sig do params( queue_token: String, + allowed_resolutions: T.nilable(T::Array[String]), description: T.nilable(String), name: String, request_options: Lithic::RequestOptions::OrHash @@ -39,6 +47,11 @@ module Lithic end def self.new( queue_token:, + # New list of resolutions that can be recorded on cases in this queue, or `null` + # to revert to the default list. Values are free-form labels and must be non-empty + # and unique. Changing the list only affects what is selectable going forward; the + # `resolution` already stored on a case is preserved as-is + allowed_resolutions: nil, # New description for the queue, or `null` to clear it description: nil, # New name for the queue @@ -51,6 +64,7 @@ module Lithic override.returns( { queue_token: String, + allowed_resolutions: T.nilable(T::Array[String]), description: T.nilable(String), name: String, request_options: Lithic::RequestOptions diff --git a/rbi/lithic/models/transaction_monitoring/resolution_outcome.rbi b/rbi/lithic/models/transaction_monitoring/resolution_outcome.rbi deleted file mode 100644 index f614a2e8..00000000 --- a/rbi/lithic/models/transaction_monitoring/resolution_outcome.rbi +++ /dev/null @@ -1,61 +0,0 @@ -# typed: strong - -module Lithic - module Models - module TransactionMonitoring - # Outcome recorded when a case is resolved: - # - # - `CONFIRMED_FRAUD` - The reviewed activity was confirmed to be fraudulent - # - `SUSPICIOUS_ACTIVITY` - The activity is suspicious but not confirmed fraud - # - `FALSE_POSITIVE` - The activity was legitimate and the alert was a false - # positive - # - `NO_ACTION_REQUIRED` - No further action is required - # - `ESCALATED_EXTERNAL` - The case was escalated to an external party - module ResolutionOutcome - extend Lithic::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all(Symbol, Lithic::TransactionMonitoring::ResolutionOutcome) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - CONFIRMED_FRAUD = - T.let( - :CONFIRMED_FRAUD, - Lithic::TransactionMonitoring::ResolutionOutcome::TaggedSymbol - ) - SUSPICIOUS_ACTIVITY = - T.let( - :SUSPICIOUS_ACTIVITY, - Lithic::TransactionMonitoring::ResolutionOutcome::TaggedSymbol - ) - FALSE_POSITIVE = - T.let( - :FALSE_POSITIVE, - Lithic::TransactionMonitoring::ResolutionOutcome::TaggedSymbol - ) - NO_ACTION_REQUIRED = - T.let( - :NO_ACTION_REQUIRED, - Lithic::TransactionMonitoring::ResolutionOutcome::TaggedSymbol - ) - ESCALATED_EXTERNAL = - T.let( - :ESCALATED_EXTERNAL, - Lithic::TransactionMonitoring::ResolutionOutcome::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Lithic::TransactionMonitoring::ResolutionOutcome::TaggedSymbol - ] - ) - end - def self.values - end - end - end - end -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/card_authorizations.rbi b/rbi/lithic/resources/card_authorizations.rbi index 1a61b928..3e7cee98 100644 --- a/rbi/lithic/resources/card_authorizations.rbi +++ b/rbi/lithic/resources/card_authorizations.rbi @@ -5,7 +5,7 @@ module Lithic class CardAuthorizations # Card program's response to Authorization Challenge. Programs that have # Authorization Challenges configured as Out of Band receive a - # [card_authorization.challenge](https://docs.lithic.com/reference/post_card-authorization-challenge) + # [card_authorization.challenge](https://docs.lithic.com/reference/cardauthorizationchallengewebhook) # webhook when an authorization attempt triggers a challenge. The card program # should respond using this endpoint after the cardholder completes the challenge. sig do diff --git a/rbi/lithic/resources/cards.rbi b/rbi/lithic/resources/cards.rbi index dacf2039..55c6f212 100644 --- a/rbi/lithic/resources/cards.rbi +++ b/rbi/lithic/resources/cards.rbi @@ -393,6 +393,9 @@ module Lithic ) end + # **Deprecated.** Use the modern embedded card flow instead: create a session with + # `POST /v1/cards/{card_token}/embed` and render it via `GET /v1/embed`. + # # Handling full card PANs and CVV codes requires that you comply with the Payment # Card Industry Data Security Standards (PCI DSS). Some clients choose to reduce # their compliance obligations by leveraging our embedded card UI solution 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/financial_accounts/balances.rbi b/rbi/lithic/resources/financial_accounts/balances.rbi index 64889964..7348c5f2 100644 --- a/rbi/lithic/resources/financial_accounts/balances.rbi +++ b/rbi/lithic/resources/financial_accounts/balances.rbi @@ -20,9 +20,10 @@ module Lithic financial_account_token, # UTC date of the balance to retrieve. Defaults to latest available balance balance_date: nil, - # Balance after a given financial event occured. For example, passing the - # event_token of a $5 CARD_CLEARING financial event will return a balance - # decreased by $5 + # Balance after a given financial event occured. Note: if an account receives + # multiple events around the same time whose financial impacts cancel out, a + # balance lookup by one of those event tokens may return 404, since their combined + # impact on the account is zero. last_transaction_event_token: nil, request_options: {} ) diff --git a/rbi/lithic/resources/three_ds/decisioning.rbi b/rbi/lithic/resources/three_ds/decisioning.rbi index b92ad037..855644bd 100644 --- a/rbi/lithic/resources/three_ds/decisioning.rbi +++ b/rbi/lithic/resources/three_ds/decisioning.rbi @@ -6,7 +6,7 @@ module Lithic class Decisioning # Card program's response to a 3DS Challenge Request. Challenge Request is emitted # as a webhook - # [three_ds_authentication.challenge](https://docs.lithic.com/reference/post_three-ds-authentication-challenge) + # [three_ds_authentication.challenge](https://docs.lithic.com/reference/threedsauthenticationchallengewebhook) # and your Card Program needs to be configured with Out of Band (OOB) Challenges # in order to receive it (see https://docs.lithic.com/docs/3ds-challenge-flow for # more information). diff --git a/rbi/lithic/resources/transaction_monitoring/cases.rbi b/rbi/lithic/resources/transaction_monitoring/cases.rbi index 16652cca..830b7f50 100644 --- a/rbi/lithic/resources/transaction_monitoring/cases.rbi +++ b/rbi/lithic/resources/transaction_monitoring/cases.rbi @@ -33,8 +33,7 @@ module Lithic actor_token: String, assignee: T.nilable(String), priority: Lithic::TransactionMonitoring::CasePriority::OrSymbol, - resolution: - Lithic::TransactionMonitoring::ResolutionOutcome::OrSymbol, + resolution: String, resolution_notes: String, sla_deadline: T.nilable(Time), status: Lithic::TransactionMonitoring::CaseStatus::OrSymbol, @@ -54,14 +53,8 @@ module Lithic assignee: nil, # Priority level of a case, controlling queue ordering and SLA urgency priority: nil, - # Outcome recorded when a case is resolved: - # - # - `CONFIRMED_FRAUD` - The reviewed activity was confirmed to be fraudulent - # - `SUSPICIOUS_ACTIVITY` - The activity is suspicious but not confirmed fraud - # - `FALSE_POSITIVE` - The activity was legitimate and the alert was a false - # positive - # - `NO_ACTION_REQUIRED` - No further action is required - # - `ESCALATED_EXTERNAL` - The case was escalated to an external party + # Resolution to record on the case. Must be one of the `allowed_resolutions` + # configured on the case's queue, otherwise the request is rejected with a `400` resolution: nil, # Notes describing the resolution resolution_notes: nil, diff --git a/rbi/lithic/resources/transaction_monitoring/queues.rbi b/rbi/lithic/resources/transaction_monitoring/queues.rbi index 6a19689c..c2e027cc 100644 --- a/rbi/lithic/resources/transaction_monitoring/queues.rbi +++ b/rbi/lithic/resources/transaction_monitoring/queues.rbi @@ -8,6 +8,7 @@ module Lithic sig do params( name: String, + allowed_resolutions: T.nilable(T::Array[String]), description: T.nilable(String), request_options: Lithic::RequestOptions::OrHash ).returns(Lithic::TransactionMonitoring::Queue) @@ -15,6 +16,10 @@ module Lithic def create( # Human-readable name of the queue name:, + # Resolutions that can be recorded on cases in this queue. Omit or send `null` to + # use the default list. Values are free-form labels and must be non-empty and + # unique + allowed_resolutions: nil, # Optional description of the queue description: nil, request_options: {} @@ -39,6 +44,7 @@ module Lithic sig do params( queue_token: String, + allowed_resolutions: T.nilable(T::Array[String]), description: T.nilable(String), name: String, request_options: Lithic::RequestOptions::OrHash @@ -47,6 +53,11 @@ module Lithic def update( # Globally unique identifier for the queue. queue_token, + # New list of resolutions that can be recorded on cases in this queue, or `null` + # to revert to the default list. Values are free-form labels and must be non-empty + # and unique. Changing the list only affects what is selectable going forward; the + # `resolution` already stored on a case is preserved as-is + allowed_resolutions: nil, # New description for the queue, or `null` to clear it description: nil, # New name for the queue 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/rbi/lithic/resources/webhooks.rbi b/rbi/lithic/resources/webhooks.rbi index b0449734..4a974358 100644 --- a/rbi/lithic/resources/webhooks.rbi +++ b/rbi/lithic/resources/webhooks.rbi @@ -44,6 +44,8 @@ module Lithic Lithic::DigitalWalletTokenizationUpdatedWebhookEvent, Lithic::DisputeUpdatedWebhookEvent, Lithic::DisputeEvidenceUploadFailedWebhookEvent, + Lithic::EmbedSessionGeneratedWebhookEvent, + Lithic::EmbedViewedWebhookEvent, Lithic::ExternalBankAccountCreatedWebhookEvent, Lithic::ExternalBankAccountUpdatedWebhookEvent, Lithic::ExternalPaymentCreatedWebhookEvent, diff --git a/sig/lithic/models.rbs b/sig/lithic/models.rbs index 90535c76..8e2a2904 100644 --- a/sig/lithic/models.rbs +++ b/sig/lithic/models.rbs @@ -241,6 +241,10 @@ module Lithic class Document = Lithic::Models::Document + class EmbedSessionGeneratedWebhookEvent = Lithic::Models::EmbedSessionGeneratedWebhookEvent + + class EmbedViewedWebhookEvent = Lithic::Models::EmbedViewedWebhookEvent + class Event = Lithic::Models::Event class EventListAttemptsParams = Lithic::Models::EventListAttemptsParams diff --git a/sig/lithic/models/account_activity_list_params.rbs b/sig/lithic/models/account_activity_list_params.rbs index 41c09bb8..b099fb77 100644 --- a/sig/lithic/models/account_activity_list_params.rbs +++ b/sig/lithic/models/account_activity_list_params.rbs @@ -103,6 +103,7 @@ module Lithic type category = :ACH | :WIRE + | :STABLECOIN | :BALANCE_OR_FUNDING | :FEE | :REWARD @@ -123,12 +124,14 @@ module Lithic | :MANAGEMENT_DISBURSEMENT | :HOLD | :PROGRAM_FUNDING + | :PROGRAM_TRANSFER module Category extend Lithic::Internal::Type::Enum ACH: :ACH WIRE: :WIRE + STABLECOIN: :STABLECOIN BALANCE_OR_FUNDING: :BALANCE_OR_FUNDING FEE: :FEE REWARD: :REWARD @@ -149,6 +152,7 @@ module Lithic MANAGEMENT_DISBURSEMENT: :MANAGEMENT_DISBURSEMENT HOLD: :HOLD PROGRAM_FUNDING: :PROGRAM_FUNDING + PROGRAM_TRANSFER: :PROGRAM_TRANSFER def self?.values: -> ::Array[Lithic::Models::AccountActivityListParams::category] end diff --git a/sig/lithic/models/account_activity_list_response.rbs b/sig/lithic/models/account_activity_list_response.rbs index 42c060ef..b2fb3ed1 100644 --- a/sig/lithic/models/account_activity_list_response.rbs +++ b/sig/lithic/models/account_activity_list_response.rbs @@ -91,6 +91,7 @@ module Lithic type category = :ACH | :WIRE + | :STABLECOIN | :BALANCE_OR_FUNDING | :FEE | :REWARD @@ -111,12 +112,14 @@ module Lithic | :MANAGEMENT_DISBURSEMENT | :HOLD | :PROGRAM_FUNDING + | :PROGRAM_TRANSFER module Category extend Lithic::Internal::Type::Enum ACH: :ACH WIRE: :WIRE + STABLECOIN: :STABLECOIN BALANCE_OR_FUNDING: :BALANCE_OR_FUNDING FEE: :FEE REWARD: :REWARD @@ -137,6 +140,7 @@ module Lithic MANAGEMENT_DISBURSEMENT: :MANAGEMENT_DISBURSEMENT HOLD: :HOLD PROGRAM_FUNDING: :PROGRAM_FUNDING + PROGRAM_TRANSFER: :PROGRAM_TRANSFER def self?.values: -> ::Array[Lithic::Models::AccountActivityListResponse::Internal::category] end diff --git a/sig/lithic/models/account_activity_retrieve_transaction_response.rbs b/sig/lithic/models/account_activity_retrieve_transaction_response.rbs index fc82c753..6003cc68 100644 --- a/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +++ b/sig/lithic/models/account_activity_retrieve_transaction_response.rbs @@ -91,6 +91,7 @@ module Lithic type category = :ACH | :WIRE + | :STABLECOIN | :BALANCE_OR_FUNDING | :FEE | :REWARD @@ -111,12 +112,14 @@ module Lithic | :MANAGEMENT_DISBURSEMENT | :HOLD | :PROGRAM_FUNDING + | :PROGRAM_TRANSFER module Category extend Lithic::Internal::Type::Enum ACH: :ACH WIRE: :WIRE + STABLECOIN: :STABLECOIN BALANCE_OR_FUNDING: :BALANCE_OR_FUNDING FEE: :FEE REWARD: :REWARD @@ -137,6 +140,7 @@ module Lithic MANAGEMENT_DISBURSEMENT: :MANAGEMENT_DISBURSEMENT HOLD: :HOLD PROGRAM_FUNDING: :PROGRAM_FUNDING + PROGRAM_TRANSFER: :PROGRAM_TRANSFER def self?.values: -> ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::category] end diff --git a/sig/lithic/models/auth_rules/conditional_ach_action_parameters.rbs b/sig/lithic/models/auth_rules/conditional_ach_action_parameters.rbs index 73541612..09557fbb 100644 --- a/sig/lithic/models/auth_rules/conditional_ach_action_parameters.rbs +++ b/sig/lithic/models/auth_rules/conditional_ach_action_parameters.rbs @@ -273,6 +273,7 @@ module Lithic | :TRANSACTION_AMOUNT | :SEC_CODE | :MEMO + | :RECIPIENT_NAME module Attribute extend Lithic::Internal::Type::Enum @@ -283,6 +284,7 @@ module Lithic TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT SEC_CODE: :SEC_CODE MEMO: :MEMO + RECIPIENT_NAME: :RECIPIENT_NAME def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalACHActionParameters::Condition::attribute] end diff --git a/sig/lithic/models/book_transfer_create_params.rbs b/sig/lithic/models/book_transfer_create_params.rbs index 34ae9c8e..13d2c7f0 100644 --- a/sig/lithic/models/book_transfer_create_params.rbs +++ b/sig/lithic/models/book_transfer_create_params.rbs @@ -93,6 +93,7 @@ module Lithic | :INTERNAL | :REWARD | :PROGRAM_FUNDING + | :PROGRAM_TRANSFER | :TRANSFER module Category @@ -106,6 +107,7 @@ module Lithic INTERNAL: :INTERNAL REWARD: :REWARD PROGRAM_FUNDING: :PROGRAM_FUNDING + PROGRAM_TRANSFER: :PROGRAM_TRANSFER TRANSFER: :TRANSFER def self?.values: -> ::Array[Lithic::Models::BookTransferCreateParams::category] @@ -132,6 +134,7 @@ module Lithic | :INTEREST | :LATE_PAYMENT | :BILL_PAYMENT + | :PAYMENT_FEE | :CASH_BACK | :ACCOUNT_TO_ACCOUNT | :CARD_TO_CARD @@ -147,6 +150,8 @@ module Lithic | :SERVICE | :TRANSFER | :COLLECTION + | :LITHIC_PROGRAM_TRANSFER + | :BANK_PROGRAM_TRANSFER module Type extend Lithic::Internal::Type::Enum @@ -171,6 +176,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 @@ -186,6 +192,8 @@ module Lithic SERVICE: :SERVICE TRANSFER: :TRANSFER COLLECTION: :COLLECTION + LITHIC_PROGRAM_TRANSFER: :LITHIC_PROGRAM_TRANSFER + BANK_PROGRAM_TRANSFER: :BANK_PROGRAM_TRANSFER def self?.values: -> ::Array[Lithic::Models::BookTransferCreateParams::type_] end diff --git a/sig/lithic/models/book_transfer_list_params.rbs b/sig/lithic/models/book_transfer_list_params.rbs index c1ffc309..69bedee5 100644 --- a/sig/lithic/models/book_transfer_list_params.rbs +++ b/sig/lithic/models/book_transfer_list_params.rbs @@ -109,6 +109,7 @@ module Lithic | :INTERNAL | :REWARD | :PROGRAM_FUNDING + | :PROGRAM_TRANSFER | :TRANSFER module Category @@ -122,6 +123,7 @@ module Lithic INTERNAL: :INTERNAL REWARD: :REWARD PROGRAM_FUNDING: :PROGRAM_FUNDING + PROGRAM_TRANSFER: :PROGRAM_TRANSFER TRANSFER: :TRANSFER def self?.values: -> ::Array[Lithic::Models::BookTransferListParams::category] diff --git a/sig/lithic/models/book_transfer_response.rbs b/sig/lithic/models/book_transfer_response.rbs index 760bcd97..bc1526d2 100644 --- a/sig/lithic/models/book_transfer_response.rbs +++ b/sig/lithic/models/book_transfer_response.rbs @@ -100,6 +100,7 @@ module Lithic | :INTERNAL | :REWARD | :PROGRAM_FUNDING + | :PROGRAM_TRANSFER | :TRANSFER module Category @@ -113,6 +114,7 @@ module Lithic INTERNAL: :INTERNAL REWARD: :REWARD PROGRAM_FUNDING: :PROGRAM_FUNDING + PROGRAM_TRANSFER: :PROGRAM_TRANSFER TRANSFER: :TRANSFER def self?.values: -> ::Array[Lithic::Models::BookTransferResponse::category] @@ -212,6 +214,7 @@ module Lithic | :INTEREST | :LATE_PAYMENT | :BILL_PAYMENT + | :PAYMENT_FEE | :CASH_BACK | :ACCOUNT_TO_ACCOUNT | :CARD_TO_CARD @@ -227,6 +230,8 @@ module Lithic | :SERVICE | :TRANSFER | :COLLECTION + | :LITHIC_PROGRAM_TRANSFER + | :BANK_PROGRAM_TRANSFER module Type extend Lithic::Internal::Type::Enum @@ -251,6 +256,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 @@ -266,6 +272,8 @@ module Lithic SERVICE: :SERVICE TRANSFER: :TRANSFER COLLECTION: :COLLECTION + LITHIC_PROGRAM_TRANSFER: :LITHIC_PROGRAM_TRANSFER + BANK_PROGRAM_TRANSFER: :BANK_PROGRAM_TRANSFER def self?.values: -> ::Array[Lithic::Models::BookTransferResponse::Event::type_] end diff --git a/sig/lithic/models/embed_session_generated_webhook_event.rbs b/sig/lithic/models/embed_session_generated_webhook_event.rbs new file mode 100644 index 00000000..0e3d3ad9 --- /dev/null +++ b/sig/lithic/models/embed_session_generated_webhook_event.rbs @@ -0,0 +1,66 @@ +module Lithic + module Models + type embed_session_generated_webhook_event = + { + account_token: String, + card_token: String, + device_details: Lithic::EmbedSessionGeneratedWebhookEvent::DeviceDetails, + event_type: :"embed.session_generated", + session_id: String, + session_type: Lithic::Models::EmbedSessionGeneratedWebhookEvent::session_type + } + + class EmbedSessionGeneratedWebhookEvent < Lithic::Internal::Type::BaseModel + attr_accessor account_token: String + + attr_accessor card_token: String + + attr_accessor device_details: Lithic::EmbedSessionGeneratedWebhookEvent::DeviceDetails + + attr_accessor event_type: :"embed.session_generated" + + attr_accessor session_id: String + + attr_accessor session_type: Lithic::Models::EmbedSessionGeneratedWebhookEvent::session_type + + def initialize: ( + account_token: String, + card_token: String, + device_details: Lithic::EmbedSessionGeneratedWebhookEvent::DeviceDetails, + session_id: String, + session_type: Lithic::Models::EmbedSessionGeneratedWebhookEvent::session_type, + ?event_type: :"embed.session_generated" + ) -> void + + def to_hash: -> { + account_token: String, + card_token: String, + device_details: Lithic::EmbedSessionGeneratedWebhookEvent::DeviceDetails, + event_type: :"embed.session_generated", + session_id: String, + session_type: Lithic::Models::EmbedSessionGeneratedWebhookEvent::session_type + } + + type device_details = { ip_address: String } + + class DeviceDetails < Lithic::Internal::Type::BaseModel + attr_accessor ip_address: String + + def initialize: (ip_address: String) -> void + + def to_hash: -> { ip_address: String } + end + + type session_type = :CARD_EMBED | :PIN_SETTING_EMBED + + module SessionType + extend Lithic::Internal::Type::Enum + + CARD_EMBED: :CARD_EMBED + PIN_SETTING_EMBED: :PIN_SETTING_EMBED + + def self?.values: -> ::Array[Lithic::Models::EmbedSessionGeneratedWebhookEvent::session_type] + end + end + end +end diff --git a/sig/lithic/models/embed_viewed_webhook_event.rbs b/sig/lithic/models/embed_viewed_webhook_event.rbs new file mode 100644 index 00000000..0e57a9e6 --- /dev/null +++ b/sig/lithic/models/embed_viewed_webhook_event.rbs @@ -0,0 +1,68 @@ +module Lithic + module Models + type embed_viewed_webhook_event = + { + account_token: String, + card_token: String, + device_details: Lithic::EmbedViewedWebhookEvent::DeviceDetails, + embed_type: Lithic::Models::EmbedViewedWebhookEvent::embed_type, + event_type: :"embed.viewed", + session_id: String + } + + class EmbedViewedWebhookEvent < Lithic::Internal::Type::BaseModel + attr_accessor account_token: String + + attr_accessor card_token: String + + attr_accessor device_details: Lithic::EmbedViewedWebhookEvent::DeviceDetails + + attr_accessor embed_type: Lithic::Models::EmbedViewedWebhookEvent::embed_type + + attr_accessor event_type: :"embed.viewed" + + attr_accessor session_id: String + + def initialize: ( + account_token: String, + card_token: String, + device_details: Lithic::EmbedViewedWebhookEvent::DeviceDetails, + embed_type: Lithic::Models::EmbedViewedWebhookEvent::embed_type, + session_id: String, + ?event_type: :"embed.viewed" + ) -> void + + def to_hash: -> { + account_token: String, + card_token: String, + device_details: Lithic::EmbedViewedWebhookEvent::DeviceDetails, + embed_type: Lithic::Models::EmbedViewedWebhookEvent::embed_type, + event_type: :"embed.viewed", + session_id: String + } + + type device_details = { ip_address: String } + + class DeviceDetails < Lithic::Internal::Type::BaseModel + attr_accessor ip_address: String + + def initialize: (ip_address: String) -> void + + def to_hash: -> { ip_address: String } + end + + type embed_type = :PAN | :CVV | :EXP_MONTH | :EXP_YEAR + + module EmbedType + extend Lithic::Internal::Type::Enum + + PAN: :PAN + CVV: :CVV + EXP_MONTH: :EXP_MONTH + EXP_YEAR: :EXP_YEAR + + def self?.values: -> ::Array[Lithic::Models::EmbedViewedWebhookEvent::embed_type] + end + end + end +end diff --git a/sig/lithic/models/event.rbs b/sig/lithic/models/event.rbs index 7c0d9592..91af1586 100644 --- a/sig/lithic/models/event.rbs +++ b/sig/lithic/models/event.rbs @@ -64,6 +64,8 @@ module Lithic | :"dispute_transaction.created" | :"dispute_transaction.updated" | :"dispute.updated" + | :"embed.session_generated" + | :"embed.viewed" | :"external_bank_account.created" | :"external_bank_account.updated" | :"external_payment.created" @@ -127,6 +129,8 @@ module Lithic DISPUTE_TRANSACTION_CREATED: :"dispute_transaction.created" DISPUTE_TRANSACTION_UPDATED: :"dispute_transaction.updated" DISPUTE_UPDATED: :"dispute.updated" + EMBED_SESSION_GENERATED: :"embed.session_generated" + EMBED_VIEWED: :"embed.viewed" EXTERNAL_BANK_ACCOUNT_CREATED: :"external_bank_account.created" EXTERNAL_BANK_ACCOUNT_UPDATED: :"external_bank_account.updated" EXTERNAL_PAYMENT_CREATED: :"external_payment.created" diff --git a/sig/lithic/models/event_list_params.rbs b/sig/lithic/models/event_list_params.rbs index 1d636a58..c41a5477 100644 --- a/sig/lithic/models/event_list_params.rbs +++ b/sig/lithic/models/event_list_params.rbs @@ -101,6 +101,8 @@ module Lithic | :"dispute_transaction.created" | :"dispute_transaction.updated" | :"dispute.updated" + | :"embed.session_generated" + | :"embed.viewed" | :"external_bank_account.created" | :"external_bank_account.updated" | :"external_payment.created" @@ -164,6 +166,8 @@ module Lithic DISPUTE_TRANSACTION_CREATED: :"dispute_transaction.created" DISPUTE_TRANSACTION_UPDATED: :"dispute_transaction.updated" DISPUTE_UPDATED: :"dispute.updated" + EMBED_SESSION_GENERATED: :"embed.session_generated" + EMBED_VIEWED: :"embed.viewed" EXTERNAL_BANK_ACCOUNT_CREATED: :"external_bank_account.created" EXTERNAL_BANK_ACCOUNT_UPDATED: :"external_bank_account.updated" EXTERNAL_PAYMENT_CREATED: :"external_payment.created" diff --git a/sig/lithic/models/event_subscription.rbs b/sig/lithic/models/event_subscription.rbs index 26f4d54d..f47b795e 100644 --- a/sig/lithic/models/event_subscription.rbs +++ b/sig/lithic/models/event_subscription.rbs @@ -69,6 +69,8 @@ module Lithic | :"dispute_transaction.created" | :"dispute_transaction.updated" | :"dispute.updated" + | :"embed.session_generated" + | :"embed.viewed" | :"external_bank_account.created" | :"external_bank_account.updated" | :"external_payment.created" @@ -132,6 +134,8 @@ module Lithic DISPUTE_TRANSACTION_CREATED: :"dispute_transaction.created" DISPUTE_TRANSACTION_UPDATED: :"dispute_transaction.updated" DISPUTE_UPDATED: :"dispute.updated" + EMBED_SESSION_GENERATED: :"embed.session_generated" + EMBED_VIEWED: :"embed.viewed" EXTERNAL_BANK_ACCOUNT_CREATED: :"external_bank_account.created" EXTERNAL_BANK_ACCOUNT_UPDATED: :"external_bank_account.updated" EXTERNAL_PAYMENT_CREATED: :"external_payment.created" diff --git a/sig/lithic/models/events/subscription_create_params.rbs b/sig/lithic/models/events/subscription_create_params.rbs index f59147ad..8afcfd98 100644 --- a/sig/lithic/models/events/subscription_create_params.rbs +++ b/sig/lithic/models/events/subscription_create_params.rbs @@ -79,6 +79,8 @@ module Lithic | :"dispute_transaction.created" | :"dispute_transaction.updated" | :"dispute.updated" + | :"embed.session_generated" + | :"embed.viewed" | :"external_bank_account.created" | :"external_bank_account.updated" | :"external_payment.created" @@ -142,6 +144,8 @@ module Lithic DISPUTE_TRANSACTION_CREATED: :"dispute_transaction.created" DISPUTE_TRANSACTION_UPDATED: :"dispute_transaction.updated" DISPUTE_UPDATED: :"dispute.updated" + EMBED_SESSION_GENERATED: :"embed.session_generated" + EMBED_VIEWED: :"embed.viewed" EXTERNAL_BANK_ACCOUNT_CREATED: :"external_bank_account.created" EXTERNAL_BANK_ACCOUNT_UPDATED: :"external_bank_account.updated" EXTERNAL_PAYMENT_CREATED: :"external_payment.created" diff --git a/sig/lithic/models/events/subscription_send_simulated_example_params.rbs b/sig/lithic/models/events/subscription_send_simulated_example_params.rbs index efaaac92..dfb3a7cc 100644 --- a/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +++ b/sig/lithic/models/events/subscription_send_simulated_example_params.rbs @@ -65,6 +65,8 @@ module Lithic | :"dispute_transaction.created" | :"dispute_transaction.updated" | :"dispute.updated" + | :"embed.session_generated" + | :"embed.viewed" | :"external_bank_account.created" | :"external_bank_account.updated" | :"external_payment.created" @@ -128,6 +130,8 @@ module Lithic DISPUTE_TRANSACTION_CREATED: :"dispute_transaction.created" DISPUTE_TRANSACTION_UPDATED: :"dispute_transaction.updated" DISPUTE_UPDATED: :"dispute.updated" + EMBED_SESSION_GENERATED: :"embed.session_generated" + EMBED_VIEWED: :"embed.viewed" EXTERNAL_BANK_ACCOUNT_CREATED: :"external_bank_account.created" EXTERNAL_BANK_ACCOUNT_UPDATED: :"external_bank_account.updated" EXTERNAL_PAYMENT_CREATED: :"external_payment.created" diff --git a/sig/lithic/models/events/subscription_update_params.rbs b/sig/lithic/models/events/subscription_update_params.rbs index d2f6ffe2..df5738ce 100644 --- a/sig/lithic/models/events/subscription_update_params.rbs +++ b/sig/lithic/models/events/subscription_update_params.rbs @@ -84,6 +84,8 @@ module Lithic | :"dispute_transaction.created" | :"dispute_transaction.updated" | :"dispute.updated" + | :"embed.session_generated" + | :"embed.viewed" | :"external_bank_account.created" | :"external_bank_account.updated" | :"external_payment.created" @@ -147,6 +149,8 @@ module Lithic DISPUTE_TRANSACTION_CREATED: :"dispute_transaction.created" DISPUTE_TRANSACTION_UPDATED: :"dispute_transaction.updated" DISPUTE_UPDATED: :"dispute.updated" + EMBED_SESSION_GENERATED: :"embed.session_generated" + EMBED_VIEWED: :"embed.viewed" EXTERNAL_BANK_ACCOUNT_CREATED: :"external_bank_account.created" EXTERNAL_BANK_ACCOUNT_UPDATED: :"external_bank_account.updated" EXTERNAL_PAYMENT_CREATED: :"external_payment.created" diff --git a/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs b/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs index 8364a3ec..68bfec54 100644 --- a/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +++ b/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs @@ -111,6 +111,7 @@ module Lithic type category = :ACH | :WIRE + | :STABLECOIN | :BALANCE_OR_FUNDING | :FEE | :REWARD @@ -131,12 +132,14 @@ module Lithic | :MANAGEMENT_DISBURSEMENT | :HOLD | :PROGRAM_FUNDING + | :PROGRAM_TRANSFER module Category extend Lithic::Internal::Type::Enum ACH: :ACH WIRE: :WIRE + STABLECOIN: :STABLECOIN BALANCE_OR_FUNDING: :BALANCE_OR_FUNDING FEE: :FEE REWARD: :REWARD @@ -157,6 +160,7 @@ module Lithic MANAGEMENT_DISBURSEMENT: :MANAGEMENT_DISBURSEMENT HOLD: :HOLD PROGRAM_FUNDING: :PROGRAM_FUNDING + PROGRAM_TRANSFER: :PROGRAM_TRANSFER def self?.values: -> ::Array[Lithic::Models::FinancialAccounts::Statements::StatementLineItems::Data::category] end @@ -243,6 +247,8 @@ module Lithic | :RETURNED_PAYMENT | :RETURNED_PAYMENT_REVERSAL | :LITHIC_NETWORK_PAYMENT + | :LITHIC_PROGRAM_TRANSFER + | :BANK_PROGRAM_TRANSFER | :ANNUAL | :ANNUAL_REVERSAL | :QUARTERLY @@ -250,6 +256,9 @@ module Lithic | :MONTHLY | :MONTHLY_REVERSAL | :ACCOUNT_TO_ACCOUNT + | :STABLECOIN_RECEIVED + | :STABLECOIN_REVIEWED + | :STABLECOIN_SETTLED module EventType extend Lithic::Internal::Type::Enum @@ -335,6 +344,8 @@ module Lithic RETURNED_PAYMENT: :RETURNED_PAYMENT RETURNED_PAYMENT_REVERSAL: :RETURNED_PAYMENT_REVERSAL LITHIC_NETWORK_PAYMENT: :LITHIC_NETWORK_PAYMENT + LITHIC_PROGRAM_TRANSFER: :LITHIC_PROGRAM_TRANSFER + BANK_PROGRAM_TRANSFER: :BANK_PROGRAM_TRANSFER ANNUAL: :ANNUAL ANNUAL_REVERSAL: :ANNUAL_REVERSAL QUARTERLY: :QUARTERLY @@ -342,6 +353,9 @@ module Lithic MONTHLY: :MONTHLY MONTHLY_REVERSAL: :MONTHLY_REVERSAL ACCOUNT_TO_ACCOUNT: :ACCOUNT_TO_ACCOUNT + STABLECOIN_RECEIVED: :STABLECOIN_RECEIVED + STABLECOIN_REVIEWED: :STABLECOIN_REVIEWED + STABLECOIN_SETTLED: :STABLECOIN_SETTLED def self?.values: -> ::Array[Lithic::Models::FinancialAccounts::Statements::StatementLineItems::Data::event_type] end diff --git a/sig/lithic/models/financial_event.rbs b/sig/lithic/models/financial_event.rbs index 6f01f3bd..325179cc 100644 --- a/sig/lithic/models/financial_event.rbs +++ b/sig/lithic/models/financial_event.rbs @@ -143,6 +143,8 @@ module Lithic | :RETURNED_PAYMENT | :RETURNED_PAYMENT_REVERSAL | :LITHIC_NETWORK_PAYMENT + | :LITHIC_PROGRAM_TRANSFER + | :BANK_PROGRAM_TRANSFER | :ANNUAL | :ANNUAL_REVERSAL | :QUARTERLY @@ -150,6 +152,9 @@ module Lithic | :MONTHLY | :MONTHLY_REVERSAL | :ACCOUNT_TO_ACCOUNT + | :STABLECOIN_RECEIVED + | :STABLECOIN_REVIEWED + | :STABLECOIN_SETTLED module Type extend Lithic::Internal::Type::Enum @@ -235,6 +240,8 @@ module Lithic RETURNED_PAYMENT: :RETURNED_PAYMENT RETURNED_PAYMENT_REVERSAL: :RETURNED_PAYMENT_REVERSAL LITHIC_NETWORK_PAYMENT: :LITHIC_NETWORK_PAYMENT + LITHIC_PROGRAM_TRANSFER: :LITHIC_PROGRAM_TRANSFER + BANK_PROGRAM_TRANSFER: :BANK_PROGRAM_TRANSFER ANNUAL: :ANNUAL ANNUAL_REVERSAL: :ANNUAL_REVERSAL QUARTERLY: :QUARTERLY @@ -242,6 +249,9 @@ module Lithic MONTHLY: :MONTHLY MONTHLY_REVERSAL: :MONTHLY_REVERSAL ACCOUNT_TO_ACCOUNT: :ACCOUNT_TO_ACCOUNT + STABLECOIN_RECEIVED: :STABLECOIN_RECEIVED + STABLECOIN_REVIEWED: :STABLECOIN_REVIEWED + STABLECOIN_SETTLED: :STABLECOIN_SETTLED def self?.values: -> ::Array[Lithic::Models::FinancialEvent::type_] end diff --git a/sig/lithic/models/fraud/transaction_report_response.rbs b/sig/lithic/models/fraud/transaction_report_response.rbs index 907d34b7..e47608fe 100644 --- a/sig/lithic/models/fraud/transaction_report_response.rbs +++ b/sig/lithic/models/fraud/transaction_report_response.rbs @@ -5,10 +5,10 @@ module Lithic { fraud_status: Lithic::Models::Fraud::TransactionReportResponse::fraud_status, transaction_token: String, - comment: String, - created_at: Time, - fraud_type: Lithic::Models::Fraud::TransactionReportResponse::fraud_type, - updated_at: Time + comment: String?, + created_at: Time?, + fraud_type: Lithic::Models::Fraud::TransactionReportResponse::fraud_type?, + updated_at: Time? } class TransactionReportResponse < Lithic::Internal::Type::BaseModel @@ -16,40 +16,30 @@ module Lithic attr_accessor transaction_token: String - attr_reader comment: String? + attr_accessor comment: String? - def comment=: (String) -> String + attr_accessor created_at: Time? - attr_reader created_at: Time? + attr_accessor fraud_type: Lithic::Models::Fraud::TransactionReportResponse::fraud_type? - def created_at=: (Time) -> Time - - attr_reader fraud_type: Lithic::Models::Fraud::TransactionReportResponse::fraud_type? - - def fraud_type=: ( - Lithic::Models::Fraud::TransactionReportResponse::fraud_type - ) -> Lithic::Models::Fraud::TransactionReportResponse::fraud_type - - attr_reader updated_at: Time? - - def updated_at=: (Time) -> Time + attr_accessor updated_at: Time? def initialize: ( fraud_status: Lithic::Models::Fraud::TransactionReportResponse::fraud_status, transaction_token: String, - ?comment: String, - ?created_at: Time, - ?fraud_type: Lithic::Models::Fraud::TransactionReportResponse::fraud_type, - ?updated_at: Time + ?comment: String?, + ?created_at: Time?, + ?fraud_type: Lithic::Models::Fraud::TransactionReportResponse::fraud_type?, + ?updated_at: Time? ) -> void def to_hash: -> { fraud_status: Lithic::Models::Fraud::TransactionReportResponse::fraud_status, transaction_token: String, - comment: String, - created_at: Time, - fraud_type: Lithic::Models::Fraud::TransactionReportResponse::fraud_type, - updated_at: Time + comment: String?, + created_at: Time?, + fraud_type: Lithic::Models::Fraud::TransactionReportResponse::fraud_type?, + updated_at: Time? } type fraud_status = diff --git a/sig/lithic/models/fraud/transaction_retrieve_response.rbs b/sig/lithic/models/fraud/transaction_retrieve_response.rbs index e7d2996c..8bbdcffe 100644 --- a/sig/lithic/models/fraud/transaction_retrieve_response.rbs +++ b/sig/lithic/models/fraud/transaction_retrieve_response.rbs @@ -5,10 +5,10 @@ module Lithic { fraud_status: Lithic::Models::Fraud::TransactionRetrieveResponse::fraud_status, transaction_token: String, - comment: String, - created_at: Time, - fraud_type: Lithic::Models::Fraud::TransactionRetrieveResponse::fraud_type, - updated_at: Time + comment: String?, + created_at: Time?, + fraud_type: Lithic::Models::Fraud::TransactionRetrieveResponse::fraud_type?, + updated_at: Time? } class TransactionRetrieveResponse < Lithic::Internal::Type::BaseModel @@ -16,40 +16,30 @@ module Lithic attr_accessor transaction_token: String - attr_reader comment: String? + attr_accessor comment: String? - def comment=: (String) -> String + attr_accessor created_at: Time? - attr_reader created_at: Time? + attr_accessor fraud_type: Lithic::Models::Fraud::TransactionRetrieveResponse::fraud_type? - def created_at=: (Time) -> Time - - attr_reader fraud_type: Lithic::Models::Fraud::TransactionRetrieveResponse::fraud_type? - - def fraud_type=: ( - Lithic::Models::Fraud::TransactionRetrieveResponse::fraud_type - ) -> Lithic::Models::Fraud::TransactionRetrieveResponse::fraud_type - - attr_reader updated_at: Time? - - def updated_at=: (Time) -> Time + attr_accessor updated_at: Time? def initialize: ( fraud_status: Lithic::Models::Fraud::TransactionRetrieveResponse::fraud_status, transaction_token: String, - ?comment: String, - ?created_at: Time, - ?fraud_type: Lithic::Models::Fraud::TransactionRetrieveResponse::fraud_type, - ?updated_at: Time + ?comment: String?, + ?created_at: Time?, + ?fraud_type: Lithic::Models::Fraud::TransactionRetrieveResponse::fraud_type?, + ?updated_at: Time? ) -> void def to_hash: -> { fraud_status: Lithic::Models::Fraud::TransactionRetrieveResponse::fraud_status, transaction_token: String, - comment: String, - created_at: Time, - fraud_type: Lithic::Models::Fraud::TransactionRetrieveResponse::fraud_type, - updated_at: Time + comment: String?, + created_at: Time?, + fraud_type: Lithic::Models::Fraud::TransactionRetrieveResponse::fraud_type?, + updated_at: Time? } type fraud_status = diff --git a/sig/lithic/models/parsed_webhook_event.rbs b/sig/lithic/models/parsed_webhook_event.rbs index 262cc435..78c3787a 100644 --- a/sig/lithic/models/parsed_webhook_event.rbs +++ b/sig/lithic/models/parsed_webhook_event.rbs @@ -35,6 +35,8 @@ module Lithic | Lithic::DigitalWalletTokenizationUpdatedWebhookEvent | Lithic::DisputeUpdatedWebhookEvent | Lithic::DisputeEvidenceUploadFailedWebhookEvent + | Lithic::EmbedSessionGeneratedWebhookEvent + | Lithic::EmbedViewedWebhookEvent | Lithic::ExternalBankAccountCreatedWebhookEvent | Lithic::ExternalBankAccountUpdatedWebhookEvent | Lithic::ExternalPaymentCreatedWebhookEvent diff --git a/sig/lithic/models/payment.rbs b/sig/lithic/models/payment.rbs index 23882360..a5f55aa8 100644 --- a/sig/lithic/models/payment.rbs +++ b/sig/lithic/models/payment.rbs @@ -137,6 +137,7 @@ module Lithic type category = :ACH | :WIRE + | :STABLECOIN | :BALANCE_OR_FUNDING | :FEE | :REWARD @@ -157,12 +158,14 @@ module Lithic | :MANAGEMENT_DISBURSEMENT | :HOLD | :PROGRAM_FUNDING + | :PROGRAM_TRANSFER module Category extend Lithic::Internal::Type::Enum ACH: :ACH WIRE: :WIRE + STABLECOIN: :STABLECOIN BALANCE_OR_FUNDING: :BALANCE_OR_FUNDING FEE: :FEE REWARD: :REWARD @@ -183,6 +186,7 @@ module Lithic MANAGEMENT_DISBURSEMENT: :MANAGEMENT_DISBURSEMENT HOLD: :HOLD PROGRAM_FUNDING: :PROGRAM_FUNDING + PROGRAM_TRANSFER: :PROGRAM_TRANSFER def self?.values: -> ::Array[Lithic::Models::Payment::category] end @@ -282,6 +286,9 @@ module Lithic | :WIRE_RETURN_OUTBOUND_SENT | :WIRE_RETURN_OUTBOUND_SETTLED | :WIRE_RETURN_OUTBOUND_REJECTED + | :STABLECOIN_RECEIVED + | :STABLECOIN_REVIEWED + | :STABLECOIN_SETTLED module Type extend Lithic::Internal::Type::Enum @@ -308,6 +315,9 @@ module Lithic WIRE_RETURN_OUTBOUND_SENT: :WIRE_RETURN_OUTBOUND_SENT WIRE_RETURN_OUTBOUND_SETTLED: :WIRE_RETURN_OUTBOUND_SETTLED WIRE_RETURN_OUTBOUND_REJECTED: :WIRE_RETURN_OUTBOUND_REJECTED + STABLECOIN_RECEIVED: :STABLECOIN_RECEIVED + STABLECOIN_REVIEWED: :STABLECOIN_REVIEWED + STABLECOIN_SETTLED: :STABLECOIN_SETTLED def self?.values: -> ::Array[Lithic::Models::Payment::Event::type_] end @@ -363,6 +373,7 @@ module Lithic company_id: String?, override_company_name: String?, receipt_routing_number: String?, + recipient_name: String?, retries: Integer?, return_reason_code: String?, trace_numbers: ::Array[String] @@ -381,6 +392,8 @@ module Lithic attr_accessor receipt_routing_number: String? + attr_accessor recipient_name: String? + attr_accessor retries: Integer? attr_accessor return_reason_code: String? @@ -396,6 +409,7 @@ module Lithic ?company_id: String?, ?override_company_name: String?, ?receipt_routing_number: String?, + ?recipient_name: String?, ?retries: Integer?, ?return_reason_code: String?, ?trace_numbers: ::Array[String] @@ -408,6 +422,7 @@ module Lithic company_id: String?, override_company_name: String?, receipt_routing_number: String?, + recipient_name: String?, retries: Integer?, return_reason_code: String?, trace_numbers: ::Array[String] diff --git a/sig/lithic/models/payment_list_params.rbs b/sig/lithic/models/payment_list_params.rbs index 9d68c6f9..84f6a9ec 100644 --- a/sig/lithic/models/payment_list_params.rbs +++ b/sig/lithic/models/payment_list_params.rbs @@ -121,7 +121,7 @@ module Lithic def self?.values: -> ::Array[Lithic::Models::PaymentListParams::result] end - type status = :DECLINED | :PENDING | :RETURNED | :SETTLED + type status = :DECLINED | :PENDING | :RETURNED | :REVERSED | :SETTLED module Status extend Lithic::Internal::Type::Enum @@ -129,6 +129,7 @@ module Lithic DECLINED: :DECLINED PENDING: :PENDING RETURNED: :RETURNED + REVERSED: :REVERSED SETTLED: :SETTLED def self?.values: -> ::Array[Lithic::Models::PaymentListParams::status] diff --git a/sig/lithic/models/transaction_monitoring/case_update_params.rbs b/sig/lithic/models/transaction_monitoring/case_update_params.rbs index 715617c2..d164cb08 100644 --- a/sig/lithic/models/transaction_monitoring/case_update_params.rbs +++ b/sig/lithic/models/transaction_monitoring/case_update_params.rbs @@ -7,7 +7,7 @@ module Lithic actor_token: String, assignee: String?, priority: Lithic::Models::TransactionMonitoring::case_priority, - resolution: Lithic::Models::TransactionMonitoring::resolution_outcome, + resolution: String, resolution_notes: String, sla_deadline: Time?, status: Lithic::Models::TransactionMonitoring::case_status, @@ -34,11 +34,9 @@ module Lithic Lithic::Models::TransactionMonitoring::case_priority ) -> Lithic::Models::TransactionMonitoring::case_priority - attr_reader resolution: Lithic::Models::TransactionMonitoring::resolution_outcome? + attr_reader resolution: String? - def resolution=: ( - Lithic::Models::TransactionMonitoring::resolution_outcome - ) -> Lithic::Models::TransactionMonitoring::resolution_outcome + def resolution=: (String) -> String attr_reader resolution_notes: String? @@ -63,7 +61,7 @@ module Lithic ?actor_token: String, ?assignee: String?, ?priority: Lithic::Models::TransactionMonitoring::case_priority, - ?resolution: Lithic::Models::TransactionMonitoring::resolution_outcome, + ?resolution: String, ?resolution_notes: String, ?sla_deadline: Time?, ?status: Lithic::Models::TransactionMonitoring::case_status, @@ -77,7 +75,7 @@ module Lithic actor_token: String, assignee: String?, priority: Lithic::Models::TransactionMonitoring::case_priority, - resolution: Lithic::Models::TransactionMonitoring::resolution_outcome, + resolution: String, resolution_notes: String, sla_deadline: Time?, status: Lithic::Models::TransactionMonitoring::case_status, diff --git a/sig/lithic/models/transaction_monitoring/monitoring_case.rbs b/sig/lithic/models/transaction_monitoring/monitoring_case.rbs index 91a5a3d6..94583565 100644 --- a/sig/lithic/models/transaction_monitoring/monitoring_case.rbs +++ b/sig/lithic/models/transaction_monitoring/monitoring_case.rbs @@ -11,7 +11,7 @@ module Lithic pending_transactions: bool, priority: Lithic::Models::TransactionMonitoring::case_priority, queue_token: String, - resolution: Lithic::Models::TransactionMonitoring::resolution_outcome?, + resolution: String?, resolution_notes: String?, resolved: Time?, rule_token: String?, @@ -39,7 +39,7 @@ module Lithic attr_accessor queue_token: String - attr_accessor resolution: Lithic::Models::TransactionMonitoring::resolution_outcome? + attr_accessor resolution: String? attr_accessor resolution_notes: String? @@ -66,7 +66,7 @@ module Lithic pending_transactions: bool, priority: Lithic::Models::TransactionMonitoring::case_priority, queue_token: String, - resolution: Lithic::Models::TransactionMonitoring::resolution_outcome?, + resolution: String?, resolution_notes: String?, resolved: Time?, rule_token: String?, @@ -86,7 +86,7 @@ module Lithic pending_transactions: bool, priority: Lithic::Models::TransactionMonitoring::case_priority, queue_token: String, - resolution: Lithic::Models::TransactionMonitoring::resolution_outcome?, + resolution: String?, resolution_notes: String?, resolved: Time?, rule_token: String?, diff --git a/sig/lithic/models/transaction_monitoring/queue.rbs b/sig/lithic/models/transaction_monitoring/queue.rbs index 6d90ac75..04a821ba 100644 --- a/sig/lithic/models/transaction_monitoring/queue.rbs +++ b/sig/lithic/models/transaction_monitoring/queue.rbs @@ -4,6 +4,7 @@ module Lithic type queue = { token: String, + allowed_resolutions: ::Array[String], case_counts: Lithic::TransactionMonitoring::Queue::CaseCounts, created: Time, description: String?, @@ -14,6 +15,8 @@ module Lithic class Queue < Lithic::Internal::Type::BaseModel attr_accessor token: String + attr_accessor allowed_resolutions: ::Array[String] + attr_accessor case_counts: Lithic::TransactionMonitoring::Queue::CaseCounts attr_accessor created: Time @@ -26,6 +29,7 @@ module Lithic def initialize: ( token: String, + allowed_resolutions: ::Array[String], case_counts: Lithic::TransactionMonitoring::Queue::CaseCounts, created: Time, description: String?, @@ -35,6 +39,7 @@ module Lithic def to_hash: -> { token: String, + allowed_resolutions: ::Array[String], case_counts: Lithic::TransactionMonitoring::Queue::CaseCounts, created: Time, description: String?, diff --git a/sig/lithic/models/transaction_monitoring/queue_create_params.rbs b/sig/lithic/models/transaction_monitoring/queue_create_params.rbs index 6c2c346e..33050c8b 100644 --- a/sig/lithic/models/transaction_monitoring/queue_create_params.rbs +++ b/sig/lithic/models/transaction_monitoring/queue_create_params.rbs @@ -2,7 +2,11 @@ module Lithic module Models module TransactionMonitoring type queue_create_params = - { name: String, description: String? } + { + name: String, + allowed_resolutions: ::Array[String]?, + description: String? + } & Lithic::Internal::Type::request_parameters class QueueCreateParams < Lithic::Internal::Type::BaseModel @@ -11,16 +15,20 @@ module Lithic attr_accessor name: String + attr_accessor allowed_resolutions: ::Array[String]? + attr_accessor description: String? def initialize: ( name: String, + ?allowed_resolutions: ::Array[String]?, ?description: String?, ?request_options: Lithic::request_opts ) -> void def to_hash: -> { name: String, + allowed_resolutions: ::Array[String]?, description: String?, request_options: Lithic::RequestOptions } diff --git a/sig/lithic/models/transaction_monitoring/queue_update_params.rbs b/sig/lithic/models/transaction_monitoring/queue_update_params.rbs index 6330a791..44067a0e 100644 --- a/sig/lithic/models/transaction_monitoring/queue_update_params.rbs +++ b/sig/lithic/models/transaction_monitoring/queue_update_params.rbs @@ -2,7 +2,12 @@ module Lithic module Models module TransactionMonitoring type queue_update_params = - { queue_token: String, description: String?, name: String } + { + queue_token: String, + allowed_resolutions: ::Array[String]?, + description: String?, + name: String + } & Lithic::Internal::Type::request_parameters class QueueUpdateParams < Lithic::Internal::Type::BaseModel @@ -11,6 +16,8 @@ module Lithic attr_accessor queue_token: String + attr_accessor allowed_resolutions: ::Array[String]? + attr_accessor description: String? attr_reader name: String? @@ -19,6 +26,7 @@ module Lithic def initialize: ( queue_token: String, + ?allowed_resolutions: ::Array[String]?, ?description: String?, ?name: String, ?request_options: Lithic::request_opts @@ -26,6 +34,7 @@ module Lithic def to_hash: -> { queue_token: String, + allowed_resolutions: ::Array[String]?, description: String?, name: String, request_options: Lithic::RequestOptions diff --git a/sig/lithic/models/transaction_monitoring/resolution_outcome.rbs b/sig/lithic/models/transaction_monitoring/resolution_outcome.rbs deleted file mode 100644 index 4890b7de..00000000 --- a/sig/lithic/models/transaction_monitoring/resolution_outcome.rbs +++ /dev/null @@ -1,24 +0,0 @@ -module Lithic - module Models - module TransactionMonitoring - type resolution_outcome = - :CONFIRMED_FRAUD - | :SUSPICIOUS_ACTIVITY - | :FALSE_POSITIVE - | :NO_ACTION_REQUIRED - | :ESCALATED_EXTERNAL - - module ResolutionOutcome - extend Lithic::Internal::Type::Enum - - CONFIRMED_FRAUD: :CONFIRMED_FRAUD - SUSPICIOUS_ACTIVITY: :SUSPICIOUS_ACTIVITY - FALSE_POSITIVE: :FALSE_POSITIVE - NO_ACTION_REQUIRED: :NO_ACTION_REQUIRED - ESCALATED_EXTERNAL: :ESCALATED_EXTERNAL - - def self?.values: -> ::Array[Lithic::Models::TransactionMonitoring::resolution_outcome] - end - end - end -end diff --git a/sig/lithic/resources/transaction_monitoring/cases.rbs b/sig/lithic/resources/transaction_monitoring/cases.rbs index 56365860..e3db6ccf 100644 --- a/sig/lithic/resources/transaction_monitoring/cases.rbs +++ b/sig/lithic/resources/transaction_monitoring/cases.rbs @@ -16,7 +16,7 @@ module Lithic ?actor_token: String, ?assignee: String?, ?priority: Lithic::Models::TransactionMonitoring::case_priority, - ?resolution: Lithic::Models::TransactionMonitoring::resolution_outcome, + ?resolution: String, ?resolution_notes: String, ?sla_deadline: Time?, ?status: Lithic::Models::TransactionMonitoring::case_status, diff --git a/sig/lithic/resources/transaction_monitoring/queues.rbs b/sig/lithic/resources/transaction_monitoring/queues.rbs index 090f2eb7..3181796a 100644 --- a/sig/lithic/resources/transaction_monitoring/queues.rbs +++ b/sig/lithic/resources/transaction_monitoring/queues.rbs @@ -4,6 +4,7 @@ module Lithic class Queues def create: ( name: String, + ?allowed_resolutions: ::Array[String]?, ?description: String?, ?request_options: Lithic::request_opts ) -> Lithic::TransactionMonitoring::Queue @@ -15,6 +16,7 @@ module Lithic def update: ( String queue_token, + ?allowed_resolutions: ::Array[String]?, ?description: String?, ?name: String, ?request_options: Lithic::request_opts diff --git a/sig/lithic/resources/webhooks.rbs b/sig/lithic/resources/webhooks.rbs index ba637e58..c5a4a0c1 100644 --- a/sig/lithic/resources/webhooks.rbs +++ b/sig/lithic/resources/webhooks.rbs @@ -39,6 +39,8 @@ module Lithic | Lithic::DigitalWalletTokenizationUpdatedWebhookEvent | Lithic::DisputeUpdatedWebhookEvent | Lithic::DisputeEvidenceUploadFailedWebhookEvent + | Lithic::EmbedSessionGeneratedWebhookEvent + | Lithic::EmbedViewedWebhookEvent | Lithic::ExternalBankAccountCreatedWebhookEvent | Lithic::ExternalBankAccountUpdatedWebhookEvent | Lithic::ExternalPaymentCreatedWebhookEvent diff --git a/test/lithic/resources/transaction_monitoring/cases_test.rb b/test/lithic/resources/transaction_monitoring/cases_test.rb index 950b0aba..7524cb0d 100644 --- a/test/lithic/resources/transaction_monitoring/cases_test.rb +++ b/test/lithic/resources/transaction_monitoring/cases_test.rb @@ -20,7 +20,7 @@ def test_retrieve pending_transactions: Lithic::Internal::Type::Boolean, priority: Lithic::TransactionMonitoring::CasePriority, queue_token: String, - resolution: Lithic::TransactionMonitoring::ResolutionOutcome | nil, + resolution: String | nil, resolution_notes: String | nil, resolved: Time | nil, rule_token: String | nil, @@ -50,7 +50,7 @@ def test_update pending_transactions: Lithic::Internal::Type::Boolean, priority: Lithic::TransactionMonitoring::CasePriority, queue_token: String, - resolution: Lithic::TransactionMonitoring::ResolutionOutcome | nil, + resolution: String | nil, resolution_notes: String | nil, resolved: Time | nil, rule_token: String | nil, @@ -87,7 +87,7 @@ def test_list pending_transactions: Lithic::Internal::Type::Boolean, priority: Lithic::TransactionMonitoring::CasePriority, queue_token: String, - resolution: Lithic::TransactionMonitoring::ResolutionOutcome | nil, + resolution: String | nil, resolution_notes: String | nil, resolved: Time | nil, rule_token: String | nil, diff --git a/test/lithic/resources/transaction_monitoring/queues_test.rb b/test/lithic/resources/transaction_monitoring/queues_test.rb index 782858d0..8717e7f9 100644 --- a/test/lithic/resources/transaction_monitoring/queues_test.rb +++ b/test/lithic/resources/transaction_monitoring/queues_test.rb @@ -13,6 +13,7 @@ def test_create_required_params assert_pattern do response => { token: String, + allowed_resolutions: ^(Lithic::Internal::Type::ArrayOf[String]), case_counts: Lithic::TransactionMonitoring::Queue::CaseCounts, created: Time, description: String | nil, @@ -32,6 +33,7 @@ def test_retrieve assert_pattern do response => { token: String, + allowed_resolutions: ^(Lithic::Internal::Type::ArrayOf[String]), case_counts: Lithic::TransactionMonitoring::Queue::CaseCounts, created: Time, description: String | nil, @@ -51,6 +53,7 @@ def test_update assert_pattern do response => { token: String, + allowed_resolutions: ^(Lithic::Internal::Type::ArrayOf[String]), case_counts: Lithic::TransactionMonitoring::Queue::CaseCounts, created: Time, description: String | nil, @@ -77,6 +80,7 @@ def test_list assert_pattern do row => { token: String, + allowed_resolutions: ^(Lithic::Internal::Type::ArrayOf[String]), case_counts: Lithic::TransactionMonitoring::Queue::CaseCounts, created: Time, description: String | nil,