chargebee 3.25.0-beta.1 → 3.25.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 (166) hide show
  1. package/CHANGELOG.md +66 -4
  2. package/README.md +0 -39
  3. package/cjs/RequestWrapper.js +1 -28
  4. package/cjs/chargebee.cjs.js +0 -3
  5. package/cjs/chargebee.cjs.worker.js +0 -2
  6. package/cjs/createChargebee.js +0 -5
  7. package/cjs/environment.js +1 -1
  8. package/cjs/resources/api_endpoints.js +1 -2
  9. package/cjs/resources/webhook/eventType.js +2 -0
  10. package/esm/RequestWrapper.js +1 -28
  11. package/esm/chargebee.esm.js +0 -2
  12. package/esm/chargebee.esm.worker.js +0 -1
  13. package/esm/createChargebee.js +0 -5
  14. package/esm/environment.js +1 -1
  15. package/esm/resources/api_endpoints.js +1 -2
  16. package/esm/resources/webhook/eventType.js +2 -0
  17. package/package.json +1 -4
  18. package/types/core.d.ts +23 -6
  19. package/types/index.d.ts +0 -17
  20. package/types/resources/Content.d.ts +0 -1
  21. package/types/resources/Customer.d.ts +14 -4
  22. package/types/resources/Estimate.d.ts +14 -4
  23. package/types/resources/Event.d.ts +2 -0
  24. package/types/resources/Gift.d.ts +23 -6
  25. package/types/resources/HostedPage.d.ts +1 -0
  26. package/types/resources/Invoice.d.ts +14 -5
  27. package/types/resources/OmnichannelSubscription.d.ts +6 -0
  28. package/types/resources/OmnichannelSubscriptionItem.d.ts +1 -0
  29. package/types/resources/PaymentIntent.d.ts +35 -10
  30. package/types/resources/PaymentSource.d.ts +7 -2
  31. package/types/resources/Purchase.d.ts +7 -2
  32. package/types/resources/Subscription.d.ts +49 -14
  33. package/types/resources/WebhookEvent.d.ts +22 -4
  34. package/cjs/chargebeeZodValidationError.js +0 -18
  35. package/cjs/schema/addon.schema.js +0 -153
  36. package/cjs/schema/address.schema.js +0 -35
  37. package/cjs/schema/alert.schema.js +0 -38
  38. package/cjs/schema/attached_item.schema.js +0 -58
  39. package/cjs/schema/business_entity.schema.js +0 -46
  40. package/cjs/schema/card.schema.js +0 -165
  41. package/cjs/schema/comment.schema.js +0 -69
  42. package/cjs/schema/coupon.schema.js +0 -209
  43. package/cjs/schema/coupon_code.schema.js +0 -14
  44. package/cjs/schema/coupon_set.schema.js +0 -28
  45. package/cjs/schema/credit_note.schema.js +0 -288
  46. package/cjs/schema/currency.schema.js +0 -32
  47. package/cjs/schema/customer.schema.js +0 -986
  48. package/cjs/schema/customer_entitlement.schema.js +0 -14
  49. package/cjs/schema/differential_price.schema.js +0 -68
  50. package/cjs/schema/entitlement.schema.js +0 -27
  51. package/cjs/schema/entitlement_override.schema.js +0 -33
  52. package/cjs/schema/estimate.schema.js +0 -1525
  53. package/cjs/schema/export.schema.js +0 -1545
  54. package/cjs/schema/feature.schema.js +0 -37
  55. package/cjs/schema/gift.schema.js +0 -277
  56. package/cjs/schema/hosted_page.schema.js +0 -1649
  57. package/cjs/schema/in_app_subscription.schema.js +0 -68
  58. package/cjs/schema/index.js +0 -80
  59. package/cjs/schema/invoice.schema.js +0 -1467
  60. package/cjs/schema/item.schema.js +0 -91
  61. package/cjs/schema/item_entitlement.schema.js +0 -45
  62. package/cjs/schema/item_family.schema.js +0 -21
  63. package/cjs/schema/item_price.schema.js +0 -190
  64. package/cjs/schema/non_subscription.schema.js +0 -28
  65. package/cjs/schema/offer_event.schema.js +0 -13
  66. package/cjs/schema/offer_fulfillment.schema.js +0 -20
  67. package/cjs/schema/omnichannel_one_time_order.schema.js +0 -26
  68. package/cjs/schema/omnichannel_subscription.schema.js +0 -89
  69. package/cjs/schema/omnichannel_subscription_item.schema.js +0 -13
  70. package/cjs/schema/order.schema.js +0 -273
  71. package/cjs/schema/payment_intent.schema.js +0 -117
  72. package/cjs/schema/payment_schedule_scheme.schema.js +0 -20
  73. package/cjs/schema/payment_source.schema.js +0 -358
  74. package/cjs/schema/payment_voucher.schema.js +0 -57
  75. package/cjs/schema/personalized_offer.schema.js +0 -28
  76. package/cjs/schema/plan.schema.js +0 -225
  77. package/cjs/schema/portal_session.schema.js +0 -22
  78. package/cjs/schema/price_variant.schema.js +0 -36
  79. package/cjs/schema/pricing_page_session.schema.js +0 -135
  80. package/cjs/schema/promotional_credit.schema.js +0 -78
  81. package/cjs/schema/purchase.schema.js +0 -272
  82. package/cjs/schema/quote.schema.js +0 -1557
  83. package/cjs/schema/ramp.schema.js +0 -209
  84. package/cjs/schema/recorded_purchase.schema.js +0 -32
  85. package/cjs/schema/resource_migration.schema.js +0 -14
  86. package/cjs/schema/site_migration_detail.schema.js +0 -81
  87. package/cjs/schema/subscription.schema.js +0 -2993
  88. package/cjs/schema/subscription_entitlement.schema.js +0 -25
  89. package/cjs/schema/time_machine.schema.js +0 -17
  90. package/cjs/schema/transaction.schema.js +0 -70
  91. package/cjs/schema/unbilled_charge.schema.js +0 -113
  92. package/cjs/schema/usage.schema.js +0 -93
  93. package/cjs/schema/usage_charge.schema.js +0 -17
  94. package/cjs/schema/usage_event.schema.js +0 -28
  95. package/cjs/schema/usage_file.schema.js +0 -13
  96. package/cjs/schema/usage_summary.schema.js +0 -17
  97. package/cjs/schema/virtual_bank_account.schema.js +0 -43
  98. package/cjs/schema/webhook_endpoint.schema.js +0 -504
  99. package/cjs/validationLoader.js +0 -59
  100. package/esm/chargebeeZodValidationError.js +0 -14
  101. package/esm/schema/addon.schema.js +0 -150
  102. package/esm/schema/address.schema.js +0 -32
  103. package/esm/schema/alert.schema.js +0 -35
  104. package/esm/schema/attached_item.schema.js +0 -55
  105. package/esm/schema/business_entity.schema.js +0 -43
  106. package/esm/schema/card.schema.js +0 -162
  107. package/esm/schema/comment.schema.js +0 -66
  108. package/esm/schema/coupon.schema.js +0 -206
  109. package/esm/schema/coupon_code.schema.js +0 -11
  110. package/esm/schema/coupon_set.schema.js +0 -25
  111. package/esm/schema/credit_note.schema.js +0 -285
  112. package/esm/schema/currency.schema.js +0 -29
  113. package/esm/schema/customer.schema.js +0 -983
  114. package/esm/schema/customer_entitlement.schema.js +0 -11
  115. package/esm/schema/differential_price.schema.js +0 -65
  116. package/esm/schema/entitlement.schema.js +0 -24
  117. package/esm/schema/entitlement_override.schema.js +0 -30
  118. package/esm/schema/estimate.schema.js +0 -1522
  119. package/esm/schema/export.schema.js +0 -1542
  120. package/esm/schema/feature.schema.js +0 -34
  121. package/esm/schema/gift.schema.js +0 -274
  122. package/esm/schema/hosted_page.schema.js +0 -1646
  123. package/esm/schema/in_app_subscription.schema.js +0 -65
  124. package/esm/schema/index.js +0 -64
  125. package/esm/schema/invoice.schema.js +0 -1464
  126. package/esm/schema/item.schema.js +0 -88
  127. package/esm/schema/item_entitlement.schema.js +0 -42
  128. package/esm/schema/item_family.schema.js +0 -18
  129. package/esm/schema/item_price.schema.js +0 -187
  130. package/esm/schema/non_subscription.schema.js +0 -25
  131. package/esm/schema/offer_event.schema.js +0 -10
  132. package/esm/schema/offer_fulfillment.schema.js +0 -17
  133. package/esm/schema/omnichannel_one_time_order.schema.js +0 -23
  134. package/esm/schema/omnichannel_subscription.schema.js +0 -86
  135. package/esm/schema/omnichannel_subscription_item.schema.js +0 -10
  136. package/esm/schema/order.schema.js +0 -270
  137. package/esm/schema/payment_intent.schema.js +0 -114
  138. package/esm/schema/payment_schedule_scheme.schema.js +0 -17
  139. package/esm/schema/payment_source.schema.js +0 -355
  140. package/esm/schema/payment_voucher.schema.js +0 -54
  141. package/esm/schema/personalized_offer.schema.js +0 -25
  142. package/esm/schema/plan.schema.js +0 -222
  143. package/esm/schema/portal_session.schema.js +0 -19
  144. package/esm/schema/price_variant.schema.js +0 -33
  145. package/esm/schema/pricing_page_session.schema.js +0 -132
  146. package/esm/schema/promotional_credit.schema.js +0 -75
  147. package/esm/schema/purchase.schema.js +0 -269
  148. package/esm/schema/quote.schema.js +0 -1554
  149. package/esm/schema/ramp.schema.js +0 -206
  150. package/esm/schema/recorded_purchase.schema.js +0 -29
  151. package/esm/schema/resource_migration.schema.js +0 -11
  152. package/esm/schema/site_migration_detail.schema.js +0 -78
  153. package/esm/schema/subscription.schema.js +0 -2990
  154. package/esm/schema/subscription_entitlement.schema.js +0 -22
  155. package/esm/schema/time_machine.schema.js +0 -14
  156. package/esm/schema/transaction.schema.js +0 -67
  157. package/esm/schema/unbilled_charge.schema.js +0 -110
  158. package/esm/schema/usage.schema.js +0 -90
  159. package/esm/schema/usage_charge.schema.js +0 -14
  160. package/esm/schema/usage_event.schema.js +0 -25
  161. package/esm/schema/usage_file.schema.js +0 -10
  162. package/esm/schema/usage_summary.schema.js +0 -14
  163. package/esm/schema/virtual_bank_account.schema.js +0 -40
  164. package/esm/schema/webhook_endpoint.schema.js +0 -501
  165. package/esm/validationLoader.js +0 -56
  166. package/types/resources/QuoteEntitlement.d.ts +0 -16
@@ -65,6 +65,7 @@ declare module 'chargebee' {
65
65
  GiftUnclaimedContent &
66
66
  VirtualBankAccountAddedContent &
67
67
  PaymentIntentCreatedContent &
68
+ OmnichannelSubscriptionItemUpdatedContent &
68
69
  CreditNoteCreatedWithBackdatingContent &
69
70
  ContractTermTerminatedContent &
70
71
  ItemFamilyUpdatedContent &
@@ -77,6 +78,7 @@ declare module 'chargebee' {
77
78
  ItemDeletedContent &
78
79
  SubscriptionRampDraftedContent &
79
80
  DunningUpdatedContent &
81
+ OmnichannelSubscriptionItemRecoveredContent &
80
82
  ItemEntitlementsUpdatedContent &
81
83
  TokenConsumedContent &
82
84
  HierarchyDeletedContent &
@@ -50,7 +50,7 @@ declare module 'chargebee' {
50
50
 
51
51
  updateGift(
52
52
  gift_id: string,
53
- input: UpdateGiftInputParam,
53
+ input?: UpdateGiftInputParam,
54
54
  headers?: ChargebeeRequestHeader,
55
55
  ): Promise<ChargebeeResponse<UpdateGiftResponse>>;
56
56
  }
@@ -147,8 +147,9 @@ declare module 'chargebee' {
147
147
  status?: filter.Enum;
148
148
  }
149
149
  export interface UpdateGiftInputParam {
150
- scheduled_at: number;
150
+ scheduled_at?: number;
151
151
  comment?: string;
152
+ gift_receiver?: GiftReceiverUpdateGiftInputParam;
152
153
  }
153
154
  export interface GiftReceiverCreateInputParam {
154
155
  customer_id: string;
@@ -215,14 +216,19 @@ declare module 'chargebee' {
215
216
  | 'cash_app_pay'
216
217
  | 'wechat_pay'
217
218
  | 'alipay'
218
- | 'pix'
219
219
  | 'twint'
220
220
  | 'go_pay'
221
221
  | 'grab_pay'
222
222
  | 'pay_co'
223
223
  | 'after_pay'
224
224
  | 'swish'
225
- | 'payme';
225
+ | 'payme'
226
+ | 'pix'
227
+ | 'klarna'
228
+ | 'alipay_hk'
229
+ | 'paypay'
230
+ | 'gcash'
231
+ | 'south_korean_cards';
226
232
  reference_id?: string;
227
233
  /**
228
234
  * @deprecated Please refer API docs to use other attributes
@@ -306,14 +312,19 @@ declare module 'chargebee' {
306
312
  | 'cash_app_pay'
307
313
  | 'wechat_pay'
308
314
  | 'alipay'
309
- | 'pix'
310
315
  | 'twint'
311
316
  | 'go_pay'
312
317
  | 'grab_pay'
313
318
  | 'pay_co'
314
319
  | 'after_pay'
315
320
  | 'swish'
316
- | 'payme';
321
+ | 'payme'
322
+ | 'pix'
323
+ | 'klarna'
324
+ | 'alipay_hk'
325
+ | 'paypay'
326
+ | 'gcash'
327
+ | 'south_korean_cards';
317
328
  reference_id?: string;
318
329
  /**
319
330
  * @deprecated Please refer API docs to use other attributes
@@ -345,5 +356,11 @@ declare module 'chargebee' {
345
356
  email?: filter.String;
346
357
  customer_id?: filter.String;
347
358
  }
359
+
360
+ export interface GiftReceiverUpdateGiftInputParam {
361
+ email?: string;
362
+ first_name?: string;
363
+ last_name?: string;
364
+ }
348
365
  }
349
366
  }
@@ -437,6 +437,7 @@ declare module 'chargebee' {
437
437
  addons?: AddonsCheckoutGiftInputParam[];
438
438
  }
439
439
  export interface CheckoutGiftForItemsInputParam {
440
+ layout?: LayoutEnum;
440
441
  business_entity_id?: string;
441
442
  redirect_url?: string;
442
443
  coupon_ids?: string[];
@@ -1074,7 +1074,6 @@ declare module 'chargebee' {
1074
1074
  channel?: filter.Enum;
1075
1075
  voided_at?: filter.Timestamp;
1076
1076
  void_reason_code?: filter.String;
1077
- exclude?: filter.String;
1078
1077
  'sort_by[asc]'?: string;
1079
1078
  'sort_by[desc]'?: string;
1080
1079
  }
@@ -1283,14 +1282,19 @@ declare module 'chargebee' {
1283
1282
  | 'cash_app_pay'
1284
1283
  | 'wechat_pay'
1285
1284
  | 'alipay'
1286
- | 'pix'
1287
1285
  | 'twint'
1288
1286
  | 'go_pay'
1289
1287
  | 'grab_pay'
1290
1288
  | 'pay_co'
1291
1289
  | 'after_pay'
1292
1290
  | 'swish'
1293
- | 'payme';
1291
+ | 'payme'
1292
+ | 'pix'
1293
+ | 'klarna'
1294
+ | 'alipay_hk'
1295
+ | 'paypay'
1296
+ | 'gcash'
1297
+ | 'south_korean_cards';
1294
1298
  reference_id?: string;
1295
1299
  /**
1296
1300
  * @deprecated Please refer API docs to use other attributes
@@ -1449,14 +1453,19 @@ declare module 'chargebee' {
1449
1453
  | 'cash_app_pay'
1450
1454
  | 'wechat_pay'
1451
1455
  | 'alipay'
1452
- | 'pix'
1453
1456
  | 'twint'
1454
1457
  | 'go_pay'
1455
1458
  | 'grab_pay'
1456
1459
  | 'pay_co'
1457
1460
  | 'after_pay'
1458
1461
  | 'swish'
1459
- | 'payme';
1462
+ | 'payme'
1463
+ | 'pix'
1464
+ | 'klarna'
1465
+ | 'alipay_hk'
1466
+ | 'paypay'
1467
+ | 'gcash'
1468
+ | 'south_korean_cards';
1460
1469
  reference_id?: string;
1461
1470
  /**
1462
1471
  * @deprecated Please refer API docs to use other attributes
@@ -9,6 +9,8 @@ declare module 'chargebee' {
9
9
  source: 'apple_app_store' | 'google_play_store';
10
10
  customer_id?: string;
11
11
  created_at: number;
12
+ purchased_at?: number;
13
+ updated_at: number;
12
14
  resource_version?: number;
13
15
  omnichannel_subscription_items: OmnichannelSubscriptionItem[];
14
16
  initial_purchase_transaction?: OmnichannelTransaction;
@@ -68,6 +70,10 @@ declare module 'chargebee' {
68
70
  omnichannel_subscription_item?: OmnichannelSubscriptionItemOmnichannelSubscriptionListInputParam;
69
71
  source?: filter.Enum;
70
72
  customer_id?: filter.String;
73
+ id?: filter.String;
74
+ id_at_source?: filter.String;
75
+ updated_at?: filter.Timestamp;
76
+ purchased_at?: filter.Timestamp;
71
77
  }
72
78
  export interface OmnichannelTransactionsForOmnichannelSubscriptionInputParam {
73
79
  limit?: number;
@@ -28,6 +28,7 @@ declare module 'chargebee' {
28
28
  grace_period_expires_at?: number;
29
29
  resumes_at?: number;
30
30
  has_scheduled_changes: boolean;
31
+ updated_at: number;
31
32
  resource_version?: number;
32
33
  omnichannel_subscription_item_offers?: OmnichannelSubscriptionItemOffer[];
33
34
  upcoming_renewal?: OmnichannelSubscriptionItem.UpcomingRenewal;
@@ -43,14 +43,19 @@ declare module 'chargebee' {
43
43
  | 'cash_app_pay'
44
44
  | 'wechat_pay'
45
45
  | 'alipay'
46
- | 'pix'
47
46
  | 'twint'
48
47
  | 'go_pay'
49
48
  | 'grab_pay'
50
49
  | 'pay_co'
51
50
  | 'after_pay'
52
51
  | 'swish'
53
- | 'payme';
52
+ | 'payme'
53
+ | 'pix'
54
+ | 'klarna'
55
+ | 'alipay_hk'
56
+ | 'paypay'
57
+ | 'gcash'
58
+ | 'south_korean_cards';
54
59
  success_url?: string;
55
60
  failure_url?: string;
56
61
  created_at: number;
@@ -138,14 +143,19 @@ declare module 'chargebee' {
138
143
  | 'cash_app_pay'
139
144
  | 'wechat_pay'
140
145
  | 'alipay'
141
- | 'pix'
142
146
  | 'twint'
143
147
  | 'go_pay'
144
148
  | 'grab_pay'
145
149
  | 'pay_co'
146
150
  | 'after_pay'
147
151
  | 'swish'
148
- | 'payme';
152
+ | 'payme'
153
+ | 'pix'
154
+ | 'klarna'
155
+ | 'alipay_hk'
156
+ | 'paypay'
157
+ | 'gcash'
158
+ | 'south_korean_cards';
149
159
  id_at_gateway?: string;
150
160
  error_code?: string;
151
161
  error_text?: string;
@@ -197,14 +207,19 @@ declare module 'chargebee' {
197
207
  | 'cash_app_pay'
198
208
  | 'wechat_pay'
199
209
  | 'alipay'
200
- | 'pix'
201
210
  | 'twint'
202
211
  | 'go_pay'
203
212
  | 'grab_pay'
204
213
  | 'pay_co'
205
214
  | 'after_pay'
206
215
  | 'swish'
207
- | 'payme';
216
+ | 'payme'
217
+ | 'pix'
218
+ | 'klarna'
219
+ | 'alipay_hk'
220
+ | 'paypay'
221
+ | 'gcash'
222
+ | 'south_korean_cards';
208
223
  id_at_gateway?: string;
209
224
  error_code?: string;
210
225
  error_text?: string;
@@ -257,14 +272,19 @@ declare module 'chargebee' {
257
272
  | 'cash_app_pay'
258
273
  | 'wechat_pay'
259
274
  | 'alipay'
260
- | 'pix'
261
275
  | 'twint'
262
276
  | 'go_pay'
263
277
  | 'grab_pay'
264
278
  | 'pay_co'
265
279
  | 'after_pay'
266
280
  | 'swish'
267
- | 'payme';
281
+ | 'payme'
282
+ | 'pix'
283
+ | 'klarna'
284
+ | 'alipay_hk'
285
+ | 'paypay'
286
+ | 'gcash'
287
+ | 'south_korean_cards';
268
288
  success_url?: string;
269
289
  failure_url?: string;
270
290
  }
@@ -305,14 +325,19 @@ declare module 'chargebee' {
305
325
  | 'cash_app_pay'
306
326
  | 'wechat_pay'
307
327
  | 'alipay'
308
- | 'pix'
309
328
  | 'twint'
310
329
  | 'go_pay'
311
330
  | 'grab_pay'
312
331
  | 'pay_co'
313
332
  | 'after_pay'
314
333
  | 'swish'
315
- | 'payme';
334
+ | 'payme'
335
+ | 'pix'
336
+ | 'klarna'
337
+ | 'alipay_hk'
338
+ | 'paypay'
339
+ | 'gcash'
340
+ | 'south_korean_cards';
316
341
  success_url?: string;
317
342
  failure_url?: string;
318
343
  }
@@ -467,14 +467,19 @@ declare module 'chargebee' {
467
467
  | 'cash_app_pay'
468
468
  | 'wechat_pay'
469
469
  | 'alipay'
470
- | 'pix'
471
470
  | 'twint'
472
471
  | 'go_pay'
473
472
  | 'grab_pay'
474
473
  | 'pay_co'
475
474
  | 'after_pay'
476
475
  | 'swish'
477
- | 'payme';
476
+ | 'payme'
477
+ | 'pix'
478
+ | 'klarna'
479
+ | 'alipay_hk'
480
+ | 'paypay'
481
+ | 'gcash'
482
+ | 'south_korean_cards';
478
483
  reference_id?: string;
479
484
  /**
480
485
  * @deprecated Please refer API docs to use other attributes
@@ -110,14 +110,19 @@ declare module 'chargebee' {
110
110
  | 'cash_app_pay'
111
111
  | 'wechat_pay'
112
112
  | 'alipay'
113
- | 'pix'
114
113
  | 'twint'
115
114
  | 'go_pay'
116
115
  | 'grab_pay'
117
116
  | 'pay_co'
118
117
  | 'after_pay'
119
118
  | 'swish'
120
- | 'payme';
119
+ | 'payme'
120
+ | 'pix'
121
+ | 'klarna'
122
+ | 'alipay_hk'
123
+ | 'paypay'
124
+ | 'gcash'
125
+ | 'south_korean_cards';
121
126
  reference_id?: string;
122
127
  /**
123
128
  * @deprecated Please refer API docs to use other attributes
@@ -1419,14 +1419,19 @@ declare module 'chargebee' {
1419
1419
  | 'cash_app_pay'
1420
1420
  | 'wechat_pay'
1421
1421
  | 'alipay'
1422
- | 'pix'
1423
1422
  | 'twint'
1424
1423
  | 'go_pay'
1425
1424
  | 'grab_pay'
1426
1425
  | 'pay_co'
1427
1426
  | 'after_pay'
1428
1427
  | 'swish'
1429
- | 'payme';
1428
+ | 'payme'
1429
+ | 'pix'
1430
+ | 'klarna'
1431
+ | 'alipay_hk'
1432
+ | 'paypay'
1433
+ | 'gcash'
1434
+ | 'south_korean_cards';
1430
1435
  reference_id?: string;
1431
1436
  /**
1432
1437
  * @deprecated Please refer API docs to use other attributes
@@ -1566,14 +1571,19 @@ declare module 'chargebee' {
1566
1571
  | 'cash_app_pay'
1567
1572
  | 'wechat_pay'
1568
1573
  | 'alipay'
1569
- | 'pix'
1570
1574
  | 'twint'
1571
1575
  | 'go_pay'
1572
1576
  | 'grab_pay'
1573
1577
  | 'pay_co'
1574
1578
  | 'after_pay'
1575
1579
  | 'swish'
1576
- | 'payme';
1580
+ | 'payme'
1581
+ | 'pix'
1582
+ | 'klarna'
1583
+ | 'alipay_hk'
1584
+ | 'paypay'
1585
+ | 'gcash'
1586
+ | 'south_korean_cards';
1577
1587
  reference_id?: string;
1578
1588
  /**
1579
1589
  * @deprecated Please refer API docs to use other attributes
@@ -1680,14 +1690,19 @@ declare module 'chargebee' {
1680
1690
  | 'cash_app_pay'
1681
1691
  | 'wechat_pay'
1682
1692
  | 'alipay'
1683
- | 'pix'
1684
1693
  | 'twint'
1685
1694
  | 'go_pay'
1686
1695
  | 'grab_pay'
1687
1696
  | 'pay_co'
1688
1697
  | 'after_pay'
1689
1698
  | 'swish'
1690
- | 'payme';
1699
+ | 'payme'
1700
+ | 'pix'
1701
+ | 'klarna'
1702
+ | 'alipay_hk'
1703
+ | 'paypay'
1704
+ | 'gcash'
1705
+ | 'south_korean_cards';
1691
1706
  reference_id?: string;
1692
1707
  /**
1693
1708
  * @deprecated Please refer API docs to use other attributes
@@ -1849,14 +1864,19 @@ declare module 'chargebee' {
1849
1864
  | 'cash_app_pay'
1850
1865
  | 'wechat_pay'
1851
1866
  | 'alipay'
1852
- | 'pix'
1853
1867
  | 'twint'
1854
1868
  | 'go_pay'
1855
1869
  | 'grab_pay'
1856
1870
  | 'pay_co'
1857
1871
  | 'after_pay'
1858
1872
  | 'swish'
1859
- | 'payme';
1873
+ | 'payme'
1874
+ | 'pix'
1875
+ | 'klarna'
1876
+ | 'alipay_hk'
1877
+ | 'paypay'
1878
+ | 'gcash'
1879
+ | 'south_korean_cards';
1860
1880
  reference_id?: string;
1861
1881
  /**
1862
1882
  * @deprecated Please refer API docs to use other attributes
@@ -2032,14 +2052,19 @@ declare module 'chargebee' {
2032
2052
  | 'cash_app_pay'
2033
2053
  | 'wechat_pay'
2034
2054
  | 'alipay'
2035
- | 'pix'
2036
2055
  | 'twint'
2037
2056
  | 'go_pay'
2038
2057
  | 'grab_pay'
2039
2058
  | 'pay_co'
2040
2059
  | 'after_pay'
2041
2060
  | 'swish'
2042
- | 'payme';
2061
+ | 'payme'
2062
+ | 'pix'
2063
+ | 'klarna'
2064
+ | 'alipay_hk'
2065
+ | 'paypay'
2066
+ | 'gcash'
2067
+ | 'south_korean_cards';
2043
2068
  reference_id?: string;
2044
2069
  /**
2045
2070
  * @deprecated Please refer API docs to use other attributes
@@ -2171,14 +2196,19 @@ declare module 'chargebee' {
2171
2196
  | 'cash_app_pay'
2172
2197
  | 'wechat_pay'
2173
2198
  | 'alipay'
2174
- | 'pix'
2175
2199
  | 'twint'
2176
2200
  | 'go_pay'
2177
2201
  | 'grab_pay'
2178
2202
  | 'pay_co'
2179
2203
  | 'after_pay'
2180
2204
  | 'swish'
2181
- | 'payme';
2205
+ | 'payme'
2206
+ | 'pix'
2207
+ | 'klarna'
2208
+ | 'alipay_hk'
2209
+ | 'paypay'
2210
+ | 'gcash'
2211
+ | 'south_korean_cards';
2182
2212
  reference_id?: string;
2183
2213
  /**
2184
2214
  * @deprecated Please refer API docs to use other attributes
@@ -2616,14 +2646,19 @@ declare module 'chargebee' {
2616
2646
  | 'cash_app_pay'
2617
2647
  | 'wechat_pay'
2618
2648
  | 'alipay'
2619
- | 'pix'
2620
2649
  | 'twint'
2621
2650
  | 'go_pay'
2622
2651
  | 'grab_pay'
2623
2652
  | 'pay_co'
2624
2653
  | 'after_pay'
2625
2654
  | 'swish'
2626
- | 'payme';
2655
+ | 'payme'
2656
+ | 'pix'
2657
+ | 'klarna'
2658
+ | 'alipay_hk'
2659
+ | 'paypay'
2660
+ | 'gcash'
2661
+ | 'south_korean_cards';
2627
2662
  reference_id?: string;
2628
2663
  /**
2629
2664
  * @deprecated Please refer API docs to use other attributes
@@ -48,6 +48,7 @@ declare module 'chargebee' {
48
48
  GiftUnclaimed = 'gift_unclaimed',
49
49
  VirtualBankAccountAdded = 'virtual_bank_account_added',
50
50
  PaymentIntentCreated = 'payment_intent_created',
51
+ OmnichannelSubscriptionItemUpdated = 'omnichannel_subscription_item_updated',
51
52
  CreditNoteCreatedWithBackdating = 'credit_note_created_with_backdating',
52
53
  ContractTermTerminated = 'contract_term_terminated',
53
54
  ItemFamilyUpdated = 'item_family_updated',
@@ -60,6 +61,7 @@ declare module 'chargebee' {
60
61
  ItemDeleted = 'item_deleted',
61
62
  SubscriptionRampDrafted = 'subscription_ramp_drafted',
62
63
  DunningUpdated = 'dunning_updated',
64
+ OmnichannelSubscriptionItemRecovered = 'omnichannel_subscription_item_recovered',
63
65
  ItemEntitlementsUpdated = 'item_entitlements_updated',
64
66
  TokenConsumed = 'token_consumed',
65
67
  HierarchyDeleted = 'hierarchy_deleted',
@@ -273,6 +275,7 @@ declare module 'chargebee' {
273
275
  [WebhookEventType.GiftUnclaimed]: GiftUnclaimedContent;
274
276
  [WebhookEventType.VirtualBankAccountAdded]: VirtualBankAccountAddedContent;
275
277
  [WebhookEventType.PaymentIntentCreated]: PaymentIntentCreatedContent;
278
+ [WebhookEventType.OmnichannelSubscriptionItemUpdated]: OmnichannelSubscriptionItemUpdatedContent;
276
279
  [WebhookEventType.CreditNoteCreatedWithBackdating]: CreditNoteCreatedWithBackdatingContent;
277
280
  [WebhookEventType.ContractTermTerminated]: ContractTermTerminatedContent;
278
281
  [WebhookEventType.ItemFamilyUpdated]: ItemFamilyUpdatedContent;
@@ -285,6 +288,7 @@ declare module 'chargebee' {
285
288
  [WebhookEventType.ItemDeleted]: ItemDeletedContent;
286
289
  [WebhookEventType.SubscriptionRampDrafted]: SubscriptionRampDraftedContent;
287
290
  [WebhookEventType.DunningUpdated]: DunningUpdatedContent;
291
+ [WebhookEventType.OmnichannelSubscriptionItemRecovered]: OmnichannelSubscriptionItemRecoveredContent;
288
292
  [WebhookEventType.ItemEntitlementsUpdated]: ItemEntitlementsUpdatedContent;
289
293
  [WebhookEventType.TokenConsumed]: TokenConsumedContent;
290
294
  [WebhookEventType.HierarchyDeleted]: HierarchyDeletedContent;
@@ -522,8 +526,6 @@ declare module 'chargebee' {
522
526
 
523
527
  omnichannel_transaction: OmnichannelTransaction;
524
528
 
525
- omnichannel_subscription_item_scheduled_change: OmnichannelSubscriptionItemScheduledChange;
526
-
527
529
  customer: Customer;
528
530
  };
529
531
  export type UnbilledChargesCreatedContent = {
@@ -739,6 +741,15 @@ declare module 'chargebee' {
739
741
  export type PaymentIntentCreatedContent = {
740
742
  payment_intent: PaymentIntent;
741
743
  };
744
+ export type OmnichannelSubscriptionItemUpdatedContent = {
745
+ omnichannel_subscription_item: OmnichannelSubscriptionItem;
746
+
747
+ omnichannel_subscription: OmnichannelSubscription;
748
+
749
+ omnichannel_transaction: OmnichannelTransaction;
750
+
751
+ customer: Customer;
752
+ };
742
753
  export type CreditNoteCreatedWithBackdatingContent = {
743
754
  credit_note: CreditNote;
744
755
  };
@@ -785,6 +796,15 @@ declare module 'chargebee' {
785
796
  export type DunningUpdatedContent = {
786
797
  invoice: Invoice;
787
798
  };
799
+ export type OmnichannelSubscriptionItemRecoveredContent = {
800
+ omnichannel_subscription_item: OmnichannelSubscriptionItem;
801
+
802
+ omnichannel_subscription: OmnichannelSubscription;
803
+
804
+ omnichannel_transaction: OmnichannelTransaction;
805
+
806
+ customer: Customer;
807
+ };
788
808
  export type ItemEntitlementsUpdatedContent = {
789
809
  feature: Feature;
790
810
 
@@ -1549,8 +1569,6 @@ declare module 'chargebee' {
1549
1569
 
1550
1570
  omnichannel_transaction: OmnichannelTransaction;
1551
1571
 
1552
- omnichannel_subscription_item_scheduled_change: OmnichannelSubscriptionItemScheduledChange;
1553
-
1554
1572
  customer: Customer;
1555
1573
  };
1556
1574
  export type TaxWithheldRecordedContent = {
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChargebeeZodValidationError = void 0;
4
- class ChargebeeZodValidationError extends Error {
5
- constructor(actionName, zodError) {
6
- var _a;
7
- const messages = zodError.issues
8
- .map((e) => `${e.path.join('.')}: ${e.message}`)
9
- .join('; ');
10
- super(`[Chargebee] Validation failed for '${actionName}': ${messages}`);
11
- Object.setPrototypeOf(this, new.target.prototype);
12
- this.name = 'ChargebeeZodValidationError';
13
- this.actionName = actionName;
14
- this.zodError = zodError;
15
- (_a = Error.captureStackTrace) === null || _a === void 0 ? void 0 : _a.call(Error, this, this.constructor);
16
- }
17
- }
18
- exports.ChargebeeZodValidationError = ChargebeeZodValidationError;