lithic 0.21.0 → 0.22.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 +19 -0
- data/README.md +1 -10
- data/lib/lithic/internal/type/union.rb +21 -7
- data/lib/lithic/models/account_holder_create_params.rb +4 -2
- data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +120 -66
- data/lib/lithic/models/account_holder_update_params.rb +6 -3
- data/lib/lithic/models/account_holder_update_response.rb +156 -86
- data/lib/lithic/models/account_holder_updated_webhook_event.rb +120 -66
- data/lib/lithic/models/account_holders/account_holder_entity.rb +35 -19
- data/lib/lithic/models/account_holders/entity_create_params.rb +39 -21
- data/lib/lithic/models/address.rb +33 -19
- data/lib/lithic/models/address_update.rb +27 -11
- data/lib/lithic/models/auth_rules/auth_rule.rb +55 -27
- data/lib/lithic/models/auth_rules/auth_rule_condition.rb +189 -6
- data/lib/lithic/models/auth_rules/auth_rule_entities.rb +47 -0
- data/lib/lithic/models/auth_rules/auth_rule_entities_response.rb +31 -0
- data/lib/lithic/models/auth_rules/auth_rule_entity.rb +150 -0
- data/lib/lithic/models/auth_rules/auth_rule_version.rb +3 -6
- data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +33 -6
- data/lib/lithic/models/auth_rules/conditional_attribute.rb +101 -5
- data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +3 -439
- data/lib/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rb +7 -0
- data/lib/lithic/models/auth_rules/merchant_lock_parameters.rb +11 -1
- data/lib/lithic/models/auth_rules/v2_create_params.rb +203 -45
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +3 -6
- data/lib/lithic/models/auth_rules/v2_list_params.rb +5 -3
- data/lib/lithic/models/auth_rules/v2_update_entities_params.rb +39 -0
- data/lib/lithic/models/auth_rules/v2_update_params.rb +133 -12
- data/lib/lithic/models/card_authorization.rb +11 -1
- data/lib/lithic/models/card_create_params.rb +11 -1
- data/lib/lithic/models/card_update_params.rb +12 -1
- data/lib/lithic/models/financial_accounts/installment_plans/installment_plan_statement.rb +279 -0
- data/lib/lithic/models/financial_accounts/installment_plans/statement_list_params.rb +106 -0
- data/lib/lithic/models/financial_accounts/installment_plans/statement_retrieve_params.rb +42 -0
- data/lib/lithic/models/financial_accounts/loan_tape.rb +62 -1
- data/lib/lithic/models/kyb.rb +4 -2
- data/lib/lithic/models/kyb_business_entity.rb +35 -19
- data/lib/lithic/models/kyc.rb +2 -1
- data/lib/lithic/models/non_pci_card.rb +11 -1
- data/lib/lithic/models/parsed_webhook_event.rb +120 -66
- data/lib/lithic/models/payment.rb +2 -1
- data/lib/lithic/models/transaction.rb +2 -1
- data/lib/lithic/models/transaction_simulate_authorization_params.rb +28 -4
- data/lib/lithic/models/transaction_simulate_credit_authorization_advice_params.rb +11 -1
- data/lib/lithic/models/transaction_simulate_return_params.rb +24 -1
- data/lib/lithic/resources/auth_rules/v2/backtests.rb +8 -8
- data/lib/lithic/resources/auth_rules/v2.rb +44 -8
- data/lib/lithic/resources/cards.rb +6 -2
- data/lib/lithic/resources/financial_accounts/installment_plans/statements.rb +107 -0
- data/lib/lithic/resources/financial_accounts/installment_plans.rb +4 -0
- data/lib/lithic/resources/transactions.rb +17 -4
- data/lib/lithic/resources/webhooks.rb +18 -0
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +8 -1
- data/rbi/lithic/models/account_holder_create_params.rbi +8 -4
- data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +195 -90
- data/rbi/lithic/models/account_holder_update_params.rbi +12 -6
- data/rbi/lithic/models/account_holder_update_response.rbi +254 -117
- data/rbi/lithic/models/account_holder_updated_webhook_event.rbi +195 -90
- data/rbi/lithic/models/account_holders/account_holder_entity.rbi +59 -27
- data/rbi/lithic/models/account_holders/entity_create_params.rbi +65 -30
- data/rbi/lithic/models/address.rbi +57 -29
- data/rbi/lithic/models/address_update.rbi +50 -24
- data/rbi/lithic/models/auth_rules/auth_rule.rbi +53 -19
- data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +442 -13
- data/rbi/lithic/models/auth_rules/auth_rule_entities.rbi +163 -0
- data/rbi/lithic/models/auth_rules/auth_rule_entities_response.rbi +72 -0
- data/rbi/lithic/models/auth_rules/auth_rule_entity.rbi +199 -0
- data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +0 -2
- data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +67 -9
- data/rbi/lithic/models/auth_rules/conditional_attribute.rbi +193 -5
- data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +3 -939
- data/rbi/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbi +14 -0
- data/rbi/lithic/models/auth_rules/merchant_lock_parameters.rbi +14 -3
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +325 -50
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +0 -4
- data/rbi/lithic/models/auth_rules/v2_list_params.rbi +6 -3
- data/rbi/lithic/models/auth_rules/v2_update_entities_params.rbi +68 -0
- data/rbi/lithic/models/auth_rules/v2_update_params.rbi +198 -5
- data/rbi/lithic/models/card_authorization.rbi +12 -0
- data/rbi/lithic/models/card_create_params.rbi +15 -0
- data/rbi/lithic/models/card_update_params.rbi +17 -0
- data/rbi/lithic/models/financial_accounts/installment_plans/installment_plan_statement.rbi +452 -0
- data/rbi/lithic/models/financial_accounts/installment_plans/statement_list_params.rbi +191 -0
- data/rbi/lithic/models/financial_accounts/installment_plans/statement_retrieve_params.rbi +66 -0
- data/rbi/lithic/models/financial_accounts/loan_tape.rbi +119 -0
- data/rbi/lithic/models/kyb.rbi +8 -4
- data/rbi/lithic/models/kyb_business_entity.rbi +59 -27
- data/rbi/lithic/models/kyc.rbi +4 -2
- data/rbi/lithic/models/non_pci_card.rbi +12 -0
- data/rbi/lithic/models/parsed_webhook_event.rbi +195 -90
- data/rbi/lithic/models/payment.rbi +4 -2
- data/rbi/lithic/models/transaction.rbi +4 -2
- data/rbi/lithic/models/transaction_simulate_authorization_params.rbi +42 -4
- data/rbi/lithic/models/transaction_simulate_credit_authorization_advice_params.rbi +15 -0
- data/rbi/lithic/models/transaction_simulate_return_params.rbi +30 -0
- data/rbi/lithic/resources/account_holders/entities.rbi +2 -1
- data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +8 -8
- data/rbi/lithic/resources/auth_rules/v2.rbi +43 -8
- data/rbi/lithic/resources/cards.rbi +11 -0
- data/rbi/lithic/resources/financial_accounts/installment_plans/statements.rbi +86 -0
- data/rbi/lithic/resources/financial_accounts/installment_plans.rbi +7 -0
- data/rbi/lithic/resources/transactions.rbi +31 -2
- data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +39 -39
- data/sig/lithic/models/account_holder_update_response.rbs +52 -52
- data/sig/lithic/models/account_holder_updated_webhook_event.rbs +39 -39
- data/sig/lithic/models/account_holders/account_holder_entity.rbs +13 -13
- data/sig/lithic/models/account_holders/entity_create_params.rbs +13 -13
- data/sig/lithic/models/address.rbs +13 -13
- data/sig/lithic/models/address_update.rbs +8 -12
- data/sig/lithic/models/auth_rules/auth_rule.rbs +8 -7
- data/sig/lithic/models/auth_rules/auth_rule_condition.rbs +89 -3
- data/sig/lithic/models/auth_rules/auth_rule_entities.rbs +37 -0
- data/sig/lithic/models/auth_rules/auth_rule_entities_response.rbs +29 -0
- data/sig/lithic/models/auth_rules/auth_rule_entity.rbs +80 -0
- data/sig/lithic/models/auth_rules/auth_rule_version.rbs +1 -2
- data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +10 -0
- data/sig/lithic/models/auth_rules/conditional_attribute.rbs +46 -0
- data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +4 -204
- data/sig/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbs +2 -0
- data/sig/lithic/models/auth_rules/merchant_lock_parameters.rbs +10 -3
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +86 -16
- data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -2
- data/sig/lithic/models/auth_rules/v2_update_entities_params.rbs +46 -0
- data/sig/lithic/models/auth_rules/v2_update_params.rbs +47 -1
- data/sig/lithic/models/card_authorization.rbs +5 -0
- data/sig/lithic/models/card_create_params.rbs +7 -0
- data/sig/lithic/models/card_update_params.rbs +8 -1
- data/sig/lithic/models/financial_accounts/installment_plans/installment_plan_statement.rbs +191 -0
- data/sig/lithic/models/financial_accounts/installment_plans/statement_list_params.rbs +90 -0
- data/sig/lithic/models/financial_accounts/installment_plans/statement_retrieve_params.rbs +40 -0
- data/sig/lithic/models/financial_accounts/loan_tape.rbs +47 -0
- data/sig/lithic/models/kyb_business_entity.rbs +13 -13
- data/sig/lithic/models/non_pci_card.rbs +5 -0
- data/sig/lithic/models/parsed_webhook_event.rbs +39 -39
- data/sig/lithic/models/transaction_simulate_authorization_params.rbs +14 -0
- data/sig/lithic/models/transaction_simulate_credit_authorization_advice_params.rbs +7 -0
- data/sig/lithic/models/transaction_simulate_return_params.rbs +19 -1
- data/sig/lithic/resources/auth_rules/v2.rbs +7 -0
- data/sig/lithic/resources/cards.rbs +2 -0
- data/sig/lithic/resources/financial_accounts/installment_plans/statements.rbs +30 -0
- data/sig/lithic/resources/financial_accounts/installment_plans.rbs +2 -0
- data/sig/lithic/resources/transactions.rbs +5 -0
- metadata +26 -5
- data/lib/lithic/models/auth_rules/conditional_block_parameters.rb +0 -20
- data/rbi/lithic/models/auth_rules/conditional_block_parameters.rbi +0 -37
- data/sig/lithic/models/auth_rules/conditional_block_parameters.rbs +0 -20
|
@@ -9,28 +9,172 @@ module Lithic
|
|
|
9
9
|
include Lithic::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
11
|
# @!attribute body
|
|
12
|
+
# Deprecated: Use `entities` instead. Cannot be combined with `entities`.
|
|
12
13
|
#
|
|
13
|
-
# @return [Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule, Lithic::Models::AuthRules::V2CreateParams::Body::CardLevelRule, Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule]
|
|
14
|
+
# @return [Lithic::Models::AuthRules::V2CreateParams::Body::Rule, Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule, Lithic::Models::AuthRules::V2CreateParams::Body::CardLevelRule, Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule]
|
|
14
15
|
required :body, union: -> { Lithic::AuthRules::V2CreateParams::Body }
|
|
15
16
|
|
|
16
17
|
# @!method initialize(body:, request_options: {})
|
|
17
|
-
# @param body [Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule, Lithic::Models::AuthRules::V2CreateParams::Body::CardLevelRule, Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule]
|
|
18
|
+
# @param body [Lithic::Models::AuthRules::V2CreateParams::Body::Rule, Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule, Lithic::Models::AuthRules::V2CreateParams::Body::CardLevelRule, Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule] Deprecated: Use `entities` instead. Cannot be combined with `entities`.
|
|
19
|
+
#
|
|
18
20
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
|
|
19
21
|
|
|
22
|
+
# Deprecated: Use `entities` instead. Cannot be combined with `entities`.
|
|
20
23
|
module Body
|
|
21
24
|
extend Lithic::Internal::Type::Union
|
|
22
25
|
|
|
26
|
+
variant -> { Lithic::AuthRules::V2CreateParams::Body::Rule }
|
|
27
|
+
|
|
28
|
+
# Deprecated: Use `entities` instead. Cannot be combined with `entities`.
|
|
23
29
|
variant -> { Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule }
|
|
24
30
|
|
|
31
|
+
# Deprecated: Use `entities` instead. Cannot be combined with `entities`.
|
|
25
32
|
variant -> { Lithic::AuthRules::V2CreateParams::Body::CardLevelRule }
|
|
26
33
|
|
|
34
|
+
# Deprecated: Use `entities` instead. Cannot be combined with `entities`.
|
|
27
35
|
variant -> { Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule }
|
|
28
36
|
|
|
37
|
+
class Rule < Lithic::Internal::Type::BaseModel
|
|
38
|
+
# @!attribute entities
|
|
39
|
+
# The entities an Auth Rule applies to (`include`) and does not apply to
|
|
40
|
+
# (`exclude`). An exclusion overrides an inclusion, so a card excluded here is
|
|
41
|
+
# skipped even when the program, its account or one of its tags is included.
|
|
42
|
+
#
|
|
43
|
+
# The rule's resulting entities must satisfy these constraints after any write:
|
|
44
|
+
#
|
|
45
|
+
# - `include` must contain at least one entity.
|
|
46
|
+
# - If `PROGRAM` is included, it must be the only included entity.
|
|
47
|
+
# - `PROGRAM` cannot be excluded.
|
|
48
|
+
# - An entity cannot appear in both `include` and `exclude`, or twice in the same
|
|
49
|
+
# list.
|
|
50
|
+
# - A rule can have at most 1,000 entities across `include` and `exclude`, not
|
|
51
|
+
# counting `PROGRAM`.
|
|
52
|
+
# - Entity types must be valid for the rule's event stream.
|
|
53
|
+
# - `CARD`, `ACCOUNT` and `BUSINESS_ACCOUNT` tokens must belong to your program.
|
|
54
|
+
#
|
|
55
|
+
# @return [Lithic::Models::AuthRules::AuthRuleEntities]
|
|
56
|
+
required :entities, -> { Lithic::AuthRules::AuthRuleEntities }
|
|
57
|
+
|
|
58
|
+
# @!attribute parameters
|
|
59
|
+
# Parameters for the Auth Rule
|
|
60
|
+
#
|
|
61
|
+
# @return [Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters]
|
|
62
|
+
required :parameters, union: -> { Lithic::AuthRules::V2CreateParams::Body::Rule::Parameters }
|
|
63
|
+
|
|
64
|
+
# @!attribute type
|
|
65
|
+
# The type of Auth Rule. For certain rule types, this determines the event stream
|
|
66
|
+
# during which it will be evaluated. For rules that can be applied to one of
|
|
67
|
+
# several event streams, the effective one is defined by the separate
|
|
68
|
+
# `event_stream` field.
|
|
69
|
+
#
|
|
70
|
+
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
|
|
71
|
+
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
|
72
|
+
# - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
73
|
+
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
|
|
74
|
+
# ACH_PAYMENT_UPDATE event stream.
|
|
75
|
+
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
76
|
+
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
|
|
77
|
+
# ACH_PAYMENT_UPDATE event stream.
|
|
78
|
+
# - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
|
|
79
|
+
# are read-only; `OTHER` cannot be used when creating a rule.
|
|
80
|
+
#
|
|
81
|
+
# @return [Symbol, Lithic::Models::AuthRules::V2CreateParams::Body::Rule::Type]
|
|
82
|
+
required :type, enum: -> { Lithic::AuthRules::V2CreateParams::Body::Rule::Type }
|
|
83
|
+
|
|
84
|
+
# @!attribute event_stream
|
|
85
|
+
# The event stream during which the rule will be evaluated.
|
|
86
|
+
#
|
|
87
|
+
# @return [Symbol, Lithic::Models::AuthRules::EventStream, nil]
|
|
88
|
+
optional :event_stream, enum: -> { Lithic::AuthRules::EventStream }
|
|
89
|
+
|
|
90
|
+
# @!attribute name
|
|
91
|
+
# Auth Rule Name
|
|
92
|
+
#
|
|
93
|
+
# @return [String, nil]
|
|
94
|
+
optional :name, String, nil?: true
|
|
95
|
+
|
|
96
|
+
# @!method initialize(entities:, parameters:, type:, event_stream: nil, name: nil)
|
|
97
|
+
# Some parameter documentations has been truncated, see
|
|
98
|
+
# {Lithic::Models::AuthRules::V2CreateParams::Body::Rule} for more details.
|
|
99
|
+
#
|
|
100
|
+
# @param entities [Lithic::Models::AuthRules::AuthRuleEntities] The entities an Auth Rule applies to (`include`) and does not apply to (`exclude
|
|
101
|
+
#
|
|
102
|
+
# @param parameters [Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters] Parameters for the Auth Rule
|
|
103
|
+
#
|
|
104
|
+
# @param type [Symbol, Lithic::Models::AuthRules::V2CreateParams::Body::Rule::Type] The type of Auth Rule. For certain rule types, this determines the event stream
|
|
105
|
+
#
|
|
106
|
+
# @param event_stream [Symbol, Lithic::Models::AuthRules::EventStream] The event stream during which the rule will be evaluated.
|
|
107
|
+
#
|
|
108
|
+
# @param name [String, nil] Auth Rule Name
|
|
109
|
+
|
|
110
|
+
# Parameters for the Auth Rule
|
|
111
|
+
#
|
|
112
|
+
# @see Lithic::Models::AuthRules::V2CreateParams::Body::Rule#parameters
|
|
113
|
+
module Parameters
|
|
114
|
+
extend Lithic::Internal::Type::Union
|
|
115
|
+
|
|
116
|
+
variant -> { Lithic::AuthRules::VelocityLimitParams }
|
|
117
|
+
|
|
118
|
+
variant -> { Lithic::AuthRules::MerchantLockParameters }
|
|
119
|
+
|
|
120
|
+
variant -> { Lithic::AuthRules::Conditional3DSActionParameters }
|
|
121
|
+
|
|
122
|
+
variant -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters }
|
|
123
|
+
|
|
124
|
+
variant -> { Lithic::AuthRules::ConditionalACHActionParameters }
|
|
125
|
+
|
|
126
|
+
variant -> { Lithic::AuthRules::ConditionalTokenizationActionParameters }
|
|
127
|
+
|
|
128
|
+
variant -> { Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters }
|
|
129
|
+
|
|
130
|
+
variant -> { Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters }
|
|
131
|
+
|
|
132
|
+
# Parameters for defining a TypeScript code rule
|
|
133
|
+
variant -> { Lithic::AuthRules::TypescriptCodeParameters }
|
|
134
|
+
|
|
135
|
+
variant -> { Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters }
|
|
136
|
+
|
|
137
|
+
# @!method self.variants
|
|
138
|
+
# @return [Array(Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters)]
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
# The type of Auth Rule. For certain rule types, this determines the event stream
|
|
142
|
+
# during which it will be evaluated. For rules that can be applied to one of
|
|
143
|
+
# several event streams, the effective one is defined by the separate
|
|
144
|
+
# `event_stream` field.
|
|
145
|
+
#
|
|
146
|
+
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
|
|
147
|
+
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
|
148
|
+
# - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
149
|
+
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
|
|
150
|
+
# ACH_PAYMENT_UPDATE event stream.
|
|
151
|
+
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
152
|
+
# ACH_CREDIT_RECEIPT, ACH_DEBIT_RECEIPT, CARD_TRANSACTION_UPDATE, or
|
|
153
|
+
# ACH_PAYMENT_UPDATE event stream.
|
|
154
|
+
# - `OTHER`: A rule whose type is not exposed through this API. Rules of this type
|
|
155
|
+
# are read-only; `OTHER` cannot be used when creating a rule.
|
|
156
|
+
#
|
|
157
|
+
# @see Lithic::Models::AuthRules::V2CreateParams::Body::Rule#type
|
|
158
|
+
module Type
|
|
159
|
+
extend Lithic::Internal::Type::Enum
|
|
160
|
+
|
|
161
|
+
VELOCITY_LIMIT = :VELOCITY_LIMIT
|
|
162
|
+
MERCHANT_LOCK = :MERCHANT_LOCK
|
|
163
|
+
CONDITIONAL_ACTION = :CONDITIONAL_ACTION
|
|
164
|
+
TYPESCRIPT_CODE = :TYPESCRIPT_CODE
|
|
165
|
+
OTHER = :OTHER
|
|
166
|
+
|
|
167
|
+
# @!method self.values
|
|
168
|
+
# @return [Array<Symbol>]
|
|
169
|
+
end
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# @deprecated
|
|
29
173
|
class AccountLevelRule < Lithic::Internal::Type::BaseModel
|
|
30
174
|
# @!attribute parameters
|
|
31
175
|
# Parameters for the Auth Rule
|
|
32
176
|
#
|
|
33
|
-
# @return [Lithic::Models::AuthRules::
|
|
177
|
+
# @return [Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters]
|
|
34
178
|
required :parameters, union: -> { Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Parameters }
|
|
35
179
|
|
|
36
180
|
# @!attribute type
|
|
@@ -39,8 +183,6 @@ module Lithic
|
|
|
39
183
|
# several event streams, the effective one is defined by the separate
|
|
40
184
|
# `event_stream` field.
|
|
41
185
|
#
|
|
42
|
-
# - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
|
|
43
|
-
# AUTHORIZATION event stream.
|
|
44
186
|
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
|
|
45
187
|
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
|
46
188
|
# - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
@@ -56,12 +198,20 @@ module Lithic
|
|
|
56
198
|
required :type, enum: -> { Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type }
|
|
57
199
|
|
|
58
200
|
# @!attribute account_tokens
|
|
201
|
+
# @deprecated
|
|
202
|
+
#
|
|
203
|
+
# Deprecated: Use `entities.include` with `ACCOUNT` entities instead.
|
|
204
|
+
#
|
|
59
205
|
# Account tokens to which the Auth Rule applies.
|
|
60
206
|
#
|
|
61
207
|
# @return [Array<String>, nil]
|
|
62
208
|
optional :account_tokens, Lithic::Internal::Type::ArrayOf[String]
|
|
63
209
|
|
|
64
210
|
# @!attribute business_account_tokens
|
|
211
|
+
# @deprecated
|
|
212
|
+
#
|
|
213
|
+
# Deprecated: Use `entities.include` with `BUSINESS_ACCOUNT` entities instead.
|
|
214
|
+
#
|
|
65
215
|
# Business Account tokens to which the Auth Rule applies.
|
|
66
216
|
#
|
|
67
217
|
# @return [Array<String>, nil]
|
|
@@ -84,13 +234,15 @@ module Lithic
|
|
|
84
234
|
# {Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule} for more
|
|
85
235
|
# details.
|
|
86
236
|
#
|
|
87
|
-
#
|
|
237
|
+
# Deprecated: Use `entities` instead. Cannot be combined with `entities`.
|
|
238
|
+
#
|
|
239
|
+
# @param parameters [Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters] Parameters for the Auth Rule
|
|
88
240
|
#
|
|
89
241
|
# @param type [Symbol, Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule::Type] The type of Auth Rule. For certain rule types, this determines the event stream
|
|
90
242
|
#
|
|
91
|
-
# @param account_tokens [Array<String>]
|
|
243
|
+
# @param account_tokens [Array<String>] Deprecated: Use `entities.include` with `ACCOUNT` entities instead.
|
|
92
244
|
#
|
|
93
|
-
# @param business_account_tokens [Array<String>]
|
|
245
|
+
# @param business_account_tokens [Array<String>] Deprecated: Use `entities.include` with `BUSINESS_ACCOUNT` entities instead.
|
|
94
246
|
#
|
|
95
247
|
# @param event_stream [Symbol, Lithic::Models::AuthRules::EventStream] The event stream during which the rule will be evaluated.
|
|
96
248
|
#
|
|
@@ -102,9 +254,6 @@ module Lithic
|
|
|
102
254
|
module Parameters
|
|
103
255
|
extend Lithic::Internal::Type::Union
|
|
104
256
|
|
|
105
|
-
# Deprecated: Use CONDITIONAL_ACTION instead.
|
|
106
|
-
variant -> { Lithic::AuthRules::ConditionalBlockParameters }
|
|
107
|
-
|
|
108
257
|
variant -> { Lithic::AuthRules::VelocityLimitParams }
|
|
109
258
|
|
|
110
259
|
variant -> { Lithic::AuthRules::MerchantLockParameters }
|
|
@@ -127,7 +276,7 @@ module Lithic
|
|
|
127
276
|
variant -> { Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters }
|
|
128
277
|
|
|
129
278
|
# @!method self.variants
|
|
130
|
-
# @return [Array(Lithic::Models::AuthRules::
|
|
279
|
+
# @return [Array(Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters)]
|
|
131
280
|
end
|
|
132
281
|
|
|
133
282
|
# The type of Auth Rule. For certain rule types, this determines the event stream
|
|
@@ -135,8 +284,6 @@ module Lithic
|
|
|
135
284
|
# several event streams, the effective one is defined by the separate
|
|
136
285
|
# `event_stream` field.
|
|
137
286
|
#
|
|
138
|
-
# - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
|
|
139
|
-
# AUTHORIZATION event stream.
|
|
140
287
|
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
|
|
141
288
|
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
|
142
289
|
# - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
@@ -152,7 +299,6 @@ module Lithic
|
|
|
152
299
|
module Type
|
|
153
300
|
extend Lithic::Internal::Type::Enum
|
|
154
301
|
|
|
155
|
-
CONDITIONAL_BLOCK = :CONDITIONAL_BLOCK
|
|
156
302
|
VELOCITY_LIMIT = :VELOCITY_LIMIT
|
|
157
303
|
MERCHANT_LOCK = :MERCHANT_LOCK
|
|
158
304
|
CONDITIONAL_ACTION = :CONDITIONAL_ACTION
|
|
@@ -164,9 +310,15 @@ module Lithic
|
|
|
164
310
|
end
|
|
165
311
|
end
|
|
166
312
|
|
|
313
|
+
# @deprecated
|
|
167
314
|
class CardLevelRule < Lithic::Internal::Type::BaseModel
|
|
168
315
|
# @!attribute card_tokens
|
|
169
|
-
#
|
|
316
|
+
# @deprecated
|
|
317
|
+
#
|
|
318
|
+
# Deprecated: Use `entities.include` with `CARD` entities instead.
|
|
319
|
+
#
|
|
320
|
+
# Card tokens to which the Auth Rule applies. Cards the rule applies to through a
|
|
321
|
+
# `CARD_TAG` entity are not listed.
|
|
170
322
|
#
|
|
171
323
|
# @return [Array<String>]
|
|
172
324
|
required :card_tokens, Lithic::Internal::Type::ArrayOf[String]
|
|
@@ -174,7 +326,7 @@ module Lithic
|
|
|
174
326
|
# @!attribute parameters
|
|
175
327
|
# Parameters for the Auth Rule
|
|
176
328
|
#
|
|
177
|
-
# @return [Lithic::Models::AuthRules::
|
|
329
|
+
# @return [Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters]
|
|
178
330
|
required :parameters, union: -> { Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Parameters }
|
|
179
331
|
|
|
180
332
|
# @!attribute type
|
|
@@ -183,8 +335,6 @@ module Lithic
|
|
|
183
335
|
# several event streams, the effective one is defined by the separate
|
|
184
336
|
# `event_stream` field.
|
|
185
337
|
#
|
|
186
|
-
# - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
|
|
187
|
-
# AUTHORIZATION event stream.
|
|
188
338
|
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
|
|
189
339
|
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
|
190
340
|
# - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
@@ -216,9 +366,11 @@ module Lithic
|
|
|
216
366
|
# {Lithic::Models::AuthRules::V2CreateParams::Body::CardLevelRule} for more
|
|
217
367
|
# details.
|
|
218
368
|
#
|
|
219
|
-
#
|
|
369
|
+
# Deprecated: Use `entities` instead. Cannot be combined with `entities`.
|
|
220
370
|
#
|
|
221
|
-
# @param
|
|
371
|
+
# @param card_tokens [Array<String>] Deprecated: Use `entities.include` with `CARD` entities instead.
|
|
372
|
+
#
|
|
373
|
+
# @param parameters [Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters] Parameters for the Auth Rule
|
|
222
374
|
#
|
|
223
375
|
# @param type [Symbol, Lithic::Models::AuthRules::V2CreateParams::Body::CardLevelRule::Type] The type of Auth Rule. For certain rule types, this determines the event stream
|
|
224
376
|
#
|
|
@@ -232,9 +384,6 @@ module Lithic
|
|
|
232
384
|
module Parameters
|
|
233
385
|
extend Lithic::Internal::Type::Union
|
|
234
386
|
|
|
235
|
-
# Deprecated: Use CONDITIONAL_ACTION instead.
|
|
236
|
-
variant -> { Lithic::AuthRules::ConditionalBlockParameters }
|
|
237
|
-
|
|
238
387
|
variant -> { Lithic::AuthRules::VelocityLimitParams }
|
|
239
388
|
|
|
240
389
|
variant -> { Lithic::AuthRules::MerchantLockParameters }
|
|
@@ -257,7 +406,7 @@ module Lithic
|
|
|
257
406
|
variant -> { Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters }
|
|
258
407
|
|
|
259
408
|
# @!method self.variants
|
|
260
|
-
# @return [Array(Lithic::Models::AuthRules::
|
|
409
|
+
# @return [Array(Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters)]
|
|
261
410
|
end
|
|
262
411
|
|
|
263
412
|
# The type of Auth Rule. For certain rule types, this determines the event stream
|
|
@@ -265,8 +414,6 @@ module Lithic
|
|
|
265
414
|
# several event streams, the effective one is defined by the separate
|
|
266
415
|
# `event_stream` field.
|
|
267
416
|
#
|
|
268
|
-
# - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
|
|
269
|
-
# AUTHORIZATION event stream.
|
|
270
417
|
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
|
|
271
418
|
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
|
272
419
|
# - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
@@ -282,7 +429,6 @@ module Lithic
|
|
|
282
429
|
module Type
|
|
283
430
|
extend Lithic::Internal::Type::Enum
|
|
284
431
|
|
|
285
|
-
CONDITIONAL_BLOCK = :CONDITIONAL_BLOCK
|
|
286
432
|
VELOCITY_LIMIT = :VELOCITY_LIMIT
|
|
287
433
|
MERCHANT_LOCK = :MERCHANT_LOCK
|
|
288
434
|
CONDITIONAL_ACTION = :CONDITIONAL_ACTION
|
|
@@ -294,14 +440,19 @@ module Lithic
|
|
|
294
440
|
end
|
|
295
441
|
end
|
|
296
442
|
|
|
443
|
+
# @deprecated
|
|
297
444
|
class ProgramLevelRule < Lithic::Internal::Type::BaseModel
|
|
298
445
|
# @!attribute parameters
|
|
299
446
|
# Parameters for the Auth Rule
|
|
300
447
|
#
|
|
301
|
-
# @return [Lithic::Models::AuthRules::
|
|
448
|
+
# @return [Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters]
|
|
302
449
|
required :parameters, union: -> { Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Parameters }
|
|
303
450
|
|
|
304
451
|
# @!attribute program_level
|
|
452
|
+
# @deprecated
|
|
453
|
+
#
|
|
454
|
+
# Deprecated: Use `entities.include` with a `PROGRAM` entity instead.
|
|
455
|
+
#
|
|
305
456
|
# Whether the Auth Rule applies to all authorizations on the card program.
|
|
306
457
|
#
|
|
307
458
|
# @return [Boolean]
|
|
@@ -313,8 +464,6 @@ module Lithic
|
|
|
313
464
|
# several event streams, the effective one is defined by the separate
|
|
314
465
|
# `event_stream` field.
|
|
315
466
|
#
|
|
316
|
-
# - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
|
|
317
|
-
# AUTHORIZATION event stream.
|
|
318
467
|
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
|
|
319
468
|
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
|
320
469
|
# - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
@@ -336,19 +485,32 @@ module Lithic
|
|
|
336
485
|
optional :event_stream, enum: -> { Lithic::AuthRules::EventStream }
|
|
337
486
|
|
|
338
487
|
# @!attribute excluded_account_tokens
|
|
488
|
+
# @deprecated
|
|
489
|
+
#
|
|
490
|
+
# Deprecated: Use `entities.exclude` with `ACCOUNT` entities instead.
|
|
491
|
+
#
|
|
339
492
|
# Account tokens to which the Auth Rule does not apply.
|
|
340
493
|
#
|
|
341
494
|
# @return [Array<String>, nil]
|
|
342
495
|
optional :excluded_account_tokens, Lithic::Internal::Type::ArrayOf[String]
|
|
343
496
|
|
|
344
497
|
# @!attribute excluded_business_account_tokens
|
|
498
|
+
# @deprecated
|
|
499
|
+
#
|
|
500
|
+
# Deprecated: Use `entities.exclude` with `BUSINESS_ACCOUNT` entities instead.
|
|
501
|
+
#
|
|
345
502
|
# Business account tokens to which the Auth Rule does not apply.
|
|
346
503
|
#
|
|
347
504
|
# @return [Array<String>, nil]
|
|
348
505
|
optional :excluded_business_account_tokens, Lithic::Internal::Type::ArrayOf[String]
|
|
349
506
|
|
|
350
507
|
# @!attribute excluded_card_tokens
|
|
351
|
-
#
|
|
508
|
+
# @deprecated
|
|
509
|
+
#
|
|
510
|
+
# Deprecated: Use `entities.exclude` with `CARD` entities instead.
|
|
511
|
+
#
|
|
512
|
+
# Card tokens to which the Auth Rule does not apply. Cards excluded through a
|
|
513
|
+
# `CARD_TAG` entity are not listed.
|
|
352
514
|
#
|
|
353
515
|
# @return [Array<String>, nil]
|
|
354
516
|
optional :excluded_card_tokens, Lithic::Internal::Type::ArrayOf[String]
|
|
@@ -364,19 +526,21 @@ module Lithic
|
|
|
364
526
|
# {Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule} for more
|
|
365
527
|
# details.
|
|
366
528
|
#
|
|
367
|
-
#
|
|
529
|
+
# Deprecated: Use `entities` instead. Cannot be combined with `entities`.
|
|
368
530
|
#
|
|
369
|
-
# @param
|
|
531
|
+
# @param parameters [Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters] Parameters for the Auth Rule
|
|
532
|
+
#
|
|
533
|
+
# @param program_level [Boolean] Deprecated: Use `entities.include` with a `PROGRAM` entity instead.
|
|
370
534
|
#
|
|
371
535
|
# @param type [Symbol, Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type] The type of Auth Rule. For certain rule types, this determines the event stream
|
|
372
536
|
#
|
|
373
537
|
# @param event_stream [Symbol, Lithic::Models::AuthRules::EventStream] The event stream during which the rule will be evaluated.
|
|
374
538
|
#
|
|
375
|
-
# @param excluded_account_tokens [Array<String>]
|
|
539
|
+
# @param excluded_account_tokens [Array<String>] Deprecated: Use `entities.exclude` with `ACCOUNT` entities instead.
|
|
376
540
|
#
|
|
377
|
-
# @param excluded_business_account_tokens [Array<String>]
|
|
541
|
+
# @param excluded_business_account_tokens [Array<String>] Deprecated: Use `entities.exclude` with `BUSINESS_ACCOUNT` entities instead.
|
|
378
542
|
#
|
|
379
|
-
# @param excluded_card_tokens [Array<String>]
|
|
543
|
+
# @param excluded_card_tokens [Array<String>] Deprecated: Use `entities.exclude` with `CARD` entities instead.
|
|
380
544
|
#
|
|
381
545
|
# @param name [String, nil] Auth Rule Name
|
|
382
546
|
|
|
@@ -386,9 +550,6 @@ module Lithic
|
|
|
386
550
|
module Parameters
|
|
387
551
|
extend Lithic::Internal::Type::Union
|
|
388
552
|
|
|
389
|
-
# Deprecated: Use CONDITIONAL_ACTION instead.
|
|
390
|
-
variant -> { Lithic::AuthRules::ConditionalBlockParameters }
|
|
391
|
-
|
|
392
553
|
variant -> { Lithic::AuthRules::VelocityLimitParams }
|
|
393
554
|
|
|
394
555
|
variant -> { Lithic::AuthRules::MerchantLockParameters }
|
|
@@ -411,7 +572,7 @@ module Lithic
|
|
|
411
572
|
variant -> { Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters }
|
|
412
573
|
|
|
413
574
|
# @!method self.variants
|
|
414
|
-
# @return [Array(Lithic::Models::AuthRules::
|
|
575
|
+
# @return [Array(Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters)]
|
|
415
576
|
end
|
|
416
577
|
|
|
417
578
|
# The type of Auth Rule. For certain rule types, this determines the event stream
|
|
@@ -419,8 +580,6 @@ module Lithic
|
|
|
419
580
|
# several event streams, the effective one is defined by the separate
|
|
420
581
|
# `event_stream` field.
|
|
421
582
|
#
|
|
422
|
-
# - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
|
|
423
|
-
# AUTHORIZATION event stream.
|
|
424
583
|
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
|
|
425
584
|
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
|
426
585
|
# - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
@@ -436,7 +595,6 @@ module Lithic
|
|
|
436
595
|
module Type
|
|
437
596
|
extend Lithic::Internal::Type::Enum
|
|
438
597
|
|
|
439
|
-
CONDITIONAL_BLOCK = :CONDITIONAL_BLOCK
|
|
440
598
|
VELOCITY_LIMIT = :VELOCITY_LIMIT
|
|
441
599
|
MERCHANT_LOCK = :MERCHANT_LOCK
|
|
442
600
|
CONDITIONAL_ACTION = :CONDITIONAL_ACTION
|
|
@@ -449,7 +607,7 @@ module Lithic
|
|
|
449
607
|
end
|
|
450
608
|
|
|
451
609
|
# @!method self.variants
|
|
452
|
-
# @return [Array(Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule, Lithic::Models::AuthRules::V2CreateParams::Body::CardLevelRule, Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule)]
|
|
610
|
+
# @return [Array(Lithic::Models::AuthRules::V2CreateParams::Body::Rule, Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule, Lithic::Models::AuthRules::V2CreateParams::Body::CardLevelRule, Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule)]
|
|
453
611
|
end
|
|
454
612
|
end
|
|
455
613
|
end
|
|
@@ -16,13 +16,13 @@ module Lithic
|
|
|
16
16
|
# @!attribute parameters
|
|
17
17
|
# Parameters for the Auth Rule
|
|
18
18
|
#
|
|
19
|
-
# @return [Lithic::Models::AuthRules::
|
|
19
|
+
# @return [Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters, nil]
|
|
20
20
|
optional :parameters, union: -> { Lithic::AuthRules::V2DraftParams::Parameters }, nil?: true
|
|
21
21
|
|
|
22
22
|
# @!method initialize(auth_rule_token:, parameters: nil, request_options: {})
|
|
23
23
|
# @param auth_rule_token [String]
|
|
24
24
|
#
|
|
25
|
-
# @param parameters [Lithic::Models::AuthRules::
|
|
25
|
+
# @param parameters [Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters, nil] Parameters for the Auth Rule
|
|
26
26
|
#
|
|
27
27
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
|
|
28
28
|
|
|
@@ -30,9 +30,6 @@ module Lithic
|
|
|
30
30
|
module Parameters
|
|
31
31
|
extend Lithic::Internal::Type::Union
|
|
32
32
|
|
|
33
|
-
# Deprecated: Use CONDITIONAL_ACTION instead.
|
|
34
|
-
variant -> { Lithic::AuthRules::ConditionalBlockParameters }
|
|
35
|
-
|
|
36
33
|
variant -> { Lithic::AuthRules::VelocityLimitParams }
|
|
37
34
|
|
|
38
35
|
variant -> { Lithic::AuthRules::MerchantLockParameters }
|
|
@@ -55,7 +52,7 @@ module Lithic
|
|
|
55
52
|
variant -> { Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters }
|
|
56
53
|
|
|
57
54
|
# @!method self.variants
|
|
58
|
-
# @return [Array(Lithic::Models::AuthRules::
|
|
55
|
+
# @return [Array(Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters, Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters, Lithic::Models::AuthRules::TypescriptCodeParameters, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters)]
|
|
59
56
|
end
|
|
60
57
|
end
|
|
61
58
|
end
|
|
@@ -55,7 +55,8 @@ module Lithic
|
|
|
55
55
|
optional :page_size, Integer
|
|
56
56
|
|
|
57
57
|
# @!attribute scope
|
|
58
|
-
# Only return Auth Rules that are bound to the provided scope.
|
|
58
|
+
# Only return Auth Rules that are bound to the provided scope. When no token is
|
|
59
|
+
# provided, `CARD` also returns Auth Rules that include a `CARD_TAG` entity.
|
|
59
60
|
#
|
|
60
61
|
# @return [Symbol, Lithic::Models::AuthRules::V2ListParams::Scope, nil]
|
|
61
62
|
optional :scope, enum: -> { Lithic::AuthRules::V2ListParams::Scope }
|
|
@@ -85,13 +86,14 @@ module Lithic
|
|
|
85
86
|
#
|
|
86
87
|
# @param page_size [Integer] Page size (for pagination).
|
|
87
88
|
#
|
|
88
|
-
# @param scope [Symbol, Lithic::Models::AuthRules::V2ListParams::Scope] Only return Auth Rules that are bound to the provided scope.
|
|
89
|
+
# @param scope [Symbol, Lithic::Models::AuthRules::V2ListParams::Scope] Only return Auth Rules that are bound to the provided scope. When no token is pr
|
|
89
90
|
#
|
|
90
91
|
# @param starting_after [String] A cursor representing an item's token after which a page of results should begin
|
|
91
92
|
#
|
|
92
93
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
|
|
93
94
|
|
|
94
|
-
# Only return Auth Rules that are bound to the provided scope.
|
|
95
|
+
# Only return Auth Rules that are bound to the provided scope. When no token is
|
|
96
|
+
# provided, `CARD` also returns Auth Rules that include a `CARD_TAG` entity.
|
|
95
97
|
module Scope
|
|
96
98
|
extend Lithic::Internal::Type::Enum
|
|
97
99
|
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
module AuthRules
|
|
6
|
+
# @see Lithic::Resources::AuthRules::V2#update_entities
|
|
7
|
+
class V2UpdateEntitiesParams < Lithic::Internal::Type::BaseModel
|
|
8
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Lithic::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute auth_rule_token
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :auth_rule_token, String
|
|
15
|
+
|
|
16
|
+
# @!attribute add
|
|
17
|
+
# Entities to add to the rule's `include` and `exclude` lists
|
|
18
|
+
#
|
|
19
|
+
# @return [Lithic::Models::AuthRules::AuthRuleEntities, nil]
|
|
20
|
+
optional :add, -> { Lithic::AuthRules::AuthRuleEntities }
|
|
21
|
+
|
|
22
|
+
# @!attribute remove
|
|
23
|
+
# Entities to remove from the rule's `include` and `exclude` lists
|
|
24
|
+
#
|
|
25
|
+
# @return [Lithic::Models::AuthRules::AuthRuleEntities, nil]
|
|
26
|
+
optional :remove, -> { Lithic::AuthRules::AuthRuleEntities }
|
|
27
|
+
|
|
28
|
+
# @!method initialize(auth_rule_token:, add: nil, remove: nil, request_options: {})
|
|
29
|
+
# @param auth_rule_token [String]
|
|
30
|
+
#
|
|
31
|
+
# @param add [Lithic::Models::AuthRules::AuthRuleEntities] Entities to add to the rule's `include` and `exclude` lists
|
|
32
|
+
#
|
|
33
|
+
# @param remove [Lithic::Models::AuthRules::AuthRuleEntities] Entities to remove from the rule's `include` and `exclude` lists
|
|
34
|
+
#
|
|
35
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|