Skip to content

Commit 2d391d3

Browse files
feat(api): add claim and claim_document webhook events
1 parent fe58d36 commit 2d391d3

7 files changed

Lines changed: 534 additions & 2 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 214
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-185b3d93b4e6ed5ae02c32f0bc9133b0ac99dcd1263a12b7aa9ba64e71a5461e.yml
3-
openapi_spec_hash: 2418116f58a464afdd5611865e860d30
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-48e8284d7f1f51f36402cf5f22a23b27071af86110e2aeddb8da06f8c790fd3d.yml
3+
openapi_spec_hash: a64ba9e94686bce4f0a8c5b1b3c704da
44
config_hash: 5bb913c05ebeb301ec925b16e75bb251

api.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -903,6 +903,11 @@ Types:
903903
- <code><a href="./src/resources/webhooks.ts">CardTransactionUpdatedWebhookEvent</a></code>
904904
- <code><a href="./src/resources/webhooks.ts">CardTransactionEnhancedDataCreatedWebhookEvent</a></code>
905905
- <code><a href="./src/resources/webhooks.ts">CardTransactionEnhancedDataUpdatedWebhookEvent</a></code>
906+
- <code><a href="./src/resources/webhooks.ts">ClaimCreatedWebhookEvent</a></code>
907+
- <code><a href="./src/resources/webhooks.ts">ClaimUpdatedWebhookEvent</a></code>
908+
- <code><a href="./src/resources/webhooks.ts">ClaimDocumentUploadedWebhookEvent</a></code>
909+
- <code><a href="./src/resources/webhooks.ts">ClaimDocumentAcceptedWebhookEvent</a></code>
910+
- <code><a href="./src/resources/webhooks.ts">ClaimDocumentRejectedWebhookEvent</a></code>
906911
- <code><a href="./src/resources/webhooks.ts">DigitalWalletTokenizationApprovalRequestWebhookEvent</a></code>
907912
- <code><a href="./src/resources/webhooks.ts">DigitalWalletTokenizationResultWebhookEvent</a></code>
908913
- <code><a href="./src/resources/webhooks.ts">DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent</a></code>

src/client.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,11 @@ import {
211211
CardTransactionEnhancedDataUpdatedWebhookEvent,
212212
CardTransactionUpdatedWebhookEvent,
213213
CardUpdatedWebhookEvent,
214+
ClaimCreatedWebhookEvent,
215+
ClaimDocumentAcceptedWebhookEvent,
216+
ClaimDocumentRejectedWebhookEvent,
217+
ClaimDocumentUploadedWebhookEvent,
218+
ClaimUpdatedWebhookEvent,
214219
DigitalWalletTokenizationApprovalRequestWebhookEvent,
215220
DigitalWalletTokenizationResultWebhookEvent,
216221
DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent,
@@ -1606,6 +1611,11 @@ export declare namespace Lithic {
16061611
type CardTransactionUpdatedWebhookEvent as CardTransactionUpdatedWebhookEvent,
16071612
type CardTransactionEnhancedDataCreatedWebhookEvent as CardTransactionEnhancedDataCreatedWebhookEvent,
16081613
type CardTransactionEnhancedDataUpdatedWebhookEvent as CardTransactionEnhancedDataUpdatedWebhookEvent,
1614+
type ClaimCreatedWebhookEvent as ClaimCreatedWebhookEvent,
1615+
type ClaimUpdatedWebhookEvent as ClaimUpdatedWebhookEvent,
1616+
type ClaimDocumentUploadedWebhookEvent as ClaimDocumentUploadedWebhookEvent,
1617+
type ClaimDocumentAcceptedWebhookEvent as ClaimDocumentAcceptedWebhookEvent,
1618+
type ClaimDocumentRejectedWebhookEvent as ClaimDocumentRejectedWebhookEvent,
16091619
type DigitalWalletTokenizationApprovalRequestWebhookEvent as DigitalWalletTokenizationApprovalRequestWebhookEvent,
16101620
type DigitalWalletTokenizationResultWebhookEvent as DigitalWalletTokenizationResultWebhookEvent,
16111621
type DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent as DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent,

src/resources/events/events.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,15 @@ export interface Event {
127127
* - card.renewed: Occurs when a card is renewed.
128128
* - card.shipped: Occurs when a card is shipped.
129129
* - card.updated: Occurs when a card is updated.
130+
* - claim_document.accepted: Occurs when a claim document passes validation and is
131+
* accepted.
132+
* - claim_document.rejected: Occurs when a claim document fails validation and is
133+
* rejected.
134+
* - claim_document.uploaded: Occurs when a claim document is uploaded and begins
135+
* validation.
136+
* - claim.created: Occurs when a dispute intake claim is created.
137+
* - claim.updated: Occurs when a dispute intake claim is updated, such as a status
138+
* change or a change to its outstanding requirements.
130139
* - digital_wallet.tokenization_result: Occurs when a tokenization request
131140
* succeeded or failed.
132141
*
@@ -220,6 +229,11 @@ export interface Event {
220229
| 'card.renewed'
221230
| 'card.shipped'
222231
| 'card.updated'
232+
| 'claim_document.accepted'
233+
| 'claim_document.rejected'
234+
| 'claim_document.uploaded'
235+
| 'claim.created'
236+
| 'claim.updated'
223237
| 'digital_wallet.tokenization_result'
224238
| 'digital_wallet.tokenization_two_factor_authentication_code'
225239
| 'digital_wallet.tokenization_two_factor_authentication_code_sent'
@@ -300,6 +314,11 @@ export interface EventSubscription {
300314
| 'card.renewed'
301315
| 'card.shipped'
302316
| 'card.updated'
317+
| 'claim_document.accepted'
318+
| 'claim_document.rejected'
319+
| 'claim_document.uploaded'
320+
| 'claim.created'
321+
| 'claim.updated'
303322
| 'digital_wallet.tokenization_result'
304323
| 'digital_wallet.tokenization_two_factor_authentication_code'
305324
| 'digital_wallet.tokenization_two_factor_authentication_code_sent'
@@ -418,6 +437,11 @@ export interface EventListParams extends CursorPageParams {
418437
| 'card.renewed'
419438
| 'card.shipped'
420439
| 'card.updated'
440+
| 'claim_document.accepted'
441+
| 'claim_document.rejected'
442+
| 'claim_document.uploaded'
443+
| 'claim.created'
444+
| 'claim.updated'
421445
| 'digital_wallet.tokenization_result'
422446
| 'digital_wallet.tokenization_two_factor_authentication_code'
423447
| 'digital_wallet.tokenization_two_factor_authentication_code_sent'

src/resources/events/subscriptions.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,11 @@ export interface SubscriptionCreateParams {
186186
| 'card.renewed'
187187
| 'card.shipped'
188188
| 'card.updated'
189+
| 'claim_document.accepted'
190+
| 'claim_document.rejected'
191+
| 'claim_document.uploaded'
192+
| 'claim.created'
193+
| 'claim.updated'
189194
| 'digital_wallet.tokenization_result'
190195
| 'digital_wallet.tokenization_two_factor_authentication_code'
191196
| 'digital_wallet.tokenization_two_factor_authentication_code_sent'
@@ -264,6 +269,11 @@ export interface SubscriptionUpdateParams {
264269
| 'card.renewed'
265270
| 'card.shipped'
266271
| 'card.updated'
272+
| 'claim_document.accepted'
273+
| 'claim_document.rejected'
274+
| 'claim_document.uploaded'
275+
| 'claim.created'
276+
| 'claim.updated'
267277
| 'digital_wallet.tokenization_result'
268278
| 'digital_wallet.tokenization_two_factor_authentication_code'
269279
| 'digital_wallet.tokenization_two_factor_authentication_code_sent'
@@ -372,6 +382,11 @@ export interface SubscriptionSendSimulatedExampleParams {
372382
| 'card.renewed'
373383
| 'card.shipped'
374384
| 'card.updated'
385+
| 'claim_document.accepted'
386+
| 'claim_document.rejected'
387+
| 'claim_document.uploaded'
388+
| 'claim.created'
389+
| 'claim.updated'
375390
| 'digital_wallet.tokenization_result'
376391
| 'digital_wallet.tokenization_two_factor_authentication_code'
377392
| 'digital_wallet.tokenization_two_factor_authentication_code_sent'

src/resources/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,11 @@ export {
321321
type CardTransactionUpdatedWebhookEvent,
322322
type CardTransactionEnhancedDataCreatedWebhookEvent,
323323
type CardTransactionEnhancedDataUpdatedWebhookEvent,
324+
type ClaimCreatedWebhookEvent,
325+
type ClaimUpdatedWebhookEvent,
326+
type ClaimDocumentUploadedWebhookEvent,
327+
type ClaimDocumentAcceptedWebhookEvent,
328+
type ClaimDocumentRejectedWebhookEvent,
324329
type DigitalWalletTokenizationApprovalRequestWebhookEvent,
325330
type DigitalWalletTokenizationResultWebhookEvent,
326331
type DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent,

0 commit comments

Comments
 (0)