lithic 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +33 -0
  3. data/README.md +10 -1
  4. data/lib/lithic/internal/transport/pooled_net_requester.rb +1 -1
  5. data/lib/lithic/internal/util.rb +1 -1
  6. data/lib/lithic/models/account_holder.rb +14 -5
  7. data/lib/lithic/models/account_holder_create_params.rb +10 -1
  8. data/lib/lithic/models/account_holder_simulate_enrollment_review_params.rb +1 -0
  9. data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +14 -5
  10. data/lib/lithic/models/account_holder_update_params.rb +10 -1
  11. data/lib/lithic/models/account_holder_update_response.rb +14 -5
  12. data/lib/lithic/models/account_holder_updated_webhook_event.rb +10 -1
  13. data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +3 -3
  14. data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +47 -21
  15. data/lib/lithic/models/auth_rules/v2_list_results_params.rb +70 -0
  16. data/lib/lithic/models/auth_rules/v2_list_results_response.rb +740 -0
  17. data/lib/lithic/models/book_transfer_create_params.rb +9 -1
  18. data/lib/lithic/models/card_authorization_approval_request_webhook_event.rb +178 -25
  19. data/lib/lithic/models/kyb.rb +10 -1
  20. data/lib/lithic/models/parsed_webhook_event.rb +10 -1
  21. data/lib/lithic/resources/account_holders.rb +6 -2
  22. data/lib/lithic/resources/auth_rules/v2.rb +42 -0
  23. data/lib/lithic/resources/book_transfers.rb +3 -1
  24. data/lib/lithic/version.rb +1 -1
  25. data/lib/lithic.rb +2 -0
  26. data/rbi/lithic/internal/util.rbi +1 -1
  27. data/rbi/lithic/models/account_holder.rbi +19 -6
  28. data/rbi/lithic/models/account_holder_create_params.rbi +13 -0
  29. data/rbi/lithic/models/account_holder_simulate_enrollment_review_params.rbi +5 -0
  30. data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +19 -6
  31. data/rbi/lithic/models/account_holder_update_params.rbi +13 -0
  32. data/rbi/lithic/models/account_holder_update_response.rbi +19 -6
  33. data/rbi/lithic/models/account_holder_updated_webhook_event.rbi +13 -0
  34. data/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +3 -3
  35. data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +69 -30
  36. data/rbi/lithic/models/auth_rules/v2_list_results_params.rbi +112 -0
  37. data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +1826 -0
  38. data/rbi/lithic/models/book_transfer_create_params.rbi +11 -0
  39. data/rbi/lithic/models/card_authorization_approval_request_webhook_event.rbi +337 -36
  40. data/rbi/lithic/models/kyb.rbi +13 -0
  41. data/rbi/lithic/models/parsed_webhook_event.rbi +13 -0
  42. data/rbi/lithic/resources/account_holders.rbi +8 -0
  43. data/rbi/lithic/resources/auth_rules/v2.rbi +42 -0
  44. data/rbi/lithic/resources/book_transfers.rbi +3 -0
  45. data/sig/lithic/models/account_holder.rbs +7 -0
  46. data/sig/lithic/models/account_holder_create_params.rbs +7 -0
  47. data/sig/lithic/models/account_holder_simulate_enrollment_review_params.rbs +2 -1
  48. data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +7 -0
  49. data/sig/lithic/models/account_holder_update_params.rbs +7 -0
  50. data/sig/lithic/models/account_holder_update_response.rbs +7 -0
  51. data/sig/lithic/models/account_holder_updated_webhook_event.rbs +7 -0
  52. data/sig/lithic/models/auth_rules/v2_list_results_params.rbs +65 -0
  53. data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +752 -0
  54. data/sig/lithic/models/book_transfer_create_params.rbs +7 -0
  55. data/sig/lithic/models/card_authorization_approval_request_webhook_event.rbs +96 -0
  56. data/sig/lithic/models/kyb.rbs +7 -0
  57. data/sig/lithic/models/parsed_webhook_event.rbs +7 -0
  58. data/sig/lithic/resources/account_holders.rbs +2 -0
  59. data/sig/lithic/resources/auth_rules/v2.rbs +10 -0
  60. data/sig/lithic/resources/book_transfers.rbs +1 -0
  61. metadata +8 -2
@@ -167,6 +167,14 @@ module Lithic
167
167
  end
168
168
  attr_writer :individual
169
169
 
170
+ # Only present when user_type == "BUSINESS". 6-digit North American Industry
171
+ # Classification System (NAICS) code for the business.
172
+ sig { returns(T.nilable(String)) }
173
+ attr_reader :naics_code
174
+
175
+ sig { params(naics_code: String).void }
176
+ attr_writer :naics_code
177
+
170
178
  # Only present when user_type == "BUSINESS". User-submitted description of the
171
179
  # business.
172
180
  sig { returns(T.nilable(String)) }
@@ -245,8 +253,8 @@ module Lithic
245
253
  # attribute will be present.
246
254
  #
247
255
  # If the type is "BUSINESS" then the "business_entity", "control_person",
248
- # "beneficial_owner_individuals", "nature_of_business", and "website_url"
249
- # attributes will be present.
256
+ # "beneficial_owner_individuals", "naics_code", "nature_of_business", and
257
+ # "website_url" attributes will be present.
250
258
  sig do
251
259
  returns(
252
260
  T.nilable(
@@ -310,6 +318,7 @@ module Lithic
310
318
  external_id: String,
311
319
  individual:
312
320
  Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual::OrHash,
321
+ naics_code: String,
313
322
  nature_of_business: String,
314
323
  phone_number: String,
315
324
  required_documents: T::Array[Lithic::RequiredDocument::OrHash],
@@ -374,6 +383,9 @@ module Lithic
374
383
  # Only present when user_type == "INDIVIDUAL". Information about the individual
375
384
  # for which the account is being opened and KYC is being run.
376
385
  individual: nil,
386
+ # Only present when user_type == "BUSINESS". 6-digit North American Industry
387
+ # Classification System (NAICS) code for the business.
388
+ naics_code: nil,
377
389
  # Only present when user_type == "BUSINESS". User-submitted description of the
378
390
  # business.
379
391
  nature_of_business: nil,
@@ -397,8 +409,8 @@ module Lithic
397
409
  # attribute will be present.
398
410
  #
399
411
  # If the type is "BUSINESS" then the "business_entity", "control_person",
400
- # "beneficial_owner_individuals", "nature_of_business", and "website_url"
401
- # attributes will be present.
412
+ # "beneficial_owner_individuals", "naics_code", "nature_of_business", and
413
+ # "website_url" attributes will be present.
402
414
  user_type: nil,
403
415
  # Information about the most recent identity verification attempt
404
416
  verification_application: nil,
@@ -428,6 +440,7 @@ module Lithic
428
440
  external_id: String,
429
441
  individual:
430
442
  Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual,
443
+ naics_code: String,
431
444
  nature_of_business: String,
432
445
  phone_number: String,
433
446
  required_documents: T::Array[Lithic::RequiredDocument],
@@ -1286,8 +1299,8 @@ module Lithic
1286
1299
  # attribute will be present.
1287
1300
  #
1288
1301
  # If the type is "BUSINESS" then the "business_entity", "control_person",
1289
- # "beneficial_owner_individuals", "nature_of_business", and "website_url"
1290
- # attributes will be present.
1302
+ # "beneficial_owner_individuals", "naics_code", "nature_of_business", and
1303
+ # "website_url" attributes will be present.
1291
1304
  module UserType
1292
1305
  extend Lithic::Internal::Type::Enum
1293
1306
 
@@ -102,6 +102,14 @@ module Lithic
102
102
  sig { params(external_id: String).void }
103
103
  attr_writer :external_id
104
104
 
105
+ # 6-digit North American Industry Classification System (NAICS) code for the
106
+ # business.
107
+ sig { returns(T.nilable(String)) }
108
+ attr_reader :naics_code
109
+
110
+ sig { params(naics_code: String).void }
111
+ attr_writer :naics_code
112
+
105
113
  # Short description of the company's line of business (i.e., what does the company
106
114
  # do?).
107
115
  sig { returns(T.nilable(String)) }
@@ -198,6 +206,7 @@ module Lithic
198
206
  control_person:
199
207
  Lithic::AccountHolderUpdateParams::ControlPerson::OrHash,
200
208
  external_id: String,
209
+ naics_code: String,
201
210
  nature_of_business: String,
202
211
  website_url: String,
203
212
  individual: Lithic::AccountHolderUpdateParams::Individual::OrHash,
@@ -236,6 +245,9 @@ module Lithic
236
245
  # A user provided id that can be used to link an account holder with an external
237
246
  # system
238
247
  external_id: nil,
248
+ # 6-digit North American Industry Classification System (NAICS) code for the
249
+ # business.
250
+ naics_code: nil,
239
251
  # Short description of the company's line of business (i.e., what does the company
240
252
  # do?).
241
253
  nature_of_business: nil,
@@ -281,6 +293,7 @@ module Lithic
281
293
  business_entity: Lithic::AccountHolderUpdateParams::BusinessEntity,
282
294
  control_person: Lithic::AccountHolderUpdateParams::ControlPerson,
283
295
  external_id: String,
296
+ naics_code: String,
284
297
  nature_of_business: String,
285
298
  website_url: String,
286
299
  individual: Lithic::AccountHolderUpdateParams::Individual,
@@ -179,6 +179,14 @@ module Lithic
179
179
  end
180
180
  attr_writer :individual
181
181
 
182
+ # Only present when user_type == "BUSINESS". 6-digit North American Industry
183
+ # Classification System (NAICS) code for the business.
184
+ sig { returns(T.nilable(String)) }
185
+ attr_reader :naics_code
186
+
187
+ sig { params(naics_code: String).void }
188
+ attr_writer :naics_code
189
+
182
190
  # Only present when user_type == "BUSINESS". User-submitted description of the
183
191
  # business.
184
192
  sig { returns(T.nilable(String)) }
@@ -257,8 +265,8 @@ module Lithic
257
265
  # attribute will be present.
258
266
  #
259
267
  # If the type is "BUSINESS" then the "business_entity", "control_person",
260
- # "beneficial_owner_individuals", "nature_of_business", and "website_url"
261
- # attributes will be present.
268
+ # "beneficial_owner_individuals", "naics_code", "nature_of_business", and
269
+ # "website_url" attributes will be present.
262
270
  sig do
263
271
  returns(
264
272
  T.nilable(
@@ -322,6 +330,7 @@ module Lithic
322
330
  external_id: String,
323
331
  individual:
324
332
  Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::Individual::OrHash,
333
+ naics_code: String,
325
334
  nature_of_business: String,
326
335
  phone_number: String,
327
336
  required_documents: T::Array[Lithic::RequiredDocument::OrHash],
@@ -386,6 +395,9 @@ module Lithic
386
395
  # Only present when user_type == "INDIVIDUAL". Information about the individual
387
396
  # for which the account is being opened and KYC is being run.
388
397
  individual: nil,
398
+ # Only present when user_type == "BUSINESS". 6-digit North American Industry
399
+ # Classification System (NAICS) code for the business.
400
+ naics_code: nil,
389
401
  # Only present when user_type == "BUSINESS". User-submitted description of the
390
402
  # business.
391
403
  nature_of_business: nil,
@@ -409,8 +421,8 @@ module Lithic
409
421
  # attribute will be present.
410
422
  #
411
423
  # If the type is "BUSINESS" then the "business_entity", "control_person",
412
- # "beneficial_owner_individuals", "nature_of_business", and "website_url"
413
- # attributes will be present.
424
+ # "beneficial_owner_individuals", "naics_code", "nature_of_business", and
425
+ # "website_url" attributes will be present.
414
426
  user_type: nil,
415
427
  # Information about the most recent identity verification attempt
416
428
  verification_application: nil,
@@ -440,6 +452,7 @@ module Lithic
440
452
  external_id: String,
441
453
  individual:
442
454
  Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse::Individual,
455
+ naics_code: String,
443
456
  nature_of_business: String,
444
457
  phone_number: String,
445
458
  required_documents: T::Array[Lithic::RequiredDocument],
@@ -1298,8 +1311,8 @@ module Lithic
1298
1311
  # attribute will be present.
1299
1312
  #
1300
1313
  # If the type is "BUSINESS" then the "business_entity", "control_person",
1301
- # "beneficial_owner_individuals", "nature_of_business", and "website_url"
1302
- # attributes will be present.
1314
+ # "beneficial_owner_individuals", "naics_code", "nature_of_business", and
1315
+ # "website_url" attributes will be present.
1303
1316
  module UserType
1304
1317
  extend Lithic::Internal::Type::Enum
1305
1318
 
@@ -70,6 +70,14 @@ module Lithic
70
70
  sig { params(external_id: String).void }
71
71
  attr_writer :external_id
72
72
 
73
+ # 6-digit North American Industry Classification System (NAICS) code for the
74
+ # business. Only present if naics_code was included in the update request.
75
+ sig { returns(T.nilable(String)) }
76
+ attr_reader :naics_code
77
+
78
+ sig { params(naics_code: String).void }
79
+ attr_writer :naics_code
80
+
73
81
  # Short description of the company's line of business (i.e., what does the company
74
82
  # do?).
75
83
  sig { returns(T.nilable(String)) }
@@ -94,6 +102,7 @@ module Lithic
94
102
  event_type:
95
103
  Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::EventType::OrSymbol,
96
104
  external_id: String,
105
+ naics_code: String,
97
106
  nature_of_business: String,
98
107
  website_url: String
99
108
  ).returns(T.attached_class)
@@ -108,6 +117,9 @@ module Lithic
108
117
  # A user provided id that can be used to link an account holder with an external
109
118
  # system
110
119
  external_id: nil,
120
+ # 6-digit North American Industry Classification System (NAICS) code for the
121
+ # business. Only present if naics_code was included in the update request.
122
+ naics_code: nil,
111
123
  # Short description of the company's line of business (i.e., what does the company
112
124
  # do?).
113
125
  nature_of_business: nil,
@@ -125,6 +137,7 @@ module Lithic
125
137
  event_type:
126
138
  Lithic::AccountHolderUpdatedWebhookEvent::KYBPayload::EventType::TaggedSymbol,
127
139
  external_id: String,
140
+ naics_code: String,
128
141
  nature_of_business: String,
129
142
  website_url: String
130
143
  }
@@ -12,7 +12,7 @@ module Lithic
12
12
  )
13
13
  end
14
14
 
15
- # The action to take if the conditions are met
15
+ # The action to take if the conditions are met.
16
16
  sig do
17
17
  returns(
18
18
  T.any(
@@ -46,7 +46,7 @@ module Lithic
46
46
  ).returns(T.attached_class)
47
47
  end
48
48
  def self.new(
49
- # The action to take if the conditions are met
49
+ # The action to take if the conditions are met.
50
50
  action:,
51
51
  conditions:
52
52
  )
@@ -70,7 +70,7 @@ module Lithic
70
70
  def to_hash
71
71
  end
72
72
 
73
- # The action to take if the conditions are met
73
+ # The action to take if the conditions are met.
74
74
  module Action
75
75
  extend Lithic::Internal::Type::Union
76
76
 
@@ -12,7 +12,7 @@ module Lithic
12
12
  )
13
13
  end
14
14
 
15
- # The action to take if the conditions are met
15
+ # The action to take if the conditions are met.
16
16
  sig do
17
17
  returns(
18
18
  T.any(
@@ -46,7 +46,7 @@ module Lithic
46
46
  ).returns(T.attached_class)
47
47
  end
48
48
  def self.new(
49
- # The action to take if the conditions are met
49
+ # The action to take if the conditions are met.
50
50
  action:,
51
51
  conditions:
52
52
  )
@@ -70,7 +70,7 @@ module Lithic
70
70
  def to_hash
71
71
  end
72
72
 
73
- # The action to take if the conditions are met
73
+ # The action to take if the conditions are met.
74
74
  module Action
75
75
  extend Lithic::Internal::Type::Union
76
76
 
@@ -488,8 +488,10 @@ module Lithic
488
488
  #
489
489
  # - `TIMESTAMP`: The timestamp of the tokenization request in ISO 8601 format.
490
490
  # - `TOKENIZATION_CHANNEL`: The channel through which the tokenization request was
491
- # initiated (e.g., DIGITAL_WALLET, ECOMMERCE).
492
- # - `TOKENIZATION_SOURCE`: The source of the tokenization request.
491
+ # initiated. Valid values are `DIGITAL_WALLET`, `MERCHANT`.
492
+ # - `TOKENIZATION_SOURCE`: The source of the tokenization request. Valid values
493
+ # are `ACCOUNT_ON_FILE`, `MANUAL_PROVISION`, `PUSH_PROVISION`, `CHIP_DIP`,
494
+ # `CONTACTLESS_TAP`, `TOKEN`, `UNKNOWN`.
493
495
  # - `TOKEN_REQUESTOR_NAME`: The name of the entity requesting the token. Valid
494
496
  # values are `ALT_ID`, `AMAZON_ONE`, `AMERICAN_EXPRESS_TOKEN_SERVICE`,
495
497
  # `ANDROID_PAY`, `APPLE_PAY`, `FACEBOOK`, `FITBIT_PAY`, `GARMIN_PAY`,
@@ -505,13 +507,24 @@ module Lithic
505
507
  # provider. Valid values include APPROVE, DECLINE,
506
508
  # REQUIRE_ADDITIONAL_AUTHENTICATION.
507
509
  # - `WALLET_RECOMMENDATION_REASONS`: List of reasons provided by the digital
508
- # wallet provider for the recommended decision. Valid values are
509
- # `ACCOUNT_CARD_TOO_NEW`, `ACCOUNT_RECENTLY_CHANGED`, `ACCOUNT_TOO_NEW`,
510
- # `ACCOUNT_TOO_NEW_SINCE_LAUNCH`, `DEVICE_RECENTLY_LOST`,
511
- # `HAS_SUSPENDED_TOKENS`, `HIGH_RISK`, `INACTIVE_ACCOUNT`, `LOW_ACCOUNT_SCORE`,
512
- # `LOW_DEVICE_SCORE`, `OUTSIDE_HOME_TERRITORY`, `SUSPICIOUS_ACTIVITY`,
513
- # `TOO_MANY_DIFFERENT_CARDHOLDERS`, `TOO_MANY_RECENT_ATTEMPTS`,
514
- # `TOO_MANY_RECENT_TOKENS`, `UNABLE_TO_ASSESS`.
510
+ # wallet provider for the recommended decision. Valid values are:
511
+ # - Common: `ACCOUNT_CARD_TOO_NEW`, `ACCOUNT_RECENTLY_CHANGED`,
512
+ # `ACCOUNT_TOO_NEW`, `ACCOUNT_TOO_NEW_SINCE_LAUNCH`, `DEVICE_RECENTLY_LOST`,
513
+ # `HAS_SUSPENDED_TOKENS`, `HIGH_RISK`, `INACTIVE_ACCOUNT`,
514
+ # `LOW_ACCOUNT_SCORE`, `LOW_DEVICE_SCORE`, `OUTSIDE_HOME_TERRITORY`,
515
+ # `SUSPICIOUS_ACTIVITY`, `TOO_MANY_DIFFERENT_CARDHOLDERS`,
516
+ # `TOO_MANY_RECENT_ATTEMPTS`, `TOO_MANY_RECENT_TOKENS`, `UNABLE_TO_ASSESS`
517
+ # - Visa only: `ACCOUNT_DATA_RECENTLY_CHANGED`, `ACCOUNT_PAN_PAIRING_TOO_NEW`,
518
+ # `LOW_TRANSACTION_VOLUME`, `USER_ACCOUNT_DEVICE_TOO_NEW`,
519
+ # `WALLET_ACCOUNT_TOO_NEW`
520
+ # - Amex only: `DEVICE_USING_VPN_PROXY`,
521
+ # `EXCESSIVE_BILLING_NAME_ATTEMPTS_MODERATE`,
522
+ # `EXCESSIVE_BILLING_NAME_ATTEMPTS_SEVERE`,
523
+ # `EXCESSIVE_CARD_PROVISION_ATTEMPTS_MODERATE`,
524
+ # `EXCESSIVE_CARD_PROVISION_ATTEMPTS_SEVERE`, `EXCESSIVE_WALLET_RESETS`,
525
+ # `EXCESSIVE_ZIP_ATTEMPTS_MODERATE`, `EXCESSIVE_ZIP_ATTEMPTS_SEVERE`,
526
+ # `USER_ID_CARD_PAIRING_TOO_NEW`, `USER_ID_DEVICE_ID_PAIRING_TOO_NEW`,
527
+ # `USER_ID_OS_ID_PAIRING_TOO_NEW`, `USER_ID_TOO_NEW`
515
528
  # - `TOKEN_REQUESTOR_ID`: Unique identifier for the entity requesting the token.
516
529
  # - `WALLET_TOKEN_STATUS`: The current status of the wallet token.
517
530
  # - `CARD_STATE`: The state of the card being tokenized. Valid values are
@@ -546,8 +559,10 @@ module Lithic
546
559
  #
547
560
  # - `TIMESTAMP`: The timestamp of the tokenization request in ISO 8601 format.
548
561
  # - `TOKENIZATION_CHANNEL`: The channel through which the tokenization request was
549
- # initiated (e.g., DIGITAL_WALLET, ECOMMERCE).
550
- # - `TOKENIZATION_SOURCE`: The source of the tokenization request.
562
+ # initiated. Valid values are `DIGITAL_WALLET`, `MERCHANT`.
563
+ # - `TOKENIZATION_SOURCE`: The source of the tokenization request. Valid values
564
+ # are `ACCOUNT_ON_FILE`, `MANUAL_PROVISION`, `PUSH_PROVISION`, `CHIP_DIP`,
565
+ # `CONTACTLESS_TAP`, `TOKEN`, `UNKNOWN`.
551
566
  # - `TOKEN_REQUESTOR_NAME`: The name of the entity requesting the token. Valid
552
567
  # values are `ALT_ID`, `AMAZON_ONE`, `AMERICAN_EXPRESS_TOKEN_SERVICE`,
553
568
  # `ANDROID_PAY`, `APPLE_PAY`, `FACEBOOK`, `FITBIT_PAY`, `GARMIN_PAY`,
@@ -563,13 +578,24 @@ module Lithic
563
578
  # provider. Valid values include APPROVE, DECLINE,
564
579
  # REQUIRE_ADDITIONAL_AUTHENTICATION.
565
580
  # - `WALLET_RECOMMENDATION_REASONS`: List of reasons provided by the digital
566
- # wallet provider for the recommended decision. Valid values are
567
- # `ACCOUNT_CARD_TOO_NEW`, `ACCOUNT_RECENTLY_CHANGED`, `ACCOUNT_TOO_NEW`,
568
- # `ACCOUNT_TOO_NEW_SINCE_LAUNCH`, `DEVICE_RECENTLY_LOST`,
569
- # `HAS_SUSPENDED_TOKENS`, `HIGH_RISK`, `INACTIVE_ACCOUNT`, `LOW_ACCOUNT_SCORE`,
570
- # `LOW_DEVICE_SCORE`, `OUTSIDE_HOME_TERRITORY`, `SUSPICIOUS_ACTIVITY`,
571
- # `TOO_MANY_DIFFERENT_CARDHOLDERS`, `TOO_MANY_RECENT_ATTEMPTS`,
572
- # `TOO_MANY_RECENT_TOKENS`, `UNABLE_TO_ASSESS`.
581
+ # wallet provider for the recommended decision. Valid values are:
582
+ # - Common: `ACCOUNT_CARD_TOO_NEW`, `ACCOUNT_RECENTLY_CHANGED`,
583
+ # `ACCOUNT_TOO_NEW`, `ACCOUNT_TOO_NEW_SINCE_LAUNCH`, `DEVICE_RECENTLY_LOST`,
584
+ # `HAS_SUSPENDED_TOKENS`, `HIGH_RISK`, `INACTIVE_ACCOUNT`,
585
+ # `LOW_ACCOUNT_SCORE`, `LOW_DEVICE_SCORE`, `OUTSIDE_HOME_TERRITORY`,
586
+ # `SUSPICIOUS_ACTIVITY`, `TOO_MANY_DIFFERENT_CARDHOLDERS`,
587
+ # `TOO_MANY_RECENT_ATTEMPTS`, `TOO_MANY_RECENT_TOKENS`, `UNABLE_TO_ASSESS`
588
+ # - Visa only: `ACCOUNT_DATA_RECENTLY_CHANGED`, `ACCOUNT_PAN_PAIRING_TOO_NEW`,
589
+ # `LOW_TRANSACTION_VOLUME`, `USER_ACCOUNT_DEVICE_TOO_NEW`,
590
+ # `WALLET_ACCOUNT_TOO_NEW`
591
+ # - Amex only: `DEVICE_USING_VPN_PROXY`,
592
+ # `EXCESSIVE_BILLING_NAME_ATTEMPTS_MODERATE`,
593
+ # `EXCESSIVE_BILLING_NAME_ATTEMPTS_SEVERE`,
594
+ # `EXCESSIVE_CARD_PROVISION_ATTEMPTS_MODERATE`,
595
+ # `EXCESSIVE_CARD_PROVISION_ATTEMPTS_SEVERE`, `EXCESSIVE_WALLET_RESETS`,
596
+ # `EXCESSIVE_ZIP_ATTEMPTS_MODERATE`, `EXCESSIVE_ZIP_ATTEMPTS_SEVERE`,
597
+ # `USER_ID_CARD_PAIRING_TOO_NEW`, `USER_ID_DEVICE_ID_PAIRING_TOO_NEW`,
598
+ # `USER_ID_OS_ID_PAIRING_TOO_NEW`, `USER_ID_TOO_NEW`
573
599
  # - `TOKEN_REQUESTOR_ID`: Unique identifier for the entity requesting the token.
574
600
  # - `WALLET_TOKEN_STATUS`: The current status of the wallet token.
575
601
  # - `CARD_STATE`: The state of the card being tokenized. Valid values are
@@ -601,8 +627,10 @@ module Lithic
601
627
  #
602
628
  # - `TIMESTAMP`: The timestamp of the tokenization request in ISO 8601 format.
603
629
  # - `TOKENIZATION_CHANNEL`: The channel through which the tokenization request was
604
- # initiated (e.g., DIGITAL_WALLET, ECOMMERCE).
605
- # - `TOKENIZATION_SOURCE`: The source of the tokenization request.
630
+ # initiated. Valid values are `DIGITAL_WALLET`, `MERCHANT`.
631
+ # - `TOKENIZATION_SOURCE`: The source of the tokenization request. Valid values
632
+ # are `ACCOUNT_ON_FILE`, `MANUAL_PROVISION`, `PUSH_PROVISION`, `CHIP_DIP`,
633
+ # `CONTACTLESS_TAP`, `TOKEN`, `UNKNOWN`.
606
634
  # - `TOKEN_REQUESTOR_NAME`: The name of the entity requesting the token. Valid
607
635
  # values are `ALT_ID`, `AMAZON_ONE`, `AMERICAN_EXPRESS_TOKEN_SERVICE`,
608
636
  # `ANDROID_PAY`, `APPLE_PAY`, `FACEBOOK`, `FITBIT_PAY`, `GARMIN_PAY`,
@@ -618,13 +646,24 @@ module Lithic
618
646
  # provider. Valid values include APPROVE, DECLINE,
619
647
  # REQUIRE_ADDITIONAL_AUTHENTICATION.
620
648
  # - `WALLET_RECOMMENDATION_REASONS`: List of reasons provided by the digital
621
- # wallet provider for the recommended decision. Valid values are
622
- # `ACCOUNT_CARD_TOO_NEW`, `ACCOUNT_RECENTLY_CHANGED`, `ACCOUNT_TOO_NEW`,
623
- # `ACCOUNT_TOO_NEW_SINCE_LAUNCH`, `DEVICE_RECENTLY_LOST`,
624
- # `HAS_SUSPENDED_TOKENS`, `HIGH_RISK`, `INACTIVE_ACCOUNT`, `LOW_ACCOUNT_SCORE`,
625
- # `LOW_DEVICE_SCORE`, `OUTSIDE_HOME_TERRITORY`, `SUSPICIOUS_ACTIVITY`,
626
- # `TOO_MANY_DIFFERENT_CARDHOLDERS`, `TOO_MANY_RECENT_ATTEMPTS`,
627
- # `TOO_MANY_RECENT_TOKENS`, `UNABLE_TO_ASSESS`.
649
+ # wallet provider for the recommended decision. Valid values are:
650
+ # - Common: `ACCOUNT_CARD_TOO_NEW`, `ACCOUNT_RECENTLY_CHANGED`,
651
+ # `ACCOUNT_TOO_NEW`, `ACCOUNT_TOO_NEW_SINCE_LAUNCH`, `DEVICE_RECENTLY_LOST`,
652
+ # `HAS_SUSPENDED_TOKENS`, `HIGH_RISK`, `INACTIVE_ACCOUNT`,
653
+ # `LOW_ACCOUNT_SCORE`, `LOW_DEVICE_SCORE`, `OUTSIDE_HOME_TERRITORY`,
654
+ # `SUSPICIOUS_ACTIVITY`, `TOO_MANY_DIFFERENT_CARDHOLDERS`,
655
+ # `TOO_MANY_RECENT_ATTEMPTS`, `TOO_MANY_RECENT_TOKENS`, `UNABLE_TO_ASSESS`
656
+ # - Visa only: `ACCOUNT_DATA_RECENTLY_CHANGED`, `ACCOUNT_PAN_PAIRING_TOO_NEW`,
657
+ # `LOW_TRANSACTION_VOLUME`, `USER_ACCOUNT_DEVICE_TOO_NEW`,
658
+ # `WALLET_ACCOUNT_TOO_NEW`
659
+ # - Amex only: `DEVICE_USING_VPN_PROXY`,
660
+ # `EXCESSIVE_BILLING_NAME_ATTEMPTS_MODERATE`,
661
+ # `EXCESSIVE_BILLING_NAME_ATTEMPTS_SEVERE`,
662
+ # `EXCESSIVE_CARD_PROVISION_ATTEMPTS_MODERATE`,
663
+ # `EXCESSIVE_CARD_PROVISION_ATTEMPTS_SEVERE`, `EXCESSIVE_WALLET_RESETS`,
664
+ # `EXCESSIVE_ZIP_ATTEMPTS_MODERATE`, `EXCESSIVE_ZIP_ATTEMPTS_SEVERE`,
665
+ # `USER_ID_CARD_PAIRING_TOO_NEW`, `USER_ID_DEVICE_ID_PAIRING_TOO_NEW`,
666
+ # `USER_ID_OS_ID_PAIRING_TOO_NEW`, `USER_ID_TOO_NEW`
628
667
  # - `TOKEN_REQUESTOR_ID`: Unique identifier for the entity requesting the token.
629
668
  # - `WALLET_TOKEN_STATUS`: The current status of the wallet token.
630
669
  # - `CARD_STATE`: The state of the card being tokenized. Valid values are
@@ -0,0 +1,112 @@
1
+ # typed: strong
2
+
3
+ module Lithic
4
+ module Models
5
+ module AuthRules
6
+ class V2ListResultsParams < Lithic::Internal::Type::BaseModel
7
+ extend Lithic::Internal::Type::RequestParameters::Converter
8
+ include Lithic::Internal::Type::RequestParameters
9
+
10
+ OrHash =
11
+ T.type_alias do
12
+ T.any(
13
+ Lithic::AuthRules::V2ListResultsParams,
14
+ Lithic::Internal::AnyHash
15
+ )
16
+ end
17
+
18
+ # Filter by Auth Rule token
19
+ sig { returns(T.nilable(String)) }
20
+ attr_reader :auth_rule_token
21
+
22
+ sig { params(auth_rule_token: String).void }
23
+ attr_writer :auth_rule_token
24
+
25
+ # A cursor representing an item's token before which a page of results should end.
26
+ # Used to retrieve the previous page of results before this item.
27
+ sig { returns(T.nilable(String)) }
28
+ attr_reader :ending_before
29
+
30
+ sig { params(ending_before: String).void }
31
+ attr_writer :ending_before
32
+
33
+ # Filter by event token
34
+ sig { returns(T.nilable(String)) }
35
+ attr_reader :event_token
36
+
37
+ sig { params(event_token: String).void }
38
+ attr_writer :event_token
39
+
40
+ # Filter by whether the rule evaluation produced any actions. When not provided,
41
+ # all results are returned.
42
+ sig { returns(T.nilable(T::Boolean)) }
43
+ attr_reader :has_actions
44
+
45
+ sig { params(has_actions: T::Boolean).void }
46
+ attr_writer :has_actions
47
+
48
+ # Page size (for pagination).
49
+ sig { returns(T.nilable(Integer)) }
50
+ attr_reader :page_size
51
+
52
+ sig { params(page_size: Integer).void }
53
+ attr_writer :page_size
54
+
55
+ # A cursor representing an item's token after which a page of results should
56
+ # begin. Used to retrieve the next page of results after this item.
57
+ sig { returns(T.nilable(String)) }
58
+ attr_reader :starting_after
59
+
60
+ sig { params(starting_after: String).void }
61
+ attr_writer :starting_after
62
+
63
+ sig do
64
+ params(
65
+ auth_rule_token: String,
66
+ ending_before: String,
67
+ event_token: String,
68
+ has_actions: T::Boolean,
69
+ page_size: Integer,
70
+ starting_after: String,
71
+ request_options: Lithic::RequestOptions::OrHash
72
+ ).returns(T.attached_class)
73
+ end
74
+ def self.new(
75
+ # Filter by Auth Rule token
76
+ auth_rule_token: nil,
77
+ # A cursor representing an item's token before which a page of results should end.
78
+ # Used to retrieve the previous page of results before this item.
79
+ ending_before: nil,
80
+ # Filter by event token
81
+ event_token: nil,
82
+ # Filter by whether the rule evaluation produced any actions. When not provided,
83
+ # all results are returned.
84
+ has_actions: nil,
85
+ # Page size (for pagination).
86
+ page_size: nil,
87
+ # A cursor representing an item's token after which a page of results should
88
+ # begin. Used to retrieve the next page of results after this item.
89
+ starting_after: nil,
90
+ request_options: {}
91
+ )
92
+ end
93
+
94
+ sig do
95
+ override.returns(
96
+ {
97
+ auth_rule_token: String,
98
+ ending_before: String,
99
+ event_token: String,
100
+ has_actions: T::Boolean,
101
+ page_size: Integer,
102
+ starting_after: String,
103
+ request_options: Lithic::RequestOptions
104
+ }
105
+ )
106
+ end
107
+ def to_hash
108
+ end
109
+ end
110
+ end
111
+ end
112
+ end