lithic 0.1.0.pre.alpha.54 → 0.1.0.pre.alpha.55

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.
Files changed (134) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +19 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +2 -2
  5. data/lib/lithic/models/account_holder_update_response.rb +4 -4
  6. data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +252 -0
  7. data/lib/lithic/models/auth_rules/v2_create_params.rb +38 -284
  8. data/lib/lithic/models/auth_rules/v2_create_response.rb +8 -508
  9. data/lib/lithic/models/auth_rules/v2_draft_params.rb +4 -250
  10. data/lib/lithic/models/auth_rules/v2_draft_response.rb +8 -508
  11. data/lib/lithic/models/auth_rules/v2_list_response.rb +8 -508
  12. data/lib/lithic/models/auth_rules/v2_promote_response.rb +8 -508
  13. data/lib/lithic/models/auth_rules/v2_retrieve_features_response.rb +4 -11
  14. data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +8 -508
  15. data/lib/lithic/models/auth_rules/v2_update_response.rb +8 -508
  16. data/lib/lithic/models/auth_rules/velocity_limit_params.rb +4 -7
  17. data/lib/lithic/models/auth_rules/velocity_limit_period.rb +154 -0
  18. data/lib/lithic/models/book_transfer_response.rb +5 -5
  19. data/lib/lithic/models/dispute.rb +510 -242
  20. data/lib/lithic/models/dispute_create_response.rb +326 -0
  21. data/lib/lithic/models/dispute_delete_response.rb +326 -0
  22. data/lib/lithic/models/dispute_list_response.rb +326 -0
  23. data/lib/lithic/models/dispute_retrieve_response.rb +326 -0
  24. data/lib/lithic/models/dispute_update_response.rb +326 -0
  25. data/lib/lithic/models/event.rb +213 -69
  26. data/lib/lithic/models/event_list_params.rb +112 -6
  27. data/lib/lithic/models/event_subscription.rb +112 -6
  28. data/lib/lithic/models/events/subscription_create_params.rb +112 -6
  29. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +12 -6
  30. data/lib/lithic/models/events/subscription_update_params.rb +112 -6
  31. data/lib/lithic/models/financial_account.rb +1 -65
  32. data/lib/lithic/models/financial_accounts/financial_account_credit_config.rb +1 -64
  33. data/lib/lithic/models/financial_accounts/loan_tape.rb +99 -3
  34. data/lib/lithic/models/financial_accounts/statement.rb +66 -2
  35. data/lib/lithic/models/payment.rb +9 -9
  36. data/lib/lithic/models/payment_simulate_action_params.rb +17 -1
  37. data/lib/lithic/models/tokenization.rb +189 -23
  38. data/lib/lithic/models/transaction.rb +12 -116
  39. data/lib/lithic/models/transactions/events/enhanced_data.rb +9 -9
  40. data/lib/lithic/resources/auth_rules/v2/backtests.rb +3 -5
  41. data/lib/lithic/resources/auth_rules/v2.rb +13 -56
  42. data/lib/lithic/resources/disputes.rb +10 -10
  43. data/lib/lithic/resources/payments.rb +5 -1
  44. data/lib/lithic/version.rb +1 -1
  45. data/lib/lithic.rb +7 -3
  46. data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +3 -6
  47. data/rbi/lithic/models/account_holder_update_response.rbi +6 -12
  48. data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +577 -0
  49. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +85 -679
  50. data/rbi/lithic/models/auth_rules/v2_create_response.rbi +4 -1146
  51. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +4 -575
  52. data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +4 -1146
  53. data/rbi/lithic/models/auth_rules/v2_list_response.rbi +4 -1146
  54. data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +4 -1146
  55. data/rbi/lithic/models/auth_rules/v2_retrieve_features_response.rbi +9 -22
  56. data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +4 -1146
  57. data/rbi/lithic/models/auth_rules/v2_update_response.rbi +4 -1146
  58. data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +17 -29
  59. data/rbi/lithic/models/auth_rules/velocity_limit_period.rbi +223 -0
  60. data/rbi/lithic/models/book_transfer_response.rbi +14 -11
  61. data/rbi/lithic/models/dispute.rbi +942 -395
  62. data/rbi/lithic/models/dispute_create_response.rbi +599 -0
  63. data/rbi/lithic/models/dispute_delete_response.rbi +599 -0
  64. data/rbi/lithic/models/dispute_list_response.rbi +582 -0
  65. data/rbi/lithic/models/dispute_retrieve_response.rbi +601 -0
  66. data/rbi/lithic/models/dispute_update_response.rbi +599 -0
  67. data/rbi/lithic/models/event.rbi +348 -111
  68. data/rbi/lithic/models/event_list_params.rbi +155 -25
  69. data/rbi/lithic/models/event_subscription.rbi +155 -25
  70. data/rbi/lithic/models/events/subscription_create_params.rbi +155 -25
  71. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +55 -25
  72. data/rbi/lithic/models/events/subscription_update_params.rbi +155 -25
  73. data/rbi/lithic/models/financial_account.rbi +3 -132
  74. data/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi +3 -136
  75. data/rbi/lithic/models/financial_accounts/loan_tape.rbi +132 -9
  76. data/rbi/lithic/models/financial_accounts/statement.rbi +88 -6
  77. data/rbi/lithic/models/payment.rbi +11 -14
  78. data/rbi/lithic/models/payment_simulate_action_params.rbi +22 -0
  79. data/rbi/lithic/models/tokenization.rbi +429 -34
  80. data/rbi/lithic/models/transaction.rbi +22 -246
  81. data/rbi/lithic/models/transactions/events/enhanced_data.rbi +12 -12
  82. data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +0 -3
  83. data/rbi/lithic/resources/auth_rules/v2.rbi +24 -72
  84. data/rbi/lithic/resources/disputes.rbi +7 -5
  85. data/rbi/lithic/resources/payments.rbi +6 -0
  86. data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +4 -6
  87. data/sig/lithic/models/account_holder_update_response.rbs +8 -12
  88. data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +163 -0
  89. data/sig/lithic/models/auth_rules/v2_create_params.rbs +22 -188
  90. data/sig/lithic/models/auth_rules/v2_create_response.rbs +2 -318
  91. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -159
  92. data/sig/lithic/models/auth_rules/v2_draft_response.rbs +2 -318
  93. data/sig/lithic/models/auth_rules/v2_list_response.rbs +2 -318
  94. data/sig/lithic/models/auth_rules/v2_promote_response.rbs +2 -318
  95. data/sig/lithic/models/auth_rules/v2_retrieve_features_response.rbs +4 -4
  96. data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +2 -318
  97. data/sig/lithic/models/auth_rules/v2_update_response.rbs +2 -318
  98. data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +4 -4
  99. data/sig/lithic/models/auth_rules/velocity_limit_period.rbs +91 -0
  100. data/sig/lithic/models/book_transfer_response.rbs +7 -7
  101. data/sig/lithic/models/dispute.rbs +417 -157
  102. data/sig/lithic/models/dispute_create_response.rbs +210 -0
  103. data/sig/lithic/models/dispute_delete_response.rbs +210 -0
  104. data/sig/lithic/models/dispute_list_response.rbs +210 -0
  105. data/sig/lithic/models/dispute_retrieve_response.rbs +210 -0
  106. data/sig/lithic/models/dispute_update_response.rbs +210 -0
  107. data/sig/lithic/models/event.rbs +25 -13
  108. data/sig/lithic/models/event_list_params.rbs +25 -13
  109. data/sig/lithic/models/event_subscription.rbs +25 -13
  110. data/sig/lithic/models/events/subscription_create_params.rbs +25 -13
  111. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +25 -13
  112. data/sig/lithic/models/events/subscription_update_params.rbs +25 -13
  113. data/sig/lithic/models/financial_account.rbs +3 -45
  114. data/sig/lithic/models/financial_accounts/financial_account_credit_config.rbs +3 -49
  115. data/sig/lithic/models/financial_accounts/loan_tape.rbs +87 -9
  116. data/sig/lithic/models/financial_accounts/statement.rbs +58 -6
  117. data/sig/lithic/models/payment.rbs +8 -10
  118. data/sig/lithic/models/payment_simulate_action_params.rbs +14 -0
  119. data/sig/lithic/models/tokenization.rbs +160 -13
  120. data/sig/lithic/models/transaction.rbs +13 -94
  121. data/sig/lithic/models/transactions/events/enhanced_data.rbs +15 -15
  122. data/sig/lithic/resources/auth_rules/v2.rbs +2 -12
  123. data/sig/lithic/resources/disputes.rbs +5 -5
  124. data/sig/lithic/resources/payments.rbs +2 -0
  125. metadata +23 -11
  126. data/lib/lithic/models/auth_rules/v2_apply_params.rb +0 -56
  127. data/lib/lithic/models/auth_rules/v2_apply_response.rb +0 -766
  128. data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +0 -248
  129. data/rbi/lithic/models/auth_rules/v2_apply_params.rbi +0 -86
  130. data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +0 -1638
  131. data/rbi/lithic/models/auth_rules/velocity_limit_params_period_window.rbi +0 -557
  132. data/sig/lithic/models/auth_rules/v2_apply_params.rbs +0 -54
  133. data/sig/lithic/models/auth_rules/v2_apply_response.rbs +0 -509
  134. data/sig/lithic/models/auth_rules/velocity_limit_params_period_window.rbs +0 -223
@@ -1,1638 +0,0 @@
1
- # typed: strong
2
-
3
- module Lithic
4
- module Models
5
- module AuthRules
6
- class V2ApplyResponse < Lithic::Internal::Type::BaseModel
7
- OrHash =
8
- T.type_alias do
9
- T.any(
10
- Lithic::Models::AuthRules::V2ApplyResponse,
11
- Lithic::Internal::AnyHash
12
- )
13
- end
14
-
15
- # Auth Rule Token
16
- sig { returns(String) }
17
- attr_accessor :token
18
-
19
- # Account tokens to which the Auth Rule applies.
20
- sig { returns(T::Array[String]) }
21
- attr_accessor :account_tokens
22
-
23
- # Business Account tokens to which the Auth Rule applies.
24
- sig { returns(T::Array[String]) }
25
- attr_accessor :business_account_tokens
26
-
27
- # Card tokens to which the Auth Rule applies.
28
- sig { returns(T::Array[String]) }
29
- attr_accessor :card_tokens
30
-
31
- sig do
32
- returns(
33
- T.nilable(
34
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion
35
- )
36
- )
37
- end
38
- attr_reader :current_version
39
-
40
- sig do
41
- params(
42
- current_version:
43
- T.nilable(
44
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::OrHash
45
- )
46
- ).void
47
- end
48
- attr_writer :current_version
49
-
50
- sig do
51
- returns(
52
- T.nilable(Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion)
53
- )
54
- end
55
- attr_reader :draft_version
56
-
57
- sig do
58
- params(
59
- draft_version:
60
- T.nilable(
61
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::OrHash
62
- )
63
- ).void
64
- end
65
- attr_writer :draft_version
66
-
67
- # The event stream during which the rule will be evaluated.
68
- sig do
69
- returns(
70
- Lithic::Models::AuthRules::V2ApplyResponse::EventStream::TaggedSymbol
71
- )
72
- end
73
- attr_accessor :event_stream
74
-
75
- # Indicates whether this auth rule is managed by Lithic. If true, the rule cannot
76
- # be modified or deleted by the user
77
- sig { returns(T::Boolean) }
78
- attr_accessor :lithic_managed
79
-
80
- # Auth Rule Name
81
- sig { returns(T.nilable(String)) }
82
- attr_accessor :name
83
-
84
- # Whether the Auth Rule applies to all authorizations on the card program.
85
- sig { returns(T::Boolean) }
86
- attr_accessor :program_level
87
-
88
- # The state of the Auth Rule
89
- sig do
90
- returns(
91
- Lithic::Models::AuthRules::V2ApplyResponse::State::TaggedSymbol
92
- )
93
- end
94
- attr_accessor :state
95
-
96
- # The type of Auth Rule. For certain rule types, this determines the event stream
97
- # during which it will be evaluated. For rules that can be applied to one of
98
- # several event streams, the effective one is defined by the separate
99
- # `event_stream` field.
100
- #
101
- # - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream.
102
- # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
103
- # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
104
- # - `CONDITIONAL_ACTION`: AUTHORIZATION or THREE_DS_AUTHENTICATION event stream.
105
- sig do
106
- returns(
107
- Lithic::Models::AuthRules::V2ApplyResponse::Type::TaggedSymbol
108
- )
109
- end
110
- attr_accessor :type
111
-
112
- # Card tokens to which the Auth Rule does not apply.
113
- sig { returns(T.nilable(T::Array[String])) }
114
- attr_reader :excluded_card_tokens
115
-
116
- sig { params(excluded_card_tokens: T::Array[String]).void }
117
- attr_writer :excluded_card_tokens
118
-
119
- sig do
120
- params(
121
- token: String,
122
- account_tokens: T::Array[String],
123
- business_account_tokens: T::Array[String],
124
- card_tokens: T::Array[String],
125
- current_version:
126
- T.nilable(
127
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::OrHash
128
- ),
129
- draft_version:
130
- T.nilable(
131
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::OrHash
132
- ),
133
- event_stream:
134
- Lithic::Models::AuthRules::V2ApplyResponse::EventStream::OrSymbol,
135
- lithic_managed: T::Boolean,
136
- name: T.nilable(String),
137
- program_level: T::Boolean,
138
- state: Lithic::Models::AuthRules::V2ApplyResponse::State::OrSymbol,
139
- type: Lithic::Models::AuthRules::V2ApplyResponse::Type::OrSymbol,
140
- excluded_card_tokens: T::Array[String]
141
- ).returns(T.attached_class)
142
- end
143
- def self.new(
144
- # Auth Rule Token
145
- token:,
146
- # Account tokens to which the Auth Rule applies.
147
- account_tokens:,
148
- # Business Account tokens to which the Auth Rule applies.
149
- business_account_tokens:,
150
- # Card tokens to which the Auth Rule applies.
151
- card_tokens:,
152
- current_version:,
153
- draft_version:,
154
- # The event stream during which the rule will be evaluated.
155
- event_stream:,
156
- # Indicates whether this auth rule is managed by Lithic. If true, the rule cannot
157
- # be modified or deleted by the user
158
- lithic_managed:,
159
- # Auth Rule Name
160
- name:,
161
- # Whether the Auth Rule applies to all authorizations on the card program.
162
- program_level:,
163
- # The state of the Auth Rule
164
- state:,
165
- # The type of Auth Rule. For certain rule types, this determines the event stream
166
- # during which it will be evaluated. For rules that can be applied to one of
167
- # several event streams, the effective one is defined by the separate
168
- # `event_stream` field.
169
- #
170
- # - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream.
171
- # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
172
- # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
173
- # - `CONDITIONAL_ACTION`: AUTHORIZATION or THREE_DS_AUTHENTICATION event stream.
174
- type:,
175
- # Card tokens to which the Auth Rule does not apply.
176
- excluded_card_tokens: nil
177
- )
178
- end
179
-
180
- sig do
181
- override.returns(
182
- {
183
- token: String,
184
- account_tokens: T::Array[String],
185
- business_account_tokens: T::Array[String],
186
- card_tokens: T::Array[String],
187
- current_version:
188
- T.nilable(
189
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion
190
- ),
191
- draft_version:
192
- T.nilable(
193
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion
194
- ),
195
- event_stream:
196
- Lithic::Models::AuthRules::V2ApplyResponse::EventStream::TaggedSymbol,
197
- lithic_managed: T::Boolean,
198
- name: T.nilable(String),
199
- program_level: T::Boolean,
200
- state:
201
- Lithic::Models::AuthRules::V2ApplyResponse::State::TaggedSymbol,
202
- type:
203
- Lithic::Models::AuthRules::V2ApplyResponse::Type::TaggedSymbol,
204
- excluded_card_tokens: T::Array[String]
205
- }
206
- )
207
- end
208
- def to_hash
209
- end
210
-
211
- class CurrentVersion < Lithic::Internal::Type::BaseModel
212
- OrHash =
213
- T.type_alias do
214
- T.any(
215
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion,
216
- Lithic::Internal::AnyHash
217
- )
218
- end
219
-
220
- # Parameters for the Auth Rule
221
- sig do
222
- returns(
223
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Variants
224
- )
225
- end
226
- attr_accessor :parameters
227
-
228
- # The version of the rule, this is incremented whenever the rule's parameters
229
- # change.
230
- sig { returns(Integer) }
231
- attr_accessor :version
232
-
233
- sig do
234
- params(
235
- parameters:
236
- T.any(
237
- Lithic::AuthRules::ConditionalBlockParameters::OrHash,
238
- Lithic::AuthRules::VelocityLimitParams::OrHash,
239
- Lithic::AuthRules::MerchantLockParameters::OrHash,
240
- Lithic::AuthRules::Conditional3DSActionParameters::OrHash,
241
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::OrHash
242
- ),
243
- version: Integer
244
- ).returns(T.attached_class)
245
- end
246
- def self.new(
247
- # Parameters for the Auth Rule
248
- parameters:,
249
- # The version of the rule, this is incremented whenever the rule's parameters
250
- # change.
251
- version:
252
- )
253
- end
254
-
255
- sig do
256
- override.returns(
257
- {
258
- parameters:
259
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Variants,
260
- version: Integer
261
- }
262
- )
263
- end
264
- def to_hash
265
- end
266
-
267
- # Parameters for the Auth Rule
268
- module Parameters
269
- extend Lithic::Internal::Type::Union
270
-
271
- Variants =
272
- T.type_alias do
273
- T.any(
274
- Lithic::AuthRules::ConditionalBlockParameters,
275
- Lithic::AuthRules::VelocityLimitParams,
276
- Lithic::AuthRules::MerchantLockParameters,
277
- Lithic::AuthRules::Conditional3DSActionParameters,
278
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters
279
- )
280
- end
281
-
282
- class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel
283
- OrHash =
284
- T.type_alias do
285
- T.any(
286
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters,
287
- Lithic::Internal::AnyHash
288
- )
289
- end
290
-
291
- # The action to take if the conditions are met.
292
- sig do
293
- returns(
294
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol
295
- )
296
- end
297
- attr_accessor :action
298
-
299
- sig do
300
- returns(
301
- T::Array[
302
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition
303
- ]
304
- )
305
- end
306
- attr_accessor :conditions
307
-
308
- sig do
309
- params(
310
- action:
311
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::OrSymbol,
312
- conditions:
313
- T::Array[
314
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::OrHash
315
- ]
316
- ).returns(T.attached_class)
317
- end
318
- def self.new(
319
- # The action to take if the conditions are met.
320
- action:,
321
- conditions:
322
- )
323
- end
324
-
325
- sig do
326
- override.returns(
327
- {
328
- action:
329
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol,
330
- conditions:
331
- T::Array[
332
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition
333
- ]
334
- }
335
- )
336
- end
337
- def to_hash
338
- end
339
-
340
- # The action to take if the conditions are met.
341
- module Action
342
- extend Lithic::Internal::Type::Enum
343
-
344
- TaggedSymbol =
345
- T.type_alias do
346
- T.all(
347
- Symbol,
348
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action
349
- )
350
- end
351
- OrSymbol = T.type_alias { T.any(Symbol, String) }
352
-
353
- DECLINE =
354
- T.let(
355
- :DECLINE,
356
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol
357
- )
358
- CHALLENGE =
359
- T.let(
360
- :CHALLENGE,
361
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol
362
- )
363
-
364
- sig do
365
- override.returns(
366
- T::Array[
367
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol
368
- ]
369
- )
370
- end
371
- def self.values
372
- end
373
- end
374
-
375
- class Condition < Lithic::Internal::Type::BaseModel
376
- OrHash =
377
- T.type_alias do
378
- T.any(
379
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition,
380
- Lithic::Internal::AnyHash
381
- )
382
- end
383
-
384
- # The attribute to target.
385
- #
386
- # The following attributes may be targeted:
387
- #
388
- # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
389
- # business by the types of goods or services it provides.
390
- # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
391
- # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
392
- # Netherlands Antilles.
393
- # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
394
- # the transaction.
395
- # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
396
- # (merchant).
397
- # - `DESCRIPTOR`: Short description of card acceptor.
398
- # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
399
- # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
400
- # `TOKEN_AUTHENTICATED`.
401
- # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
402
- # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
403
- # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
404
- # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
405
- # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
406
- # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
407
- # fee field in the settlement/cardholder billing currency. This is the amount
408
- # the issuer should authorize against unless the issuer is paying the acquirer
409
- # fee on behalf of the cardholder.
410
- # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
411
- # represents the amount of cash being withdrawn or advanced.
412
- # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
413
- # given authorization. Scores are on a range of 0-999, with 0 representing the
414
- # lowest risk and 999 representing the highest risk. For Visa transactions,
415
- # where the raw score has a range of 0-99, Lithic will normalize the score by
416
- # multiplying the raw score by 10x.
417
- # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
418
- # trailing 15 minutes before the authorization.
419
- # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
420
- # trailing hour up and until the authorization.
421
- # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
422
- # trailing 24 hours up and until the authorization.
423
- # - `CARD_STATE`: The current state of the card associated with the transaction.
424
- # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
425
- # `PENDING_FULFILLMENT`.
426
- # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
427
- # Valid values are `TRUE`, `FALSE`.
428
- # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
429
- # `OK`, `BLOCKED`.
430
- # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
431
- # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
432
- # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
433
- # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
434
- # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
435
- # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
436
- # data with the cardholder KYC data if it exists. Valid values are `MATCH`,
437
- # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
438
- sig do
439
- returns(
440
- T.nilable(
441
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
442
- )
443
- )
444
- end
445
- attr_reader :attribute
446
-
447
- sig do
448
- params(
449
- attribute:
450
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol
451
- ).void
452
- end
453
- attr_writer :attribute
454
-
455
- # The operation to apply to the attribute
456
- sig do
457
- returns(
458
- T.nilable(
459
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
460
- )
461
- )
462
- end
463
- attr_reader :operation
464
-
465
- sig do
466
- params(
467
- operation:
468
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol
469
- ).void
470
- end
471
- attr_writer :operation
472
-
473
- # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
474
- sig do
475
- returns(
476
- T.nilable(
477
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants
478
- )
479
- )
480
- end
481
- attr_reader :value
482
-
483
- sig do
484
- params(
485
- value:
486
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants
487
- ).void
488
- end
489
- attr_writer :value
490
-
491
- sig do
492
- params(
493
- attribute:
494
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol,
495
- operation:
496
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol,
497
- value:
498
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants
499
- ).returns(T.attached_class)
500
- end
501
- def self.new(
502
- # The attribute to target.
503
- #
504
- # The following attributes may be targeted:
505
- #
506
- # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
507
- # business by the types of goods or services it provides.
508
- # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
509
- # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
510
- # Netherlands Antilles.
511
- # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
512
- # the transaction.
513
- # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
514
- # (merchant).
515
- # - `DESCRIPTOR`: Short description of card acceptor.
516
- # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
517
- # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
518
- # `TOKEN_AUTHENTICATED`.
519
- # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
520
- # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
521
- # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
522
- # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
523
- # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
524
- # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
525
- # fee field in the settlement/cardholder billing currency. This is the amount
526
- # the issuer should authorize against unless the issuer is paying the acquirer
527
- # fee on behalf of the cardholder.
528
- # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
529
- # represents the amount of cash being withdrawn or advanced.
530
- # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
531
- # given authorization. Scores are on a range of 0-999, with 0 representing the
532
- # lowest risk and 999 representing the highest risk. For Visa transactions,
533
- # where the raw score has a range of 0-99, Lithic will normalize the score by
534
- # multiplying the raw score by 10x.
535
- # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
536
- # trailing 15 minutes before the authorization.
537
- # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
538
- # trailing hour up and until the authorization.
539
- # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
540
- # trailing 24 hours up and until the authorization.
541
- # - `CARD_STATE`: The current state of the card associated with the transaction.
542
- # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
543
- # `PENDING_FULFILLMENT`.
544
- # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
545
- # Valid values are `TRUE`, `FALSE`.
546
- # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
547
- # `OK`, `BLOCKED`.
548
- # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
549
- # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
550
- # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
551
- # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
552
- # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
553
- # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
554
- # data with the cardholder KYC data if it exists. Valid values are `MATCH`,
555
- # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
556
- attribute: nil,
557
- # The operation to apply to the attribute
558
- operation: nil,
559
- # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
560
- value: nil
561
- )
562
- end
563
-
564
- sig do
565
- override.returns(
566
- {
567
- attribute:
568
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol,
569
- operation:
570
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol,
571
- value:
572
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants
573
- }
574
- )
575
- end
576
- def to_hash
577
- end
578
-
579
- # The attribute to target.
580
- #
581
- # The following attributes may be targeted:
582
- #
583
- # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
584
- # business by the types of goods or services it provides.
585
- # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
586
- # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
587
- # Netherlands Antilles.
588
- # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
589
- # the transaction.
590
- # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
591
- # (merchant).
592
- # - `DESCRIPTOR`: Short description of card acceptor.
593
- # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
594
- # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
595
- # `TOKEN_AUTHENTICATED`.
596
- # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
597
- # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
598
- # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
599
- # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
600
- # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
601
- # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
602
- # fee field in the settlement/cardholder billing currency. This is the amount
603
- # the issuer should authorize against unless the issuer is paying the acquirer
604
- # fee on behalf of the cardholder.
605
- # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
606
- # represents the amount of cash being withdrawn or advanced.
607
- # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
608
- # given authorization. Scores are on a range of 0-999, with 0 representing the
609
- # lowest risk and 999 representing the highest risk. For Visa transactions,
610
- # where the raw score has a range of 0-99, Lithic will normalize the score by
611
- # multiplying the raw score by 10x.
612
- # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
613
- # trailing 15 minutes before the authorization.
614
- # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
615
- # trailing hour up and until the authorization.
616
- # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
617
- # trailing 24 hours up and until the authorization.
618
- # - `CARD_STATE`: The current state of the card associated with the transaction.
619
- # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
620
- # `PENDING_FULFILLMENT`.
621
- # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
622
- # Valid values are `TRUE`, `FALSE`.
623
- # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
624
- # `OK`, `BLOCKED`.
625
- # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
626
- # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
627
- # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
628
- # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
629
- # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
630
- # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
631
- # data with the cardholder KYC data if it exists. Valid values are `MATCH`,
632
- # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
633
- module Attribute
634
- extend Lithic::Internal::Type::Enum
635
-
636
- TaggedSymbol =
637
- T.type_alias do
638
- T.all(
639
- Symbol,
640
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute
641
- )
642
- end
643
- OrSymbol = T.type_alias { T.any(Symbol, String) }
644
-
645
- MCC =
646
- T.let(
647
- :MCC,
648
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
649
- )
650
- COUNTRY =
651
- T.let(
652
- :COUNTRY,
653
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
654
- )
655
- CURRENCY =
656
- T.let(
657
- :CURRENCY,
658
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
659
- )
660
- MERCHANT_ID =
661
- T.let(
662
- :MERCHANT_ID,
663
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
664
- )
665
- DESCRIPTOR =
666
- T.let(
667
- :DESCRIPTOR,
668
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
669
- )
670
- LIABILITY_SHIFT =
671
- T.let(
672
- :LIABILITY_SHIFT,
673
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
674
- )
675
- PAN_ENTRY_MODE =
676
- T.let(
677
- :PAN_ENTRY_MODE,
678
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
679
- )
680
- TRANSACTION_AMOUNT =
681
- T.let(
682
- :TRANSACTION_AMOUNT,
683
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
684
- )
685
- CASH_AMOUNT =
686
- T.let(
687
- :CASH_AMOUNT,
688
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
689
- )
690
- RISK_SCORE =
691
- T.let(
692
- :RISK_SCORE,
693
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
694
- )
695
- CARD_TRANSACTION_COUNT_15_M =
696
- T.let(
697
- :CARD_TRANSACTION_COUNT_15M,
698
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
699
- )
700
- CARD_TRANSACTION_COUNT_1_H =
701
- T.let(
702
- :CARD_TRANSACTION_COUNT_1H,
703
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
704
- )
705
- CARD_TRANSACTION_COUNT_24_H =
706
- T.let(
707
- :CARD_TRANSACTION_COUNT_24H,
708
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
709
- )
710
- CARD_STATE =
711
- T.let(
712
- :CARD_STATE,
713
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
714
- )
715
- PIN_ENTERED =
716
- T.let(
717
- :PIN_ENTERED,
718
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
719
- )
720
- PIN_STATUS =
721
- T.let(
722
- :PIN_STATUS,
723
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
724
- )
725
- WALLET_TYPE =
726
- T.let(
727
- :WALLET_TYPE,
728
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
729
- )
730
- TRANSACTION_INITIATOR =
731
- T.let(
732
- :TRANSACTION_INITIATOR,
733
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
734
- )
735
- ADDRESS_MATCH =
736
- T.let(
737
- :ADDRESS_MATCH,
738
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
739
- )
740
-
741
- sig do
742
- override.returns(
743
- T::Array[
744
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
745
- ]
746
- )
747
- end
748
- def self.values
749
- end
750
- end
751
-
752
- # The operation to apply to the attribute
753
- module Operation
754
- extend Lithic::Internal::Type::Enum
755
-
756
- TaggedSymbol =
757
- T.type_alias do
758
- T.all(
759
- Symbol,
760
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation
761
- )
762
- end
763
- OrSymbol = T.type_alias { T.any(Symbol, String) }
764
-
765
- IS_ONE_OF =
766
- T.let(
767
- :IS_ONE_OF,
768
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
769
- )
770
- IS_NOT_ONE_OF =
771
- T.let(
772
- :IS_NOT_ONE_OF,
773
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
774
- )
775
- MATCHES =
776
- T.let(
777
- :MATCHES,
778
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
779
- )
780
- DOES_NOT_MATCH =
781
- T.let(
782
- :DOES_NOT_MATCH,
783
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
784
- )
785
- IS_EQUAL_TO =
786
- T.let(
787
- :IS_EQUAL_TO,
788
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
789
- )
790
- IS_NOT_EQUAL_TO =
791
- T.let(
792
- :IS_NOT_EQUAL_TO,
793
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
794
- )
795
- IS_GREATER_THAN =
796
- T.let(
797
- :IS_GREATER_THAN,
798
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
799
- )
800
- IS_GREATER_THAN_OR_EQUAL_TO =
801
- T.let(
802
- :IS_GREATER_THAN_OR_EQUAL_TO,
803
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
804
- )
805
- IS_LESS_THAN =
806
- T.let(
807
- :IS_LESS_THAN,
808
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
809
- )
810
- IS_LESS_THAN_OR_EQUAL_TO =
811
- T.let(
812
- :IS_LESS_THAN_OR_EQUAL_TO,
813
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
814
- )
815
-
816
- sig do
817
- override.returns(
818
- T::Array[
819
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
820
- ]
821
- )
822
- end
823
- def self.values
824
- end
825
- end
826
-
827
- # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
828
- module Value
829
- extend Lithic::Internal::Type::Union
830
-
831
- Variants =
832
- T.type_alias { T.any(String, Integer, T::Array[String]) }
833
-
834
- sig do
835
- override.returns(
836
- T::Array[
837
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants
838
- ]
839
- )
840
- end
841
- def self.variants
842
- end
843
-
844
- StringArray =
845
- T.let(
846
- Lithic::Internal::Type::ArrayOf[String],
847
- Lithic::Internal::Type::Converter
848
- )
849
- end
850
- end
851
- end
852
-
853
- sig do
854
- override.returns(
855
- T::Array[
856
- Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion::Parameters::Variants
857
- ]
858
- )
859
- end
860
- def self.variants
861
- end
862
- end
863
- end
864
-
865
- class DraftVersion < Lithic::Internal::Type::BaseModel
866
- OrHash =
867
- T.type_alias do
868
- T.any(
869
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion,
870
- Lithic::Internal::AnyHash
871
- )
872
- end
873
-
874
- # Parameters for the Auth Rule
875
- sig do
876
- returns(
877
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Variants
878
- )
879
- end
880
- attr_accessor :parameters
881
-
882
- # The version of the rule, this is incremented whenever the rule's parameters
883
- # change.
884
- sig { returns(Integer) }
885
- attr_accessor :version
886
-
887
- sig do
888
- params(
889
- parameters:
890
- T.any(
891
- Lithic::AuthRules::ConditionalBlockParameters::OrHash,
892
- Lithic::AuthRules::VelocityLimitParams::OrHash,
893
- Lithic::AuthRules::MerchantLockParameters::OrHash,
894
- Lithic::AuthRules::Conditional3DSActionParameters::OrHash,
895
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::OrHash
896
- ),
897
- version: Integer
898
- ).returns(T.attached_class)
899
- end
900
- def self.new(
901
- # Parameters for the Auth Rule
902
- parameters:,
903
- # The version of the rule, this is incremented whenever the rule's parameters
904
- # change.
905
- version:
906
- )
907
- end
908
-
909
- sig do
910
- override.returns(
911
- {
912
- parameters:
913
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Variants,
914
- version: Integer
915
- }
916
- )
917
- end
918
- def to_hash
919
- end
920
-
921
- # Parameters for the Auth Rule
922
- module Parameters
923
- extend Lithic::Internal::Type::Union
924
-
925
- Variants =
926
- T.type_alias do
927
- T.any(
928
- Lithic::AuthRules::ConditionalBlockParameters,
929
- Lithic::AuthRules::VelocityLimitParams,
930
- Lithic::AuthRules::MerchantLockParameters,
931
- Lithic::AuthRules::Conditional3DSActionParameters,
932
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters
933
- )
934
- end
935
-
936
- class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel
937
- OrHash =
938
- T.type_alias do
939
- T.any(
940
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters,
941
- Lithic::Internal::AnyHash
942
- )
943
- end
944
-
945
- # The action to take if the conditions are met.
946
- sig do
947
- returns(
948
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol
949
- )
950
- end
951
- attr_accessor :action
952
-
953
- sig do
954
- returns(
955
- T::Array[
956
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition
957
- ]
958
- )
959
- end
960
- attr_accessor :conditions
961
-
962
- sig do
963
- params(
964
- action:
965
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::OrSymbol,
966
- conditions:
967
- T::Array[
968
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::OrHash
969
- ]
970
- ).returns(T.attached_class)
971
- end
972
- def self.new(
973
- # The action to take if the conditions are met.
974
- action:,
975
- conditions:
976
- )
977
- end
978
-
979
- sig do
980
- override.returns(
981
- {
982
- action:
983
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol,
984
- conditions:
985
- T::Array[
986
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition
987
- ]
988
- }
989
- )
990
- end
991
- def to_hash
992
- end
993
-
994
- # The action to take if the conditions are met.
995
- module Action
996
- extend Lithic::Internal::Type::Enum
997
-
998
- TaggedSymbol =
999
- T.type_alias do
1000
- T.all(
1001
- Symbol,
1002
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action
1003
- )
1004
- end
1005
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1006
-
1007
- DECLINE =
1008
- T.let(
1009
- :DECLINE,
1010
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol
1011
- )
1012
- CHALLENGE =
1013
- T.let(
1014
- :CHALLENGE,
1015
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol
1016
- )
1017
-
1018
- sig do
1019
- override.returns(
1020
- T::Array[
1021
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Action::TaggedSymbol
1022
- ]
1023
- )
1024
- end
1025
- def self.values
1026
- end
1027
- end
1028
-
1029
- class Condition < Lithic::Internal::Type::BaseModel
1030
- OrHash =
1031
- T.type_alias do
1032
- T.any(
1033
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition,
1034
- Lithic::Internal::AnyHash
1035
- )
1036
- end
1037
-
1038
- # The attribute to target.
1039
- #
1040
- # The following attributes may be targeted:
1041
- #
1042
- # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
1043
- # business by the types of goods or services it provides.
1044
- # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
1045
- # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
1046
- # Netherlands Antilles.
1047
- # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
1048
- # the transaction.
1049
- # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
1050
- # (merchant).
1051
- # - `DESCRIPTOR`: Short description of card acceptor.
1052
- # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
1053
- # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
1054
- # `TOKEN_AUTHENTICATED`.
1055
- # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
1056
- # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
1057
- # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
1058
- # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
1059
- # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
1060
- # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
1061
- # fee field in the settlement/cardholder billing currency. This is the amount
1062
- # the issuer should authorize against unless the issuer is paying the acquirer
1063
- # fee on behalf of the cardholder.
1064
- # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
1065
- # represents the amount of cash being withdrawn or advanced.
1066
- # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
1067
- # given authorization. Scores are on a range of 0-999, with 0 representing the
1068
- # lowest risk and 999 representing the highest risk. For Visa transactions,
1069
- # where the raw score has a range of 0-99, Lithic will normalize the score by
1070
- # multiplying the raw score by 10x.
1071
- # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
1072
- # trailing 15 minutes before the authorization.
1073
- # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
1074
- # trailing hour up and until the authorization.
1075
- # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
1076
- # trailing 24 hours up and until the authorization.
1077
- # - `CARD_STATE`: The current state of the card associated with the transaction.
1078
- # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
1079
- # `PENDING_FULFILLMENT`.
1080
- # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
1081
- # Valid values are `TRUE`, `FALSE`.
1082
- # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
1083
- # `OK`, `BLOCKED`.
1084
- # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
1085
- # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
1086
- # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
1087
- # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
1088
- # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
1089
- # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
1090
- # data with the cardholder KYC data if it exists. Valid values are `MATCH`,
1091
- # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
1092
- sig do
1093
- returns(
1094
- T.nilable(
1095
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1096
- )
1097
- )
1098
- end
1099
- attr_reader :attribute
1100
-
1101
- sig do
1102
- params(
1103
- attribute:
1104
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol
1105
- ).void
1106
- end
1107
- attr_writer :attribute
1108
-
1109
- # The operation to apply to the attribute
1110
- sig do
1111
- returns(
1112
- T.nilable(
1113
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
1114
- )
1115
- )
1116
- end
1117
- attr_reader :operation
1118
-
1119
- sig do
1120
- params(
1121
- operation:
1122
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol
1123
- ).void
1124
- end
1125
- attr_writer :operation
1126
-
1127
- # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
1128
- sig do
1129
- returns(
1130
- T.nilable(
1131
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants
1132
- )
1133
- )
1134
- end
1135
- attr_reader :value
1136
-
1137
- sig do
1138
- params(
1139
- value:
1140
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants
1141
- ).void
1142
- end
1143
- attr_writer :value
1144
-
1145
- sig do
1146
- params(
1147
- attribute:
1148
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::OrSymbol,
1149
- operation:
1150
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::OrSymbol,
1151
- value:
1152
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants
1153
- ).returns(T.attached_class)
1154
- end
1155
- def self.new(
1156
- # The attribute to target.
1157
- #
1158
- # The following attributes may be targeted:
1159
- #
1160
- # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
1161
- # business by the types of goods or services it provides.
1162
- # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
1163
- # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
1164
- # Netherlands Antilles.
1165
- # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
1166
- # the transaction.
1167
- # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
1168
- # (merchant).
1169
- # - `DESCRIPTOR`: Short description of card acceptor.
1170
- # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
1171
- # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
1172
- # `TOKEN_AUTHENTICATED`.
1173
- # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
1174
- # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
1175
- # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
1176
- # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
1177
- # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
1178
- # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
1179
- # fee field in the settlement/cardholder billing currency. This is the amount
1180
- # the issuer should authorize against unless the issuer is paying the acquirer
1181
- # fee on behalf of the cardholder.
1182
- # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
1183
- # represents the amount of cash being withdrawn or advanced.
1184
- # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
1185
- # given authorization. Scores are on a range of 0-999, with 0 representing the
1186
- # lowest risk and 999 representing the highest risk. For Visa transactions,
1187
- # where the raw score has a range of 0-99, Lithic will normalize the score by
1188
- # multiplying the raw score by 10x.
1189
- # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
1190
- # trailing 15 minutes before the authorization.
1191
- # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
1192
- # trailing hour up and until the authorization.
1193
- # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
1194
- # trailing 24 hours up and until the authorization.
1195
- # - `CARD_STATE`: The current state of the card associated with the transaction.
1196
- # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
1197
- # `PENDING_FULFILLMENT`.
1198
- # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
1199
- # Valid values are `TRUE`, `FALSE`.
1200
- # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
1201
- # `OK`, `BLOCKED`.
1202
- # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
1203
- # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
1204
- # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
1205
- # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
1206
- # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
1207
- # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
1208
- # data with the cardholder KYC data if it exists. Valid values are `MATCH`,
1209
- # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
1210
- attribute: nil,
1211
- # The operation to apply to the attribute
1212
- operation: nil,
1213
- # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
1214
- value: nil
1215
- )
1216
- end
1217
-
1218
- sig do
1219
- override.returns(
1220
- {
1221
- attribute:
1222
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol,
1223
- operation:
1224
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol,
1225
- value:
1226
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants
1227
- }
1228
- )
1229
- end
1230
- def to_hash
1231
- end
1232
-
1233
- # The attribute to target.
1234
- #
1235
- # The following attributes may be targeted:
1236
- #
1237
- # - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
1238
- # business by the types of goods or services it provides.
1239
- # - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
1240
- # ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
1241
- # Netherlands Antilles.
1242
- # - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
1243
- # the transaction.
1244
- # - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
1245
- # (merchant).
1246
- # - `DESCRIPTOR`: Short description of card acceptor.
1247
- # - `LIABILITY_SHIFT`: Indicates whether chargeback liability shift to the issuer
1248
- # applies to the transaction. Valid values are `NONE`, `3DS_AUTHENTICATED`, or
1249
- # `TOKEN_AUTHENTICATED`.
1250
- # - `PAN_ENTRY_MODE`: The method by which the cardholder's primary account number
1251
- # (PAN) was entered. Valid values are `AUTO_ENTRY`, `BAR_CODE`, `CONTACTLESS`,
1252
- # `ECOMMERCE`, `ERROR_KEYED`, `ERROR_MAGNETIC_STRIPE`, `ICC`, `KEY_ENTERED`,
1253
- # `MAGNETIC_STRIPE`, `MANUAL`, `OCR`, `SECURE_CARDLESS`, `UNSPECIFIED`,
1254
- # `UNKNOWN`, `CREDENTIAL_ON_FILE`, or `ECOMMERCE`.
1255
- # - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
1256
- # fee field in the settlement/cardholder billing currency. This is the amount
1257
- # the issuer should authorize against unless the issuer is paying the acquirer
1258
- # fee on behalf of the cardholder.
1259
- # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
1260
- # represents the amount of cash being withdrawn or advanced.
1261
- # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
1262
- # given authorization. Scores are on a range of 0-999, with 0 representing the
1263
- # lowest risk and 999 representing the highest risk. For Visa transactions,
1264
- # where the raw score has a range of 0-99, Lithic will normalize the score by
1265
- # multiplying the raw score by 10x.
1266
- # - `CARD_TRANSACTION_COUNT_15M`: The number of transactions on the card in the
1267
- # trailing 15 minutes before the authorization.
1268
- # - `CARD_TRANSACTION_COUNT_1H`: The number of transactions on the card in the
1269
- # trailing hour up and until the authorization.
1270
- # - `CARD_TRANSACTION_COUNT_24H`: The number of transactions on the card in the
1271
- # trailing 24 hours up and until the authorization.
1272
- # - `CARD_STATE`: The current state of the card associated with the transaction.
1273
- # Valid values are `CLOSED`, `OPEN`, `PAUSED`, `PENDING_ACTIVATION`,
1274
- # `PENDING_FULFILLMENT`.
1275
- # - `PIN_ENTERED`: Indicates whether a PIN was entered during the transaction.
1276
- # Valid values are `TRUE`, `FALSE`.
1277
- # - `PIN_STATUS`: The current state of card's PIN. Valid values are `NOT_SET`,
1278
- # `OK`, `BLOCKED`.
1279
- # - `WALLET_TYPE`: For transactions using a digital wallet token, indicates the
1280
- # source of the token. Valid values are `APPLE_PAY`, `GOOGLE_PAY`,
1281
- # `SAMSUNG_PAY`, `MASTERPASS`, `MERCHANT`, `OTHER`, `NONE`.
1282
- # - `TRANSACTION_INITIATOR`: The entity that initiated the transaction indicates
1283
- # the source of the token. Valid values are `CARDHOLDER`, `MERCHANT`, `UNKNOWN`.
1284
- # - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
1285
- # data with the cardholder KYC data if it exists. Valid values are `MATCH`,
1286
- # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
1287
- module Attribute
1288
- extend Lithic::Internal::Type::Enum
1289
-
1290
- TaggedSymbol =
1291
- T.type_alias do
1292
- T.all(
1293
- Symbol,
1294
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute
1295
- )
1296
- end
1297
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1298
-
1299
- MCC =
1300
- T.let(
1301
- :MCC,
1302
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1303
- )
1304
- COUNTRY =
1305
- T.let(
1306
- :COUNTRY,
1307
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1308
- )
1309
- CURRENCY =
1310
- T.let(
1311
- :CURRENCY,
1312
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1313
- )
1314
- MERCHANT_ID =
1315
- T.let(
1316
- :MERCHANT_ID,
1317
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1318
- )
1319
- DESCRIPTOR =
1320
- T.let(
1321
- :DESCRIPTOR,
1322
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1323
- )
1324
- LIABILITY_SHIFT =
1325
- T.let(
1326
- :LIABILITY_SHIFT,
1327
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1328
- )
1329
- PAN_ENTRY_MODE =
1330
- T.let(
1331
- :PAN_ENTRY_MODE,
1332
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1333
- )
1334
- TRANSACTION_AMOUNT =
1335
- T.let(
1336
- :TRANSACTION_AMOUNT,
1337
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1338
- )
1339
- CASH_AMOUNT =
1340
- T.let(
1341
- :CASH_AMOUNT,
1342
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1343
- )
1344
- RISK_SCORE =
1345
- T.let(
1346
- :RISK_SCORE,
1347
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1348
- )
1349
- CARD_TRANSACTION_COUNT_15_M =
1350
- T.let(
1351
- :CARD_TRANSACTION_COUNT_15M,
1352
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1353
- )
1354
- CARD_TRANSACTION_COUNT_1_H =
1355
- T.let(
1356
- :CARD_TRANSACTION_COUNT_1H,
1357
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1358
- )
1359
- CARD_TRANSACTION_COUNT_24_H =
1360
- T.let(
1361
- :CARD_TRANSACTION_COUNT_24H,
1362
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1363
- )
1364
- CARD_STATE =
1365
- T.let(
1366
- :CARD_STATE,
1367
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1368
- )
1369
- PIN_ENTERED =
1370
- T.let(
1371
- :PIN_ENTERED,
1372
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1373
- )
1374
- PIN_STATUS =
1375
- T.let(
1376
- :PIN_STATUS,
1377
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1378
- )
1379
- WALLET_TYPE =
1380
- T.let(
1381
- :WALLET_TYPE,
1382
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1383
- )
1384
- TRANSACTION_INITIATOR =
1385
- T.let(
1386
- :TRANSACTION_INITIATOR,
1387
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1388
- )
1389
- ADDRESS_MATCH =
1390
- T.let(
1391
- :ADDRESS_MATCH,
1392
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1393
- )
1394
-
1395
- sig do
1396
- override.returns(
1397
- T::Array[
1398
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1399
- ]
1400
- )
1401
- end
1402
- def self.values
1403
- end
1404
- end
1405
-
1406
- # The operation to apply to the attribute
1407
- module Operation
1408
- extend Lithic::Internal::Type::Enum
1409
-
1410
- TaggedSymbol =
1411
- T.type_alias do
1412
- T.all(
1413
- Symbol,
1414
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation
1415
- )
1416
- end
1417
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1418
-
1419
- IS_ONE_OF =
1420
- T.let(
1421
- :IS_ONE_OF,
1422
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
1423
- )
1424
- IS_NOT_ONE_OF =
1425
- T.let(
1426
- :IS_NOT_ONE_OF,
1427
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
1428
- )
1429
- MATCHES =
1430
- T.let(
1431
- :MATCHES,
1432
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
1433
- )
1434
- DOES_NOT_MATCH =
1435
- T.let(
1436
- :DOES_NOT_MATCH,
1437
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
1438
- )
1439
- IS_EQUAL_TO =
1440
- T.let(
1441
- :IS_EQUAL_TO,
1442
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
1443
- )
1444
- IS_NOT_EQUAL_TO =
1445
- T.let(
1446
- :IS_NOT_EQUAL_TO,
1447
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
1448
- )
1449
- IS_GREATER_THAN =
1450
- T.let(
1451
- :IS_GREATER_THAN,
1452
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
1453
- )
1454
- IS_GREATER_THAN_OR_EQUAL_TO =
1455
- T.let(
1456
- :IS_GREATER_THAN_OR_EQUAL_TO,
1457
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
1458
- )
1459
- IS_LESS_THAN =
1460
- T.let(
1461
- :IS_LESS_THAN,
1462
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
1463
- )
1464
- IS_LESS_THAN_OR_EQUAL_TO =
1465
- T.let(
1466
- :IS_LESS_THAN_OR_EQUAL_TO,
1467
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
1468
- )
1469
-
1470
- sig do
1471
- override.returns(
1472
- T::Array[
1473
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Operation::TaggedSymbol
1474
- ]
1475
- )
1476
- end
1477
- def self.values
1478
- end
1479
- end
1480
-
1481
- # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
1482
- module Value
1483
- extend Lithic::Internal::Type::Union
1484
-
1485
- Variants =
1486
- T.type_alias { T.any(String, Integer, T::Array[String]) }
1487
-
1488
- sig do
1489
- override.returns(
1490
- T::Array[
1491
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Value::Variants
1492
- ]
1493
- )
1494
- end
1495
- def self.variants
1496
- end
1497
-
1498
- StringArray =
1499
- T.let(
1500
- Lithic::Internal::Type::ArrayOf[String],
1501
- Lithic::Internal::Type::Converter
1502
- )
1503
- end
1504
- end
1505
- end
1506
-
1507
- sig do
1508
- override.returns(
1509
- T::Array[
1510
- Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion::Parameters::Variants
1511
- ]
1512
- )
1513
- end
1514
- def self.variants
1515
- end
1516
- end
1517
- end
1518
-
1519
- # The event stream during which the rule will be evaluated.
1520
- module EventStream
1521
- extend Lithic::Internal::Type::Enum
1522
-
1523
- TaggedSymbol =
1524
- T.type_alias do
1525
- T.all(
1526
- Symbol,
1527
- Lithic::Models::AuthRules::V2ApplyResponse::EventStream
1528
- )
1529
- end
1530
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1531
-
1532
- AUTHORIZATION =
1533
- T.let(
1534
- :AUTHORIZATION,
1535
- Lithic::Models::AuthRules::V2ApplyResponse::EventStream::TaggedSymbol
1536
- )
1537
- THREE_DS_AUTHENTICATION =
1538
- T.let(
1539
- :THREE_DS_AUTHENTICATION,
1540
- Lithic::Models::AuthRules::V2ApplyResponse::EventStream::TaggedSymbol
1541
- )
1542
-
1543
- sig do
1544
- override.returns(
1545
- T::Array[
1546
- Lithic::Models::AuthRules::V2ApplyResponse::EventStream::TaggedSymbol
1547
- ]
1548
- )
1549
- end
1550
- def self.values
1551
- end
1552
- end
1553
-
1554
- # The state of the Auth Rule
1555
- module State
1556
- extend Lithic::Internal::Type::Enum
1557
-
1558
- TaggedSymbol =
1559
- T.type_alias do
1560
- T.all(Symbol, Lithic::Models::AuthRules::V2ApplyResponse::State)
1561
- end
1562
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1563
-
1564
- ACTIVE =
1565
- T.let(
1566
- :ACTIVE,
1567
- Lithic::Models::AuthRules::V2ApplyResponse::State::TaggedSymbol
1568
- )
1569
- INACTIVE =
1570
- T.let(
1571
- :INACTIVE,
1572
- Lithic::Models::AuthRules::V2ApplyResponse::State::TaggedSymbol
1573
- )
1574
-
1575
- sig do
1576
- override.returns(
1577
- T::Array[
1578
- Lithic::Models::AuthRules::V2ApplyResponse::State::TaggedSymbol
1579
- ]
1580
- )
1581
- end
1582
- def self.values
1583
- end
1584
- end
1585
-
1586
- # The type of Auth Rule. For certain rule types, this determines the event stream
1587
- # during which it will be evaluated. For rules that can be applied to one of
1588
- # several event streams, the effective one is defined by the separate
1589
- # `event_stream` field.
1590
- #
1591
- # - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream.
1592
- # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
1593
- # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
1594
- # - `CONDITIONAL_ACTION`: AUTHORIZATION or THREE_DS_AUTHENTICATION event stream.
1595
- module Type
1596
- extend Lithic::Internal::Type::Enum
1597
-
1598
- TaggedSymbol =
1599
- T.type_alias do
1600
- T.all(Symbol, Lithic::Models::AuthRules::V2ApplyResponse::Type)
1601
- end
1602
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1603
-
1604
- CONDITIONAL_BLOCK =
1605
- T.let(
1606
- :CONDITIONAL_BLOCK,
1607
- Lithic::Models::AuthRules::V2ApplyResponse::Type::TaggedSymbol
1608
- )
1609
- VELOCITY_LIMIT =
1610
- T.let(
1611
- :VELOCITY_LIMIT,
1612
- Lithic::Models::AuthRules::V2ApplyResponse::Type::TaggedSymbol
1613
- )
1614
- MERCHANT_LOCK =
1615
- T.let(
1616
- :MERCHANT_LOCK,
1617
- Lithic::Models::AuthRules::V2ApplyResponse::Type::TaggedSymbol
1618
- )
1619
- CONDITIONAL_ACTION =
1620
- T.let(
1621
- :CONDITIONAL_ACTION,
1622
- Lithic::Models::AuthRules::V2ApplyResponse::Type::TaggedSymbol
1623
- )
1624
-
1625
- sig do
1626
- override.returns(
1627
- T::Array[
1628
- Lithic::Models::AuthRules::V2ApplyResponse::Type::TaggedSymbol
1629
- ]
1630
- )
1631
- end
1632
- def self.values
1633
- end
1634
- end
1635
- end
1636
- end
1637
- end
1638
- end