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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +31 -0
- data/README.md +1 -1
- data/lib/lithic/internal/type/union.rb +7 -21
- data/lib/lithic/models/auth_rules/rule_feature.rb +291 -2
- data/lib/lithic/models/auth_rules/typescript_code_parameters.rb +2 -2
- data/lib/lithic/models/card_authorization.rb +7 -6
- data/lib/lithic/models/claim_created_webhook_event.rb +190 -0
- data/lib/lithic/models/claim_document_accepted_webhook_event.rb +175 -0
- data/lib/lithic/models/claim_document_rejected_webhook_event.rb +175 -0
- data/lib/lithic/models/claim_document_uploaded_webhook_event.rb +175 -0
- data/lib/lithic/models/claim_updated_webhook_event.rb +190 -0
- data/lib/lithic/models/event.rb +23 -0
- data/lib/lithic/models/event_list_params.rb +14 -0
- data/lib/lithic/models/event_subscription.rb +14 -0
- data/lib/lithic/models/events/subscription_create_params.rb +14 -0
- data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +5 -0
- data/lib/lithic/models/events/subscription_update_params.rb +14 -0
- data/lib/lithic/models/parsed_webhook_event.rb +11 -1
- data/lib/lithic/models/transaction_monitoring/case_transaction.rb +120 -43
- data/lib/lithic/models.rb +10 -0
- data/lib/lithic/resources/transaction_monitoring/cases.rb +1 -1
- data/lib/lithic/resources/webhooks.rb +1 -1
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +5 -0
- data/rbi/lithic/models/auth_rules/rule_feature.rbi +686 -2
- data/rbi/lithic/models/auth_rules/typescript_code_parameters.rbi +15 -3
- data/rbi/lithic/models/card_authorization.rbi +12 -10
- data/rbi/lithic/models/claim_created_webhook_event.rbi +386 -0
- data/rbi/lithic/models/claim_document_accepted_webhook_event.rbi +315 -0
- data/rbi/lithic/models/claim_document_rejected_webhook_event.rbi +315 -0
- data/rbi/lithic/models/claim_document_uploaded_webhook_event.rbi +315 -0
- data/rbi/lithic/models/claim_updated_webhook_event.rbi +386 -0
- data/rbi/lithic/models/event.rbi +46 -0
- data/rbi/lithic/models/event_list_params.rbi +34 -0
- data/rbi/lithic/models/event_subscription.rbi +34 -0
- data/rbi/lithic/models/events/subscription_create_params.rbi +34 -0
- data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +25 -0
- data/rbi/lithic/models/events/subscription_update_params.rbi +34 -0
- data/rbi/lithic/models/parsed_webhook_event.rbi +5 -0
- data/rbi/lithic/models/transaction_monitoring/case_transaction.rbi +151 -46
- data/rbi/lithic/models.rbi +13 -0
- data/rbi/lithic/resources/transaction_monitoring/cases.rbi +1 -1
- data/rbi/lithic/resources/webhooks.rbi +5 -0
- data/sig/lithic/models/auth_rules/rule_feature.rbs +252 -0
- data/sig/lithic/models/claim_created_webhook_event.rbs +169 -0
- data/sig/lithic/models/claim_document_accepted_webhook_event.rbs +131 -0
- data/sig/lithic/models/claim_document_rejected_webhook_event.rbs +131 -0
- data/sig/lithic/models/claim_document_uploaded_webhook_event.rbs +131 -0
- data/sig/lithic/models/claim_updated_webhook_event.rbs +169 -0
- data/sig/lithic/models/event.rbs +10 -0
- data/sig/lithic/models/event_list_params.rbs +10 -0
- data/sig/lithic/models/event_subscription.rbs +10 -0
- data/sig/lithic/models/events/subscription_create_params.rbs +10 -0
- data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +10 -0
- data/sig/lithic/models/events/subscription_update_params.rbs +10 -0
- data/sig/lithic/models/parsed_webhook_event.rbs +5 -0
- data/sig/lithic/models/transaction_monitoring/case_transaction.rbs +93 -34
- data/sig/lithic/models.rbs +10 -0
- data/sig/lithic/resources/transaction_monitoring/cases.rbs +1 -1
- data/sig/lithic/resources/webhooks.rbs +5 -0
- metadata +17 -2
data/rbi/lithic/models/event.rbi
CHANGED
|
@@ -47,6 +47,15 @@ module Lithic
|
|
|
47
47
|
# - card.renewed: Occurs when a card is renewed.
|
|
48
48
|
# - card.shipped: Occurs when a card is shipped.
|
|
49
49
|
# - card.updated: Occurs when a card is updated.
|
|
50
|
+
# - claim_document.accepted: Occurs when a claim document passes validation and is
|
|
51
|
+
# accepted.
|
|
52
|
+
# - claim_document.rejected: Occurs when a claim document fails validation and is
|
|
53
|
+
# rejected.
|
|
54
|
+
# - claim_document.uploaded: Occurs when a claim document is uploaded and begins
|
|
55
|
+
# validation.
|
|
56
|
+
# - claim.created: Occurs when a dispute intake claim is created.
|
|
57
|
+
# - claim.updated: Occurs when a dispute intake claim is updated, such as a status
|
|
58
|
+
# change or a change to its outstanding requirements.
|
|
50
59
|
# - digital_wallet.tokenization_result: Occurs when a tokenization request
|
|
51
60
|
# succeeded or failed.
|
|
52
61
|
#
|
|
@@ -173,6 +182,15 @@ module Lithic
|
|
|
173
182
|
# - card.renewed: Occurs when a card is renewed.
|
|
174
183
|
# - card.shipped: Occurs when a card is shipped.
|
|
175
184
|
# - card.updated: Occurs when a card is updated.
|
|
185
|
+
# - claim_document.accepted: Occurs when a claim document passes validation and is
|
|
186
|
+
# accepted.
|
|
187
|
+
# - claim_document.rejected: Occurs when a claim document fails validation and is
|
|
188
|
+
# rejected.
|
|
189
|
+
# - claim_document.uploaded: Occurs when a claim document is uploaded and begins
|
|
190
|
+
# validation.
|
|
191
|
+
# - claim.created: Occurs when a dispute intake claim is created.
|
|
192
|
+
# - claim.updated: Occurs when a dispute intake claim is updated, such as a status
|
|
193
|
+
# change or a change to its outstanding requirements.
|
|
176
194
|
# - digital_wallet.tokenization_result: Occurs when a tokenization request
|
|
177
195
|
# succeeded or failed.
|
|
178
196
|
#
|
|
@@ -295,6 +313,15 @@ module Lithic
|
|
|
295
313
|
# - card.renewed: Occurs when a card is renewed.
|
|
296
314
|
# - card.shipped: Occurs when a card is shipped.
|
|
297
315
|
# - card.updated: Occurs when a card is updated.
|
|
316
|
+
# - claim_document.accepted: Occurs when a claim document passes validation and is
|
|
317
|
+
# accepted.
|
|
318
|
+
# - claim_document.rejected: Occurs when a claim document fails validation and is
|
|
319
|
+
# rejected.
|
|
320
|
+
# - claim_document.uploaded: Occurs when a claim document is uploaded and begins
|
|
321
|
+
# validation.
|
|
322
|
+
# - claim.created: Occurs when a dispute intake claim is created.
|
|
323
|
+
# - claim.updated: Occurs when a dispute intake claim is updated, such as a status
|
|
324
|
+
# change or a change to its outstanding requirements.
|
|
298
325
|
# - digital_wallet.tokenization_result: Occurs when a tokenization request
|
|
299
326
|
# succeeded or failed.
|
|
300
327
|
#
|
|
@@ -447,6 +474,25 @@ module Lithic
|
|
|
447
474
|
T.let(:"card.shipped", Lithic::Event::EventType::TaggedSymbol)
|
|
448
475
|
CARD_UPDATED =
|
|
449
476
|
T.let(:"card.updated", Lithic::Event::EventType::TaggedSymbol)
|
|
477
|
+
CLAIM_DOCUMENT_ACCEPTED =
|
|
478
|
+
T.let(
|
|
479
|
+
:"claim_document.accepted",
|
|
480
|
+
Lithic::Event::EventType::TaggedSymbol
|
|
481
|
+
)
|
|
482
|
+
CLAIM_DOCUMENT_REJECTED =
|
|
483
|
+
T.let(
|
|
484
|
+
:"claim_document.rejected",
|
|
485
|
+
Lithic::Event::EventType::TaggedSymbol
|
|
486
|
+
)
|
|
487
|
+
CLAIM_DOCUMENT_UPLOADED =
|
|
488
|
+
T.let(
|
|
489
|
+
:"claim_document.uploaded",
|
|
490
|
+
Lithic::Event::EventType::TaggedSymbol
|
|
491
|
+
)
|
|
492
|
+
CLAIM_CREATED =
|
|
493
|
+
T.let(:"claim.created", Lithic::Event::EventType::TaggedSymbol)
|
|
494
|
+
CLAIM_UPDATED =
|
|
495
|
+
T.let(:"claim.updated", Lithic::Event::EventType::TaggedSymbol)
|
|
450
496
|
DIGITAL_WALLET_TOKENIZATION_RESULT =
|
|
451
497
|
T.let(
|
|
452
498
|
:"digital_wallet.tokenization_result",
|
|
@@ -156,6 +156,15 @@ module Lithic
|
|
|
156
156
|
# - card.renewed: Occurs when a card is renewed.
|
|
157
157
|
# - card.shipped: Occurs when a card is shipped.
|
|
158
158
|
# - card.updated: Occurs when a card is updated.
|
|
159
|
+
# - claim_document.accepted: Occurs when a claim document passes validation and is
|
|
160
|
+
# accepted.
|
|
161
|
+
# - claim_document.rejected: Occurs when a claim document fails validation and is
|
|
162
|
+
# rejected.
|
|
163
|
+
# - claim_document.uploaded: Occurs when a claim document is uploaded and begins
|
|
164
|
+
# validation.
|
|
165
|
+
# - claim.created: Occurs when a dispute intake claim is created.
|
|
166
|
+
# - claim.updated: Occurs when a dispute intake claim is updated, such as a status
|
|
167
|
+
# change or a change to its outstanding requirements.
|
|
159
168
|
# - digital_wallet.tokenization_result: Occurs when a tokenization request
|
|
160
169
|
# succeeded or failed.
|
|
161
170
|
#
|
|
@@ -330,6 +339,31 @@ module Lithic
|
|
|
330
339
|
:"card.updated",
|
|
331
340
|
Lithic::EventListParams::EventType::TaggedSymbol
|
|
332
341
|
)
|
|
342
|
+
CLAIM_DOCUMENT_ACCEPTED =
|
|
343
|
+
T.let(
|
|
344
|
+
:"claim_document.accepted",
|
|
345
|
+
Lithic::EventListParams::EventType::TaggedSymbol
|
|
346
|
+
)
|
|
347
|
+
CLAIM_DOCUMENT_REJECTED =
|
|
348
|
+
T.let(
|
|
349
|
+
:"claim_document.rejected",
|
|
350
|
+
Lithic::EventListParams::EventType::TaggedSymbol
|
|
351
|
+
)
|
|
352
|
+
CLAIM_DOCUMENT_UPLOADED =
|
|
353
|
+
T.let(
|
|
354
|
+
:"claim_document.uploaded",
|
|
355
|
+
Lithic::EventListParams::EventType::TaggedSymbol
|
|
356
|
+
)
|
|
357
|
+
CLAIM_CREATED =
|
|
358
|
+
T.let(
|
|
359
|
+
:"claim.created",
|
|
360
|
+
Lithic::EventListParams::EventType::TaggedSymbol
|
|
361
|
+
)
|
|
362
|
+
CLAIM_UPDATED =
|
|
363
|
+
T.let(
|
|
364
|
+
:"claim.updated",
|
|
365
|
+
Lithic::EventListParams::EventType::TaggedSymbol
|
|
366
|
+
)
|
|
333
367
|
DIGITAL_WALLET_TOKENIZATION_RESULT =
|
|
334
368
|
T.let(
|
|
335
369
|
:"digital_wallet.tokenization_result",
|
|
@@ -104,6 +104,15 @@ module Lithic
|
|
|
104
104
|
# - card.renewed: Occurs when a card is renewed.
|
|
105
105
|
# - card.shipped: Occurs when a card is shipped.
|
|
106
106
|
# - card.updated: Occurs when a card is updated.
|
|
107
|
+
# - claim_document.accepted: Occurs when a claim document passes validation and is
|
|
108
|
+
# accepted.
|
|
109
|
+
# - claim_document.rejected: Occurs when a claim document fails validation and is
|
|
110
|
+
# rejected.
|
|
111
|
+
# - claim_document.uploaded: Occurs when a claim document is uploaded and begins
|
|
112
|
+
# validation.
|
|
113
|
+
# - claim.created: Occurs when a dispute intake claim is created.
|
|
114
|
+
# - claim.updated: Occurs when a dispute intake claim is updated, such as a status
|
|
115
|
+
# change or a change to its outstanding requirements.
|
|
107
116
|
# - digital_wallet.tokenization_result: Occurs when a tokenization request
|
|
108
117
|
# succeeded or failed.
|
|
109
118
|
#
|
|
@@ -278,6 +287,31 @@ module Lithic
|
|
|
278
287
|
:"card.updated",
|
|
279
288
|
Lithic::EventSubscription::EventType::TaggedSymbol
|
|
280
289
|
)
|
|
290
|
+
CLAIM_DOCUMENT_ACCEPTED =
|
|
291
|
+
T.let(
|
|
292
|
+
:"claim_document.accepted",
|
|
293
|
+
Lithic::EventSubscription::EventType::TaggedSymbol
|
|
294
|
+
)
|
|
295
|
+
CLAIM_DOCUMENT_REJECTED =
|
|
296
|
+
T.let(
|
|
297
|
+
:"claim_document.rejected",
|
|
298
|
+
Lithic::EventSubscription::EventType::TaggedSymbol
|
|
299
|
+
)
|
|
300
|
+
CLAIM_DOCUMENT_UPLOADED =
|
|
301
|
+
T.let(
|
|
302
|
+
:"claim_document.uploaded",
|
|
303
|
+
Lithic::EventSubscription::EventType::TaggedSymbol
|
|
304
|
+
)
|
|
305
|
+
CLAIM_CREATED =
|
|
306
|
+
T.let(
|
|
307
|
+
:"claim.created",
|
|
308
|
+
Lithic::EventSubscription::EventType::TaggedSymbol
|
|
309
|
+
)
|
|
310
|
+
CLAIM_UPDATED =
|
|
311
|
+
T.let(
|
|
312
|
+
:"claim.updated",
|
|
313
|
+
Lithic::EventSubscription::EventType::TaggedSymbol
|
|
314
|
+
)
|
|
281
315
|
DIGITAL_WALLET_TOKENIZATION_RESULT =
|
|
282
316
|
T.let(
|
|
283
317
|
:"digital_wallet.tokenization_result",
|
|
@@ -131,6 +131,15 @@ module Lithic
|
|
|
131
131
|
# - card.renewed: Occurs when a card is renewed.
|
|
132
132
|
# - card.shipped: Occurs when a card is shipped.
|
|
133
133
|
# - card.updated: Occurs when a card is updated.
|
|
134
|
+
# - claim_document.accepted: Occurs when a claim document passes validation and is
|
|
135
|
+
# accepted.
|
|
136
|
+
# - claim_document.rejected: Occurs when a claim document fails validation and is
|
|
137
|
+
# rejected.
|
|
138
|
+
# - claim_document.uploaded: Occurs when a claim document is uploaded and begins
|
|
139
|
+
# validation.
|
|
140
|
+
# - claim.created: Occurs when a dispute intake claim is created.
|
|
141
|
+
# - claim.updated: Occurs when a dispute intake claim is updated, such as a status
|
|
142
|
+
# change or a change to its outstanding requirements.
|
|
134
143
|
# - digital_wallet.tokenization_result: Occurs when a tokenization request
|
|
135
144
|
# succeeded or failed.
|
|
136
145
|
#
|
|
@@ -307,6 +316,31 @@ module Lithic
|
|
|
307
316
|
:"card.updated",
|
|
308
317
|
Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
|
|
309
318
|
)
|
|
319
|
+
CLAIM_DOCUMENT_ACCEPTED =
|
|
320
|
+
T.let(
|
|
321
|
+
:"claim_document.accepted",
|
|
322
|
+
Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
|
|
323
|
+
)
|
|
324
|
+
CLAIM_DOCUMENT_REJECTED =
|
|
325
|
+
T.let(
|
|
326
|
+
:"claim_document.rejected",
|
|
327
|
+
Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
|
|
328
|
+
)
|
|
329
|
+
CLAIM_DOCUMENT_UPLOADED =
|
|
330
|
+
T.let(
|
|
331
|
+
:"claim_document.uploaded",
|
|
332
|
+
Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
|
|
333
|
+
)
|
|
334
|
+
CLAIM_CREATED =
|
|
335
|
+
T.let(
|
|
336
|
+
:"claim.created",
|
|
337
|
+
Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
|
|
338
|
+
)
|
|
339
|
+
CLAIM_UPDATED =
|
|
340
|
+
T.let(
|
|
341
|
+
:"claim.updated",
|
|
342
|
+
Lithic::Events::SubscriptionCreateParams::EventType::TaggedSymbol
|
|
343
|
+
)
|
|
310
344
|
DIGITAL_WALLET_TOKENIZATION_RESULT =
|
|
311
345
|
T.let(
|
|
312
346
|
:"digital_wallet.tokenization_result",
|
|
@@ -173,6 +173,31 @@ module Lithic
|
|
|
173
173
|
:"card.updated",
|
|
174
174
|
Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
|
|
175
175
|
)
|
|
176
|
+
CLAIM_DOCUMENT_ACCEPTED =
|
|
177
|
+
T.let(
|
|
178
|
+
:"claim_document.accepted",
|
|
179
|
+
Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
|
|
180
|
+
)
|
|
181
|
+
CLAIM_DOCUMENT_REJECTED =
|
|
182
|
+
T.let(
|
|
183
|
+
:"claim_document.rejected",
|
|
184
|
+
Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
|
|
185
|
+
)
|
|
186
|
+
CLAIM_DOCUMENT_UPLOADED =
|
|
187
|
+
T.let(
|
|
188
|
+
:"claim_document.uploaded",
|
|
189
|
+
Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
|
|
190
|
+
)
|
|
191
|
+
CLAIM_CREATED =
|
|
192
|
+
T.let(
|
|
193
|
+
:"claim.created",
|
|
194
|
+
Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
|
|
195
|
+
)
|
|
196
|
+
CLAIM_UPDATED =
|
|
197
|
+
T.let(
|
|
198
|
+
:"claim.updated",
|
|
199
|
+
Lithic::Events::SubscriptionSendSimulatedExampleParams::EventType::TaggedSymbol
|
|
200
|
+
)
|
|
176
201
|
DIGITAL_WALLET_TOKENIZATION_RESULT =
|
|
177
202
|
T.let(
|
|
178
203
|
:"digital_wallet.tokenization_result",
|
|
@@ -137,6 +137,15 @@ module Lithic
|
|
|
137
137
|
# - card.renewed: Occurs when a card is renewed.
|
|
138
138
|
# - card.shipped: Occurs when a card is shipped.
|
|
139
139
|
# - card.updated: Occurs when a card is updated.
|
|
140
|
+
# - claim_document.accepted: Occurs when a claim document passes validation and is
|
|
141
|
+
# accepted.
|
|
142
|
+
# - claim_document.rejected: Occurs when a claim document fails validation and is
|
|
143
|
+
# rejected.
|
|
144
|
+
# - claim_document.uploaded: Occurs when a claim document is uploaded and begins
|
|
145
|
+
# validation.
|
|
146
|
+
# - claim.created: Occurs when a dispute intake claim is created.
|
|
147
|
+
# - claim.updated: Occurs when a dispute intake claim is updated, such as a status
|
|
148
|
+
# change or a change to its outstanding requirements.
|
|
140
149
|
# - digital_wallet.tokenization_result: Occurs when a tokenization request
|
|
141
150
|
# succeeded or failed.
|
|
142
151
|
#
|
|
@@ -313,6 +322,31 @@ module Lithic
|
|
|
313
322
|
:"card.updated",
|
|
314
323
|
Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
|
|
315
324
|
)
|
|
325
|
+
CLAIM_DOCUMENT_ACCEPTED =
|
|
326
|
+
T.let(
|
|
327
|
+
:"claim_document.accepted",
|
|
328
|
+
Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
|
|
329
|
+
)
|
|
330
|
+
CLAIM_DOCUMENT_REJECTED =
|
|
331
|
+
T.let(
|
|
332
|
+
:"claim_document.rejected",
|
|
333
|
+
Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
|
|
334
|
+
)
|
|
335
|
+
CLAIM_DOCUMENT_UPLOADED =
|
|
336
|
+
T.let(
|
|
337
|
+
:"claim_document.uploaded",
|
|
338
|
+
Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
|
|
339
|
+
)
|
|
340
|
+
CLAIM_CREATED =
|
|
341
|
+
T.let(
|
|
342
|
+
:"claim.created",
|
|
343
|
+
Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
|
|
344
|
+
)
|
|
345
|
+
CLAIM_UPDATED =
|
|
346
|
+
T.let(
|
|
347
|
+
:"claim.updated",
|
|
348
|
+
Lithic::Events::SubscriptionUpdateParams::EventType::TaggedSymbol
|
|
349
|
+
)
|
|
316
350
|
DIGITAL_WALLET_TOKENIZATION_RESULT =
|
|
317
351
|
T.let(
|
|
318
352
|
:"digital_wallet.tokenization_result",
|
|
@@ -31,6 +31,11 @@ module Lithic
|
|
|
31
31
|
Lithic::CardTransactionUpdatedWebhookEvent,
|
|
32
32
|
Lithic::CardTransactionEnhancedDataCreatedWebhookEvent,
|
|
33
33
|
Lithic::CardTransactionEnhancedDataUpdatedWebhookEvent,
|
|
34
|
+
Lithic::ClaimCreatedWebhookEvent,
|
|
35
|
+
Lithic::ClaimUpdatedWebhookEvent,
|
|
36
|
+
Lithic::ClaimDocumentUploadedWebhookEvent,
|
|
37
|
+
Lithic::ClaimDocumentAcceptedWebhookEvent,
|
|
38
|
+
Lithic::ClaimDocumentRejectedWebhookEvent,
|
|
34
39
|
Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent,
|
|
35
40
|
Lithic::DigitalWalletTokenizationResultWebhookEvent,
|
|
36
41
|
Lithic::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent,
|
|
@@ -3,71 +3,176 @@
|
|
|
3
3
|
module Lithic
|
|
4
4
|
module Models
|
|
5
5
|
module TransactionMonitoring
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
# A single transaction associated with a case. The `category` field identifies
|
|
7
|
+
# whether this is a card transaction or a payment transaction.
|
|
8
|
+
module CaseTransaction
|
|
9
|
+
extend Lithic::Internal::Type::Union
|
|
10
|
+
|
|
11
|
+
Variants =
|
|
8
12
|
T.type_alias do
|
|
9
13
|
T.any(
|
|
10
|
-
Lithic::TransactionMonitoring::CaseTransaction,
|
|
11
|
-
Lithic::
|
|
14
|
+
Lithic::TransactionMonitoring::CaseTransaction::CardCaseTransaction,
|
|
15
|
+
Lithic::TransactionMonitoring::CaseTransaction::PaymentCaseTransaction
|
|
12
16
|
)
|
|
13
17
|
end
|
|
14
18
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
19
|
+
class CardCaseTransaction < Lithic::Internal::Type::BaseModel
|
|
20
|
+
OrHash =
|
|
21
|
+
T.type_alias do
|
|
22
|
+
T.any(
|
|
23
|
+
Lithic::TransactionMonitoring::CaseTransaction::CardCaseTransaction,
|
|
24
|
+
Lithic::Internal::AnyHash
|
|
25
|
+
)
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# Globally unique identifier for the card transaction
|
|
29
|
+
sig { returns(String) }
|
|
30
|
+
attr_accessor :token
|
|
18
31
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
32
|
+
# Token of the account the transaction belongs to
|
|
33
|
+
sig { returns(String) }
|
|
34
|
+
attr_accessor :account_token
|
|
22
35
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
36
|
+
# Date and time at which the transaction was added to the case
|
|
37
|
+
sig { returns(Time) }
|
|
38
|
+
attr_accessor :added_at
|
|
26
39
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
40
|
+
# Token of the card the transaction was made on
|
|
41
|
+
sig { returns(String) }
|
|
42
|
+
attr_accessor :card_token
|
|
30
43
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
attr_accessor :transaction_created_at
|
|
44
|
+
sig { returns(Symbol) }
|
|
45
|
+
attr_accessor :category
|
|
34
46
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
47
|
+
# Date and time at which the transaction was created
|
|
48
|
+
sig { returns(Time) }
|
|
49
|
+
attr_accessor :transaction_created_at
|
|
50
|
+
|
|
51
|
+
# A card transaction associated with a case
|
|
52
|
+
sig do
|
|
53
|
+
params(
|
|
54
|
+
token: String,
|
|
55
|
+
account_token: String,
|
|
56
|
+
added_at: Time,
|
|
57
|
+
card_token: String,
|
|
58
|
+
transaction_created_at: Time,
|
|
59
|
+
category: Symbol
|
|
60
|
+
).returns(T.attached_class)
|
|
61
|
+
end
|
|
62
|
+
def self.new(
|
|
63
|
+
# Globally unique identifier for the card transaction
|
|
64
|
+
token:,
|
|
65
|
+
# Token of the account the transaction belongs to
|
|
66
|
+
account_token:,
|
|
67
|
+
# Date and time at which the transaction was added to the case
|
|
68
|
+
added_at:,
|
|
69
|
+
# Token of the card the transaction was made on
|
|
70
|
+
card_token:,
|
|
71
|
+
# Date and time at which the transaction was created
|
|
72
|
+
transaction_created_at:,
|
|
73
|
+
category: :CARD
|
|
74
|
+
)
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
sig do
|
|
78
|
+
override.returns(
|
|
79
|
+
{
|
|
80
|
+
token: String,
|
|
81
|
+
account_token: String,
|
|
82
|
+
added_at: Time,
|
|
83
|
+
card_token: String,
|
|
84
|
+
category: Symbol,
|
|
85
|
+
transaction_created_at: Time
|
|
86
|
+
}
|
|
87
|
+
)
|
|
88
|
+
end
|
|
89
|
+
def to_hash
|
|
90
|
+
end
|
|
44
91
|
end
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
92
|
+
|
|
93
|
+
class PaymentCaseTransaction < Lithic::Internal::Type::BaseModel
|
|
94
|
+
OrHash =
|
|
95
|
+
T.type_alias do
|
|
96
|
+
T.any(
|
|
97
|
+
Lithic::TransactionMonitoring::CaseTransaction::PaymentCaseTransaction,
|
|
98
|
+
Lithic::Internal::AnyHash
|
|
99
|
+
)
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# Globally unique identifier for the payment transaction
|
|
103
|
+
sig { returns(String) }
|
|
104
|
+
attr_accessor :token
|
|
105
|
+
|
|
50
106
|
# Date and time at which the transaction was added to the case
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
107
|
+
sig { returns(Time) }
|
|
108
|
+
attr_accessor :added_at
|
|
109
|
+
|
|
110
|
+
sig { returns(Symbol) }
|
|
111
|
+
attr_accessor :category
|
|
112
|
+
|
|
113
|
+
# Token of the financial account the payment belongs to
|
|
114
|
+
sig { returns(String) }
|
|
115
|
+
attr_accessor :financial_account_token
|
|
116
|
+
|
|
54
117
|
# Date and time at which the transaction was created
|
|
55
|
-
|
|
56
|
-
|
|
118
|
+
sig { returns(Time) }
|
|
119
|
+
attr_accessor :transaction_created_at
|
|
120
|
+
|
|
121
|
+
# Token of the account the payment belongs to, if applicable
|
|
122
|
+
sig { returns(T.nilable(String)) }
|
|
123
|
+
attr_reader :account_token
|
|
124
|
+
|
|
125
|
+
sig { params(account_token: String).void }
|
|
126
|
+
attr_writer :account_token
|
|
127
|
+
|
|
128
|
+
# A payment (ACH) transaction associated with a case
|
|
129
|
+
sig do
|
|
130
|
+
params(
|
|
131
|
+
token: String,
|
|
132
|
+
added_at: Time,
|
|
133
|
+
financial_account_token: String,
|
|
134
|
+
transaction_created_at: Time,
|
|
135
|
+
account_token: String,
|
|
136
|
+
category: Symbol
|
|
137
|
+
).returns(T.attached_class)
|
|
138
|
+
end
|
|
139
|
+
def self.new(
|
|
140
|
+
# Globally unique identifier for the payment transaction
|
|
141
|
+
token:,
|
|
142
|
+
# Date and time at which the transaction was added to the case
|
|
143
|
+
added_at:,
|
|
144
|
+
# Token of the financial account the payment belongs to
|
|
145
|
+
financial_account_token:,
|
|
146
|
+
# Date and time at which the transaction was created
|
|
147
|
+
transaction_created_at:,
|
|
148
|
+
# Token of the account the payment belongs to, if applicable
|
|
149
|
+
account_token: nil,
|
|
150
|
+
category: :PAYMENT
|
|
151
|
+
)
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
sig do
|
|
155
|
+
override.returns(
|
|
156
|
+
{
|
|
157
|
+
token: String,
|
|
158
|
+
added_at: Time,
|
|
159
|
+
category: Symbol,
|
|
160
|
+
financial_account_token: String,
|
|
161
|
+
transaction_created_at: Time,
|
|
162
|
+
account_token: String
|
|
163
|
+
}
|
|
164
|
+
)
|
|
165
|
+
end
|
|
166
|
+
def to_hash
|
|
167
|
+
end
|
|
57
168
|
end
|
|
58
169
|
|
|
59
170
|
sig do
|
|
60
171
|
override.returns(
|
|
61
|
-
|
|
62
|
-
token: String,
|
|
63
|
-
account_token: String,
|
|
64
|
-
added_at: Time,
|
|
65
|
-
card_token: String,
|
|
66
|
-
transaction_created_at: Time
|
|
67
|
-
}
|
|
172
|
+
T::Array[Lithic::TransactionMonitoring::CaseTransaction::Variants]
|
|
68
173
|
)
|
|
69
174
|
end
|
|
70
|
-
def
|
|
175
|
+
def self.variants
|
|
71
176
|
end
|
|
72
177
|
end
|
|
73
178
|
end
|
data/rbi/lithic/models.rbi
CHANGED
|
@@ -194,6 +194,19 @@ module Lithic
|
|
|
194
194
|
|
|
195
195
|
CategoryDetails = Lithic::Models::CategoryDetails
|
|
196
196
|
|
|
197
|
+
ClaimCreatedWebhookEvent = Lithic::Models::ClaimCreatedWebhookEvent
|
|
198
|
+
|
|
199
|
+
ClaimDocumentAcceptedWebhookEvent =
|
|
200
|
+
Lithic::Models::ClaimDocumentAcceptedWebhookEvent
|
|
201
|
+
|
|
202
|
+
ClaimDocumentRejectedWebhookEvent =
|
|
203
|
+
Lithic::Models::ClaimDocumentRejectedWebhookEvent
|
|
204
|
+
|
|
205
|
+
ClaimDocumentUploadedWebhookEvent =
|
|
206
|
+
Lithic::Models::ClaimDocumentUploadedWebhookEvent
|
|
207
|
+
|
|
208
|
+
ClaimUpdatedWebhookEvent = Lithic::Models::ClaimUpdatedWebhookEvent
|
|
209
|
+
|
|
197
210
|
ClientAPIStatusParams = Lithic::Models::ClientAPIStatusParams
|
|
198
211
|
|
|
199
212
|
CreditProducts = Lithic::Models::CreditProducts
|
|
@@ -32,6 +32,11 @@ module Lithic
|
|
|
32
32
|
Lithic::CardTransactionUpdatedWebhookEvent,
|
|
33
33
|
Lithic::CardTransactionEnhancedDataCreatedWebhookEvent,
|
|
34
34
|
Lithic::CardTransactionEnhancedDataUpdatedWebhookEvent,
|
|
35
|
+
Lithic::ClaimCreatedWebhookEvent,
|
|
36
|
+
Lithic::ClaimUpdatedWebhookEvent,
|
|
37
|
+
Lithic::ClaimDocumentUploadedWebhookEvent,
|
|
38
|
+
Lithic::ClaimDocumentAcceptedWebhookEvent,
|
|
39
|
+
Lithic::ClaimDocumentRejectedWebhookEvent,
|
|
35
40
|
Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent,
|
|
36
41
|
Lithic::DigitalWalletTokenizationResultWebhookEvent,
|
|
37
42
|
Lithic::DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent,
|