lithic 0.1.0.pre.alpha.54 → 0.1.0.pre.alpha.56
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 +39 -0
- data/README.md +1 -1
- data/lib/lithic/client.rb +4 -0
- data/lib/lithic/models/account_activity_list_response.rb +60 -148
- data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +60 -151
- data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +2 -2
- data/lib/lithic/models/account_holder_update_response.rb +4 -4
- data/lib/lithic/models/auth_rules/auth_rule_condition.rb +8 -51
- data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +8 -51
- data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +260 -0
- data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +207 -0
- data/lib/lithic/models/auth_rules/conditional_operation.rb +26 -0
- data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +254 -0
- data/lib/lithic/models/auth_rules/conditional_value.rb +27 -0
- data/lib/lithic/models/auth_rules/v2_create_params.rb +46 -283
- data/lib/lithic/models/auth_rules/v2_create_response.rb +23 -510
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +6 -248
- data/lib/lithic/models/auth_rules/v2_draft_response.rb +23 -510
- data/lib/lithic/models/auth_rules/v2_list_params.rb +3 -0
- data/lib/lithic/models/auth_rules/v2_list_response.rb +23 -510
- data/lib/lithic/models/auth_rules/v2_promote_response.rb +23 -510
- data/lib/lithic/models/auth_rules/v2_retrieve_features_response.rb +4 -11
- data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +23 -510
- data/lib/lithic/models/auth_rules/v2_update_response.rb +23 -510
- data/lib/lithic/models/auth_rules/velocity_limit_params.rb +4 -7
- data/lib/lithic/models/auth_rules/velocity_limit_period.rb +154 -0
- data/lib/lithic/models/book_transfer_response.rb +6 -5
- data/lib/lithic/models/category_details.rb +27 -0
- data/lib/lithic/models/dispute_v2.rb +555 -0
- data/lib/lithic/models/disputes_v2_list_params.rb +84 -0
- data/lib/lithic/models/disputes_v2_retrieve_params.rb +14 -0
- data/lib/lithic/models/event.rb +213 -69
- data/lib/lithic/models/event_list_params.rb +112 -6
- data/lib/lithic/models/event_subscription.rb +112 -6
- data/lib/lithic/models/events/subscription_create_params.rb +112 -6
- data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +12 -6
- data/lib/lithic/models/events/subscription_update_params.rb +112 -6
- data/lib/lithic/models/external_bank_account_address.rb +2 -2
- data/lib/lithic/models/external_bank_account_create_response.rb +18 -18
- data/lib/lithic/models/external_bank_account_list_response.rb +18 -18
- data/lib/lithic/models/external_bank_account_retrieve_response.rb +18 -18
- data/lib/lithic/models/external_bank_account_retry_micro_deposits_response.rb +18 -18
- data/lib/lithic/models/external_bank_account_retry_prenote_response.rb +18 -18
- data/lib/lithic/models/external_bank_account_unpause_params.rb +14 -0
- data/lib/lithic/models/external_bank_account_unpause_response.rb +242 -0
- data/lib/lithic/models/external_bank_account_update_response.rb +18 -18
- data/lib/lithic/models/external_bank_accounts/micro_deposit_create_response.rb +18 -18
- data/lib/lithic/models/external_payment.rb +3 -2
- data/lib/lithic/models/external_payment_list_params.rb +1 -0
- data/lib/lithic/models/financial_account.rb +5 -68
- data/lib/lithic/models/financial_accounts/category_balances.rb +29 -0
- data/lib/lithic/models/financial_accounts/financial_account_credit_config.rb +1 -64
- data/lib/lithic/models/financial_accounts/loan_tape.rb +35 -424
- data/lib/lithic/models/financial_accounts/statement.rb +73 -211
- data/lib/lithic/models/financial_event.rb +148 -0
- data/lib/lithic/models/financial_transaction.rb +3 -146
- data/lib/lithic/models/management_operation_list_params.rb +1 -0
- data/lib/lithic/models/management_operation_transaction.rb +5 -4
- data/lib/lithic/models/merchant.rb +70 -0
- data/lib/lithic/models/payment.rb +16 -14
- data/lib/lithic/models/payment_return_params.rb +62 -0
- data/lib/lithic/models/payment_simulate_action_params.rb +17 -1
- data/lib/lithic/models/statement_totals.rb +100 -0
- data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +9 -9
- data/lib/lithic/models/tokenization.rb +189 -23
- data/lib/lithic/models/transaction.rb +15 -185
- data/lib/lithic/models/transactions/events/enhanced_data.rb +52 -43
- data/lib/lithic/models/transfer.rb +3 -146
- data/lib/lithic/models.rb +18 -0
- data/lib/lithic/resources/auth_rules/v2/backtests.rb +3 -5
- data/lib/lithic/resources/auth_rules/v2.rb +13 -56
- data/lib/lithic/resources/disputes_v2.rb +74 -0
- data/lib/lithic/resources/external_bank_accounts.rb +19 -0
- data/lib/lithic/resources/payments.rb +53 -1
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +18 -3
- data/rbi/lithic/client.rbi +3 -0
- data/rbi/lithic/models/account_activity_list_response.rbi +121 -544
- data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +121 -544
- data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +3 -6
- data/rbi/lithic/models/account_holder_update_response.rbi +6 -12
- data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +13 -139
- data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +13 -153
- data/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +789 -0
- data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +437 -0
- data/rbi/lithic/models/auth_rules/conditional_operation.rbi +74 -0
- data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +674 -0
- data/rbi/lithic/models/auth_rules/conditional_value.rbi +28 -0
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +112 -680
- data/rbi/lithic/models/auth_rules/v2_create_response.rbi +33 -1149
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +12 -575
- data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +33 -1149
- data/rbi/lithic/models/auth_rules/v2_list_params.rbi +15 -0
- data/rbi/lithic/models/auth_rules/v2_list_response.rbi +33 -1149
- data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +33 -1149
- data/rbi/lithic/models/auth_rules/v2_retrieve_features_response.rbi +9 -22
- data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +33 -1149
- data/rbi/lithic/models/auth_rules/v2_update_response.rbi +33 -1149
- data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +17 -29
- data/rbi/lithic/models/auth_rules/velocity_limit_period.rbi +223 -0
- data/rbi/lithic/models/book_transfer_response.rbi +16 -11
- data/rbi/lithic/models/category_details.rbi +43 -0
- data/rbi/lithic/models/dispute_v2.rbi +965 -0
- data/rbi/lithic/models/disputes_v2_list_params.rbi +129 -0
- data/rbi/lithic/models/disputes_v2_retrieve_params.rbi +27 -0
- data/rbi/lithic/models/event.rbi +348 -111
- data/rbi/lithic/models/event_list_params.rbi +155 -25
- data/rbi/lithic/models/event_subscription.rbi +155 -25
- data/rbi/lithic/models/events/subscription_create_params.rbi +155 -25
- data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +55 -25
- data/rbi/lithic/models/events/subscription_update_params.rbi +155 -25
- data/rbi/lithic/models/external_bank_account_address.rbi +3 -6
- data/rbi/lithic/models/external_bank_account_create_response.rbi +31 -51
- data/rbi/lithic/models/external_bank_account_list_response.rbi +31 -51
- data/rbi/lithic/models/external_bank_account_retrieve_response.rbi +31 -51
- data/rbi/lithic/models/external_bank_account_retry_micro_deposits_response.rbi +31 -51
- data/rbi/lithic/models/external_bank_account_retry_prenote_response.rbi +31 -51
- data/rbi/lithic/models/external_bank_account_unpause_params.rbi +30 -0
- data/rbi/lithic/models/external_bank_account_unpause_response.rbi +375 -0
- data/rbi/lithic/models/external_bank_account_update_response.rbi +31 -51
- data/rbi/lithic/models/external_bank_accounts/micro_deposit_create_response.rbi +31 -51
- data/rbi/lithic/models/external_payment.rbi +5 -6
- data/rbi/lithic/models/external_payment_list_params.rbi +5 -0
- data/rbi/lithic/models/financial_account.rbi +15 -136
- data/rbi/lithic/models/financial_accounts/category_balances.rbi +42 -0
- data/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi +3 -136
- data/rbi/lithic/models/financial_accounts/loan_tape.rbi +47 -679
- data/rbi/lithic/models/financial_accounts/statement.rbi +118 -348
- data/rbi/lithic/models/financial_event.rbi +409 -0
- data/rbi/lithic/models/financial_transaction.rbi +3 -509
- data/rbi/lithic/models/management_operation_list_params.rbi +5 -0
- data/rbi/lithic/models/management_operation_transaction.rbi +11 -12
- data/rbi/lithic/models/merchant.rbi +89 -0
- data/rbi/lithic/models/payment.rbi +27 -21
- data/rbi/lithic/models/payment_return_params.rbi +85 -0
- data/rbi/lithic/models/payment_simulate_action_params.rbi +22 -0
- data/rbi/lithic/models/statement_totals.rbi +128 -0
- data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +12 -12
- data/rbi/lithic/models/tokenization.rbi +429 -34
- data/rbi/lithic/models/transaction.rbi +26 -336
- data/rbi/lithic/models/transactions/events/enhanced_data.rbi +77 -136
- data/rbi/lithic/models/transfer.rbi +4 -436
- data/rbi/lithic/models.rbi +19 -0
- data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +0 -3
- data/rbi/lithic/resources/auth_rules/v2.rbi +29 -72
- data/rbi/lithic/resources/disputes_v2.rbi +64 -0
- data/rbi/lithic/resources/external_bank_accounts.rbi +10 -0
- data/rbi/lithic/resources/payments.rbi +52 -0
- data/sig/lithic/client.rbs +2 -0
- data/sig/lithic/models/account_activity_list_response.rbs +67 -221
- data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +67 -221
- data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +4 -6
- data/sig/lithic/models/account_holder_update_response.rbs +8 -12
- data/sig/lithic/models/auth_rules/auth_rule_condition.rbs +10 -61
- data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +10 -61
- data/sig/lithic/models/auth_rules/conditional_ach_action_parameters.rbs +293 -0
- data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +112 -0
- data/sig/lithic/models/auth_rules/conditional_operation.rbs +34 -0
- data/sig/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbs +237 -0
- data/sig/lithic/models/auth_rules/conditional_value.rbs +15 -0
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +32 -188
- data/sig/lithic/models/auth_rules/v2_create_response.rbs +15 -319
- data/sig/lithic/models/auth_rules/v2_draft_params.rbs +3 -159
- data/sig/lithic/models/auth_rules/v2_draft_response.rbs +15 -319
- data/sig/lithic/models/auth_rules/v2_list_params.rbs +9 -1
- data/sig/lithic/models/auth_rules/v2_list_response.rbs +15 -319
- data/sig/lithic/models/auth_rules/v2_promote_response.rbs +15 -319
- data/sig/lithic/models/auth_rules/v2_retrieve_features_response.rbs +4 -4
- data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +15 -319
- data/sig/lithic/models/auth_rules/v2_update_response.rbs +15 -319
- data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +4 -4
- data/sig/lithic/models/auth_rules/velocity_limit_period.rbs +91 -0
- data/sig/lithic/models/book_transfer_response.rbs +10 -8
- data/sig/lithic/models/category_details.rbs +26 -0
- data/sig/lithic/models/dispute_v2.rbs +438 -0
- data/sig/lithic/models/disputes_v2_list_params.rbs +77 -0
- data/sig/lithic/models/disputes_v2_retrieve_params.rbs +15 -0
- data/sig/lithic/models/event.rbs +25 -13
- data/sig/lithic/models/event_list_params.rbs +25 -13
- data/sig/lithic/models/event_subscription.rbs +25 -13
- data/sig/lithic/models/events/subscription_create_params.rbs +25 -13
- data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +25 -13
- data/sig/lithic/models/events/subscription_update_params.rbs +25 -13
- data/sig/lithic/models/external_bank_account_address.rbs +4 -6
- data/sig/lithic/models/external_bank_account_create_response.rbs +36 -56
- data/sig/lithic/models/external_bank_account_list_response.rbs +36 -56
- data/sig/lithic/models/external_bank_account_retrieve_response.rbs +36 -56
- data/sig/lithic/models/external_bank_account_retry_micro_deposits_response.rbs +36 -56
- data/sig/lithic/models/external_bank_account_retry_prenote_response.rbs +36 -56
- data/sig/lithic/models/external_bank_account_unpause_params.rbs +15 -0
- data/sig/lithic/models/external_bank_account_unpause_response.rbs +162 -0
- data/sig/lithic/models/external_bank_account_update_response.rbs +36 -56
- data/sig/lithic/models/external_bank_accounts/micro_deposit_create_response.rbs +36 -56
- data/sig/lithic/models/external_payment.rbs +7 -7
- data/sig/lithic/models/external_payment_list_params.rbs +3 -1
- data/sig/lithic/models/financial_account.rbs +7 -49
- data/sig/lithic/models/financial_accounts/category_balances.rbs +24 -0
- data/sig/lithic/models/financial_accounts/financial_account_credit_config.rbs +3 -49
- data/sig/lithic/models/financial_accounts/loan_tape.rbs +48 -386
- data/sig/lithic/models/financial_accounts/statement.rbs +59 -192
- data/sig/lithic/models/financial_event.rbs +216 -0
- data/sig/lithic/models/financial_transaction.rbs +4 -217
- data/sig/lithic/models/management_operation_list_params.rbs +3 -1
- data/sig/lithic/models/management_operation_transaction.rbs +11 -13
- data/sig/lithic/models/merchant.rbs +50 -0
- data/sig/lithic/models/payment.rbs +17 -15
- data/sig/lithic/models/payment_return_params.rbs +46 -0
- data/sig/lithic/models/payment_simulate_action_params.rbs +14 -0
- data/sig/lithic/models/statement_totals.rbs +76 -0
- data/sig/lithic/models/tokenization.rbs +160 -13
- data/sig/lithic/models/transaction.rbs +17 -145
- data/sig/lithic/models/transactions/events/enhanced_data.rbs +78 -124
- data/sig/lithic/models/transfer.rbs +6 -219
- data/sig/lithic/models.rbs +18 -0
- data/sig/lithic/resources/auth_rules/v2.rbs +2 -12
- data/sig/lithic/resources/disputes_v2.rbs +24 -0
- data/sig/lithic/resources/external_bank_accounts.rbs +5 -0
- data/sig/lithic/resources/payments.rbs +12 -0
- metadata +56 -11
- data/lib/lithic/models/auth_rules/v2_apply_params.rb +0 -56
- data/lib/lithic/models/auth_rules/v2_apply_response.rb +0 -766
- data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +0 -248
- data/rbi/lithic/models/auth_rules/v2_apply_params.rbi +0 -86
- data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +0 -1638
- data/rbi/lithic/models/auth_rules/velocity_limit_params_period_window.rbi +0 -557
- data/sig/lithic/models/auth_rules/v2_apply_params.rbs +0 -54
- data/sig/lithic/models/auth_rules/v2_apply_response.rbs +0 -509
- data/sig/lithic/models/auth_rules/velocity_limit_params_period_window.rbs +0 -223
|
@@ -76,10 +76,10 @@ module Lithic
|
|
|
76
76
|
sig { returns(T.nilable(String)) }
|
|
77
77
|
attr_accessor :financial_account_token
|
|
78
78
|
|
|
79
|
-
sig { returns(Lithic::
|
|
79
|
+
sig { returns(Lithic::Merchant) }
|
|
80
80
|
attr_reader :merchant
|
|
81
81
|
|
|
82
|
-
sig { params(merchant: Lithic::
|
|
82
|
+
sig { params(merchant: Lithic::Merchant::OrHash).void }
|
|
83
83
|
attr_writer :merchant
|
|
84
84
|
|
|
85
85
|
# Analogous to the 'amount', but in the merchant currency.
|
|
@@ -160,7 +160,7 @@ module Lithic
|
|
|
160
160
|
T.nilable(Lithic::Transaction::CardholderAuthentication::OrHash),
|
|
161
161
|
created: Time,
|
|
162
162
|
financial_account_token: T.nilable(String),
|
|
163
|
-
merchant: Lithic::
|
|
163
|
+
merchant: Lithic::Merchant::OrHash,
|
|
164
164
|
merchant_amount: T.nilable(Integer),
|
|
165
165
|
merchant_authorization_amount: T.nilable(Integer),
|
|
166
166
|
merchant_currency: String,
|
|
@@ -252,7 +252,7 @@ module Lithic
|
|
|
252
252
|
T.nilable(Lithic::Transaction::CardholderAuthentication),
|
|
253
253
|
created: Time,
|
|
254
254
|
financial_account_token: T.nilable(String),
|
|
255
|
-
merchant: Lithic::
|
|
255
|
+
merchant: Lithic::Merchant,
|
|
256
256
|
merchant_amount: T.nilable(Integer),
|
|
257
257
|
merchant_authorization_amount: T.nilable(Integer),
|
|
258
258
|
merchant_currency: String,
|
|
@@ -525,18 +525,13 @@ module Lithic
|
|
|
525
525
|
)
|
|
526
526
|
end
|
|
527
527
|
|
|
528
|
-
#
|
|
529
|
-
sig { returns(T.nilable(String)) }
|
|
530
|
-
attr_accessor :three_ds_version
|
|
531
|
-
|
|
532
|
-
# Whether an acquirer exemption applied to the transaction. Not currently
|
|
533
|
-
# populated and will be removed in the future.
|
|
528
|
+
# Indicates the method used to authenticate the cardholder.
|
|
534
529
|
sig do
|
|
535
530
|
returns(
|
|
536
|
-
Lithic::Transaction::CardholderAuthentication::
|
|
531
|
+
Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol
|
|
537
532
|
)
|
|
538
533
|
end
|
|
539
|
-
attr_accessor :
|
|
534
|
+
attr_accessor :authentication_method
|
|
540
535
|
|
|
541
536
|
# Indicates the outcome of the 3DS authentication process.
|
|
542
537
|
sig do
|
|
@@ -578,68 +573,22 @@ module Lithic
|
|
|
578
573
|
sig { returns(T.nilable(String)) }
|
|
579
574
|
attr_accessor :three_ds_authentication_token
|
|
580
575
|
|
|
581
|
-
# Indicates whether a 3DS challenge flow was used, and if so, what the
|
|
582
|
-
# verification method was. (deprecated, use `authentication_result`)
|
|
583
|
-
sig do
|
|
584
|
-
returns(
|
|
585
|
-
Lithic::Transaction::CardholderAuthentication::VerificationAttempted::TaggedSymbol
|
|
586
|
-
)
|
|
587
|
-
end
|
|
588
|
-
attr_accessor :verification_attempted
|
|
589
|
-
|
|
590
|
-
# Indicates whether a transaction is considered 3DS authenticated. (deprecated,
|
|
591
|
-
# use `authentication_result`)
|
|
592
|
-
sig do
|
|
593
|
-
returns(
|
|
594
|
-
Lithic::Transaction::CardholderAuthentication::VerificationResult::TaggedSymbol
|
|
595
|
-
)
|
|
596
|
-
end
|
|
597
|
-
attr_accessor :verification_result
|
|
598
|
-
|
|
599
|
-
# Indicates the method used to authenticate the cardholder.
|
|
600
|
-
sig do
|
|
601
|
-
returns(
|
|
602
|
-
T.nilable(
|
|
603
|
-
Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol
|
|
604
|
-
)
|
|
605
|
-
)
|
|
606
|
-
end
|
|
607
|
-
attr_reader :authentication_method
|
|
608
|
-
|
|
609
576
|
sig do
|
|
610
577
|
params(
|
|
611
578
|
authentication_method:
|
|
612
|
-
Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::OrSymbol
|
|
613
|
-
).void
|
|
614
|
-
end
|
|
615
|
-
attr_writer :authentication_method
|
|
616
|
-
|
|
617
|
-
sig do
|
|
618
|
-
params(
|
|
619
|
-
three_ds_version: T.nilable(String),
|
|
620
|
-
acquirer_exemption:
|
|
621
|
-
Lithic::Transaction::CardholderAuthentication::AcquirerExemption::OrSymbol,
|
|
579
|
+
Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::OrSymbol,
|
|
622
580
|
authentication_result:
|
|
623
581
|
Lithic::Transaction::CardholderAuthentication::AuthenticationResult::OrSymbol,
|
|
624
582
|
decision_made_by:
|
|
625
583
|
Lithic::Transaction::CardholderAuthentication::DecisionMadeBy::OrSymbol,
|
|
626
584
|
liability_shift:
|
|
627
585
|
Lithic::Transaction::CardholderAuthentication::LiabilityShift::OrSymbol,
|
|
628
|
-
three_ds_authentication_token: T.nilable(String)
|
|
629
|
-
verification_attempted:
|
|
630
|
-
Lithic::Transaction::CardholderAuthentication::VerificationAttempted::OrSymbol,
|
|
631
|
-
verification_result:
|
|
632
|
-
Lithic::Transaction::CardholderAuthentication::VerificationResult::OrSymbol,
|
|
633
|
-
authentication_method:
|
|
634
|
-
Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::OrSymbol
|
|
586
|
+
three_ds_authentication_token: T.nilable(String)
|
|
635
587
|
).returns(T.attached_class)
|
|
636
588
|
end
|
|
637
589
|
def self.new(
|
|
638
|
-
#
|
|
639
|
-
|
|
640
|
-
# Whether an acquirer exemption applied to the transaction. Not currently
|
|
641
|
-
# populated and will be removed in the future.
|
|
642
|
-
acquirer_exemption:,
|
|
590
|
+
# Indicates the method used to authenticate the cardholder.
|
|
591
|
+
authentication_method:,
|
|
643
592
|
# Indicates the outcome of the 3DS authentication process.
|
|
644
593
|
authentication_result:,
|
|
645
594
|
# Indicates which party made the 3DS authentication decision.
|
|
@@ -659,102 +608,61 @@ module Lithic
|
|
|
659
608
|
# the three_ds_authentication.created event webhook) and the transaction. Note
|
|
660
609
|
# that in cases where liability shift does not occur, this token is matched to the
|
|
661
610
|
# transaction on a best-effort basis.
|
|
662
|
-
three_ds_authentication_token
|
|
663
|
-
# Indicates whether a 3DS challenge flow was used, and if so, what the
|
|
664
|
-
# verification method was. (deprecated, use `authentication_result`)
|
|
665
|
-
verification_attempted:,
|
|
666
|
-
# Indicates whether a transaction is considered 3DS authenticated. (deprecated,
|
|
667
|
-
# use `authentication_result`)
|
|
668
|
-
verification_result:,
|
|
669
|
-
# Indicates the method used to authenticate the cardholder.
|
|
670
|
-
authentication_method: nil
|
|
611
|
+
three_ds_authentication_token:
|
|
671
612
|
)
|
|
672
613
|
end
|
|
673
614
|
|
|
674
615
|
sig do
|
|
675
616
|
override.returns(
|
|
676
617
|
{
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
Lithic::Transaction::CardholderAuthentication::AcquirerExemption::TaggedSymbol,
|
|
618
|
+
authentication_method:
|
|
619
|
+
Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol,
|
|
680
620
|
authentication_result:
|
|
681
621
|
Lithic::Transaction::CardholderAuthentication::AuthenticationResult::TaggedSymbol,
|
|
682
622
|
decision_made_by:
|
|
683
623
|
Lithic::Transaction::CardholderAuthentication::DecisionMadeBy::TaggedSymbol,
|
|
684
624
|
liability_shift:
|
|
685
625
|
Lithic::Transaction::CardholderAuthentication::LiabilityShift::TaggedSymbol,
|
|
686
|
-
three_ds_authentication_token: T.nilable(String)
|
|
687
|
-
verification_attempted:
|
|
688
|
-
Lithic::Transaction::CardholderAuthentication::VerificationAttempted::TaggedSymbol,
|
|
689
|
-
verification_result:
|
|
690
|
-
Lithic::Transaction::CardholderAuthentication::VerificationResult::TaggedSymbol,
|
|
691
|
-
authentication_method:
|
|
692
|
-
Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol
|
|
626
|
+
three_ds_authentication_token: T.nilable(String)
|
|
693
627
|
}
|
|
694
628
|
)
|
|
695
629
|
end
|
|
696
630
|
def to_hash
|
|
697
631
|
end
|
|
698
632
|
|
|
699
|
-
#
|
|
700
|
-
|
|
701
|
-
module AcquirerExemption
|
|
633
|
+
# Indicates the method used to authenticate the cardholder.
|
|
634
|
+
module AuthenticationMethod
|
|
702
635
|
extend Lithic::Internal::Type::Enum
|
|
703
636
|
|
|
704
637
|
TaggedSymbol =
|
|
705
638
|
T.type_alias do
|
|
706
639
|
T.all(
|
|
707
640
|
Symbol,
|
|
708
|
-
Lithic::Transaction::CardholderAuthentication::
|
|
641
|
+
Lithic::Transaction::CardholderAuthentication::AuthenticationMethod
|
|
709
642
|
)
|
|
710
643
|
end
|
|
711
644
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
712
645
|
|
|
713
|
-
|
|
714
|
-
T.let(
|
|
715
|
-
:AUTHENTICATION_OUTAGE_EXCEPTION,
|
|
716
|
-
Lithic::Transaction::CardholderAuthentication::AcquirerExemption::TaggedSymbol
|
|
717
|
-
)
|
|
718
|
-
LOW_VALUE =
|
|
646
|
+
FRICTIONLESS =
|
|
719
647
|
T.let(
|
|
720
|
-
:
|
|
721
|
-
Lithic::Transaction::CardholderAuthentication::
|
|
648
|
+
:FRICTIONLESS,
|
|
649
|
+
Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol
|
|
722
650
|
)
|
|
723
|
-
|
|
651
|
+
CHALLENGE =
|
|
724
652
|
T.let(
|
|
725
|
-
:
|
|
726
|
-
Lithic::Transaction::CardholderAuthentication::
|
|
653
|
+
:CHALLENGE,
|
|
654
|
+
Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol
|
|
727
655
|
)
|
|
728
656
|
NONE =
|
|
729
657
|
T.let(
|
|
730
658
|
:NONE,
|
|
731
|
-
Lithic::Transaction::CardholderAuthentication::
|
|
732
|
-
)
|
|
733
|
-
RECURRING_PAYMENT =
|
|
734
|
-
T.let(
|
|
735
|
-
:RECURRING_PAYMENT,
|
|
736
|
-
Lithic::Transaction::CardholderAuthentication::AcquirerExemption::TaggedSymbol
|
|
737
|
-
)
|
|
738
|
-
SECURE_CORPORATE_PAYMENT =
|
|
739
|
-
T.let(
|
|
740
|
-
:SECURE_CORPORATE_PAYMENT,
|
|
741
|
-
Lithic::Transaction::CardholderAuthentication::AcquirerExemption::TaggedSymbol
|
|
742
|
-
)
|
|
743
|
-
STRONG_CUSTOMER_AUTHENTICATION_DELEGATION =
|
|
744
|
-
T.let(
|
|
745
|
-
:STRONG_CUSTOMER_AUTHENTICATION_DELEGATION,
|
|
746
|
-
Lithic::Transaction::CardholderAuthentication::AcquirerExemption::TaggedSymbol
|
|
747
|
-
)
|
|
748
|
-
TRANSACTION_RISK_ANALYSIS =
|
|
749
|
-
T.let(
|
|
750
|
-
:TRANSACTION_RISK_ANALYSIS,
|
|
751
|
-
Lithic::Transaction::CardholderAuthentication::AcquirerExemption::TaggedSymbol
|
|
659
|
+
Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol
|
|
752
660
|
)
|
|
753
661
|
|
|
754
662
|
sig do
|
|
755
663
|
override.returns(
|
|
756
664
|
T::Array[
|
|
757
|
-
Lithic::Transaction::CardholderAuthentication::
|
|
665
|
+
Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol
|
|
758
666
|
]
|
|
759
667
|
)
|
|
760
668
|
end
|
|
@@ -910,224 +818,6 @@ module Lithic
|
|
|
910
818
|
def self.values
|
|
911
819
|
end
|
|
912
820
|
end
|
|
913
|
-
|
|
914
|
-
# Indicates whether a 3DS challenge flow was used, and if so, what the
|
|
915
|
-
# verification method was. (deprecated, use `authentication_result`)
|
|
916
|
-
module VerificationAttempted
|
|
917
|
-
extend Lithic::Internal::Type::Enum
|
|
918
|
-
|
|
919
|
-
TaggedSymbol =
|
|
920
|
-
T.type_alias do
|
|
921
|
-
T.all(
|
|
922
|
-
Symbol,
|
|
923
|
-
Lithic::Transaction::CardholderAuthentication::VerificationAttempted
|
|
924
|
-
)
|
|
925
|
-
end
|
|
926
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
927
|
-
|
|
928
|
-
NONE =
|
|
929
|
-
T.let(
|
|
930
|
-
:NONE,
|
|
931
|
-
Lithic::Transaction::CardholderAuthentication::VerificationAttempted::TaggedSymbol
|
|
932
|
-
)
|
|
933
|
-
OTHER =
|
|
934
|
-
T.let(
|
|
935
|
-
:OTHER,
|
|
936
|
-
Lithic::Transaction::CardholderAuthentication::VerificationAttempted::TaggedSymbol
|
|
937
|
-
)
|
|
938
|
-
|
|
939
|
-
sig do
|
|
940
|
-
override.returns(
|
|
941
|
-
T::Array[
|
|
942
|
-
Lithic::Transaction::CardholderAuthentication::VerificationAttempted::TaggedSymbol
|
|
943
|
-
]
|
|
944
|
-
)
|
|
945
|
-
end
|
|
946
|
-
def self.values
|
|
947
|
-
end
|
|
948
|
-
end
|
|
949
|
-
|
|
950
|
-
# Indicates whether a transaction is considered 3DS authenticated. (deprecated,
|
|
951
|
-
# use `authentication_result`)
|
|
952
|
-
module VerificationResult
|
|
953
|
-
extend Lithic::Internal::Type::Enum
|
|
954
|
-
|
|
955
|
-
TaggedSymbol =
|
|
956
|
-
T.type_alias do
|
|
957
|
-
T.all(
|
|
958
|
-
Symbol,
|
|
959
|
-
Lithic::Transaction::CardholderAuthentication::VerificationResult
|
|
960
|
-
)
|
|
961
|
-
end
|
|
962
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
963
|
-
|
|
964
|
-
CANCELLED =
|
|
965
|
-
T.let(
|
|
966
|
-
:CANCELLED,
|
|
967
|
-
Lithic::Transaction::CardholderAuthentication::VerificationResult::TaggedSymbol
|
|
968
|
-
)
|
|
969
|
-
FAILED =
|
|
970
|
-
T.let(
|
|
971
|
-
:FAILED,
|
|
972
|
-
Lithic::Transaction::CardholderAuthentication::VerificationResult::TaggedSymbol
|
|
973
|
-
)
|
|
974
|
-
FRICTIONLESS =
|
|
975
|
-
T.let(
|
|
976
|
-
:FRICTIONLESS,
|
|
977
|
-
Lithic::Transaction::CardholderAuthentication::VerificationResult::TaggedSymbol
|
|
978
|
-
)
|
|
979
|
-
NOT_ATTEMPTED =
|
|
980
|
-
T.let(
|
|
981
|
-
:NOT_ATTEMPTED,
|
|
982
|
-
Lithic::Transaction::CardholderAuthentication::VerificationResult::TaggedSymbol
|
|
983
|
-
)
|
|
984
|
-
REJECTED =
|
|
985
|
-
T.let(
|
|
986
|
-
:REJECTED,
|
|
987
|
-
Lithic::Transaction::CardholderAuthentication::VerificationResult::TaggedSymbol
|
|
988
|
-
)
|
|
989
|
-
SUCCESS =
|
|
990
|
-
T.let(
|
|
991
|
-
:SUCCESS,
|
|
992
|
-
Lithic::Transaction::CardholderAuthentication::VerificationResult::TaggedSymbol
|
|
993
|
-
)
|
|
994
|
-
|
|
995
|
-
sig do
|
|
996
|
-
override.returns(
|
|
997
|
-
T::Array[
|
|
998
|
-
Lithic::Transaction::CardholderAuthentication::VerificationResult::TaggedSymbol
|
|
999
|
-
]
|
|
1000
|
-
)
|
|
1001
|
-
end
|
|
1002
|
-
def self.values
|
|
1003
|
-
end
|
|
1004
|
-
end
|
|
1005
|
-
|
|
1006
|
-
# Indicates the method used to authenticate the cardholder.
|
|
1007
|
-
module AuthenticationMethod
|
|
1008
|
-
extend Lithic::Internal::Type::Enum
|
|
1009
|
-
|
|
1010
|
-
TaggedSymbol =
|
|
1011
|
-
T.type_alias do
|
|
1012
|
-
T.all(
|
|
1013
|
-
Symbol,
|
|
1014
|
-
Lithic::Transaction::CardholderAuthentication::AuthenticationMethod
|
|
1015
|
-
)
|
|
1016
|
-
end
|
|
1017
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
1018
|
-
|
|
1019
|
-
FRICTIONLESS =
|
|
1020
|
-
T.let(
|
|
1021
|
-
:FRICTIONLESS,
|
|
1022
|
-
Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol
|
|
1023
|
-
)
|
|
1024
|
-
CHALLENGE =
|
|
1025
|
-
T.let(
|
|
1026
|
-
:CHALLENGE,
|
|
1027
|
-
Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol
|
|
1028
|
-
)
|
|
1029
|
-
NONE =
|
|
1030
|
-
T.let(
|
|
1031
|
-
:NONE,
|
|
1032
|
-
Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol
|
|
1033
|
-
)
|
|
1034
|
-
|
|
1035
|
-
sig do
|
|
1036
|
-
override.returns(
|
|
1037
|
-
T::Array[
|
|
1038
|
-
Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol
|
|
1039
|
-
]
|
|
1040
|
-
)
|
|
1041
|
-
end
|
|
1042
|
-
def self.values
|
|
1043
|
-
end
|
|
1044
|
-
end
|
|
1045
|
-
end
|
|
1046
|
-
|
|
1047
|
-
class Merchant < Lithic::Internal::Type::BaseModel
|
|
1048
|
-
OrHash =
|
|
1049
|
-
T.type_alias do
|
|
1050
|
-
T.any(Lithic::Transaction::Merchant, Lithic::Internal::AnyHash)
|
|
1051
|
-
end
|
|
1052
|
-
|
|
1053
|
-
# Unique alphanumeric identifier for the payment card acceptor (merchant).
|
|
1054
|
-
sig { returns(String) }
|
|
1055
|
-
attr_accessor :acceptor_id
|
|
1056
|
-
|
|
1057
|
-
# Unique numeric identifier of the acquiring institution.
|
|
1058
|
-
sig { returns(String) }
|
|
1059
|
-
attr_accessor :acquiring_institution_id
|
|
1060
|
-
|
|
1061
|
-
# City of card acceptor. Note that in many cases, particularly in card-not-present
|
|
1062
|
-
# transactions, merchants may send through a phone number or URL in this field.
|
|
1063
|
-
sig { returns(String) }
|
|
1064
|
-
attr_accessor :city
|
|
1065
|
-
|
|
1066
|
-
# Country or entity of card acceptor. Possible values are: (1) all ISO 3166-1
|
|
1067
|
-
# alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for Netherlands Antilles.
|
|
1068
|
-
sig { returns(String) }
|
|
1069
|
-
attr_accessor :country
|
|
1070
|
-
|
|
1071
|
-
# Short description of card acceptor.
|
|
1072
|
-
sig { returns(String) }
|
|
1073
|
-
attr_accessor :descriptor
|
|
1074
|
-
|
|
1075
|
-
# Merchant category code (MCC). A four-digit number listed in ISO 18245. An MCC is
|
|
1076
|
-
# used to classify a business by the types of goods or services it provides.
|
|
1077
|
-
sig { returns(String) }
|
|
1078
|
-
attr_accessor :mcc
|
|
1079
|
-
|
|
1080
|
-
# Geographic state of card acceptor.
|
|
1081
|
-
sig { returns(String) }
|
|
1082
|
-
attr_accessor :state
|
|
1083
|
-
|
|
1084
|
-
sig do
|
|
1085
|
-
params(
|
|
1086
|
-
acceptor_id: String,
|
|
1087
|
-
acquiring_institution_id: String,
|
|
1088
|
-
city: String,
|
|
1089
|
-
country: String,
|
|
1090
|
-
descriptor: String,
|
|
1091
|
-
mcc: String,
|
|
1092
|
-
state: String
|
|
1093
|
-
).returns(T.attached_class)
|
|
1094
|
-
end
|
|
1095
|
-
def self.new(
|
|
1096
|
-
# Unique alphanumeric identifier for the payment card acceptor (merchant).
|
|
1097
|
-
acceptor_id:,
|
|
1098
|
-
# Unique numeric identifier of the acquiring institution.
|
|
1099
|
-
acquiring_institution_id:,
|
|
1100
|
-
# City of card acceptor. Note that in many cases, particularly in card-not-present
|
|
1101
|
-
# transactions, merchants may send through a phone number or URL in this field.
|
|
1102
|
-
city:,
|
|
1103
|
-
# Country or entity of card acceptor. Possible values are: (1) all ISO 3166-1
|
|
1104
|
-
# alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for Netherlands Antilles.
|
|
1105
|
-
country:,
|
|
1106
|
-
# Short description of card acceptor.
|
|
1107
|
-
descriptor:,
|
|
1108
|
-
# Merchant category code (MCC). A four-digit number listed in ISO 18245. An MCC is
|
|
1109
|
-
# used to classify a business by the types of goods or services it provides.
|
|
1110
|
-
mcc:,
|
|
1111
|
-
# Geographic state of card acceptor.
|
|
1112
|
-
state:
|
|
1113
|
-
)
|
|
1114
|
-
end
|
|
1115
|
-
|
|
1116
|
-
sig do
|
|
1117
|
-
override.returns(
|
|
1118
|
-
{
|
|
1119
|
-
acceptor_id: String,
|
|
1120
|
-
acquiring_institution_id: String,
|
|
1121
|
-
city: String,
|
|
1122
|
-
country: String,
|
|
1123
|
-
descriptor: String,
|
|
1124
|
-
mcc: String,
|
|
1125
|
-
state: String
|
|
1126
|
-
}
|
|
1127
|
-
)
|
|
1128
|
-
end
|
|
1129
|
-
def to_hash
|
|
1130
|
-
end
|
|
1131
821
|
end
|
|
1132
822
|
|
|
1133
823
|
# Card network of the authorization. Value is `UNKNOWN` when Lithic cannot
|