lithic 0.1.0.pre.alpha.56 → 0.1.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 +33 -0
- data/README.md +1 -1
- data/lib/lithic/client.rb +8 -0
- 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/auth_rule.rb +208 -49
- data/lib/lithic/models/auth_rules/auth_rule_condition.rb +2 -2
- data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +2 -2
- data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +2 -2
- data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +2 -2
- data/lib/lithic/models/auth_rules/conditional_operation.rb +5 -0
- data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +19 -2
- data/lib/lithic/models/auth_rules/conditional_value.rb +4 -1
- data/lib/lithic/models/auth_rules/event_stream.rb +21 -0
- data/lib/lithic/models/auth_rules/v2_create_params.rb +3 -17
- data/lib/lithic/models/auth_rules/v2_list_params.rb +16 -19
- data/lib/lithic/models/card_bulk_order.rb +106 -0
- data/lib/lithic/models/card_bulk_order_create_params.rb +52 -0
- data/lib/lithic/models/card_bulk_order_list_params.rb +61 -0
- data/lib/lithic/models/card_bulk_order_retrieve_params.rb +14 -0
- data/lib/lithic/models/card_bulk_order_update_params.rb +32 -0
- data/lib/lithic/models/card_convert_physical_params.rb +3 -0
- data/lib/lithic/models/card_create_params.rb +14 -1
- data/lib/lithic/models/card_program.rb +10 -10
- data/lib/lithic/models/card_reissue_params.rb +3 -0
- data/lib/lithic/models/card_renew_params.rb +3 -0
- data/lib/lithic/models/card_web_provision_params.rb +32 -1
- data/lib/lithic/models/card_web_provision_response.rb +98 -60
- data/lib/lithic/models/cardholder_authentication.rb +132 -0
- data/lib/lithic/models/device.rb +37 -0
- data/lib/lithic/models/digital_wallet_token_metadata.rb +141 -0
- data/lib/lithic/models/{external_bank_account_unpause_response.rb → external_bank_account.rb} +15 -16
- data/lib/lithic/models/external_payment.rb +12 -0
- data/lib/lithic/models/external_payment_create_params.rb +2 -0
- data/lib/lithic/models/external_payment_list_params.rb +2 -0
- data/lib/lithic/models/financial_account_balance.rb +112 -0
- data/lib/lithic/models/financial_accounts/statement.rb +9 -9
- data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +18 -0
- data/lib/lithic/models/financial_event.rb +16 -0
- data/lib/lithic/models/{funding_event_retrieve_response.rb → funding_event.rb} +9 -10
- data/lib/lithic/models/internal_transaction.rb +166 -0
- data/lib/lithic/models/management_operation_create_params.rb +6 -0
- data/lib/lithic/models/management_operation_transaction.rb +6 -0
- data/lib/lithic/models/network_total.rb +169 -0
- data/lib/lithic/models/non_pci_card.rb +10 -1
- data/lib/lithic/models/payment.rb +11 -1
- data/lib/lithic/models/payment_create_params.rb +10 -1
- data/lib/lithic/models/three_ds_authentication.rb +1259 -0
- data/lib/lithic/models/token_info.rb +42 -0
- data/lib/lithic/models/tokenization.rb +9 -111
- data/lib/lithic/models/tokenization_decline_reason.rb +27 -0
- data/lib/lithic/models/tokenization_rule_result.rb +61 -0
- data/lib/lithic/models/tokenization_tfa_reason.rb +29 -0
- data/lib/lithic/models/transaction.rb +6 -174
- data/lib/lithic/models/wallet_decisioning_info.rb +44 -0
- data/lib/lithic/models.rb +38 -0
- data/lib/lithic/resources/auth_rules/v2.rb +17 -15
- data/lib/lithic/resources/card_bulk_orders.rb +127 -0
- data/lib/lithic/resources/cards/balances.rb +2 -2
- data/lib/lithic/resources/cards.rb +14 -3
- data/lib/lithic/resources/external_bank_accounts.rb +4 -4
- data/lib/lithic/resources/financial_accounts/balances.rb +2 -2
- data/lib/lithic/resources/funding_events.rb +4 -4
- data/lib/lithic/resources/internal_transaction.rb +14 -0
- data/lib/lithic/resources/reports/settlement/network_totals.rb +4 -4
- data/lib/lithic/resources/three_ds/authentication.rb +2 -2
- data/lib/lithic/resources/tokenizations.rb +4 -4
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +23 -17
- data/manifest.yaml +1 -0
- data/rbi/lithic/client.rbi +6 -0
- 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/auth_rule.rbi +339 -80
- data/rbi/lithic/models/auth_rules/conditional_operation.rbi +25 -0
- data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +29 -0
- data/rbi/lithic/models/auth_rules/conditional_value.rbi +2 -1
- data/rbi/lithic/models/auth_rules/event_stream.rbi +44 -0
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +4 -60
- data/rbi/lithic/models/auth_rules/v2_list_params.rbi +27 -59
- data/rbi/lithic/models/card_bulk_order.rbi +141 -0
- data/rbi/lithic/models/card_bulk_order_create_params.rbi +92 -0
- data/rbi/lithic/models/card_bulk_order_list_params.rbi +98 -0
- data/rbi/lithic/models/card_bulk_order_retrieve_params.rbi +27 -0
- data/rbi/lithic/models/card_bulk_order_update_params.rbi +68 -0
- data/rbi/lithic/models/card_convert_physical_params.rbi +8 -0
- data/rbi/lithic/models/card_create_params.rbi +23 -0
- data/rbi/lithic/models/card_program.rbi +10 -13
- data/rbi/lithic/models/card_reissue_params.rbi +8 -0
- data/rbi/lithic/models/card_renew_params.rbi +8 -0
- data/rbi/lithic/models/card_web_provision_params.rbi +44 -0
- data/rbi/lithic/models/card_web_provision_response.rbi +182 -102
- data/rbi/lithic/models/cardholder_authentication.rbi +296 -0
- data/rbi/lithic/models/device.rbi +54 -0
- data/rbi/lithic/models/digital_wallet_token_metadata.rbi +290 -0
- data/rbi/lithic/models/{external_bank_account_unpause_response.rbi → external_bank_account.rbi} +26 -75
- data/rbi/lithic/models/external_payment.rbi +57 -0
- data/rbi/lithic/models/external_payment_create_params.rbi +10 -0
- data/rbi/lithic/models/external_payment_list_params.rbi +10 -0
- data/rbi/lithic/models/financial_account_balance.rbi +144 -0
- data/rbi/lithic/models/financial_accounts/statement.rbi +9 -9
- data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +90 -0
- data/rbi/lithic/models/financial_event.rbi +60 -0
- data/rbi/lithic/models/{funding_event_list_response.rbi → funding_event.rbi} +13 -35
- data/rbi/lithic/models/internal_transaction.rbi +277 -0
- data/rbi/lithic/models/management_operation_create_params.rbi +30 -0
- data/rbi/lithic/models/management_operation_transaction.rbi +30 -0
- data/rbi/lithic/models/network_total.rbi +226 -0
- data/rbi/lithic/models/non_pci_card.rbi +10 -0
- data/rbi/lithic/models/payment.rbi +12 -0
- data/rbi/lithic/models/payment_create_params.rbi +15 -1
- data/rbi/lithic/models/three_ds_authentication.rbi +2432 -0
- data/rbi/lithic/models/token_info.rbi +70 -0
- data/rbi/lithic/models/tokenization.rbi +12 -335
- data/rbi/lithic/models/tokenization_decline_reason.rbi +73 -0
- data/rbi/lithic/models/tokenization_rule_result.rbi +96 -0
- data/rbi/lithic/models/tokenization_tfa_reason.rbi +74 -0
- data/rbi/lithic/models/transaction.rbi +8 -410
- data/rbi/lithic/models/wallet_decisioning_info.rbi +63 -0
- data/rbi/lithic/models.rbi +38 -0
- data/rbi/lithic/resources/auth_rules/v2.rbi +15 -15
- data/rbi/lithic/resources/card_bulk_orders.rbi +101 -0
- data/rbi/lithic/resources/cards/balances.rbi +1 -3
- data/rbi/lithic/resources/cards.rbi +22 -1
- data/rbi/lithic/resources/external_bank_accounts.rbi +2 -2
- data/rbi/lithic/resources/financial_accounts/balances.rbi +1 -3
- data/rbi/lithic/resources/funding_events.rbi +2 -4
- data/rbi/lithic/resources/internal_transaction.rbi +12 -0
- data/rbi/lithic/resources/reports/settlement/network_totals.rbi +2 -8
- data/rbi/lithic/resources/three_ds/authentication.rbi +1 -1
- data/rbi/lithic/resources/tokenizations.rbi +2 -2
- data/sig/lithic/client.rbs +4 -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/auth_rule.rbs +135 -36
- data/sig/lithic/models/auth_rules/conditional_operation.rbs +10 -0
- data/sig/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbs +2 -0
- data/sig/lithic/models/auth_rules/conditional_value.rbs +1 -1
- data/sig/lithic/models/auth_rules/event_stream.rbs +24 -0
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +6 -25
- data/sig/lithic/models/auth_rules/v2_list_params.rbs +15 -25
- data/sig/lithic/models/card_bulk_order.rbs +76 -0
- data/sig/lithic/models/card_bulk_order_create_params.rbs +46 -0
- data/sig/lithic/models/card_bulk_order_list_params.rbs +56 -0
- data/sig/lithic/models/card_bulk_order_retrieve_params.rbs +15 -0
- data/sig/lithic/models/card_bulk_order_update_params.rbs +34 -0
- data/sig/lithic/models/card_convert_physical_params.rbs +2 -0
- data/sig/lithic/models/card_create_params.rbs +9 -0
- data/sig/lithic/models/card_program.rbs +5 -7
- data/sig/lithic/models/card_reissue_params.rbs +2 -0
- data/sig/lithic/models/card_renew_params.rbs +2 -0
- data/sig/lithic/models/card_web_provision_params.rbs +26 -2
- data/sig/lithic/models/card_web_provision_response.rbs +81 -51
- data/sig/lithic/models/cardholder_authentication.rbs +98 -0
- data/sig/lithic/models/device.rbs +21 -0
- data/sig/lithic/models/digital_wallet_token_metadata.rbs +119 -0
- data/sig/lithic/models/{external_bank_account_unpause_response.rbs → external_bank_account.rbs} +17 -17
- data/sig/lithic/models/external_payment.rbs +28 -1
- data/sig/lithic/models/external_payment_create_params.rbs +8 -1
- data/sig/lithic/models/external_payment_list_params.rbs +8 -1
- data/sig/lithic/models/financial_account_balance.rbs +78 -0
- data/sig/lithic/models/financial_accounts/statement.rbs +12 -12
- data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +36 -0
- data/sig/lithic/models/financial_event.rbs +32 -0
- data/sig/lithic/models/{funding_event_list_response.rbs → funding_event.rbs} +11 -11
- data/sig/lithic/models/internal_transaction.rbs +165 -0
- data/sig/lithic/models/management_operation_create_params.rbs +12 -0
- data/sig/lithic/models/management_operation_transaction.rbs +12 -0
- data/sig/lithic/models/network_total.rbs +125 -0
- data/sig/lithic/models/non_pci_card.rbs +5 -0
- data/sig/lithic/models/payment.rbs +9 -0
- data/sig/lithic/models/payment_create_params.rbs +7 -0
- data/sig/lithic/models/three_ds_authentication.rbs +911 -0
- data/sig/lithic/models/token_info.rbs +36 -0
- data/sig/lithic/models/tokenization.rbs +18 -137
- data/sig/lithic/models/tokenization_decline_reason.rbs +38 -0
- data/sig/lithic/models/tokenization_rule_result.rbs +48 -0
- data/sig/lithic/models/tokenization_tfa_reason.rbs +42 -0
- data/sig/lithic/models/transaction.rbs +8 -140
- data/sig/lithic/models/wallet_decisioning_info.rbs +35 -0
- data/sig/lithic/models.rbs +38 -0
- data/sig/lithic/resources/auth_rules/v2.rbs +9 -8
- data/sig/lithic/resources/card_bulk_orders.rbs +34 -0
- data/sig/lithic/resources/cards/balances.rbs +1 -1
- data/sig/lithic/resources/cards.rbs +5 -1
- data/sig/lithic/resources/external_bank_accounts.rbs +2 -2
- data/sig/lithic/resources/financial_accounts/balances.rbs +1 -1
- data/sig/lithic/resources/funding_events.rbs +2 -2
- data/sig/lithic/resources/internal_transaction.rbs +7 -0
- data/sig/lithic/resources/reports/settlement/network_totals.rbs +2 -2
- data/sig/lithic/resources/three_ds/authentication.rbs +1 -1
- data/sig/lithic/resources/tokenizations.rbs +2 -2
- metadata +70 -55
- data/lib/lithic/models/auth_rules/v2_create_response.rb +0 -280
- data/lib/lithic/models/auth_rules/v2_draft_response.rb +0 -279
- data/lib/lithic/models/auth_rules/v2_list_response.rb +0 -279
- data/lib/lithic/models/auth_rules/v2_promote_response.rb +0 -280
- data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +0 -284
- data/lib/lithic/models/auth_rules/v2_update_response.rb +0 -280
- data/lib/lithic/models/cards/balance_list_response.rb +0 -115
- data/lib/lithic/models/external_bank_account_retry_prenote_response.rb +0 -242
- data/lib/lithic/models/financial_accounts/balance_list_response.rb +0 -115
- data/lib/lithic/models/funding_event_list_response.rb +0 -108
- data/lib/lithic/models/reports/settlement/network_total_list_response.rb +0 -176
- data/lib/lithic/models/reports/settlement/network_total_retrieve_response.rb +0 -176
- data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +0 -1288
- data/lib/lithic/models/tokenization_simulate_response.rb +0 -16
- data/lib/lithic/models/tokenization_update_digital_card_art_response.rb +0 -16
- data/rbi/lithic/models/auth_rules/v2_create_response.rbi +0 -522
- data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +0 -522
- data/rbi/lithic/models/auth_rules/v2_list_response.rbi +0 -518
- data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +0 -525
- data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +0 -528
- data/rbi/lithic/models/auth_rules/v2_update_response.rbi +0 -522
- data/rbi/lithic/models/cards/balance_list_response.rbi +0 -170
- data/rbi/lithic/models/external_bank_account_retry_prenote_response.rbi +0 -375
- data/rbi/lithic/models/financial_accounts/balance_list_response.rbi +0 -174
- data/rbi/lithic/models/funding_event_retrieve_response.rbi +0 -184
- data/rbi/lithic/models/reports/settlement/network_total_list_response.rbi +0 -280
- data/rbi/lithic/models/reports/settlement/network_total_retrieve_response.rbi +0 -280
- data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +0 -2580
- data/rbi/lithic/models/tokenization_simulate_response.rbi +0 -33
- data/rbi/lithic/models/tokenization_update_digital_card_art_response.rbi +0 -31
- data/sig/lithic/models/auth_rules/v2_create_response.rbs +0 -205
- data/sig/lithic/models/auth_rules/v2_draft_response.rbs +0 -205
- data/sig/lithic/models/auth_rules/v2_list_response.rbs +0 -205
- data/sig/lithic/models/auth_rules/v2_promote_response.rbs +0 -205
- data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +0 -205
- data/sig/lithic/models/auth_rules/v2_update_response.rbs +0 -205
- data/sig/lithic/models/cards/balance_list_response.rbs +0 -80
- data/sig/lithic/models/external_bank_account_retry_prenote_response.rbs +0 -162
- data/sig/lithic/models/financial_accounts/balance_list_response.rbs +0 -80
- data/sig/lithic/models/funding_event_retrieve_response.rbs +0 -85
- data/sig/lithic/models/reports/settlement/network_total_list_response.rbs +0 -129
- data/sig/lithic/models/reports/settlement/network_total_retrieve_response.rbs +0 -129
- data/sig/lithic/models/three_ds/authentication_retrieve_response.rbs +0 -913
- data/sig/lithic/models/tokenization_simulate_response.rbs +0 -18
- data/sig/lithic/models/tokenization_update_digital_card_art_response.rbs +0 -16
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
# Reason code for why a tokenization required two-factor authentication
|
|
6
|
+
module TokenizationTfaReason
|
|
7
|
+
extend Lithic::Internal::Type::Enum
|
|
8
|
+
|
|
9
|
+
TaggedSymbol =
|
|
10
|
+
T.type_alias { T.all(Symbol, Lithic::TokenizationTfaReason) }
|
|
11
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
12
|
+
|
|
13
|
+
WALLET_RECOMMENDED_TFA =
|
|
14
|
+
T.let(
|
|
15
|
+
:WALLET_RECOMMENDED_TFA,
|
|
16
|
+
Lithic::TokenizationTfaReason::TaggedSymbol
|
|
17
|
+
)
|
|
18
|
+
SUSPICIOUS_ACTIVITY =
|
|
19
|
+
T.let(:SUSPICIOUS_ACTIVITY, Lithic::TokenizationTfaReason::TaggedSymbol)
|
|
20
|
+
DEVICE_RECENTLY_LOST =
|
|
21
|
+
T.let(
|
|
22
|
+
:DEVICE_RECENTLY_LOST,
|
|
23
|
+
Lithic::TokenizationTfaReason::TaggedSymbol
|
|
24
|
+
)
|
|
25
|
+
TOO_MANY_RECENT_ATTEMPTS =
|
|
26
|
+
T.let(
|
|
27
|
+
:TOO_MANY_RECENT_ATTEMPTS,
|
|
28
|
+
Lithic::TokenizationTfaReason::TaggedSymbol
|
|
29
|
+
)
|
|
30
|
+
TOO_MANY_RECENT_TOKENS =
|
|
31
|
+
T.let(
|
|
32
|
+
:TOO_MANY_RECENT_TOKENS,
|
|
33
|
+
Lithic::TokenizationTfaReason::TaggedSymbol
|
|
34
|
+
)
|
|
35
|
+
TOO_MANY_DIFFERENT_CARDHOLDERS =
|
|
36
|
+
T.let(
|
|
37
|
+
:TOO_MANY_DIFFERENT_CARDHOLDERS,
|
|
38
|
+
Lithic::TokenizationTfaReason::TaggedSymbol
|
|
39
|
+
)
|
|
40
|
+
OUTSIDE_HOME_TERRITORY =
|
|
41
|
+
T.let(
|
|
42
|
+
:OUTSIDE_HOME_TERRITORY,
|
|
43
|
+
Lithic::TokenizationTfaReason::TaggedSymbol
|
|
44
|
+
)
|
|
45
|
+
HAS_SUSPENDED_TOKENS =
|
|
46
|
+
T.let(
|
|
47
|
+
:HAS_SUSPENDED_TOKENS,
|
|
48
|
+
Lithic::TokenizationTfaReason::TaggedSymbol
|
|
49
|
+
)
|
|
50
|
+
HIGH_RISK = T.let(:HIGH_RISK, Lithic::TokenizationTfaReason::TaggedSymbol)
|
|
51
|
+
ACCOUNT_SCORE_LOW =
|
|
52
|
+
T.let(:ACCOUNT_SCORE_LOW, Lithic::TokenizationTfaReason::TaggedSymbol)
|
|
53
|
+
DEVICE_SCORE_LOW =
|
|
54
|
+
T.let(:DEVICE_SCORE_LOW, Lithic::TokenizationTfaReason::TaggedSymbol)
|
|
55
|
+
CARD_STATE_TFA =
|
|
56
|
+
T.let(:CARD_STATE_TFA, Lithic::TokenizationTfaReason::TaggedSymbol)
|
|
57
|
+
HARDCODED_TFA =
|
|
58
|
+
T.let(:HARDCODED_TFA, Lithic::TokenizationTfaReason::TaggedSymbol)
|
|
59
|
+
CUSTOMER_RULE_TFA =
|
|
60
|
+
T.let(:CUSTOMER_RULE_TFA, Lithic::TokenizationTfaReason::TaggedSymbol)
|
|
61
|
+
DEVICE_HOST_CARD_EMULATION =
|
|
62
|
+
T.let(
|
|
63
|
+
:DEVICE_HOST_CARD_EMULATION,
|
|
64
|
+
Lithic::TokenizationTfaReason::TaggedSymbol
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
sig do
|
|
68
|
+
override.returns(T::Array[Lithic::TokenizationTfaReason::TaggedSymbol])
|
|
69
|
+
end
|
|
70
|
+
def self.values
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
@@ -58,13 +58,13 @@ module Lithic
|
|
|
58
58
|
sig { returns(String) }
|
|
59
59
|
attr_accessor :card_token
|
|
60
60
|
|
|
61
|
-
sig { returns(T.nilable(Lithic::
|
|
61
|
+
sig { returns(T.nilable(Lithic::CardholderAuthentication)) }
|
|
62
62
|
attr_reader :cardholder_authentication
|
|
63
63
|
|
|
64
64
|
sig do
|
|
65
65
|
params(
|
|
66
66
|
cardholder_authentication:
|
|
67
|
-
T.nilable(Lithic::
|
|
67
|
+
T.nilable(Lithic::CardholderAuthentication::OrHash)
|
|
68
68
|
).void
|
|
69
69
|
end
|
|
70
70
|
attr_writer :cardholder_authentication
|
|
@@ -124,14 +124,10 @@ module Lithic
|
|
|
124
124
|
sig { returns(Lithic::Transaction::Status::TaggedSymbol) }
|
|
125
125
|
attr_accessor :status
|
|
126
126
|
|
|
127
|
-
sig { returns(T.nilable(Lithic::
|
|
127
|
+
sig { returns(T.nilable(Lithic::TokenInfo)) }
|
|
128
128
|
attr_reader :token_info
|
|
129
129
|
|
|
130
|
-
sig
|
|
131
|
-
params(
|
|
132
|
-
token_info: T.nilable(Lithic::Transaction::TokenInfo::OrHash)
|
|
133
|
-
).void
|
|
134
|
-
end
|
|
130
|
+
sig { params(token_info: T.nilable(Lithic::TokenInfo::OrHash)).void }
|
|
135
131
|
attr_writer :token_info
|
|
136
132
|
|
|
137
133
|
# Date and time when the transaction last updated. UTC time zone.
|
|
@@ -157,7 +153,7 @@ module Lithic
|
|
|
157
153
|
avs: T.nilable(Lithic::Transaction::Avs::OrHash),
|
|
158
154
|
card_token: String,
|
|
159
155
|
cardholder_authentication:
|
|
160
|
-
T.nilable(Lithic::
|
|
156
|
+
T.nilable(Lithic::CardholderAuthentication::OrHash),
|
|
161
157
|
created: Time,
|
|
162
158
|
financial_account_token: T.nilable(String),
|
|
163
159
|
merchant: Lithic::Merchant::OrHash,
|
|
@@ -170,7 +166,7 @@ module Lithic
|
|
|
170
166
|
result: Lithic::Transaction::Result::OrSymbol,
|
|
171
167
|
settled_amount: Integer,
|
|
172
168
|
status: Lithic::Transaction::Status::OrSymbol,
|
|
173
|
-
token_info: T.nilable(Lithic::
|
|
169
|
+
token_info: T.nilable(Lithic::TokenInfo::OrHash),
|
|
174
170
|
updated: Time,
|
|
175
171
|
events: T::Array[Lithic::Transaction::Event::OrHash]
|
|
176
172
|
).returns(T.attached_class)
|
|
@@ -249,7 +245,7 @@ module Lithic
|
|
|
249
245
|
avs: T.nilable(Lithic::Transaction::Avs),
|
|
250
246
|
card_token: String,
|
|
251
247
|
cardholder_authentication:
|
|
252
|
-
T.nilable(Lithic::
|
|
248
|
+
T.nilable(Lithic::CardholderAuthentication),
|
|
253
249
|
created: Time,
|
|
254
250
|
financial_account_token: T.nilable(String),
|
|
255
251
|
merchant: Lithic::Merchant,
|
|
@@ -262,7 +258,7 @@ module Lithic
|
|
|
262
258
|
result: Lithic::Transaction::Result::TaggedSymbol,
|
|
263
259
|
settled_amount: Integer,
|
|
264
260
|
status: Lithic::Transaction::Status::TaggedSymbol,
|
|
265
|
-
token_info: T.nilable(Lithic::
|
|
261
|
+
token_info: T.nilable(Lithic::TokenInfo),
|
|
266
262
|
updated: Time,
|
|
267
263
|
events: T::Array[Lithic::Transaction::Event]
|
|
268
264
|
}
|
|
@@ -516,310 +512,6 @@ module Lithic
|
|
|
516
512
|
end
|
|
517
513
|
end
|
|
518
514
|
|
|
519
|
-
class CardholderAuthentication < Lithic::Internal::Type::BaseModel
|
|
520
|
-
OrHash =
|
|
521
|
-
T.type_alias do
|
|
522
|
-
T.any(
|
|
523
|
-
Lithic::Transaction::CardholderAuthentication,
|
|
524
|
-
Lithic::Internal::AnyHash
|
|
525
|
-
)
|
|
526
|
-
end
|
|
527
|
-
|
|
528
|
-
# Indicates the method used to authenticate the cardholder.
|
|
529
|
-
sig do
|
|
530
|
-
returns(
|
|
531
|
-
Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol
|
|
532
|
-
)
|
|
533
|
-
end
|
|
534
|
-
attr_accessor :authentication_method
|
|
535
|
-
|
|
536
|
-
# Indicates the outcome of the 3DS authentication process.
|
|
537
|
-
sig do
|
|
538
|
-
returns(
|
|
539
|
-
Lithic::Transaction::CardholderAuthentication::AuthenticationResult::TaggedSymbol
|
|
540
|
-
)
|
|
541
|
-
end
|
|
542
|
-
attr_accessor :authentication_result
|
|
543
|
-
|
|
544
|
-
# Indicates which party made the 3DS authentication decision.
|
|
545
|
-
sig do
|
|
546
|
-
returns(
|
|
547
|
-
Lithic::Transaction::CardholderAuthentication::DecisionMadeBy::TaggedSymbol
|
|
548
|
-
)
|
|
549
|
-
end
|
|
550
|
-
attr_accessor :decision_made_by
|
|
551
|
-
|
|
552
|
-
# Indicates whether chargeback liability shift applies to the transaction.
|
|
553
|
-
# Possible enum values:
|
|
554
|
-
#
|
|
555
|
-
# - `3DS_AUTHENTICATED`: The transaction was fully authenticated through a 3-D
|
|
556
|
-
# Secure flow, chargeback liability shift applies.
|
|
557
|
-
# - `NONE`: Chargeback liability shift has not shifted to the issuer, i.e. the
|
|
558
|
-
# merchant is liable.
|
|
559
|
-
# - `TOKEN_AUTHENTICATED`: The transaction was a tokenized payment with validated
|
|
560
|
-
# cryptography, possibly recurring. Chargeback liability shift to the issuer
|
|
561
|
-
# applies.
|
|
562
|
-
sig do
|
|
563
|
-
returns(
|
|
564
|
-
Lithic::Transaction::CardholderAuthentication::LiabilityShift::TaggedSymbol
|
|
565
|
-
)
|
|
566
|
-
end
|
|
567
|
-
attr_accessor :liability_shift
|
|
568
|
-
|
|
569
|
-
# Unique identifier you can use to match a given 3DS authentication (available via
|
|
570
|
-
# the three_ds_authentication.created event webhook) and the transaction. Note
|
|
571
|
-
# that in cases where liability shift does not occur, this token is matched to the
|
|
572
|
-
# transaction on a best-effort basis.
|
|
573
|
-
sig { returns(T.nilable(String)) }
|
|
574
|
-
attr_accessor :three_ds_authentication_token
|
|
575
|
-
|
|
576
|
-
sig do
|
|
577
|
-
params(
|
|
578
|
-
authentication_method:
|
|
579
|
-
Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::OrSymbol,
|
|
580
|
-
authentication_result:
|
|
581
|
-
Lithic::Transaction::CardholderAuthentication::AuthenticationResult::OrSymbol,
|
|
582
|
-
decision_made_by:
|
|
583
|
-
Lithic::Transaction::CardholderAuthentication::DecisionMadeBy::OrSymbol,
|
|
584
|
-
liability_shift:
|
|
585
|
-
Lithic::Transaction::CardholderAuthentication::LiabilityShift::OrSymbol,
|
|
586
|
-
three_ds_authentication_token: T.nilable(String)
|
|
587
|
-
).returns(T.attached_class)
|
|
588
|
-
end
|
|
589
|
-
def self.new(
|
|
590
|
-
# Indicates the method used to authenticate the cardholder.
|
|
591
|
-
authentication_method:,
|
|
592
|
-
# Indicates the outcome of the 3DS authentication process.
|
|
593
|
-
authentication_result:,
|
|
594
|
-
# Indicates which party made the 3DS authentication decision.
|
|
595
|
-
decision_made_by:,
|
|
596
|
-
# Indicates whether chargeback liability shift applies to the transaction.
|
|
597
|
-
# Possible enum values:
|
|
598
|
-
#
|
|
599
|
-
# - `3DS_AUTHENTICATED`: The transaction was fully authenticated through a 3-D
|
|
600
|
-
# Secure flow, chargeback liability shift applies.
|
|
601
|
-
# - `NONE`: Chargeback liability shift has not shifted to the issuer, i.e. the
|
|
602
|
-
# merchant is liable.
|
|
603
|
-
# - `TOKEN_AUTHENTICATED`: The transaction was a tokenized payment with validated
|
|
604
|
-
# cryptography, possibly recurring. Chargeback liability shift to the issuer
|
|
605
|
-
# applies.
|
|
606
|
-
liability_shift:,
|
|
607
|
-
# Unique identifier you can use to match a given 3DS authentication (available via
|
|
608
|
-
# the three_ds_authentication.created event webhook) and the transaction. Note
|
|
609
|
-
# that in cases where liability shift does not occur, this token is matched to the
|
|
610
|
-
# transaction on a best-effort basis.
|
|
611
|
-
three_ds_authentication_token:
|
|
612
|
-
)
|
|
613
|
-
end
|
|
614
|
-
|
|
615
|
-
sig do
|
|
616
|
-
override.returns(
|
|
617
|
-
{
|
|
618
|
-
authentication_method:
|
|
619
|
-
Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol,
|
|
620
|
-
authentication_result:
|
|
621
|
-
Lithic::Transaction::CardholderAuthentication::AuthenticationResult::TaggedSymbol,
|
|
622
|
-
decision_made_by:
|
|
623
|
-
Lithic::Transaction::CardholderAuthentication::DecisionMadeBy::TaggedSymbol,
|
|
624
|
-
liability_shift:
|
|
625
|
-
Lithic::Transaction::CardholderAuthentication::LiabilityShift::TaggedSymbol,
|
|
626
|
-
three_ds_authentication_token: T.nilable(String)
|
|
627
|
-
}
|
|
628
|
-
)
|
|
629
|
-
end
|
|
630
|
-
def to_hash
|
|
631
|
-
end
|
|
632
|
-
|
|
633
|
-
# Indicates the method used to authenticate the cardholder.
|
|
634
|
-
module AuthenticationMethod
|
|
635
|
-
extend Lithic::Internal::Type::Enum
|
|
636
|
-
|
|
637
|
-
TaggedSymbol =
|
|
638
|
-
T.type_alias do
|
|
639
|
-
T.all(
|
|
640
|
-
Symbol,
|
|
641
|
-
Lithic::Transaction::CardholderAuthentication::AuthenticationMethod
|
|
642
|
-
)
|
|
643
|
-
end
|
|
644
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
645
|
-
|
|
646
|
-
FRICTIONLESS =
|
|
647
|
-
T.let(
|
|
648
|
-
:FRICTIONLESS,
|
|
649
|
-
Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol
|
|
650
|
-
)
|
|
651
|
-
CHALLENGE =
|
|
652
|
-
T.let(
|
|
653
|
-
:CHALLENGE,
|
|
654
|
-
Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol
|
|
655
|
-
)
|
|
656
|
-
NONE =
|
|
657
|
-
T.let(
|
|
658
|
-
:NONE,
|
|
659
|
-
Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol
|
|
660
|
-
)
|
|
661
|
-
|
|
662
|
-
sig do
|
|
663
|
-
override.returns(
|
|
664
|
-
T::Array[
|
|
665
|
-
Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol
|
|
666
|
-
]
|
|
667
|
-
)
|
|
668
|
-
end
|
|
669
|
-
def self.values
|
|
670
|
-
end
|
|
671
|
-
end
|
|
672
|
-
|
|
673
|
-
# Indicates the outcome of the 3DS authentication process.
|
|
674
|
-
module AuthenticationResult
|
|
675
|
-
extend Lithic::Internal::Type::Enum
|
|
676
|
-
|
|
677
|
-
TaggedSymbol =
|
|
678
|
-
T.type_alias do
|
|
679
|
-
T.all(
|
|
680
|
-
Symbol,
|
|
681
|
-
Lithic::Transaction::CardholderAuthentication::AuthenticationResult
|
|
682
|
-
)
|
|
683
|
-
end
|
|
684
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
685
|
-
|
|
686
|
-
ATTEMPTS =
|
|
687
|
-
T.let(
|
|
688
|
-
:ATTEMPTS,
|
|
689
|
-
Lithic::Transaction::CardholderAuthentication::AuthenticationResult::TaggedSymbol
|
|
690
|
-
)
|
|
691
|
-
DECLINE =
|
|
692
|
-
T.let(
|
|
693
|
-
:DECLINE,
|
|
694
|
-
Lithic::Transaction::CardholderAuthentication::AuthenticationResult::TaggedSymbol
|
|
695
|
-
)
|
|
696
|
-
NONE =
|
|
697
|
-
T.let(
|
|
698
|
-
:NONE,
|
|
699
|
-
Lithic::Transaction::CardholderAuthentication::AuthenticationResult::TaggedSymbol
|
|
700
|
-
)
|
|
701
|
-
SUCCESS =
|
|
702
|
-
T.let(
|
|
703
|
-
:SUCCESS,
|
|
704
|
-
Lithic::Transaction::CardholderAuthentication::AuthenticationResult::TaggedSymbol
|
|
705
|
-
)
|
|
706
|
-
|
|
707
|
-
sig do
|
|
708
|
-
override.returns(
|
|
709
|
-
T::Array[
|
|
710
|
-
Lithic::Transaction::CardholderAuthentication::AuthenticationResult::TaggedSymbol
|
|
711
|
-
]
|
|
712
|
-
)
|
|
713
|
-
end
|
|
714
|
-
def self.values
|
|
715
|
-
end
|
|
716
|
-
end
|
|
717
|
-
|
|
718
|
-
# Indicates which party made the 3DS authentication decision.
|
|
719
|
-
module DecisionMadeBy
|
|
720
|
-
extend Lithic::Internal::Type::Enum
|
|
721
|
-
|
|
722
|
-
TaggedSymbol =
|
|
723
|
-
T.type_alias do
|
|
724
|
-
T.all(
|
|
725
|
-
Symbol,
|
|
726
|
-
Lithic::Transaction::CardholderAuthentication::DecisionMadeBy
|
|
727
|
-
)
|
|
728
|
-
end
|
|
729
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
730
|
-
|
|
731
|
-
CUSTOMER_RULES =
|
|
732
|
-
T.let(
|
|
733
|
-
:CUSTOMER_RULES,
|
|
734
|
-
Lithic::Transaction::CardholderAuthentication::DecisionMadeBy::TaggedSymbol
|
|
735
|
-
)
|
|
736
|
-
CUSTOMER_ENDPOINT =
|
|
737
|
-
T.let(
|
|
738
|
-
:CUSTOMER_ENDPOINT,
|
|
739
|
-
Lithic::Transaction::CardholderAuthentication::DecisionMadeBy::TaggedSymbol
|
|
740
|
-
)
|
|
741
|
-
LITHIC_DEFAULT =
|
|
742
|
-
T.let(
|
|
743
|
-
:LITHIC_DEFAULT,
|
|
744
|
-
Lithic::Transaction::CardholderAuthentication::DecisionMadeBy::TaggedSymbol
|
|
745
|
-
)
|
|
746
|
-
LITHIC_RULES =
|
|
747
|
-
T.let(
|
|
748
|
-
:LITHIC_RULES,
|
|
749
|
-
Lithic::Transaction::CardholderAuthentication::DecisionMadeBy::TaggedSymbol
|
|
750
|
-
)
|
|
751
|
-
NETWORK =
|
|
752
|
-
T.let(
|
|
753
|
-
:NETWORK,
|
|
754
|
-
Lithic::Transaction::CardholderAuthentication::DecisionMadeBy::TaggedSymbol
|
|
755
|
-
)
|
|
756
|
-
UNKNOWN =
|
|
757
|
-
T.let(
|
|
758
|
-
:UNKNOWN,
|
|
759
|
-
Lithic::Transaction::CardholderAuthentication::DecisionMadeBy::TaggedSymbol
|
|
760
|
-
)
|
|
761
|
-
|
|
762
|
-
sig do
|
|
763
|
-
override.returns(
|
|
764
|
-
T::Array[
|
|
765
|
-
Lithic::Transaction::CardholderAuthentication::DecisionMadeBy::TaggedSymbol
|
|
766
|
-
]
|
|
767
|
-
)
|
|
768
|
-
end
|
|
769
|
-
def self.values
|
|
770
|
-
end
|
|
771
|
-
end
|
|
772
|
-
|
|
773
|
-
# Indicates whether chargeback liability shift applies to the transaction.
|
|
774
|
-
# Possible enum values:
|
|
775
|
-
#
|
|
776
|
-
# - `3DS_AUTHENTICATED`: The transaction was fully authenticated through a 3-D
|
|
777
|
-
# Secure flow, chargeback liability shift applies.
|
|
778
|
-
# - `NONE`: Chargeback liability shift has not shifted to the issuer, i.e. the
|
|
779
|
-
# merchant is liable.
|
|
780
|
-
# - `TOKEN_AUTHENTICATED`: The transaction was a tokenized payment with validated
|
|
781
|
-
# cryptography, possibly recurring. Chargeback liability shift to the issuer
|
|
782
|
-
# applies.
|
|
783
|
-
module LiabilityShift
|
|
784
|
-
extend Lithic::Internal::Type::Enum
|
|
785
|
-
|
|
786
|
-
TaggedSymbol =
|
|
787
|
-
T.type_alias do
|
|
788
|
-
T.all(
|
|
789
|
-
Symbol,
|
|
790
|
-
Lithic::Transaction::CardholderAuthentication::LiabilityShift
|
|
791
|
-
)
|
|
792
|
-
end
|
|
793
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
794
|
-
|
|
795
|
-
LIABILITY_SHIFT_3DS_AUTHENTICATED =
|
|
796
|
-
T.let(
|
|
797
|
-
:"3DS_AUTHENTICATED",
|
|
798
|
-
Lithic::Transaction::CardholderAuthentication::LiabilityShift::TaggedSymbol
|
|
799
|
-
)
|
|
800
|
-
TOKEN_AUTHENTICATED =
|
|
801
|
-
T.let(
|
|
802
|
-
:TOKEN_AUTHENTICATED,
|
|
803
|
-
Lithic::Transaction::CardholderAuthentication::LiabilityShift::TaggedSymbol
|
|
804
|
-
)
|
|
805
|
-
NONE =
|
|
806
|
-
T.let(
|
|
807
|
-
:NONE,
|
|
808
|
-
Lithic::Transaction::CardholderAuthentication::LiabilityShift::TaggedSymbol
|
|
809
|
-
)
|
|
810
|
-
|
|
811
|
-
sig do
|
|
812
|
-
override.returns(
|
|
813
|
-
T::Array[
|
|
814
|
-
Lithic::Transaction::CardholderAuthentication::LiabilityShift::TaggedSymbol
|
|
815
|
-
]
|
|
816
|
-
)
|
|
817
|
-
end
|
|
818
|
-
def self.values
|
|
819
|
-
end
|
|
820
|
-
end
|
|
821
|
-
end
|
|
822
|
-
|
|
823
515
|
# Card network of the authorization. Value is `UNKNOWN` when Lithic cannot
|
|
824
516
|
# determine the network code from the upstream provider.
|
|
825
517
|
module Network
|
|
@@ -1616,100 +1308,6 @@ module Lithic
|
|
|
1616
1308
|
end
|
|
1617
1309
|
end
|
|
1618
1310
|
|
|
1619
|
-
class TokenInfo < Lithic::Internal::Type::BaseModel
|
|
1620
|
-
OrHash =
|
|
1621
|
-
T.type_alias do
|
|
1622
|
-
T.any(Lithic::Transaction::TokenInfo, Lithic::Internal::AnyHash)
|
|
1623
|
-
end
|
|
1624
|
-
|
|
1625
|
-
# The wallet_type field will indicate the source of the token. Possible token
|
|
1626
|
-
# sources include digital wallets (Apple, Google, or Samsung Pay), merchant
|
|
1627
|
-
# tokenization, and “other” sources like in-flight commerce. Masterpass is not
|
|
1628
|
-
# currently supported and is included for future use.
|
|
1629
|
-
sig do
|
|
1630
|
-
returns(Lithic::Transaction::TokenInfo::WalletType::TaggedSymbol)
|
|
1631
|
-
end
|
|
1632
|
-
attr_accessor :wallet_type
|
|
1633
|
-
|
|
1634
|
-
sig do
|
|
1635
|
-
params(
|
|
1636
|
-
wallet_type: Lithic::Transaction::TokenInfo::WalletType::OrSymbol
|
|
1637
|
-
).returns(T.attached_class)
|
|
1638
|
-
end
|
|
1639
|
-
def self.new(
|
|
1640
|
-
# The wallet_type field will indicate the source of the token. Possible token
|
|
1641
|
-
# sources include digital wallets (Apple, Google, or Samsung Pay), merchant
|
|
1642
|
-
# tokenization, and “other” sources like in-flight commerce. Masterpass is not
|
|
1643
|
-
# currently supported and is included for future use.
|
|
1644
|
-
wallet_type:
|
|
1645
|
-
)
|
|
1646
|
-
end
|
|
1647
|
-
|
|
1648
|
-
sig do
|
|
1649
|
-
override.returns(
|
|
1650
|
-
{
|
|
1651
|
-
wallet_type:
|
|
1652
|
-
Lithic::Transaction::TokenInfo::WalletType::TaggedSymbol
|
|
1653
|
-
}
|
|
1654
|
-
)
|
|
1655
|
-
end
|
|
1656
|
-
def to_hash
|
|
1657
|
-
end
|
|
1658
|
-
|
|
1659
|
-
# The wallet_type field will indicate the source of the token. Possible token
|
|
1660
|
-
# sources include digital wallets (Apple, Google, or Samsung Pay), merchant
|
|
1661
|
-
# tokenization, and “other” sources like in-flight commerce. Masterpass is not
|
|
1662
|
-
# currently supported and is included for future use.
|
|
1663
|
-
module WalletType
|
|
1664
|
-
extend Lithic::Internal::Type::Enum
|
|
1665
|
-
|
|
1666
|
-
TaggedSymbol =
|
|
1667
|
-
T.type_alias do
|
|
1668
|
-
T.all(Symbol, Lithic::Transaction::TokenInfo::WalletType)
|
|
1669
|
-
end
|
|
1670
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
1671
|
-
|
|
1672
|
-
APPLE_PAY =
|
|
1673
|
-
T.let(
|
|
1674
|
-
:APPLE_PAY,
|
|
1675
|
-
Lithic::Transaction::TokenInfo::WalletType::TaggedSymbol
|
|
1676
|
-
)
|
|
1677
|
-
GOOGLE_PAY =
|
|
1678
|
-
T.let(
|
|
1679
|
-
:GOOGLE_PAY,
|
|
1680
|
-
Lithic::Transaction::TokenInfo::WalletType::TaggedSymbol
|
|
1681
|
-
)
|
|
1682
|
-
MASTERPASS =
|
|
1683
|
-
T.let(
|
|
1684
|
-
:MASTERPASS,
|
|
1685
|
-
Lithic::Transaction::TokenInfo::WalletType::TaggedSymbol
|
|
1686
|
-
)
|
|
1687
|
-
MERCHANT =
|
|
1688
|
-
T.let(
|
|
1689
|
-
:MERCHANT,
|
|
1690
|
-
Lithic::Transaction::TokenInfo::WalletType::TaggedSymbol
|
|
1691
|
-
)
|
|
1692
|
-
OTHER =
|
|
1693
|
-
T.let(
|
|
1694
|
-
:OTHER,
|
|
1695
|
-
Lithic::Transaction::TokenInfo::WalletType::TaggedSymbol
|
|
1696
|
-
)
|
|
1697
|
-
SAMSUNG_PAY =
|
|
1698
|
-
T.let(
|
|
1699
|
-
:SAMSUNG_PAY,
|
|
1700
|
-
Lithic::Transaction::TokenInfo::WalletType::TaggedSymbol
|
|
1701
|
-
)
|
|
1702
|
-
|
|
1703
|
-
sig do
|
|
1704
|
-
override.returns(
|
|
1705
|
-
T::Array[Lithic::Transaction::TokenInfo::WalletType::TaggedSymbol]
|
|
1706
|
-
)
|
|
1707
|
-
end
|
|
1708
|
-
def self.values
|
|
1709
|
-
end
|
|
1710
|
-
end
|
|
1711
|
-
end
|
|
1712
|
-
|
|
1713
1311
|
class Event < Lithic::Internal::Type::BaseModel
|
|
1714
1312
|
OrHash =
|
|
1715
1313
|
T.type_alias do
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class WalletDecisioningInfo < Lithic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Lithic::WalletDecisioningInfo, Lithic::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# Score given to the account by the Wallet Provider
|
|
12
|
+
sig { returns(T.nilable(String)) }
|
|
13
|
+
attr_accessor :account_score
|
|
14
|
+
|
|
15
|
+
# Score given to the device by the Wallet Provider
|
|
16
|
+
sig { returns(T.nilable(String)) }
|
|
17
|
+
attr_accessor :device_score
|
|
18
|
+
|
|
19
|
+
# The decision recommended by the Wallet Provider
|
|
20
|
+
sig { returns(T.nilable(String)) }
|
|
21
|
+
attr_accessor :recommended_decision
|
|
22
|
+
|
|
23
|
+
# Reasons provided to the Wallet Provider on how the recommended decision was
|
|
24
|
+
# reached
|
|
25
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
26
|
+
attr_accessor :recommendation_reasons
|
|
27
|
+
|
|
28
|
+
sig do
|
|
29
|
+
params(
|
|
30
|
+
account_score: T.nilable(String),
|
|
31
|
+
device_score: T.nilable(String),
|
|
32
|
+
recommended_decision: T.nilable(String),
|
|
33
|
+
recommendation_reasons: T.nilable(T::Array[String])
|
|
34
|
+
).returns(T.attached_class)
|
|
35
|
+
end
|
|
36
|
+
def self.new(
|
|
37
|
+
# Score given to the account by the Wallet Provider
|
|
38
|
+
account_score:,
|
|
39
|
+
# Score given to the device by the Wallet Provider
|
|
40
|
+
device_score:,
|
|
41
|
+
# The decision recommended by the Wallet Provider
|
|
42
|
+
recommended_decision:,
|
|
43
|
+
# Reasons provided to the Wallet Provider on how the recommended decision was
|
|
44
|
+
# reached
|
|
45
|
+
recommendation_reasons: nil
|
|
46
|
+
)
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
sig do
|
|
50
|
+
override.returns(
|
|
51
|
+
{
|
|
52
|
+
account_score: T.nilable(String),
|
|
53
|
+
device_score: T.nilable(String),
|
|
54
|
+
recommended_decision: T.nilable(String),
|
|
55
|
+
recommendation_reasons: T.nilable(T::Array[String])
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
end
|
|
59
|
+
def to_hash
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|