lithic 0.15.0 → 0.16.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 +26 -0
- data/README.md +1 -1
- data/lib/lithic/client.rb +4 -0
- data/lib/lithic/internal/transport/base_client.rb +4 -1
- data/lib/lithic/models/account.rb +2 -2
- data/lib/lithic/models/account_holders/account_holder_entity.rb +3 -16
- data/lib/lithic/models/account_holders/entity_create_params.rb +3 -14
- data/lib/lithic/models/auth_rules/auth_rule.rb +4 -2
- data/lib/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rb +18 -20
- data/lib/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rb +195 -9
- data/lib/lithic/models/auth_rules/rule_feature.rb +29 -6
- data/lib/lithic/models/auth_rules/typescript_code_parameters.rb +2 -2
- data/lib/lithic/models/auth_rules/v2_create_params.rb +12 -6
- data/lib/lithic/models/card.rb +1 -1
- data/lib/lithic/models/card_authorization.rb +117 -11
- data/lib/lithic/models/financial_accounts/loan_tape.rb +9 -1
- data/lib/lithic/models/payment.rb +13 -1
- data/lib/lithic/models/transaction_monitoring/case_activity_entry.rb +74 -0
- data/lib/lithic/models/transaction_monitoring/case_activity_type.rb +35 -0
- data/lib/lithic/models/transaction_monitoring/case_card.rb +37 -0
- data/lib/lithic/models/transaction_monitoring/case_entity.rb +50 -0
- data/lib/lithic/models/transaction_monitoring/case_list_activity_params.rb +53 -0
- data/lib/lithic/models/transaction_monitoring/case_list_params.rb +136 -0
- data/lib/lithic/models/transaction_monitoring/case_list_transactions_params.rb +53 -0
- data/lib/lithic/models/transaction_monitoring/case_priority.rb +20 -0
- data/lib/lithic/models/transaction_monitoring/case_retrieve_cards_params.rb +22 -0
- data/lib/lithic/models/transaction_monitoring/case_retrieve_cards_response.rb +11 -0
- data/lib/lithic/models/transaction_monitoring/case_retrieve_params.rb +22 -0
- data/lib/lithic/models/transaction_monitoring/case_sort_order.rb +29 -0
- data/lib/lithic/models/transaction_monitoring/case_status.rb +31 -0
- data/lib/lithic/models/transaction_monitoring/case_transaction.rb +53 -0
- data/lib/lithic/models/transaction_monitoring/case_update_params.rb +116 -0
- data/lib/lithic/models/transaction_monitoring/cases/case_file.rb +141 -0
- data/lib/lithic/models/transaction_monitoring/cases/comment_create_params.rb +47 -0
- data/lib/lithic/models/transaction_monitoring/cases/comment_delete_params.rb +30 -0
- data/lib/lithic/models/transaction_monitoring/cases/comment_update_params.rb +54 -0
- data/lib/lithic/models/transaction_monitoring/cases/file_create_params.rb +33 -0
- data/lib/lithic/models/transaction_monitoring/cases/file_delete_params.rb +30 -0
- data/lib/lithic/models/transaction_monitoring/cases/file_list_params.rb +54 -0
- data/lib/lithic/models/transaction_monitoring/cases/file_retrieve_params.rb +30 -0
- data/lib/lithic/models/transaction_monitoring/cases/file_status.rb +26 -0
- data/lib/lithic/models/transaction_monitoring/cases/upload_constraints.rb +31 -0
- data/lib/lithic/models/transaction_monitoring/entity_type.rb +18 -0
- data/lib/lithic/models/transaction_monitoring/monitoring_case.rb +168 -0
- data/lib/lithic/models/transaction_monitoring/queue.rb +120 -0
- data/lib/lithic/models/transaction_monitoring/queue_create_params.rb +32 -0
- data/lib/lithic/models/transaction_monitoring/queue_delete_params.rb +22 -0
- data/lib/lithic/models/transaction_monitoring/queue_list_params.rb +45 -0
- data/lib/lithic/models/transaction_monitoring/queue_retrieve_params.rb +22 -0
- data/lib/lithic/models/transaction_monitoring/queue_update_params.rb +39 -0
- data/lib/lithic/models/transaction_monitoring/resolution_outcome.rb +28 -0
- data/lib/lithic/models/transaction_route_params.rb +29 -0
- data/lib/lithic/models.rb +4 -0
- data/lib/lithic/resources/account_holders/entities.rb +1 -1
- data/lib/lithic/resources/cards.rb +2 -2
- data/lib/lithic/resources/transaction_monitoring/cases/comments.rb +111 -0
- data/lib/lithic/resources/transaction_monitoring/cases/files.rb +131 -0
- data/lib/lithic/resources/transaction_monitoring/cases.rb +228 -0
- data/lib/lithic/resources/transaction_monitoring/queues.rb +137 -0
- data/lib/lithic/resources/transaction_monitoring.rb +22 -0
- data/lib/lithic/resources/transactions.rb +25 -0
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +40 -0
- data/rbi/lithic/client.rbi +3 -0
- data/rbi/lithic/models/account.rbi +3 -3
- data/rbi/lithic/models/account_holders/account_holder_entity.rbi +3 -40
- data/rbi/lithic/models/account_holders/entity_create_params.rbi +3 -37
- data/rbi/lithic/models/auth_rules/auth_rule.rbi +6 -3
- data/rbi/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbi +29 -29
- data/rbi/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rbi +395 -12
- data/rbi/lithic/models/auth_rules/rule_feature.rbi +41 -5
- data/rbi/lithic/models/auth_rules/typescript_code_parameters.rbi +3 -0
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +18 -9
- data/rbi/lithic/models/card.rbi +2 -2
- data/rbi/lithic/models/card_authorization.rbi +246 -17
- data/rbi/lithic/models/financial_accounts/loan_tape.rbi +8 -0
- data/rbi/lithic/models/payment.rbi +13 -0
- data/rbi/lithic/models/transaction_monitoring/case_activity_entry.rbi +107 -0
- data/rbi/lithic/models/transaction_monitoring/case_activity_type.rbi +84 -0
- data/rbi/lithic/models/transaction_monitoring/case_card.rbi +60 -0
- data/rbi/lithic/models/transaction_monitoring/case_entity.rbi +101 -0
- data/rbi/lithic/models/transaction_monitoring/case_list_activity_params.rbi +83 -0
- data/rbi/lithic/models/transaction_monitoring/case_list_params.rbi +220 -0
- data/rbi/lithic/models/transaction_monitoring/case_list_transactions_params.rbi +83 -0
- data/rbi/lithic/models/transaction_monitoring/case_priority.rbi +44 -0
- data/rbi/lithic/models/transaction_monitoring/case_retrieve_cards_params.rbi +40 -0
- data/rbi/lithic/models/transaction_monitoring/case_retrieve_cards_response.rbi +15 -0
- data/rbi/lithic/models/transaction_monitoring/case_retrieve_params.rbi +40 -0
- data/rbi/lithic/models/transaction_monitoring/case_sort_order.rbi +64 -0
- data/rbi/lithic/models/transaction_monitoring/case_status.rbi +63 -0
- data/rbi/lithic/models/transaction_monitoring/case_transaction.rbi +75 -0
- data/rbi/lithic/models/transaction_monitoring/case_update_params.rbi +201 -0
- data/rbi/lithic/models/transaction_monitoring/cases/case_file.rbi +188 -0
- data/rbi/lithic/models/transaction_monitoring/cases/comment_create_params.rbi +71 -0
- data/rbi/lithic/models/transaction_monitoring/cases/comment_delete_params.rbi +50 -0
- data/rbi/lithic/models/transaction_monitoring/cases/comment_update_params.rbi +77 -0
- data/rbi/lithic/models/transaction_monitoring/cases/file_create_params.rbi +56 -0
- data/rbi/lithic/models/transaction_monitoring/cases/file_delete_params.rbi +50 -0
- data/rbi/lithic/models/transaction_monitoring/cases/file_list_params.rbi +85 -0
- data/rbi/lithic/models/transaction_monitoring/cases/file_retrieve_params.rbi +50 -0
- data/rbi/lithic/models/transaction_monitoring/cases/file_status.rbi +51 -0
- data/rbi/lithic/models/transaction_monitoring/cases/upload_constraints.rbi +51 -0
- data/rbi/lithic/models/transaction_monitoring/entity_type.rbi +37 -0
- data/rbi/lithic/models/transaction_monitoring/monitoring_case.rbi +226 -0
- data/rbi/lithic/models/transaction_monitoring/queue.rbi +189 -0
- data/rbi/lithic/models/transaction_monitoring/queue_create_params.rbi +56 -0
- data/rbi/lithic/models/transaction_monitoring/queue_delete_params.rbi +40 -0
- data/rbi/lithic/models/transaction_monitoring/queue_list_params.rbi +77 -0
- data/rbi/lithic/models/transaction_monitoring/queue_retrieve_params.rbi +40 -0
- data/rbi/lithic/models/transaction_monitoring/queue_update_params.rbi +65 -0
- data/rbi/lithic/models/transaction_monitoring/resolution_outcome.rbi +61 -0
- data/rbi/lithic/models/transaction_route_params.rbi +49 -0
- data/rbi/lithic/models.rbi +4 -0
- data/rbi/lithic/resources/account_holders/entities.rbi +1 -1
- data/rbi/lithic/resources/cards.rbi +2 -2
- data/rbi/lithic/resources/transaction_monitoring/cases/comments.rbi +81 -0
- data/rbi/lithic/resources/transaction_monitoring/cases/files.rbi +98 -0
- data/rbi/lithic/resources/transaction_monitoring/cases.rbi +230 -0
- data/rbi/lithic/resources/transaction_monitoring/queues.rbi +103 -0
- data/rbi/lithic/resources/transaction_monitoring.rbi +18 -0
- data/rbi/lithic/resources/transactions.rbi +18 -0
- data/sig/lithic/client.rbs +2 -0
- data/sig/lithic/models/account_holders/account_holder_entity.rbs +4 -15
- data/sig/lithic/models/account_holders/entity_create_params.rbs +4 -15
- data/sig/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbs +16 -16
- data/sig/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rbs +73 -3
- data/sig/lithic/models/auth_rules/rule_feature.rbs +16 -0
- data/sig/lithic/models/card_authorization.rbs +84 -10
- data/sig/lithic/models/financial_accounts/loan_tape.rbs +5 -0
- data/sig/lithic/models/payment.rbs +7 -0
- data/sig/lithic/models/transaction_monitoring/case_activity_entry.rbs +47 -0
- data/sig/lithic/models/transaction_monitoring/case_activity_type.rbs +32 -0
- data/sig/lithic/models/transaction_monitoring/case_card.rbs +32 -0
- data/sig/lithic/models/transaction_monitoring/case_entity.rbs +38 -0
- data/sig/lithic/models/transaction_monitoring/case_list_activity_params.rbs +49 -0
- data/sig/lithic/models/transaction_monitoring/case_list_params.rbs +125 -0
- data/sig/lithic/models/transaction_monitoring/case_list_transactions_params.rbs +49 -0
- data/sig/lithic/models/transaction_monitoring/case_priority.rbs +18 -0
- data/sig/lithic/models/transaction_monitoring/case_retrieve_cards_params.rbs +25 -0
- data/sig/lithic/models/transaction_monitoring/case_retrieve_cards_response.rbs +10 -0
- data/sig/lithic/models/transaction_monitoring/case_retrieve_params.rbs +25 -0
- data/sig/lithic/models/transaction_monitoring/case_sort_order.rbs +26 -0
- data/sig/lithic/models/transaction_monitoring/case_status.rbs +21 -0
- data/sig/lithic/models/transaction_monitoring/case_transaction.rbs +42 -0
- data/sig/lithic/models/transaction_monitoring/case_update_params.rbs +91 -0
- data/sig/lithic/models/transaction_monitoring/cases/case_file.rbs +86 -0
- data/sig/lithic/models/transaction_monitoring/cases/comment_create_params.rbs +38 -0
- data/sig/lithic/models/transaction_monitoring/cases/comment_delete_params.rbs +32 -0
- data/sig/lithic/models/transaction_monitoring/cases/comment_update_params.rbs +47 -0
- data/sig/lithic/models/transaction_monitoring/cases/file_create_params.rbs +32 -0
- data/sig/lithic/models/transaction_monitoring/cases/file_delete_params.rbs +32 -0
- data/sig/lithic/models/transaction_monitoring/cases/file_list_params.rbs +51 -0
- data/sig/lithic/models/transaction_monitoring/cases/file_retrieve_params.rbs +32 -0
- data/sig/lithic/models/transaction_monitoring/cases/file_status.rbs +19 -0
- data/sig/lithic/models/transaction_monitoring/cases/upload_constraints.rbs +26 -0
- data/sig/lithic/models/transaction_monitoring/entity_type.rbs +16 -0
- data/sig/lithic/models/transaction_monitoring/monitoring_case.rbs +102 -0
- data/sig/lithic/models/transaction_monitoring/queue.rbs +101 -0
- data/sig/lithic/models/transaction_monitoring/queue_create_params.rbs +30 -0
- data/sig/lithic/models/transaction_monitoring/queue_delete_params.rbs +25 -0
- data/sig/lithic/models/transaction_monitoring/queue_list_params.rbs +40 -0
- data/sig/lithic/models/transaction_monitoring/queue_retrieve_params.rbs +25 -0
- data/sig/lithic/models/transaction_monitoring/queue_update_params.rbs +36 -0
- data/sig/lithic/models/transaction_monitoring/resolution_outcome.rbs +24 -0
- data/sig/lithic/models/transaction_route_params.rbs +28 -0
- data/sig/lithic/models.rbs +4 -0
- data/sig/lithic/resources/account_holders/entities.rbs +1 -1
- data/sig/lithic/resources/transaction_monitoring/cases/comments.rbs +32 -0
- data/sig/lithic/resources/transaction_monitoring/cases/files.rbs +37 -0
- data/sig/lithic/resources/transaction_monitoring/cases.rbs +71 -0
- data/sig/lithic/resources/transaction_monitoring/queues.rbs +39 -0
- data/sig/lithic/resources/transaction_monitoring.rbs +11 -0
- data/sig/lithic/resources/transactions.rbs +6 -0
- metadata +122 -2
|
@@ -133,6 +133,52 @@ module Lithic
|
|
|
133
133
|
# - `SPEND_VELOCITY_AMOUNT`: The total spend amount (in cents) of transactions
|
|
134
134
|
# matching the specified filters within the given period. Requires `parameters`
|
|
135
135
|
# with `scope`, `period`, and optional `filters`. Use an integer value.
|
|
136
|
+
# - `AMOUNT_Z_SCORE`: The z-score of the transaction amount relative to the
|
|
137
|
+
# entity's transaction history. Null if fewer than 30 approved transactions in
|
|
138
|
+
# the specified window. Requires `parameters.scope` and `parameters.interval`.
|
|
139
|
+
# Use a decimal value.
|
|
140
|
+
# - `AVG_TRANSACTION_AMOUNT`: The average approved transaction amount for the
|
|
141
|
+
# entity over the specified window, in cents. Requires `parameters.scope` and
|
|
142
|
+
# `parameters.interval`. Use a decimal value.
|
|
143
|
+
# - `STDEV_TRANSACTION_AMOUNT`: The standard deviation of approved transaction
|
|
144
|
+
# amounts for the entity over the specified window, in cents. Null if fewer than
|
|
145
|
+
# 30 approved transactions in the specified window. Requires `parameters.scope`
|
|
146
|
+
# and `parameters.interval`. Use a decimal value.
|
|
147
|
+
# - `IS_NEW_COUNTRY`: Whether the transaction's merchant country has not been seen
|
|
148
|
+
# in the entity's transaction history. Valid values are `TRUE`, `FALSE`.
|
|
149
|
+
# Requires `parameters.scope`.
|
|
150
|
+
# - `IS_NEW_MCC`: Whether the transaction's MCC has not been seen in the entity's
|
|
151
|
+
# transaction history. Valid values are `TRUE`, `FALSE`. Requires
|
|
152
|
+
# `parameters.scope`.
|
|
153
|
+
# - `IS_FIRST_TRANSACTION`: Whether this is the first transaction for the entity.
|
|
154
|
+
# Valid values are `TRUE`, `FALSE`. Requires `parameters.scope`.
|
|
155
|
+
# - `CONSECUTIVE_DECLINES`: The number of consecutive declined transactions for
|
|
156
|
+
# the entity over the last 30 days (rolling). Requires `parameters.scope`. Use
|
|
157
|
+
# an integer value.
|
|
158
|
+
# - `TIME_SINCE_LAST_TRANSACTION`: The number of days since the last approved
|
|
159
|
+
# transaction for the entity, rounded to the nearest whole day. Requires
|
|
160
|
+
# `parameters.scope`. Use an integer value.
|
|
161
|
+
# - `DISTINCT_COUNTRY_COUNT`: The number of distinct merchant countries seen in
|
|
162
|
+
# the entity's transaction history. Requires `parameters.scope`. Use an integer
|
|
163
|
+
# value.
|
|
164
|
+
# - `IS_NEW_MERCHANT`: Whether the card acceptor ID has not been seen in the
|
|
165
|
+
# card's approved transaction history (capped at the 1000 most recently seen
|
|
166
|
+
# merchants). Valid values are `TRUE`, `FALSE`. Card-scoped only; no
|
|
167
|
+
# `parameters` required.
|
|
168
|
+
# - `THREE_DS_SUCCESS_RATE`: The 3DS authentication success rate for the card, as
|
|
169
|
+
# a percentage from 0.0 to 100.0. Card-scoped only; no `parameters` required.
|
|
170
|
+
# Use a decimal value.
|
|
171
|
+
# - `TRAVEL_SPEED`: The estimated speed of travel derived from the distance
|
|
172
|
+
# between the postal code centers of the last card-present transaction and the
|
|
173
|
+
# current transaction, divided by the elapsed time. Null if there is no prior
|
|
174
|
+
# card-present transaction, if either postal code cannot be geocoded, or if
|
|
175
|
+
# elapsed time is zero. Requires `parameters.unit` set to `MPH` or `KPH`. Use a
|
|
176
|
+
# decimal value.
|
|
177
|
+
# - `DISTANCE_FROM_LAST_TRANSACTION`: The estimated distance between the postal
|
|
178
|
+
# code centers of the last card-present transaction and the current transaction.
|
|
179
|
+
# Null if there is no prior card-present transaction or if either postal code
|
|
180
|
+
# cannot be geocoded. Requires `parameters.unit` set to `MILES` or `KILOMETERS`.
|
|
181
|
+
# Use a decimal value.
|
|
136
182
|
sig do
|
|
137
183
|
returns(
|
|
138
184
|
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Attribute::OrSymbol
|
|
@@ -148,8 +194,14 @@ module Lithic
|
|
|
148
194
|
sig { returns(Lithic::AuthRules::ConditionalValue::Variants) }
|
|
149
195
|
attr_accessor :value
|
|
150
196
|
|
|
151
|
-
# Additional parameters for
|
|
152
|
-
#
|
|
197
|
+
# Additional parameters for certain attributes. Required when `attribute` is
|
|
198
|
+
# `SPEND_VELOCITY_COUNT` or `SPEND_VELOCITY_AMOUNT` (require `scope`, `period`,
|
|
199
|
+
# and optional `filters`); `AMOUNT_Z_SCORE`, `AVG_TRANSACTION_AMOUNT`,
|
|
200
|
+
# `STDEV_TRANSACTION_AMOUNT`, `IS_NEW_COUNTRY`, `IS_NEW_MCC`,
|
|
201
|
+
# `IS_FIRST_TRANSACTION`, `CONSECUTIVE_DECLINES`, `TIME_SINCE_LAST_TRANSACTION`,
|
|
202
|
+
# or `DISTINCT_COUNTRY_COUNT` (require `scope`, and additionally `interval` for
|
|
203
|
+
# the statistical attributes); or `TRAVEL_SPEED` or
|
|
204
|
+
# `DISTANCE_FROM_LAST_TRANSACTION` (require `unit`). Not used for other
|
|
153
205
|
# attributes.
|
|
154
206
|
sig do
|
|
155
207
|
returns(
|
|
@@ -233,13 +285,65 @@ module Lithic
|
|
|
233
285
|
# - `SPEND_VELOCITY_AMOUNT`: The total spend amount (in cents) of transactions
|
|
234
286
|
# matching the specified filters within the given period. Requires `parameters`
|
|
235
287
|
# with `scope`, `period`, and optional `filters`. Use an integer value.
|
|
288
|
+
# - `AMOUNT_Z_SCORE`: The z-score of the transaction amount relative to the
|
|
289
|
+
# entity's transaction history. Null if fewer than 30 approved transactions in
|
|
290
|
+
# the specified window. Requires `parameters.scope` and `parameters.interval`.
|
|
291
|
+
# Use a decimal value.
|
|
292
|
+
# - `AVG_TRANSACTION_AMOUNT`: The average approved transaction amount for the
|
|
293
|
+
# entity over the specified window, in cents. Requires `parameters.scope` and
|
|
294
|
+
# `parameters.interval`. Use a decimal value.
|
|
295
|
+
# - `STDEV_TRANSACTION_AMOUNT`: The standard deviation of approved transaction
|
|
296
|
+
# amounts for the entity over the specified window, in cents. Null if fewer than
|
|
297
|
+
# 30 approved transactions in the specified window. Requires `parameters.scope`
|
|
298
|
+
# and `parameters.interval`. Use a decimal value.
|
|
299
|
+
# - `IS_NEW_COUNTRY`: Whether the transaction's merchant country has not been seen
|
|
300
|
+
# in the entity's transaction history. Valid values are `TRUE`, `FALSE`.
|
|
301
|
+
# Requires `parameters.scope`.
|
|
302
|
+
# - `IS_NEW_MCC`: Whether the transaction's MCC has not been seen in the entity's
|
|
303
|
+
# transaction history. Valid values are `TRUE`, `FALSE`. Requires
|
|
304
|
+
# `parameters.scope`.
|
|
305
|
+
# - `IS_FIRST_TRANSACTION`: Whether this is the first transaction for the entity.
|
|
306
|
+
# Valid values are `TRUE`, `FALSE`. Requires `parameters.scope`.
|
|
307
|
+
# - `CONSECUTIVE_DECLINES`: The number of consecutive declined transactions for
|
|
308
|
+
# the entity over the last 30 days (rolling). Requires `parameters.scope`. Use
|
|
309
|
+
# an integer value.
|
|
310
|
+
# - `TIME_SINCE_LAST_TRANSACTION`: The number of days since the last approved
|
|
311
|
+
# transaction for the entity, rounded to the nearest whole day. Requires
|
|
312
|
+
# `parameters.scope`. Use an integer value.
|
|
313
|
+
# - `DISTINCT_COUNTRY_COUNT`: The number of distinct merchant countries seen in
|
|
314
|
+
# the entity's transaction history. Requires `parameters.scope`. Use an integer
|
|
315
|
+
# value.
|
|
316
|
+
# - `IS_NEW_MERCHANT`: Whether the card acceptor ID has not been seen in the
|
|
317
|
+
# card's approved transaction history (capped at the 1000 most recently seen
|
|
318
|
+
# merchants). Valid values are `TRUE`, `FALSE`. Card-scoped only; no
|
|
319
|
+
# `parameters` required.
|
|
320
|
+
# - `THREE_DS_SUCCESS_RATE`: The 3DS authentication success rate for the card, as
|
|
321
|
+
# a percentage from 0.0 to 100.0. Card-scoped only; no `parameters` required.
|
|
322
|
+
# Use a decimal value.
|
|
323
|
+
# - `TRAVEL_SPEED`: The estimated speed of travel derived from the distance
|
|
324
|
+
# between the postal code centers of the last card-present transaction and the
|
|
325
|
+
# current transaction, divided by the elapsed time. Null if there is no prior
|
|
326
|
+
# card-present transaction, if either postal code cannot be geocoded, or if
|
|
327
|
+
# elapsed time is zero. Requires `parameters.unit` set to `MPH` or `KPH`. Use a
|
|
328
|
+
# decimal value.
|
|
329
|
+
# - `DISTANCE_FROM_LAST_TRANSACTION`: The estimated distance between the postal
|
|
330
|
+
# code centers of the last card-present transaction and the current transaction.
|
|
331
|
+
# Null if there is no prior card-present transaction or if either postal code
|
|
332
|
+
# cannot be geocoded. Requires `parameters.unit` set to `MILES` or `KILOMETERS`.
|
|
333
|
+
# Use a decimal value.
|
|
236
334
|
attribute:,
|
|
237
335
|
# The operation to apply to the attribute
|
|
238
336
|
operation:,
|
|
239
337
|
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
|
240
338
|
value:,
|
|
241
|
-
# Additional parameters for
|
|
242
|
-
#
|
|
339
|
+
# Additional parameters for certain attributes. Required when `attribute` is
|
|
340
|
+
# `SPEND_VELOCITY_COUNT` or `SPEND_VELOCITY_AMOUNT` (require `scope`, `period`,
|
|
341
|
+
# and optional `filters`); `AMOUNT_Z_SCORE`, `AVG_TRANSACTION_AMOUNT`,
|
|
342
|
+
# `STDEV_TRANSACTION_AMOUNT`, `IS_NEW_COUNTRY`, `IS_NEW_MCC`,
|
|
343
|
+
# `IS_FIRST_TRANSACTION`, `CONSECUTIVE_DECLINES`, `TIME_SINCE_LAST_TRANSACTION`,
|
|
344
|
+
# or `DISTINCT_COUNTRY_COUNT` (require `scope`, and additionally `interval` for
|
|
345
|
+
# the statistical attributes); or `TRAVEL_SPEED` or
|
|
346
|
+
# `DISTANCE_FROM_LAST_TRANSACTION` (require `unit`). Not used for other
|
|
243
347
|
# attributes.
|
|
244
348
|
parameters: nil
|
|
245
349
|
)
|
|
@@ -314,6 +418,52 @@ module Lithic
|
|
|
314
418
|
# - `SPEND_VELOCITY_AMOUNT`: The total spend amount (in cents) of transactions
|
|
315
419
|
# matching the specified filters within the given period. Requires `parameters`
|
|
316
420
|
# with `scope`, `period`, and optional `filters`. Use an integer value.
|
|
421
|
+
# - `AMOUNT_Z_SCORE`: The z-score of the transaction amount relative to the
|
|
422
|
+
# entity's transaction history. Null if fewer than 30 approved transactions in
|
|
423
|
+
# the specified window. Requires `parameters.scope` and `parameters.interval`.
|
|
424
|
+
# Use a decimal value.
|
|
425
|
+
# - `AVG_TRANSACTION_AMOUNT`: The average approved transaction amount for the
|
|
426
|
+
# entity over the specified window, in cents. Requires `parameters.scope` and
|
|
427
|
+
# `parameters.interval`. Use a decimal value.
|
|
428
|
+
# - `STDEV_TRANSACTION_AMOUNT`: The standard deviation of approved transaction
|
|
429
|
+
# amounts for the entity over the specified window, in cents. Null if fewer than
|
|
430
|
+
# 30 approved transactions in the specified window. Requires `parameters.scope`
|
|
431
|
+
# and `parameters.interval`. Use a decimal value.
|
|
432
|
+
# - `IS_NEW_COUNTRY`: Whether the transaction's merchant country has not been seen
|
|
433
|
+
# in the entity's transaction history. Valid values are `TRUE`, `FALSE`.
|
|
434
|
+
# Requires `parameters.scope`.
|
|
435
|
+
# - `IS_NEW_MCC`: Whether the transaction's MCC has not been seen in the entity's
|
|
436
|
+
# transaction history. Valid values are `TRUE`, `FALSE`. Requires
|
|
437
|
+
# `parameters.scope`.
|
|
438
|
+
# - `IS_FIRST_TRANSACTION`: Whether this is the first transaction for the entity.
|
|
439
|
+
# Valid values are `TRUE`, `FALSE`. Requires `parameters.scope`.
|
|
440
|
+
# - `CONSECUTIVE_DECLINES`: The number of consecutive declined transactions for
|
|
441
|
+
# the entity over the last 30 days (rolling). Requires `parameters.scope`. Use
|
|
442
|
+
# an integer value.
|
|
443
|
+
# - `TIME_SINCE_LAST_TRANSACTION`: The number of days since the last approved
|
|
444
|
+
# transaction for the entity, rounded to the nearest whole day. Requires
|
|
445
|
+
# `parameters.scope`. Use an integer value.
|
|
446
|
+
# - `DISTINCT_COUNTRY_COUNT`: The number of distinct merchant countries seen in
|
|
447
|
+
# the entity's transaction history. Requires `parameters.scope`. Use an integer
|
|
448
|
+
# value.
|
|
449
|
+
# - `IS_NEW_MERCHANT`: Whether the card acceptor ID has not been seen in the
|
|
450
|
+
# card's approved transaction history (capped at the 1000 most recently seen
|
|
451
|
+
# merchants). Valid values are `TRUE`, `FALSE`. Card-scoped only; no
|
|
452
|
+
# `parameters` required.
|
|
453
|
+
# - `THREE_DS_SUCCESS_RATE`: The 3DS authentication success rate for the card, as
|
|
454
|
+
# a percentage from 0.0 to 100.0. Card-scoped only; no `parameters` required.
|
|
455
|
+
# Use a decimal value.
|
|
456
|
+
# - `TRAVEL_SPEED`: The estimated speed of travel derived from the distance
|
|
457
|
+
# between the postal code centers of the last card-present transaction and the
|
|
458
|
+
# current transaction, divided by the elapsed time. Null if there is no prior
|
|
459
|
+
# card-present transaction, if either postal code cannot be geocoded, or if
|
|
460
|
+
# elapsed time is zero. Requires `parameters.unit` set to `MPH` or `KPH`. Use a
|
|
461
|
+
# decimal value.
|
|
462
|
+
# - `DISTANCE_FROM_LAST_TRANSACTION`: The estimated distance between the postal
|
|
463
|
+
# code centers of the last card-present transaction and the current transaction.
|
|
464
|
+
# Null if there is no prior card-present transaction or if either postal code
|
|
465
|
+
# cannot be geocoded. Requires `parameters.unit` set to `MILES` or `KILOMETERS`.
|
|
466
|
+
# Use a decimal value.
|
|
317
467
|
module Attribute
|
|
318
468
|
extend Lithic::Internal::Type::Enum
|
|
319
469
|
|
|
@@ -406,6 +556,71 @@ module Lithic
|
|
|
406
556
|
:SPEND_VELOCITY_AMOUNT,
|
|
407
557
|
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Attribute::TaggedSymbol
|
|
408
558
|
)
|
|
559
|
+
AMOUNT_Z_SCORE =
|
|
560
|
+
T.let(
|
|
561
|
+
:AMOUNT_Z_SCORE,
|
|
562
|
+
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Attribute::TaggedSymbol
|
|
563
|
+
)
|
|
564
|
+
AVG_TRANSACTION_AMOUNT =
|
|
565
|
+
T.let(
|
|
566
|
+
:AVG_TRANSACTION_AMOUNT,
|
|
567
|
+
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Attribute::TaggedSymbol
|
|
568
|
+
)
|
|
569
|
+
STDEV_TRANSACTION_AMOUNT =
|
|
570
|
+
T.let(
|
|
571
|
+
:STDEV_TRANSACTION_AMOUNT,
|
|
572
|
+
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Attribute::TaggedSymbol
|
|
573
|
+
)
|
|
574
|
+
IS_NEW_COUNTRY =
|
|
575
|
+
T.let(
|
|
576
|
+
:IS_NEW_COUNTRY,
|
|
577
|
+
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Attribute::TaggedSymbol
|
|
578
|
+
)
|
|
579
|
+
IS_NEW_MCC =
|
|
580
|
+
T.let(
|
|
581
|
+
:IS_NEW_MCC,
|
|
582
|
+
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Attribute::TaggedSymbol
|
|
583
|
+
)
|
|
584
|
+
IS_FIRST_TRANSACTION =
|
|
585
|
+
T.let(
|
|
586
|
+
:IS_FIRST_TRANSACTION,
|
|
587
|
+
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Attribute::TaggedSymbol
|
|
588
|
+
)
|
|
589
|
+
CONSECUTIVE_DECLINES =
|
|
590
|
+
T.let(
|
|
591
|
+
:CONSECUTIVE_DECLINES,
|
|
592
|
+
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Attribute::TaggedSymbol
|
|
593
|
+
)
|
|
594
|
+
TIME_SINCE_LAST_TRANSACTION =
|
|
595
|
+
T.let(
|
|
596
|
+
:TIME_SINCE_LAST_TRANSACTION,
|
|
597
|
+
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Attribute::TaggedSymbol
|
|
598
|
+
)
|
|
599
|
+
DISTINCT_COUNTRY_COUNT =
|
|
600
|
+
T.let(
|
|
601
|
+
:DISTINCT_COUNTRY_COUNT,
|
|
602
|
+
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Attribute::TaggedSymbol
|
|
603
|
+
)
|
|
604
|
+
IS_NEW_MERCHANT =
|
|
605
|
+
T.let(
|
|
606
|
+
:IS_NEW_MERCHANT,
|
|
607
|
+
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Attribute::TaggedSymbol
|
|
608
|
+
)
|
|
609
|
+
THREE_DS_SUCCESS_RATE =
|
|
610
|
+
T.let(
|
|
611
|
+
:THREE_DS_SUCCESS_RATE,
|
|
612
|
+
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Attribute::TaggedSymbol
|
|
613
|
+
)
|
|
614
|
+
TRAVEL_SPEED =
|
|
615
|
+
T.let(
|
|
616
|
+
:TRAVEL_SPEED,
|
|
617
|
+
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Attribute::TaggedSymbol
|
|
618
|
+
)
|
|
619
|
+
DISTANCE_FROM_LAST_TRANSACTION =
|
|
620
|
+
T.let(
|
|
621
|
+
:DISTANCE_FROM_LAST_TRANSACTION,
|
|
622
|
+
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Attribute::TaggedSymbol
|
|
623
|
+
)
|
|
409
624
|
|
|
410
625
|
sig do
|
|
411
626
|
override.returns(
|
|
@@ -437,6 +652,26 @@ module Lithic
|
|
|
437
652
|
end
|
|
438
653
|
attr_writer :filters
|
|
439
654
|
|
|
655
|
+
# The time window for statistical attributes (`AMOUNT_Z_SCORE`,
|
|
656
|
+
# `AVG_TRANSACTION_AMOUNT`, `STDEV_TRANSACTION_AMOUNT`). Use `LIFETIME` for
|
|
657
|
+
# all-time history or a specific window (`7D`, `30D`, `90D`).
|
|
658
|
+
sig do
|
|
659
|
+
returns(
|
|
660
|
+
T.nilable(
|
|
661
|
+
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Interval::OrSymbol
|
|
662
|
+
)
|
|
663
|
+
)
|
|
664
|
+
end
|
|
665
|
+
attr_reader :interval
|
|
666
|
+
|
|
667
|
+
sig do
|
|
668
|
+
params(
|
|
669
|
+
interval:
|
|
670
|
+
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Interval::OrSymbol
|
|
671
|
+
).void
|
|
672
|
+
end
|
|
673
|
+
attr_writer :interval
|
|
674
|
+
|
|
440
675
|
# The time period over which to calculate the spend velocity.
|
|
441
676
|
sig do
|
|
442
677
|
returns(
|
|
@@ -467,7 +702,8 @@ module Lithic
|
|
|
467
702
|
end
|
|
468
703
|
attr_writer :period
|
|
469
704
|
|
|
470
|
-
# The entity scope to evaluate the attribute against.
|
|
705
|
+
# The entity scope to evaluate the attribute against. `GLOBAL` is only valid for
|
|
706
|
+
# spend velocity attributes.
|
|
471
707
|
sig do
|
|
472
708
|
returns(
|
|
473
709
|
T.nilable(
|
|
@@ -485,12 +721,43 @@ module Lithic
|
|
|
485
721
|
end
|
|
486
722
|
attr_writer :scope
|
|
487
723
|
|
|
488
|
-
#
|
|
489
|
-
#
|
|
724
|
+
# The unit for impossible travel attributes. Required when `attribute` is
|
|
725
|
+
# `TRAVEL_SPEED` or `DISTANCE_FROM_LAST_TRANSACTION`.
|
|
726
|
+
#
|
|
727
|
+
# For `TRAVEL_SPEED`: `MPH` (miles per hour) or `KPH` (kilometers per hour).
|
|
728
|
+
#
|
|
729
|
+
# For `DISTANCE_FROM_LAST_TRANSACTION`: `MILES` or `KILOMETERS`.
|
|
730
|
+
sig do
|
|
731
|
+
returns(
|
|
732
|
+
T.nilable(
|
|
733
|
+
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Unit::OrSymbol
|
|
734
|
+
)
|
|
735
|
+
)
|
|
736
|
+
end
|
|
737
|
+
attr_reader :unit
|
|
738
|
+
|
|
739
|
+
sig do
|
|
740
|
+
params(
|
|
741
|
+
unit:
|
|
742
|
+
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Unit::OrSymbol
|
|
743
|
+
).void
|
|
744
|
+
end
|
|
745
|
+
attr_writer :unit
|
|
746
|
+
|
|
747
|
+
# Additional parameters for certain attributes. Required when `attribute` is
|
|
748
|
+
# `SPEND_VELOCITY_COUNT` or `SPEND_VELOCITY_AMOUNT` (require `scope`, `period`,
|
|
749
|
+
# and optional `filters`); `AMOUNT_Z_SCORE`, `AVG_TRANSACTION_AMOUNT`,
|
|
750
|
+
# `STDEV_TRANSACTION_AMOUNT`, `IS_NEW_COUNTRY`, `IS_NEW_MCC`,
|
|
751
|
+
# `IS_FIRST_TRANSACTION`, `CONSECUTIVE_DECLINES`, `TIME_SINCE_LAST_TRANSACTION`,
|
|
752
|
+
# or `DISTINCT_COUNTRY_COUNT` (require `scope`, and additionally `interval` for
|
|
753
|
+
# the statistical attributes); or `TRAVEL_SPEED` or
|
|
754
|
+
# `DISTANCE_FROM_LAST_TRANSACTION` (require `unit`). Not used for other
|
|
490
755
|
# attributes.
|
|
491
756
|
sig do
|
|
492
757
|
params(
|
|
493
758
|
filters: Lithic::AuthRules::SpendVelocityFilters::OrHash,
|
|
759
|
+
interval:
|
|
760
|
+
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Interval::OrSymbol,
|
|
494
761
|
period:
|
|
495
762
|
T.any(
|
|
496
763
|
Lithic::AuthRules::VelocityLimitPeriod::TrailingWindowObject::OrHash,
|
|
@@ -500,15 +767,29 @@ module Lithic
|
|
|
500
767
|
Lithic::AuthRules::VelocityLimitPeriod::FixedWindowYear::OrHash
|
|
501
768
|
),
|
|
502
769
|
scope:
|
|
503
|
-
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Scope::OrSymbol
|
|
770
|
+
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Scope::OrSymbol,
|
|
771
|
+
unit:
|
|
772
|
+
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Unit::OrSymbol
|
|
504
773
|
).returns(T.attached_class)
|
|
505
774
|
end
|
|
506
775
|
def self.new(
|
|
507
776
|
filters: nil,
|
|
777
|
+
# The time window for statistical attributes (`AMOUNT_Z_SCORE`,
|
|
778
|
+
# `AVG_TRANSACTION_AMOUNT`, `STDEV_TRANSACTION_AMOUNT`). Use `LIFETIME` for
|
|
779
|
+
# all-time history or a specific window (`7D`, `30D`, `90D`).
|
|
780
|
+
interval: nil,
|
|
508
781
|
# The time period over which to calculate the spend velocity.
|
|
509
782
|
period: nil,
|
|
510
|
-
# The entity scope to evaluate the attribute against.
|
|
511
|
-
|
|
783
|
+
# The entity scope to evaluate the attribute against. `GLOBAL` is only valid for
|
|
784
|
+
# spend velocity attributes.
|
|
785
|
+
scope: nil,
|
|
786
|
+
# The unit for impossible travel attributes. Required when `attribute` is
|
|
787
|
+
# `TRAVEL_SPEED` or `DISTANCE_FROM_LAST_TRANSACTION`.
|
|
788
|
+
#
|
|
789
|
+
# For `TRAVEL_SPEED`: `MPH` (miles per hour) or `KPH` (kilometers per hour).
|
|
790
|
+
#
|
|
791
|
+
# For `DISTANCE_FROM_LAST_TRANSACTION`: `MILES` or `KILOMETERS`.
|
|
792
|
+
unit: nil
|
|
512
793
|
)
|
|
513
794
|
end
|
|
514
795
|
|
|
@@ -516,6 +797,8 @@ module Lithic
|
|
|
516
797
|
override.returns(
|
|
517
798
|
{
|
|
518
799
|
filters: Lithic::AuthRules::SpendVelocityFilters,
|
|
800
|
+
interval:
|
|
801
|
+
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Interval::OrSymbol,
|
|
519
802
|
period:
|
|
520
803
|
T.any(
|
|
521
804
|
Lithic::AuthRules::VelocityLimitPeriod::TrailingWindowObject,
|
|
@@ -525,14 +808,64 @@ module Lithic
|
|
|
525
808
|
Lithic::AuthRules::VelocityLimitPeriod::FixedWindowYear
|
|
526
809
|
),
|
|
527
810
|
scope:
|
|
528
|
-
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Scope::OrSymbol
|
|
811
|
+
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Scope::OrSymbol,
|
|
812
|
+
unit:
|
|
813
|
+
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Unit::OrSymbol
|
|
529
814
|
}
|
|
530
815
|
)
|
|
531
816
|
end
|
|
532
817
|
def to_hash
|
|
533
818
|
end
|
|
534
819
|
|
|
535
|
-
# The
|
|
820
|
+
# The time window for statistical attributes (`AMOUNT_Z_SCORE`,
|
|
821
|
+
# `AVG_TRANSACTION_AMOUNT`, `STDEV_TRANSACTION_AMOUNT`). Use `LIFETIME` for
|
|
822
|
+
# all-time history or a specific window (`7D`, `30D`, `90D`).
|
|
823
|
+
module Interval
|
|
824
|
+
extend Lithic::Internal::Type::Enum
|
|
825
|
+
|
|
826
|
+
TaggedSymbol =
|
|
827
|
+
T.type_alias do
|
|
828
|
+
T.all(
|
|
829
|
+
Symbol,
|
|
830
|
+
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Interval
|
|
831
|
+
)
|
|
832
|
+
end
|
|
833
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
834
|
+
|
|
835
|
+
LIFETIME =
|
|
836
|
+
T.let(
|
|
837
|
+
:LIFETIME,
|
|
838
|
+
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Interval::TaggedSymbol
|
|
839
|
+
)
|
|
840
|
+
INTERVAL_7_D =
|
|
841
|
+
T.let(
|
|
842
|
+
:"7D",
|
|
843
|
+
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Interval::TaggedSymbol
|
|
844
|
+
)
|
|
845
|
+
INTERVAL_30_D =
|
|
846
|
+
T.let(
|
|
847
|
+
:"30D",
|
|
848
|
+
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Interval::TaggedSymbol
|
|
849
|
+
)
|
|
850
|
+
INTERVAL_90_D =
|
|
851
|
+
T.let(
|
|
852
|
+
:"90D",
|
|
853
|
+
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Interval::TaggedSymbol
|
|
854
|
+
)
|
|
855
|
+
|
|
856
|
+
sig do
|
|
857
|
+
override.returns(
|
|
858
|
+
T::Array[
|
|
859
|
+
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Interval::TaggedSymbol
|
|
860
|
+
]
|
|
861
|
+
)
|
|
862
|
+
end
|
|
863
|
+
def self.values
|
|
864
|
+
end
|
|
865
|
+
end
|
|
866
|
+
|
|
867
|
+
# The entity scope to evaluate the attribute against. `GLOBAL` is only valid for
|
|
868
|
+
# spend velocity attributes.
|
|
536
869
|
module Scope
|
|
537
870
|
extend Lithic::Internal::Type::Enum
|
|
538
871
|
|
|
@@ -571,6 +904,56 @@ module Lithic
|
|
|
571
904
|
def self.values
|
|
572
905
|
end
|
|
573
906
|
end
|
|
907
|
+
|
|
908
|
+
# The unit for impossible travel attributes. Required when `attribute` is
|
|
909
|
+
# `TRAVEL_SPEED` or `DISTANCE_FROM_LAST_TRANSACTION`.
|
|
910
|
+
#
|
|
911
|
+
# For `TRAVEL_SPEED`: `MPH` (miles per hour) or `KPH` (kilometers per hour).
|
|
912
|
+
#
|
|
913
|
+
# For `DISTANCE_FROM_LAST_TRANSACTION`: `MILES` or `KILOMETERS`.
|
|
914
|
+
module Unit
|
|
915
|
+
extend Lithic::Internal::Type::Enum
|
|
916
|
+
|
|
917
|
+
TaggedSymbol =
|
|
918
|
+
T.type_alias do
|
|
919
|
+
T.all(
|
|
920
|
+
Symbol,
|
|
921
|
+
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Unit
|
|
922
|
+
)
|
|
923
|
+
end
|
|
924
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
925
|
+
|
|
926
|
+
MPH =
|
|
927
|
+
T.let(
|
|
928
|
+
:MPH,
|
|
929
|
+
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Unit::TaggedSymbol
|
|
930
|
+
)
|
|
931
|
+
KPH =
|
|
932
|
+
T.let(
|
|
933
|
+
:KPH,
|
|
934
|
+
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Unit::TaggedSymbol
|
|
935
|
+
)
|
|
936
|
+
MILES =
|
|
937
|
+
T.let(
|
|
938
|
+
:MILES,
|
|
939
|
+
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Unit::TaggedSymbol
|
|
940
|
+
)
|
|
941
|
+
KILOMETERS =
|
|
942
|
+
T.let(
|
|
943
|
+
:KILOMETERS,
|
|
944
|
+
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Unit::TaggedSymbol
|
|
945
|
+
)
|
|
946
|
+
|
|
947
|
+
sig do
|
|
948
|
+
override.returns(
|
|
949
|
+
T::Array[
|
|
950
|
+
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Unit::TaggedSymbol
|
|
951
|
+
]
|
|
952
|
+
)
|
|
953
|
+
end
|
|
954
|
+
def self.values
|
|
955
|
+
end
|
|
956
|
+
end
|
|
574
957
|
end
|
|
575
958
|
end
|
|
576
959
|
end
|
|
@@ -15,10 +15,13 @@ module Lithic
|
|
|
15
15
|
# TOKENIZATION event stream rules.
|
|
16
16
|
# - `ACH_RECEIPT`: The ACH receipt being evaluated. Only available for
|
|
17
17
|
# ACH_CREDIT_RECEIPT and ACH_DEBIT_RECEIPT event stream rules.
|
|
18
|
-
# - `
|
|
19
|
-
#
|
|
18
|
+
# - `CARD_TRANSACTION`: The card transaction being evaluated. Only available for
|
|
19
|
+
# CARD_TRANSACTION_UPDATE event stream rules.
|
|
20
|
+
# - `CARD`: The card associated with the event. Available for AUTHORIZATION,
|
|
21
|
+
# THREE_DS_AUTHENTICATION, and CARD_TRANSACTION_UPDATE event stream rules.
|
|
20
22
|
# - `ACCOUNT_HOLDER`: The account holder associated with the card. Available for
|
|
21
|
-
# AUTHORIZATION and
|
|
23
|
+
# AUTHORIZATION, THREE_DS_AUTHENTICATION, and CARD_TRANSACTION_UPDATE event
|
|
24
|
+
# stream rules.
|
|
22
25
|
# - `IP_METADATA`: IP address metadata for the request. Available for
|
|
23
26
|
# THREE_DS_AUTHENTICATION event stream rules.
|
|
24
27
|
# - `SPEND_VELOCITY`: Spend velocity data for the card or account. Requires
|
|
@@ -26,8 +29,8 @@ module Lithic
|
|
|
26
29
|
# calculation. Available for AUTHORIZATION event stream rules.
|
|
27
30
|
# - `TRANSACTION_HISTORY_SIGNALS`: Behavioral feature state derived from the
|
|
28
31
|
# entity's transaction history. Requires `scope` to specify whether to load
|
|
29
|
-
# card, account, or business account history. Available for AUTHORIZATION
|
|
30
|
-
# stream rules.
|
|
32
|
+
# card, account, or business account history. Available for AUTHORIZATION and
|
|
33
|
+
# CARD_TRANSACTION_UPDATE event stream rules.
|
|
31
34
|
module RuleFeature
|
|
32
35
|
extend Lithic::Internal::Type::Union
|
|
33
36
|
|
|
@@ -38,6 +41,7 @@ module Lithic
|
|
|
38
41
|
Lithic::AuthRules::RuleFeature::AuthenticationFeature,
|
|
39
42
|
Lithic::AuthRules::RuleFeature::TokenizationFeature,
|
|
40
43
|
Lithic::AuthRules::RuleFeature::ACHReceiptFeature,
|
|
44
|
+
Lithic::AuthRules::RuleFeature::CardTransactionFeature,
|
|
41
45
|
Lithic::AuthRules::RuleFeature::CardFeature,
|
|
42
46
|
Lithic::AuthRules::RuleFeature::AccountHolderFeature,
|
|
43
47
|
Lithic::AuthRules::RuleFeature::IPMetadataFeature,
|
|
@@ -174,6 +178,38 @@ module Lithic
|
|
|
174
178
|
end
|
|
175
179
|
end
|
|
176
180
|
|
|
181
|
+
class CardTransactionFeature < Lithic::Internal::Type::BaseModel
|
|
182
|
+
OrHash =
|
|
183
|
+
T.type_alias do
|
|
184
|
+
T.any(
|
|
185
|
+
Lithic::AuthRules::RuleFeature::CardTransactionFeature,
|
|
186
|
+
Lithic::Internal::AnyHash
|
|
187
|
+
)
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
sig { returns(Symbol) }
|
|
191
|
+
attr_accessor :type
|
|
192
|
+
|
|
193
|
+
# The variable name for this feature in the rule function signature
|
|
194
|
+
sig { returns(T.nilable(String)) }
|
|
195
|
+
attr_reader :name
|
|
196
|
+
|
|
197
|
+
sig { params(name: String).void }
|
|
198
|
+
attr_writer :name
|
|
199
|
+
|
|
200
|
+
sig { params(name: String, type: Symbol).returns(T.attached_class) }
|
|
201
|
+
def self.new(
|
|
202
|
+
# The variable name for this feature in the rule function signature
|
|
203
|
+
name: nil,
|
|
204
|
+
type: :CARD_TRANSACTION
|
|
205
|
+
)
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
sig { override.returns({ type: Symbol, name: String }) }
|
|
209
|
+
def to_hash
|
|
210
|
+
end
|
|
211
|
+
end
|
|
212
|
+
|
|
177
213
|
class CardFeature < Lithic::Internal::Type::BaseModel
|
|
178
214
|
OrHash =
|
|
179
215
|
T.type_alias do
|
|
@@ -27,6 +27,7 @@ module Lithic
|
|
|
27
27
|
Lithic::AuthRules::RuleFeature::AuthenticationFeature,
|
|
28
28
|
Lithic::AuthRules::RuleFeature::TokenizationFeature,
|
|
29
29
|
Lithic::AuthRules::RuleFeature::ACHReceiptFeature,
|
|
30
|
+
Lithic::AuthRules::RuleFeature::CardTransactionFeature,
|
|
30
31
|
Lithic::AuthRules::RuleFeature::CardFeature,
|
|
31
32
|
Lithic::AuthRules::RuleFeature::AccountHolderFeature,
|
|
32
33
|
Lithic::AuthRules::RuleFeature::IPMetadataFeature,
|
|
@@ -49,6 +50,7 @@ module Lithic
|
|
|
49
50
|
Lithic::AuthRules::RuleFeature::AuthenticationFeature::OrHash,
|
|
50
51
|
Lithic::AuthRules::RuleFeature::TokenizationFeature::OrHash,
|
|
51
52
|
Lithic::AuthRules::RuleFeature::ACHReceiptFeature::OrHash,
|
|
53
|
+
Lithic::AuthRules::RuleFeature::CardTransactionFeature::OrHash,
|
|
52
54
|
Lithic::AuthRules::RuleFeature::CardFeature::OrHash,
|
|
53
55
|
Lithic::AuthRules::RuleFeature::AccountHolderFeature::OrHash,
|
|
54
56
|
Lithic::AuthRules::RuleFeature::IPMetadataFeature::OrHash,
|
|
@@ -79,6 +81,7 @@ module Lithic
|
|
|
79
81
|
Lithic::AuthRules::RuleFeature::AuthenticationFeature,
|
|
80
82
|
Lithic::AuthRules::RuleFeature::TokenizationFeature,
|
|
81
83
|
Lithic::AuthRules::RuleFeature::ACHReceiptFeature,
|
|
84
|
+
Lithic::AuthRules::RuleFeature::CardTransactionFeature,
|
|
82
85
|
Lithic::AuthRules::RuleFeature::CardFeature,
|
|
83
86
|
Lithic::AuthRules::RuleFeature::AccountHolderFeature,
|
|
84
87
|
Lithic::AuthRules::RuleFeature::IPMetadataFeature,
|