lithic 0.18.1 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +30 -0
- data/README.md +1 -1
- data/lib/lithic/models/account_activity_list_params.rb +2 -0
- data/lib/lithic/models/account_activity_list_response.rb +2 -0
- data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +2 -0
- data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +3 -0
- data/lib/lithic/models/auth_rules/velocity_limit_period.rb +1 -1
- data/lib/lithic/models/book_transfer_create_params.rb +4 -0
- data/lib/lithic/models/book_transfer_list_params.rb +1 -0
- data/lib/lithic/models/book_transfer_response.rb +4 -0
- data/lib/lithic/models/embed_session_generated_webhook_event.rb +83 -0
- data/lib/lithic/models/embed_viewed_webhook_event.rb +85 -0
- data/lib/lithic/models/event.rb +44 -12
- data/lib/lithic/models/event_list_params.rb +23 -6
- data/lib/lithic/models/event_subscription.rb +23 -6
- data/lib/lithic/models/events/subscription_create_params.rb +23 -6
- data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +2 -0
- data/lib/lithic/models/events/subscription_update_params.rb +23 -6
- data/lib/lithic/models/external_payment_list_params.rb +3 -3
- data/lib/lithic/models/financial_accounts/balance_list_params.rb +4 -3
- data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +7 -0
- data/lib/lithic/models/financial_event.rb +5 -0
- data/lib/lithic/models/fraud/transaction_report_response.rb +8 -8
- data/lib/lithic/models/fraud/transaction_retrieve_response.rb +10 -8
- data/lib/lithic/models/parsed_webhook_event.rb +5 -1
- data/lib/lithic/models/payment.rb +28 -1
- data/lib/lithic/models/payment_list_params.rb +1 -0
- data/lib/lithic/models/transaction_monitoring/case_update_params.rb +5 -11
- data/lib/lithic/models/transaction_monitoring/monitoring_case.rb +5 -11
- data/lib/lithic/models/transaction_monitoring/queue.rb +10 -1
- data/lib/lithic/models/transaction_monitoring/queue_create_params.rb +14 -1
- data/lib/lithic/models/transaction_monitoring/queue_update_params.rb +15 -1
- data/lib/lithic/models/transaction_simulate_clearing_params.rb +4 -3
- data/lib/lithic/models.rb +4 -0
- data/lib/lithic/resources/card_authorizations.rb +1 -1
- data/lib/lithic/resources/cards.rb +5 -0
- data/lib/lithic/resources/external_payments.rb +1 -1
- data/lib/lithic/resources/three_ds/decisioning.rb +1 -1
- data/lib/lithic/resources/transaction_monitoring/cases.rb +1 -1
- data/lib/lithic/resources/transaction_monitoring/queues.rb +12 -2
- data/lib/lithic/resources/transactions.rb +4 -3
- data/lib/lithic/resources/webhooks.rb +1 -1
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +2 -1
- data/rbi/lithic/models/account_activity_list_params.rbi +10 -0
- data/rbi/lithic/models/account_activity_list_response.rbi +10 -0
- data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +10 -0
- data/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +8 -0
- data/rbi/lithic/models/auth_rules/velocity_limit_period.rbi +2 -2
- data/rbi/lithic/models/book_transfer_create_params.rbi +20 -0
- data/rbi/lithic/models/book_transfer_list_params.rbi +5 -0
- data/rbi/lithic/models/book_transfer_response.rbi +20 -0
- data/rbi/lithic/models/embed_session_generated_webhook_event.rbi +157 -0
- data/rbi/lithic/models/embed_viewed_webhook_event.rbi +146 -0
- data/rbi/lithic/models/event.rbi +70 -18
- data/rbi/lithic/models/event_list_params.rbi +31 -6
- data/rbi/lithic/models/event_subscription.rbi +31 -6
- data/rbi/lithic/models/events/subscription_create_params.rbi +31 -6
- data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +10 -0
- data/rbi/lithic/models/events/subscription_update_params.rbi +31 -6
- data/rbi/lithic/models/external_payment_list_params.rbi +3 -3
- data/rbi/lithic/models/financial_accounts/balance_list_params.rbi +8 -6
- data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +35 -0
- data/rbi/lithic/models/financial_event.rbi +22 -0
- data/rbi/lithic/models/fraud/transaction_report_response.rbi +16 -29
- data/rbi/lithic/models/fraud/transaction_retrieve_response.rbi +16 -29
- data/rbi/lithic/models/parsed_webhook_event.rbi +2 -0
- data/rbi/lithic/models/payment.rbi +47 -0
- data/rbi/lithic/models/payment_list_params.rbi +2 -0
- data/rbi/lithic/models/transaction_monitoring/case_update_params.rbi +8 -33
- data/rbi/lithic/models/transaction_monitoring/monitoring_case.rbi +7 -31
- data/rbi/lithic/models/transaction_monitoring/queue.rbi +10 -0
- data/rbi/lithic/models/transaction_monitoring/queue_create_params.rbi +12 -0
- data/rbi/lithic/models/transaction_monitoring/queue_update_params.rbi +14 -0
- data/rbi/lithic/models/transaction_simulate_clearing_params.rbi +8 -6
- data/rbi/lithic/models.rbi +5 -0
- data/rbi/lithic/resources/card_authorizations.rbi +1 -1
- data/rbi/lithic/resources/cards.rbi +3 -0
- data/rbi/lithic/resources/external_payments.rbi +1 -1
- data/rbi/lithic/resources/financial_accounts/balances.rbi +4 -3
- data/rbi/lithic/resources/three_ds/decisioning.rbi +1 -1
- data/rbi/lithic/resources/transaction_monitoring/cases.rbi +3 -10
- data/rbi/lithic/resources/transaction_monitoring/queues.rbi +11 -0
- data/rbi/lithic/resources/transactions.rbi +8 -6
- data/rbi/lithic/resources/webhooks.rbi +2 -0
- data/sig/lithic/models/account_activity_list_params.rbs +4 -0
- data/sig/lithic/models/account_activity_list_response.rbs +4 -0
- data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +4 -0
- data/sig/lithic/models/auth_rules/conditional_ach_action_parameters.rbs +2 -0
- data/sig/lithic/models/book_transfer_create_params.rbs +8 -0
- data/sig/lithic/models/book_transfer_list_params.rbs +2 -0
- data/sig/lithic/models/book_transfer_response.rbs +8 -0
- data/sig/lithic/models/embed_session_generated_webhook_event.rbs +66 -0
- data/sig/lithic/models/embed_viewed_webhook_event.rbs +68 -0
- data/sig/lithic/models/event.rbs +4 -0
- data/sig/lithic/models/event_list_params.rbs +4 -0
- data/sig/lithic/models/event_subscription.rbs +4 -0
- data/sig/lithic/models/events/subscription_create_params.rbs +4 -0
- data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +4 -0
- data/sig/lithic/models/events/subscription_update_params.rbs +4 -0
- data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +14 -0
- data/sig/lithic/models/financial_event.rbs +10 -0
- data/sig/lithic/models/fraud/transaction_report_response.rbs +16 -26
- data/sig/lithic/models/fraud/transaction_retrieve_response.rbs +16 -26
- data/sig/lithic/models/parsed_webhook_event.rbs +2 -0
- data/sig/lithic/models/payment.rbs +15 -0
- data/sig/lithic/models/payment_list_params.rbs +2 -1
- data/sig/lithic/models/transaction_monitoring/case_update_params.rbs +5 -7
- data/sig/lithic/models/transaction_monitoring/monitoring_case.rbs +4 -4
- data/sig/lithic/models/transaction_monitoring/queue.rbs +5 -0
- data/sig/lithic/models/transaction_monitoring/queue_create_params.rbs +9 -1
- data/sig/lithic/models/transaction_monitoring/queue_update_params.rbs +10 -1
- data/sig/lithic/models.rbs +4 -0
- data/sig/lithic/resources/transaction_monitoring/cases.rbs +1 -1
- data/sig/lithic/resources/transaction_monitoring/queues.rbs +2 -0
- data/sig/lithic/resources/webhooks.rbs +2 -0
- metadata +8 -5
- data/lib/lithic/models/transaction_monitoring/resolution_outcome.rb +0 -28
- data/rbi/lithic/models/transaction_monitoring/resolution_outcome.rbi +0 -61
- data/sig/lithic/models/transaction_monitoring/resolution_outcome.rbs +0 -24
|
@@ -8,7 +8,7 @@ module Lithic
|
|
|
8
8
|
#
|
|
9
9
|
# Card program's response to Authorization Challenge. Programs that have
|
|
10
10
|
# Authorization Challenges configured as Out of Band receive a
|
|
11
|
-
# [card_authorization.challenge](https://docs.lithic.com/reference/
|
|
11
|
+
# [card_authorization.challenge](https://docs.lithic.com/reference/cardauthorizationchallengewebhook)
|
|
12
12
|
# webhook when an authorization attempt triggers a challenge. The card program
|
|
13
13
|
# should respond using this endpoint after the cardholder completes the challenge.
|
|
14
14
|
#
|
|
@@ -228,6 +228,11 @@ module Lithic
|
|
|
228
228
|
)
|
|
229
229
|
end
|
|
230
230
|
|
|
231
|
+
# @deprecated
|
|
232
|
+
#
|
|
233
|
+
# **Deprecated.** Use the modern embedded card flow instead: create a session with
|
|
234
|
+
# `POST /v1/cards/{card_token}/embed` and render it via `GET /v1/embed`.
|
|
235
|
+
#
|
|
231
236
|
# Handling full card PANs and CVV codes requires that you comply with the Payment
|
|
232
237
|
# Card Industry Data Security Standards (PCI DSS). Some clients choose to reduce
|
|
233
238
|
# their compliance obligations by leveraging our embedded card UI solution
|
|
@@ -75,7 +75,7 @@ module Lithic
|
|
|
75
75
|
#
|
|
76
76
|
# @param business_account_token [String]
|
|
77
77
|
#
|
|
78
|
-
# @param category [Symbol, Lithic::Models::ExternalPaymentListParams::Category]
|
|
78
|
+
# @param category [Symbol, Lithic::Models::ExternalPaymentListParams::Category] The external rail the funds moved on
|
|
79
79
|
#
|
|
80
80
|
# @param end_ [Time] Date string in RFC 3339 format. Only entries created before the specified time w
|
|
81
81
|
#
|
|
@@ -9,7 +9,7 @@ module Lithic
|
|
|
9
9
|
#
|
|
10
10
|
# Card program's response to a 3DS Challenge Request. Challenge Request is emitted
|
|
11
11
|
# as a webhook
|
|
12
|
-
# [three_ds_authentication.challenge](https://docs.lithic.com/reference/
|
|
12
|
+
# [three_ds_authentication.challenge](https://docs.lithic.com/reference/threedsauthenticationchallengewebhook)
|
|
13
13
|
# and your Card Program needs to be configured with Out of Band (OOB) Challenges
|
|
14
14
|
# in order to receive it (see https://docs.lithic.com/docs/3ds-challenge-flow for
|
|
15
15
|
# more information).
|
|
@@ -45,7 +45,7 @@ module Lithic
|
|
|
45
45
|
#
|
|
46
46
|
# @param priority [Symbol, Lithic::Models::TransactionMonitoring::CasePriority] Priority level of a case, controlling queue ordering and SLA urgency
|
|
47
47
|
#
|
|
48
|
-
# @param resolution [
|
|
48
|
+
# @param resolution [String] Resolution to record on the case. Must be one of the
|
|
49
49
|
#
|
|
50
50
|
# @param resolution_notes [String] Notes describing the resolution
|
|
51
51
|
#
|
|
@@ -4,12 +4,17 @@ module Lithic
|
|
|
4
4
|
module Resources
|
|
5
5
|
class TransactionMonitoring
|
|
6
6
|
class Queues
|
|
7
|
+
# Some parameter documentations has been truncated, see
|
|
8
|
+
# {Lithic::Models::TransactionMonitoring::QueueCreateParams} for more details.
|
|
9
|
+
#
|
|
7
10
|
# Creates a new queue for grouping transaction monitoring cases.
|
|
8
11
|
#
|
|
9
|
-
# @overload create(name:, description: nil, request_options: {})
|
|
12
|
+
# @overload create(name:, allowed_resolutions: nil, description: nil, request_options: {})
|
|
10
13
|
#
|
|
11
14
|
# @param name [String] Human-readable name of the queue
|
|
12
15
|
#
|
|
16
|
+
# @param allowed_resolutions [Array<String>, nil] Resolutions that can be recorded on cases in this queue. Omit or send `null` to
|
|
17
|
+
#
|
|
13
18
|
# @param description [String, nil] Optional description of the queue
|
|
14
19
|
#
|
|
15
20
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
@@ -48,12 +53,17 @@ module Lithic
|
|
|
48
53
|
)
|
|
49
54
|
end
|
|
50
55
|
|
|
56
|
+
# Some parameter documentations has been truncated, see
|
|
57
|
+
# {Lithic::Models::TransactionMonitoring::QueueUpdateParams} for more details.
|
|
58
|
+
#
|
|
51
59
|
# Updates a transaction monitoring queue.
|
|
52
60
|
#
|
|
53
|
-
# @overload update(queue_token, description: nil, name: nil, request_options: {})
|
|
61
|
+
# @overload update(queue_token, allowed_resolutions: nil, description: nil, name: nil, request_options: {})
|
|
54
62
|
#
|
|
55
63
|
# @param queue_token [String] Globally unique identifier for the queue.
|
|
56
64
|
#
|
|
65
|
+
# @param allowed_resolutions [Array<String>, nil] New list of resolutions that can be recorded on cases in this queue, or `null` t
|
|
66
|
+
#
|
|
57
67
|
# @param description [String, nil] New description for the queue, or `null` to clear it
|
|
58
68
|
#
|
|
59
69
|
# @param name [String] New name for the queue
|
|
@@ -210,9 +210,10 @@ module Lithic
|
|
|
210
210
|
# Clears an existing authorization, either debit or credit. After this event, the
|
|
211
211
|
# transaction transitions from `PENDING` to `SETTLED` status.
|
|
212
212
|
#
|
|
213
|
-
# If `amount` is not set, the full amount of the transaction will be cleared.
|
|
214
|
-
#
|
|
215
|
-
#
|
|
213
|
+
# If `amount` is not set, the full amount of the transaction will be cleared. This
|
|
214
|
+
# endpoint may be called multiple times against the same authorization to simulate
|
|
215
|
+
# a multiple-completion scenario, with each call creating a separate clearing
|
|
216
|
+
# event.
|
|
216
217
|
#
|
|
217
218
|
# @overload simulate_clearing(token:, amount: nil, request_options: {})
|
|
218
219
|
#
|
|
@@ -9,7 +9,7 @@ module Lithic
|
|
|
9
9
|
# @param headers [Hash{String => String}] The webhook request headers
|
|
10
10
|
# @param secret [String, nil] The webhook secret. If not provided, reads from LITHIC_WEBHOOK_SECRET environment variable.
|
|
11
11
|
#
|
|
12
|
-
# @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] #
|
|
12
|
+
# @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] #
|
|
13
13
|
# @raise [ArgumentError] if secret is not provided and LITHIC_WEBHOOK_SECRET env var is not set
|
|
14
14
|
# @raise [Lithic::Errors::MissingDependencyError] if the standardwebhooks gem is not installed
|
|
15
15
|
# @raise [StandardWebhooks::WebhookVerificationError] if the signature is invalid
|
data/lib/lithic/version.rb
CHANGED
data/lib/lithic.rb
CHANGED
|
@@ -256,6 +256,8 @@ require_relative "lithic/models/dispute_transaction_updated_webhook_event"
|
|
|
256
256
|
require_relative "lithic/models/dispute_updated_webhook_event"
|
|
257
257
|
require_relative "lithic/models/dispute_update_params"
|
|
258
258
|
require_relative "lithic/models/document"
|
|
259
|
+
require_relative "lithic/models/embed_session_generated_webhook_event"
|
|
260
|
+
require_relative "lithic/models/embed_viewed_webhook_event"
|
|
259
261
|
require_relative "lithic/models/event"
|
|
260
262
|
require_relative "lithic/models/event_list_attempts_params"
|
|
261
263
|
require_relative "lithic/models/event_list_params"
|
|
@@ -484,7 +486,6 @@ require_relative "lithic/models/transaction_monitoring/queue_delete_params"
|
|
|
484
486
|
require_relative "lithic/models/transaction_monitoring/queue_list_params"
|
|
485
487
|
require_relative "lithic/models/transaction_monitoring/queue_retrieve_params"
|
|
486
488
|
require_relative "lithic/models/transaction_monitoring/queue_update_params"
|
|
487
|
-
require_relative "lithic/models/transaction_monitoring/resolution_outcome"
|
|
488
489
|
require_relative "lithic/models/transaction_retrieve_params"
|
|
489
490
|
require_relative "lithic/models/transaction_route_params"
|
|
490
491
|
require_relative "lithic/models/transactions/enhanced_commercial_data_retrieve_params"
|
|
@@ -193,6 +193,11 @@ module Lithic
|
|
|
193
193
|
:WIRE,
|
|
194
194
|
Lithic::AccountActivityListParams::Category::TaggedSymbol
|
|
195
195
|
)
|
|
196
|
+
STABLECOIN =
|
|
197
|
+
T.let(
|
|
198
|
+
:STABLECOIN,
|
|
199
|
+
Lithic::AccountActivityListParams::Category::TaggedSymbol
|
|
200
|
+
)
|
|
196
201
|
BALANCE_OR_FUNDING =
|
|
197
202
|
T.let(
|
|
198
203
|
:BALANCE_OR_FUNDING,
|
|
@@ -290,6 +295,11 @@ module Lithic
|
|
|
290
295
|
:PROGRAM_FUNDING,
|
|
291
296
|
Lithic::AccountActivityListParams::Category::TaggedSymbol
|
|
292
297
|
)
|
|
298
|
+
PROGRAM_TRANSFER =
|
|
299
|
+
T.let(
|
|
300
|
+
:PROGRAM_TRANSFER,
|
|
301
|
+
Lithic::AccountActivityListParams::Category::TaggedSymbol
|
|
302
|
+
)
|
|
293
303
|
|
|
294
304
|
sig do
|
|
295
305
|
override.returns(
|
|
@@ -196,6 +196,11 @@ module Lithic
|
|
|
196
196
|
:WIRE,
|
|
197
197
|
Lithic::Models::AccountActivityListResponse::Internal::Category::TaggedSymbol
|
|
198
198
|
)
|
|
199
|
+
STABLECOIN =
|
|
200
|
+
T.let(
|
|
201
|
+
:STABLECOIN,
|
|
202
|
+
Lithic::Models::AccountActivityListResponse::Internal::Category::TaggedSymbol
|
|
203
|
+
)
|
|
199
204
|
BALANCE_OR_FUNDING =
|
|
200
205
|
T.let(
|
|
201
206
|
:BALANCE_OR_FUNDING,
|
|
@@ -296,6 +301,11 @@ module Lithic
|
|
|
296
301
|
:PROGRAM_FUNDING,
|
|
297
302
|
Lithic::Models::AccountActivityListResponse::Internal::Category::TaggedSymbol
|
|
298
303
|
)
|
|
304
|
+
PROGRAM_TRANSFER =
|
|
305
|
+
T.let(
|
|
306
|
+
:PROGRAM_TRANSFER,
|
|
307
|
+
Lithic::Models::AccountActivityListResponse::Internal::Category::TaggedSymbol
|
|
308
|
+
)
|
|
299
309
|
|
|
300
310
|
sig do
|
|
301
311
|
override.returns(
|
|
@@ -196,6 +196,11 @@ module Lithic
|
|
|
196
196
|
:WIRE,
|
|
197
197
|
Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category::TaggedSymbol
|
|
198
198
|
)
|
|
199
|
+
STABLECOIN =
|
|
200
|
+
T.let(
|
|
201
|
+
:STABLECOIN,
|
|
202
|
+
Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category::TaggedSymbol
|
|
203
|
+
)
|
|
199
204
|
BALANCE_OR_FUNDING =
|
|
200
205
|
T.let(
|
|
201
206
|
:BALANCE_OR_FUNDING,
|
|
@@ -296,6 +301,11 @@ module Lithic
|
|
|
296
301
|
:PROGRAM_FUNDING,
|
|
297
302
|
Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category::TaggedSymbol
|
|
298
303
|
)
|
|
304
|
+
PROGRAM_TRANSFER =
|
|
305
|
+
T.let(
|
|
306
|
+
:PROGRAM_TRANSFER,
|
|
307
|
+
Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::Category::TaggedSymbol
|
|
308
|
+
)
|
|
299
309
|
|
|
300
310
|
sig do
|
|
301
311
|
override.returns(
|
|
@@ -654,6 +654,7 @@ module Lithic
|
|
|
654
654
|
# (Corporate Credit or Debit Entry), WEB (Internet-Initiated/Mobile Entry), TEL
|
|
655
655
|
# (Telephone-Initiated Entry), and others.
|
|
656
656
|
# - `MEMO`: Optional memo or description field included with the ACH transaction.
|
|
657
|
+
# - `RECIPIENT_NAME`: The name of the recipient of the ACH transaction.
|
|
657
658
|
sig do
|
|
658
659
|
returns(
|
|
659
660
|
Lithic::AuthRules::ConditionalACHActionParameters::Condition::Attribute::OrSymbol
|
|
@@ -693,6 +694,7 @@ module Lithic
|
|
|
693
694
|
# (Corporate Credit or Debit Entry), WEB (Internet-Initiated/Mobile Entry), TEL
|
|
694
695
|
# (Telephone-Initiated Entry), and others.
|
|
695
696
|
# - `MEMO`: Optional memo or description field included with the ACH transaction.
|
|
697
|
+
# - `RECIPIENT_NAME`: The name of the recipient of the ACH transaction.
|
|
696
698
|
attribute:,
|
|
697
699
|
# The operation to apply to the attribute
|
|
698
700
|
operation:,
|
|
@@ -729,6 +731,7 @@ module Lithic
|
|
|
729
731
|
# (Corporate Credit or Debit Entry), WEB (Internet-Initiated/Mobile Entry), TEL
|
|
730
732
|
# (Telephone-Initiated Entry), and others.
|
|
731
733
|
# - `MEMO`: Optional memo or description field included with the ACH transaction.
|
|
734
|
+
# - `RECIPIENT_NAME`: The name of the recipient of the ACH transaction.
|
|
732
735
|
module Attribute
|
|
733
736
|
extend Lithic::Internal::Type::Enum
|
|
734
737
|
|
|
@@ -771,6 +774,11 @@ module Lithic
|
|
|
771
774
|
:MEMO,
|
|
772
775
|
Lithic::AuthRules::ConditionalACHActionParameters::Condition::Attribute::TaggedSymbol
|
|
773
776
|
)
|
|
777
|
+
RECIPIENT_NAME =
|
|
778
|
+
T.let(
|
|
779
|
+
:RECIPIENT_NAME,
|
|
780
|
+
Lithic::AuthRules::ConditionalACHActionParameters::Condition::Attribute::TaggedSymbol
|
|
781
|
+
)
|
|
774
782
|
|
|
775
783
|
sig do
|
|
776
784
|
override.returns(
|
|
@@ -28,7 +28,7 @@ module Lithic
|
|
|
28
28
|
end
|
|
29
29
|
|
|
30
30
|
# The size of the trailing window to calculate Spend Velocity over in seconds. The
|
|
31
|
-
# minimum value is 10 seconds, and the maximum value is
|
|
31
|
+
# minimum value is 10 seconds, and the maximum value is 7776000 seconds (90 days).
|
|
32
32
|
sig { returns(Integer) }
|
|
33
33
|
attr_accessor :duration
|
|
34
34
|
|
|
@@ -40,7 +40,7 @@ module Lithic
|
|
|
40
40
|
end
|
|
41
41
|
def self.new(
|
|
42
42
|
# The size of the trailing window to calculate Spend Velocity over in seconds. The
|
|
43
|
-
# minimum value is 10 seconds, and the maximum value is
|
|
43
|
+
# minimum value is 10 seconds, and the maximum value is 7776000 seconds (90 days).
|
|
44
44
|
duration:,
|
|
45
45
|
type: :CUSTOM
|
|
46
46
|
)
|
|
@@ -197,6 +197,11 @@ module Lithic
|
|
|
197
197
|
:PROGRAM_FUNDING,
|
|
198
198
|
Lithic::BookTransferCreateParams::Category::TaggedSymbol
|
|
199
199
|
)
|
|
200
|
+
PROGRAM_TRANSFER =
|
|
201
|
+
T.let(
|
|
202
|
+
:PROGRAM_TRANSFER,
|
|
203
|
+
Lithic::BookTransferCreateParams::Category::TaggedSymbol
|
|
204
|
+
)
|
|
200
205
|
TRANSFER =
|
|
201
206
|
T.let(
|
|
202
207
|
:TRANSFER,
|
|
@@ -311,6 +316,11 @@ module Lithic
|
|
|
311
316
|
:BILL_PAYMENT,
|
|
312
317
|
Lithic::BookTransferCreateParams::Type::TaggedSymbol
|
|
313
318
|
)
|
|
319
|
+
PAYMENT_FEE =
|
|
320
|
+
T.let(
|
|
321
|
+
:PAYMENT_FEE,
|
|
322
|
+
Lithic::BookTransferCreateParams::Type::TaggedSymbol
|
|
323
|
+
)
|
|
314
324
|
CASH_BACK =
|
|
315
325
|
T.let(
|
|
316
326
|
:CASH_BACK,
|
|
@@ -377,6 +387,16 @@ module Lithic
|
|
|
377
387
|
:COLLECTION,
|
|
378
388
|
Lithic::BookTransferCreateParams::Type::TaggedSymbol
|
|
379
389
|
)
|
|
390
|
+
LITHIC_PROGRAM_TRANSFER =
|
|
391
|
+
T.let(
|
|
392
|
+
:LITHIC_PROGRAM_TRANSFER,
|
|
393
|
+
Lithic::BookTransferCreateParams::Type::TaggedSymbol
|
|
394
|
+
)
|
|
395
|
+
BANK_PROGRAM_TRANSFER =
|
|
396
|
+
T.let(
|
|
397
|
+
:BANK_PROGRAM_TRANSFER,
|
|
398
|
+
Lithic::BookTransferCreateParams::Type::TaggedSymbol
|
|
399
|
+
)
|
|
380
400
|
|
|
381
401
|
sig do
|
|
382
402
|
override.returns(
|
|
@@ -216,6 +216,11 @@ module Lithic
|
|
|
216
216
|
:PROGRAM_FUNDING,
|
|
217
217
|
Lithic::BookTransferListParams::Category::TaggedSymbol
|
|
218
218
|
)
|
|
219
|
+
PROGRAM_TRANSFER =
|
|
220
|
+
T.let(
|
|
221
|
+
:PROGRAM_TRANSFER,
|
|
222
|
+
Lithic::BookTransferListParams::Category::TaggedSymbol
|
|
223
|
+
)
|
|
219
224
|
TRANSFER =
|
|
220
225
|
T.let(
|
|
221
226
|
:TRANSFER,
|
|
@@ -219,6 +219,11 @@ module Lithic
|
|
|
219
219
|
:PROGRAM_FUNDING,
|
|
220
220
|
Lithic::BookTransferResponse::Category::TaggedSymbol
|
|
221
221
|
)
|
|
222
|
+
PROGRAM_TRANSFER =
|
|
223
|
+
T.let(
|
|
224
|
+
:PROGRAM_TRANSFER,
|
|
225
|
+
Lithic::BookTransferResponse::Category::TaggedSymbol
|
|
226
|
+
)
|
|
222
227
|
TRANSFER =
|
|
223
228
|
T.let(:TRANSFER, Lithic::BookTransferResponse::Category::TaggedSymbol)
|
|
224
229
|
|
|
@@ -512,6 +517,11 @@ module Lithic
|
|
|
512
517
|
:BILL_PAYMENT,
|
|
513
518
|
Lithic::BookTransferResponse::Event::Type::TaggedSymbol
|
|
514
519
|
)
|
|
520
|
+
PAYMENT_FEE =
|
|
521
|
+
T.let(
|
|
522
|
+
:PAYMENT_FEE,
|
|
523
|
+
Lithic::BookTransferResponse::Event::Type::TaggedSymbol
|
|
524
|
+
)
|
|
515
525
|
CASH_BACK =
|
|
516
526
|
T.let(
|
|
517
527
|
:CASH_BACK,
|
|
@@ -587,6 +597,16 @@ module Lithic
|
|
|
587
597
|
:COLLECTION,
|
|
588
598
|
Lithic::BookTransferResponse::Event::Type::TaggedSymbol
|
|
589
599
|
)
|
|
600
|
+
LITHIC_PROGRAM_TRANSFER =
|
|
601
|
+
T.let(
|
|
602
|
+
:LITHIC_PROGRAM_TRANSFER,
|
|
603
|
+
Lithic::BookTransferResponse::Event::Type::TaggedSymbol
|
|
604
|
+
)
|
|
605
|
+
BANK_PROGRAM_TRANSFER =
|
|
606
|
+
T.let(
|
|
607
|
+
:BANK_PROGRAM_TRANSFER,
|
|
608
|
+
Lithic::BookTransferResponse::Event::Type::TaggedSymbol
|
|
609
|
+
)
|
|
590
610
|
|
|
591
611
|
sig do
|
|
592
612
|
override.returns(
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class EmbedSessionGeneratedWebhookEvent < Lithic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Lithic::EmbedSessionGeneratedWebhookEvent,
|
|
10
|
+
Lithic::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# The token of the account associated with the card
|
|
15
|
+
sig { returns(String) }
|
|
16
|
+
attr_accessor :account_token
|
|
17
|
+
|
|
18
|
+
# The token of the card associated with the embed session
|
|
19
|
+
sig { returns(String) }
|
|
20
|
+
attr_accessor :card_token
|
|
21
|
+
|
|
22
|
+
# Details about the request that generated the embed session
|
|
23
|
+
sig { returns(Lithic::EmbedSessionGeneratedWebhookEvent::DeviceDetails) }
|
|
24
|
+
attr_reader :device_details
|
|
25
|
+
|
|
26
|
+
sig do
|
|
27
|
+
params(
|
|
28
|
+
device_details:
|
|
29
|
+
Lithic::EmbedSessionGeneratedWebhookEvent::DeviceDetails::OrHash
|
|
30
|
+
).void
|
|
31
|
+
end
|
|
32
|
+
attr_writer :device_details
|
|
33
|
+
|
|
34
|
+
# The type of event
|
|
35
|
+
sig { returns(Symbol) }
|
|
36
|
+
attr_accessor :event_type
|
|
37
|
+
|
|
38
|
+
# The identifier shared by webhook events for the same embed session.
|
|
39
|
+
sig { returns(String) }
|
|
40
|
+
attr_accessor :session_id
|
|
41
|
+
|
|
42
|
+
# The type of embed session that was generated
|
|
43
|
+
sig do
|
|
44
|
+
returns(
|
|
45
|
+
Lithic::EmbedSessionGeneratedWebhookEvent::SessionType::TaggedSymbol
|
|
46
|
+
)
|
|
47
|
+
end
|
|
48
|
+
attr_accessor :session_type
|
|
49
|
+
|
|
50
|
+
sig do
|
|
51
|
+
params(
|
|
52
|
+
account_token: String,
|
|
53
|
+
card_token: String,
|
|
54
|
+
device_details:
|
|
55
|
+
Lithic::EmbedSessionGeneratedWebhookEvent::DeviceDetails::OrHash,
|
|
56
|
+
session_id: String,
|
|
57
|
+
session_type:
|
|
58
|
+
Lithic::EmbedSessionGeneratedWebhookEvent::SessionType::OrSymbol,
|
|
59
|
+
event_type: Symbol
|
|
60
|
+
).returns(T.attached_class)
|
|
61
|
+
end
|
|
62
|
+
def self.new(
|
|
63
|
+
# The token of the account associated with the card
|
|
64
|
+
account_token:,
|
|
65
|
+
# The token of the card associated with the embed session
|
|
66
|
+
card_token:,
|
|
67
|
+
# Details about the request that generated the embed session
|
|
68
|
+
device_details:,
|
|
69
|
+
# The identifier shared by webhook events for the same embed session.
|
|
70
|
+
session_id:,
|
|
71
|
+
# The type of embed session that was generated
|
|
72
|
+
session_type:,
|
|
73
|
+
# The type of event
|
|
74
|
+
event_type: :"embed.session_generated"
|
|
75
|
+
)
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
sig do
|
|
79
|
+
override.returns(
|
|
80
|
+
{
|
|
81
|
+
account_token: String,
|
|
82
|
+
card_token: String,
|
|
83
|
+
device_details:
|
|
84
|
+
Lithic::EmbedSessionGeneratedWebhookEvent::DeviceDetails,
|
|
85
|
+
event_type: Symbol,
|
|
86
|
+
session_id: String,
|
|
87
|
+
session_type:
|
|
88
|
+
Lithic::EmbedSessionGeneratedWebhookEvent::SessionType::TaggedSymbol
|
|
89
|
+
}
|
|
90
|
+
)
|
|
91
|
+
end
|
|
92
|
+
def to_hash
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
class DeviceDetails < Lithic::Internal::Type::BaseModel
|
|
96
|
+
OrHash =
|
|
97
|
+
T.type_alias do
|
|
98
|
+
T.any(
|
|
99
|
+
Lithic::EmbedSessionGeneratedWebhookEvent::DeviceDetails,
|
|
100
|
+
Lithic::Internal::AnyHash
|
|
101
|
+
)
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# The IP address recorded for the request that generated the event
|
|
105
|
+
sig { returns(String) }
|
|
106
|
+
attr_accessor :ip_address
|
|
107
|
+
|
|
108
|
+
# Details about the request that generated the embed session
|
|
109
|
+
sig { params(ip_address: String).returns(T.attached_class) }
|
|
110
|
+
def self.new(
|
|
111
|
+
# The IP address recorded for the request that generated the event
|
|
112
|
+
ip_address:
|
|
113
|
+
)
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
sig { override.returns({ ip_address: String }) }
|
|
117
|
+
def to_hash
|
|
118
|
+
end
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# The type of embed session that was generated
|
|
122
|
+
module SessionType
|
|
123
|
+
extend Lithic::Internal::Type::Enum
|
|
124
|
+
|
|
125
|
+
TaggedSymbol =
|
|
126
|
+
T.type_alias do
|
|
127
|
+
T.all(
|
|
128
|
+
Symbol,
|
|
129
|
+
Lithic::EmbedSessionGeneratedWebhookEvent::SessionType
|
|
130
|
+
)
|
|
131
|
+
end
|
|
132
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
133
|
+
|
|
134
|
+
CARD_EMBED =
|
|
135
|
+
T.let(
|
|
136
|
+
:CARD_EMBED,
|
|
137
|
+
Lithic::EmbedSessionGeneratedWebhookEvent::SessionType::TaggedSymbol
|
|
138
|
+
)
|
|
139
|
+
PIN_SETTING_EMBED =
|
|
140
|
+
T.let(
|
|
141
|
+
:PIN_SETTING_EMBED,
|
|
142
|
+
Lithic::EmbedSessionGeneratedWebhookEvent::SessionType::TaggedSymbol
|
|
143
|
+
)
|
|
144
|
+
|
|
145
|
+
sig do
|
|
146
|
+
override.returns(
|
|
147
|
+
T::Array[
|
|
148
|
+
Lithic::EmbedSessionGeneratedWebhookEvent::SessionType::TaggedSymbol
|
|
149
|
+
]
|
|
150
|
+
)
|
|
151
|
+
end
|
|
152
|
+
def self.values
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
end
|
|
157
|
+
end
|