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
@@ -22,6 +22,8 @@ module Lithic
22
22
  end
23
23
  attr_writer :filters
24
24
 
25
+ # DEPRECATED: This has been deprecated in favor of the Trailing Window Objects
26
+ #
25
27
  # The size of the trailing window to calculate Spend Velocity over in seconds. The
26
28
  # minimum value is 10 seconds, and the maximum value is 2678400 seconds (31 days).
27
29
  sig do
@@ -39,6 +41,7 @@ module Lithic
39
41
  end
40
42
  attr_accessor :period
41
43
 
44
+ # The scope the velocity is calculated for
42
45
  sig { returns(Lithic::AuthRules::VelocityLimitParams::Scope::OrSymbol) }
43
46
  attr_accessor :scope
44
47
 
@@ -76,9 +79,12 @@ module Lithic
76
79
  end
77
80
  def self.new(
78
81
  filters:,
82
+ # DEPRECATED: This has been deprecated in favor of the Trailing Window Objects
83
+ #
79
84
  # The size of the trailing window to calculate Spend Velocity over in seconds. The
80
85
  # minimum value is 10 seconds, and the maximum value is 2678400 seconds (31 days).
81
86
  period:,
87
+ # The scope the velocity is calculated for
82
88
  scope:,
83
89
  # The maximum amount of spend velocity allowed in the period in minor units (the
84
90
  # smallest unit of a currency, e.g. cents for USD). Transactions exceeding this
@@ -147,12 +153,31 @@ module Lithic
147
153
  sig { returns(T.nilable(T::Array[String])) }
148
154
  attr_accessor :include_mccs
149
155
 
156
+ # PAN entry modes to include in the velocity calculation. Transactions not
157
+ # matching any of the provided will not be included in the calculated velocity.
158
+ sig do
159
+ returns(
160
+ T.nilable(
161
+ T::Array[
162
+ Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::OrSymbol
163
+ ]
164
+ )
165
+ )
166
+ end
167
+ attr_accessor :include_pan_entry_modes
168
+
150
169
  sig do
151
170
  params(
152
171
  exclude_countries: T.nilable(T::Array[String]),
153
172
  exclude_mccs: T.nilable(T::Array[String]),
154
173
  include_countries: T.nilable(T::Array[String]),
155
- include_mccs: T.nilable(T::Array[String])
174
+ include_mccs: T.nilable(T::Array[String]),
175
+ include_pan_entry_modes:
176
+ T.nilable(
177
+ T::Array[
178
+ Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::OrSymbol
179
+ ]
180
+ )
156
181
  ).returns(T.attached_class)
157
182
  end
158
183
  def self.new(
@@ -169,7 +194,10 @@ module Lithic
169
194
  include_countries: nil,
170
195
  # Merchant Category Codes to include in the velocity calculation. Transactions not
171
196
  # matching this MCC will not be included in the calculated velocity.
172
- include_mccs: nil
197
+ include_mccs: nil,
198
+ # PAN entry modes to include in the velocity calculation. Transactions not
199
+ # matching any of the provided will not be included in the calculated velocity.
200
+ include_pan_entry_modes: nil
173
201
  )
174
202
  end
175
203
 
@@ -179,14 +207,120 @@ module Lithic
179
207
  exclude_countries: T.nilable(T::Array[String]),
180
208
  exclude_mccs: T.nilable(T::Array[String]),
181
209
  include_countries: T.nilable(T::Array[String]),
182
- include_mccs: T.nilable(T::Array[String])
210
+ include_mccs: T.nilable(T::Array[String]),
211
+ include_pan_entry_modes:
212
+ T.nilable(
213
+ T::Array[
214
+ Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::OrSymbol
215
+ ]
216
+ )
183
217
  }
184
218
  )
185
219
  end
186
220
  def to_hash
187
221
  end
222
+
223
+ module IncludePanEntryMode
224
+ extend Lithic::Internal::Type::Enum
225
+
226
+ TaggedSymbol =
227
+ T.type_alias do
228
+ T.all(
229
+ Symbol,
230
+ Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode
231
+ )
232
+ end
233
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
234
+
235
+ AUTO_ENTRY =
236
+ T.let(
237
+ :AUTO_ENTRY,
238
+ Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol
239
+ )
240
+ BAR_CODE =
241
+ T.let(
242
+ :BAR_CODE,
243
+ Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol
244
+ )
245
+ CONTACTLESS =
246
+ T.let(
247
+ :CONTACTLESS,
248
+ Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol
249
+ )
250
+ CREDENTIAL_ON_FILE =
251
+ T.let(
252
+ :CREDENTIAL_ON_FILE,
253
+ Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol
254
+ )
255
+ ECOMMERCE =
256
+ T.let(
257
+ :ECOMMERCE,
258
+ Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol
259
+ )
260
+ ERROR_KEYED =
261
+ T.let(
262
+ :ERROR_KEYED,
263
+ Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol
264
+ )
265
+ ERROR_MAGNETIC_STRIPE =
266
+ T.let(
267
+ :ERROR_MAGNETIC_STRIPE,
268
+ Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol
269
+ )
270
+ ICC =
271
+ T.let(
272
+ :ICC,
273
+ Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol
274
+ )
275
+ KEY_ENTERED =
276
+ T.let(
277
+ :KEY_ENTERED,
278
+ Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol
279
+ )
280
+ MAGNETIC_STRIPE =
281
+ T.let(
282
+ :MAGNETIC_STRIPE,
283
+ Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol
284
+ )
285
+ MANUAL =
286
+ T.let(
287
+ :MANUAL,
288
+ Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol
289
+ )
290
+ OCR =
291
+ T.let(
292
+ :OCR,
293
+ Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol
294
+ )
295
+ SECURE_CARDLESS =
296
+ T.let(
297
+ :SECURE_CARDLESS,
298
+ Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol
299
+ )
300
+ UNSPECIFIED =
301
+ T.let(
302
+ :UNSPECIFIED,
303
+ Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol
304
+ )
305
+ UNKNOWN =
306
+ T.let(
307
+ :UNKNOWN,
308
+ Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol
309
+ )
310
+
311
+ sig do
312
+ override.returns(
313
+ T::Array[
314
+ Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode::TaggedSymbol
315
+ ]
316
+ )
317
+ end
318
+ def self.values
319
+ end
320
+ end
188
321
  end
189
322
 
323
+ # The scope the velocity is calculated for
190
324
  module Scope
191
325
  extend Lithic::Internal::Type::Enum
192
326
 
@@ -3,6 +3,8 @@
3
3
  module Lithic
4
4
  module Models
5
5
  module AuthRules
6
+ # DEPRECATED: This has been deprecated in favor of the Trailing Window Objects
7
+ #
6
8
  # The size of the trailing window to calculate Spend Velocity over in seconds. The
7
9
  # minimum value is 10 seconds, and the maximum value is 2678400 seconds (31 days).
8
10
  module VelocityLimitParamsPeriodWindow
@@ -21,6 +23,8 @@ module Lithic
21
23
  )
22
24
  end
23
25
 
26
+ # DEPRECATED: This has been deprecated in favor of the other Fixed Window Objects
27
+ #
24
28
  # The window of time to calculate Spend Velocity over.
25
29
  #
26
30
  # - `DAY`: Velocity over the current day since midnight Eastern Time.
@@ -308,6 +308,32 @@ module Lithic
308
308
  )
309
309
  end
310
310
 
311
+ # Fetches the current calculated Feature values for the given Auth Rule
312
+ #
313
+ # This only calculates the features for the active version.
314
+ #
315
+ # - VelocityLimit Rules calculates the current Velocity Feature data. This
316
+ # requires a `card_token` or `account_token` matching what the rule is Scoped
317
+ # to.
318
+ # - ConditionalBlock Rules calculates the CARD*TRANSACTION_COUNT*\* attributes on
319
+ # the rule. This requires a `card_token`
320
+ sig do
321
+ params(
322
+ auth_rule_token: String,
323
+ account_token: String,
324
+ card_token: String,
325
+ request_options: Lithic::RequestOptions::OrHash
326
+ ).returns(Lithic::Models::AuthRules::V2RetrieveFeaturesResponse)
327
+ end
328
+ def retrieve_features(
329
+ # Globally unique identifier for the Auth Rule.
330
+ auth_rule_token,
331
+ account_token: nil,
332
+ card_token: nil,
333
+ request_options: {}
334
+ )
335
+ end
336
+
311
337
  # Retrieves a performance report for an Auth rule containing daily statistics and
312
338
  # evaluation outcomes.
313
339
  #
@@ -10,6 +10,7 @@ module Lithic
10
10
  current_version: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion?,
11
11
  draft_version: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion?,
12
12
  event_stream: Lithic::Models::AuthRules::V2ApplyResponse::event_stream,
13
+ lithic_managed: bool,
13
14
  name: String?,
14
15
  program_level: bool,
15
16
  state: Lithic::Models::AuthRules::V2ApplyResponse::state,
@@ -32,6 +33,8 @@ module Lithic
32
33
 
33
34
  attr_accessor event_stream: Lithic::Models::AuthRules::V2ApplyResponse::event_stream
34
35
 
36
+ attr_accessor lithic_managed: bool
37
+
35
38
  attr_accessor name: String?
36
39
 
37
40
  attr_accessor program_level: bool
@@ -52,6 +55,7 @@ module Lithic
52
55
  current_version: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion?,
53
56
  draft_version: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion?,
54
57
  event_stream: Lithic::Models::AuthRules::V2ApplyResponse::event_stream,
58
+ lithic_managed: bool,
55
59
  name: String?,
56
60
  program_level: bool,
57
61
  state: Lithic::Models::AuthRules::V2ApplyResponse::state,
@@ -67,6 +71,7 @@ module Lithic
67
71
  current_version: Lithic::Models::AuthRules::V2ApplyResponse::CurrentVersion?,
68
72
  draft_version: Lithic::Models::AuthRules::V2ApplyResponse::DraftVersion?,
69
73
  event_stream: Lithic::Models::AuthRules::V2ApplyResponse::event_stream,
74
+ lithic_managed: bool,
70
75
  name: String?,
71
76
  program_level: bool,
72
77
  state: Lithic::Models::AuthRules::V2ApplyResponse::state,
@@ -184,6 +189,7 @@ module Lithic
184
189
  | :LIABILITY_SHIFT
185
190
  | :PAN_ENTRY_MODE
186
191
  | :TRANSACTION_AMOUNT
192
+ | :CASH_AMOUNT
187
193
  | :RISK_SCORE
188
194
  | :CARD_TRANSACTION_COUNT_15M
189
195
  | :CARD_TRANSACTION_COUNT_1H
@@ -205,6 +211,7 @@ module Lithic
205
211
  LIABILITY_SHIFT: :LIABILITY_SHIFT
206
212
  PAN_ENTRY_MODE: :PAN_ENTRY_MODE
207
213
  TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT
214
+ CASH_AMOUNT: :CASH_AMOUNT
208
215
  RISK_SCORE: :RISK_SCORE
209
216
  CARD_TRANSACTION_COUNT_15_M: :CARD_TRANSACTION_COUNT_15M
210
217
  CARD_TRANSACTION_COUNT_1_H: :CARD_TRANSACTION_COUNT_1H
@@ -373,6 +380,7 @@ module Lithic
373
380
  | :LIABILITY_SHIFT
374
381
  | :PAN_ENTRY_MODE
375
382
  | :TRANSACTION_AMOUNT
383
+ | :CASH_AMOUNT
376
384
  | :RISK_SCORE
377
385
  | :CARD_TRANSACTION_COUNT_15M
378
386
  | :CARD_TRANSACTION_COUNT_1H
@@ -394,6 +402,7 @@ module Lithic
394
402
  LIABILITY_SHIFT: :LIABILITY_SHIFT
395
403
  PAN_ENTRY_MODE: :PAN_ENTRY_MODE
396
404
  TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT
405
+ CASH_AMOUNT: :CASH_AMOUNT
397
406
  RISK_SCORE: :RISK_SCORE
398
407
  CARD_TRANSACTION_COUNT_15_M: :CARD_TRANSACTION_COUNT_15M
399
408
  CARD_TRANSACTION_COUNT_1_H: :CARD_TRANSACTION_COUNT_1H
@@ -181,6 +181,7 @@ module Lithic
181
181
  | :LIABILITY_SHIFT
182
182
  | :PAN_ENTRY_MODE
183
183
  | :TRANSACTION_AMOUNT
184
+ | :CASH_AMOUNT
184
185
  | :RISK_SCORE
185
186
  | :CARD_TRANSACTION_COUNT_15M
186
187
  | :CARD_TRANSACTION_COUNT_1H
@@ -202,6 +203,7 @@ module Lithic
202
203
  LIABILITY_SHIFT: :LIABILITY_SHIFT
203
204
  PAN_ENTRY_MODE: :PAN_ENTRY_MODE
204
205
  TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT
206
+ CASH_AMOUNT: :CASH_AMOUNT
205
207
  RISK_SCORE: :RISK_SCORE
206
208
  CARD_TRANSACTION_COUNT_15_M: :CARD_TRANSACTION_COUNT_15M
207
209
  CARD_TRANSACTION_COUNT_1_H: :CARD_TRANSACTION_COUNT_1H
@@ -10,6 +10,7 @@ module Lithic
10
10
  current_version: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion?,
11
11
  draft_version: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion?,
12
12
  event_stream: Lithic::Models::AuthRules::V2CreateResponse::event_stream,
13
+ lithic_managed: bool,
13
14
  name: String?,
14
15
  program_level: bool,
15
16
  state: Lithic::Models::AuthRules::V2CreateResponse::state,
@@ -32,6 +33,8 @@ module Lithic
32
33
 
33
34
  attr_accessor event_stream: Lithic::Models::AuthRules::V2CreateResponse::event_stream
34
35
 
36
+ attr_accessor lithic_managed: bool
37
+
35
38
  attr_accessor name: String?
36
39
 
37
40
  attr_accessor program_level: bool
@@ -52,6 +55,7 @@ module Lithic
52
55
  current_version: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion?,
53
56
  draft_version: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion?,
54
57
  event_stream: Lithic::Models::AuthRules::V2CreateResponse::event_stream,
58
+ lithic_managed: bool,
55
59
  name: String?,
56
60
  program_level: bool,
57
61
  state: Lithic::Models::AuthRules::V2CreateResponse::state,
@@ -67,6 +71,7 @@ module Lithic
67
71
  current_version: Lithic::Models::AuthRules::V2CreateResponse::CurrentVersion?,
68
72
  draft_version: Lithic::Models::AuthRules::V2CreateResponse::DraftVersion?,
69
73
  event_stream: Lithic::Models::AuthRules::V2CreateResponse::event_stream,
74
+ lithic_managed: bool,
70
75
  name: String?,
71
76
  program_level: bool,
72
77
  state: Lithic::Models::AuthRules::V2CreateResponse::state,
@@ -184,6 +189,7 @@ module Lithic
184
189
  | :LIABILITY_SHIFT
185
190
  | :PAN_ENTRY_MODE
186
191
  | :TRANSACTION_AMOUNT
192
+ | :CASH_AMOUNT
187
193
  | :RISK_SCORE
188
194
  | :CARD_TRANSACTION_COUNT_15M
189
195
  | :CARD_TRANSACTION_COUNT_1H
@@ -205,6 +211,7 @@ module Lithic
205
211
  LIABILITY_SHIFT: :LIABILITY_SHIFT
206
212
  PAN_ENTRY_MODE: :PAN_ENTRY_MODE
207
213
  TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT
214
+ CASH_AMOUNT: :CASH_AMOUNT
208
215
  RISK_SCORE: :RISK_SCORE
209
216
  CARD_TRANSACTION_COUNT_15_M: :CARD_TRANSACTION_COUNT_15M
210
217
  CARD_TRANSACTION_COUNT_1_H: :CARD_TRANSACTION_COUNT_1H
@@ -373,6 +380,7 @@ module Lithic
373
380
  | :LIABILITY_SHIFT
374
381
  | :PAN_ENTRY_MODE
375
382
  | :TRANSACTION_AMOUNT
383
+ | :CASH_AMOUNT
376
384
  | :RISK_SCORE
377
385
  | :CARD_TRANSACTION_COUNT_15M
378
386
  | :CARD_TRANSACTION_COUNT_1H
@@ -394,6 +402,7 @@ module Lithic
394
402
  LIABILITY_SHIFT: :LIABILITY_SHIFT
395
403
  PAN_ENTRY_MODE: :PAN_ENTRY_MODE
396
404
  TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT
405
+ CASH_AMOUNT: :CASH_AMOUNT
397
406
  RISK_SCORE: :RISK_SCORE
398
407
  CARD_TRANSACTION_COUNT_15_M: :CARD_TRANSACTION_COUNT_15M
399
408
  CARD_TRANSACTION_COUNT_1_H: :CARD_TRANSACTION_COUNT_1H
@@ -110,6 +110,7 @@ module Lithic
110
110
  | :LIABILITY_SHIFT
111
111
  | :PAN_ENTRY_MODE
112
112
  | :TRANSACTION_AMOUNT
113
+ | :CASH_AMOUNT
113
114
  | :RISK_SCORE
114
115
  | :CARD_TRANSACTION_COUNT_15M
115
116
  | :CARD_TRANSACTION_COUNT_1H
@@ -131,6 +132,7 @@ module Lithic
131
132
  LIABILITY_SHIFT: :LIABILITY_SHIFT
132
133
  PAN_ENTRY_MODE: :PAN_ENTRY_MODE
133
134
  TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT
135
+ CASH_AMOUNT: :CASH_AMOUNT
134
136
  RISK_SCORE: :RISK_SCORE
135
137
  CARD_TRANSACTION_COUNT_15_M: :CARD_TRANSACTION_COUNT_15M
136
138
  CARD_TRANSACTION_COUNT_1_H: :CARD_TRANSACTION_COUNT_1H
@@ -10,6 +10,7 @@ module Lithic
10
10
  current_version: Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion?,
11
11
  draft_version: Lithic::Models::AuthRules::V2DraftResponse::DraftVersion?,
12
12
  event_stream: Lithic::Models::AuthRules::V2DraftResponse::event_stream,
13
+ lithic_managed: bool,
13
14
  name: String?,
14
15
  program_level: bool,
15
16
  state: Lithic::Models::AuthRules::V2DraftResponse::state,
@@ -32,6 +33,8 @@ module Lithic
32
33
 
33
34
  attr_accessor event_stream: Lithic::Models::AuthRules::V2DraftResponse::event_stream
34
35
 
36
+ attr_accessor lithic_managed: bool
37
+
35
38
  attr_accessor name: String?
36
39
 
37
40
  attr_accessor program_level: bool
@@ -52,6 +55,7 @@ module Lithic
52
55
  current_version: Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion?,
53
56
  draft_version: Lithic::Models::AuthRules::V2DraftResponse::DraftVersion?,
54
57
  event_stream: Lithic::Models::AuthRules::V2DraftResponse::event_stream,
58
+ lithic_managed: bool,
55
59
  name: String?,
56
60
  program_level: bool,
57
61
  state: Lithic::Models::AuthRules::V2DraftResponse::state,
@@ -67,6 +71,7 @@ module Lithic
67
71
  current_version: Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion?,
68
72
  draft_version: Lithic::Models::AuthRules::V2DraftResponse::DraftVersion?,
69
73
  event_stream: Lithic::Models::AuthRules::V2DraftResponse::event_stream,
74
+ lithic_managed: bool,
70
75
  name: String?,
71
76
  program_level: bool,
72
77
  state: Lithic::Models::AuthRules::V2DraftResponse::state,
@@ -184,6 +189,7 @@ module Lithic
184
189
  | :LIABILITY_SHIFT
185
190
  | :PAN_ENTRY_MODE
186
191
  | :TRANSACTION_AMOUNT
192
+ | :CASH_AMOUNT
187
193
  | :RISK_SCORE
188
194
  | :CARD_TRANSACTION_COUNT_15M
189
195
  | :CARD_TRANSACTION_COUNT_1H
@@ -205,6 +211,7 @@ module Lithic
205
211
  LIABILITY_SHIFT: :LIABILITY_SHIFT
206
212
  PAN_ENTRY_MODE: :PAN_ENTRY_MODE
207
213
  TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT
214
+ CASH_AMOUNT: :CASH_AMOUNT
208
215
  RISK_SCORE: :RISK_SCORE
209
216
  CARD_TRANSACTION_COUNT_15_M: :CARD_TRANSACTION_COUNT_15M
210
217
  CARD_TRANSACTION_COUNT_1_H: :CARD_TRANSACTION_COUNT_1H
@@ -373,6 +380,7 @@ module Lithic
373
380
  | :LIABILITY_SHIFT
374
381
  | :PAN_ENTRY_MODE
375
382
  | :TRANSACTION_AMOUNT
383
+ | :CASH_AMOUNT
376
384
  | :RISK_SCORE
377
385
  | :CARD_TRANSACTION_COUNT_15M
378
386
  | :CARD_TRANSACTION_COUNT_1H
@@ -394,6 +402,7 @@ module Lithic
394
402
  LIABILITY_SHIFT: :LIABILITY_SHIFT
395
403
  PAN_ENTRY_MODE: :PAN_ENTRY_MODE
396
404
  TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT
405
+ CASH_AMOUNT: :CASH_AMOUNT
397
406
  RISK_SCORE: :RISK_SCORE
398
407
  CARD_TRANSACTION_COUNT_15_M: :CARD_TRANSACTION_COUNT_15M
399
408
  CARD_TRANSACTION_COUNT_1_H: :CARD_TRANSACTION_COUNT_1H
@@ -10,6 +10,7 @@ module Lithic
10
10
  current_version: Lithic::Models::AuthRules::V2ListResponse::CurrentVersion?,
11
11
  draft_version: Lithic::Models::AuthRules::V2ListResponse::DraftVersion?,
12
12
  event_stream: Lithic::Models::AuthRules::V2ListResponse::event_stream,
13
+ lithic_managed: bool,
13
14
  name: String?,
14
15
  program_level: bool,
15
16
  state: Lithic::Models::AuthRules::V2ListResponse::state,
@@ -32,6 +33,8 @@ module Lithic
32
33
 
33
34
  attr_accessor event_stream: Lithic::Models::AuthRules::V2ListResponse::event_stream
34
35
 
36
+ attr_accessor lithic_managed: bool
37
+
35
38
  attr_accessor name: String?
36
39
 
37
40
  attr_accessor program_level: bool
@@ -52,6 +55,7 @@ module Lithic
52
55
  current_version: Lithic::Models::AuthRules::V2ListResponse::CurrentVersion?,
53
56
  draft_version: Lithic::Models::AuthRules::V2ListResponse::DraftVersion?,
54
57
  event_stream: Lithic::Models::AuthRules::V2ListResponse::event_stream,
58
+ lithic_managed: bool,
55
59
  name: String?,
56
60
  program_level: bool,
57
61
  state: Lithic::Models::AuthRules::V2ListResponse::state,
@@ -67,6 +71,7 @@ module Lithic
67
71
  current_version: Lithic::Models::AuthRules::V2ListResponse::CurrentVersion?,
68
72
  draft_version: Lithic::Models::AuthRules::V2ListResponse::DraftVersion?,
69
73
  event_stream: Lithic::Models::AuthRules::V2ListResponse::event_stream,
74
+ lithic_managed: bool,
70
75
  name: String?,
71
76
  program_level: bool,
72
77
  state: Lithic::Models::AuthRules::V2ListResponse::state,
@@ -184,6 +189,7 @@ module Lithic
184
189
  | :LIABILITY_SHIFT
185
190
  | :PAN_ENTRY_MODE
186
191
  | :TRANSACTION_AMOUNT
192
+ | :CASH_AMOUNT
187
193
  | :RISK_SCORE
188
194
  | :CARD_TRANSACTION_COUNT_15M
189
195
  | :CARD_TRANSACTION_COUNT_1H
@@ -205,6 +211,7 @@ module Lithic
205
211
  LIABILITY_SHIFT: :LIABILITY_SHIFT
206
212
  PAN_ENTRY_MODE: :PAN_ENTRY_MODE
207
213
  TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT
214
+ CASH_AMOUNT: :CASH_AMOUNT
208
215
  RISK_SCORE: :RISK_SCORE
209
216
  CARD_TRANSACTION_COUNT_15_M: :CARD_TRANSACTION_COUNT_15M
210
217
  CARD_TRANSACTION_COUNT_1_H: :CARD_TRANSACTION_COUNT_1H
@@ -373,6 +380,7 @@ module Lithic
373
380
  | :LIABILITY_SHIFT
374
381
  | :PAN_ENTRY_MODE
375
382
  | :TRANSACTION_AMOUNT
383
+ | :CASH_AMOUNT
376
384
  | :RISK_SCORE
377
385
  | :CARD_TRANSACTION_COUNT_15M
378
386
  | :CARD_TRANSACTION_COUNT_1H
@@ -394,6 +402,7 @@ module Lithic
394
402
  LIABILITY_SHIFT: :LIABILITY_SHIFT
395
403
  PAN_ENTRY_MODE: :PAN_ENTRY_MODE
396
404
  TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT
405
+ CASH_AMOUNT: :CASH_AMOUNT
397
406
  RISK_SCORE: :RISK_SCORE
398
407
  CARD_TRANSACTION_COUNT_15_M: :CARD_TRANSACTION_COUNT_15M
399
408
  CARD_TRANSACTION_COUNT_1_H: :CARD_TRANSACTION_COUNT_1H
@@ -10,6 +10,7 @@ module Lithic
10
10
  current_version: Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion?,
11
11
  draft_version: Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion?,
12
12
  event_stream: Lithic::Models::AuthRules::V2PromoteResponse::event_stream,
13
+ lithic_managed: bool,
13
14
  name: String?,
14
15
  program_level: bool,
15
16
  state: Lithic::Models::AuthRules::V2PromoteResponse::state,
@@ -32,6 +33,8 @@ module Lithic
32
33
 
33
34
  attr_accessor event_stream: Lithic::Models::AuthRules::V2PromoteResponse::event_stream
34
35
 
36
+ attr_accessor lithic_managed: bool
37
+
35
38
  attr_accessor name: String?
36
39
 
37
40
  attr_accessor program_level: bool
@@ -52,6 +55,7 @@ module Lithic
52
55
  current_version: Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion?,
53
56
  draft_version: Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion?,
54
57
  event_stream: Lithic::Models::AuthRules::V2PromoteResponse::event_stream,
58
+ lithic_managed: bool,
55
59
  name: String?,
56
60
  program_level: bool,
57
61
  state: Lithic::Models::AuthRules::V2PromoteResponse::state,
@@ -67,6 +71,7 @@ module Lithic
67
71
  current_version: Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion?,
68
72
  draft_version: Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion?,
69
73
  event_stream: Lithic::Models::AuthRules::V2PromoteResponse::event_stream,
74
+ lithic_managed: bool,
70
75
  name: String?,
71
76
  program_level: bool,
72
77
  state: Lithic::Models::AuthRules::V2PromoteResponse::state,
@@ -184,6 +189,7 @@ module Lithic
184
189
  | :LIABILITY_SHIFT
185
190
  | :PAN_ENTRY_MODE
186
191
  | :TRANSACTION_AMOUNT
192
+ | :CASH_AMOUNT
187
193
  | :RISK_SCORE
188
194
  | :CARD_TRANSACTION_COUNT_15M
189
195
  | :CARD_TRANSACTION_COUNT_1H
@@ -205,6 +211,7 @@ module Lithic
205
211
  LIABILITY_SHIFT: :LIABILITY_SHIFT
206
212
  PAN_ENTRY_MODE: :PAN_ENTRY_MODE
207
213
  TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT
214
+ CASH_AMOUNT: :CASH_AMOUNT
208
215
  RISK_SCORE: :RISK_SCORE
209
216
  CARD_TRANSACTION_COUNT_15_M: :CARD_TRANSACTION_COUNT_15M
210
217
  CARD_TRANSACTION_COUNT_1_H: :CARD_TRANSACTION_COUNT_1H
@@ -373,6 +380,7 @@ module Lithic
373
380
  | :LIABILITY_SHIFT
374
381
  | :PAN_ENTRY_MODE
375
382
  | :TRANSACTION_AMOUNT
383
+ | :CASH_AMOUNT
376
384
  | :RISK_SCORE
377
385
  | :CARD_TRANSACTION_COUNT_15M
378
386
  | :CARD_TRANSACTION_COUNT_1H
@@ -394,6 +402,7 @@ module Lithic
394
402
  LIABILITY_SHIFT: :LIABILITY_SHIFT
395
403
  PAN_ENTRY_MODE: :PAN_ENTRY_MODE
396
404
  TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT
405
+ CASH_AMOUNT: :CASH_AMOUNT
397
406
  RISK_SCORE: :RISK_SCORE
398
407
  CARD_TRANSACTION_COUNT_15_M: :CARD_TRANSACTION_COUNT_15M
399
408
  CARD_TRANSACTION_COUNT_1_H: :CARD_TRANSACTION_COUNT_1H
@@ -0,0 +1,34 @@
1
+ module Lithic
2
+ module Models
3
+ module AuthRules
4
+ type v2_retrieve_features_params =
5
+ { account_token: String, card_token: String }
6
+ & Lithic::Internal::Type::request_parameters
7
+
8
+ class V2RetrieveFeaturesParams < Lithic::Internal::Type::BaseModel
9
+ extend Lithic::Internal::Type::RequestParameters::Converter
10
+ include Lithic::Internal::Type::RequestParameters
11
+
12
+ attr_reader account_token: String?
13
+
14
+ def account_token=: (String) -> String
15
+
16
+ attr_reader card_token: String?
17
+
18
+ def card_token=: (String) -> String
19
+
20
+ def initialize: (
21
+ ?account_token: String,
22
+ ?card_token: String,
23
+ ?request_options: Lithic::request_opts
24
+ ) -> void
25
+
26
+ def to_hash: -> {
27
+ account_token: String,
28
+ card_token: String,
29
+ request_options: Lithic::RequestOptions
30
+ }
31
+ end
32
+ end
33
+ end
34
+ end