lithic 0.1.0.pre.alpha.40 → 0.1.0.pre.alpha.42
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 +22 -0
- data/README.md +1 -1
- data/lib/lithic/client.rb +4 -0
- data/lib/lithic/internal/transport/base_client.rb +1 -1
- data/lib/lithic/internal/transport/pooled_net_requester.rb +1 -9
- data/lib/lithic/internal/type/array_of.rb +1 -0
- data/lib/lithic/internal/type/base_model.rb +3 -1
- data/lib/lithic/internal/type/converter.rb +27 -0
- data/lib/lithic/internal/type/hash_of.rb +1 -0
- data/lib/lithic/internal/type/union.rb +9 -7
- data/lib/lithic/internal/util.rb +1 -1
- data/lib/lithic/models/account_activity_list_params.rb +158 -0
- data/lib/lithic/models/account_activity_list_response.rb +1435 -0
- data/lib/lithic/models/account_activity_retrieve_transaction_params.rb +14 -0
- data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +1451 -0
- data/lib/lithic/models/account_holder.rb +16 -19
- data/lib/lithic/models/account_holder_create_params.rb +41 -47
- data/lib/lithic/models/account_holder_simulate_enrollment_review_params.rb +1 -3
- data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +25 -20
- data/lib/lithic/models/account_holder_update_params.rb +2 -6
- data/lib/lithic/models/account_holder_update_response.rb +25 -20
- data/lib/lithic/models/auth_rules/auth_rule_condition.rb +5 -1
- data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +8 -12
- data/lib/lithic/models/auth_rules/v2_apply_params.rb +13 -5
- data/lib/lithic/models/auth_rules/v2_apply_response.rb +510 -18
- data/lib/lithic/models/auth_rules/v2_create_params.rb +283 -16
- data/lib/lithic/models/auth_rules/v2_create_response.rb +510 -18
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +239 -3
- data/lib/lithic/models/auth_rules/v2_draft_response.rb +510 -18
- data/lib/lithic/models/auth_rules/v2_list_params.rb +11 -1
- data/lib/lithic/models/auth_rules/v2_list_response.rb +510 -18
- data/lib/lithic/models/auth_rules/v2_promote_response.rb +510 -18
- data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +510 -18
- data/lib/lithic/models/auth_rules/v2_update_params.rb +1 -9
- data/lib/lithic/models/auth_rules/v2_update_response.rb +510 -18
- data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +4 -16
- data/lib/lithic/models/book_transfer_create_params.rb +34 -6
- data/lib/lithic/models/book_transfer_response.rb +124 -28
- data/lib/lithic/models/document.rb +1 -3
- data/lib/lithic/models/event.rb +6 -0
- data/lib/lithic/models/event_list_params.rb +2 -0
- data/lib/lithic/models/event_subscription.rb +2 -0
- data/lib/lithic/models/events/subscription_create_params.rb +3 -3
- data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +2 -0
- data/lib/lithic/models/events/subscription_update_params.rb +3 -3
- data/lib/lithic/models/external_bank_account_list_params.rb +2 -6
- data/lib/lithic/models/external_payment.rb +89 -48
- data/lib/lithic/models/financial_account.rb +1 -0
- data/lib/lithic/models/financial_accounts/loan_tape.rb +5 -18
- data/lib/lithic/models/financial_accounts/statement.rb +3 -10
- data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +2 -7
- data/lib/lithic/models/financial_transaction.rb +2 -0
- data/lib/lithic/models/instance_financial_account_type.rb +1 -0
- data/lib/lithic/models/kyb.rb +2 -2
- data/lib/lithic/models/management_operation_transaction.rb +90 -63
- data/lib/lithic/models/payment.rb +60 -1
- data/lib/lithic/models/reports/settlement_list_details_params.rb +2 -2
- data/lib/lithic/models/settlement_detail.rb +1 -0
- data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +173 -38
- data/lib/lithic/models/three_ds/authentication_simulate_params.rb +1 -4
- data/lib/lithic/models/tokenization.rb +1 -1
- data/lib/lithic/models/transaction.rb +4 -0
- data/lib/lithic/models/transactions/events/enhanced_data.rb +3 -11
- data/lib/lithic/models/transfer.rb +2 -0
- data/lib/lithic/models/wire_party_details.rb +40 -0
- data/lib/lithic/models.rb +6 -0
- data/lib/lithic/resources/account_activity.rb +80 -0
- data/lib/lithic/resources/account_holders.rb +9 -9
- data/lib/lithic/resources/auth_rules/v2/backtests.rb +3 -3
- data/lib/lithic/resources/auth_rules/v2.rb +19 -13
- data/lib/lithic/resources/book_transfers.rb +7 -3
- data/lib/lithic/resources/reports/settlement.rb +1 -1
- data/lib/lithic/resources/tokenizations.rb +2 -2
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +7 -2
- data/rbi/lithic/client.rbi +3 -0
- data/rbi/lithic/errors.rbi +2 -2
- data/rbi/lithic/internal/transport/base_client.rbi +1 -1
- data/rbi/lithic/internal/type/converter.rbi +46 -0
- data/rbi/lithic/internal/type/union.rbi +7 -2
- data/rbi/lithic/models/account_activity_list_params.rbi +347 -0
- data/rbi/lithic/models/account_activity_list_response.rbi +3367 -0
- data/rbi/lithic/models/account_activity_retrieve_transaction_params.rbi +30 -0
- data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +3369 -0
- data/rbi/lithic/models/account_holder.rbi +21 -23
- data/rbi/lithic/models/account_holder_create_params.rbi +87 -65
- data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +36 -30
- data/rbi/lithic/models/account_holder_update_response.rbi +36 -30
- data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +20 -0
- data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +20 -0
- data/rbi/lithic/models/auth_rules/v2_apply_params.rbi +19 -5
- data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +1128 -18
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +646 -21
- data/rbi/lithic/models/auth_rules/v2_create_response.rbi +1128 -18
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +554 -4
- data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +1128 -18
- data/rbi/lithic/models/auth_rules/v2_list_params.rbi +18 -0
- data/rbi/lithic/models/auth_rules/v2_list_response.rbi +1128 -18
- data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +1128 -18
- data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +1128 -18
- data/rbi/lithic/models/auth_rules/v2_update_params.rbi +0 -11
- data/rbi/lithic/models/auth_rules/v2_update_response.rbi +1128 -18
- data/rbi/lithic/models/book_transfer_create_params.rbi +75 -5
- data/rbi/lithic/models/book_transfer_response.rbi +320 -38
- data/rbi/lithic/models/event.rbi +16 -0
- data/rbi/lithic/models/event_list_params.rbi +10 -0
- data/rbi/lithic/models/event_subscription.rbi +10 -0
- data/rbi/lithic/models/events/subscription_create_params.rbi +10 -0
- data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +10 -0
- data/rbi/lithic/models/events/subscription_update_params.rbi +10 -0
- data/rbi/lithic/models/external_payment.rbi +147 -60
- data/rbi/lithic/models/financial_account.rbi +5 -0
- data/rbi/lithic/models/financial_transaction.rbi +1 -0
- data/rbi/lithic/models/instance_financial_account_type.rbi +5 -0
- data/rbi/lithic/models/kyb.rbi +2 -2
- data/rbi/lithic/models/management_operation_transaction.rbi +226 -95
- data/rbi/lithic/models/payment.rbi +103 -3
- data/rbi/lithic/models/reports/settlement_list_details_params.rbi +2 -2
- data/rbi/lithic/models/settlement_detail.rbi +2 -0
- data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +267 -60
- data/rbi/lithic/models/transaction.rbi +17 -0
- data/rbi/lithic/models/transfer.rbi +1 -0
- data/rbi/lithic/models/wire_party_details.rbi +61 -0
- data/rbi/lithic/models.rbi +7 -0
- data/rbi/lithic/resources/account_activity.rbi +80 -0
- data/rbi/lithic/resources/account_holders.rbi +28 -29
- data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +3 -3
- data/rbi/lithic/resources/auth_rules/v2.rbi +28 -14
- data/rbi/lithic/resources/book_transfers.rbi +9 -2
- data/rbi/lithic/resources/reports/settlement.rbi +1 -1
- data/rbi/lithic/resources/tokenizations.rbi +1 -1
- data/sig/lithic/client.rbs +2 -0
- data/sig/lithic/internal/transport/base_client.rbs +1 -1
- data/sig/lithic/internal/type/converter.rbs +17 -0
- data/sig/lithic/internal/type/union.rbs +2 -2
- data/sig/lithic/models/account_activity_list_params.rbs +173 -0
- data/sig/lithic/models/account_activity_list_response.rbs +1353 -0
- data/sig/lithic/models/account_activity_retrieve_transaction_params.rbs +15 -0
- data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +1353 -0
- data/sig/lithic/models/account_holder_create_params.rbs +33 -19
- data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +10 -3
- data/sig/lithic/models/account_holder_update_response.rbs +10 -3
- data/sig/lithic/models/auth_rules/auth_rule_condition.rbs +8 -0
- data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +8 -0
- data/sig/lithic/models/auth_rules/v2_apply_params.rbs +11 -2
- data/sig/lithic/models/auth_rules/v2_apply_response.rbs +317 -2
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +188 -4
- data/sig/lithic/models/auth_rules/v2_create_response.rbs +317 -2
- data/sig/lithic/models/auth_rules/v2_draft_params.rbs +155 -0
- data/sig/lithic/models/auth_rules/v2_draft_response.rbs +317 -2
- data/sig/lithic/models/auth_rules/v2_list_params.rbs +10 -1
- data/sig/lithic/models/auth_rules/v2_list_response.rbs +317 -2
- data/sig/lithic/models/auth_rules/v2_promote_response.rbs +317 -2
- data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +317 -2
- data/sig/lithic/models/auth_rules/v2_update_params.rbs +0 -7
- data/sig/lithic/models/auth_rules/v2_update_response.rbs +317 -2
- data/sig/lithic/models/book_transfer_create_params.rbs +30 -1
- data/sig/lithic/models/book_transfer_response.rbs +134 -15
- data/sig/lithic/models/event.rbs +4 -0
- data/sig/lithic/models/event_list_params.rbs +4 -0
- data/sig/lithic/models/event_subscription.rbs +4 -0
- data/sig/lithic/models/events/subscription_create_params.rbs +4 -0
- data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +4 -0
- data/sig/lithic/models/events/subscription_update_params.rbs +4 -0
- data/sig/lithic/models/external_payment.rbs +91 -40
- data/sig/lithic/models/financial_account.rbs +2 -0
- data/sig/lithic/models/instance_financial_account_type.rbs +2 -0
- data/sig/lithic/models/management_operation_transaction.rbs +95 -44
- data/sig/lithic/models/payment.rbs +61 -3
- data/sig/lithic/models/settlement_detail.rbs +2 -0
- data/sig/lithic/models/three_ds/authentication_retrieve_response.rbs +110 -23
- data/sig/lithic/models/transaction.rbs +10 -2
- data/sig/lithic/models/wire_party_details.rbs +35 -0
- data/sig/lithic/models.rbs +6 -0
- data/sig/lithic/resources/account_activity.rbs +27 -0
- data/sig/lithic/resources/account_holders.rbs +3 -3
- data/sig/lithic/resources/auth_rules/v2.rbs +6 -3
- data/sig/lithic/resources/book_transfers.rbs +2 -0
- data/sig/lithic/resources/tokenizations.rbs +1 -1
- metadata +20 -5
- data/lib/lithic/models/tokenization_retrieve_response.rb +0 -16
- data/rbi/lithic/models/tokenization_retrieve_response.rbi +0 -31
- data/sig/lithic/models/tokenization_retrieve_response.rbs +0 -15
@@ -11,8 +11,20 @@ module Lithic
|
|
11
11
|
# @!attribute account_tokens
|
12
12
|
# Account tokens to which the Auth Rule applies.
|
13
13
|
#
|
14
|
-
# @return [Array<String
|
15
|
-
|
14
|
+
# @return [Array<String>, nil]
|
15
|
+
optional :account_tokens, Lithic::Internal::Type::ArrayOf[String]
|
16
|
+
|
17
|
+
# @!attribute business_account_tokens
|
18
|
+
# Business Account tokens to which the Auth Rule applies.
|
19
|
+
#
|
20
|
+
# @return [Array<String>, nil]
|
21
|
+
optional :business_account_tokens, Lithic::Internal::Type::ArrayOf[String]
|
22
|
+
|
23
|
+
# @!attribute event_stream
|
24
|
+
# The event stream during which the rule will be evaluated.
|
25
|
+
#
|
26
|
+
# @return [Symbol, Lithic::Models::AuthRules::V2CreateParams::EventStream, nil]
|
27
|
+
optional :event_stream, enum: -> { Lithic::AuthRules::V2CreateParams::EventStream }
|
16
28
|
|
17
29
|
# @!attribute name
|
18
30
|
# Auth Rule Name
|
@@ -23,17 +35,19 @@ module Lithic
|
|
23
35
|
# @!attribute parameters
|
24
36
|
# Parameters for the Auth Rule
|
25
37
|
#
|
26
|
-
# @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, nil]
|
38
|
+
# @return [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters, nil]
|
27
39
|
optional :parameters, union: -> { Lithic::AuthRules::V2CreateParams::Parameters }
|
28
40
|
|
29
41
|
# @!attribute type
|
30
|
-
# The type of Auth Rule.
|
31
|
-
# will be evaluated.
|
42
|
+
# The type of Auth Rule. For certain rule types, this determines the event stream
|
43
|
+
# during which it will be evaluated. For rules that can be applied to one of
|
44
|
+
# several event streams, the effective one is defined by the separate
|
45
|
+
# `event_stream` field.
|
32
46
|
#
|
33
47
|
# - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream.
|
34
48
|
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
|
35
49
|
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
36
|
-
# - `
|
50
|
+
# - `CONDITIONAL_ACTION`: AUTHORIZATION or THREE_DS_AUTHENTICATION event stream.
|
37
51
|
#
|
38
52
|
# @return [Symbol, Lithic::Models::AuthRules::V2CreateParams::Type, nil]
|
39
53
|
optional :type, enum: -> { Lithic::AuthRules::V2CreateParams::Type }
|
@@ -56,26 +70,41 @@ module Lithic
|
|
56
70
|
# @return [Array<String>, nil]
|
57
71
|
optional :excluded_card_tokens, Lithic::Internal::Type::ArrayOf[String]
|
58
72
|
|
59
|
-
# @!method initialize(
|
73
|
+
# @!method initialize(card_tokens:, program_level:, account_tokens: nil, business_account_tokens: nil, event_stream: nil, name: nil, parameters: nil, type: nil, excluded_card_tokens: nil, request_options: {})
|
60
74
|
# Some parameter documentations has been truncated, see
|
61
75
|
# {Lithic::Models::AuthRules::V2CreateParams} for more details.
|
62
76
|
#
|
63
|
-
# @param account_tokens [Array<String>] Account tokens to which the Auth Rule applies.
|
64
|
-
#
|
65
77
|
# @param card_tokens [Array<String>] Card tokens to which the Auth Rule applies.
|
66
78
|
#
|
67
79
|
# @param program_level [Boolean] Whether the Auth Rule applies to all authorizations on the card program.
|
68
80
|
#
|
81
|
+
# @param account_tokens [Array<String>] Account tokens to which the Auth Rule applies.
|
82
|
+
#
|
83
|
+
# @param business_account_tokens [Array<String>] Business Account tokens to which the Auth Rule applies.
|
84
|
+
#
|
85
|
+
# @param event_stream [Symbol, Lithic::Models::AuthRules::V2CreateParams::EventStream] The event stream during which the rule will be evaluated.
|
86
|
+
#
|
69
87
|
# @param name [String, nil] Auth Rule Name
|
70
88
|
#
|
71
|
-
# @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters] Parameters for the Auth Rule
|
89
|
+
# @param parameters [Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters] Parameters for the Auth Rule
|
72
90
|
#
|
73
|
-
# @param type [Symbol, Lithic::Models::AuthRules::V2CreateParams::Type] The type of Auth Rule.
|
91
|
+
# @param type [Symbol, Lithic::Models::AuthRules::V2CreateParams::Type] The type of Auth Rule. For certain rule types, this determines the event stream
|
74
92
|
#
|
75
93
|
# @param excluded_card_tokens [Array<String>] Card tokens to which the Auth Rule does not apply.
|
76
94
|
#
|
77
95
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
|
78
96
|
|
97
|
+
# The event stream during which the rule will be evaluated.
|
98
|
+
module EventStream
|
99
|
+
extend Lithic::Internal::Type::Enum
|
100
|
+
|
101
|
+
AUTHORIZATION = :AUTHORIZATION
|
102
|
+
THREE_DS_AUTHENTICATION = :THREE_DS_AUTHENTICATION
|
103
|
+
|
104
|
+
# @!method self.values
|
105
|
+
# @return [Array<Symbol>]
|
106
|
+
end
|
107
|
+
|
79
108
|
# Parameters for the Auth Rule
|
80
109
|
module Parameters
|
81
110
|
extend Lithic::Internal::Type::Union
|
@@ -88,24 +117,262 @@ module Lithic
|
|
88
117
|
|
89
118
|
variant -> { Lithic::AuthRules::Conditional3DSActionParameters }
|
90
119
|
|
120
|
+
variant -> { Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters }
|
121
|
+
|
122
|
+
class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel
|
123
|
+
# @!attribute action
|
124
|
+
# The action to take if the conditions are met.
|
125
|
+
#
|
126
|
+
# @return [Symbol, Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Action]
|
127
|
+
required :action,
|
128
|
+
enum: -> { Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Action }
|
129
|
+
|
130
|
+
# @!attribute conditions
|
131
|
+
#
|
132
|
+
# @return [Array<Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition>]
|
133
|
+
required :conditions,
|
134
|
+
-> { Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition] }
|
135
|
+
|
136
|
+
# @!method initialize(action:, conditions:)
|
137
|
+
# @param action [Symbol, Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Action] The action to take if the conditions are met.
|
138
|
+
#
|
139
|
+
# @param conditions [Array<Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition>]
|
140
|
+
|
141
|
+
# The action to take if the conditions are met.
|
142
|
+
#
|
143
|
+
# @see Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters#action
|
144
|
+
module Action
|
145
|
+
extend Lithic::Internal::Type::Enum
|
146
|
+
|
147
|
+
DECLINE = :DECLINE
|
148
|
+
CHALLENGE = :CHALLENGE
|
149
|
+
|
150
|
+
# @!method self.values
|
151
|
+
# @return [Array<Symbol>]
|
152
|
+
end
|
153
|
+
|
154
|
+
class Condition < Lithic::Internal::Type::BaseModel
|
155
|
+
# @!attribute attribute
|
156
|
+
# The attribute to target.
|
157
|
+
#
|
158
|
+
# The following attributes may be targeted:
|
159
|
+
#
|
160
|
+
# - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
|
161
|
+
# business by the types of goods or services it provides.
|
162
|
+
# - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
|
163
|
+
# ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
|
164
|
+
# Netherlands Antilles.
|
165
|
+
# - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
|
166
|
+
# the transaction.
|
167
|
+
# - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
|
168
|
+
# (merchant).
|
169
|
+
# - `DESCRIPTOR`: Short description of card acceptor.
|
170
|
+
# - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
|
171
|
+
# applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
|
172
|
+
# `TOKEN_AUTHENTICATED`.
|
173
|
+
# - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
|
174
|
+
# (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
|
175
|
+
# `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
|
176
|
+
# `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
|
177
|
+
# `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
|
178
|
+
# - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
|
179
|
+
# fee field in the settlement/cardholder billing currency. This is the amount
|
180
|
+
# the issuer should authorize against unless the issuer is paying the acquirer
|
181
|
+
# fee on behalf of the cardholder.
|
182
|
+
# - `RISK_SCORE`: Network-provided score assessing risk level associated with a
|
183
|
+
# given authorization. Scores are on a range of 0-999, with 0 representing the
|
184
|
+
# lowest risk and 999 representing the highest risk. For Visa transactions,
|
185
|
+
# where the raw score has a range of 0-99, Lithic will normalize the score by
|
186
|
+
# multiplying the raw score by 10x.
|
187
|
+
# - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
|
188
|
+
# trailing 15 minutes before the authorization.
|
189
|
+
# - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
|
190
|
+
# trailing hour up and until the authorization.
|
191
|
+
# - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
|
192
|
+
# trailing 24 hours up and until the authorization.
|
193
|
+
# - `CARD_STATE`: The current state of the card associated with the transaction.
|
194
|
+
# Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
|
195
|
+
# `PENDING_FULFILLMENT`.
|
196
|
+
# - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
|
197
|
+
# Valid values are `TRUE`, `FALSE`.
|
198
|
+
# - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
|
199
|
+
# `OK`, `BLOCKED`.
|
200
|
+
# - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
|
201
|
+
# source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
|
202
|
+
# `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
|
203
|
+
# - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
|
204
|
+
# the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
|
205
|
+
#
|
206
|
+
# @return [Symbol, Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute, nil]
|
207
|
+
optional :attribute,
|
208
|
+
enum: -> { Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute }
|
209
|
+
|
210
|
+
# @!attribute operation
|
211
|
+
# The operation to apply to the attribute
|
212
|
+
#
|
213
|
+
# @return [Symbol, Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation, nil]
|
214
|
+
optional :operation,
|
215
|
+
enum: -> { Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation }
|
216
|
+
|
217
|
+
# @!attribute value
|
218
|
+
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
219
|
+
#
|
220
|
+
# @return [String, Integer, Array<String>, nil]
|
221
|
+
optional :value,
|
222
|
+
union: -> { Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Value }
|
223
|
+
|
224
|
+
# @!method initialize(attribute: nil, operation: nil, value: nil)
|
225
|
+
# Some parameter documentations has been truncated, see
|
226
|
+
# {Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition}
|
227
|
+
# for more details.
|
228
|
+
#
|
229
|
+
# @param attribute [Symbol, Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute] The attribute to target.
|
230
|
+
#
|
231
|
+
# @param operation [Symbol, Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation] The operation to apply to the attribute
|
232
|
+
#
|
233
|
+
# @param value [String, Integer, Array<String>] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
234
|
+
|
235
|
+
# The attribute to target.
|
236
|
+
#
|
237
|
+
# The following attributes may be targeted:
|
238
|
+
#
|
239
|
+
# - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
|
240
|
+
# business by the types of goods or services it provides.
|
241
|
+
# - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
|
242
|
+
# ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
|
243
|
+
# Netherlands Antilles.
|
244
|
+
# - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
|
245
|
+
# the transaction.
|
246
|
+
# - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
|
247
|
+
# (merchant).
|
248
|
+
# - `DESCRIPTOR`: Short description of card acceptor.
|
249
|
+
# - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
|
250
|
+
# applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
|
251
|
+
# `TOKEN_AUTHENTICATED`.
|
252
|
+
# - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
|
253
|
+
# (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
|
254
|
+
# `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
|
255
|
+
# `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
|
256
|
+
# `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
|
257
|
+
# - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
|
258
|
+
# fee field in the settlement/cardholder billing currency. This is the amount
|
259
|
+
# the issuer should authorize against unless the issuer is paying the acquirer
|
260
|
+
# fee on behalf of the cardholder.
|
261
|
+
# - `RISK_SCORE`: Network-provided score assessing risk level associated with a
|
262
|
+
# given authorization. Scores are on a range of 0-999, with 0 representing the
|
263
|
+
# lowest risk and 999 representing the highest risk. For Visa transactions,
|
264
|
+
# where the raw score has a range of 0-99, Lithic will normalize the score by
|
265
|
+
# multiplying the raw score by 10x.
|
266
|
+
# - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
|
267
|
+
# trailing 15 minutes before the authorization.
|
268
|
+
# - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
|
269
|
+
# trailing hour up and until the authorization.
|
270
|
+
# - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
|
271
|
+
# trailing 24 hours up and until the authorization.
|
272
|
+
# - `CARD_STATE`: The current state of the card associated with the transaction.
|
273
|
+
# Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
|
274
|
+
# `PENDING_FULFILLMENT`.
|
275
|
+
# - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
|
276
|
+
# Valid values are `TRUE`, `FALSE`.
|
277
|
+
# - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
|
278
|
+
# `OK`, `BLOCKED`.
|
279
|
+
# - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
|
280
|
+
# source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
|
281
|
+
# `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
|
282
|
+
# - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
|
283
|
+
# the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
|
284
|
+
#
|
285
|
+
# @see Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition#attribute
|
286
|
+
module Attribute
|
287
|
+
extend Lithic::Internal::Type::Enum
|
288
|
+
|
289
|
+
MCC = :MCC
|
290
|
+
COUNTRY = :COUNTRY
|
291
|
+
CURRENCY = :CURRENCY
|
292
|
+
MERCHANT_ID = :MERCHANT_ID
|
293
|
+
DESCRIPTOR = :DESCRIPTOR
|
294
|
+
LIABILITY_SHIFT = :LIABILITY_SHIFT
|
295
|
+
PAN_ENTRY_MODE = :PAN_ENTRY_MODE
|
296
|
+
TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT
|
297
|
+
RISK_SCORE = :RISK_SCORE
|
298
|
+
CARD_TRANSACTION_COUNT_15_M = :CARD_TRANSACTION_COUNT_15M
|
299
|
+
CARD_TRANSACTION_COUNT_1_H = :CARD_TRANSACTION_COUNT_1H
|
300
|
+
CARD_TRANSACTION_COUNT_24_H = :CARD_TRANSACTION_COUNT_24H
|
301
|
+
CARD_STATE = :CARD_STATE
|
302
|
+
PIN_ENTERED = :PIN_ENTERED
|
303
|
+
PIN_STATUS = :PIN_STATUS
|
304
|
+
WALLET_TYPE = :WALLET_TYPE
|
305
|
+
TRANSACTION_INITIATOR = :TRANSACTION_INITIATOR
|
306
|
+
|
307
|
+
# @!method self.values
|
308
|
+
# @return [Array<Symbol>]
|
309
|
+
end
|
310
|
+
|
311
|
+
# The operation to apply to the attribute
|
312
|
+
#
|
313
|
+
# @see Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition#operation
|
314
|
+
module Operation
|
315
|
+
extend Lithic::Internal::Type::Enum
|
316
|
+
|
317
|
+
IS_ONE_OF = :IS_ONE_OF
|
318
|
+
IS_NOT_ONE_OF = :IS_NOT_ONE_OF
|
319
|
+
MATCHES = :MATCHES
|
320
|
+
DOES_NOT_MATCH = :DOES_NOT_MATCH
|
321
|
+
IS_EQUAL_TO = :IS_EQUAL_TO
|
322
|
+
IS_NOT_EQUAL_TO = :IS_NOT_EQUAL_TO
|
323
|
+
IS_GREATER_THAN = :IS_GREATER_THAN
|
324
|
+
IS_GREATER_THAN_OR_EQUAL_TO = :IS_GREATER_THAN_OR_EQUAL_TO
|
325
|
+
IS_LESS_THAN = :IS_LESS_THAN
|
326
|
+
IS_LESS_THAN_OR_EQUAL_TO = :IS_LESS_THAN_OR_EQUAL_TO
|
327
|
+
|
328
|
+
# @!method self.values
|
329
|
+
# @return [Array<Symbol>]
|
330
|
+
end
|
331
|
+
|
332
|
+
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
333
|
+
#
|
334
|
+
# @see Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition#value
|
335
|
+
module Value
|
336
|
+
extend Lithic::Internal::Type::Union
|
337
|
+
|
338
|
+
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
339
|
+
variant String
|
340
|
+
|
341
|
+
# A number, to be used with `IS_GREATER_THAN`, `IS_GREATER_THAN_OR_EQUAL_TO`, `IS_LESS_THAN`, `IS_LESS_THAN_OR_EQUAL_TO`, `IS_EQUAL_TO`, or `IS_NOT_EQUAL_TO`
|
342
|
+
variant Integer
|
343
|
+
|
344
|
+
# An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF`
|
345
|
+
variant -> { Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::StringArray }
|
346
|
+
|
347
|
+
# @!method self.variants
|
348
|
+
# @return [Array(String, Integer, Array<String>)]
|
349
|
+
|
350
|
+
# @type [Lithic::Internal::Type::Converter]
|
351
|
+
StringArray = Lithic::Internal::Type::ArrayOf[String]
|
352
|
+
end
|
353
|
+
end
|
354
|
+
end
|
355
|
+
|
91
356
|
# @!method self.variants
|
92
|
-
# @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters)]
|
357
|
+
# @return [Array(Lithic::Models::AuthRules::ConditionalBlockParameters, Lithic::Models::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::MerchantLockParameters, Lithic::Models::AuthRules::Conditional3DSActionParameters, Lithic::Models::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters)]
|
93
358
|
end
|
94
359
|
|
95
|
-
# The type of Auth Rule.
|
96
|
-
# will be evaluated.
|
360
|
+
# The type of Auth Rule. For certain rule types, this determines the event stream
|
361
|
+
# during which it will be evaluated. For rules that can be applied to one of
|
362
|
+
# several event streams, the effective one is defined by the separate
|
363
|
+
# `event_stream` field.
|
97
364
|
#
|
98
365
|
# - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream.
|
99
366
|
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
|
100
367
|
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
101
|
-
# - `
|
368
|
+
# - `CONDITIONAL_ACTION`: AUTHORIZATION or THREE_DS_AUTHENTICATION event stream.
|
102
369
|
module Type
|
103
370
|
extend Lithic::Internal::Type::Enum
|
104
371
|
|
105
372
|
CONDITIONAL_BLOCK = :CONDITIONAL_BLOCK
|
106
373
|
VELOCITY_LIMIT = :VELOCITY_LIMIT
|
107
374
|
MERCHANT_LOCK = :MERCHANT_LOCK
|
108
|
-
|
375
|
+
CONDITIONAL_ACTION = :CONDITIONAL_ACTION
|
109
376
|
|
110
377
|
# @!method self.values
|
111
378
|
# @return [Array<Symbol>]
|