lithic 0.1.0.pre.alpha.47 → 0.1.0.pre.alpha.49

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 (48) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/internal/transport/pooled_net_requester.rb +7 -10
  5. data/lib/lithic/models/auth_rules/v2_apply_response.rb +20 -1
  6. data/lib/lithic/models/auth_rules/v2_create_params.rb +5 -0
  7. data/lib/lithic/models/auth_rules/v2_create_response.rb +20 -1
  8. data/lib/lithic/models/auth_rules/v2_draft_params.rb +5 -0
  9. data/lib/lithic/models/auth_rules/v2_draft_response.rb +20 -1
  10. data/lib/lithic/models/auth_rules/v2_list_response.rb +20 -1
  11. data/lib/lithic/models/auth_rules/v2_promote_response.rb +20 -1
  12. data/lib/lithic/models/auth_rules/v2_retrieve_features_params.rb +28 -0
  13. data/lib/lithic/models/auth_rules/v2_retrieve_features_response.rb +188 -0
  14. data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +20 -1
  15. data/lib/lithic/models/auth_rules/v2_update_response.rb +20 -1
  16. data/lib/lithic/models/auth_rules/velocity_limit_params.rb +44 -3
  17. data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +10 -0
  18. data/lib/lithic/resources/auth_rules/v2.rb +34 -0
  19. data/lib/lithic/version.rb +1 -1
  20. data/lib/lithic.rb +2 -0
  21. data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +32 -0
  22. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +11 -0
  23. data/rbi/lithic/models/auth_rules/v2_create_response.rbi +32 -0
  24. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +11 -0
  25. data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +32 -0
  26. data/rbi/lithic/models/auth_rules/v2_list_response.rbi +32 -0
  27. data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +32 -0
  28. data/rbi/lithic/models/auth_rules/v2_retrieve_features_params.rbi +54 -0
  29. data/rbi/lithic/models/auth_rules/v2_retrieve_features_response.rbi +443 -0
  30. data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +32 -0
  31. data/rbi/lithic/models/auth_rules/v2_update_response.rbi +32 -0
  32. data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +137 -3
  33. data/rbi/lithic/models/auth_rules/velocity_limit_params_period_window.rbi +4 -0
  34. data/rbi/lithic/resources/auth_rules/v2.rbi +26 -0
  35. data/sig/lithic/models/auth_rules/v2_apply_response.rbs +9 -0
  36. data/sig/lithic/models/auth_rules/v2_create_params.rbs +2 -0
  37. data/sig/lithic/models/auth_rules/v2_create_response.rbs +9 -0
  38. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +2 -0
  39. data/sig/lithic/models/auth_rules/v2_draft_response.rbs +9 -0
  40. data/sig/lithic/models/auth_rules/v2_list_response.rbs +9 -0
  41. data/sig/lithic/models/auth_rules/v2_promote_response.rbs +9 -0
  42. data/sig/lithic/models/auth_rules/v2_retrieve_features_params.rbs +34 -0
  43. data/sig/lithic/models/auth_rules/v2_retrieve_features_response.rbs +158 -0
  44. data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +9 -0
  45. data/sig/lithic/models/auth_rules/v2_update_response.rbs +9 -0
  46. data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +47 -3
  47. data/sig/lithic/resources/auth_rules/v2.rbs +7 -0
  48. metadata +8 -2
@@ -0,0 +1,443 @@
1
+ # typed: strong
2
+
3
+ module Lithic
4
+ module Models
5
+ module AuthRules
6
+ class V2RetrieveFeaturesResponse < Lithic::Internal::Type::BaseModel
7
+ OrHash =
8
+ T.type_alias do
9
+ T.any(
10
+ Lithic::Models::AuthRules::V2RetrieveFeaturesResponse,
11
+ Lithic::Internal::AnyHash
12
+ )
13
+ end
14
+
15
+ # Timestamp at which the Features were evaluated
16
+ sig { returns(Time) }
17
+ attr_accessor :evaluated
18
+
19
+ # Calculated Features used for evaluation of the provided Auth Rule
20
+ sig do
21
+ returns(
22
+ T::Array[
23
+ Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature
24
+ ]
25
+ )
26
+ end
27
+ attr_accessor :features
28
+
29
+ sig do
30
+ params(
31
+ evaluated: Time,
32
+ features:
33
+ T::Array[
34
+ Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::OrHash
35
+ ]
36
+ ).returns(T.attached_class)
37
+ end
38
+ def self.new(
39
+ # Timestamp at which the Features were evaluated
40
+ evaluated:,
41
+ # Calculated Features used for evaluation of the provided Auth Rule
42
+ features:
43
+ )
44
+ end
45
+
46
+ sig do
47
+ override.returns(
48
+ {
49
+ evaluated: Time,
50
+ features:
51
+ T::Array[
52
+ Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature
53
+ ]
54
+ }
55
+ )
56
+ end
57
+ def to_hash
58
+ end
59
+
60
+ class Feature < Lithic::Internal::Type::BaseModel
61
+ OrHash =
62
+ T.type_alias do
63
+ T.any(
64
+ Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature,
65
+ Lithic::Internal::AnyHash
66
+ )
67
+ end
68
+
69
+ sig do
70
+ returns(
71
+ Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters
72
+ )
73
+ end
74
+ attr_reader :filters
75
+
76
+ sig do
77
+ params(
78
+ filters:
79
+ Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::OrHash
80
+ ).void
81
+ end
82
+ attr_writer :filters
83
+
84
+ # DEPRECATED: This has been deprecated in favor of the Trailing Window Objects
85
+ #
86
+ # The size of the trailing window to calculate Spend Velocity over in seconds. The
87
+ # minimum value is 10 seconds, and the maximum value is 2678400 seconds (31 days).
88
+ sig do
89
+ returns(
90
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::Variants
91
+ )
92
+ end
93
+ attr_accessor :period
94
+
95
+ # The scope the velocity is calculated for
96
+ sig do
97
+ returns(
98
+ Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Scope::TaggedSymbol
99
+ )
100
+ end
101
+ attr_accessor :scope
102
+
103
+ sig do
104
+ returns(
105
+ Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Value
106
+ )
107
+ end
108
+ attr_reader :value
109
+
110
+ sig do
111
+ params(
112
+ value:
113
+ Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Value::OrHash
114
+ ).void
115
+ end
116
+ attr_writer :value
117
+
118
+ sig do
119
+ params(
120
+ filters:
121
+ Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::OrHash,
122
+ period:
123
+ T.any(
124
+ Integer,
125
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindow::OrSymbol,
126
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject::OrHash,
127
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay::OrHash,
128
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek::OrHash,
129
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth::OrHash,
130
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear::OrHash
131
+ ),
132
+ scope:
133
+ Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Scope::OrSymbol,
134
+ value:
135
+ Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Value::OrHash
136
+ ).returns(T.attached_class)
137
+ end
138
+ def self.new(
139
+ filters:,
140
+ # DEPRECATED: This has been deprecated in favor of the Trailing Window Objects
141
+ #
142
+ # The size of the trailing window to calculate Spend Velocity over in seconds. The
143
+ # minimum value is 10 seconds, and the maximum value is 2678400 seconds (31 days).
144
+ period:,
145
+ # The scope the velocity is calculated for
146
+ scope:,
147
+ value:
148
+ )
149
+ end
150
+
151
+ sig do
152
+ override.returns(
153
+ {
154
+ filters:
155
+ Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters,
156
+ period:
157
+ Lithic::AuthRules::VelocityLimitParamsPeriodWindow::Variants,
158
+ scope:
159
+ Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Scope::TaggedSymbol,
160
+ value:
161
+ Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Value
162
+ }
163
+ )
164
+ end
165
+ def to_hash
166
+ end
167
+
168
+ class Filters < Lithic::Internal::Type::BaseModel
169
+ OrHash =
170
+ T.type_alias do
171
+ T.any(
172
+ Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters,
173
+ Lithic::Internal::AnyHash
174
+ )
175
+ end
176
+
177
+ # ISO-3166-1 alpha-3 Country Codes to exclude from the velocity calculation.
178
+ # Transactions matching any of the provided will be excluded from the calculated
179
+ # velocity.
180
+ sig { returns(T.nilable(T::Array[String])) }
181
+ attr_accessor :exclude_countries
182
+
183
+ # Merchant Category Codes to exclude from the velocity calculation. Transactions
184
+ # matching this MCC will be excluded from the calculated velocity.
185
+ sig { returns(T.nilable(T::Array[String])) }
186
+ attr_accessor :exclude_mccs
187
+
188
+ # ISO-3166-1 alpha-3 Country Codes to include in the velocity calculation.
189
+ # Transactions not matching any of the provided will not be included in the
190
+ # calculated velocity.
191
+ sig { returns(T.nilable(T::Array[String])) }
192
+ attr_accessor :include_countries
193
+
194
+ # Merchant Category Codes to include in the velocity calculation. Transactions not
195
+ # matching this MCC will not be included in the calculated velocity.
196
+ sig { returns(T.nilable(T::Array[String])) }
197
+ attr_accessor :include_mccs
198
+
199
+ # PAN entry modes to include in the velocity calculation. Transactions not
200
+ # matching any of the provided will not be included in the calculated velocity.
201
+ sig do
202
+ returns(
203
+ T.nilable(
204
+ T::Array[
205
+ Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol
206
+ ]
207
+ )
208
+ )
209
+ end
210
+ attr_accessor :include_pan_entry_modes
211
+
212
+ sig do
213
+ params(
214
+ exclude_countries: T.nilable(T::Array[String]),
215
+ exclude_mccs: T.nilable(T::Array[String]),
216
+ include_countries: T.nilable(T::Array[String]),
217
+ include_mccs: T.nilable(T::Array[String]),
218
+ include_pan_entry_modes:
219
+ T.nilable(
220
+ T::Array[
221
+ Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::OrSymbol
222
+ ]
223
+ )
224
+ ).returns(T.attached_class)
225
+ end
226
+ def self.new(
227
+ # ISO-3166-1 alpha-3 Country Codes to exclude from the velocity calculation.
228
+ # Transactions matching any of the provided will be excluded from the calculated
229
+ # velocity.
230
+ exclude_countries: nil,
231
+ # Merchant Category Codes to exclude from the velocity calculation. Transactions
232
+ # matching this MCC will be excluded from the calculated velocity.
233
+ exclude_mccs: nil,
234
+ # ISO-3166-1 alpha-3 Country Codes to include in the velocity calculation.
235
+ # Transactions not matching any of the provided will not be included in the
236
+ # calculated velocity.
237
+ include_countries: nil,
238
+ # Merchant Category Codes to include in the velocity calculation. Transactions not
239
+ # matching this MCC will not be included in the calculated velocity.
240
+ include_mccs: nil,
241
+ # PAN entry modes to include in the velocity calculation. Transactions not
242
+ # matching any of the provided will not be included in the calculated velocity.
243
+ include_pan_entry_modes: nil
244
+ )
245
+ end
246
+
247
+ sig do
248
+ override.returns(
249
+ {
250
+ exclude_countries: T.nilable(T::Array[String]),
251
+ exclude_mccs: T.nilable(T::Array[String]),
252
+ include_countries: T.nilable(T::Array[String]),
253
+ include_mccs: T.nilable(T::Array[String]),
254
+ include_pan_entry_modes:
255
+ T.nilable(
256
+ T::Array[
257
+ Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol
258
+ ]
259
+ )
260
+ }
261
+ )
262
+ end
263
+ def to_hash
264
+ end
265
+
266
+ module IncludePanEntryMode
267
+ extend Lithic::Internal::Type::Enum
268
+
269
+ TaggedSymbol =
270
+ T.type_alias do
271
+ T.all(
272
+ Symbol,
273
+ Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode
274
+ )
275
+ end
276
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
277
+
278
+ AUTO_ENTRY =
279
+ T.let(
280
+ :AUTO_ENTRY,
281
+ Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol
282
+ )
283
+ BAR_CODE =
284
+ T.let(
285
+ :BAR_CODE,
286
+ Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol
287
+ )
288
+ CONTACTLESS =
289
+ T.let(
290
+ :CONTACTLESS,
291
+ Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol
292
+ )
293
+ CREDENTIAL_ON_FILE =
294
+ T.let(
295
+ :CREDENTIAL_ON_FILE,
296
+ Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol
297
+ )
298
+ ECOMMERCE =
299
+ T.let(
300
+ :ECOMMERCE,
301
+ Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol
302
+ )
303
+ ERROR_KEYED =
304
+ T.let(
305
+ :ERROR_KEYED,
306
+ Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol
307
+ )
308
+ ERROR_MAGNETIC_STRIPE =
309
+ T.let(
310
+ :ERROR_MAGNETIC_STRIPE,
311
+ Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol
312
+ )
313
+ ICC =
314
+ T.let(
315
+ :ICC,
316
+ Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol
317
+ )
318
+ KEY_ENTERED =
319
+ T.let(
320
+ :KEY_ENTERED,
321
+ Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol
322
+ )
323
+ MAGNETIC_STRIPE =
324
+ T.let(
325
+ :MAGNETIC_STRIPE,
326
+ Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol
327
+ )
328
+ MANUAL =
329
+ T.let(
330
+ :MANUAL,
331
+ Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol
332
+ )
333
+ OCR =
334
+ T.let(
335
+ :OCR,
336
+ Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol
337
+ )
338
+ SECURE_CARDLESS =
339
+ T.let(
340
+ :SECURE_CARDLESS,
341
+ Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol
342
+ )
343
+ UNSPECIFIED =
344
+ T.let(
345
+ :UNSPECIFIED,
346
+ Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol
347
+ )
348
+ UNKNOWN =
349
+ T.let(
350
+ :UNKNOWN,
351
+ Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol
352
+ )
353
+
354
+ sig do
355
+ override.returns(
356
+ T::Array[
357
+ Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::IncludePanEntryMode::TaggedSymbol
358
+ ]
359
+ )
360
+ end
361
+ def self.values
362
+ end
363
+ end
364
+ end
365
+
366
+ # The scope the velocity is calculated for
367
+ module Scope
368
+ extend Lithic::Internal::Type::Enum
369
+
370
+ TaggedSymbol =
371
+ T.type_alias do
372
+ T.all(
373
+ Symbol,
374
+ Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Scope
375
+ )
376
+ end
377
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
378
+
379
+ CARD =
380
+ T.let(
381
+ :CARD,
382
+ Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Scope::TaggedSymbol
383
+ )
384
+ ACCOUNT =
385
+ T.let(
386
+ :ACCOUNT,
387
+ Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Scope::TaggedSymbol
388
+ )
389
+
390
+ sig do
391
+ override.returns(
392
+ T::Array[
393
+ Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Scope::TaggedSymbol
394
+ ]
395
+ )
396
+ end
397
+ def self.values
398
+ end
399
+ end
400
+
401
+ class Value < Lithic::Internal::Type::BaseModel
402
+ OrHash =
403
+ T.type_alias do
404
+ T.any(
405
+ Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Value,
406
+ Lithic::Internal::AnyHash
407
+ )
408
+ end
409
+
410
+ # Amount (in cents) for the given Auth Rule that is used as input for calculating
411
+ # the rule. For Velocity Limit rules this would be the calculated Velocity. For
412
+ # Conditional Rules using CARD*TRANSACTION_COUNT*\* this will be 0
413
+ sig { returns(Integer) }
414
+ attr_accessor :amount
415
+
416
+ # Number of velocity impacting transactions matching the given scope, period and
417
+ # filters
418
+ sig { returns(Integer) }
419
+ attr_accessor :count
420
+
421
+ sig do
422
+ params(amount: Integer, count: Integer).returns(T.attached_class)
423
+ end
424
+ def self.new(
425
+ # Amount (in cents) for the given Auth Rule that is used as input for calculating
426
+ # the rule. For Velocity Limit rules this would be the calculated Velocity. For
427
+ # Conditional Rules using CARD*TRANSACTION_COUNT*\* this will be 0
428
+ amount:,
429
+ # Number of velocity impacting transactions matching the given scope, period and
430
+ # filters
431
+ count:
432
+ )
433
+ end
434
+
435
+ sig { override.returns({ amount: Integer, count: Integer }) }
436
+ def to_hash
437
+ end
438
+ end
439
+ end
440
+ end
441
+ end
442
+ end
443
+ end
@@ -74,6 +74,11 @@ module Lithic
74
74
  end
75
75
  attr_accessor :event_stream
76
76
 
77
+ # Indicates whether this auth rule is managed by Lithic. If true, the rule cannot
78
+ # be modified or deleted by the user
79
+ sig { returns(T::Boolean) }
80
+ attr_accessor :lithic_managed
81
+
77
82
  # Auth Rule Name
78
83
  sig { returns(T.nilable(String)) }
79
84
  attr_accessor :name
@@ -129,6 +134,7 @@ module Lithic
129
134
  ),
130
135
  event_stream:
131
136
  Lithic::Models::AuthRules::V2RetrieveResponse::EventStream::OrSymbol,
137
+ lithic_managed: T::Boolean,
132
138
  name: T.nilable(String),
133
139
  program_level: T::Boolean,
134
140
  state:
@@ -150,6 +156,9 @@ module Lithic
150
156
  draft_version:,
151
157
  # The event stream during which the rule will be evaluated.
152
158
  event_stream:,
159
+ # Indicates whether this auth rule is managed by Lithic. If true, the rule cannot
160
+ # be modified or deleted by the user
161
+ lithic_managed:,
153
162
  # Auth Rule Name
154
163
  name:,
155
164
  # Whether the Auth Rule applies to all authorizations on the card program.
@@ -188,6 +197,7 @@ module Lithic
188
197
  ),
189
198
  event_stream:
190
199
  Lithic::Models::AuthRules::V2RetrieveResponse::EventStream::TaggedSymbol,
200
+ lithic_managed: T::Boolean,
191
201
  name: T.nilable(String),
192
202
  program_level: T::Boolean,
193
203
  state:
@@ -400,6 +410,8 @@ module Lithic
400
410
  # fee field in the settlement/cardholder billing currency. This is the amount
401
411
  # the issuer should authorize against unless the issuer is paying the acquirer
402
412
  # fee on behalf of the cardholder.
413
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
414
+ # represents the amount of cash being withdrawn or advanced.
403
415
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
404
416
  # given authorization. Scores are on a range of 0-999, with 0 representing the
405
417
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -513,6 +525,8 @@ module Lithic
513
525
  # fee field in the settlement/cardholder billing currency. This is the amount
514
526
  # the issuer should authorize against unless the issuer is paying the acquirer
515
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.
516
530
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
517
531
  # given authorization. Scores are on a range of 0-999, with 0 representing the
518
532
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -585,6 +599,8 @@ module Lithic
585
599
  # fee field in the settlement/cardholder billing currency. This is the amount
586
600
  # the issuer should authorize against unless the issuer is paying the acquirer
587
601
  # fee on behalf of the cardholder.
602
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
603
+ # represents the amount of cash being withdrawn or advanced.
588
604
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
589
605
  # given authorization. Scores are on a range of 0-999, with 0 representing the
590
606
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -660,6 +676,11 @@ module Lithic
660
676
  :TRANSACTION_AMOUNT,
661
677
  Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
662
678
  )
679
+ CASH_AMOUNT =
680
+ T.let(
681
+ :CASH_AMOUNT,
682
+ Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
683
+ )
663
684
  RISK_SCORE =
664
685
  T.let(
665
686
  :RISK_SCORE,
@@ -1029,6 +1050,8 @@ module Lithic
1029
1050
  # fee field in the settlement/cardholder billing currency. This is the amount
1030
1051
  # the issuer should authorize against unless the issuer is paying the acquirer
1031
1052
  # fee on behalf of the cardholder.
1053
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
1054
+ # represents the amount of cash being withdrawn or advanced.
1032
1055
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
1033
1056
  # given authorization. Scores are on a range of 0-999, with 0 representing the
1034
1057
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -1142,6 +1165,8 @@ module Lithic
1142
1165
  # fee field in the settlement/cardholder billing currency. This is the amount
1143
1166
  # the issuer should authorize against unless the issuer is paying the acquirer
1144
1167
  # fee on behalf of the cardholder.
1168
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
1169
+ # represents the amount of cash being withdrawn or advanced.
1145
1170
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
1146
1171
  # given authorization. Scores are on a range of 0-999, with 0 representing the
1147
1172
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -1214,6 +1239,8 @@ module Lithic
1214
1239
  # fee field in the settlement/cardholder billing currency. This is the amount
1215
1240
  # the issuer should authorize against unless the issuer is paying the acquirer
1216
1241
  # fee on behalf of the cardholder.
1242
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
1243
+ # represents the amount of cash being withdrawn or advanced.
1217
1244
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
1218
1245
  # given authorization. Scores are on a range of 0-999, with 0 representing the
1219
1246
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -1289,6 +1316,11 @@ module Lithic
1289
1316
  :TRANSACTION_AMOUNT,
1290
1317
  Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1291
1318
  )
1319
+ CASH_AMOUNT =
1320
+ T.let(
1321
+ :CASH_AMOUNT,
1322
+ Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1323
+ )
1292
1324
  RISK_SCORE =
1293
1325
  T.let(
1294
1326
  :RISK_SCORE,
@@ -72,6 +72,11 @@ module Lithic
72
72
  end
73
73
  attr_accessor :event_stream
74
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
+
75
80
  # Auth Rule Name
76
81
  sig { returns(T.nilable(String)) }
77
82
  attr_accessor :name
@@ -127,6 +132,7 @@ module Lithic
127
132
  ),
128
133
  event_stream:
129
134
  Lithic::Models::AuthRules::V2UpdateResponse::EventStream::OrSymbol,
135
+ lithic_managed: T::Boolean,
130
136
  name: T.nilable(String),
131
137
  program_level: T::Boolean,
132
138
  state: Lithic::Models::AuthRules::V2UpdateResponse::State::OrSymbol,
@@ -147,6 +153,9 @@ module Lithic
147
153
  draft_version:,
148
154
  # The event stream during which the rule will be evaluated.
149
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:,
150
159
  # Auth Rule Name
151
160
  name:,
152
161
  # Whether the Auth Rule applies to all authorizations on the card program.
@@ -185,6 +194,7 @@ module Lithic
185
194
  ),
186
195
  event_stream:
187
196
  Lithic::Models::AuthRules::V2UpdateResponse::EventStream::TaggedSymbol,
197
+ lithic_managed: T::Boolean,
188
198
  name: T.nilable(String),
189
199
  program_level: T::Boolean,
190
200
  state:
@@ -397,6 +407,8 @@ module Lithic
397
407
  # fee field in the settlement/cardholder billing currency. This is the amount
398
408
  # the issuer should authorize against unless the issuer is paying the acquirer
399
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.
400
412
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
401
413
  # given authorization. Scores are on a range of 0-999, with 0 representing the
402
414
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -510,6 +522,8 @@ module Lithic
510
522
  # fee field in the settlement/cardholder billing currency. This is the amount
511
523
  # the issuer should authorize against unless the issuer is paying the acquirer
512
524
  # fee on behalf of the cardholder.
525
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
526
+ # represents the amount of cash being withdrawn or advanced.
513
527
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
514
528
  # given authorization. Scores are on a range of 0-999, with 0 representing the
515
529
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -582,6 +596,8 @@ module Lithic
582
596
  # fee field in the settlement/cardholder billing currency. This is the amount
583
597
  # the issuer should authorize against unless the issuer is paying the acquirer
584
598
  # fee on behalf of the cardholder.
599
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
600
+ # represents the amount of cash being withdrawn or advanced.
585
601
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
586
602
  # given authorization. Scores are on a range of 0-999, with 0 representing the
587
603
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -657,6 +673,11 @@ module Lithic
657
673
  :TRANSACTION_AMOUNT,
658
674
  Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
659
675
  )
676
+ CASH_AMOUNT =
677
+ T.let(
678
+ :CASH_AMOUNT,
679
+ Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
680
+ )
660
681
  RISK_SCORE =
661
682
  T.let(
662
683
  :RISK_SCORE,
@@ -1026,6 +1047,8 @@ module Lithic
1026
1047
  # fee field in the settlement/cardholder billing currency. This is the amount
1027
1048
  # the issuer should authorize against unless the issuer is paying the acquirer
1028
1049
  # fee on behalf of the cardholder.
1050
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
1051
+ # represents the amount of cash being withdrawn or advanced.
1029
1052
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
1030
1053
  # given authorization. Scores are on a range of 0-999, with 0 representing the
1031
1054
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -1139,6 +1162,8 @@ module Lithic
1139
1162
  # fee field in the settlement/cardholder billing currency. This is the amount
1140
1163
  # the issuer should authorize against unless the issuer is paying the acquirer
1141
1164
  # fee on behalf of the cardholder.
1165
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
1166
+ # represents the amount of cash being withdrawn or advanced.
1142
1167
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
1143
1168
  # given authorization. Scores are on a range of 0-999, with 0 representing the
1144
1169
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -1211,6 +1236,8 @@ module Lithic
1211
1236
  # fee field in the settlement/cardholder billing currency. This is the amount
1212
1237
  # the issuer should authorize against unless the issuer is paying the acquirer
1213
1238
  # fee on behalf of the cardholder.
1239
+ # - `CASH_AMOUNT`: The cash amount of the transaction in minor units (cents). This
1240
+ # represents the amount of cash being withdrawn or advanced.
1214
1241
  # - `RISK_SCORE`: Network-provided score assessing risk level associated with a
1215
1242
  # given authorization. Scores are on a range of 0-999, with 0 representing the
1216
1243
  # lowest risk and 999 representing the highest risk. For Visa transactions,
@@ -1286,6 +1313,11 @@ module Lithic
1286
1313
  :TRANSACTION_AMOUNT,
1287
1314
  Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1288
1315
  )
1316
+ CASH_AMOUNT =
1317
+ T.let(
1318
+ :CASH_AMOUNT,
1319
+ Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::ConditionalAuthorizationActionParameters::Condition::Attribute::TaggedSymbol
1320
+ )
1289
1321
  RISK_SCORE =
1290
1322
  T.let(
1291
1323
  :RISK_SCORE,