lithic 0.15.0 → 0.17.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 +35 -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/ach_payment_update_action.rb +108 -0
- data/lib/lithic/models/auth_rules/auth_rule.rb +18 -12
- data/lib/lithic/models/auth_rules/auth_rule_version.rb +5 -3
- data/lib/lithic/models/auth_rules/conditional_ach_payment_update_action_parameters.rb +142 -0
- 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/event_stream.rb +1 -0
- data/lib/lithic/models/auth_rules/rule_feature.rb +52 -7
- data/lib/lithic/models/auth_rules/typescript_code_parameters.rb +2 -2
- data/lib/lithic/models/auth_rules/v2_create_params.rb +39 -27
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +5 -3
- data/lib/lithic/models/auth_rules/v2_list_results_response.rb +426 -1
- 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/auth_rules/v2.rb +2 -2
- 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 +42 -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/ach_payment_update_action.rbi +237 -0
- data/rbi/lithic/models/auth_rules/auth_rule.rbi +16 -9
- data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +2 -0
- data/rbi/lithic/models/auth_rules/conditional_ach_payment_update_action_parameters.rbi +298 -0
- 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/event_stream.rbi +5 -0
- data/rbi/lithic/models/auth_rules/rule_feature.rbi +77 -6
- data/rbi/lithic/models/auth_rules/typescript_code_parameters.rbi +6 -0
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +48 -27
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +4 -0
- data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +826 -1
- 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/auth_rules/v2.rbi +1 -0
- 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/ach_payment_update_action.rbs +99 -0
- 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/conditional_ach_payment_update_action_parameters.rbs +81 -0
- 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/event_stream.rbs +2 -0
- data/sig/lithic/models/auth_rules/rule_feature.rbs +31 -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/auth_rules/v2_list_results_response.rbs +355 -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 +128 -2
|
@@ -4,11 +4,11 @@ module Lithic
|
|
|
4
4
|
module Models
|
|
5
5
|
module AuthRules
|
|
6
6
|
class ConditionalAuthorizationAdjustmentParameters < Lithic::Internal::Type::BaseModel
|
|
7
|
-
# @!attribute
|
|
8
|
-
# The hold adjustment to apply if the conditions are met
|
|
7
|
+
# @!attribute action
|
|
8
|
+
# The hold adjustment to apply if the conditions are met.
|
|
9
9
|
#
|
|
10
|
-
# @return [Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::
|
|
11
|
-
required :
|
|
10
|
+
# @return [Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action]
|
|
11
|
+
required :action, -> { Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action }
|
|
12
12
|
|
|
13
13
|
# @!attribute conditions
|
|
14
14
|
#
|
|
@@ -16,13 +16,13 @@ module Lithic
|
|
|
16
16
|
required :conditions,
|
|
17
17
|
-> { Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Condition] }
|
|
18
18
|
|
|
19
|
-
# @!method initialize(
|
|
20
|
-
# @param
|
|
19
|
+
# @!method initialize(action:, conditions:)
|
|
20
|
+
# @param action [Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action] The hold adjustment to apply if the conditions are met.
|
|
21
21
|
#
|
|
22
22
|
# @param conditions [Array<Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Condition>]
|
|
23
23
|
|
|
24
|
-
# @see Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters#
|
|
25
|
-
class
|
|
24
|
+
# @see Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters#action
|
|
25
|
+
class Action < Lithic::Internal::Type::BaseModel
|
|
26
26
|
# @!attribute mode
|
|
27
27
|
# The mode of the hold adjustment, determining how the value is interpreted:
|
|
28
28
|
#
|
|
@@ -31,16 +31,14 @@ module Lithic
|
|
|
31
31
|
# represents a 10% increase, 0 represents no change.
|
|
32
32
|
# - `ADD_AMOUNT`: The value is added to the hold amount in cents.
|
|
33
33
|
#
|
|
34
|
-
# @return [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::
|
|
35
|
-
required :mode,
|
|
36
|
-
enum: -> { Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment::Mode }
|
|
34
|
+
# @return [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::Mode]
|
|
35
|
+
required :mode, enum: -> { Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::Mode }
|
|
37
36
|
|
|
38
37
|
# @!attribute type
|
|
39
38
|
# The type of adjustment to apply
|
|
40
39
|
#
|
|
41
|
-
# @return [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::
|
|
42
|
-
required :type,
|
|
43
|
-
enum: -> { Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Adjustment::Type }
|
|
40
|
+
# @return [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::Type]
|
|
41
|
+
required :type, enum: -> { Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::Type }
|
|
44
42
|
|
|
45
43
|
# @!attribute value
|
|
46
44
|
# The value used for the hold adjustment, interpreted based on the mode
|
|
@@ -50,14 +48,14 @@ module Lithic
|
|
|
50
48
|
|
|
51
49
|
# @!method initialize(mode:, type:, value:)
|
|
52
50
|
# Some parameter documentations has been truncated, see
|
|
53
|
-
# {Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::
|
|
51
|
+
# {Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action}
|
|
54
52
|
# for more details.
|
|
55
53
|
#
|
|
56
|
-
# The hold adjustment to apply if the conditions are met
|
|
54
|
+
# The hold adjustment to apply if the conditions are met.
|
|
57
55
|
#
|
|
58
|
-
# @param mode [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::
|
|
56
|
+
# @param mode [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::Mode] The mode of the hold adjustment, determining how the value is interpreted:
|
|
59
57
|
#
|
|
60
|
-
# @param type [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::
|
|
58
|
+
# @param type [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action::Type] The type of adjustment to apply
|
|
61
59
|
#
|
|
62
60
|
# @param value [Integer] The value used for the hold adjustment, interpreted based on the mode
|
|
63
61
|
|
|
@@ -68,7 +66,7 @@ module Lithic
|
|
|
68
66
|
# represents a 10% increase, 0 represents no change.
|
|
69
67
|
# - `ADD_AMOUNT`: The value is added to the hold amount in cents.
|
|
70
68
|
#
|
|
71
|
-
# @see Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::
|
|
69
|
+
# @see Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action#mode
|
|
72
70
|
module Mode
|
|
73
71
|
extend Lithic::Internal::Type::Enum
|
|
74
72
|
|
|
@@ -82,7 +80,7 @@ module Lithic
|
|
|
82
80
|
|
|
83
81
|
# The type of adjustment to apply
|
|
84
82
|
#
|
|
85
|
-
# @see Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::
|
|
83
|
+
# @see Lithic::Models::AuthRules::ConditionalAuthorizationAdjustmentParameters::Action#type
|
|
86
84
|
module Type
|
|
87
85
|
extend Lithic::Internal::Type::Enum
|
|
88
86
|
|
|
@@ -77,6 +77,52 @@ module Lithic
|
|
|
77
77
|
# - `SPEND_VELOCITY_AMOUNT`: The total spend amount (in cents) of transactions
|
|
78
78
|
# matching the specified filters within the given period. Requires `parameters`
|
|
79
79
|
# with `scope`, `period`, and optional `filters`. Use an integer value.
|
|
80
|
+
# - `AMOUNT_Z_SCORE`: The z-score of the transaction amount relative to the
|
|
81
|
+
# entity's transaction history. Null if fewer than 30 approved transactions in
|
|
82
|
+
# the specified window. Requires `parameters.scope` and `parameters.interval`.
|
|
83
|
+
# Use a decimal value.
|
|
84
|
+
# - `AVG_TRANSACTION_AMOUNT`: The average approved transaction amount for the
|
|
85
|
+
# entity over the specified window, in cents. Requires `parameters.scope` and
|
|
86
|
+
# `parameters.interval`. Use a decimal value.
|
|
87
|
+
# - `STDEV_TRANSACTION_AMOUNT`: The standard deviation of approved transaction
|
|
88
|
+
# amounts for the entity over the specified window, in cents. Null if fewer than
|
|
89
|
+
# 30 approved transactions in the specified window. Requires `parameters.scope`
|
|
90
|
+
# and `parameters.interval`. Use a decimal value.
|
|
91
|
+
# - `IS_NEW_COUNTRY`: Whether the transaction's merchant country has not been seen
|
|
92
|
+
# in the entity's transaction history. Valid values are `TRUE`, `FALSE`.
|
|
93
|
+
# Requires `parameters.scope`.
|
|
94
|
+
# - `IS_NEW_MCC`: Whether the transaction's MCC has not been seen in the entity's
|
|
95
|
+
# transaction history. Valid values are `TRUE`, `FALSE`. Requires
|
|
96
|
+
# `parameters.scope`.
|
|
97
|
+
# - `IS_FIRST_TRANSACTION`: Whether this is the first transaction for the entity.
|
|
98
|
+
# Valid values are `TRUE`, `FALSE`. Requires `parameters.scope`.
|
|
99
|
+
# - `CONSECUTIVE_DECLINES`: The number of consecutive declined transactions for
|
|
100
|
+
# the entity over the last 30 days (rolling). Requires `parameters.scope`. Use
|
|
101
|
+
# an integer value.
|
|
102
|
+
# - `TIME_SINCE_LAST_TRANSACTION`: The number of days since the last approved
|
|
103
|
+
# transaction for the entity, rounded to the nearest whole day. Requires
|
|
104
|
+
# `parameters.scope`. Use an integer value.
|
|
105
|
+
# - `DISTINCT_COUNTRY_COUNT`: The number of distinct merchant countries seen in
|
|
106
|
+
# the entity's transaction history. Requires `parameters.scope`. Use an integer
|
|
107
|
+
# value.
|
|
108
|
+
# - `IS_NEW_MERCHANT`: Whether the card acceptor ID has not been seen in the
|
|
109
|
+
# card's approved transaction history (capped at the 1000 most recently seen
|
|
110
|
+
# merchants). Valid values are `TRUE`, `FALSE`. Card-scoped only; no
|
|
111
|
+
# `parameters` required.
|
|
112
|
+
# - `THREE_DS_SUCCESS_RATE`: The 3DS authentication success rate for the card, as
|
|
113
|
+
# a percentage from 0.0 to 100.0. Card-scoped only; no `parameters` required.
|
|
114
|
+
# Use a decimal value.
|
|
115
|
+
# - `TRAVEL_SPEED`: The estimated speed of travel derived from the distance
|
|
116
|
+
# between the postal code centers of the last card-present transaction and the
|
|
117
|
+
# current transaction, divided by the elapsed time. Null if there is no prior
|
|
118
|
+
# card-present transaction, if either postal code cannot be geocoded, or if
|
|
119
|
+
# elapsed time is zero. Requires `parameters.unit` set to `MPH` or `KPH`. Use a
|
|
120
|
+
# decimal value.
|
|
121
|
+
# - `DISTANCE_FROM_LAST_TRANSACTION`: The estimated distance between the postal
|
|
122
|
+
# code centers of the last card-present transaction and the current transaction.
|
|
123
|
+
# Null if there is no prior card-present transaction or if either postal code
|
|
124
|
+
# cannot be geocoded. Requires `parameters.unit` set to `MILES` or `KILOMETERS`.
|
|
125
|
+
# Use a decimal value.
|
|
80
126
|
#
|
|
81
127
|
# @return [Symbol, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Attribute]
|
|
82
128
|
required :attribute,
|
|
@@ -95,8 +141,14 @@ module Lithic
|
|
|
95
141
|
required :value, union: -> { Lithic::AuthRules::ConditionalValue }
|
|
96
142
|
|
|
97
143
|
# @!attribute parameters
|
|
98
|
-
# Additional parameters for
|
|
99
|
-
#
|
|
144
|
+
# Additional parameters for certain attributes. Required when `attribute` is
|
|
145
|
+
# `SPEND_VELOCITY_COUNT` or `SPEND_VELOCITY_AMOUNT` (require `scope`, `period`,
|
|
146
|
+
# and optional `filters`); `AMOUNT_Z_SCORE`, `AVG_TRANSACTION_AMOUNT`,
|
|
147
|
+
# `STDEV_TRANSACTION_AMOUNT`, `IS_NEW_COUNTRY`, `IS_NEW_MCC`,
|
|
148
|
+
# `IS_FIRST_TRANSACTION`, `CONSECUTIVE_DECLINES`, `TIME_SINCE_LAST_TRANSACTION`,
|
|
149
|
+
# or `DISTINCT_COUNTRY_COUNT` (require `scope`, and additionally `interval` for
|
|
150
|
+
# the statistical attributes); or `TRAVEL_SPEED` or
|
|
151
|
+
# `DISTANCE_FROM_LAST_TRANSACTION` (require `unit`). Not used for other
|
|
100
152
|
# attributes.
|
|
101
153
|
#
|
|
102
154
|
# @return [Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters, nil]
|
|
@@ -114,7 +166,7 @@ module Lithic
|
|
|
114
166
|
#
|
|
115
167
|
# @param value [String, Integer, Float, Array<String>, Time] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
|
116
168
|
#
|
|
117
|
-
# @param parameters [Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters] Additional parameters for
|
|
169
|
+
# @param parameters [Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters] Additional parameters for certain attributes. Required when `attribute` is
|
|
118
170
|
|
|
119
171
|
# The attribute to target.
|
|
120
172
|
#
|
|
@@ -170,6 +222,52 @@ module Lithic
|
|
|
170
222
|
# - `SPEND_VELOCITY_AMOUNT`: The total spend amount (in cents) of transactions
|
|
171
223
|
# matching the specified filters within the given period. Requires `parameters`
|
|
172
224
|
# with `scope`, `period`, and optional `filters`. Use an integer value.
|
|
225
|
+
# - `AMOUNT_Z_SCORE`: The z-score of the transaction amount relative to the
|
|
226
|
+
# entity's transaction history. Null if fewer than 30 approved transactions in
|
|
227
|
+
# the specified window. Requires `parameters.scope` and `parameters.interval`.
|
|
228
|
+
# Use a decimal value.
|
|
229
|
+
# - `AVG_TRANSACTION_AMOUNT`: The average approved transaction amount for the
|
|
230
|
+
# entity over the specified window, in cents. Requires `parameters.scope` and
|
|
231
|
+
# `parameters.interval`. Use a decimal value.
|
|
232
|
+
# - `STDEV_TRANSACTION_AMOUNT`: The standard deviation of approved transaction
|
|
233
|
+
# amounts for the entity over the specified window, in cents. Null if fewer than
|
|
234
|
+
# 30 approved transactions in the specified window. Requires `parameters.scope`
|
|
235
|
+
# and `parameters.interval`. Use a decimal value.
|
|
236
|
+
# - `IS_NEW_COUNTRY`: Whether the transaction's merchant country has not been seen
|
|
237
|
+
# in the entity's transaction history. Valid values are `TRUE`, `FALSE`.
|
|
238
|
+
# Requires `parameters.scope`.
|
|
239
|
+
# - `IS_NEW_MCC`: Whether the transaction's MCC has not been seen in the entity's
|
|
240
|
+
# transaction history. Valid values are `TRUE`, `FALSE`. Requires
|
|
241
|
+
# `parameters.scope`.
|
|
242
|
+
# - `IS_FIRST_TRANSACTION`: Whether this is the first transaction for the entity.
|
|
243
|
+
# Valid values are `TRUE`, `FALSE`. Requires `parameters.scope`.
|
|
244
|
+
# - `CONSECUTIVE_DECLINES`: The number of consecutive declined transactions for
|
|
245
|
+
# the entity over the last 30 days (rolling). Requires `parameters.scope`. Use
|
|
246
|
+
# an integer value.
|
|
247
|
+
# - `TIME_SINCE_LAST_TRANSACTION`: The number of days since the last approved
|
|
248
|
+
# transaction for the entity, rounded to the nearest whole day. Requires
|
|
249
|
+
# `parameters.scope`. Use an integer value.
|
|
250
|
+
# - `DISTINCT_COUNTRY_COUNT`: The number of distinct merchant countries seen in
|
|
251
|
+
# the entity's transaction history. Requires `parameters.scope`. Use an integer
|
|
252
|
+
# value.
|
|
253
|
+
# - `IS_NEW_MERCHANT`: Whether the card acceptor ID has not been seen in the
|
|
254
|
+
# card's approved transaction history (capped at the 1000 most recently seen
|
|
255
|
+
# merchants). Valid values are `TRUE`, `FALSE`. Card-scoped only; no
|
|
256
|
+
# `parameters` required.
|
|
257
|
+
# - `THREE_DS_SUCCESS_RATE`: The 3DS authentication success rate for the card, as
|
|
258
|
+
# a percentage from 0.0 to 100.0. Card-scoped only; no `parameters` required.
|
|
259
|
+
# Use a decimal value.
|
|
260
|
+
# - `TRAVEL_SPEED`: The estimated speed of travel derived from the distance
|
|
261
|
+
# between the postal code centers of the last card-present transaction and the
|
|
262
|
+
# current transaction, divided by the elapsed time. Null if there is no prior
|
|
263
|
+
# card-present transaction, if either postal code cannot be geocoded, or if
|
|
264
|
+
# elapsed time is zero. Requires `parameters.unit` set to `MPH` or `KPH`. Use a
|
|
265
|
+
# decimal value.
|
|
266
|
+
# - `DISTANCE_FROM_LAST_TRANSACTION`: The estimated distance between the postal
|
|
267
|
+
# code centers of the last card-present transaction and the current transaction.
|
|
268
|
+
# Null if there is no prior card-present transaction or if either postal code
|
|
269
|
+
# cannot be geocoded. Requires `parameters.unit` set to `MILES` or `KILOMETERS`.
|
|
270
|
+
# Use a decimal value.
|
|
173
271
|
#
|
|
174
272
|
# @see Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition#attribute
|
|
175
273
|
module Attribute
|
|
@@ -191,6 +289,19 @@ module Lithic
|
|
|
191
289
|
ACCOUNT_AGE = :ACCOUNT_AGE
|
|
192
290
|
SPEND_VELOCITY_COUNT = :SPEND_VELOCITY_COUNT
|
|
193
291
|
SPEND_VELOCITY_AMOUNT = :SPEND_VELOCITY_AMOUNT
|
|
292
|
+
AMOUNT_Z_SCORE = :AMOUNT_Z_SCORE
|
|
293
|
+
AVG_TRANSACTION_AMOUNT = :AVG_TRANSACTION_AMOUNT
|
|
294
|
+
STDEV_TRANSACTION_AMOUNT = :STDEV_TRANSACTION_AMOUNT
|
|
295
|
+
IS_NEW_COUNTRY = :IS_NEW_COUNTRY
|
|
296
|
+
IS_NEW_MCC = :IS_NEW_MCC
|
|
297
|
+
IS_FIRST_TRANSACTION = :IS_FIRST_TRANSACTION
|
|
298
|
+
CONSECUTIVE_DECLINES = :CONSECUTIVE_DECLINES
|
|
299
|
+
TIME_SINCE_LAST_TRANSACTION = :TIME_SINCE_LAST_TRANSACTION
|
|
300
|
+
DISTINCT_COUNTRY_COUNT = :DISTINCT_COUNTRY_COUNT
|
|
301
|
+
IS_NEW_MERCHANT = :IS_NEW_MERCHANT
|
|
302
|
+
THREE_DS_SUCCESS_RATE = :THREE_DS_SUCCESS_RATE
|
|
303
|
+
TRAVEL_SPEED = :TRAVEL_SPEED
|
|
304
|
+
DISTANCE_FROM_LAST_TRANSACTION = :DISTANCE_FROM_LAST_TRANSACTION
|
|
194
305
|
|
|
195
306
|
# @!method self.values
|
|
196
307
|
# @return [Array<Symbol>]
|
|
@@ -203,6 +314,15 @@ module Lithic
|
|
|
203
314
|
# @return [Lithic::Models::AuthRules::SpendVelocityFilters, nil]
|
|
204
315
|
optional :filters, -> { Lithic::AuthRules::SpendVelocityFilters }
|
|
205
316
|
|
|
317
|
+
# @!attribute interval
|
|
318
|
+
# The time window for statistical attributes (`AMOUNT_Z_SCORE`,
|
|
319
|
+
# `AVG_TRANSACTION_AMOUNT`, `STDEV_TRANSACTION_AMOUNT`). Use `LIFETIME` for
|
|
320
|
+
# all-time history or a specific window (`7D`, `30D`, `90D`).
|
|
321
|
+
#
|
|
322
|
+
# @return [Symbol, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Interval, nil]
|
|
323
|
+
optional :interval,
|
|
324
|
+
enum: -> { Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Interval }
|
|
325
|
+
|
|
206
326
|
# @!attribute period
|
|
207
327
|
# The time period over which to calculate the spend velocity.
|
|
208
328
|
#
|
|
@@ -210,24 +330,70 @@ module Lithic
|
|
|
210
330
|
optional :period, union: -> { Lithic::AuthRules::VelocityLimitPeriod }
|
|
211
331
|
|
|
212
332
|
# @!attribute scope
|
|
213
|
-
# The entity scope to evaluate the attribute against.
|
|
333
|
+
# The entity scope to evaluate the attribute against. `GLOBAL` is only valid for
|
|
334
|
+
# spend velocity attributes.
|
|
214
335
|
#
|
|
215
336
|
# @return [Symbol, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Scope, nil]
|
|
216
337
|
optional :scope,
|
|
217
338
|
enum: -> { Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Scope }
|
|
218
339
|
|
|
219
|
-
# @!
|
|
220
|
-
#
|
|
221
|
-
#
|
|
340
|
+
# @!attribute unit
|
|
341
|
+
# The unit for impossible travel attributes. Required when `attribute` is
|
|
342
|
+
# `TRAVEL_SPEED` or `DISTANCE_FROM_LAST_TRANSACTION`.
|
|
343
|
+
#
|
|
344
|
+
# For `TRAVEL_SPEED`: `MPH` (miles per hour) or `KPH` (kilometers per hour).
|
|
345
|
+
#
|
|
346
|
+
# For `DISTANCE_FROM_LAST_TRANSACTION`: `MILES` or `KILOMETERS`.
|
|
347
|
+
#
|
|
348
|
+
# @return [Symbol, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Unit, nil]
|
|
349
|
+
optional :unit,
|
|
350
|
+
enum: -> { Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Unit }
|
|
351
|
+
|
|
352
|
+
# @!method initialize(filters: nil, interval: nil, period: nil, scope: nil, unit: nil)
|
|
353
|
+
# Some parameter documentations has been truncated, see
|
|
354
|
+
# {Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters}
|
|
355
|
+
# for more details.
|
|
356
|
+
#
|
|
357
|
+
# Additional parameters for certain attributes. Required when `attribute` is
|
|
358
|
+
# `SPEND_VELOCITY_COUNT` or `SPEND_VELOCITY_AMOUNT` (require `scope`, `period`,
|
|
359
|
+
# and optional `filters`); `AMOUNT_Z_SCORE`, `AVG_TRANSACTION_AMOUNT`,
|
|
360
|
+
# `STDEV_TRANSACTION_AMOUNT`, `IS_NEW_COUNTRY`, `IS_NEW_MCC`,
|
|
361
|
+
# `IS_FIRST_TRANSACTION`, `CONSECUTIVE_DECLINES`, `TIME_SINCE_LAST_TRANSACTION`,
|
|
362
|
+
# or `DISTINCT_COUNTRY_COUNT` (require `scope`, and additionally `interval` for
|
|
363
|
+
# the statistical attributes); or `TRAVEL_SPEED` or
|
|
364
|
+
# `DISTANCE_FROM_LAST_TRANSACTION` (require `unit`). Not used for other
|
|
222
365
|
# attributes.
|
|
223
366
|
#
|
|
224
367
|
# @param filters [Lithic::Models::AuthRules::SpendVelocityFilters]
|
|
225
368
|
#
|
|
369
|
+
# @param interval [Symbol, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Interval] The time window for statistical attributes (`AMOUNT_Z_SCORE`, `AVG_TRANSACTION_A
|
|
370
|
+
#
|
|
226
371
|
# @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] The time period over which to calculate the spend velocity.
|
|
227
372
|
#
|
|
228
|
-
# @param scope [Symbol, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Scope] The entity scope to evaluate the attribute against.
|
|
373
|
+
# @param scope [Symbol, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Scope] The entity scope to evaluate the attribute against. `GLOBAL` is only valid for
|
|
374
|
+
#
|
|
375
|
+
# @param unit [Symbol, Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::Unit] The unit for impossible travel attributes. Required when `attribute` is
|
|
376
|
+
# `TRAVEL\_
|
|
229
377
|
|
|
230
|
-
# The
|
|
378
|
+
# The time window for statistical attributes (`AMOUNT_Z_SCORE`,
|
|
379
|
+
# `AVG_TRANSACTION_AMOUNT`, `STDEV_TRANSACTION_AMOUNT`). Use `LIFETIME` for
|
|
380
|
+
# all-time history or a specific window (`7D`, `30D`, `90D`).
|
|
381
|
+
#
|
|
382
|
+
# @see Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters#interval
|
|
383
|
+
module Interval
|
|
384
|
+
extend Lithic::Internal::Type::Enum
|
|
385
|
+
|
|
386
|
+
LIFETIME = :LIFETIME
|
|
387
|
+
INTERVAL_7_D = :"7D"
|
|
388
|
+
INTERVAL_30_D = :"30D"
|
|
389
|
+
INTERVAL_90_D = :"90D"
|
|
390
|
+
|
|
391
|
+
# @!method self.values
|
|
392
|
+
# @return [Array<Symbol>]
|
|
393
|
+
end
|
|
394
|
+
|
|
395
|
+
# The entity scope to evaluate the attribute against. `GLOBAL` is only valid for
|
|
396
|
+
# spend velocity attributes.
|
|
231
397
|
#
|
|
232
398
|
# @see Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters#scope
|
|
233
399
|
module Scope
|
|
@@ -240,6 +406,26 @@ module Lithic
|
|
|
240
406
|
# @!method self.values
|
|
241
407
|
# @return [Array<Symbol>]
|
|
242
408
|
end
|
|
409
|
+
|
|
410
|
+
# The unit for impossible travel attributes. Required when `attribute` is
|
|
411
|
+
# `TRAVEL_SPEED` or `DISTANCE_FROM_LAST_TRANSACTION`.
|
|
412
|
+
#
|
|
413
|
+
# For `TRAVEL_SPEED`: `MPH` (miles per hour) or `KPH` (kilometers per hour).
|
|
414
|
+
#
|
|
415
|
+
# For `DISTANCE_FROM_LAST_TRANSACTION`: `MILES` or `KILOMETERS`.
|
|
416
|
+
#
|
|
417
|
+
# @see Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters#unit
|
|
418
|
+
module Unit
|
|
419
|
+
extend Lithic::Internal::Type::Enum
|
|
420
|
+
|
|
421
|
+
MPH = :MPH
|
|
422
|
+
KPH = :KPH
|
|
423
|
+
MILES = :MILES
|
|
424
|
+
KILOMETERS = :KILOMETERS
|
|
425
|
+
|
|
426
|
+
# @!method self.values
|
|
427
|
+
# @return [Array<Symbol>]
|
|
428
|
+
end
|
|
243
429
|
end
|
|
244
430
|
end
|
|
245
431
|
end
|
|
@@ -15,10 +15,15 @@ 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
|
-
#
|
|
20
|
-
# - `
|
|
21
|
-
#
|
|
18
|
+
# - `CARD_TRANSACTION`: The card transaction being evaluated. Only available for
|
|
19
|
+
# CARD_TRANSACTION_UPDATE event stream rules.
|
|
20
|
+
# - `ACH_PAYMENT`: The ACH payment being evaluated. Only available for
|
|
21
|
+
# ACH_PAYMENT_UPDATE event stream rules.
|
|
22
|
+
# - `CARD`: The card associated with the event. Available for AUTHORIZATION,
|
|
23
|
+
# THREE_DS_AUTHENTICATION, and CARD_TRANSACTION_UPDATE event stream rules.
|
|
24
|
+
# - `ACCOUNT_HOLDER`: The account holder associated with the event. Available for
|
|
25
|
+
# AUTHORIZATION, THREE_DS_AUTHENTICATION, CARD_TRANSACTION_UPDATE, and
|
|
26
|
+
# ACH_PAYMENT_UPDATE event stream rules.
|
|
22
27
|
# - `IP_METADATA`: IP address metadata for the request. Available for
|
|
23
28
|
# THREE_DS_AUTHENTICATION event stream rules.
|
|
24
29
|
# - `SPEND_VELOCITY`: Spend velocity data for the card or account. Requires
|
|
@@ -26,8 +31,8 @@ module Lithic
|
|
|
26
31
|
# calculation. Available for AUTHORIZATION event stream rules.
|
|
27
32
|
# - `TRANSACTION_HISTORY_SIGNALS`: Behavioral feature state derived from the
|
|
28
33
|
# entity's transaction history. Requires `scope` to specify whether to load
|
|
29
|
-
# card, account, or business account history. Available for AUTHORIZATION
|
|
30
|
-
# stream rules.
|
|
34
|
+
# card, account, or business account history. Available for AUTHORIZATION and
|
|
35
|
+
# CARD_TRANSACTION_UPDATE event stream rules.
|
|
31
36
|
module RuleFeature
|
|
32
37
|
extend Lithic::Internal::Type::Union
|
|
33
38
|
|
|
@@ -39,6 +44,10 @@ module Lithic
|
|
|
39
44
|
|
|
40
45
|
variant -> { Lithic::AuthRules::RuleFeature::ACHReceiptFeature }
|
|
41
46
|
|
|
47
|
+
variant -> { Lithic::AuthRules::RuleFeature::CardTransactionFeature }
|
|
48
|
+
|
|
49
|
+
variant -> { Lithic::AuthRules::RuleFeature::ACHPaymentFeature }
|
|
50
|
+
|
|
42
51
|
variant -> { Lithic::AuthRules::RuleFeature::CardFeature }
|
|
43
52
|
|
|
44
53
|
variant -> { Lithic::AuthRules::RuleFeature::AccountHolderFeature }
|
|
@@ -121,6 +130,42 @@ module Lithic
|
|
|
121
130
|
# @param type [Symbol, :ACH_RECEIPT]
|
|
122
131
|
end
|
|
123
132
|
|
|
133
|
+
class CardTransactionFeature < Lithic::Internal::Type::BaseModel
|
|
134
|
+
# @!attribute type
|
|
135
|
+
#
|
|
136
|
+
# @return [Symbol, :CARD_TRANSACTION]
|
|
137
|
+
required :type, const: :CARD_TRANSACTION
|
|
138
|
+
|
|
139
|
+
# @!attribute name
|
|
140
|
+
# The variable name for this feature in the rule function signature
|
|
141
|
+
#
|
|
142
|
+
# @return [String, nil]
|
|
143
|
+
optional :name, String
|
|
144
|
+
|
|
145
|
+
# @!method initialize(name: nil, type: :CARD_TRANSACTION)
|
|
146
|
+
# @param name [String] The variable name for this feature in the rule function signature
|
|
147
|
+
#
|
|
148
|
+
# @param type [Symbol, :CARD_TRANSACTION]
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
class ACHPaymentFeature < Lithic::Internal::Type::BaseModel
|
|
152
|
+
# @!attribute type
|
|
153
|
+
#
|
|
154
|
+
# @return [Symbol, :ACH_PAYMENT]
|
|
155
|
+
required :type, const: :ACH_PAYMENT
|
|
156
|
+
|
|
157
|
+
# @!attribute name
|
|
158
|
+
# The variable name for this feature in the rule function signature
|
|
159
|
+
#
|
|
160
|
+
# @return [String, nil]
|
|
161
|
+
optional :name, String
|
|
162
|
+
|
|
163
|
+
# @!method initialize(name: nil, type: :ACH_PAYMENT)
|
|
164
|
+
# @param name [String] The variable name for this feature in the rule function signature
|
|
165
|
+
#
|
|
166
|
+
# @param type [Symbol, :ACH_PAYMENT]
|
|
167
|
+
end
|
|
168
|
+
|
|
124
169
|
class CardFeature < Lithic::Internal::Type::BaseModel
|
|
125
170
|
# @!attribute type
|
|
126
171
|
#
|
|
@@ -270,7 +315,7 @@ module Lithic
|
|
|
270
315
|
end
|
|
271
316
|
|
|
272
317
|
# @!method self.variants
|
|
273
|
-
# @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, Lithic::Models::AuthRules::RuleFeature::TransactionHistorySignalsFeature)]
|
|
318
|
+
# @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::CardTransactionFeature, Lithic::Models::AuthRules::RuleFeature::ACHPaymentFeature, Lithic::Models::AuthRules::RuleFeature::CardFeature, Lithic::Models::AuthRules::RuleFeature::AccountHolderFeature, Lithic::Models::AuthRules::RuleFeature::IPMetadataFeature, Lithic::Models::AuthRules::RuleFeature::SpendVelocityFeature, Lithic::Models::AuthRules::RuleFeature::TransactionHistorySignalsFeature)]
|
|
274
319
|
end
|
|
275
320
|
end
|
|
276
321
|
end
|
|
@@ -15,7 +15,7 @@ module Lithic
|
|
|
15
15
|
# @!attribute features
|
|
16
16
|
# Features available to the TypeScript code at evaluation time
|
|
17
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, Lithic::Models::AuthRules::RuleFeature::TransactionHistorySignalsFeature>]
|
|
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::CardTransactionFeature, Lithic::Models::AuthRules::RuleFeature::ACHPaymentFeature, Lithic::Models::AuthRules::RuleFeature::CardFeature, Lithic::Models::AuthRules::RuleFeature::AccountHolderFeature, Lithic::Models::AuthRules::RuleFeature::IPMetadataFeature, Lithic::Models::AuthRules::RuleFeature::SpendVelocityFeature, Lithic::Models::AuthRules::RuleFeature::TransactionHistorySignalsFeature>]
|
|
19
19
|
required :features, -> { Lithic::Internal::Type::ArrayOf[union: Lithic::AuthRules::RuleFeature] }
|
|
20
20
|
|
|
21
21
|
# @!method initialize(code:, features:)
|
|
@@ -26,7 +26,7 @@ module Lithic
|
|
|
26
26
|
#
|
|
27
27
|
# @param code [String] The TypeScript source code of the rule. Must define a `rule()` function that acc
|
|
28
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, Lithic::Models::AuthRules::RuleFeature::TransactionHistorySignalsFeature>] Features available to the TypeScript code at evaluation time
|
|
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::CardTransactionFeature, Lithic::Models::AuthRules::RuleFeature::ACHPaymentFeature, Lithic::Models::AuthRules::RuleFeature::CardFeature, Lithic::Models::AuthRules::RuleFeature::AccountHolderFeature, Lithic::Models::AuthRules::RuleFeature::IPMetadataFeature, Lithic::Models::AuthRules::RuleFeature::SpendVelocityFeature, Lithic::Models::AuthRules::RuleFeature::TransactionHistorySignalsFeature>] Features available to the TypeScript code at evaluation time
|
|
30
30
|
end
|
|
31
31
|
end
|
|
32
32
|
end
|