chargebee 3.16.1 → 3.16.2
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.
- package/CHANGELOG.md +6 -0
- package/cjs/environment.js +1 -1
- package/esm/environment.js +1 -1
- package/package.json +1 -1
- package/types/resources/WebhookEvent.d.ts +226 -223
package/CHANGELOG.md
CHANGED
package/cjs/environment.js
CHANGED
|
@@ -11,7 +11,7 @@ exports.Environment = {
|
|
|
11
11
|
hostSuffix: '.chargebee.com',
|
|
12
12
|
apiPath: '/api/v2',
|
|
13
13
|
timeout: DEFAULT_TIME_OUT,
|
|
14
|
-
clientVersion: 'v3.16.
|
|
14
|
+
clientVersion: 'v3.16.2',
|
|
15
15
|
port: DEFAULT_PORT,
|
|
16
16
|
timemachineWaitInMillis: DEFAULT_TIME_MACHINE_WAIT,
|
|
17
17
|
exportWaitInMillis: DEFAULT_EXPORT_WAIT,
|
package/esm/environment.js
CHANGED
|
@@ -8,7 +8,7 @@ export const Environment = {
|
|
|
8
8
|
hostSuffix: '.chargebee.com',
|
|
9
9
|
apiPath: '/api/v2',
|
|
10
10
|
timeout: DEFAULT_TIME_OUT,
|
|
11
|
-
clientVersion: 'v3.16.
|
|
11
|
+
clientVersion: 'v3.16.2',
|
|
12
12
|
port: DEFAULT_PORT,
|
|
13
13
|
timemachineWaitInMillis: DEFAULT_TIME_MACHINE_WAIT,
|
|
14
14
|
exportWaitInMillis: DEFAULT_EXPORT_WAIT,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
///<reference path='./filter.d.ts'/>
|
|
4
4
|
|
|
5
5
|
declare module 'chargebee' {
|
|
6
|
-
export enum
|
|
6
|
+
export enum WebhookEventType {
|
|
7
7
|
SubscriptionPauseScheduled = 'subscription_pause_scheduled',
|
|
8
8
|
CustomerBusinessEntityChanged = 'customer_business_entity_changed',
|
|
9
9
|
SubscriptionAdvanceInvoiceScheduleAdded = 'subscription_advance_invoice_schedule_added',
|
|
@@ -221,229 +221,232 @@ declare module 'chargebee' {
|
|
|
221
221
|
PlanUpdated = 'plan_updated',
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
+
/**
|
|
225
|
+
* @deprecated Use WebhookEventType instead.
|
|
226
|
+
*/
|
|
227
|
+
export import WebhookContentType = WebhookEventType;
|
|
228
|
+
|
|
224
229
|
export type WebhookContentMap = {
|
|
225
|
-
[
|
|
226
|
-
[
|
|
227
|
-
[
|
|
228
|
-
[
|
|
229
|
-
[
|
|
230
|
-
[
|
|
231
|
-
[
|
|
232
|
-
[
|
|
233
|
-
[
|
|
234
|
-
[
|
|
235
|
-
[
|
|
236
|
-
[
|
|
237
|
-
[
|
|
238
|
-
[
|
|
239
|
-
[
|
|
240
|
-
[
|
|
241
|
-
[
|
|
242
|
-
[
|
|
243
|
-
[
|
|
244
|
-
[
|
|
245
|
-
[
|
|
246
|
-
[
|
|
247
|
-
[
|
|
248
|
-
[
|
|
249
|
-
[
|
|
250
|
-
[
|
|
251
|
-
[
|
|
252
|
-
[
|
|
253
|
-
[
|
|
254
|
-
[
|
|
255
|
-
[
|
|
256
|
-
[
|
|
257
|
-
[
|
|
258
|
-
[
|
|
259
|
-
[
|
|
260
|
-
[
|
|
261
|
-
[
|
|
262
|
-
[
|
|
263
|
-
[
|
|
264
|
-
[
|
|
265
|
-
[
|
|
266
|
-
[
|
|
267
|
-
[
|
|
268
|
-
[
|
|
269
|
-
[
|
|
270
|
-
[
|
|
271
|
-
[
|
|
272
|
-
[
|
|
273
|
-
[
|
|
274
|
-
[
|
|
275
|
-
[
|
|
276
|
-
[
|
|
277
|
-
[
|
|
278
|
-
[
|
|
279
|
-
[
|
|
280
|
-
[
|
|
281
|
-
[
|
|
282
|
-
[
|
|
283
|
-
[
|
|
284
|
-
[
|
|
285
|
-
[
|
|
286
|
-
[
|
|
287
|
-
[
|
|
288
|
-
[
|
|
289
|
-
[
|
|
290
|
-
[
|
|
291
|
-
[
|
|
292
|
-
[
|
|
293
|
-
[
|
|
294
|
-
[
|
|
295
|
-
[
|
|
296
|
-
[
|
|
297
|
-
[
|
|
298
|
-
[
|
|
299
|
-
[
|
|
300
|
-
[
|
|
301
|
-
[
|
|
302
|
-
[
|
|
303
|
-
[
|
|
304
|
-
[
|
|
305
|
-
[
|
|
306
|
-
[
|
|
307
|
-
[
|
|
308
|
-
[
|
|
309
|
-
[
|
|
310
|
-
[
|
|
311
|
-
[
|
|
312
|
-
[
|
|
313
|
-
[
|
|
314
|
-
[
|
|
315
|
-
[
|
|
316
|
-
[
|
|
317
|
-
[
|
|
318
|
-
[
|
|
319
|
-
[
|
|
320
|
-
[
|
|
321
|
-
[
|
|
322
|
-
[
|
|
323
|
-
[
|
|
324
|
-
[
|
|
325
|
-
[
|
|
326
|
-
[
|
|
327
|
-
[
|
|
328
|
-
[
|
|
329
|
-
[
|
|
330
|
-
[
|
|
331
|
-
[
|
|
332
|
-
[
|
|
333
|
-
[
|
|
334
|
-
[
|
|
335
|
-
[
|
|
336
|
-
[
|
|
337
|
-
[
|
|
338
|
-
[
|
|
339
|
-
[
|
|
340
|
-
[
|
|
341
|
-
[
|
|
342
|
-
[
|
|
343
|
-
[
|
|
344
|
-
[
|
|
345
|
-
[
|
|
346
|
-
[
|
|
347
|
-
[
|
|
348
|
-
[
|
|
349
|
-
[
|
|
350
|
-
[
|
|
351
|
-
[
|
|
352
|
-
[
|
|
353
|
-
[
|
|
354
|
-
[
|
|
355
|
-
[
|
|
356
|
-
[
|
|
357
|
-
[
|
|
358
|
-
[
|
|
359
|
-
[
|
|
360
|
-
[
|
|
361
|
-
[
|
|
362
|
-
[
|
|
363
|
-
[
|
|
364
|
-
[
|
|
365
|
-
[
|
|
366
|
-
[
|
|
367
|
-
[
|
|
368
|
-
[
|
|
369
|
-
[
|
|
370
|
-
[
|
|
371
|
-
[
|
|
372
|
-
[
|
|
373
|
-
[
|
|
374
|
-
[
|
|
375
|
-
[
|
|
376
|
-
[
|
|
377
|
-
[
|
|
378
|
-
[
|
|
379
|
-
[
|
|
380
|
-
[
|
|
381
|
-
[
|
|
382
|
-
[
|
|
383
|
-
[
|
|
384
|
-
[
|
|
385
|
-
[
|
|
386
|
-
[
|
|
387
|
-
[
|
|
388
|
-
[
|
|
389
|
-
[
|
|
390
|
-
[
|
|
391
|
-
[
|
|
392
|
-
[
|
|
393
|
-
[
|
|
394
|
-
[
|
|
395
|
-
[
|
|
396
|
-
[
|
|
397
|
-
[
|
|
398
|
-
[
|
|
399
|
-
[
|
|
400
|
-
[
|
|
401
|
-
[
|
|
402
|
-
[
|
|
403
|
-
[
|
|
404
|
-
[
|
|
405
|
-
[
|
|
406
|
-
[
|
|
407
|
-
[
|
|
408
|
-
[
|
|
409
|
-
[
|
|
410
|
-
[
|
|
411
|
-
[
|
|
412
|
-
[
|
|
413
|
-
[
|
|
414
|
-
[
|
|
415
|
-
[
|
|
416
|
-
[
|
|
417
|
-
[
|
|
418
|
-
[
|
|
419
|
-
[
|
|
420
|
-
[
|
|
421
|
-
[
|
|
422
|
-
[
|
|
423
|
-
[
|
|
424
|
-
[
|
|
425
|
-
[
|
|
426
|
-
[
|
|
427
|
-
[
|
|
428
|
-
[
|
|
429
|
-
[
|
|
430
|
-
[
|
|
431
|
-
[
|
|
432
|
-
[
|
|
433
|
-
[
|
|
434
|
-
[
|
|
435
|
-
[
|
|
436
|
-
[
|
|
437
|
-
[
|
|
438
|
-
[
|
|
439
|
-
[
|
|
440
|
-
};
|
|
441
|
-
|
|
442
|
-
export type ContentFor<T extends
|
|
443
|
-
|
|
444
|
-
export interface WebhookEvent<
|
|
445
|
-
T extends WebhookContentType = WebhookContentType,
|
|
446
|
-
> {
|
|
230
|
+
[WebhookEventType.SubscriptionPauseScheduled]: SubscriptionPauseScheduledContent;
|
|
231
|
+
[WebhookEventType.CustomerBusinessEntityChanged]: CustomerBusinessEntityChangedContent;
|
|
232
|
+
[WebhookEventType.SubscriptionAdvanceInvoiceScheduleAdded]: SubscriptionAdvanceInvoiceScheduleAddedContent;
|
|
233
|
+
[WebhookEventType.GiftExpired]: GiftExpiredContent;
|
|
234
|
+
[WebhookEventType.TaxWithheldDeleted]: TaxWithheldDeletedContent;
|
|
235
|
+
[WebhookEventType.UnbilledChargesDeleted]: UnbilledChargesDeletedContent;
|
|
236
|
+
[WebhookEventType.CouponUpdated]: CouponUpdatedContent;
|
|
237
|
+
[WebhookEventType.OmnichannelSubscriptionItemReactivated]: OmnichannelSubscriptionItemReactivatedContent;
|
|
238
|
+
[WebhookEventType.OmnichannelSubscriptionItemRenewed]: OmnichannelSubscriptionItemRenewedContent;
|
|
239
|
+
[WebhookEventType.UnbilledChargesCreated]: UnbilledChargesCreatedContent;
|
|
240
|
+
[WebhookEventType.SubscriptionResumed]: SubscriptionResumedContent;
|
|
241
|
+
[WebhookEventType.OmnichannelOneTimeOrderItemCancelled]: OmnichannelOneTimeOrderItemCancelledContent;
|
|
242
|
+
[WebhookEventType.SubscriptionCancelled]: SubscriptionCancelledContent;
|
|
243
|
+
[WebhookEventType.ItemEntitlementsRemoved]: ItemEntitlementsRemovedContent;
|
|
244
|
+
[WebhookEventType.BusinessEntityCreated]: BusinessEntityCreatedContent;
|
|
245
|
+
[WebhookEventType.CouponSetUpdated]: CouponSetUpdatedContent;
|
|
246
|
+
[WebhookEventType.DifferentialPriceUpdated]: DifferentialPriceUpdatedContent;
|
|
247
|
+
[WebhookEventType.OmnichannelSubscriptionItemPaused]: OmnichannelSubscriptionItemPausedContent;
|
|
248
|
+
[WebhookEventType.EntitlementOverridesRemoved]: EntitlementOverridesRemovedContent;
|
|
249
|
+
[WebhookEventType.SubscriptionActivatedWithBackdating]: SubscriptionActivatedWithBackdatingContent;
|
|
250
|
+
[WebhookEventType.SubscriptionTrialEndReminder]: SubscriptionTrialEndReminderContent;
|
|
251
|
+
[WebhookEventType.SubscriptionShippingAddressUpdated]: SubscriptionShippingAddressUpdatedContent;
|
|
252
|
+
[WebhookEventType.VoucherCreateFailed]: VoucherCreateFailedContent;
|
|
253
|
+
[WebhookEventType.GiftClaimed]: GiftClaimedContent;
|
|
254
|
+
[WebhookEventType.CustomerDeleted]: CustomerDeletedContent;
|
|
255
|
+
[WebhookEventType.RefundInitiated]: RefundInitiatedContent;
|
|
256
|
+
[WebhookEventType.InvoiceGeneratedWithBackdating]: InvoiceGeneratedWithBackdatingContent;
|
|
257
|
+
[WebhookEventType.OmnichannelTransactionCreated]: OmnichannelTransactionCreatedContent;
|
|
258
|
+
[WebhookEventType.AddUsagesReminder]: AddUsagesReminderContent;
|
|
259
|
+
[WebhookEventType.VoucherCreated]: VoucherCreatedContent;
|
|
260
|
+
[WebhookEventType.RuleUpdated]: RuleUpdatedContent;
|
|
261
|
+
[WebhookEventType.PaymentSchedulesCreated]: PaymentSchedulesCreatedContent;
|
|
262
|
+
[WebhookEventType.FeatureActivated]: FeatureActivatedContent;
|
|
263
|
+
[WebhookEventType.PaymentSourceLocallyDeleted]: PaymentSourceLocallyDeletedContent;
|
|
264
|
+
[WebhookEventType.InvoiceGenerated]: InvoiceGeneratedContent;
|
|
265
|
+
[WebhookEventType.VoucherExpired]: VoucherExpiredContent;
|
|
266
|
+
[WebhookEventType.AuthorizationSucceeded]: AuthorizationSucceededContent;
|
|
267
|
+
[WebhookEventType.GiftScheduled]: GiftScheduledContent;
|
|
268
|
+
[WebhookEventType.SubscriptionChangesScheduled]: SubscriptionChangesScheduledContent;
|
|
269
|
+
[WebhookEventType.SubscriptionChangedWithBackdating]: SubscriptionChangedWithBackdatingContent;
|
|
270
|
+
[WebhookEventType.OmnichannelSubscriptionItemChanged]: OmnichannelSubscriptionItemChangedContent;
|
|
271
|
+
[WebhookEventType.GiftUnclaimed]: GiftUnclaimedContent;
|
|
272
|
+
[WebhookEventType.VirtualBankAccountAdded]: VirtualBankAccountAddedContent;
|
|
273
|
+
[WebhookEventType.PaymentIntentCreated]: PaymentIntentCreatedContent;
|
|
274
|
+
[WebhookEventType.CreditNoteCreatedWithBackdating]: CreditNoteCreatedWithBackdatingContent;
|
|
275
|
+
[WebhookEventType.ContractTermTerminated]: ContractTermTerminatedContent;
|
|
276
|
+
[WebhookEventType.ItemFamilyUpdated]: ItemFamilyUpdatedContent;
|
|
277
|
+
[WebhookEventType.OrderCreated]: OrderCreatedContent;
|
|
278
|
+
[WebhookEventType.PriceVariantDeleted]: PriceVariantDeletedContent;
|
|
279
|
+
[WebhookEventType.SubscriptionMovementFailed]: SubscriptionMovementFailedContent;
|
|
280
|
+
[WebhookEventType.CustomerMovedIn]: CustomerMovedInContent;
|
|
281
|
+
[WebhookEventType.SubscriptionAdvanceInvoiceScheduleUpdated]: SubscriptionAdvanceInvoiceScheduleUpdatedContent;
|
|
282
|
+
[WebhookEventType.ItemDeleted]: ItemDeletedContent;
|
|
283
|
+
[WebhookEventType.SubscriptionRampDrafted]: SubscriptionRampDraftedContent;
|
|
284
|
+
[WebhookEventType.DunningUpdated]: DunningUpdatedContent;
|
|
285
|
+
[WebhookEventType.ItemEntitlementsUpdated]: ItemEntitlementsUpdatedContent;
|
|
286
|
+
[WebhookEventType.TokenConsumed]: TokenConsumedContent;
|
|
287
|
+
[WebhookEventType.HierarchyDeleted]: HierarchyDeletedContent;
|
|
288
|
+
[WebhookEventType.SubscriptionCancellationScheduled]: SubscriptionCancellationScheduledContent;
|
|
289
|
+
[WebhookEventType.SubscriptionRenewed]: SubscriptionRenewedContent;
|
|
290
|
+
[WebhookEventType.FeatureUpdated]: FeatureUpdatedContent;
|
|
291
|
+
[WebhookEventType.FeatureDeleted]: FeatureDeletedContent;
|
|
292
|
+
[WebhookEventType.ItemFamilyCreated]: ItemFamilyCreatedContent;
|
|
293
|
+
[WebhookEventType.OmnichannelSubscriptionItemScheduledChangeRemoved]: OmnichannelSubscriptionItemScheduledChangeRemovedContent;
|
|
294
|
+
[WebhookEventType.OmnichannelSubscriptionItemResumed]: OmnichannelSubscriptionItemResumedContent;
|
|
295
|
+
[WebhookEventType.PurchaseCreated]: PurchaseCreatedContent;
|
|
296
|
+
[WebhookEventType.EntitlementOverridesUpdated]: EntitlementOverridesUpdatedContent;
|
|
297
|
+
[WebhookEventType.ItemFamilyDeleted]: ItemFamilyDeletedContent;
|
|
298
|
+
[WebhookEventType.SubscriptionResumptionScheduled]: SubscriptionResumptionScheduledContent;
|
|
299
|
+
[WebhookEventType.FeatureReactivated]: FeatureReactivatedContent;
|
|
300
|
+
[WebhookEventType.CouponCodesDeleted]: CouponCodesDeletedContent;
|
|
301
|
+
[WebhookEventType.CardExpired]: CardExpiredContent;
|
|
302
|
+
[WebhookEventType.CreditNoteUpdated]: CreditNoteUpdatedContent;
|
|
303
|
+
[WebhookEventType.OmnichannelSubscriptionItemDowngraded]: OmnichannelSubscriptionItemDowngradedContent;
|
|
304
|
+
[WebhookEventType.PriceVariantUpdated]: PriceVariantUpdatedContent;
|
|
305
|
+
[WebhookEventType.PromotionalCreditsDeducted]: PromotionalCreditsDeductedContent;
|
|
306
|
+
[WebhookEventType.SubscriptionRampApplied]: SubscriptionRampAppliedContent;
|
|
307
|
+
[WebhookEventType.SubscriptionPaused]: SubscriptionPausedContent;
|
|
308
|
+
[WebhookEventType.OrderReadyToProcess]: OrderReadyToProcessContent;
|
|
309
|
+
[WebhookEventType.FeatureCreated]: FeatureCreatedContent;
|
|
310
|
+
[WebhookEventType.TransactionDeleted]: TransactionDeletedContent;
|
|
311
|
+
[WebhookEventType.CreditNoteCreated]: CreditNoteCreatedContent;
|
|
312
|
+
[WebhookEventType.OmnichannelSubscriptionItemResubscribed]: OmnichannelSubscriptionItemResubscribedContent;
|
|
313
|
+
[WebhookEventType.RecordPurchaseFailed]: RecordPurchaseFailedContent;
|
|
314
|
+
[WebhookEventType.ItemCreated]: ItemCreatedContent;
|
|
315
|
+
[WebhookEventType.TransactionUpdated]: TransactionUpdatedContent;
|
|
316
|
+
[WebhookEventType.MrrUpdated]: MrrUpdatedContent;
|
|
317
|
+
[WebhookEventType.UnbilledChargesInvoiced]: UnbilledChargesInvoicedContent;
|
|
318
|
+
[WebhookEventType.ItemPriceUpdated]: ItemPriceUpdatedContent;
|
|
319
|
+
[WebhookEventType.CouponCodesUpdated]: CouponCodesUpdatedContent;
|
|
320
|
+
[WebhookEventType.VirtualBankAccountUpdated]: VirtualBankAccountUpdatedContent;
|
|
321
|
+
[WebhookEventType.ContractTermCreated]: ContractTermCreatedContent;
|
|
322
|
+
[WebhookEventType.SubscriptionChanged]: SubscriptionChangedContent;
|
|
323
|
+
[WebhookEventType.PaymentFailed]: PaymentFailedContent;
|
|
324
|
+
[WebhookEventType.CreditNoteDeleted]: CreditNoteDeletedContent;
|
|
325
|
+
[WebhookEventType.TaxWithheldRefunded]: TaxWithheldRefundedContent;
|
|
326
|
+
[WebhookEventType.ContractTermCompleted]: ContractTermCompletedContent;
|
|
327
|
+
[WebhookEventType.PaymentSchedulesUpdated]: PaymentSchedulesUpdatedContent;
|
|
328
|
+
[WebhookEventType.OmnichannelSubscriptionItemExpired]: OmnichannelSubscriptionItemExpiredContent;
|
|
329
|
+
[WebhookEventType.CardUpdated]: CardUpdatedContent;
|
|
330
|
+
[WebhookEventType.CustomerCreated]: CustomerCreatedContent;
|
|
331
|
+
[WebhookEventType.SubscriptionRenewalReminder]: SubscriptionRenewalReminderContent;
|
|
332
|
+
[WebhookEventType.OrderDelivered]: OrderDeliveredContent;
|
|
333
|
+
[WebhookEventType.OmnichannelSubscriptionItemCancellationScheduled]: OmnichannelSubscriptionItemCancellationScheduledContent;
|
|
334
|
+
[WebhookEventType.OmnichannelSubscriptionItemGracePeriodExpired]: OmnichannelSubscriptionItemGracePeriodExpiredContent;
|
|
335
|
+
[WebhookEventType.CouponCodesAdded]: CouponCodesAddedContent;
|
|
336
|
+
[WebhookEventType.GiftCancelled]: GiftCancelledContent;
|
|
337
|
+
[WebhookEventType.OrderCancelled]: OrderCancelledContent;
|
|
338
|
+
[WebhookEventType.CouponDeleted]: CouponDeletedContent;
|
|
339
|
+
[WebhookEventType.SubscriptionScheduledChangesRemoved]: SubscriptionScheduledChangesRemovedContent;
|
|
340
|
+
[WebhookEventType.PendingInvoiceCreated]: PendingInvoiceCreatedContent;
|
|
341
|
+
[WebhookEventType.EntitlementOverridesAutoRemoved]: EntitlementOverridesAutoRemovedContent;
|
|
342
|
+
[WebhookEventType.OmnichannelSubscriptionItemUpgraded]: OmnichannelSubscriptionItemUpgradedContent;
|
|
343
|
+
[WebhookEventType.SubscriptionBusinessEntityChanged]: SubscriptionBusinessEntityChangedContent;
|
|
344
|
+
[WebhookEventType.OmnichannelOneTimeOrderCreated]: OmnichannelOneTimeOrderCreatedContent;
|
|
345
|
+
[WebhookEventType.PaymentSourceDeleted]: PaymentSourceDeletedContent;
|
|
346
|
+
[WebhookEventType.OmnichannelSubscriptionItemCancelled]: OmnichannelSubscriptionItemCancelledContent;
|
|
347
|
+
[WebhookEventType.QuoteDeleted]: QuoteDeletedContent;
|
|
348
|
+
[WebhookEventType.InvoiceUpdated]: InvoiceUpdatedContent;
|
|
349
|
+
[WebhookEventType.SubscriptionAdvanceInvoiceScheduleRemoved]: SubscriptionAdvanceInvoiceScheduleRemovedContent;
|
|
350
|
+
[WebhookEventType.CardDeleted]: CardDeletedContent;
|
|
351
|
+
[WebhookEventType.OrderReadyToShip]: OrderReadyToShipContent;
|
|
352
|
+
[WebhookEventType.SubscriptionMovedOut]: SubscriptionMovedOutContent;
|
|
353
|
+
[WebhookEventType.PaymentScheduleSchemeCreated]: PaymentScheduleSchemeCreatedContent;
|
|
354
|
+
[WebhookEventType.BusinessEntityUpdated]: BusinessEntityUpdatedContent;
|
|
355
|
+
[WebhookEventType.SubscriptionScheduledResumptionRemoved]: SubscriptionScheduledResumptionRemovedContent;
|
|
356
|
+
[WebhookEventType.PaymentInitiated]: PaymentInitiatedContent;
|
|
357
|
+
[WebhookEventType.FeatureArchived]: FeatureArchivedContent;
|
|
358
|
+
[WebhookEventType.SubscriptionReactivatedWithBackdating]: SubscriptionReactivatedWithBackdatingContent;
|
|
359
|
+
[WebhookEventType.OmnichannelSubscriptionImported]: OmnichannelSubscriptionImportedContent;
|
|
360
|
+
[WebhookEventType.TokenExpired]: TokenExpiredContent;
|
|
361
|
+
[WebhookEventType.CardAdded]: CardAddedContent;
|
|
362
|
+
[WebhookEventType.CouponCreated]: CouponCreatedContent;
|
|
363
|
+
[WebhookEventType.RuleDeleted]: RuleDeletedContent;
|
|
364
|
+
[WebhookEventType.ItemPriceEntitlementsUpdated]: ItemPriceEntitlementsUpdatedContent;
|
|
365
|
+
[WebhookEventType.ItemPriceDeleted]: ItemPriceDeletedContent;
|
|
366
|
+
[WebhookEventType.VirtualBankAccountDeleted]: VirtualBankAccountDeletedContent;
|
|
367
|
+
[WebhookEventType.PaymentScheduleSchemeDeleted]: PaymentScheduleSchemeDeletedContent;
|
|
368
|
+
[WebhookEventType.SubscriptionCreated]: SubscriptionCreatedContent;
|
|
369
|
+
[WebhookEventType.SubscriptionEntitlementsCreated]: SubscriptionEntitlementsCreatedContent;
|
|
370
|
+
[WebhookEventType.OrderReturned]: OrderReturnedContent;
|
|
371
|
+
[WebhookEventType.SubscriptionDeleted]: SubscriptionDeletedContent;
|
|
372
|
+
[WebhookEventType.PaymentSourceAdded]: PaymentSourceAddedContent;
|
|
373
|
+
[WebhookEventType.SubscriptionMovedIn]: SubscriptionMovedInContent;
|
|
374
|
+
[WebhookEventType.ItemPriceCreated]: ItemPriceCreatedContent;
|
|
375
|
+
[WebhookEventType.SubscriptionScheduledCancellationRemoved]: SubscriptionScheduledCancellationRemovedContent;
|
|
376
|
+
[WebhookEventType.PaymentRefunded]: PaymentRefundedContent;
|
|
377
|
+
[WebhookEventType.UsageFileIngested]: UsageFileIngestedContent;
|
|
378
|
+
[WebhookEventType.OmnichannelSubscriptionMovedIn]: OmnichannelSubscriptionMovedInContent;
|
|
379
|
+
[WebhookEventType.DifferentialPriceCreated]: DifferentialPriceCreatedContent;
|
|
380
|
+
[WebhookEventType.TransactionCreated]: TransactionCreatedContent;
|
|
381
|
+
[WebhookEventType.PaymentSucceeded]: PaymentSucceededContent;
|
|
382
|
+
[WebhookEventType.SubscriptionCanceledWithBackdating]: SubscriptionCanceledWithBackdatingContent;
|
|
383
|
+
[WebhookEventType.UnbilledChargesVoided]: UnbilledChargesVoidedContent;
|
|
384
|
+
[WebhookEventType.QuoteCreated]: QuoteCreatedContent;
|
|
385
|
+
[WebhookEventType.CouponSetDeleted]: CouponSetDeletedContent;
|
|
386
|
+
[WebhookEventType.AttachedItemCreated]: AttachedItemCreatedContent;
|
|
387
|
+
[WebhookEventType.SalesOrderCreated]: SalesOrderCreatedContent;
|
|
388
|
+
[WebhookEventType.CustomerChanged]: CustomerChangedContent;
|
|
389
|
+
[WebhookEventType.SubscriptionStarted]: SubscriptionStartedContent;
|
|
390
|
+
[WebhookEventType.SubscriptionActivated]: SubscriptionActivatedContent;
|
|
391
|
+
[WebhookEventType.PaymentSourceExpiring]: PaymentSourceExpiringContent;
|
|
392
|
+
[WebhookEventType.SubscriptionReactivated]: SubscriptionReactivatedContent;
|
|
393
|
+
[WebhookEventType.OrderUpdated]: OrderUpdatedContent;
|
|
394
|
+
[WebhookEventType.SubscriptionScheduledPauseRemoved]: SubscriptionScheduledPauseRemovedContent;
|
|
395
|
+
[WebhookEventType.SubscriptionCancellationReminder]: SubscriptionCancellationReminderContent;
|
|
396
|
+
[WebhookEventType.SubscriptionCreatedWithBackdating]: SubscriptionCreatedWithBackdatingContent;
|
|
397
|
+
[WebhookEventType.SubscriptionRampCreated]: SubscriptionRampCreatedContent;
|
|
398
|
+
[WebhookEventType.OrderDeleted]: OrderDeletedContent;
|
|
399
|
+
[WebhookEventType.OmnichannelSubscriptionItemPauseScheduled]: OmnichannelSubscriptionItemPauseScheduledContent;
|
|
400
|
+
[WebhookEventType.GiftUpdated]: GiftUpdatedContent;
|
|
401
|
+
[WebhookEventType.SubscriptionTrialExtended]: SubscriptionTrialExtendedContent;
|
|
402
|
+
[WebhookEventType.OmnichannelSubscriptionItemGracePeriodStarted]: OmnichannelSubscriptionItemGracePeriodStartedContent;
|
|
403
|
+
[WebhookEventType.CardExpiryReminder]: CardExpiryReminderContent;
|
|
404
|
+
[WebhookEventType.TokenCreated]: TokenCreatedContent;
|
|
405
|
+
[WebhookEventType.PromotionalCreditsAdded]: PromotionalCreditsAddedContent;
|
|
406
|
+
[WebhookEventType.SubscriptionRampUpdated]: SubscriptionRampUpdatedContent;
|
|
407
|
+
[WebhookEventType.CustomerEntitlementsUpdated]: CustomerEntitlementsUpdatedContent;
|
|
408
|
+
[WebhookEventType.PaymentSourceExpired]: PaymentSourceExpiredContent;
|
|
409
|
+
[WebhookEventType.CustomerMovedOut]: CustomerMovedOutContent;
|
|
410
|
+
[WebhookEventType.SubscriptionEntitlementsUpdated]: SubscriptionEntitlementsUpdatedContent;
|
|
411
|
+
[WebhookEventType.OmnichannelSubscriptionItemDunningExpired]: OmnichannelSubscriptionItemDunningExpiredContent;
|
|
412
|
+
[WebhookEventType.HierarchyCreated]: HierarchyCreatedContent;
|
|
413
|
+
[WebhookEventType.AttachedItemDeleted]: AttachedItemDeletedContent;
|
|
414
|
+
[WebhookEventType.OmnichannelSubscriptionItemScheduledCancellationRemoved]: OmnichannelSubscriptionItemScheduledCancellationRemovedContent;
|
|
415
|
+
[WebhookEventType.ItemUpdated]: ItemUpdatedContent;
|
|
416
|
+
[WebhookEventType.CouponSetCreated]: CouponSetCreatedContent;
|
|
417
|
+
[WebhookEventType.PaymentIntentUpdated]: PaymentIntentUpdatedContent;
|
|
418
|
+
[WebhookEventType.OrderResent]: OrderResentContent;
|
|
419
|
+
[WebhookEventType.OmnichannelSubscriptionCreated]: OmnichannelSubscriptionCreatedContent;
|
|
420
|
+
[WebhookEventType.TaxWithheldRecorded]: TaxWithheldRecordedContent;
|
|
421
|
+
[WebhookEventType.PriceVariantCreated]: PriceVariantCreatedContent;
|
|
422
|
+
[WebhookEventType.DifferentialPriceDeleted]: DifferentialPriceDeletedContent;
|
|
423
|
+
[WebhookEventType.SubscriptionItemsRenewed]: SubscriptionItemsRenewedContent;
|
|
424
|
+
[WebhookEventType.RuleCreated]: RuleCreatedContent;
|
|
425
|
+
[WebhookEventType.ContractTermCancelled]: ContractTermCancelledContent;
|
|
426
|
+
[WebhookEventType.ContractTermRenewed]: ContractTermRenewedContent;
|
|
427
|
+
[WebhookEventType.InvoiceDeleted]: InvoiceDeletedContent;
|
|
428
|
+
[WebhookEventType.ItemPriceEntitlementsRemoved]: ItemPriceEntitlementsRemovedContent;
|
|
429
|
+
[WebhookEventType.SalesOrderUpdated]: SalesOrderUpdatedContent;
|
|
430
|
+
[WebhookEventType.OmnichannelSubscriptionItemDunningStarted]: OmnichannelSubscriptionItemDunningStartedContent;
|
|
431
|
+
[WebhookEventType.OmnichannelSubscriptionItemChangeScheduled]: OmnichannelSubscriptionItemChangeScheduledContent;
|
|
432
|
+
[WebhookEventType.PendingInvoiceUpdated]: PendingInvoiceUpdatedContent;
|
|
433
|
+
[WebhookEventType.QuoteUpdated]: QuoteUpdatedContent;
|
|
434
|
+
[WebhookEventType.AttachedItemUpdated]: AttachedItemUpdatedContent;
|
|
435
|
+
[WebhookEventType.PaymentSourceUpdated]: PaymentSourceUpdatedContent;
|
|
436
|
+
[WebhookEventType.BusinessEntityDeleted]: BusinessEntityDeletedContent;
|
|
437
|
+
[WebhookEventType.AuthorizationVoided]: AuthorizationVoidedContent;
|
|
438
|
+
[WebhookEventType.SubscriptionRampDeleted]: SubscriptionRampDeletedContent;
|
|
439
|
+
[WebhookEventType.PlanDeleted]: PlanDeletedContent;
|
|
440
|
+
[WebhookEventType.AddonDeleted]: AddonDeletedContent;
|
|
441
|
+
[WebhookEventType.AddonUpdated]: AddonUpdatedContent;
|
|
442
|
+
[WebhookEventType.AddonCreated]: AddonCreatedContent;
|
|
443
|
+
[WebhookEventType.PlanCreated]: PlanCreatedContent;
|
|
444
|
+
[WebhookEventType.PlanUpdated]: PlanUpdatedContent;
|
|
445
|
+
};
|
|
446
|
+
|
|
447
|
+
export type ContentFor<T extends WebhookEventType> = WebhookContentMap[T];
|
|
448
|
+
|
|
449
|
+
export interface WebhookEvent<T extends WebhookEventType = WebhookEventType> {
|
|
447
450
|
content: ContentFor<T>;
|
|
448
451
|
id: string;
|
|
449
452
|
occurred_at: number;
|