lithic 0.7.0 → 0.8.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 +36 -0
- data/README.md +3 -3
- data/lib/lithic/client.rb +11 -0
- data/lib/lithic/models/account_activity_list_params.rb +2 -0
- data/lib/lithic/models/account_activity_list_response.rb +8 -2
- data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +8 -2
- data/lib/lithic/models/auth_rules/auth_rule.rb +84 -8
- data/lib/lithic/models/auth_rules/auth_rule_version.rb +92 -0
- data/lib/lithic/models/auth_rules/rule_feature.rb +231 -0
- data/lib/lithic/models/auth_rules/typescript_code_parameters.rb +33 -0
- data/lib/lithic/models/auth_rules/v2/backtest_results.rb +9 -17
- data/lib/lithic/models/auth_rules/v2_create_params.rb +50 -10
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +6 -3
- data/lib/lithic/models/auth_rules/v2_list_versions_params.rb +22 -0
- data/lib/lithic/models/auth_rules/v2_list_versions_response.rb +18 -0
- data/lib/lithic/models/auth_rules/v2_retrieve_features_response.rb +3 -83
- data/lib/lithic/models/auth_rules/v2_retrieve_report_response.rb +525 -1
- data/lib/lithic/models/auth_rules/v2_update_params.rb +17 -1
- data/lib/lithic/models/auth_rules/velocity_limit_filters.rb +87 -0
- data/lib/lithic/models/auth_rules/velocity_limit_params.rb +3 -84
- data/lib/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rb +69 -59
- data/lib/lithic/models/dispute_create_params.rb +11 -11
- data/lib/lithic/models/dispute_list_params.rb +3 -3
- data/lib/lithic/models/dispute_update_params.rb +9 -9
- data/lib/lithic/models/event.rb +0 -7
- data/lib/lithic/models/event_list_params.rb +0 -4
- data/lib/lithic/models/event_subscription.rb +0 -4
- data/lib/lithic/models/events/subscription_create_params.rb +0 -4
- data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +0 -1
- data/lib/lithic/models/events/subscription_update_params.rb +0 -4
- data/lib/lithic/models/financial_account.rb +1 -0
- data/lib/lithic/models/financial_account_list_params.rb +1 -0
- data/lib/lithic/models/financial_accounts/interest_tier_schedule.rb +9 -1
- data/lib/lithic/models/financial_accounts/interest_tier_schedule_update_params.rb +9 -1
- data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +27 -2
- data/lib/lithic/models/hold.rb +147 -0
- data/lib/lithic/models/hold_create_params.rb +61 -0
- data/lib/lithic/models/hold_event.rb +110 -0
- data/lib/lithic/models/hold_list_params.rb +89 -0
- data/lib/lithic/models/hold_retrieve_params.rb +20 -0
- data/lib/lithic/models/hold_void_params.rb +29 -0
- data/lib/lithic/models/instance_financial_account_type.rb +1 -0
- data/lib/lithic/models/parsed_webhook_event.rb +2 -4
- data/lib/lithic/models/payment.rb +76 -12
- data/lib/lithic/models/payment_simulate_action_params.rb +1 -0
- data/lib/lithic/models.rb +12 -2
- data/lib/lithic/resources/account_activity.rb +2 -2
- data/lib/lithic/resources/auth_rules/v2.rb +24 -4
- data/lib/lithic/resources/disputes.rb +21 -21
- data/lib/lithic/resources/financial_accounts/interest_tier_schedule.rb +6 -2
- data/lib/lithic/resources/holds.rb +132 -0
- data/lib/lithic/resources/webhooks.rb +2 -3
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +14 -1
- data/rbi/lithic/client.rbi +9 -0
- data/rbi/lithic/models/account_activity_list_params.rbi +10 -0
- data/rbi/lithic/models/account_activity_list_response.rbi +14 -2
- data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +14 -2
- data/rbi/lithic/models/auth_rules/auth_rule.rbi +128 -4
- data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +142 -0
- data/rbi/lithic/models/auth_rules/rule_feature.rbi +414 -0
- data/rbi/lithic/models/auth_rules/typescript_code_parameters.rbi +94 -0
- data/rbi/lithic/models/auth_rules/v2/backtest_results.rbi +12 -35
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +81 -12
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +8 -4
- data/rbi/lithic/models/auth_rules/v2_list_versions_params.rbi +40 -0
- data/rbi/lithic/models/auth_rules/v2_list_versions_response.rbi +36 -0
- data/rbi/lithic/models/auth_rules/v2_retrieve_features_response.rbi +4 -209
- data/rbi/lithic/models/auth_rules/v2_retrieve_report_response.rbi +1692 -3
- data/rbi/lithic/models/auth_rules/v2_update_params.rbi +24 -0
- data/rbi/lithic/models/auth_rules/velocity_limit_filters.rbi +205 -0
- data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +4 -206
- data/rbi/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbi +154 -142
- data/rbi/lithic/models/dispute_create_params.rbi +11 -11
- data/rbi/lithic/models/dispute_list_params.rbi +3 -3
- data/rbi/lithic/models/dispute_update_params.rbi +9 -9
- data/rbi/lithic/models/event.rbi +0 -14
- data/rbi/lithic/models/event_list_params.rbi +0 -8
- data/rbi/lithic/models/event_subscription.rbi +0 -8
- data/rbi/lithic/models/events/subscription_create_params.rbi +0 -8
- data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +0 -5
- data/rbi/lithic/models/events/subscription_update_params.rbi +0 -8
- data/rbi/lithic/models/financial_account.rbi +5 -0
- data/rbi/lithic/models/financial_account_list_params.rbi +5 -0
- data/rbi/lithic/models/financial_accounts/interest_tier_schedule.rbi +11 -0
- data/rbi/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbi +11 -0
- data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +38 -3
- data/rbi/lithic/models/hold.rbi +183 -0
- data/rbi/lithic/models/hold_create_params.rbi +90 -0
- data/rbi/lithic/models/hold_event.rbi +148 -0
- data/rbi/lithic/models/hold_list_params.rbi +137 -0
- data/rbi/lithic/models/hold_retrieve_params.rbi +35 -0
- data/rbi/lithic/models/hold_void_params.rbi +49 -0
- data/rbi/lithic/models/instance_financial_account_type.rbi +5 -0
- data/rbi/lithic/models/parsed_webhook_event.rbi +0 -1
- data/rbi/lithic/models/payment.rbi +139 -13
- data/rbi/lithic/models/payment_simulate_action_params.rbi +5 -0
- data/rbi/lithic/models.rbi +12 -3
- data/rbi/lithic/resources/auth_rules/v2.rbi +16 -4
- data/rbi/lithic/resources/disputes.rbi +21 -21
- data/rbi/lithic/resources/financial_accounts/interest_tier_schedule.rbi +6 -0
- data/rbi/lithic/resources/holds.rbi +111 -0
- data/rbi/lithic/resources/webhooks.rbi +8 -2
- data/sig/lithic/client.rbs +5 -0
- data/sig/lithic/models/account_activity_list_params.rbs +4 -0
- data/sig/lithic/models/account_activity_list_response.rbs +5 -0
- data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +5 -0
- data/sig/lithic/models/auth_rules/auth_rule.rbs +42 -0
- data/sig/lithic/models/auth_rules/auth_rule_version.rbs +67 -0
- data/sig/lithic/models/auth_rules/rule_feature.rbs +173 -0
- data/sig/lithic/models/auth_rules/typescript_code_parameters.rbs +27 -0
- data/sig/lithic/models/auth_rules/v2/backtest_results.rbs +5 -18
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +25 -0
- data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -0
- data/sig/lithic/models/auth_rules/v2_list_versions_params.rbs +25 -0
- data/sig/lithic/models/auth_rules/v2_list_versions_response.rbs +18 -0
- data/sig/lithic/models/auth_rules/v2_retrieve_features_response.rbs +4 -80
- data/sig/lithic/models/auth_rules/v2_retrieve_report_response.rbs +658 -3
- data/sig/lithic/models/auth_rules/v2_update_params.rbs +16 -0
- data/sig/lithic/models/auth_rules/velocity_limit_filters.rbs +81 -0
- data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +6 -82
- data/sig/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbs +38 -38
- data/sig/lithic/models/event.rbs +0 -2
- data/sig/lithic/models/event_list_params.rbs +0 -2
- data/sig/lithic/models/event_subscription.rbs +0 -2
- data/sig/lithic/models/events/subscription_create_params.rbs +0 -2
- data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +0 -2
- data/sig/lithic/models/events/subscription_update_params.rbs +0 -2
- data/sig/lithic/models/financial_account.rbs +2 -0
- data/sig/lithic/models/financial_account_list_params.rbs +7 -1
- data/sig/lithic/models/financial_accounts/interest_tier_schedule.rbs +7 -0
- data/sig/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbs +7 -0
- data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +17 -3
- data/sig/lithic/models/hold.rbs +137 -0
- data/sig/lithic/models/hold_create_params.rbs +57 -0
- data/sig/lithic/models/hold_event.rbs +91 -0
- data/sig/lithic/models/hold_list_params.rbs +83 -0
- data/sig/lithic/models/hold_retrieve_params.rbs +23 -0
- data/sig/lithic/models/hold_void_params.rbs +28 -0
- data/sig/lithic/models/instance_financial_account_type.rbs +2 -0
- data/sig/lithic/models/parsed_webhook_event.rbs +0 -1
- data/sig/lithic/models/payment.rbs +23 -8
- data/sig/lithic/models/payment_simulate_action_params.rbs +2 -0
- data/sig/lithic/models.rbs +12 -2
- data/sig/lithic/resources/auth_rules/v2.rbs +5 -0
- data/sig/lithic/resources/financial_accounts/interest_tier_schedule.rbs +2 -0
- data/sig/lithic/resources/holds.rbs +39 -0
- data/sig/lithic/resources/webhooks.rbs +0 -1
- metadata +41 -5
- data/lib/lithic/models/tokenization_decisioning_request_webhook_event.rb +0 -159
- data/rbi/lithic/models/tokenization_decisioning_request_webhook_event.rbi +0 -331
- data/sig/lithic/models/tokenization_decisioning_request_webhook_event.rbs +0 -130
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
module AuthRules
|
|
6
|
+
# A feature made available to the rule. The `name` field is the variable name used
|
|
7
|
+
# in the rule function signature. The `type` field determines which data the
|
|
8
|
+
# feature provides to the rule at evaluation time.
|
|
9
|
+
#
|
|
10
|
+
# - `AUTHORIZATION`: The authorization request being evaluated. Only available for
|
|
11
|
+
# AUTHORIZATION event stream rules.
|
|
12
|
+
# - `AUTHENTICATION`: The 3DS authentication request being evaluated. Only
|
|
13
|
+
# available for THREE_DS_AUTHENTICATION event stream rules.
|
|
14
|
+
# - `TOKENIZATION`: The tokenization request being evaluated. Only available for
|
|
15
|
+
# TOKENIZATION event stream rules.
|
|
16
|
+
# - `ACH_RECEIPT`: The ACH receipt being evaluated. Only available for
|
|
17
|
+
# ACH_CREDIT_RECEIPT and ACH_DEBIT_RECEIPT event stream rules.
|
|
18
|
+
# - `CARD`: The card associated with the event. Available for AUTHORIZATION and
|
|
19
|
+
# THREE_DS_AUTHENTICATION event stream rules.
|
|
20
|
+
# - `ACCOUNT_HOLDER`: The account holder associated with the card. Available for
|
|
21
|
+
# THREE_DS_AUTHENTICATION event stream rules.
|
|
22
|
+
# - `IP_METADATA`: IP address metadata for the request. Available for
|
|
23
|
+
# THREE_DS_AUTHENTICATION event stream rules.
|
|
24
|
+
# - `SPEND_VELOCITY`: Spend velocity data for the card or account. Requires
|
|
25
|
+
# `scope`, `period`, and optionally `filters` to configure the velocity
|
|
26
|
+
# calculation. Available for AUTHORIZATION event stream rules.
|
|
27
|
+
module RuleFeature
|
|
28
|
+
extend Lithic::Internal::Type::Union
|
|
29
|
+
|
|
30
|
+
variant -> { Lithic::AuthRules::RuleFeature::AuthorizationFeature }
|
|
31
|
+
|
|
32
|
+
variant -> { Lithic::AuthRules::RuleFeature::AuthenticationFeature }
|
|
33
|
+
|
|
34
|
+
variant -> { Lithic::AuthRules::RuleFeature::TokenizationFeature }
|
|
35
|
+
|
|
36
|
+
variant -> { Lithic::AuthRules::RuleFeature::ACHReceiptFeature }
|
|
37
|
+
|
|
38
|
+
variant -> { Lithic::AuthRules::RuleFeature::CardFeature }
|
|
39
|
+
|
|
40
|
+
variant -> { Lithic::AuthRules::RuleFeature::AccountHolderFeature }
|
|
41
|
+
|
|
42
|
+
variant -> { Lithic::AuthRules::RuleFeature::IPMetadataFeature }
|
|
43
|
+
|
|
44
|
+
variant -> { Lithic::AuthRules::RuleFeature::SpendVelocityFeature }
|
|
45
|
+
|
|
46
|
+
class AuthorizationFeature < Lithic::Internal::Type::BaseModel
|
|
47
|
+
# @!attribute type
|
|
48
|
+
#
|
|
49
|
+
# @return [Symbol, :AUTHORIZATION]
|
|
50
|
+
required :type, const: :AUTHORIZATION
|
|
51
|
+
|
|
52
|
+
# @!attribute name
|
|
53
|
+
# The variable name for this feature in the rule function signature
|
|
54
|
+
#
|
|
55
|
+
# @return [String, nil]
|
|
56
|
+
optional :name, String
|
|
57
|
+
|
|
58
|
+
# @!method initialize(name: nil, type: :AUTHORIZATION)
|
|
59
|
+
# @param name [String] The variable name for this feature in the rule function signature
|
|
60
|
+
#
|
|
61
|
+
# @param type [Symbol, :AUTHORIZATION]
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
class AuthenticationFeature < Lithic::Internal::Type::BaseModel
|
|
65
|
+
# @!attribute type
|
|
66
|
+
#
|
|
67
|
+
# @return [Symbol, :AUTHENTICATION]
|
|
68
|
+
required :type, const: :AUTHENTICATION
|
|
69
|
+
|
|
70
|
+
# @!attribute name
|
|
71
|
+
# The variable name for this feature in the rule function signature
|
|
72
|
+
#
|
|
73
|
+
# @return [String, nil]
|
|
74
|
+
optional :name, String
|
|
75
|
+
|
|
76
|
+
# @!method initialize(name: nil, type: :AUTHENTICATION)
|
|
77
|
+
# @param name [String] The variable name for this feature in the rule function signature
|
|
78
|
+
#
|
|
79
|
+
# @param type [Symbol, :AUTHENTICATION]
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
class TokenizationFeature < Lithic::Internal::Type::BaseModel
|
|
83
|
+
# @!attribute type
|
|
84
|
+
#
|
|
85
|
+
# @return [Symbol, :TOKENIZATION]
|
|
86
|
+
required :type, const: :TOKENIZATION
|
|
87
|
+
|
|
88
|
+
# @!attribute name
|
|
89
|
+
# The variable name for this feature in the rule function signature
|
|
90
|
+
#
|
|
91
|
+
# @return [String, nil]
|
|
92
|
+
optional :name, String
|
|
93
|
+
|
|
94
|
+
# @!method initialize(name: nil, type: :TOKENIZATION)
|
|
95
|
+
# @param name [String] The variable name for this feature in the rule function signature
|
|
96
|
+
#
|
|
97
|
+
# @param type [Symbol, :TOKENIZATION]
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
class ACHReceiptFeature < Lithic::Internal::Type::BaseModel
|
|
101
|
+
# @!attribute type
|
|
102
|
+
#
|
|
103
|
+
# @return [Symbol, :ACH_RECEIPT]
|
|
104
|
+
required :type, const: :ACH_RECEIPT
|
|
105
|
+
|
|
106
|
+
# @!attribute name
|
|
107
|
+
# The variable name for this feature in the rule function signature
|
|
108
|
+
#
|
|
109
|
+
# @return [String, nil]
|
|
110
|
+
optional :name, String
|
|
111
|
+
|
|
112
|
+
# @!method initialize(name: nil, type: :ACH_RECEIPT)
|
|
113
|
+
# @param name [String] The variable name for this feature in the rule function signature
|
|
114
|
+
#
|
|
115
|
+
# @param type [Symbol, :ACH_RECEIPT]
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
class CardFeature < Lithic::Internal::Type::BaseModel
|
|
119
|
+
# @!attribute type
|
|
120
|
+
#
|
|
121
|
+
# @return [Symbol, :CARD]
|
|
122
|
+
required :type, const: :CARD
|
|
123
|
+
|
|
124
|
+
# @!attribute name
|
|
125
|
+
# The variable name for this feature in the rule function signature
|
|
126
|
+
#
|
|
127
|
+
# @return [String, nil]
|
|
128
|
+
optional :name, String
|
|
129
|
+
|
|
130
|
+
# @!method initialize(name: nil, type: :CARD)
|
|
131
|
+
# @param name [String] The variable name for this feature in the rule function signature
|
|
132
|
+
#
|
|
133
|
+
# @param type [Symbol, :CARD]
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
class AccountHolderFeature < Lithic::Internal::Type::BaseModel
|
|
137
|
+
# @!attribute type
|
|
138
|
+
#
|
|
139
|
+
# @return [Symbol, :ACCOUNT_HOLDER]
|
|
140
|
+
required :type, const: :ACCOUNT_HOLDER
|
|
141
|
+
|
|
142
|
+
# @!attribute name
|
|
143
|
+
# The variable name for this feature in the rule function signature
|
|
144
|
+
#
|
|
145
|
+
# @return [String, nil]
|
|
146
|
+
optional :name, String
|
|
147
|
+
|
|
148
|
+
# @!method initialize(name: nil, type: :ACCOUNT_HOLDER)
|
|
149
|
+
# @param name [String] The variable name for this feature in the rule function signature
|
|
150
|
+
#
|
|
151
|
+
# @param type [Symbol, :ACCOUNT_HOLDER]
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
class IPMetadataFeature < Lithic::Internal::Type::BaseModel
|
|
155
|
+
# @!attribute type
|
|
156
|
+
#
|
|
157
|
+
# @return [Symbol, :IP_METADATA]
|
|
158
|
+
required :type, const: :IP_METADATA
|
|
159
|
+
|
|
160
|
+
# @!attribute name
|
|
161
|
+
# The variable name for this feature in the rule function signature
|
|
162
|
+
#
|
|
163
|
+
# @return [String, nil]
|
|
164
|
+
optional :name, String
|
|
165
|
+
|
|
166
|
+
# @!method initialize(name: nil, type: :IP_METADATA)
|
|
167
|
+
# @param name [String] The variable name for this feature in the rule function signature
|
|
168
|
+
#
|
|
169
|
+
# @param type [Symbol, :IP_METADATA]
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
class SpendVelocityFeature < Lithic::Internal::Type::BaseModel
|
|
173
|
+
# @!attribute period
|
|
174
|
+
# Velocity over the current day since 00:00 / 12 AM in Eastern Time
|
|
175
|
+
#
|
|
176
|
+
# @return [Lithic::Models::AuthRules::VelocityLimitPeriod::TrailingWindowObject, Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowDay, Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowWeek, Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowMonth, Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowYear]
|
|
177
|
+
required :period, union: -> { Lithic::AuthRules::VelocityLimitPeriod }
|
|
178
|
+
|
|
179
|
+
# @!attribute scope
|
|
180
|
+
# The scope the velocity is calculated for
|
|
181
|
+
#
|
|
182
|
+
# @return [Symbol, Lithic::Models::AuthRules::RuleFeature::SpendVelocityFeature::Scope]
|
|
183
|
+
required :scope, enum: -> { Lithic::AuthRules::RuleFeature::SpendVelocityFeature::Scope }
|
|
184
|
+
|
|
185
|
+
# @!attribute type
|
|
186
|
+
#
|
|
187
|
+
# @return [Symbol, :SPEND_VELOCITY]
|
|
188
|
+
required :type, const: :SPEND_VELOCITY
|
|
189
|
+
|
|
190
|
+
# @!attribute filters
|
|
191
|
+
#
|
|
192
|
+
# @return [Lithic::Models::AuthRules::VelocityLimitFilters, nil]
|
|
193
|
+
optional :filters, -> { Lithic::AuthRules::VelocityLimitFilters }
|
|
194
|
+
|
|
195
|
+
# @!attribute name
|
|
196
|
+
# The variable name for this feature in the rule function signature
|
|
197
|
+
#
|
|
198
|
+
# @return [String, nil]
|
|
199
|
+
optional :name, String
|
|
200
|
+
|
|
201
|
+
# @!method initialize(period:, scope:, filters: nil, name: nil, type: :SPEND_VELOCITY)
|
|
202
|
+
# @param period [Lithic::Models::AuthRules::VelocityLimitPeriod::TrailingWindowObject, Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowDay, Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowWeek, Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowMonth, Lithic::Models::AuthRules::VelocityLimitPeriod::FixedWindowYear] Velocity over the current day since 00:00 / 12 AM in Eastern Time
|
|
203
|
+
#
|
|
204
|
+
# @param scope [Symbol, Lithic::Models::AuthRules::RuleFeature::SpendVelocityFeature::Scope] The scope the velocity is calculated for
|
|
205
|
+
#
|
|
206
|
+
# @param filters [Lithic::Models::AuthRules::VelocityLimitFilters]
|
|
207
|
+
#
|
|
208
|
+
# @param name [String] The variable name for this feature in the rule function signature
|
|
209
|
+
#
|
|
210
|
+
# @param type [Symbol, :SPEND_VELOCITY]
|
|
211
|
+
|
|
212
|
+
# The scope the velocity is calculated for
|
|
213
|
+
#
|
|
214
|
+
# @see Lithic::Models::AuthRules::RuleFeature::SpendVelocityFeature#scope
|
|
215
|
+
module Scope
|
|
216
|
+
extend Lithic::Internal::Type::Enum
|
|
217
|
+
|
|
218
|
+
CARD = :CARD
|
|
219
|
+
ACCOUNT = :ACCOUNT
|
|
220
|
+
|
|
221
|
+
# @!method self.values
|
|
222
|
+
# @return [Array<Symbol>]
|
|
223
|
+
end
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
# @!method self.variants
|
|
227
|
+
# @return [Array(Lithic::Models::AuthRules::RuleFeature::AuthorizationFeature, Lithic::Models::AuthRules::RuleFeature::AuthenticationFeature, Lithic::Models::AuthRules::RuleFeature::TokenizationFeature, Lithic::Models::AuthRules::RuleFeature::ACHReceiptFeature, Lithic::Models::AuthRules::RuleFeature::CardFeature, Lithic::Models::AuthRules::RuleFeature::AccountHolderFeature, Lithic::Models::AuthRules::RuleFeature::IPMetadataFeature, Lithic::Models::AuthRules::RuleFeature::SpendVelocityFeature)]
|
|
228
|
+
end
|
|
229
|
+
end
|
|
230
|
+
end
|
|
231
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
module AuthRules
|
|
6
|
+
class TypescriptCodeParameters < Lithic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute code
|
|
8
|
+
# The TypeScript source code of the rule. Must define a `rule()` function that
|
|
9
|
+
# accepts the declared features as positional arguments (in the same order as the
|
|
10
|
+
# `features` array) and returns an array of actions.
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :code, String
|
|
14
|
+
|
|
15
|
+
# @!attribute features
|
|
16
|
+
# Features available to the TypeScript code at evaluation time
|
|
17
|
+
#
|
|
18
|
+
# @return [Array<Lithic::Models::AuthRules::RuleFeature::AuthorizationFeature, Lithic::Models::AuthRules::RuleFeature::AuthenticationFeature, Lithic::Models::AuthRules::RuleFeature::TokenizationFeature, Lithic::Models::AuthRules::RuleFeature::ACHReceiptFeature, Lithic::Models::AuthRules::RuleFeature::CardFeature, Lithic::Models::AuthRules::RuleFeature::AccountHolderFeature, Lithic::Models::AuthRules::RuleFeature::IPMetadataFeature, Lithic::Models::AuthRules::RuleFeature::SpendVelocityFeature>]
|
|
19
|
+
required :features, -> { Lithic::Internal::Type::ArrayOf[union: Lithic::AuthRules::RuleFeature] }
|
|
20
|
+
|
|
21
|
+
# @!method initialize(code:, features:)
|
|
22
|
+
# Some parameter documentations has been truncated, see
|
|
23
|
+
# {Lithic::Models::AuthRules::TypescriptCodeParameters} for more details.
|
|
24
|
+
#
|
|
25
|
+
# Parameters for defining a TypeScript code rule
|
|
26
|
+
#
|
|
27
|
+
# @param code [String] The TypeScript source code of the rule. Must define a `rule()` function that acc
|
|
28
|
+
#
|
|
29
|
+
# @param features [Array<Lithic::Models::AuthRules::RuleFeature::AuthorizationFeature, Lithic::Models::AuthRules::RuleFeature::AuthenticationFeature, Lithic::Models::AuthRules::RuleFeature::TokenizationFeature, Lithic::Models::AuthRules::RuleFeature::ACHReceiptFeature, Lithic::Models::AuthRules::RuleFeature::CardFeature, Lithic::Models::AuthRules::RuleFeature::AccountHolderFeature, Lithic::Models::AuthRules::RuleFeature::IPMetadataFeature, Lithic::Models::AuthRules::RuleFeature::SpendVelocityFeature>] Features available to the TypeScript code at evaluation time
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -48,30 +48,22 @@ module Lithic
|
|
|
48
48
|
|
|
49
49
|
# @see Lithic::Models::AuthRules::V2::BacktestResults#simulation_parameters
|
|
50
50
|
class SimulationParameters < Lithic::Internal::Type::BaseModel
|
|
51
|
-
# @!attribute auth_rule_token
|
|
52
|
-
# Auth Rule Token
|
|
53
|
-
#
|
|
54
|
-
# @return [String, nil]
|
|
55
|
-
optional :auth_rule_token, String
|
|
56
|
-
|
|
57
51
|
# @!attribute end_
|
|
58
|
-
# The end time of the simulation
|
|
52
|
+
# The end time of the simulation
|
|
59
53
|
#
|
|
60
|
-
# @return [Time
|
|
61
|
-
|
|
54
|
+
# @return [Time]
|
|
55
|
+
required :end_, Time, api_name: :end
|
|
62
56
|
|
|
63
57
|
# @!attribute start
|
|
64
|
-
# The start time of the simulation
|
|
58
|
+
# The start time of the simulation
|
|
65
59
|
#
|
|
66
|
-
# @return [Time
|
|
67
|
-
|
|
60
|
+
# @return [Time]
|
|
61
|
+
required :start, Time
|
|
68
62
|
|
|
69
|
-
# @!method initialize(
|
|
70
|
-
# @param
|
|
71
|
-
#
|
|
72
|
-
# @param end_ [Time] The end time of the simulation.
|
|
63
|
+
# @!method initialize(end_:, start:)
|
|
64
|
+
# @param end_ [Time] The end time of the simulation
|
|
73
65
|
#
|
|
74
|
-
# @param start [Time] The start time of the simulation
|
|
66
|
+
# @param start [Time] The start time of the simulation
|
|
75
67
|
end
|
|
76
68
|
end
|
|
77
69
|
end
|
|
@@ -30,7 +30,7 @@ module Lithic
|
|
|
30
30
|
# @!attribute parameters
|
|
31
31
|
# Parameters for the Auth Rule
|
|
32
32
|
#
|
|
33
|
-
# @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters]
|
|
33
|
+
# @return [Lithic::Models::AuthRules::ConditionalBlockParameters, 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::TypescriptCodeParameters]
|
|
34
34
|
required :parameters, union: -> { Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Parameters }
|
|
35
35
|
|
|
36
36
|
# @!attribute type
|
|
@@ -45,6 +45,8 @@ module Lithic
|
|
|
45
45
|
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
|
46
46
|
# - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
47
47
|
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
48
|
+
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
49
|
+
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
48
50
|
#
|
|
49
51
|
# @return [Symbol, Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule::Type]
|
|
50
52
|
required :type, enum: -> { Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type }
|
|
@@ -78,7 +80,7 @@ module Lithic
|
|
|
78
80
|
# {Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule} for more
|
|
79
81
|
# details.
|
|
80
82
|
#
|
|
81
|
-
# @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters] Parameters for the Auth Rule
|
|
83
|
+
# @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, 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::TypescriptCodeParameters] Parameters for the Auth Rule
|
|
82
84
|
#
|
|
83
85
|
# @param type [Symbol, Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule::Type] The type of Auth Rule. For certain rule types, this determines the event stream
|
|
84
86
|
#
|
|
@@ -111,8 +113,11 @@ module Lithic
|
|
|
111
113
|
|
|
112
114
|
variant -> { Lithic::AuthRules::ConditionalTokenizationActionParameters }
|
|
113
115
|
|
|
116
|
+
# Parameters for defining a TypeScript code rule
|
|
117
|
+
variant -> { Lithic::AuthRules::TypescriptCodeParameters }
|
|
118
|
+
|
|
114
119
|
# @!method self.variants
|
|
115
|
-
# @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters)]
|
|
120
|
+
# @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, 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::TypescriptCodeParameters)]
|
|
116
121
|
end
|
|
117
122
|
|
|
118
123
|
# The type of Auth Rule. For certain rule types, this determines the event stream
|
|
@@ -126,6 +131,8 @@ module Lithic
|
|
|
126
131
|
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
|
127
132
|
# - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
128
133
|
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
134
|
+
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
135
|
+
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
129
136
|
#
|
|
130
137
|
# @see Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule#type
|
|
131
138
|
module Type
|
|
@@ -135,6 +142,7 @@ module Lithic
|
|
|
135
142
|
VELOCITY_LIMIT = :VELOCITY_LIMIT
|
|
136
143
|
MERCHANT_LOCK = :MERCHANT_LOCK
|
|
137
144
|
CONDITIONAL_ACTION = :CONDITIONAL_ACTION
|
|
145
|
+
TYPESCRIPT_CODE = :TYPESCRIPT_CODE
|
|
138
146
|
|
|
139
147
|
# @!method self.values
|
|
140
148
|
# @return [Array<Symbol>]
|
|
@@ -151,7 +159,7 @@ module Lithic
|
|
|
151
159
|
# @!attribute parameters
|
|
152
160
|
# Parameters for the Auth Rule
|
|
153
161
|
#
|
|
154
|
-
# @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters]
|
|
162
|
+
# @return [Lithic::Models::AuthRules::ConditionalBlockParameters, 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::TypescriptCodeParameters]
|
|
155
163
|
required :parameters, union: -> { Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Parameters }
|
|
156
164
|
|
|
157
165
|
# @!attribute type
|
|
@@ -166,6 +174,8 @@ module Lithic
|
|
|
166
174
|
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
|
167
175
|
# - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
168
176
|
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
177
|
+
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
178
|
+
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
169
179
|
#
|
|
170
180
|
# @return [Symbol, Lithic::Models::AuthRules::V2CreateParams::Body::CardLevelRule::Type]
|
|
171
181
|
required :type, enum: -> { Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type }
|
|
@@ -189,7 +199,7 @@ module Lithic
|
|
|
189
199
|
#
|
|
190
200
|
# @param card_tokens [Array<String>] Card tokens to which the Auth Rule applies.
|
|
191
201
|
#
|
|
192
|
-
# @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters] Parameters for the Auth Rule
|
|
202
|
+
# @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, 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::TypescriptCodeParameters] Parameters for the Auth Rule
|
|
193
203
|
#
|
|
194
204
|
# @param type [Symbol, Lithic::Models::AuthRules::V2CreateParams::Body::CardLevelRule::Type] The type of Auth Rule. For certain rule types, this determines the event stream
|
|
195
205
|
#
|
|
@@ -218,8 +228,11 @@ module Lithic
|
|
|
218
228
|
|
|
219
229
|
variant -> { Lithic::AuthRules::ConditionalTokenizationActionParameters }
|
|
220
230
|
|
|
231
|
+
# Parameters for defining a TypeScript code rule
|
|
232
|
+
variant -> { Lithic::AuthRules::TypescriptCodeParameters }
|
|
233
|
+
|
|
221
234
|
# @!method self.variants
|
|
222
|
-
# @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters)]
|
|
235
|
+
# @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, 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::TypescriptCodeParameters)]
|
|
223
236
|
end
|
|
224
237
|
|
|
225
238
|
# The type of Auth Rule. For certain rule types, this determines the event stream
|
|
@@ -233,6 +246,8 @@ module Lithic
|
|
|
233
246
|
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
|
234
247
|
# - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
235
248
|
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
249
|
+
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
250
|
+
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
236
251
|
#
|
|
237
252
|
# @see Lithic::Models::AuthRules::V2CreateParams::Body::CardLevelRule#type
|
|
238
253
|
module Type
|
|
@@ -242,6 +257,7 @@ module Lithic
|
|
|
242
257
|
VELOCITY_LIMIT = :VELOCITY_LIMIT
|
|
243
258
|
MERCHANT_LOCK = :MERCHANT_LOCK
|
|
244
259
|
CONDITIONAL_ACTION = :CONDITIONAL_ACTION
|
|
260
|
+
TYPESCRIPT_CODE = :TYPESCRIPT_CODE
|
|
245
261
|
|
|
246
262
|
# @!method self.values
|
|
247
263
|
# @return [Array<Symbol>]
|
|
@@ -252,7 +268,7 @@ module Lithic
|
|
|
252
268
|
# @!attribute parameters
|
|
253
269
|
# Parameters for the Auth Rule
|
|
254
270
|
#
|
|
255
|
-
# @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters]
|
|
271
|
+
# @return [Lithic::Models::AuthRules::ConditionalBlockParameters, 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::TypescriptCodeParameters]
|
|
256
272
|
required :parameters, union: -> { Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Parameters }
|
|
257
273
|
|
|
258
274
|
# @!attribute program_level
|
|
@@ -273,6 +289,8 @@ module Lithic
|
|
|
273
289
|
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
|
274
290
|
# - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
275
291
|
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
292
|
+
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
293
|
+
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
276
294
|
#
|
|
277
295
|
# @return [Symbol, Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type]
|
|
278
296
|
required :type, enum: -> { Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type }
|
|
@@ -283,6 +301,18 @@ module Lithic
|
|
|
283
301
|
# @return [Symbol, Lithic::Models::AuthRules::EventStream, nil]
|
|
284
302
|
optional :event_stream, enum: -> { Lithic::AuthRules::EventStream }
|
|
285
303
|
|
|
304
|
+
# @!attribute excluded_account_tokens
|
|
305
|
+
# Account tokens to which the Auth Rule does not apply.
|
|
306
|
+
#
|
|
307
|
+
# @return [Array<String>, nil]
|
|
308
|
+
optional :excluded_account_tokens, Lithic::Internal::Type::ArrayOf[String]
|
|
309
|
+
|
|
310
|
+
# @!attribute excluded_business_account_tokens
|
|
311
|
+
# Business account tokens to which the Auth Rule does not apply.
|
|
312
|
+
#
|
|
313
|
+
# @return [Array<String>, nil]
|
|
314
|
+
optional :excluded_business_account_tokens, Lithic::Internal::Type::ArrayOf[String]
|
|
315
|
+
|
|
286
316
|
# @!attribute excluded_card_tokens
|
|
287
317
|
# Card tokens to which the Auth Rule does not apply.
|
|
288
318
|
#
|
|
@@ -295,12 +325,12 @@ module Lithic
|
|
|
295
325
|
# @return [String, nil]
|
|
296
326
|
optional :name, String, nil?: true
|
|
297
327
|
|
|
298
|
-
# @!method initialize(parameters:, program_level:, type:, event_stream: nil, excluded_card_tokens: nil, name: nil)
|
|
328
|
+
# @!method initialize(parameters:, program_level:, type:, event_stream: nil, excluded_account_tokens: nil, excluded_business_account_tokens: nil, excluded_card_tokens: nil, name: nil)
|
|
299
329
|
# Some parameter documentations has been truncated, see
|
|
300
330
|
# {Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule} for more
|
|
301
331
|
# details.
|
|
302
332
|
#
|
|
303
|
-
# @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters] Parameters for the Auth Rule
|
|
333
|
+
# @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, 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::TypescriptCodeParameters] Parameters for the Auth Rule
|
|
304
334
|
#
|
|
305
335
|
# @param program_level [Boolean] Whether the Auth Rule applies to all authorizations on the card program.
|
|
306
336
|
#
|
|
@@ -308,6 +338,10 @@ module Lithic
|
|
|
308
338
|
#
|
|
309
339
|
# @param event_stream [Symbol, Lithic::Models::AuthRules::EventStream] The event stream during which the rule will be evaluated.
|
|
310
340
|
#
|
|
341
|
+
# @param excluded_account_tokens [Array<String>] Account tokens to which the Auth Rule does not apply.
|
|
342
|
+
#
|
|
343
|
+
# @param excluded_business_account_tokens [Array<String>] Business account tokens to which the Auth Rule does not apply.
|
|
344
|
+
#
|
|
311
345
|
# @param excluded_card_tokens [Array<String>] Card tokens to which the Auth Rule does not apply.
|
|
312
346
|
#
|
|
313
347
|
# @param name [String, nil] Auth Rule Name
|
|
@@ -333,8 +367,11 @@ module Lithic
|
|
|
333
367
|
|
|
334
368
|
variant -> { Lithic::AuthRules::ConditionalTokenizationActionParameters }
|
|
335
369
|
|
|
370
|
+
# Parameters for defining a TypeScript code rule
|
|
371
|
+
variant -> { Lithic::AuthRules::TypescriptCodeParameters }
|
|
372
|
+
|
|
336
373
|
# @!method self.variants
|
|
337
|
-
# @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters)]
|
|
374
|
+
# @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, 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::TypescriptCodeParameters)]
|
|
338
375
|
end
|
|
339
376
|
|
|
340
377
|
# The type of Auth Rule. For certain rule types, this determines the event stream
|
|
@@ -348,6 +385,8 @@ module Lithic
|
|
|
348
385
|
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
|
349
386
|
# - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
350
387
|
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
388
|
+
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
389
|
+
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
351
390
|
#
|
|
352
391
|
# @see Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule#type
|
|
353
392
|
module Type
|
|
@@ -357,6 +396,7 @@ module Lithic
|
|
|
357
396
|
VELOCITY_LIMIT = :VELOCITY_LIMIT
|
|
358
397
|
MERCHANT_LOCK = :MERCHANT_LOCK
|
|
359
398
|
CONDITIONAL_ACTION = :CONDITIONAL_ACTION
|
|
399
|
+
TYPESCRIPT_CODE = :TYPESCRIPT_CODE
|
|
360
400
|
|
|
361
401
|
# @!method self.values
|
|
362
402
|
# @return [Array<Symbol>]
|
|
@@ -16,13 +16,13 @@ module Lithic
|
|
|
16
16
|
# @!attribute parameters
|
|
17
17
|
# Parameters for the Auth Rule
|
|
18
18
|
#
|
|
19
|
-
# @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, nil]
|
|
19
|
+
# @return [Lithic::Models::AuthRules::ConditionalBlockParameters, 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::TypescriptCodeParameters, 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::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters, nil] Parameters for the Auth Rule
|
|
25
|
+
# @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, 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::TypescriptCodeParameters, nil] Parameters for the Auth Rule
|
|
26
26
|
#
|
|
27
27
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
|
|
28
28
|
|
|
@@ -45,8 +45,11 @@ module Lithic
|
|
|
45
45
|
|
|
46
46
|
variant -> { Lithic::AuthRules::ConditionalTokenizationActionParameters }
|
|
47
47
|
|
|
48
|
+
# Parameters for defining a TypeScript code rule
|
|
49
|
+
variant -> { Lithic::AuthRules::TypescriptCodeParameters }
|
|
50
|
+
|
|
48
51
|
# @!method self.variants
|
|
49
|
-
# @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters, Lithic::Models::AuthRules::ConditionalACHActionParameters, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters)]
|
|
52
|
+
# @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, 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::TypescriptCodeParameters)]
|
|
50
53
|
end
|
|
51
54
|
end
|
|
52
55
|
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
module AuthRules
|
|
6
|
+
# @see Lithic::Resources::AuthRules::V2#list_versions
|
|
7
|
+
class V2ListVersionsParams < 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
|
+
# @!method initialize(auth_rule_token:, request_options: {})
|
|
17
|
+
# @param auth_rule_token [String]
|
|
18
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Models
|
|
5
|
+
module AuthRules
|
|
6
|
+
# @see Lithic::Resources::AuthRules::V2#list_versions
|
|
7
|
+
class V2ListVersionsResponse < Lithic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute data
|
|
9
|
+
#
|
|
10
|
+
# @return [Array<Lithic::Models::AuthRules::AuthRuleVersion>]
|
|
11
|
+
required :data, -> { Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::AuthRuleVersion] }
|
|
12
|
+
|
|
13
|
+
# @!method initialize(data:)
|
|
14
|
+
# @param data [Array<Lithic::Models::AuthRules::AuthRuleVersion>]
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|