lithic 0.13.0 → 0.15.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 +35 -0
- data/README.md +1 -1
- data/lib/lithic/client.rb +4 -0
- data/lib/lithic/internal/transport/base_client.rb +2 -0
- data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +4 -4
- data/lib/lithic/models/account_retrieve_signals_params.rb +20 -0
- data/lib/lithic/models/auth_rules/auth_rule.rb +10 -6
- data/lib/lithic/models/auth_rules/auth_rule_condition.rb +2 -2
- data/lib/lithic/models/auth_rules/auth_rule_version.rb +5 -3
- data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +8 -6
- data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +4 -4
- data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +119 -44
- data/lib/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rb +533 -0
- data/lib/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rb +18 -14
- data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +6 -6
- data/lib/lithic/models/auth_rules/conditional_value.rb +3 -2
- data/lib/lithic/models/auth_rules/v2_create_params.rb +15 -9
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +5 -3
- data/lib/lithic/models/balance.rb +8 -6
- data/lib/lithic/models/card_authorization.rb +1266 -0
- data/lib/lithic/models/card_authorization_approval_request_webhook_event.rb +3 -1253
- data/lib/lithic/models/card_authorization_challenge_response_params.rb +40 -0
- data/lib/lithic/models/card_authorization_challenge_response_webhook_event.rb +1 -0
- data/lib/lithic/models/card_authorization_challenge_webhook_event.rb +67 -0
- data/lib/lithic/models/card_program.rb +2 -2
- data/lib/lithic/models/card_retrieve_signals_params.rb +20 -0
- data/lib/lithic/models/event.rb +13 -4
- data/lib/lithic/models/event_list_params.rb +7 -2
- data/lib/lithic/models/event_subscription.rb +7 -2
- data/lib/lithic/models/events/subscription_create_params.rb +7 -2
- data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +1 -0
- data/lib/lithic/models/events/subscription_update_params.rb +7 -2
- data/lib/lithic/models/external_bank_account.rb +1 -1
- data/lib/lithic/models/external_bank_account_pause_params.rb +20 -0
- data/lib/lithic/models/financial_accounts/statement.rb +4 -4
- data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +3 -2
- data/lib/lithic/models/financial_event.rb +1 -0
- data/lib/lithic/models/kyb_business_entity.rb +2 -2
- data/lib/lithic/models/parsed_webhook_event.rb +4 -1
- data/lib/lithic/models/settlement_detail.rb +14 -14
- data/lib/lithic/models/signals_response.rb +306 -0
- data/lib/lithic/models/statement_totals.rb +6 -6
- data/lib/lithic/models/tokenization_decline_reason.rb +1 -0
- data/lib/lithic/models/transaction.rb +2 -2
- data/lib/lithic/models/transfer_limits_response.rb +12 -12
- data/lib/lithic/models.rb +14 -0
- data/lib/lithic/resources/accounts.rb +27 -0
- data/lib/lithic/resources/auth_rules/v2.rb +1 -1
- data/lib/lithic/resources/card_authorizations.rb +45 -0
- data/lib/lithic/resources/cards.rb +25 -0
- data/lib/lithic/resources/external_bank_accounts.rb +19 -0
- data/lib/lithic/resources/webhooks.rb +1 -1
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +9 -0
- data/rbi/lithic/client.rbi +3 -0
- data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +6 -12
- data/rbi/lithic/models/account_retrieve_signals_params.rbi +35 -0
- data/rbi/lithic/models/auth_rules/auth_rule.rbi +8 -4
- data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +4 -2
- data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +9 -6
- data/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +3 -3
- data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +214 -63
- data/rbi/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbi +1147 -0
- data/rbi/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rbi +24 -18
- data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +6 -6
- data/rbi/lithic/models/auth_rules/conditional_value.rbi +1 -1
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +24 -12
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +8 -4
- data/rbi/lithic/models/balance.rbi +12 -6
- data/rbi/lithic/models/card_authorization.rbi +2540 -0
- data/rbi/lithic/models/card_authorization_approval_request_webhook_event.rbi +5 -2758
- data/rbi/lithic/models/card_authorization_challenge_response_params.rbi +93 -0
- data/rbi/lithic/models/card_authorization_challenge_response_webhook_event.rbi +5 -0
- data/rbi/lithic/models/card_authorization_challenge_webhook_event.rbi +119 -0
- data/rbi/lithic/models/card_program.rbi +3 -6
- data/rbi/lithic/models/card_retrieve_signals_params.rbi +35 -0
- data/rbi/lithic/models/event.rbi +23 -6
- data/rbi/lithic/models/event_list_params.rbi +11 -2
- data/rbi/lithic/models/event_subscription.rbi +11 -2
- data/rbi/lithic/models/events/subscription_create_params.rbi +11 -2
- data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +5 -0
- data/rbi/lithic/models/events/subscription_update_params.rbi +11 -2
- data/rbi/lithic/models/external_bank_account_pause_params.rbi +41 -0
- data/rbi/lithic/models/financial_accounts/statement.rbi +6 -12
- data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +8 -6
- data/rbi/lithic/models/financial_event.rbi +2 -0
- data/rbi/lithic/models/kyb_business_entity.rbi +3 -6
- data/rbi/lithic/models/parsed_webhook_event.rbi +1 -0
- data/rbi/lithic/models/settlement_detail.rbi +15 -15
- data/rbi/lithic/models/signals_response.rbi +352 -0
- data/rbi/lithic/models/statement_totals.rbi +9 -18
- data/rbi/lithic/models/tokenization_decline_reason.rbi +2 -0
- data/rbi/lithic/models/transaction.rbi +3 -3
- data/rbi/lithic/models/transfer_limits_response.rbi +48 -48
- data/rbi/lithic/models.rbi +17 -0
- data/rbi/lithic/resources/accounts.rbi +21 -0
- data/rbi/lithic/resources/auth_rules/v2.rbi +2 -1
- data/rbi/lithic/resources/card_authorizations.rbi +35 -0
- data/rbi/lithic/resources/cards.rbi +19 -0
- data/rbi/lithic/resources/external_bank_accounts.rbi +10 -0
- data/rbi/lithic/resources/webhooks.rbi +4 -1
- data/sig/lithic/client.rbs +2 -0
- data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +8 -12
- data/sig/lithic/models/account_retrieve_signals_params.rbs +23 -0
- data/sig/lithic/models/auth_rules/auth_rule.rbs +2 -0
- data/sig/lithic/models/auth_rules/auth_rule_version.rbs +1 -0
- data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +29 -3
- data/sig/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbs +276 -0
- data/sig/lithic/models/auth_rules/conditional_value.rbs +1 -1
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +3 -0
- data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -0
- data/sig/lithic/models/balance.rbs +17 -9
- data/sig/lithic/models/card_authorization.rbs +1038 -0
- data/sig/lithic/models/card_authorization_approval_request_webhook_event.rbs +7 -1013
- data/sig/lithic/models/card_authorization_challenge_response_params.rbs +42 -0
- data/sig/lithic/models/card_authorization_challenge_response_webhook_event.rbs +2 -1
- data/sig/lithic/models/card_authorization_challenge_webhook_event.rbs +53 -0
- data/sig/lithic/models/card_program.rbs +4 -6
- data/sig/lithic/models/card_retrieve_signals_params.rbs +23 -0
- data/sig/lithic/models/event.rbs +2 -0
- data/sig/lithic/models/event_list_params.rbs +2 -0
- data/sig/lithic/models/event_subscription.rbs +2 -0
- data/sig/lithic/models/events/subscription_create_params.rbs +2 -0
- data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +2 -0
- data/sig/lithic/models/events/subscription_update_params.rbs +2 -0
- data/sig/lithic/models/external_bank_account_pause_params.rbs +24 -0
- data/sig/lithic/models/financial_accounts/statement.rbs +8 -12
- data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +6 -6
- data/sig/lithic/models/financial_event.rbs +2 -0
- data/sig/lithic/models/kyb_business_entity.rbs +4 -6
- data/sig/lithic/models/parsed_webhook_event.rbs +1 -0
- data/sig/lithic/models/settlement_detail.rbs +18 -18
- data/sig/lithic/models/signals_response.rbs +170 -0
- data/sig/lithic/models/statement_totals.rbs +12 -18
- data/sig/lithic/models/tokenization_decline_reason.rbs +2 -0
- data/sig/lithic/models/transaction.rbs +4 -8
- data/sig/lithic/models/transfer_limits_response.rbs +24 -36
- data/sig/lithic/models.rbs +14 -0
- data/sig/lithic/resources/accounts.rbs +5 -0
- data/sig/lithic/resources/card_authorizations.rbs +13 -0
- data/sig/lithic/resources/cards.rbs +5 -0
- data/sig/lithic/resources/external_bank_accounts.rbs +5 -0
- data/sig/lithic/resources/webhooks.rbs +1 -0
- metadata +29 -2
|
@@ -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::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::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::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] #
|
|
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
|
@@ -61,6 +61,7 @@ require_relative "lithic/models/auth_rules/velocity_limit_filters"
|
|
|
61
61
|
require_relative "lithic/models/auth_rules/v2/backtest_results"
|
|
62
62
|
require_relative "lithic/models/book_transfer_response"
|
|
63
63
|
require_relative "lithic/models/non_pci_card"
|
|
64
|
+
require_relative "lithic/models/card_authorization"
|
|
64
65
|
require_relative "lithic/models/transactions/events/enhanced_data"
|
|
65
66
|
require_relative "lithic/models/dispute_evidence"
|
|
66
67
|
require_relative "lithic/models/dispute_v2"
|
|
@@ -109,6 +110,7 @@ require_relative "lithic/models/account_holder_upload_document_params"
|
|
|
109
110
|
require_relative "lithic/models/account_holder_verification_webhook_event"
|
|
110
111
|
require_relative "lithic/models/account_list_params"
|
|
111
112
|
require_relative "lithic/models/account_retrieve_params"
|
|
113
|
+
require_relative "lithic/models/account_retrieve_signals_params"
|
|
112
114
|
require_relative "lithic/models/account_retrieve_spend_limits_params"
|
|
113
115
|
require_relative "lithic/models/account_spend_limits"
|
|
114
116
|
require_relative "lithic/models/account_update_params"
|
|
@@ -124,6 +126,7 @@ require_relative "lithic/models/auth_rules/conditional_3ds_action_parameters"
|
|
|
124
126
|
require_relative "lithic/models/auth_rules/conditional_ach_action_parameters"
|
|
125
127
|
require_relative "lithic/models/auth_rules/conditional_attribute"
|
|
126
128
|
require_relative "lithic/models/auth_rules/conditional_authorization_action_parameters"
|
|
129
|
+
require_relative "lithic/models/auth_rules/conditional_authorization_adjustment_parameters"
|
|
127
130
|
require_relative "lithic/models/auth_rules/conditional_block_parameters"
|
|
128
131
|
require_relative "lithic/models/auth_rules/conditional_card_transaction_update_action_parameters"
|
|
129
132
|
require_relative "lithic/models/auth_rules/conditional_operation"
|
|
@@ -171,7 +174,9 @@ require_relative "lithic/models/book_transfer_transaction_created_webhook_event"
|
|
|
171
174
|
require_relative "lithic/models/book_transfer_transaction_updated_webhook_event"
|
|
172
175
|
require_relative "lithic/models/card"
|
|
173
176
|
require_relative "lithic/models/card_authorization_approval_request_webhook_event"
|
|
177
|
+
require_relative "lithic/models/card_authorization_challenge_response_params"
|
|
174
178
|
require_relative "lithic/models/card_authorization_challenge_response_webhook_event"
|
|
179
|
+
require_relative "lithic/models/card_authorization_challenge_webhook_event"
|
|
175
180
|
require_relative "lithic/models/card_bulk_order"
|
|
176
181
|
require_relative "lithic/models/card_bulk_order_create_params"
|
|
177
182
|
require_relative "lithic/models/card_bulk_order_list_params"
|
|
@@ -195,6 +200,7 @@ require_relative "lithic/models/card_reissue_params"
|
|
|
195
200
|
require_relative "lithic/models/card_renewed_webhook_event"
|
|
196
201
|
require_relative "lithic/models/card_renew_params"
|
|
197
202
|
require_relative "lithic/models/card_retrieve_params"
|
|
203
|
+
require_relative "lithic/models/card_retrieve_signals_params"
|
|
198
204
|
require_relative "lithic/models/card_retrieve_spend_limits_params"
|
|
199
205
|
require_relative "lithic/models/cards/balance_list_params"
|
|
200
206
|
require_relative "lithic/models/cards/financial_transaction_list_params"
|
|
@@ -267,6 +273,7 @@ require_relative "lithic/models/external_bank_account_create_params"
|
|
|
267
273
|
require_relative "lithic/models/external_bank_account_create_response"
|
|
268
274
|
require_relative "lithic/models/external_bank_account_list_params"
|
|
269
275
|
require_relative "lithic/models/external_bank_account_list_response"
|
|
276
|
+
require_relative "lithic/models/external_bank_account_pause_params"
|
|
270
277
|
require_relative "lithic/models/external_bank_account_retrieve_params"
|
|
271
278
|
require_relative "lithic/models/external_bank_account_retrieve_response"
|
|
272
279
|
require_relative "lithic/models/external_bank_account_retry_micro_deposits_params"
|
|
@@ -394,6 +401,7 @@ require_relative "lithic/models/settlement_detail"
|
|
|
394
401
|
require_relative "lithic/models/settlement_report_updated_webhook_event"
|
|
395
402
|
require_relative "lithic/models/settlement_summary_details"
|
|
396
403
|
require_relative "lithic/models/shipping_address"
|
|
404
|
+
require_relative "lithic/models/signals_response"
|
|
397
405
|
require_relative "lithic/models/spend_limit_duration"
|
|
398
406
|
require_relative "lithic/models/statements_created_webhook_event"
|
|
399
407
|
require_relative "lithic/models/statement_totals"
|
|
@@ -473,6 +481,7 @@ require_relative "lithic/resources/auth_rules/v2/backtests"
|
|
|
473
481
|
require_relative "lithic/resources/auth_stream_enrollment"
|
|
474
482
|
require_relative "lithic/resources/balances"
|
|
475
483
|
require_relative "lithic/resources/book_transfers"
|
|
484
|
+
require_relative "lithic/resources/card_authorizations"
|
|
476
485
|
require_relative "lithic/resources/card_bulk_orders"
|
|
477
486
|
require_relative "lithic/resources/card_programs"
|
|
478
487
|
require_relative "lithic/resources/cards"
|
data/rbi/lithic/client.rbi
CHANGED
|
@@ -46,6 +46,9 @@ module Lithic
|
|
|
46
46
|
sig { returns(Lithic::Resources::Cards) }
|
|
47
47
|
attr_reader :cards
|
|
48
48
|
|
|
49
|
+
sig { returns(Lithic::Resources::CardAuthorizations) }
|
|
50
|
+
attr_reader :card_authorizations
|
|
51
|
+
|
|
49
52
|
sig { returns(Lithic::Resources::CardBulkOrders) }
|
|
50
53
|
attr_reader :card_bulk_orders
|
|
51
54
|
|
|
@@ -124,10 +124,7 @@ module Lithic
|
|
|
124
124
|
# Customer-provided token that indicates a relationship with an object outside of
|
|
125
125
|
# the Lithic ecosystem.
|
|
126
126
|
sig { returns(T.nilable(String)) }
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
sig { params(external_id: String).void }
|
|
130
|
-
attr_writer :external_id
|
|
127
|
+
attr_accessor :external_id
|
|
131
128
|
|
|
132
129
|
# Only present when user_type == "INDIVIDUAL". Information about the individual
|
|
133
130
|
# for which the account is being opened and KYC is being run.
|
|
@@ -151,10 +148,7 @@ module Lithic
|
|
|
151
148
|
# Only present when user_type == "BUSINESS". 6-digit North American Industry
|
|
152
149
|
# Classification System (NAICS) code for the business.
|
|
153
150
|
sig { returns(T.nilable(String)) }
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
sig { params(naics_code: String).void }
|
|
157
|
-
attr_writer :naics_code
|
|
151
|
+
attr_accessor :naics_code
|
|
158
152
|
|
|
159
153
|
# Only present when user_type == "BUSINESS". User-submitted description of the
|
|
160
154
|
# business.
|
|
@@ -296,10 +290,10 @@ module Lithic
|
|
|
296
290
|
T.nilable(
|
|
297
291
|
Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::ExemptionType::OrSymbol
|
|
298
292
|
),
|
|
299
|
-
external_id: String,
|
|
293
|
+
external_id: T.nilable(String),
|
|
300
294
|
individual:
|
|
301
295
|
Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual::OrHash,
|
|
302
|
-
naics_code: String,
|
|
296
|
+
naics_code: T.nilable(String),
|
|
303
297
|
nature_of_business: String,
|
|
304
298
|
phone_number: String,
|
|
305
299
|
required_documents: T::Array[Lithic::RequiredDocument::OrHash],
|
|
@@ -417,10 +411,10 @@ module Lithic
|
|
|
417
411
|
T.nilable(
|
|
418
412
|
Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::ExemptionType::TaggedSymbol
|
|
419
413
|
),
|
|
420
|
-
external_id: String,
|
|
414
|
+
external_id: T.nilable(String),
|
|
421
415
|
individual:
|
|
422
416
|
Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual,
|
|
423
|
-
naics_code: String,
|
|
417
|
+
naics_code: T.nilable(String),
|
|
424
418
|
nature_of_business: String,
|
|
425
419
|
phone_number: String,
|
|
426
420
|
required_documents: T::Array[Lithic::RequiredDocument],
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class AccountRetrieveSignalsParams < Lithic::Internal::Type::BaseModel
|
|
6
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Lithic::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(Lithic::AccountRetrieveSignalsParams, Lithic::Internal::AnyHash)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
sig { returns(String) }
|
|
15
|
+
attr_accessor :account_token
|
|
16
|
+
|
|
17
|
+
sig do
|
|
18
|
+
params(
|
|
19
|
+
account_token: String,
|
|
20
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
21
|
+
).returns(T.attached_class)
|
|
22
|
+
end
|
|
23
|
+
def self.new(account_token:, request_options: {})
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
sig do
|
|
27
|
+
override.returns(
|
|
28
|
+
{ account_token: String, request_options: Lithic::RequestOptions }
|
|
29
|
+
)
|
|
30
|
+
end
|
|
31
|
+
def to_hash
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -235,7 +235,8 @@ module Lithic
|
|
|
235
235
|
Lithic::AuthRules::ConditionalACHActionParameters::OrHash,
|
|
236
236
|
Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash,
|
|
237
237
|
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::OrHash,
|
|
238
|
-
Lithic::AuthRules::TypescriptCodeParameters::OrHash
|
|
238
|
+
Lithic::AuthRules::TypescriptCodeParameters::OrHash,
|
|
239
|
+
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::OrHash
|
|
239
240
|
),
|
|
240
241
|
version: Integer
|
|
241
242
|
).returns(T.attached_class)
|
|
@@ -276,7 +277,8 @@ module Lithic
|
|
|
276
277
|
Lithic::AuthRules::ConditionalACHActionParameters,
|
|
277
278
|
Lithic::AuthRules::ConditionalTokenizationActionParameters,
|
|
278
279
|
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters,
|
|
279
|
-
Lithic::AuthRules::TypescriptCodeParameters
|
|
280
|
+
Lithic::AuthRules::TypescriptCodeParameters,
|
|
281
|
+
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters
|
|
280
282
|
)
|
|
281
283
|
end
|
|
282
284
|
|
|
@@ -349,7 +351,8 @@ module Lithic
|
|
|
349
351
|
Lithic::AuthRules::ConditionalACHActionParameters::OrHash,
|
|
350
352
|
Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash,
|
|
351
353
|
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::OrHash,
|
|
352
|
-
Lithic::AuthRules::TypescriptCodeParameters::OrHash
|
|
354
|
+
Lithic::AuthRules::TypescriptCodeParameters::OrHash,
|
|
355
|
+
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::OrHash
|
|
353
356
|
),
|
|
354
357
|
state: Lithic::AuthRules::AuthRule::DraftVersion::State::OrSymbol,
|
|
355
358
|
version: Integer
|
|
@@ -408,7 +411,8 @@ module Lithic
|
|
|
408
411
|
Lithic::AuthRules::ConditionalACHActionParameters,
|
|
409
412
|
Lithic::AuthRules::ConditionalTokenizationActionParameters,
|
|
410
413
|
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters,
|
|
411
|
-
Lithic::AuthRules::TypescriptCodeParameters
|
|
414
|
+
Lithic::AuthRules::TypescriptCodeParameters,
|
|
415
|
+
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters
|
|
412
416
|
)
|
|
413
417
|
end
|
|
414
418
|
|
|
@@ -43,7 +43,8 @@ module Lithic
|
|
|
43
43
|
Lithic::AuthRules::ConditionalACHActionParameters::OrHash,
|
|
44
44
|
Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash,
|
|
45
45
|
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::OrHash,
|
|
46
|
-
Lithic::AuthRules::TypescriptCodeParameters::OrHash
|
|
46
|
+
Lithic::AuthRules::TypescriptCodeParameters::OrHash,
|
|
47
|
+
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::OrHash
|
|
47
48
|
),
|
|
48
49
|
state: Lithic::AuthRules::AuthRuleVersion::State::OrSymbol,
|
|
49
50
|
version: Integer
|
|
@@ -91,7 +92,8 @@ module Lithic
|
|
|
91
92
|
Lithic::AuthRules::ConditionalACHActionParameters,
|
|
92
93
|
Lithic::AuthRules::ConditionalTokenizationActionParameters,
|
|
93
94
|
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters,
|
|
94
|
-
Lithic::AuthRules::TypescriptCodeParameters
|
|
95
|
+
Lithic::AuthRules::TypescriptCodeParameters,
|
|
96
|
+
Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters
|
|
95
97
|
)
|
|
96
98
|
end
|
|
97
99
|
|
|
@@ -122,9 +122,10 @@ module Lithic
|
|
|
122
122
|
# - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
|
|
123
123
|
# fee field in the settlement/cardholder billing currency. This is the amount
|
|
124
124
|
# the issuer should authorize against unless the issuer is paying the acquirer
|
|
125
|
-
# fee on behalf of the cardholder.
|
|
125
|
+
# fee on behalf of the cardholder. Use an integer value.
|
|
126
126
|
# - `RISK_SCORE`: Mastercard only: Assessment by the network of the authentication
|
|
127
|
-
# risk level, with a higher value indicating a higher amount of risk.
|
|
127
|
+
# risk level, with a higher value indicating a higher amount of risk. Use an
|
|
128
|
+
# integer value.
|
|
128
129
|
# - `MESSAGE_CATEGORY`: The category of the authentication being processed.
|
|
129
130
|
# - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
|
|
130
131
|
# data with the cardholder KYC data if it exists. Valid values are `MATCH`,
|
|
@@ -170,9 +171,10 @@ module Lithic
|
|
|
170
171
|
# - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
|
|
171
172
|
# fee field in the settlement/cardholder billing currency. This is the amount
|
|
172
173
|
# the issuer should authorize against unless the issuer is paying the acquirer
|
|
173
|
-
# fee on behalf of the cardholder.
|
|
174
|
+
# fee on behalf of the cardholder. Use an integer value.
|
|
174
175
|
# - `RISK_SCORE`: Mastercard only: Assessment by the network of the authentication
|
|
175
|
-
# risk level, with a higher value indicating a higher amount of risk.
|
|
176
|
+
# risk level, with a higher value indicating a higher amount of risk. Use an
|
|
177
|
+
# integer value.
|
|
176
178
|
# - `MESSAGE_CATEGORY`: The category of the authentication being processed.
|
|
177
179
|
# - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
|
|
178
180
|
# data with the cardholder KYC data if it exists. Valid values are `MATCH`,
|
|
@@ -215,9 +217,10 @@ module Lithic
|
|
|
215
217
|
# - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
|
|
216
218
|
# fee field in the settlement/cardholder billing currency. This is the amount
|
|
217
219
|
# the issuer should authorize against unless the issuer is paying the acquirer
|
|
218
|
-
# fee on behalf of the cardholder.
|
|
220
|
+
# fee on behalf of the cardholder. Use an integer value.
|
|
219
221
|
# - `RISK_SCORE`: Mastercard only: Assessment by the network of the authentication
|
|
220
|
-
# risk level, with a higher value indicating a higher amount of risk.
|
|
222
|
+
# risk level, with a higher value indicating a higher amount of risk. Use an
|
|
223
|
+
# integer value.
|
|
221
224
|
# - `MESSAGE_CATEGORY`: The category of the authentication being processed.
|
|
222
225
|
# - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
|
|
223
226
|
# data with the cardholder KYC data if it exists. Valid values are `MATCH`,
|
|
@@ -648,7 +648,7 @@ module Lithic
|
|
|
648
648
|
# ID) of the entity initiating the ACH transaction.
|
|
649
649
|
# - `TIMESTAMP`: The timestamp of the ACH transaction in ISO 8601 format.
|
|
650
650
|
# - `TRANSACTION_AMOUNT`: The amount of the ACH transaction in minor units
|
|
651
|
-
# (cents).
|
|
651
|
+
# (cents). Use an integer value.
|
|
652
652
|
# - `SEC_CODE`: Standard Entry Class code indicating the type of ACH transaction.
|
|
653
653
|
# Valid values include PPD (Prearranged Payment and Deposit Entry), CCD
|
|
654
654
|
# (Corporate Credit or Debit Entry), WEB (Internet-Initiated/Mobile Entry), TEL
|
|
@@ -687,7 +687,7 @@ module Lithic
|
|
|
687
687
|
# ID) of the entity initiating the ACH transaction.
|
|
688
688
|
# - `TIMESTAMP`: The timestamp of the ACH transaction in ISO 8601 format.
|
|
689
689
|
# - `TRANSACTION_AMOUNT`: The amount of the ACH transaction in minor units
|
|
690
|
-
# (cents).
|
|
690
|
+
# (cents). Use an integer value.
|
|
691
691
|
# - `SEC_CODE`: Standard Entry Class code indicating the type of ACH transaction.
|
|
692
692
|
# Valid values include PPD (Prearranged Payment and Deposit Entry), CCD
|
|
693
693
|
# (Corporate Credit or Debit Entry), WEB (Internet-Initiated/Mobile Entry), TEL
|
|
@@ -723,7 +723,7 @@ module Lithic
|
|
|
723
723
|
# ID) of the entity initiating the ACH transaction.
|
|
724
724
|
# - `TIMESTAMP`: The timestamp of the ACH transaction in ISO 8601 format.
|
|
725
725
|
# - `TRANSACTION_AMOUNT`: The amount of the ACH transaction in minor units
|
|
726
|
-
# (cents).
|
|
726
|
+
# (cents). Use an integer value.
|
|
727
727
|
# - `SEC_CODE`: Standard Entry Class code indicating the type of ACH transaction.
|
|
728
728
|
# Valid values include PPD (Prearranged Payment and Deposit Entry), CCD
|
|
729
729
|
# (Corporate Credit or Debit Entry), WEB (Internet-Initiated/Mobile Entry), TEL
|