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,70 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class TokenInfo < Lithic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias { T.any(Lithic::TokenInfo, Lithic::Internal::AnyHash) }
|
|
8
|
+
|
|
9
|
+
# The wallet_type field will indicate the source of the token. Possible token
|
|
10
|
+
# sources include digital wallets (Apple, Google, or Samsung Pay), merchant
|
|
11
|
+
# tokenization, and “other” sources like in-flight commerce. Masterpass is not
|
|
12
|
+
# currently supported and is included for future use.
|
|
13
|
+
sig { returns(Lithic::TokenInfo::WalletType::TaggedSymbol) }
|
|
14
|
+
attr_accessor :wallet_type
|
|
15
|
+
|
|
16
|
+
sig do
|
|
17
|
+
params(wallet_type: Lithic::TokenInfo::WalletType::OrSymbol).returns(
|
|
18
|
+
T.attached_class
|
|
19
|
+
)
|
|
20
|
+
end
|
|
21
|
+
def self.new(
|
|
22
|
+
# The wallet_type field will indicate the source of the token. Possible token
|
|
23
|
+
# sources include digital wallets (Apple, Google, or Samsung Pay), merchant
|
|
24
|
+
# tokenization, and “other” sources like in-flight commerce. Masterpass is not
|
|
25
|
+
# currently supported and is included for future use.
|
|
26
|
+
wallet_type:
|
|
27
|
+
)
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
sig do
|
|
31
|
+
override.returns(
|
|
32
|
+
{ wallet_type: Lithic::TokenInfo::WalletType::TaggedSymbol }
|
|
33
|
+
)
|
|
34
|
+
end
|
|
35
|
+
def to_hash
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# The wallet_type field will indicate the source of the token. Possible token
|
|
39
|
+
# sources include digital wallets (Apple, Google, or Samsung Pay), merchant
|
|
40
|
+
# tokenization, and “other” sources like in-flight commerce. Masterpass is not
|
|
41
|
+
# currently supported and is included for future use.
|
|
42
|
+
module WalletType
|
|
43
|
+
extend Lithic::Internal::Type::Enum
|
|
44
|
+
|
|
45
|
+
TaggedSymbol =
|
|
46
|
+
T.type_alias { T.all(Symbol, Lithic::TokenInfo::WalletType) }
|
|
47
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
48
|
+
|
|
49
|
+
APPLE_PAY =
|
|
50
|
+
T.let(:APPLE_PAY, Lithic::TokenInfo::WalletType::TaggedSymbol)
|
|
51
|
+
GOOGLE_PAY =
|
|
52
|
+
T.let(:GOOGLE_PAY, Lithic::TokenInfo::WalletType::TaggedSymbol)
|
|
53
|
+
MASTERPASS =
|
|
54
|
+
T.let(:MASTERPASS, Lithic::TokenInfo::WalletType::TaggedSymbol)
|
|
55
|
+
MERCHANT = T.let(:MERCHANT, Lithic::TokenInfo::WalletType::TaggedSymbol)
|
|
56
|
+
OTHER = T.let(:OTHER, Lithic::TokenInfo::WalletType::TaggedSymbol)
|
|
57
|
+
SAMSUNG_PAY =
|
|
58
|
+
T.let(:SAMSUNG_PAY, Lithic::TokenInfo::WalletType::TaggedSymbol)
|
|
59
|
+
|
|
60
|
+
sig do
|
|
61
|
+
override.returns(
|
|
62
|
+
T::Array[Lithic::TokenInfo::WalletType::TaggedSymbol]
|
|
63
|
+
)
|
|
64
|
+
end
|
|
65
|
+
def self.values
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
@@ -330,15 +330,12 @@ module Lithic
|
|
|
330
330
|
attr_writer :result
|
|
331
331
|
|
|
332
332
|
# Results from rules that were evaluated for this tokenization
|
|
333
|
-
sig
|
|
334
|
-
returns(T.nilable(T::Array[Lithic::Tokenization::Event::RuleResult]))
|
|
335
|
-
end
|
|
333
|
+
sig { returns(T.nilable(T::Array[Lithic::TokenizationRuleResult])) }
|
|
336
334
|
attr_reader :rule_results
|
|
337
335
|
|
|
338
336
|
sig do
|
|
339
337
|
params(
|
|
340
|
-
rule_results:
|
|
341
|
-
T::Array[Lithic::Tokenization::Event::RuleResult::OrHash]
|
|
338
|
+
rule_results: T::Array[Lithic::TokenizationRuleResult::OrHash]
|
|
342
339
|
).void
|
|
343
340
|
end
|
|
344
341
|
attr_writer :rule_results
|
|
@@ -346,11 +343,7 @@ module Lithic
|
|
|
346
343
|
# List of reasons why the tokenization was declined
|
|
347
344
|
sig do
|
|
348
345
|
returns(
|
|
349
|
-
T.nilable(
|
|
350
|
-
T::Array[
|
|
351
|
-
Lithic::Tokenization::Event::TokenizationDeclineReason::TaggedSymbol
|
|
352
|
-
]
|
|
353
|
-
)
|
|
346
|
+
T.nilable(T::Array[Lithic::TokenizationDeclineReason::TaggedSymbol])
|
|
354
347
|
)
|
|
355
348
|
end
|
|
356
349
|
attr_reader :tokenization_decline_reasons
|
|
@@ -358,9 +351,7 @@ module Lithic
|
|
|
358
351
|
sig do
|
|
359
352
|
params(
|
|
360
353
|
tokenization_decline_reasons:
|
|
361
|
-
T::Array[
|
|
362
|
-
Lithic::Tokenization::Event::TokenizationDeclineReason::OrSymbol
|
|
363
|
-
]
|
|
354
|
+
T::Array[Lithic::TokenizationDeclineReason::OrSymbol]
|
|
364
355
|
).void
|
|
365
356
|
end
|
|
366
357
|
attr_writer :tokenization_decline_reasons
|
|
@@ -368,11 +359,7 @@ module Lithic
|
|
|
368
359
|
# List of reasons why two-factor authentication was required
|
|
369
360
|
sig do
|
|
370
361
|
returns(
|
|
371
|
-
T.nilable(
|
|
372
|
-
T::Array[
|
|
373
|
-
Lithic::Tokenization::Event::TokenizationTfaReason::TaggedSymbol
|
|
374
|
-
]
|
|
375
|
-
)
|
|
362
|
+
T.nilable(T::Array[Lithic::TokenizationTfaReason::TaggedSymbol])
|
|
376
363
|
)
|
|
377
364
|
end
|
|
378
365
|
attr_reader :tokenization_tfa_reasons
|
|
@@ -380,9 +367,7 @@ module Lithic
|
|
|
380
367
|
sig do
|
|
381
368
|
params(
|
|
382
369
|
tokenization_tfa_reasons:
|
|
383
|
-
T::Array[
|
|
384
|
-
Lithic::Tokenization::Event::TokenizationTfaReason::OrSymbol
|
|
385
|
-
]
|
|
370
|
+
T::Array[Lithic::TokenizationTfaReason::OrSymbol]
|
|
386
371
|
).void
|
|
387
372
|
end
|
|
388
373
|
attr_writer :tokenization_tfa_reasons
|
|
@@ -401,16 +386,11 @@ module Lithic
|
|
|
401
386
|
token: String,
|
|
402
387
|
created_at: Time,
|
|
403
388
|
result: Lithic::Tokenization::Event::Result::OrSymbol,
|
|
404
|
-
rule_results:
|
|
405
|
-
T::Array[Lithic::Tokenization::Event::RuleResult::OrHash],
|
|
389
|
+
rule_results: T::Array[Lithic::TokenizationRuleResult::OrHash],
|
|
406
390
|
tokenization_decline_reasons:
|
|
407
|
-
T::Array[
|
|
408
|
-
Lithic::Tokenization::Event::TokenizationDeclineReason::OrSymbol
|
|
409
|
-
],
|
|
391
|
+
T::Array[Lithic::TokenizationDeclineReason::OrSymbol],
|
|
410
392
|
tokenization_tfa_reasons:
|
|
411
|
-
T::Array[
|
|
412
|
-
Lithic::Tokenization::Event::TokenizationTfaReason::OrSymbol
|
|
413
|
-
],
|
|
393
|
+
T::Array[Lithic::TokenizationTfaReason::OrSymbol],
|
|
414
394
|
type: Lithic::Tokenization::Event::Type::OrSymbol
|
|
415
395
|
).returns(T.attached_class)
|
|
416
396
|
end
|
|
@@ -438,15 +418,11 @@ module Lithic
|
|
|
438
418
|
token: String,
|
|
439
419
|
created_at: Time,
|
|
440
420
|
result: Lithic::Tokenization::Event::Result::TaggedSymbol,
|
|
441
|
-
rule_results: T::Array[Lithic::
|
|
421
|
+
rule_results: T::Array[Lithic::TokenizationRuleResult],
|
|
442
422
|
tokenization_decline_reasons:
|
|
443
|
-
T::Array[
|
|
444
|
-
Lithic::Tokenization::Event::TokenizationDeclineReason::TaggedSymbol
|
|
445
|
-
],
|
|
423
|
+
T::Array[Lithic::TokenizationDeclineReason::TaggedSymbol],
|
|
446
424
|
tokenization_tfa_reasons:
|
|
447
|
-
T::Array[
|
|
448
|
-
Lithic::Tokenization::Event::TokenizationTfaReason::TaggedSymbol
|
|
449
|
-
],
|
|
425
|
+
T::Array[Lithic::TokenizationTfaReason::TaggedSymbol],
|
|
450
426
|
type: Lithic::Tokenization::Event::Type::TaggedSymbol
|
|
451
427
|
}
|
|
452
428
|
)
|
|
@@ -526,305 +502,6 @@ module Lithic
|
|
|
526
502
|
end
|
|
527
503
|
end
|
|
528
504
|
|
|
529
|
-
class RuleResult < Lithic::Internal::Type::BaseModel
|
|
530
|
-
OrHash =
|
|
531
|
-
T.type_alias do
|
|
532
|
-
T.any(
|
|
533
|
-
Lithic::Tokenization::Event::RuleResult,
|
|
534
|
-
Lithic::Internal::AnyHash
|
|
535
|
-
)
|
|
536
|
-
end
|
|
537
|
-
|
|
538
|
-
# The Auth Rule Token associated with the rule. If this is set to null, then the
|
|
539
|
-
# result was not associated with a customer-configured rule. This may happen in
|
|
540
|
-
# cases where a tokenization is declined or requires TFA due to a
|
|
541
|
-
# Lithic-configured security or compliance rule, for example.
|
|
542
|
-
sig { returns(T.nilable(String)) }
|
|
543
|
-
attr_accessor :auth_rule_token
|
|
544
|
-
|
|
545
|
-
# A human-readable explanation outlining the motivation for the rule's result
|
|
546
|
-
sig { returns(T.nilable(String)) }
|
|
547
|
-
attr_accessor :explanation
|
|
548
|
-
|
|
549
|
-
# The name for the rule, if any was configured
|
|
550
|
-
sig { returns(T.nilable(String)) }
|
|
551
|
-
attr_accessor :name
|
|
552
|
-
|
|
553
|
-
# The result associated with this rule
|
|
554
|
-
sig do
|
|
555
|
-
returns(
|
|
556
|
-
Lithic::Tokenization::Event::RuleResult::Result::TaggedSymbol
|
|
557
|
-
)
|
|
558
|
-
end
|
|
559
|
-
attr_accessor :result
|
|
560
|
-
|
|
561
|
-
sig do
|
|
562
|
-
params(
|
|
563
|
-
auth_rule_token: T.nilable(String),
|
|
564
|
-
explanation: T.nilable(String),
|
|
565
|
-
name: T.nilable(String),
|
|
566
|
-
result: Lithic::Tokenization::Event::RuleResult::Result::OrSymbol
|
|
567
|
-
).returns(T.attached_class)
|
|
568
|
-
end
|
|
569
|
-
def self.new(
|
|
570
|
-
# The Auth Rule Token associated with the rule. If this is set to null, then the
|
|
571
|
-
# result was not associated with a customer-configured rule. This may happen in
|
|
572
|
-
# cases where a tokenization is declined or requires TFA due to a
|
|
573
|
-
# Lithic-configured security or compliance rule, for example.
|
|
574
|
-
auth_rule_token:,
|
|
575
|
-
# A human-readable explanation outlining the motivation for the rule's result
|
|
576
|
-
explanation:,
|
|
577
|
-
# The name for the rule, if any was configured
|
|
578
|
-
name:,
|
|
579
|
-
# The result associated with this rule
|
|
580
|
-
result:
|
|
581
|
-
)
|
|
582
|
-
end
|
|
583
|
-
|
|
584
|
-
sig do
|
|
585
|
-
override.returns(
|
|
586
|
-
{
|
|
587
|
-
auth_rule_token: T.nilable(String),
|
|
588
|
-
explanation: T.nilable(String),
|
|
589
|
-
name: T.nilable(String),
|
|
590
|
-
result:
|
|
591
|
-
Lithic::Tokenization::Event::RuleResult::Result::TaggedSymbol
|
|
592
|
-
}
|
|
593
|
-
)
|
|
594
|
-
end
|
|
595
|
-
def to_hash
|
|
596
|
-
end
|
|
597
|
-
|
|
598
|
-
# The result associated with this rule
|
|
599
|
-
module Result
|
|
600
|
-
extend Lithic::Internal::Type::Enum
|
|
601
|
-
|
|
602
|
-
TaggedSymbol =
|
|
603
|
-
T.type_alias do
|
|
604
|
-
T.all(Symbol, Lithic::Tokenization::Event::RuleResult::Result)
|
|
605
|
-
end
|
|
606
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
607
|
-
|
|
608
|
-
APPROVED =
|
|
609
|
-
T.let(
|
|
610
|
-
:APPROVED,
|
|
611
|
-
Lithic::Tokenization::Event::RuleResult::Result::TaggedSymbol
|
|
612
|
-
)
|
|
613
|
-
DECLINED =
|
|
614
|
-
T.let(
|
|
615
|
-
:DECLINED,
|
|
616
|
-
Lithic::Tokenization::Event::RuleResult::Result::TaggedSymbol
|
|
617
|
-
)
|
|
618
|
-
REQUIRE_TFA =
|
|
619
|
-
T.let(
|
|
620
|
-
:REQUIRE_TFA,
|
|
621
|
-
Lithic::Tokenization::Event::RuleResult::Result::TaggedSymbol
|
|
622
|
-
)
|
|
623
|
-
ERROR =
|
|
624
|
-
T.let(
|
|
625
|
-
:ERROR,
|
|
626
|
-
Lithic::Tokenization::Event::RuleResult::Result::TaggedSymbol
|
|
627
|
-
)
|
|
628
|
-
|
|
629
|
-
sig do
|
|
630
|
-
override.returns(
|
|
631
|
-
T::Array[
|
|
632
|
-
Lithic::Tokenization::Event::RuleResult::Result::TaggedSymbol
|
|
633
|
-
]
|
|
634
|
-
)
|
|
635
|
-
end
|
|
636
|
-
def self.values
|
|
637
|
-
end
|
|
638
|
-
end
|
|
639
|
-
end
|
|
640
|
-
|
|
641
|
-
# Reason code for why a tokenization was declined
|
|
642
|
-
module TokenizationDeclineReason
|
|
643
|
-
extend Lithic::Internal::Type::Enum
|
|
644
|
-
|
|
645
|
-
TaggedSymbol =
|
|
646
|
-
T.type_alias do
|
|
647
|
-
T.all(
|
|
648
|
-
Symbol,
|
|
649
|
-
Lithic::Tokenization::Event::TokenizationDeclineReason
|
|
650
|
-
)
|
|
651
|
-
end
|
|
652
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
653
|
-
|
|
654
|
-
ACCOUNT_SCORE_1 =
|
|
655
|
-
T.let(
|
|
656
|
-
:ACCOUNT_SCORE_1,
|
|
657
|
-
Lithic::Tokenization::Event::TokenizationDeclineReason::TaggedSymbol
|
|
658
|
-
)
|
|
659
|
-
DEVICE_SCORE_1 =
|
|
660
|
-
T.let(
|
|
661
|
-
:DEVICE_SCORE_1,
|
|
662
|
-
Lithic::Tokenization::Event::TokenizationDeclineReason::TaggedSymbol
|
|
663
|
-
)
|
|
664
|
-
ALL_WALLET_DECLINE_REASONS_PRESENT =
|
|
665
|
-
T.let(
|
|
666
|
-
:ALL_WALLET_DECLINE_REASONS_PRESENT,
|
|
667
|
-
Lithic::Tokenization::Event::TokenizationDeclineReason::TaggedSymbol
|
|
668
|
-
)
|
|
669
|
-
WALLET_RECOMMENDED_DECISION_RED =
|
|
670
|
-
T.let(
|
|
671
|
-
:WALLET_RECOMMENDED_DECISION_RED,
|
|
672
|
-
Lithic::Tokenization::Event::TokenizationDeclineReason::TaggedSymbol
|
|
673
|
-
)
|
|
674
|
-
CVC_MISMATCH =
|
|
675
|
-
T.let(
|
|
676
|
-
:CVC_MISMATCH,
|
|
677
|
-
Lithic::Tokenization::Event::TokenizationDeclineReason::TaggedSymbol
|
|
678
|
-
)
|
|
679
|
-
CARD_EXPIRY_MONTH_MISMATCH =
|
|
680
|
-
T.let(
|
|
681
|
-
:CARD_EXPIRY_MONTH_MISMATCH,
|
|
682
|
-
Lithic::Tokenization::Event::TokenizationDeclineReason::TaggedSymbol
|
|
683
|
-
)
|
|
684
|
-
CARD_EXPIRY_YEAR_MISMATCH =
|
|
685
|
-
T.let(
|
|
686
|
-
:CARD_EXPIRY_YEAR_MISMATCH,
|
|
687
|
-
Lithic::Tokenization::Event::TokenizationDeclineReason::TaggedSymbol
|
|
688
|
-
)
|
|
689
|
-
CARD_INVALID_STATE =
|
|
690
|
-
T.let(
|
|
691
|
-
:CARD_INVALID_STATE,
|
|
692
|
-
Lithic::Tokenization::Event::TokenizationDeclineReason::TaggedSymbol
|
|
693
|
-
)
|
|
694
|
-
CUSTOMER_RED_PATH =
|
|
695
|
-
T.let(
|
|
696
|
-
:CUSTOMER_RED_PATH,
|
|
697
|
-
Lithic::Tokenization::Event::TokenizationDeclineReason::TaggedSymbol
|
|
698
|
-
)
|
|
699
|
-
INVALID_CUSTOMER_RESPONSE =
|
|
700
|
-
T.let(
|
|
701
|
-
:INVALID_CUSTOMER_RESPONSE,
|
|
702
|
-
Lithic::Tokenization::Event::TokenizationDeclineReason::TaggedSymbol
|
|
703
|
-
)
|
|
704
|
-
NETWORK_FAILURE =
|
|
705
|
-
T.let(
|
|
706
|
-
:NETWORK_FAILURE,
|
|
707
|
-
Lithic::Tokenization::Event::TokenizationDeclineReason::TaggedSymbol
|
|
708
|
-
)
|
|
709
|
-
GENERIC_DECLINE =
|
|
710
|
-
T.let(
|
|
711
|
-
:GENERIC_DECLINE,
|
|
712
|
-
Lithic::Tokenization::Event::TokenizationDeclineReason::TaggedSymbol
|
|
713
|
-
)
|
|
714
|
-
DIGITAL_CARD_ART_REQUIRED =
|
|
715
|
-
T.let(
|
|
716
|
-
:DIGITAL_CARD_ART_REQUIRED,
|
|
717
|
-
Lithic::Tokenization::Event::TokenizationDeclineReason::TaggedSymbol
|
|
718
|
-
)
|
|
719
|
-
|
|
720
|
-
sig do
|
|
721
|
-
override.returns(
|
|
722
|
-
T::Array[
|
|
723
|
-
Lithic::Tokenization::Event::TokenizationDeclineReason::TaggedSymbol
|
|
724
|
-
]
|
|
725
|
-
)
|
|
726
|
-
end
|
|
727
|
-
def self.values
|
|
728
|
-
end
|
|
729
|
-
end
|
|
730
|
-
|
|
731
|
-
# Reason code for why a tokenization required two-factor authentication
|
|
732
|
-
module TokenizationTfaReason
|
|
733
|
-
extend Lithic::Internal::Type::Enum
|
|
734
|
-
|
|
735
|
-
TaggedSymbol =
|
|
736
|
-
T.type_alias do
|
|
737
|
-
T.all(Symbol, Lithic::Tokenization::Event::TokenizationTfaReason)
|
|
738
|
-
end
|
|
739
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
740
|
-
|
|
741
|
-
WALLET_RECOMMENDED_TFA =
|
|
742
|
-
T.let(
|
|
743
|
-
:WALLET_RECOMMENDED_TFA,
|
|
744
|
-
Lithic::Tokenization::Event::TokenizationTfaReason::TaggedSymbol
|
|
745
|
-
)
|
|
746
|
-
SUSPICIOUS_ACTIVITY =
|
|
747
|
-
T.let(
|
|
748
|
-
:SUSPICIOUS_ACTIVITY,
|
|
749
|
-
Lithic::Tokenization::Event::TokenizationTfaReason::TaggedSymbol
|
|
750
|
-
)
|
|
751
|
-
DEVICE_RECENTLY_LOST =
|
|
752
|
-
T.let(
|
|
753
|
-
:DEVICE_RECENTLY_LOST,
|
|
754
|
-
Lithic::Tokenization::Event::TokenizationTfaReason::TaggedSymbol
|
|
755
|
-
)
|
|
756
|
-
TOO_MANY_RECENT_ATTEMPTS =
|
|
757
|
-
T.let(
|
|
758
|
-
:TOO_MANY_RECENT_ATTEMPTS,
|
|
759
|
-
Lithic::Tokenization::Event::TokenizationTfaReason::TaggedSymbol
|
|
760
|
-
)
|
|
761
|
-
TOO_MANY_RECENT_TOKENS =
|
|
762
|
-
T.let(
|
|
763
|
-
:TOO_MANY_RECENT_TOKENS,
|
|
764
|
-
Lithic::Tokenization::Event::TokenizationTfaReason::TaggedSymbol
|
|
765
|
-
)
|
|
766
|
-
TOO_MANY_DIFFERENT_CARDHOLDERS =
|
|
767
|
-
T.let(
|
|
768
|
-
:TOO_MANY_DIFFERENT_CARDHOLDERS,
|
|
769
|
-
Lithic::Tokenization::Event::TokenizationTfaReason::TaggedSymbol
|
|
770
|
-
)
|
|
771
|
-
OUTSIDE_HOME_TERRITORY =
|
|
772
|
-
T.let(
|
|
773
|
-
:OUTSIDE_HOME_TERRITORY,
|
|
774
|
-
Lithic::Tokenization::Event::TokenizationTfaReason::TaggedSymbol
|
|
775
|
-
)
|
|
776
|
-
HAS_SUSPENDED_TOKENS =
|
|
777
|
-
T.let(
|
|
778
|
-
:HAS_SUSPENDED_TOKENS,
|
|
779
|
-
Lithic::Tokenization::Event::TokenizationTfaReason::TaggedSymbol
|
|
780
|
-
)
|
|
781
|
-
HIGH_RISK =
|
|
782
|
-
T.let(
|
|
783
|
-
:HIGH_RISK,
|
|
784
|
-
Lithic::Tokenization::Event::TokenizationTfaReason::TaggedSymbol
|
|
785
|
-
)
|
|
786
|
-
ACCOUNT_SCORE_LOW =
|
|
787
|
-
T.let(
|
|
788
|
-
:ACCOUNT_SCORE_LOW,
|
|
789
|
-
Lithic::Tokenization::Event::TokenizationTfaReason::TaggedSymbol
|
|
790
|
-
)
|
|
791
|
-
DEVICE_SCORE_LOW =
|
|
792
|
-
T.let(
|
|
793
|
-
:DEVICE_SCORE_LOW,
|
|
794
|
-
Lithic::Tokenization::Event::TokenizationTfaReason::TaggedSymbol
|
|
795
|
-
)
|
|
796
|
-
CARD_STATE_TFA =
|
|
797
|
-
T.let(
|
|
798
|
-
:CARD_STATE_TFA,
|
|
799
|
-
Lithic::Tokenization::Event::TokenizationTfaReason::TaggedSymbol
|
|
800
|
-
)
|
|
801
|
-
HARDCODED_TFA =
|
|
802
|
-
T.let(
|
|
803
|
-
:HARDCODED_TFA,
|
|
804
|
-
Lithic::Tokenization::Event::TokenizationTfaReason::TaggedSymbol
|
|
805
|
-
)
|
|
806
|
-
CUSTOMER_RULE_TFA =
|
|
807
|
-
T.let(
|
|
808
|
-
:CUSTOMER_RULE_TFA,
|
|
809
|
-
Lithic::Tokenization::Event::TokenizationTfaReason::TaggedSymbol
|
|
810
|
-
)
|
|
811
|
-
DEVICE_HOST_CARD_EMULATION =
|
|
812
|
-
T.let(
|
|
813
|
-
:DEVICE_HOST_CARD_EMULATION,
|
|
814
|
-
Lithic::Tokenization::Event::TokenizationTfaReason::TaggedSymbol
|
|
815
|
-
)
|
|
816
|
-
|
|
817
|
-
sig do
|
|
818
|
-
override.returns(
|
|
819
|
-
T::Array[
|
|
820
|
-
Lithic::Tokenization::Event::TokenizationTfaReason::TaggedSymbol
|
|
821
|
-
]
|
|
822
|
-
)
|
|
823
|
-
end
|
|
824
|
-
def self.values
|
|
825
|
-
end
|
|
826
|
-
end
|
|
827
|
-
|
|
828
505
|
# Enum representing the type of tokenization event that occurred
|
|
829
506
|
module Type
|
|
830
507
|
extend Lithic::Internal::Type::Enum
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
# Reason code for why a tokenization was declined
|
|
6
|
+
module TokenizationDeclineReason
|
|
7
|
+
extend Lithic::Internal::Type::Enum
|
|
8
|
+
|
|
9
|
+
TaggedSymbol =
|
|
10
|
+
T.type_alias { T.all(Symbol, Lithic::TokenizationDeclineReason) }
|
|
11
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
12
|
+
|
|
13
|
+
ACCOUNT_SCORE_1 =
|
|
14
|
+
T.let(:ACCOUNT_SCORE_1, Lithic::TokenizationDeclineReason::TaggedSymbol)
|
|
15
|
+
DEVICE_SCORE_1 =
|
|
16
|
+
T.let(:DEVICE_SCORE_1, Lithic::TokenizationDeclineReason::TaggedSymbol)
|
|
17
|
+
ALL_WALLET_DECLINE_REASONS_PRESENT =
|
|
18
|
+
T.let(
|
|
19
|
+
:ALL_WALLET_DECLINE_REASONS_PRESENT,
|
|
20
|
+
Lithic::TokenizationDeclineReason::TaggedSymbol
|
|
21
|
+
)
|
|
22
|
+
WALLET_RECOMMENDED_DECISION_RED =
|
|
23
|
+
T.let(
|
|
24
|
+
:WALLET_RECOMMENDED_DECISION_RED,
|
|
25
|
+
Lithic::TokenizationDeclineReason::TaggedSymbol
|
|
26
|
+
)
|
|
27
|
+
CVC_MISMATCH =
|
|
28
|
+
T.let(:CVC_MISMATCH, Lithic::TokenizationDeclineReason::TaggedSymbol)
|
|
29
|
+
CARD_EXPIRY_MONTH_MISMATCH =
|
|
30
|
+
T.let(
|
|
31
|
+
:CARD_EXPIRY_MONTH_MISMATCH,
|
|
32
|
+
Lithic::TokenizationDeclineReason::TaggedSymbol
|
|
33
|
+
)
|
|
34
|
+
CARD_EXPIRY_YEAR_MISMATCH =
|
|
35
|
+
T.let(
|
|
36
|
+
:CARD_EXPIRY_YEAR_MISMATCH,
|
|
37
|
+
Lithic::TokenizationDeclineReason::TaggedSymbol
|
|
38
|
+
)
|
|
39
|
+
CARD_INVALID_STATE =
|
|
40
|
+
T.let(
|
|
41
|
+
:CARD_INVALID_STATE,
|
|
42
|
+
Lithic::TokenizationDeclineReason::TaggedSymbol
|
|
43
|
+
)
|
|
44
|
+
CUSTOMER_RED_PATH =
|
|
45
|
+
T.let(
|
|
46
|
+
:CUSTOMER_RED_PATH,
|
|
47
|
+
Lithic::TokenizationDeclineReason::TaggedSymbol
|
|
48
|
+
)
|
|
49
|
+
INVALID_CUSTOMER_RESPONSE =
|
|
50
|
+
T.let(
|
|
51
|
+
:INVALID_CUSTOMER_RESPONSE,
|
|
52
|
+
Lithic::TokenizationDeclineReason::TaggedSymbol
|
|
53
|
+
)
|
|
54
|
+
NETWORK_FAILURE =
|
|
55
|
+
T.let(:NETWORK_FAILURE, Lithic::TokenizationDeclineReason::TaggedSymbol)
|
|
56
|
+
GENERIC_DECLINE =
|
|
57
|
+
T.let(:GENERIC_DECLINE, Lithic::TokenizationDeclineReason::TaggedSymbol)
|
|
58
|
+
DIGITAL_CARD_ART_REQUIRED =
|
|
59
|
+
T.let(
|
|
60
|
+
:DIGITAL_CARD_ART_REQUIRED,
|
|
61
|
+
Lithic::TokenizationDeclineReason::TaggedSymbol
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
sig do
|
|
65
|
+
override.returns(
|
|
66
|
+
T::Array[Lithic::TokenizationDeclineReason::TaggedSymbol]
|
|
67
|
+
)
|
|
68
|
+
end
|
|
69
|
+
def self.values
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
class TokenizationRuleResult < Lithic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Lithic::TokenizationRuleResult, Lithic::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# The Auth Rule Token associated with the rule. If this is set to null, then the
|
|
12
|
+
# result was not associated with a customer-configured rule. This may happen in
|
|
13
|
+
# cases where a tokenization is declined or requires TFA due to a
|
|
14
|
+
# Lithic-configured security or compliance rule, for example.
|
|
15
|
+
sig { returns(T.nilable(String)) }
|
|
16
|
+
attr_accessor :auth_rule_token
|
|
17
|
+
|
|
18
|
+
# A human-readable explanation outlining the motivation for the rule's result
|
|
19
|
+
sig { returns(T.nilable(String)) }
|
|
20
|
+
attr_accessor :explanation
|
|
21
|
+
|
|
22
|
+
# The name for the rule, if any was configured
|
|
23
|
+
sig { returns(T.nilable(String)) }
|
|
24
|
+
attr_accessor :name
|
|
25
|
+
|
|
26
|
+
# The result associated with this rule
|
|
27
|
+
sig { returns(Lithic::TokenizationRuleResult::Result::TaggedSymbol) }
|
|
28
|
+
attr_accessor :result
|
|
29
|
+
|
|
30
|
+
sig do
|
|
31
|
+
params(
|
|
32
|
+
auth_rule_token: T.nilable(String),
|
|
33
|
+
explanation: T.nilable(String),
|
|
34
|
+
name: T.nilable(String),
|
|
35
|
+
result: Lithic::TokenizationRuleResult::Result::OrSymbol
|
|
36
|
+
).returns(T.attached_class)
|
|
37
|
+
end
|
|
38
|
+
def self.new(
|
|
39
|
+
# The Auth Rule Token associated with the rule. If this is set to null, then the
|
|
40
|
+
# result was not associated with a customer-configured rule. This may happen in
|
|
41
|
+
# cases where a tokenization is declined or requires TFA due to a
|
|
42
|
+
# Lithic-configured security or compliance rule, for example.
|
|
43
|
+
auth_rule_token:,
|
|
44
|
+
# A human-readable explanation outlining the motivation for the rule's result
|
|
45
|
+
explanation:,
|
|
46
|
+
# The name for the rule, if any was configured
|
|
47
|
+
name:,
|
|
48
|
+
# The result associated with this rule
|
|
49
|
+
result:
|
|
50
|
+
)
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
sig do
|
|
54
|
+
override.returns(
|
|
55
|
+
{
|
|
56
|
+
auth_rule_token: T.nilable(String),
|
|
57
|
+
explanation: T.nilable(String),
|
|
58
|
+
name: T.nilable(String),
|
|
59
|
+
result: Lithic::TokenizationRuleResult::Result::TaggedSymbol
|
|
60
|
+
}
|
|
61
|
+
)
|
|
62
|
+
end
|
|
63
|
+
def to_hash
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# The result associated with this rule
|
|
67
|
+
module Result
|
|
68
|
+
extend Lithic::Internal::Type::Enum
|
|
69
|
+
|
|
70
|
+
TaggedSymbol =
|
|
71
|
+
T.type_alias { T.all(Symbol, Lithic::TokenizationRuleResult::Result) }
|
|
72
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
73
|
+
|
|
74
|
+
APPROVED =
|
|
75
|
+
T.let(:APPROVED, Lithic::TokenizationRuleResult::Result::TaggedSymbol)
|
|
76
|
+
DECLINED =
|
|
77
|
+
T.let(:DECLINED, Lithic::TokenizationRuleResult::Result::TaggedSymbol)
|
|
78
|
+
REQUIRE_TFA =
|
|
79
|
+
T.let(
|
|
80
|
+
:REQUIRE_TFA,
|
|
81
|
+
Lithic::TokenizationRuleResult::Result::TaggedSymbol
|
|
82
|
+
)
|
|
83
|
+
ERROR =
|
|
84
|
+
T.let(:ERROR, Lithic::TokenizationRuleResult::Result::TaggedSymbol)
|
|
85
|
+
|
|
86
|
+
sig do
|
|
87
|
+
override.returns(
|
|
88
|
+
T::Array[Lithic::TokenizationRuleResult::Result::TaggedSymbol]
|
|
89
|
+
)
|
|
90
|
+
end
|
|
91
|
+
def self.values
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
end
|