lithic 0.11.0 → 0.13.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 +38 -0
- data/README.md +1 -1
- data/lib/lithic/client.rb +15 -1
- data/lib/lithic/models/account.rb +2 -2
- data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +5 -4
- data/lib/lithic/models/account_holder_update_response.rb +3 -3
- data/lib/lithic/models/account_update_params.rb +2 -2
- data/lib/lithic/models/auth_rules/auth_rule.rb +14 -8
- data/lib/lithic/models/auth_rules/auth_rule_version.rb +5 -3
- data/lib/lithic/models/auth_rules/card_transaction_update_action.rb +109 -0
- data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +152 -1
- data/lib/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rb +244 -0
- data/lib/lithic/models/auth_rules/event_stream.rb +1 -0
- data/lib/lithic/models/auth_rules/rule_feature.rb +47 -1
- data/lib/lithic/models/auth_rules/spend_velocity_filters.rb +33 -0
- data/lib/lithic/models/auth_rules/typescript_code_parameters.rb +2 -2
- data/lib/lithic/models/auth_rules/v2_create_params.rb +27 -15
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +5 -3
- data/lib/lithic/models/card_authorization_challenge_response_webhook_event.rb +103 -0
- data/lib/lithic/models/card_create_params.rb +4 -2
- data/lib/lithic/models/card_renew_params.rb +4 -2
- data/lib/lithic/models/event.rb +5 -0
- data/lib/lithic/models/event_list_params.rb +3 -0
- data/lib/lithic/models/event_subscription.rb +3 -0
- data/lib/lithic/models/events/subscription_create_params.rb +3 -0
- data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +1 -0
- data/lib/lithic/models/events/subscription_update_params.rb +3 -0
- data/lib/lithic/models/external_bank_account_set_verification_method_params.rb +55 -0
- data/lib/lithic/models/non_pci_card.rb +13 -13
- data/lib/lithic/models/parsed_webhook_event.rb +3 -1
- data/lib/lithic/models/reports/settlement/network_total_list_params.rb +1 -0
- data/lib/lithic/models/settlement_detail.rb +11 -4
- data/lib/lithic/models/settlement_summary_details.rb +1 -0
- data/lib/lithic/models.rb +6 -0
- data/lib/lithic/resources/accounts.rb +1 -1
- data/lib/lithic/resources/auth_rules/v2.rb +1 -1
- data/lib/lithic/resources/external_bank_accounts.rb +31 -0
- data/lib/lithic/resources/webhooks.rb +1 -1
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +6 -1
- data/rbi/lithic/models/account.rbi +3 -6
- data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +10 -14
- data/rbi/lithic/models/account_holder_update_response.rbi +3 -3
- data/rbi/lithic/models/account_update_params.rbi +5 -8
- data/rbi/lithic/models/auth_rules/auth_rule.rbi +10 -3
- data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +2 -0
- data/rbi/lithic/models/auth_rules/card_transaction_update_action.rbi +242 -0
- data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +354 -3
- data/rbi/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rbi +573 -0
- data/rbi/lithic/models/auth_rules/event_stream.rbi +5 -0
- data/rbi/lithic/models/auth_rules/rule_feature.rbi +104 -1
- data/rbi/lithic/models/auth_rules/spend_velocity_filters.rbi +58 -0
- data/rbi/lithic/models/auth_rules/typescript_code_parameters.rbi +6 -3
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +30 -9
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +4 -0
- data/rbi/lithic/models/card_authorization_challenge_response_webhook_event.rbi +175 -0
- data/rbi/lithic/models/card_create_params.rbi +8 -4
- data/rbi/lithic/models/card_renew_params.rbi +8 -4
- data/rbi/lithic/models/event.rbi +11 -0
- data/rbi/lithic/models/event_list_params.rbi +7 -0
- data/rbi/lithic/models/event_subscription.rbi +7 -0
- data/rbi/lithic/models/events/subscription_create_params.rbi +7 -0
- data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +5 -0
- data/rbi/lithic/models/events/subscription_update_params.rbi +7 -0
- data/rbi/lithic/models/external_bank_account_set_verification_method_params.rbi +111 -0
- data/rbi/lithic/models/non_pci_card.rbi +21 -31
- data/rbi/lithic/models/parsed_webhook_event.rbi +1 -0
- data/rbi/lithic/models/reports/settlement/network_total_list_params.rbi +5 -0
- data/rbi/lithic/models/settlement_detail.rbi +17 -4
- data/rbi/lithic/models/settlement_summary_details.rbi +2 -0
- data/rbi/lithic/models.rbi +6 -0
- data/rbi/lithic/resources/accounts.rbi +2 -1
- data/rbi/lithic/resources/auth_rules/v2.rbi +1 -0
- data/rbi/lithic/resources/cards.rbi +8 -4
- data/rbi/lithic/resources/external_bank_accounts.rbi +22 -0
- data/rbi/lithic/resources/webhooks.rbi +1 -0
- data/sig/lithic/models/account.rbs +4 -8
- data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +4 -8
- data/sig/lithic/models/account_update_params.rbs +4 -8
- data/sig/lithic/models/auth_rules/auth_rule.rbs +2 -0
- data/sig/lithic/models/auth_rules/auth_rule_version.rbs +1 -0
- data/sig/lithic/models/auth_rules/card_transaction_update_action.rbs +100 -0
- data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +89 -3
- data/sig/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rbs +155 -0
- data/sig/lithic/models/auth_rules/event_stream.rbs +2 -0
- data/sig/lithic/models/auth_rules/rule_feature.rbs +42 -0
- data/sig/lithic/models/auth_rules/spend_velocity_filters.rbs +35 -0
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +3 -0
- data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -0
- data/sig/lithic/models/card_authorization_challenge_response_webhook_event.rbs +76 -0
- data/sig/lithic/models/event.rbs +2 -0
- data/sig/lithic/models/event_list_params.rbs +2 -0
- data/sig/lithic/models/event_subscription.rbs +2 -0
- data/sig/lithic/models/events/subscription_create_params.rbs +2 -0
- data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +2 -0
- data/sig/lithic/models/events/subscription_update_params.rbs +2 -0
- data/sig/lithic/models/external_bank_account_set_verification_method_params.rbs +51 -0
- data/sig/lithic/models/non_pci_card.rbs +20 -30
- data/sig/lithic/models/parsed_webhook_event.rbs +1 -0
- data/sig/lithic/models/reports/settlement/network_total_list_params.rbs +2 -1
- data/sig/lithic/models/settlement_detail.rbs +3 -1
- data/sig/lithic/models/settlement_summary_details.rbs +3 -1
- data/sig/lithic/models.rbs +4 -0
- data/sig/lithic/resources/accounts.rbs +1 -1
- data/sig/lithic/resources/external_bank_accounts.rbs +7 -0
- data/sig/lithic/resources/webhooks.rbs +1 -0
- metadata +17 -2
|
@@ -176,6 +176,37 @@ module Lithic
|
|
|
176
176
|
# - `CARD_AGE`: The age of the card in seconds at the time of the authorization.
|
|
177
177
|
# - `ACCOUNT_AGE`: The age of the account holder's account in seconds at the time
|
|
178
178
|
# of the authorization.
|
|
179
|
+
# - `AMOUNT_Z_SCORE`: The z-score of the transaction amount relative to the
|
|
180
|
+
# entity's transaction history. Null if fewer than 30 approved transactions in
|
|
181
|
+
# the specified window. Requires `parameters.scope` and `parameters.interval`.
|
|
182
|
+
# - `AVG_TRANSACTION_AMOUNT`: The average approved transaction amount for the
|
|
183
|
+
# entity over the specified window, in cents. Requires `parameters.scope` and
|
|
184
|
+
# `parameters.interval`.
|
|
185
|
+
# - `STDEV_TRANSACTION_AMOUNT`: The standard deviation of approved transaction
|
|
186
|
+
# amounts for the entity over the specified window, in cents. Null if fewer than
|
|
187
|
+
# 30 approved transactions in the specified window. Requires `parameters.scope`
|
|
188
|
+
# and `parameters.interval`.
|
|
189
|
+
# - `IS_NEW_COUNTRY`: Whether the transaction's merchant country has not been seen
|
|
190
|
+
# in the entity's transaction history. Valid values are `TRUE`, `FALSE`.
|
|
191
|
+
# Requires `parameters.scope`.
|
|
192
|
+
# - `IS_NEW_MCC`: Whether the transaction's MCC has not been seen in the entity's
|
|
193
|
+
# transaction history. Valid values are `TRUE`, `FALSE`. Requires
|
|
194
|
+
# `parameters.scope`.
|
|
195
|
+
# - `IS_FIRST_TRANSACTION`: Whether this is the first transaction for the entity.
|
|
196
|
+
# Valid values are `TRUE`, `FALSE`. Requires `parameters.scope`.
|
|
197
|
+
# - `CONSECUTIVE_DECLINES`: The number of consecutive declined transactions for
|
|
198
|
+
# the entity over the last 30 days (rolling). Requires `parameters.scope`. Not
|
|
199
|
+
# supported for `BUSINESS_ACCOUNT` scope.
|
|
200
|
+
# - `TIME_SINCE_LAST_TRANSACTION`: The number of days since the last approved
|
|
201
|
+
# transaction for the entity. Requires `parameters.scope`.
|
|
202
|
+
# - `DISTINCT_COUNTRY_COUNT`: The number of distinct merchant countries seen in
|
|
203
|
+
# the entity's transaction history. Requires `parameters.scope`.
|
|
204
|
+
# - `IS_NEW_MERCHANT`: Whether the card acceptor ID has not been seen in the
|
|
205
|
+
# card's approved transaction history (capped at the 1000 most recently seen
|
|
206
|
+
# merchants). Valid values are `TRUE`, `FALSE`. Card-scoped only; no
|
|
207
|
+
# `parameters` required.
|
|
208
|
+
# - `THREE_DS_SUCCESS_RATE`: The 3DS authentication success rate for the card, as
|
|
209
|
+
# a percentage from 0.0 to 100.0. Card-scoped only; no `parameters` required.
|
|
179
210
|
sig do
|
|
180
211
|
returns(
|
|
181
212
|
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol
|
|
@@ -191,12 +222,36 @@ module Lithic
|
|
|
191
222
|
sig { returns(Lithic::AuthRules::ConditionalValue::Variants) }
|
|
192
223
|
attr_accessor :value
|
|
193
224
|
|
|
225
|
+
# Additional parameters required for transaction history signal attributes.
|
|
226
|
+
# Required when `attribute` is one of `AMOUNT_Z_SCORE`, `AVG_TRANSACTION_AMOUNT`,
|
|
227
|
+
# `STDEV_TRANSACTION_AMOUNT`, `IS_NEW_COUNTRY`, `IS_NEW_MCC`,
|
|
228
|
+
# `IS_FIRST_TRANSACTION`, `CONSECUTIVE_DECLINES`, `TIME_SINCE_LAST_TRANSACTION`,
|
|
229
|
+
# or `DISTINCT_COUNTRY_COUNT`. Not used for other attributes.
|
|
230
|
+
sig do
|
|
231
|
+
returns(
|
|
232
|
+
T.nilable(
|
|
233
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters
|
|
234
|
+
)
|
|
235
|
+
)
|
|
236
|
+
end
|
|
237
|
+
attr_reader :parameters
|
|
238
|
+
|
|
239
|
+
sig do
|
|
240
|
+
params(
|
|
241
|
+
parameters:
|
|
242
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::OrHash
|
|
243
|
+
).void
|
|
244
|
+
end
|
|
245
|
+
attr_writer :parameters
|
|
246
|
+
|
|
194
247
|
sig do
|
|
195
248
|
params(
|
|
196
249
|
attribute:
|
|
197
250
|
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol,
|
|
198
251
|
operation: Lithic::AuthRules::ConditionalOperation::OrSymbol,
|
|
199
|
-
value: Lithic::AuthRules::ConditionalValue::Variants
|
|
252
|
+
value: Lithic::AuthRules::ConditionalValue::Variants,
|
|
253
|
+
parameters:
|
|
254
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::OrHash
|
|
200
255
|
).returns(T.attached_class)
|
|
201
256
|
end
|
|
202
257
|
def self.new(
|
|
@@ -271,11 +326,48 @@ module Lithic
|
|
|
271
326
|
# - `CARD_AGE`: The age of the card in seconds at the time of the authorization.
|
|
272
327
|
# - `ACCOUNT_AGE`: The age of the account holder's account in seconds at the time
|
|
273
328
|
# of the authorization.
|
|
329
|
+
# - `AMOUNT_Z_SCORE`: The z-score of the transaction amount relative to the
|
|
330
|
+
# entity's transaction history. Null if fewer than 30 approved transactions in
|
|
331
|
+
# the specified window. Requires `parameters.scope` and `parameters.interval`.
|
|
332
|
+
# - `AVG_TRANSACTION_AMOUNT`: The average approved transaction amount for the
|
|
333
|
+
# entity over the specified window, in cents. Requires `parameters.scope` and
|
|
334
|
+
# `parameters.interval`.
|
|
335
|
+
# - `STDEV_TRANSACTION_AMOUNT`: The standard deviation of approved transaction
|
|
336
|
+
# amounts for the entity over the specified window, in cents. Null if fewer than
|
|
337
|
+
# 30 approved transactions in the specified window. Requires `parameters.scope`
|
|
338
|
+
# and `parameters.interval`.
|
|
339
|
+
# - `IS_NEW_COUNTRY`: Whether the transaction's merchant country has not been seen
|
|
340
|
+
# in the entity's transaction history. Valid values are `TRUE`, `FALSE`.
|
|
341
|
+
# Requires `parameters.scope`.
|
|
342
|
+
# - `IS_NEW_MCC`: Whether the transaction's MCC has not been seen in the entity's
|
|
343
|
+
# transaction history. Valid values are `TRUE`, `FALSE`. Requires
|
|
344
|
+
# `parameters.scope`.
|
|
345
|
+
# - `IS_FIRST_TRANSACTION`: Whether this is the first transaction for the entity.
|
|
346
|
+
# Valid values are `TRUE`, `FALSE`. Requires `parameters.scope`.
|
|
347
|
+
# - `CONSECUTIVE_DECLINES`: The number of consecutive declined transactions for
|
|
348
|
+
# the entity over the last 30 days (rolling). Requires `parameters.scope`. Not
|
|
349
|
+
# supported for `BUSINESS_ACCOUNT` scope.
|
|
350
|
+
# - `TIME_SINCE_LAST_TRANSACTION`: The number of days since the last approved
|
|
351
|
+
# transaction for the entity. Requires `parameters.scope`.
|
|
352
|
+
# - `DISTINCT_COUNTRY_COUNT`: The number of distinct merchant countries seen in
|
|
353
|
+
# the entity's transaction history. Requires `parameters.scope`.
|
|
354
|
+
# - `IS_NEW_MERCHANT`: Whether the card acceptor ID has not been seen in the
|
|
355
|
+
# card's approved transaction history (capped at the 1000 most recently seen
|
|
356
|
+
# merchants). Valid values are `TRUE`, `FALSE`. Card-scoped only; no
|
|
357
|
+
# `parameters` required.
|
|
358
|
+
# - `THREE_DS_SUCCESS_RATE`: The 3DS authentication success rate for the card, as
|
|
359
|
+
# a percentage from 0.0 to 100.0. Card-scoped only; no `parameters` required.
|
|
274
360
|
attribute:,
|
|
275
361
|
# The operation to apply to the attribute
|
|
276
362
|
operation:,
|
|
277
363
|
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
|
278
|
-
value
|
|
364
|
+
value:,
|
|
365
|
+
# Additional parameters required for transaction history signal attributes.
|
|
366
|
+
# Required when `attribute` is one of `AMOUNT_Z_SCORE`, `AVG_TRANSACTION_AMOUNT`,
|
|
367
|
+
# `STDEV_TRANSACTION_AMOUNT`, `IS_NEW_COUNTRY`, `IS_NEW_MCC`,
|
|
368
|
+
# `IS_FIRST_TRANSACTION`, `CONSECUTIVE_DECLINES`, `TIME_SINCE_LAST_TRANSACTION`,
|
|
369
|
+
# or `DISTINCT_COUNTRY_COUNT`. Not used for other attributes.
|
|
370
|
+
parameters: nil
|
|
279
371
|
)
|
|
280
372
|
end
|
|
281
373
|
|
|
@@ -285,7 +377,9 @@ module Lithic
|
|
|
285
377
|
attribute:
|
|
286
378
|
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol,
|
|
287
379
|
operation: Lithic::AuthRules::ConditionalOperation::OrSymbol,
|
|
288
|
-
value: Lithic::AuthRules::ConditionalValue::Variants
|
|
380
|
+
value: Lithic::AuthRules::ConditionalValue::Variants,
|
|
381
|
+
parameters:
|
|
382
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters
|
|
289
383
|
}
|
|
290
384
|
)
|
|
291
385
|
end
|
|
@@ -363,6 +457,37 @@ module Lithic
|
|
|
363
457
|
# - `CARD_AGE`: The age of the card in seconds at the time of the authorization.
|
|
364
458
|
# - `ACCOUNT_AGE`: The age of the account holder's account in seconds at the time
|
|
365
459
|
# of the authorization.
|
|
460
|
+
# - `AMOUNT_Z_SCORE`: The z-score of the transaction amount relative to the
|
|
461
|
+
# entity's transaction history. Null if fewer than 30 approved transactions in
|
|
462
|
+
# the specified window. Requires `parameters.scope` and `parameters.interval`.
|
|
463
|
+
# - `AVG_TRANSACTION_AMOUNT`: The average approved transaction amount for the
|
|
464
|
+
# entity over the specified window, in cents. Requires `parameters.scope` and
|
|
465
|
+
# `parameters.interval`.
|
|
466
|
+
# - `STDEV_TRANSACTION_AMOUNT`: The standard deviation of approved transaction
|
|
467
|
+
# amounts for the entity over the specified window, in cents. Null if fewer than
|
|
468
|
+
# 30 approved transactions in the specified window. Requires `parameters.scope`
|
|
469
|
+
# and `parameters.interval`.
|
|
470
|
+
# - `IS_NEW_COUNTRY`: Whether the transaction's merchant country has not been seen
|
|
471
|
+
# in the entity's transaction history. Valid values are `TRUE`, `FALSE`.
|
|
472
|
+
# Requires `parameters.scope`.
|
|
473
|
+
# - `IS_NEW_MCC`: Whether the transaction's MCC has not been seen in the entity's
|
|
474
|
+
# transaction history. Valid values are `TRUE`, `FALSE`. Requires
|
|
475
|
+
# `parameters.scope`.
|
|
476
|
+
# - `IS_FIRST_TRANSACTION`: Whether this is the first transaction for the entity.
|
|
477
|
+
# Valid values are `TRUE`, `FALSE`. Requires `parameters.scope`.
|
|
478
|
+
# - `CONSECUTIVE_DECLINES`: The number of consecutive declined transactions for
|
|
479
|
+
# the entity over the last 30 days (rolling). Requires `parameters.scope`. Not
|
|
480
|
+
# supported for `BUSINESS_ACCOUNT` scope.
|
|
481
|
+
# - `TIME_SINCE_LAST_TRANSACTION`: The number of days since the last approved
|
|
482
|
+
# transaction for the entity. Requires `parameters.scope`.
|
|
483
|
+
# - `DISTINCT_COUNTRY_COUNT`: The number of distinct merchant countries seen in
|
|
484
|
+
# the entity's transaction history. Requires `parameters.scope`.
|
|
485
|
+
# - `IS_NEW_MERCHANT`: Whether the card acceptor ID has not been seen in the
|
|
486
|
+
# card's approved transaction history (capped at the 1000 most recently seen
|
|
487
|
+
# merchants). Valid values are `TRUE`, `FALSE`. Card-scoped only; no
|
|
488
|
+
# `parameters` required.
|
|
489
|
+
# - `THREE_DS_SUCCESS_RATE`: The 3DS authentication success rate for the card, as
|
|
490
|
+
# a percentage from 0.0 to 100.0. Card-scoped only; no `parameters` required.
|
|
366
491
|
module Attribute
|
|
367
492
|
extend Lithic::Internal::Type::Enum
|
|
368
493
|
|
|
@@ -505,6 +630,61 @@ module Lithic
|
|
|
505
630
|
:ACCOUNT_AGE,
|
|
506
631
|
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
|
507
632
|
)
|
|
633
|
+
AMOUNT_Z_SCORE =
|
|
634
|
+
T.let(
|
|
635
|
+
:AMOUNT_Z_SCORE,
|
|
636
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
|
637
|
+
)
|
|
638
|
+
AVG_TRANSACTION_AMOUNT =
|
|
639
|
+
T.let(
|
|
640
|
+
:AVG_TRANSACTION_AMOUNT,
|
|
641
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
|
642
|
+
)
|
|
643
|
+
STDEV_TRANSACTION_AMOUNT =
|
|
644
|
+
T.let(
|
|
645
|
+
:STDEV_TRANSACTION_AMOUNT,
|
|
646
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
|
647
|
+
)
|
|
648
|
+
IS_NEW_COUNTRY =
|
|
649
|
+
T.let(
|
|
650
|
+
:IS_NEW_COUNTRY,
|
|
651
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
|
652
|
+
)
|
|
653
|
+
IS_NEW_MCC =
|
|
654
|
+
T.let(
|
|
655
|
+
:IS_NEW_MCC,
|
|
656
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
|
657
|
+
)
|
|
658
|
+
IS_FIRST_TRANSACTION =
|
|
659
|
+
T.let(
|
|
660
|
+
:IS_FIRST_TRANSACTION,
|
|
661
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
|
662
|
+
)
|
|
663
|
+
CONSECUTIVE_DECLINES =
|
|
664
|
+
T.let(
|
|
665
|
+
:CONSECUTIVE_DECLINES,
|
|
666
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
|
667
|
+
)
|
|
668
|
+
TIME_SINCE_LAST_TRANSACTION =
|
|
669
|
+
T.let(
|
|
670
|
+
:TIME_SINCE_LAST_TRANSACTION,
|
|
671
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
|
672
|
+
)
|
|
673
|
+
DISTINCT_COUNTRY_COUNT =
|
|
674
|
+
T.let(
|
|
675
|
+
:DISTINCT_COUNTRY_COUNT,
|
|
676
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
|
677
|
+
)
|
|
678
|
+
IS_NEW_MERCHANT =
|
|
679
|
+
T.let(
|
|
680
|
+
:IS_NEW_MERCHANT,
|
|
681
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
|
682
|
+
)
|
|
683
|
+
THREE_DS_SUCCESS_RATE =
|
|
684
|
+
T.let(
|
|
685
|
+
:THREE_DS_SUCCESS_RATE,
|
|
686
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
|
|
687
|
+
)
|
|
508
688
|
|
|
509
689
|
sig do
|
|
510
690
|
override.returns(
|
|
@@ -516,6 +696,177 @@ module Lithic
|
|
|
516
696
|
def self.values
|
|
517
697
|
end
|
|
518
698
|
end
|
|
699
|
+
|
|
700
|
+
class Parameters < Lithic::Internal::Type::BaseModel
|
|
701
|
+
OrHash =
|
|
702
|
+
T.type_alias do
|
|
703
|
+
T.any(
|
|
704
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters,
|
|
705
|
+
Lithic::Internal::AnyHash
|
|
706
|
+
)
|
|
707
|
+
end
|
|
708
|
+
|
|
709
|
+
# The time window for statistical attributes (`AMOUNT_Z_SCORE`,
|
|
710
|
+
# `AVG_TRANSACTION_AMOUNT`, `STDEV_TRANSACTION_AMOUNT`). Use `LIFETIME` for
|
|
711
|
+
# all-time history or a specific window (`7D`, `30D`, `90D`).
|
|
712
|
+
sig do
|
|
713
|
+
returns(
|
|
714
|
+
T.nilable(
|
|
715
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::Interval::OrSymbol
|
|
716
|
+
)
|
|
717
|
+
)
|
|
718
|
+
end
|
|
719
|
+
attr_reader :interval
|
|
720
|
+
|
|
721
|
+
sig do
|
|
722
|
+
params(
|
|
723
|
+
interval:
|
|
724
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::Interval::OrSymbol
|
|
725
|
+
).void
|
|
726
|
+
end
|
|
727
|
+
attr_writer :interval
|
|
728
|
+
|
|
729
|
+
# The entity scope to evaluate the attribute against.
|
|
730
|
+
sig do
|
|
731
|
+
returns(
|
|
732
|
+
T.nilable(
|
|
733
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::Scope::OrSymbol
|
|
734
|
+
)
|
|
735
|
+
)
|
|
736
|
+
end
|
|
737
|
+
attr_reader :scope
|
|
738
|
+
|
|
739
|
+
sig do
|
|
740
|
+
params(
|
|
741
|
+
scope:
|
|
742
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::Scope::OrSymbol
|
|
743
|
+
).void
|
|
744
|
+
end
|
|
745
|
+
attr_writer :scope
|
|
746
|
+
|
|
747
|
+
# Additional parameters required for transaction history signal attributes.
|
|
748
|
+
# Required when `attribute` is one of `AMOUNT_Z_SCORE`, `AVG_TRANSACTION_AMOUNT`,
|
|
749
|
+
# `STDEV_TRANSACTION_AMOUNT`, `IS_NEW_COUNTRY`, `IS_NEW_MCC`,
|
|
750
|
+
# `IS_FIRST_TRANSACTION`, `CONSECUTIVE_DECLINES`, `TIME_SINCE_LAST_TRANSACTION`,
|
|
751
|
+
# or `DISTINCT_COUNTRY_COUNT`. Not used for other attributes.
|
|
752
|
+
sig do
|
|
753
|
+
params(
|
|
754
|
+
interval:
|
|
755
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::Interval::OrSymbol,
|
|
756
|
+
scope:
|
|
757
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::Scope::OrSymbol
|
|
758
|
+
).returns(T.attached_class)
|
|
759
|
+
end
|
|
760
|
+
def self.new(
|
|
761
|
+
# The time window for statistical attributes (`AMOUNT_Z_SCORE`,
|
|
762
|
+
# `AVG_TRANSACTION_AMOUNT`, `STDEV_TRANSACTION_AMOUNT`). Use `LIFETIME` for
|
|
763
|
+
# all-time history or a specific window (`7D`, `30D`, `90D`).
|
|
764
|
+
interval: nil,
|
|
765
|
+
# The entity scope to evaluate the attribute against.
|
|
766
|
+
scope: nil
|
|
767
|
+
)
|
|
768
|
+
end
|
|
769
|
+
|
|
770
|
+
sig do
|
|
771
|
+
override.returns(
|
|
772
|
+
{
|
|
773
|
+
interval:
|
|
774
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::Interval::OrSymbol,
|
|
775
|
+
scope:
|
|
776
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::Scope::OrSymbol
|
|
777
|
+
}
|
|
778
|
+
)
|
|
779
|
+
end
|
|
780
|
+
def to_hash
|
|
781
|
+
end
|
|
782
|
+
|
|
783
|
+
# The time window for statistical attributes (`AMOUNT_Z_SCORE`,
|
|
784
|
+
# `AVG_TRANSACTION_AMOUNT`, `STDEV_TRANSACTION_AMOUNT`). Use `LIFETIME` for
|
|
785
|
+
# all-time history or a specific window (`7D`, `30D`, `90D`).
|
|
786
|
+
module Interval
|
|
787
|
+
extend Lithic::Internal::Type::Enum
|
|
788
|
+
|
|
789
|
+
TaggedSymbol =
|
|
790
|
+
T.type_alias do
|
|
791
|
+
T.all(
|
|
792
|
+
Symbol,
|
|
793
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::Interval
|
|
794
|
+
)
|
|
795
|
+
end
|
|
796
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
797
|
+
|
|
798
|
+
LIFETIME =
|
|
799
|
+
T.let(
|
|
800
|
+
:LIFETIME,
|
|
801
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::Interval::TaggedSymbol
|
|
802
|
+
)
|
|
803
|
+
INTERVAL_7_D =
|
|
804
|
+
T.let(
|
|
805
|
+
:"7D",
|
|
806
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::Interval::TaggedSymbol
|
|
807
|
+
)
|
|
808
|
+
INTERVAL_30_D =
|
|
809
|
+
T.let(
|
|
810
|
+
:"30D",
|
|
811
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::Interval::TaggedSymbol
|
|
812
|
+
)
|
|
813
|
+
INTERVAL_90_D =
|
|
814
|
+
T.let(
|
|
815
|
+
:"90D",
|
|
816
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::Interval::TaggedSymbol
|
|
817
|
+
)
|
|
818
|
+
|
|
819
|
+
sig do
|
|
820
|
+
override.returns(
|
|
821
|
+
T::Array[
|
|
822
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::Interval::TaggedSymbol
|
|
823
|
+
]
|
|
824
|
+
)
|
|
825
|
+
end
|
|
826
|
+
def self.values
|
|
827
|
+
end
|
|
828
|
+
end
|
|
829
|
+
|
|
830
|
+
# The entity scope to evaluate the attribute against.
|
|
831
|
+
module Scope
|
|
832
|
+
extend Lithic::Internal::Type::Enum
|
|
833
|
+
|
|
834
|
+
TaggedSymbol =
|
|
835
|
+
T.type_alias do
|
|
836
|
+
T.all(
|
|
837
|
+
Symbol,
|
|
838
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::Scope
|
|
839
|
+
)
|
|
840
|
+
end
|
|
841
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
842
|
+
|
|
843
|
+
CARD =
|
|
844
|
+
T.let(
|
|
845
|
+
:CARD,
|
|
846
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::Scope::TaggedSymbol
|
|
847
|
+
)
|
|
848
|
+
ACCOUNT =
|
|
849
|
+
T.let(
|
|
850
|
+
:ACCOUNT,
|
|
851
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::Scope::TaggedSymbol
|
|
852
|
+
)
|
|
853
|
+
BUSINESS_ACCOUNT =
|
|
854
|
+
T.let(
|
|
855
|
+
:BUSINESS_ACCOUNT,
|
|
856
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::Scope::TaggedSymbol
|
|
857
|
+
)
|
|
858
|
+
|
|
859
|
+
sig do
|
|
860
|
+
override.returns(
|
|
861
|
+
T::Array[
|
|
862
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::Scope::TaggedSymbol
|
|
863
|
+
]
|
|
864
|
+
)
|
|
865
|
+
end
|
|
866
|
+
def self.values
|
|
867
|
+
end
|
|
868
|
+
end
|
|
869
|
+
end
|
|
519
870
|
end
|
|
520
871
|
end
|
|
521
872
|
end
|