lithic 0.17.0 → 0.18.1

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 (62) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +31 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/internal/type/union.rb +7 -21
  5. data/lib/lithic/models/auth_rules/rule_feature.rb +291 -2
  6. data/lib/lithic/models/auth_rules/typescript_code_parameters.rb +2 -2
  7. data/lib/lithic/models/card_authorization.rb +7 -6
  8. data/lib/lithic/models/claim_created_webhook_event.rb +190 -0
  9. data/lib/lithic/models/claim_document_accepted_webhook_event.rb +175 -0
  10. data/lib/lithic/models/claim_document_rejected_webhook_event.rb +175 -0
  11. data/lib/lithic/models/claim_document_uploaded_webhook_event.rb +175 -0
  12. data/lib/lithic/models/claim_updated_webhook_event.rb +190 -0
  13. data/lib/lithic/models/event.rb +23 -0
  14. data/lib/lithic/models/event_list_params.rb +14 -0
  15. data/lib/lithic/models/event_subscription.rb +14 -0
  16. data/lib/lithic/models/events/subscription_create_params.rb +14 -0
  17. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +5 -0
  18. data/lib/lithic/models/events/subscription_update_params.rb +14 -0
  19. data/lib/lithic/models/parsed_webhook_event.rb +11 -1
  20. data/lib/lithic/models/transaction_monitoring/case_transaction.rb +120 -43
  21. data/lib/lithic/models.rb +10 -0
  22. data/lib/lithic/resources/transaction_monitoring/cases.rb +1 -1
  23. data/lib/lithic/resources/webhooks.rb +1 -1
  24. data/lib/lithic/version.rb +1 -1
  25. data/lib/lithic.rb +5 -0
  26. data/rbi/lithic/models/auth_rules/rule_feature.rbi +686 -2
  27. data/rbi/lithic/models/auth_rules/typescript_code_parameters.rbi +15 -3
  28. data/rbi/lithic/models/card_authorization.rbi +12 -10
  29. data/rbi/lithic/models/claim_created_webhook_event.rbi +386 -0
  30. data/rbi/lithic/models/claim_document_accepted_webhook_event.rbi +315 -0
  31. data/rbi/lithic/models/claim_document_rejected_webhook_event.rbi +315 -0
  32. data/rbi/lithic/models/claim_document_uploaded_webhook_event.rbi +315 -0
  33. data/rbi/lithic/models/claim_updated_webhook_event.rbi +386 -0
  34. data/rbi/lithic/models/event.rbi +46 -0
  35. data/rbi/lithic/models/event_list_params.rbi +34 -0
  36. data/rbi/lithic/models/event_subscription.rbi +34 -0
  37. data/rbi/lithic/models/events/subscription_create_params.rbi +34 -0
  38. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +25 -0
  39. data/rbi/lithic/models/events/subscription_update_params.rbi +34 -0
  40. data/rbi/lithic/models/parsed_webhook_event.rbi +5 -0
  41. data/rbi/lithic/models/transaction_monitoring/case_transaction.rbi +151 -46
  42. data/rbi/lithic/models.rbi +13 -0
  43. data/rbi/lithic/resources/transaction_monitoring/cases.rbi +1 -1
  44. data/rbi/lithic/resources/webhooks.rbi +5 -0
  45. data/sig/lithic/models/auth_rules/rule_feature.rbs +252 -0
  46. data/sig/lithic/models/claim_created_webhook_event.rbs +169 -0
  47. data/sig/lithic/models/claim_document_accepted_webhook_event.rbs +131 -0
  48. data/sig/lithic/models/claim_document_rejected_webhook_event.rbs +131 -0
  49. data/sig/lithic/models/claim_document_uploaded_webhook_event.rbs +131 -0
  50. data/sig/lithic/models/claim_updated_webhook_event.rbs +169 -0
  51. data/sig/lithic/models/event.rbs +10 -0
  52. data/sig/lithic/models/event_list_params.rbs +10 -0
  53. data/sig/lithic/models/event_subscription.rbs +10 -0
  54. data/sig/lithic/models/events/subscription_create_params.rbs +10 -0
  55. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +10 -0
  56. data/sig/lithic/models/events/subscription_update_params.rbs +10 -0
  57. data/sig/lithic/models/parsed_webhook_event.rbs +5 -0
  58. data/sig/lithic/models/transaction_monitoring/case_transaction.rbs +93 -34
  59. data/sig/lithic/models.rbs +10 -0
  60. data/sig/lithic/resources/transaction_monitoring/cases.rbs +1 -1
  61. data/sig/lithic/resources/webhooks.rbs +5 -0
  62. metadata +17 -2
@@ -8,11 +8,15 @@ module Lithic
8
8
  | Lithic::AuthRules::RuleFeature::ACHReceiptFeature
9
9
  | Lithic::AuthRules::RuleFeature::CardTransactionFeature
10
10
  | Lithic::AuthRules::RuleFeature::ACHPaymentFeature
11
+ | Lithic::AuthRules::RuleFeature::ExternalBankAccountFeature
11
12
  | Lithic::AuthRules::RuleFeature::CardFeature
12
13
  | Lithic::AuthRules::RuleFeature::AccountHolderFeature
13
14
  | Lithic::AuthRules::RuleFeature::IPMetadataFeature
14
15
  | Lithic::AuthRules::RuleFeature::SpendVelocityFeature
16
+ | Lithic::AuthRules::RuleFeature::PaymentVelocityFeature
15
17
  | Lithic::AuthRules::RuleFeature::TransactionHistorySignalsFeature
18
+ | Lithic::AuthRules::RuleFeature::ConsecutiveDeclinesFeature
19
+ | Lithic::AuthRules::RuleFeature::ACHPaymentHistoryFeature
16
20
 
17
21
  module RuleFeature
18
22
  extend Lithic::Internal::Type::Union
@@ -102,6 +106,21 @@ module Lithic
102
106
  def to_hash: -> { type: :ACH_PAYMENT, name: String }
103
107
  end
104
108
 
109
+ type external_bank_account_feature =
110
+ { type: :EXTERNAL_BANK_ACCOUNT, name: String }
111
+
112
+ class ExternalBankAccountFeature < Lithic::Internal::Type::BaseModel
113
+ attr_accessor type: :EXTERNAL_BANK_ACCOUNT
114
+
115
+ attr_reader name: String?
116
+
117
+ def name=: (String) -> String
118
+
119
+ def initialize: (?name: String, ?type: :EXTERNAL_BANK_ACCOUNT) -> void
120
+
121
+ def to_hash: -> { type: :EXTERNAL_BANK_ACCOUNT, name: String }
122
+ end
123
+
105
124
  type card_feature = { type: :CARD, name: String }
106
125
 
107
126
  class CardFeature < Lithic::Internal::Type::BaseModel
@@ -198,6 +217,160 @@ module Lithic
198
217
  end
199
218
  end
200
219
 
220
+ type payment_velocity_feature =
221
+ {
222
+ period: Lithic::Models::AuthRules::velocity_limit_period,
223
+ scope: Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::scope,
224
+ type: :PAYMENT_VELOCITY,
225
+ filters: Lithic::AuthRules::RuleFeature::PaymentVelocityFeature::Filters,
226
+ name: String
227
+ }
228
+
229
+ class PaymentVelocityFeature < Lithic::Internal::Type::BaseModel
230
+ attr_accessor period: Lithic::Models::AuthRules::velocity_limit_period
231
+
232
+ attr_accessor scope: Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::scope
233
+
234
+ attr_accessor type: :PAYMENT_VELOCITY
235
+
236
+ attr_reader filters: Lithic::AuthRules::RuleFeature::PaymentVelocityFeature::Filters?
237
+
238
+ def filters=: (
239
+ Lithic::AuthRules::RuleFeature::PaymentVelocityFeature::Filters
240
+ ) -> Lithic::AuthRules::RuleFeature::PaymentVelocityFeature::Filters
241
+
242
+ attr_reader name: String?
243
+
244
+ def name=: (String) -> String
245
+
246
+ def initialize: (
247
+ period: Lithic::Models::AuthRules::velocity_limit_period,
248
+ scope: Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::scope,
249
+ ?filters: Lithic::AuthRules::RuleFeature::PaymentVelocityFeature::Filters,
250
+ ?name: String,
251
+ ?type: :PAYMENT_VELOCITY
252
+ ) -> void
253
+
254
+ def to_hash: -> {
255
+ period: Lithic::Models::AuthRules::velocity_limit_period,
256
+ scope: Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::scope,
257
+ type: :PAYMENT_VELOCITY,
258
+ filters: Lithic::AuthRules::RuleFeature::PaymentVelocityFeature::Filters,
259
+ name: String
260
+ }
261
+
262
+ type scope = :FINANCIAL_ACCOUNT | :GLOBAL
263
+
264
+ module Scope
265
+ extend Lithic::Internal::Type::Enum
266
+
267
+ FINANCIAL_ACCOUNT: :FINANCIAL_ACCOUNT
268
+ GLOBAL: :GLOBAL
269
+
270
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::scope]
271
+ end
272
+
273
+ type filters =
274
+ {
275
+ exclude_tags: ::Hash[Symbol, String]?,
276
+ include_payment_types: ::Array[Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::include_payment_type]?,
277
+ include_polarities: ::Array[Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::include_polarity]?,
278
+ include_statuses: ::Array[Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::include_status]?,
279
+ include_tags: ::Hash[Symbol, String]?,
280
+ result: Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::result
281
+ }
282
+
283
+ class Filters < Lithic::Internal::Type::BaseModel
284
+ attr_accessor exclude_tags: ::Hash[Symbol, String]?
285
+
286
+ attr_accessor include_payment_types: ::Array[Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::include_payment_type]?
287
+
288
+ attr_accessor include_polarities: ::Array[Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::include_polarity]?
289
+
290
+ attr_accessor include_statuses: ::Array[Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::include_status]?
291
+
292
+ attr_accessor include_tags: ::Hash[Symbol, String]?
293
+
294
+ attr_reader result: Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::result?
295
+
296
+ def result=: (
297
+ Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::result
298
+ ) -> Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::result
299
+
300
+ def initialize: (
301
+ ?exclude_tags: ::Hash[Symbol, String]?,
302
+ ?include_payment_types: ::Array[Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::include_payment_type]?,
303
+ ?include_polarities: ::Array[Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::include_polarity]?,
304
+ ?include_statuses: ::Array[Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::include_status]?,
305
+ ?include_tags: ::Hash[Symbol, String]?,
306
+ ?result: Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::result
307
+ ) -> void
308
+
309
+ def to_hash: -> {
310
+ exclude_tags: ::Hash[Symbol, String]?,
311
+ include_payment_types: ::Array[Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::include_payment_type]?,
312
+ include_polarities: ::Array[Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::include_polarity]?,
313
+ include_statuses: ::Array[Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::include_status]?,
314
+ include_tags: ::Hash[Symbol, String]?,
315
+ result: Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::result
316
+ }
317
+
318
+ type include_payment_type = :ORIGINATION | :RECEIPT
319
+
320
+ module IncludePaymentType
321
+ extend Lithic::Internal::Type::Enum
322
+
323
+ ORIGINATION: :ORIGINATION
324
+ RECEIPT: :RECEIPT
325
+
326
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::include_payment_type]
327
+ end
328
+
329
+ type include_polarity = :CREDIT | :DEBIT
330
+
331
+ module IncludePolarity
332
+ extend Lithic::Internal::Type::Enum
333
+
334
+ CREDIT: :CREDIT
335
+ DEBIT: :DEBIT
336
+
337
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::include_polarity]
338
+ end
339
+
340
+ type include_status =
341
+ :PENDING
342
+ | :SETTLED
343
+ | :DECLINED
344
+ | :REVERSED
345
+ | :CANCELED
346
+ | :RETURNED
347
+
348
+ module IncludeStatus
349
+ extend Lithic::Internal::Type::Enum
350
+
351
+ PENDING: :PENDING
352
+ SETTLED: :SETTLED
353
+ DECLINED: :DECLINED
354
+ REVERSED: :REVERSED
355
+ CANCELED: :CANCELED
356
+ RETURNED: :RETURNED
357
+
358
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::include_status]
359
+ end
360
+
361
+ type result = :APPROVED | :DECLINED
362
+
363
+ module Result
364
+ extend Lithic::Internal::Type::Enum
365
+
366
+ APPROVED: :APPROVED
367
+ DECLINED: :DECLINED
368
+
369
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::RuleFeature::PaymentVelocityFeature::Filters::result]
370
+ end
371
+ end
372
+ end
373
+
201
374
  type transaction_history_signals_feature =
202
375
  {
203
376
  scope: Lithic::Models::AuthRules::RuleFeature::TransactionHistorySignalsFeature::scope,
@@ -239,6 +412,85 @@ module Lithic
239
412
  end
240
413
  end
241
414
 
415
+ type consecutive_declines_feature =
416
+ {
417
+ scope: Lithic::Models::AuthRules::RuleFeature::ConsecutiveDeclinesFeature::scope,
418
+ type: :CONSECUTIVE_DECLINES,
419
+ name: String
420
+ }
421
+
422
+ class ConsecutiveDeclinesFeature < Lithic::Internal::Type::BaseModel
423
+ attr_accessor scope: Lithic::Models::AuthRules::RuleFeature::ConsecutiveDeclinesFeature::scope
424
+
425
+ attr_accessor type: :CONSECUTIVE_DECLINES
426
+
427
+ attr_reader name: String?
428
+
429
+ def name=: (String) -> String
430
+
431
+ def initialize: (
432
+ scope: Lithic::Models::AuthRules::RuleFeature::ConsecutiveDeclinesFeature::scope,
433
+ ?name: String,
434
+ ?type: :CONSECUTIVE_DECLINES
435
+ ) -> void
436
+
437
+ def to_hash: -> {
438
+ scope: Lithic::Models::AuthRules::RuleFeature::ConsecutiveDeclinesFeature::scope,
439
+ type: :CONSECUTIVE_DECLINES,
440
+ name: String
441
+ }
442
+
443
+ type scope = :CARD | :ACCOUNT
444
+
445
+ module Scope
446
+ extend Lithic::Internal::Type::Enum
447
+
448
+ CARD: :CARD
449
+ ACCOUNT: :ACCOUNT
450
+
451
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::RuleFeature::ConsecutiveDeclinesFeature::scope]
452
+ end
453
+ end
454
+
455
+ type ach_payment_history_feature =
456
+ {
457
+ scope: Lithic::Models::AuthRules::RuleFeature::ACHPaymentHistoryFeature::scope,
458
+ type: :ACH_PAYMENT_HISTORY,
459
+ name: String
460
+ }
461
+
462
+ class ACHPaymentHistoryFeature < Lithic::Internal::Type::BaseModel
463
+ attr_accessor scope: Lithic::Models::AuthRules::RuleFeature::ACHPaymentHistoryFeature::scope
464
+
465
+ attr_accessor type: :ACH_PAYMENT_HISTORY
466
+
467
+ attr_reader name: String?
468
+
469
+ def name=: (String) -> String
470
+
471
+ def initialize: (
472
+ scope: Lithic::Models::AuthRules::RuleFeature::ACHPaymentHistoryFeature::scope,
473
+ ?name: String,
474
+ ?type: :ACH_PAYMENT_HISTORY
475
+ ) -> void
476
+
477
+ def to_hash: -> {
478
+ scope: Lithic::Models::AuthRules::RuleFeature::ACHPaymentHistoryFeature::scope,
479
+ type: :ACH_PAYMENT_HISTORY,
480
+ name: String
481
+ }
482
+
483
+ type scope = :FINANCIAL_ACCOUNT
484
+
485
+ module Scope
486
+ extend Lithic::Internal::Type::Enum
487
+
488
+ FINANCIAL_ACCOUNT: :FINANCIAL_ACCOUNT
489
+
490
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::RuleFeature::ACHPaymentHistoryFeature::scope]
491
+ end
492
+ end
493
+
242
494
  def self?.variants: -> ::Array[Lithic::Models::AuthRules::rule_feature]
243
495
  end
244
496
  end
@@ -0,0 +1,169 @@
1
+ module Lithic
2
+ module Models
3
+ type claim_created_webhook_event =
4
+ {
5
+ token: String,
6
+ account_holder_token: String?,
7
+ account_token: String?,
8
+ card_tokens: ::Array[String],
9
+ created: Time,
10
+ disputed_transactions: ::Array[Lithic::ClaimCreatedWebhookEvent::DisputedTransaction],
11
+ event_type: :"claim.created",
12
+ outstanding_requirements: ::Array[Lithic::Models::ClaimCreatedWebhookEvent::outstanding_requirement],
13
+ reason: Lithic::Models::ClaimCreatedWebhookEvent::reason,
14
+ status: Lithic::Models::ClaimCreatedWebhookEvent::status,
15
+ submitted: Time?,
16
+ updated: Time
17
+ }
18
+
19
+ class ClaimCreatedWebhookEvent < Lithic::Internal::Type::BaseModel
20
+ attr_accessor token: String
21
+
22
+ attr_accessor account_holder_token: String?
23
+
24
+ attr_accessor account_token: String?
25
+
26
+ attr_accessor card_tokens: ::Array[String]
27
+
28
+ attr_accessor created: Time
29
+
30
+ attr_accessor disputed_transactions: ::Array[Lithic::ClaimCreatedWebhookEvent::DisputedTransaction]
31
+
32
+ attr_accessor event_type: :"claim.created"
33
+
34
+ attr_accessor outstanding_requirements: ::Array[Lithic::Models::ClaimCreatedWebhookEvent::outstanding_requirement]
35
+
36
+ attr_accessor reason: Lithic::Models::ClaimCreatedWebhookEvent::reason
37
+
38
+ attr_accessor status: Lithic::Models::ClaimCreatedWebhookEvent::status
39
+
40
+ attr_accessor submitted: Time?
41
+
42
+ attr_accessor updated: Time
43
+
44
+ def initialize: (
45
+ token: String,
46
+ account_holder_token: String?,
47
+ account_token: String?,
48
+ card_tokens: ::Array[String],
49
+ created: Time,
50
+ disputed_transactions: ::Array[Lithic::ClaimCreatedWebhookEvent::DisputedTransaction],
51
+ outstanding_requirements: ::Array[Lithic::Models::ClaimCreatedWebhookEvent::outstanding_requirement],
52
+ reason: Lithic::Models::ClaimCreatedWebhookEvent::reason,
53
+ status: Lithic::Models::ClaimCreatedWebhookEvent::status,
54
+ submitted: Time?,
55
+ updated: Time,
56
+ ?event_type: :"claim.created"
57
+ ) -> void
58
+
59
+ def to_hash: -> {
60
+ token: String,
61
+ account_holder_token: String?,
62
+ account_token: String?,
63
+ card_tokens: ::Array[String],
64
+ created: Time,
65
+ disputed_transactions: ::Array[Lithic::ClaimCreatedWebhookEvent::DisputedTransaction],
66
+ event_type: :"claim.created",
67
+ outstanding_requirements: ::Array[Lithic::Models::ClaimCreatedWebhookEvent::outstanding_requirement],
68
+ reason: Lithic::Models::ClaimCreatedWebhookEvent::reason,
69
+ status: Lithic::Models::ClaimCreatedWebhookEvent::status,
70
+ submitted: Time?,
71
+ updated: Time
72
+ }
73
+
74
+ type disputed_transaction =
75
+ { event_tokens: ::Array[String], transaction_token: String }
76
+
77
+ class DisputedTransaction < Lithic::Internal::Type::BaseModel
78
+ attr_accessor event_tokens: ::Array[String]
79
+
80
+ attr_accessor transaction_token: String
81
+
82
+ def initialize: (
83
+ event_tokens: ::Array[String],
84
+ transaction_token: String
85
+ ) -> void
86
+
87
+ def to_hash: -> {
88
+ event_tokens: ::Array[String],
89
+ transaction_token: String
90
+ }
91
+ end
92
+
93
+ type outstanding_requirement = :QUESTIONNAIRE | :DOCUMENTS
94
+
95
+ module OutstandingRequirement
96
+ extend Lithic::Internal::Type::Enum
97
+
98
+ QUESTIONNAIRE: :QUESTIONNAIRE
99
+ DOCUMENTS: :DOCUMENTS
100
+
101
+ def self?.values: -> ::Array[Lithic::Models::ClaimCreatedWebhookEvent::outstanding_requirement]
102
+ end
103
+
104
+ type reason =
105
+ :CARD_NOT_PRESENT
106
+ | :CARD_LOST
107
+ | :CARD_STOLEN
108
+ | :CARD_NEVER_RECEIVED
109
+ | :COUNTERFEIT
110
+ | :ACCOUNT_TAKEOVER
111
+ | :PRODUCT_NOT_RECEIVED
112
+ | :NOT_AS_DESCRIBED
113
+ | :CREDIT_NOT_PROCESSED
114
+ | :CANCELLED_RECURRING
115
+ | :PAID_BY_OTHER_MEANS
116
+ | :DUPLICATE_CHARGE
117
+ | :LATE_PRESENTMENT
118
+ | :INCORRECT_TRANSACTION_CODE
119
+ | :NO_AUTHORIZATION
120
+ | :DECLINED
121
+ | :INCORRECT_AMOUNT
122
+ | :ATM_CASH_NOT_DISPENSED
123
+ | :ATM_DEPOSIT_WRONG_AMOUNT
124
+ | :ATM_DEPOSIT_MISSING
125
+
126
+ module Reason
127
+ extend Lithic::Internal::Type::Enum
128
+
129
+ CARD_NOT_PRESENT: :CARD_NOT_PRESENT
130
+ CARD_LOST: :CARD_LOST
131
+ CARD_STOLEN: :CARD_STOLEN
132
+ CARD_NEVER_RECEIVED: :CARD_NEVER_RECEIVED
133
+ COUNTERFEIT: :COUNTERFEIT
134
+ ACCOUNT_TAKEOVER: :ACCOUNT_TAKEOVER
135
+ PRODUCT_NOT_RECEIVED: :PRODUCT_NOT_RECEIVED
136
+ NOT_AS_DESCRIBED: :NOT_AS_DESCRIBED
137
+ CREDIT_NOT_PROCESSED: :CREDIT_NOT_PROCESSED
138
+ CANCELLED_RECURRING: :CANCELLED_RECURRING
139
+ PAID_BY_OTHER_MEANS: :PAID_BY_OTHER_MEANS
140
+ DUPLICATE_CHARGE: :DUPLICATE_CHARGE
141
+ LATE_PRESENTMENT: :LATE_PRESENTMENT
142
+ INCORRECT_TRANSACTION_CODE: :INCORRECT_TRANSACTION_CODE
143
+ NO_AUTHORIZATION: :NO_AUTHORIZATION
144
+ DECLINED: :DECLINED
145
+ INCORRECT_AMOUNT: :INCORRECT_AMOUNT
146
+ ATM_CASH_NOT_DISPENSED: :ATM_CASH_NOT_DISPENSED
147
+ ATM_DEPOSIT_WRONG_AMOUNT: :ATM_DEPOSIT_WRONG_AMOUNT
148
+ ATM_DEPOSIT_MISSING: :ATM_DEPOSIT_MISSING
149
+
150
+ def self?.values: -> ::Array[Lithic::Models::ClaimCreatedWebhookEvent::reason]
151
+ end
152
+
153
+ type status =
154
+ :INITIALIZING | :AWAITING_INFO | :SUBMITTED | :RESOLVED | :ABANDONED
155
+
156
+ module Status
157
+ extend Lithic::Internal::Type::Enum
158
+
159
+ INITIALIZING: :INITIALIZING
160
+ AWAITING_INFO: :AWAITING_INFO
161
+ SUBMITTED: :SUBMITTED
162
+ RESOLVED: :RESOLVED
163
+ ABANDONED: :ABANDONED
164
+
165
+ def self?.values: -> ::Array[Lithic::Models::ClaimCreatedWebhookEvent::status]
166
+ end
167
+ end
168
+ end
169
+ end
@@ -0,0 +1,131 @@
1
+ module Lithic
2
+ module Models
3
+ type claim_document_accepted_webhook_event =
4
+ {
5
+ token: String,
6
+ created: Time,
7
+ download_url: String?,
8
+ download_url_expires_at: Time?,
9
+ event_type: :"claim_document.accepted",
10
+ failure_reason: Lithic::Models::ClaimDocumentAcceptedWebhookEvent::failure_reason?,
11
+ name: String,
12
+ requirement_id: String?,
13
+ status: Lithic::Models::ClaimDocumentAcceptedWebhookEvent::status,
14
+ updated: Time,
15
+ upload_constraints: Lithic::ClaimDocumentAcceptedWebhookEvent::UploadConstraints?,
16
+ upload_url: String?,
17
+ upload_url_expires_at: Time?
18
+ }
19
+
20
+ class ClaimDocumentAcceptedWebhookEvent < Lithic::Internal::Type::BaseModel
21
+ attr_accessor token: String
22
+
23
+ attr_accessor created: Time
24
+
25
+ attr_accessor download_url: String?
26
+
27
+ attr_accessor download_url_expires_at: Time?
28
+
29
+ attr_accessor event_type: :"claim_document.accepted"
30
+
31
+ attr_accessor failure_reason: Lithic::Models::ClaimDocumentAcceptedWebhookEvent::failure_reason?
32
+
33
+ attr_accessor name: String
34
+
35
+ attr_accessor requirement_id: String?
36
+
37
+ attr_accessor status: Lithic::Models::ClaimDocumentAcceptedWebhookEvent::status
38
+
39
+ attr_accessor updated: Time
40
+
41
+ attr_accessor upload_constraints: Lithic::ClaimDocumentAcceptedWebhookEvent::UploadConstraints?
42
+
43
+ attr_accessor upload_url: String?
44
+
45
+ attr_accessor upload_url_expires_at: Time?
46
+
47
+ def initialize: (
48
+ token: String,
49
+ created: Time,
50
+ download_url: String?,
51
+ download_url_expires_at: Time?,
52
+ failure_reason: Lithic::Models::ClaimDocumentAcceptedWebhookEvent::failure_reason?,
53
+ name: String,
54
+ requirement_id: String?,
55
+ status: Lithic::Models::ClaimDocumentAcceptedWebhookEvent::status,
56
+ updated: Time,
57
+ upload_constraints: Lithic::ClaimDocumentAcceptedWebhookEvent::UploadConstraints?,
58
+ upload_url: String?,
59
+ upload_url_expires_at: Time?,
60
+ ?event_type: :"claim_document.accepted"
61
+ ) -> void
62
+
63
+ def to_hash: -> {
64
+ token: String,
65
+ created: Time,
66
+ download_url: String?,
67
+ download_url_expires_at: Time?,
68
+ event_type: :"claim_document.accepted",
69
+ failure_reason: Lithic::Models::ClaimDocumentAcceptedWebhookEvent::failure_reason?,
70
+ name: String,
71
+ requirement_id: String?,
72
+ status: Lithic::Models::ClaimDocumentAcceptedWebhookEvent::status,
73
+ updated: Time,
74
+ upload_constraints: Lithic::ClaimDocumentAcceptedWebhookEvent::UploadConstraints?,
75
+ upload_url: String?,
76
+ upload_url_expires_at: Time?
77
+ }
78
+
79
+ type failure_reason =
80
+ :INVALID_MIME_TYPE
81
+ | :FILE_TOO_LARGE
82
+ | :FILE_EMPTY
83
+ | :CORRUPT_FILE
84
+ | :OTHER
85
+
86
+ module FailureReason
87
+ extend Lithic::Internal::Type::Enum
88
+
89
+ INVALID_MIME_TYPE: :INVALID_MIME_TYPE
90
+ FILE_TOO_LARGE: :FILE_TOO_LARGE
91
+ FILE_EMPTY: :FILE_EMPTY
92
+ CORRUPT_FILE: :CORRUPT_FILE
93
+ OTHER: :OTHER
94
+
95
+ def self?.values: -> ::Array[Lithic::Models::ClaimDocumentAcceptedWebhookEvent::failure_reason]
96
+ end
97
+
98
+ type status = :PENDING | :VALIDATING | :ACCEPTED | :REJECTED
99
+
100
+ module Status
101
+ extend Lithic::Internal::Type::Enum
102
+
103
+ PENDING: :PENDING
104
+ VALIDATING: :VALIDATING
105
+ ACCEPTED: :ACCEPTED
106
+ REJECTED: :REJECTED
107
+
108
+ def self?.values: -> ::Array[Lithic::Models::ClaimDocumentAcceptedWebhookEvent::status]
109
+ end
110
+
111
+ type upload_constraints =
112
+ { accepted_mime_types: ::Array[String], max_size_bytes: Integer? }
113
+
114
+ class UploadConstraints < Lithic::Internal::Type::BaseModel
115
+ attr_accessor accepted_mime_types: ::Array[String]
116
+
117
+ attr_accessor max_size_bytes: Integer?
118
+
119
+ def initialize: (
120
+ accepted_mime_types: ::Array[String],
121
+ max_size_bytes: Integer?
122
+ ) -> void
123
+
124
+ def to_hash: -> {
125
+ accepted_mime_types: ::Array[String],
126
+ max_size_bytes: Integer?
127
+ }
128
+ end
129
+ end
130
+ end
131
+ end