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
|
@@ -1,525 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Lithic
|
|
4
|
-
module Models
|
|
5
|
-
module AuthRules
|
|
6
|
-
class V2PromoteResponse < Lithic::Internal::Type::BaseModel
|
|
7
|
-
OrHash =
|
|
8
|
-
T.type_alias do
|
|
9
|
-
T.any(
|
|
10
|
-
Lithic::Models::AuthRules::V2PromoteResponse,
|
|
11
|
-
Lithic::Internal::AnyHash
|
|
12
|
-
)
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
# Auth Rule Token
|
|
16
|
-
sig { returns(String) }
|
|
17
|
-
attr_accessor :token
|
|
18
|
-
|
|
19
|
-
# Account tokens to which the Auth Rule applies.
|
|
20
|
-
sig { returns(T::Array[String]) }
|
|
21
|
-
attr_accessor :account_tokens
|
|
22
|
-
|
|
23
|
-
# Business Account tokens to which the Auth Rule applies.
|
|
24
|
-
sig { returns(T::Array[String]) }
|
|
25
|
-
attr_accessor :business_account_tokens
|
|
26
|
-
|
|
27
|
-
# Card tokens to which the Auth Rule applies.
|
|
28
|
-
sig { returns(T::Array[String]) }
|
|
29
|
-
attr_accessor :card_tokens
|
|
30
|
-
|
|
31
|
-
sig do
|
|
32
|
-
returns(
|
|
33
|
-
T.nilable(
|
|
34
|
-
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion
|
|
35
|
-
)
|
|
36
|
-
)
|
|
37
|
-
end
|
|
38
|
-
attr_reader :current_version
|
|
39
|
-
|
|
40
|
-
sig do
|
|
41
|
-
params(
|
|
42
|
-
current_version:
|
|
43
|
-
T.nilable(
|
|
44
|
-
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::OrHash
|
|
45
|
-
)
|
|
46
|
-
).void
|
|
47
|
-
end
|
|
48
|
-
attr_writer :current_version
|
|
49
|
-
|
|
50
|
-
sig do
|
|
51
|
-
returns(
|
|
52
|
-
T.nilable(
|
|
53
|
-
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion
|
|
54
|
-
)
|
|
55
|
-
)
|
|
56
|
-
end
|
|
57
|
-
attr_reader :draft_version
|
|
58
|
-
|
|
59
|
-
sig do
|
|
60
|
-
params(
|
|
61
|
-
draft_version:
|
|
62
|
-
T.nilable(
|
|
63
|
-
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::OrHash
|
|
64
|
-
)
|
|
65
|
-
).void
|
|
66
|
-
end
|
|
67
|
-
attr_writer :draft_version
|
|
68
|
-
|
|
69
|
-
# The event stream during which the rule will be evaluated.
|
|
70
|
-
sig do
|
|
71
|
-
returns(
|
|
72
|
-
Lithic::Models::AuthRules::V2PromoteResponse::EventStream::TaggedSymbol
|
|
73
|
-
)
|
|
74
|
-
end
|
|
75
|
-
attr_accessor :event_stream
|
|
76
|
-
|
|
77
|
-
# Indicates whether this auth rule is managed by Lithic. If true, the rule cannot
|
|
78
|
-
# be modified or deleted by the user
|
|
79
|
-
sig { returns(T::Boolean) }
|
|
80
|
-
attr_accessor :lithic_managed
|
|
81
|
-
|
|
82
|
-
# Auth Rule Name
|
|
83
|
-
sig { returns(T.nilable(String)) }
|
|
84
|
-
attr_accessor :name
|
|
85
|
-
|
|
86
|
-
# Whether the Auth Rule applies to all authorizations on the card program.
|
|
87
|
-
sig { returns(T::Boolean) }
|
|
88
|
-
attr_accessor :program_level
|
|
89
|
-
|
|
90
|
-
# The state of the Auth Rule
|
|
91
|
-
sig do
|
|
92
|
-
returns(
|
|
93
|
-
Lithic::Models::AuthRules::V2PromoteResponse::State::TaggedSymbol
|
|
94
|
-
)
|
|
95
|
-
end
|
|
96
|
-
attr_accessor :state
|
|
97
|
-
|
|
98
|
-
# The type of Auth Rule. For certain rule types, this determines the event stream
|
|
99
|
-
# during which it will be evaluated. For rules that can be applied to one of
|
|
100
|
-
# several event streams, the effective one is defined by the separate
|
|
101
|
-
# `event_stream` field.
|
|
102
|
-
#
|
|
103
|
-
# - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream.
|
|
104
|
-
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
|
|
105
|
-
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
|
106
|
-
# - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
107
|
-
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
108
|
-
sig do
|
|
109
|
-
returns(
|
|
110
|
-
Lithic::Models::AuthRules::V2PromoteResponse::Type::TaggedSymbol
|
|
111
|
-
)
|
|
112
|
-
end
|
|
113
|
-
attr_accessor :type
|
|
114
|
-
|
|
115
|
-
# Card tokens to which the Auth Rule does not apply.
|
|
116
|
-
sig { returns(T.nilable(T::Array[String])) }
|
|
117
|
-
attr_reader :excluded_card_tokens
|
|
118
|
-
|
|
119
|
-
sig { params(excluded_card_tokens: T::Array[String]).void }
|
|
120
|
-
attr_writer :excluded_card_tokens
|
|
121
|
-
|
|
122
|
-
sig do
|
|
123
|
-
params(
|
|
124
|
-
token: String,
|
|
125
|
-
account_tokens: T::Array[String],
|
|
126
|
-
business_account_tokens: T::Array[String],
|
|
127
|
-
card_tokens: T::Array[String],
|
|
128
|
-
current_version:
|
|
129
|
-
T.nilable(
|
|
130
|
-
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::OrHash
|
|
131
|
-
),
|
|
132
|
-
draft_version:
|
|
133
|
-
T.nilable(
|
|
134
|
-
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::OrHash
|
|
135
|
-
),
|
|
136
|
-
event_stream:
|
|
137
|
-
Lithic::Models::AuthRules::V2PromoteResponse::EventStream::OrSymbol,
|
|
138
|
-
lithic_managed: T::Boolean,
|
|
139
|
-
name: T.nilable(String),
|
|
140
|
-
program_level: T::Boolean,
|
|
141
|
-
state:
|
|
142
|
-
Lithic::Models::AuthRules::V2PromoteResponse::State::OrSymbol,
|
|
143
|
-
type: Lithic::Models::AuthRules::V2PromoteResponse::Type::OrSymbol,
|
|
144
|
-
excluded_card_tokens: T::Array[String]
|
|
145
|
-
).returns(T.attached_class)
|
|
146
|
-
end
|
|
147
|
-
def self.new(
|
|
148
|
-
# Auth Rule Token
|
|
149
|
-
token:,
|
|
150
|
-
# Account tokens to which the Auth Rule applies.
|
|
151
|
-
account_tokens:,
|
|
152
|
-
# Business Account tokens to which the Auth Rule applies.
|
|
153
|
-
business_account_tokens:,
|
|
154
|
-
# Card tokens to which the Auth Rule applies.
|
|
155
|
-
card_tokens:,
|
|
156
|
-
current_version:,
|
|
157
|
-
draft_version:,
|
|
158
|
-
# The event stream during which the rule will be evaluated.
|
|
159
|
-
event_stream:,
|
|
160
|
-
# Indicates whether this auth rule is managed by Lithic. If true, the rule cannot
|
|
161
|
-
# be modified or deleted by the user
|
|
162
|
-
lithic_managed:,
|
|
163
|
-
# Auth Rule Name
|
|
164
|
-
name:,
|
|
165
|
-
# Whether the Auth Rule applies to all authorizations on the card program.
|
|
166
|
-
program_level:,
|
|
167
|
-
# The state of the Auth Rule
|
|
168
|
-
state:,
|
|
169
|
-
# The type of Auth Rule. For certain rule types, this determines the event stream
|
|
170
|
-
# during which it will be evaluated. For rules that can be applied to one of
|
|
171
|
-
# several event streams, the effective one is defined by the separate
|
|
172
|
-
# `event_stream` field.
|
|
173
|
-
#
|
|
174
|
-
# - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream.
|
|
175
|
-
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
|
|
176
|
-
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
|
177
|
-
# - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
178
|
-
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
179
|
-
type:,
|
|
180
|
-
# Card tokens to which the Auth Rule does not apply.
|
|
181
|
-
excluded_card_tokens: nil
|
|
182
|
-
)
|
|
183
|
-
end
|
|
184
|
-
|
|
185
|
-
sig do
|
|
186
|
-
override.returns(
|
|
187
|
-
{
|
|
188
|
-
token: String,
|
|
189
|
-
account_tokens: T::Array[String],
|
|
190
|
-
business_account_tokens: T::Array[String],
|
|
191
|
-
card_tokens: T::Array[String],
|
|
192
|
-
current_version:
|
|
193
|
-
T.nilable(
|
|
194
|
-
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion
|
|
195
|
-
),
|
|
196
|
-
draft_version:
|
|
197
|
-
T.nilable(
|
|
198
|
-
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion
|
|
199
|
-
),
|
|
200
|
-
event_stream:
|
|
201
|
-
Lithic::Models::AuthRules::V2PromoteResponse::EventStream::TaggedSymbol,
|
|
202
|
-
lithic_managed: T::Boolean,
|
|
203
|
-
name: T.nilable(String),
|
|
204
|
-
program_level: T::Boolean,
|
|
205
|
-
state:
|
|
206
|
-
Lithic::Models::AuthRules::V2PromoteResponse::State::TaggedSymbol,
|
|
207
|
-
type:
|
|
208
|
-
Lithic::Models::AuthRules::V2PromoteResponse::Type::TaggedSymbol,
|
|
209
|
-
excluded_card_tokens: T::Array[String]
|
|
210
|
-
}
|
|
211
|
-
)
|
|
212
|
-
end
|
|
213
|
-
def to_hash
|
|
214
|
-
end
|
|
215
|
-
|
|
216
|
-
class CurrentVersion < Lithic::Internal::Type::BaseModel
|
|
217
|
-
OrHash =
|
|
218
|
-
T.type_alias do
|
|
219
|
-
T.any(
|
|
220
|
-
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion,
|
|
221
|
-
Lithic::Internal::AnyHash
|
|
222
|
-
)
|
|
223
|
-
end
|
|
224
|
-
|
|
225
|
-
# Parameters for the Auth Rule
|
|
226
|
-
sig do
|
|
227
|
-
returns(
|
|
228
|
-
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::Variants
|
|
229
|
-
)
|
|
230
|
-
end
|
|
231
|
-
attr_accessor :parameters
|
|
232
|
-
|
|
233
|
-
# The version of the rule, this is incremented whenever the rule's parameters
|
|
234
|
-
# change.
|
|
235
|
-
sig { returns(Integer) }
|
|
236
|
-
attr_accessor :version
|
|
237
|
-
|
|
238
|
-
sig do
|
|
239
|
-
params(
|
|
240
|
-
parameters:
|
|
241
|
-
T.any(
|
|
242
|
-
Lithic::AuthRules::ConditionalBlockParameters::OrHash,
|
|
243
|
-
Lithic::AuthRules::VelocityLimitParams::OrHash,
|
|
244
|
-
Lithic::AuthRules::MerchantLockParameters::OrHash,
|
|
245
|
-
Lithic::AuthRules::Conditional3DSActionParameters::OrHash,
|
|
246
|
-
Lithic::AuthRules::ConditionalAuthorizationActionParameters::OrHash,
|
|
247
|
-
Lithic::AuthRules::ConditionalACHActionParameters::OrHash,
|
|
248
|
-
Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash
|
|
249
|
-
),
|
|
250
|
-
version: Integer
|
|
251
|
-
).returns(T.attached_class)
|
|
252
|
-
end
|
|
253
|
-
def self.new(
|
|
254
|
-
# Parameters for the Auth Rule
|
|
255
|
-
parameters:,
|
|
256
|
-
# The version of the rule, this is incremented whenever the rule's parameters
|
|
257
|
-
# change.
|
|
258
|
-
version:
|
|
259
|
-
)
|
|
260
|
-
end
|
|
261
|
-
|
|
262
|
-
sig do
|
|
263
|
-
override.returns(
|
|
264
|
-
{
|
|
265
|
-
parameters:
|
|
266
|
-
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::Variants,
|
|
267
|
-
version: Integer
|
|
268
|
-
}
|
|
269
|
-
)
|
|
270
|
-
end
|
|
271
|
-
def to_hash
|
|
272
|
-
end
|
|
273
|
-
|
|
274
|
-
# Parameters for the Auth Rule
|
|
275
|
-
module Parameters
|
|
276
|
-
extend Lithic::Internal::Type::Union
|
|
277
|
-
|
|
278
|
-
Variants =
|
|
279
|
-
T.type_alias do
|
|
280
|
-
T.any(
|
|
281
|
-
Lithic::AuthRules::ConditionalBlockParameters,
|
|
282
|
-
Lithic::AuthRules::VelocityLimitParams,
|
|
283
|
-
Lithic::AuthRules::MerchantLockParameters,
|
|
284
|
-
Lithic::AuthRules::Conditional3DSActionParameters,
|
|
285
|
-
Lithic::AuthRules::ConditionalAuthorizationActionParameters,
|
|
286
|
-
Lithic::AuthRules::ConditionalACHActionParameters,
|
|
287
|
-
Lithic::AuthRules::ConditionalTokenizationActionParameters
|
|
288
|
-
)
|
|
289
|
-
end
|
|
290
|
-
|
|
291
|
-
sig do
|
|
292
|
-
override.returns(
|
|
293
|
-
T::Array[
|
|
294
|
-
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::Variants
|
|
295
|
-
]
|
|
296
|
-
)
|
|
297
|
-
end
|
|
298
|
-
def self.variants
|
|
299
|
-
end
|
|
300
|
-
end
|
|
301
|
-
end
|
|
302
|
-
|
|
303
|
-
class DraftVersion < Lithic::Internal::Type::BaseModel
|
|
304
|
-
OrHash =
|
|
305
|
-
T.type_alias do
|
|
306
|
-
T.any(
|
|
307
|
-
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion,
|
|
308
|
-
Lithic::Internal::AnyHash
|
|
309
|
-
)
|
|
310
|
-
end
|
|
311
|
-
|
|
312
|
-
# Parameters for the Auth Rule
|
|
313
|
-
sig do
|
|
314
|
-
returns(
|
|
315
|
-
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::Variants
|
|
316
|
-
)
|
|
317
|
-
end
|
|
318
|
-
attr_accessor :parameters
|
|
319
|
-
|
|
320
|
-
# The version of the rule, this is incremented whenever the rule's parameters
|
|
321
|
-
# change.
|
|
322
|
-
sig { returns(Integer) }
|
|
323
|
-
attr_accessor :version
|
|
324
|
-
|
|
325
|
-
sig do
|
|
326
|
-
params(
|
|
327
|
-
parameters:
|
|
328
|
-
T.any(
|
|
329
|
-
Lithic::AuthRules::ConditionalBlockParameters::OrHash,
|
|
330
|
-
Lithic::AuthRules::VelocityLimitParams::OrHash,
|
|
331
|
-
Lithic::AuthRules::MerchantLockParameters::OrHash,
|
|
332
|
-
Lithic::AuthRules::Conditional3DSActionParameters::OrHash,
|
|
333
|
-
Lithic::AuthRules::ConditionalAuthorizationActionParameters::OrHash,
|
|
334
|
-
Lithic::AuthRules::ConditionalACHActionParameters::OrHash,
|
|
335
|
-
Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash
|
|
336
|
-
),
|
|
337
|
-
version: Integer
|
|
338
|
-
).returns(T.attached_class)
|
|
339
|
-
end
|
|
340
|
-
def self.new(
|
|
341
|
-
# Parameters for the Auth Rule
|
|
342
|
-
parameters:,
|
|
343
|
-
# The version of the rule, this is incremented whenever the rule's parameters
|
|
344
|
-
# change.
|
|
345
|
-
version:
|
|
346
|
-
)
|
|
347
|
-
end
|
|
348
|
-
|
|
349
|
-
sig do
|
|
350
|
-
override.returns(
|
|
351
|
-
{
|
|
352
|
-
parameters:
|
|
353
|
-
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::Variants,
|
|
354
|
-
version: Integer
|
|
355
|
-
}
|
|
356
|
-
)
|
|
357
|
-
end
|
|
358
|
-
def to_hash
|
|
359
|
-
end
|
|
360
|
-
|
|
361
|
-
# Parameters for the Auth Rule
|
|
362
|
-
module Parameters
|
|
363
|
-
extend Lithic::Internal::Type::Union
|
|
364
|
-
|
|
365
|
-
Variants =
|
|
366
|
-
T.type_alias do
|
|
367
|
-
T.any(
|
|
368
|
-
Lithic::AuthRules::ConditionalBlockParameters,
|
|
369
|
-
Lithic::AuthRules::VelocityLimitParams,
|
|
370
|
-
Lithic::AuthRules::MerchantLockParameters,
|
|
371
|
-
Lithic::AuthRules::Conditional3DSActionParameters,
|
|
372
|
-
Lithic::AuthRules::ConditionalAuthorizationActionParameters,
|
|
373
|
-
Lithic::AuthRules::ConditionalACHActionParameters,
|
|
374
|
-
Lithic::AuthRules::ConditionalTokenizationActionParameters
|
|
375
|
-
)
|
|
376
|
-
end
|
|
377
|
-
|
|
378
|
-
sig do
|
|
379
|
-
override.returns(
|
|
380
|
-
T::Array[
|
|
381
|
-
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::Variants
|
|
382
|
-
]
|
|
383
|
-
)
|
|
384
|
-
end
|
|
385
|
-
def self.variants
|
|
386
|
-
end
|
|
387
|
-
end
|
|
388
|
-
end
|
|
389
|
-
|
|
390
|
-
# The event stream during which the rule will be evaluated.
|
|
391
|
-
module EventStream
|
|
392
|
-
extend Lithic::Internal::Type::Enum
|
|
393
|
-
|
|
394
|
-
TaggedSymbol =
|
|
395
|
-
T.type_alias do
|
|
396
|
-
T.all(
|
|
397
|
-
Symbol,
|
|
398
|
-
Lithic::Models::AuthRules::V2PromoteResponse::EventStream
|
|
399
|
-
)
|
|
400
|
-
end
|
|
401
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
402
|
-
|
|
403
|
-
AUTHORIZATION =
|
|
404
|
-
T.let(
|
|
405
|
-
:AUTHORIZATION,
|
|
406
|
-
Lithic::Models::AuthRules::V2PromoteResponse::EventStream::TaggedSymbol
|
|
407
|
-
)
|
|
408
|
-
THREE_DS_AUTHENTICATION =
|
|
409
|
-
T.let(
|
|
410
|
-
:THREE_DS_AUTHENTICATION,
|
|
411
|
-
Lithic::Models::AuthRules::V2PromoteResponse::EventStream::TaggedSymbol
|
|
412
|
-
)
|
|
413
|
-
TOKENIZATION =
|
|
414
|
-
T.let(
|
|
415
|
-
:TOKENIZATION,
|
|
416
|
-
Lithic::Models::AuthRules::V2PromoteResponse::EventStream::TaggedSymbol
|
|
417
|
-
)
|
|
418
|
-
ACH_CREDIT_RECEIPT =
|
|
419
|
-
T.let(
|
|
420
|
-
:ACH_CREDIT_RECEIPT,
|
|
421
|
-
Lithic::Models::AuthRules::V2PromoteResponse::EventStream::TaggedSymbol
|
|
422
|
-
)
|
|
423
|
-
ACH_DEBIT_RECEIPT =
|
|
424
|
-
T.let(
|
|
425
|
-
:ACH_DEBIT_RECEIPT,
|
|
426
|
-
Lithic::Models::AuthRules::V2PromoteResponse::EventStream::TaggedSymbol
|
|
427
|
-
)
|
|
428
|
-
|
|
429
|
-
sig do
|
|
430
|
-
override.returns(
|
|
431
|
-
T::Array[
|
|
432
|
-
Lithic::Models::AuthRules::V2PromoteResponse::EventStream::TaggedSymbol
|
|
433
|
-
]
|
|
434
|
-
)
|
|
435
|
-
end
|
|
436
|
-
def self.values
|
|
437
|
-
end
|
|
438
|
-
end
|
|
439
|
-
|
|
440
|
-
# The state of the Auth Rule
|
|
441
|
-
module State
|
|
442
|
-
extend Lithic::Internal::Type::Enum
|
|
443
|
-
|
|
444
|
-
TaggedSymbol =
|
|
445
|
-
T.type_alias do
|
|
446
|
-
T.all(Symbol, Lithic::Models::AuthRules::V2PromoteResponse::State)
|
|
447
|
-
end
|
|
448
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
449
|
-
|
|
450
|
-
ACTIVE =
|
|
451
|
-
T.let(
|
|
452
|
-
:ACTIVE,
|
|
453
|
-
Lithic::Models::AuthRules::V2PromoteResponse::State::TaggedSymbol
|
|
454
|
-
)
|
|
455
|
-
INACTIVE =
|
|
456
|
-
T.let(
|
|
457
|
-
:INACTIVE,
|
|
458
|
-
Lithic::Models::AuthRules::V2PromoteResponse::State::TaggedSymbol
|
|
459
|
-
)
|
|
460
|
-
|
|
461
|
-
sig do
|
|
462
|
-
override.returns(
|
|
463
|
-
T::Array[
|
|
464
|
-
Lithic::Models::AuthRules::V2PromoteResponse::State::TaggedSymbol
|
|
465
|
-
]
|
|
466
|
-
)
|
|
467
|
-
end
|
|
468
|
-
def self.values
|
|
469
|
-
end
|
|
470
|
-
end
|
|
471
|
-
|
|
472
|
-
# The type of Auth Rule. For certain rule types, this determines the event stream
|
|
473
|
-
# during which it will be evaluated. For rules that can be applied to one of
|
|
474
|
-
# several event streams, the effective one is defined by the separate
|
|
475
|
-
# `event_stream` field.
|
|
476
|
-
#
|
|
477
|
-
# - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream.
|
|
478
|
-
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
|
|
479
|
-
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
|
480
|
-
# - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
481
|
-
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
482
|
-
module Type
|
|
483
|
-
extend Lithic::Internal::Type::Enum
|
|
484
|
-
|
|
485
|
-
TaggedSymbol =
|
|
486
|
-
T.type_alias do
|
|
487
|
-
T.all(Symbol, Lithic::Models::AuthRules::V2PromoteResponse::Type)
|
|
488
|
-
end
|
|
489
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
490
|
-
|
|
491
|
-
CONDITIONAL_BLOCK =
|
|
492
|
-
T.let(
|
|
493
|
-
:CONDITIONAL_BLOCK,
|
|
494
|
-
Lithic::Models::AuthRules::V2PromoteResponse::Type::TaggedSymbol
|
|
495
|
-
)
|
|
496
|
-
VELOCITY_LIMIT =
|
|
497
|
-
T.let(
|
|
498
|
-
:VELOCITY_LIMIT,
|
|
499
|
-
Lithic::Models::AuthRules::V2PromoteResponse::Type::TaggedSymbol
|
|
500
|
-
)
|
|
501
|
-
MERCHANT_LOCK =
|
|
502
|
-
T.let(
|
|
503
|
-
:MERCHANT_LOCK,
|
|
504
|
-
Lithic::Models::AuthRules::V2PromoteResponse::Type::TaggedSymbol
|
|
505
|
-
)
|
|
506
|
-
CONDITIONAL_ACTION =
|
|
507
|
-
T.let(
|
|
508
|
-
:CONDITIONAL_ACTION,
|
|
509
|
-
Lithic::Models::AuthRules::V2PromoteResponse::Type::TaggedSymbol
|
|
510
|
-
)
|
|
511
|
-
|
|
512
|
-
sig do
|
|
513
|
-
override.returns(
|
|
514
|
-
T::Array[
|
|
515
|
-
Lithic::Models::AuthRules::V2PromoteResponse::Type::TaggedSymbol
|
|
516
|
-
]
|
|
517
|
-
)
|
|
518
|
-
end
|
|
519
|
-
def self.values
|
|
520
|
-
end
|
|
521
|
-
end
|
|
522
|
-
end
|
|
523
|
-
end
|
|
524
|
-
end
|
|
525
|
-
end
|