chargebee 3.17.0 → 3.18.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ### v3.18.0 (2026-01-12)
2
+ * * *
3
+
4
+ ### New Attributes:
5
+ * deleted has been added to SalesOrder.
6
+
7
+ ### New Parameters:
8
+ * invoice_usages has been added to HostedPage#CheckoutExistingForItemsInputParam.
9
+
10
+ ### Bug fix:
11
+ * webhook event content types array resource incorrectly marked as object fixed (#96).
12
+
1
13
  ### v3.17.0 (2025-12-30)
2
14
  * * *
3
15
 
@@ -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.17.0',
14
+ clientVersion: 'v3.18.0',
15
15
  port: DEFAULT_PORT,
16
16
  timemachineWaitInMillis: DEFAULT_TIME_MACHINE_WAIT,
17
17
  exportWaitInMillis: DEFAULT_EXPORT_WAIT,
@@ -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.17.0',
11
+ clientVersion: 'v3.18.0',
12
12
  port: DEFAULT_PORT,
13
13
  timemachineWaitInMillis: DEFAULT_TIME_MACHINE_WAIT,
14
14
  exportWaitInMillis: DEFAULT_EXPORT_WAIT,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chargebee",
3
- "version": "3.17.0",
3
+ "version": "3.18.0",
4
4
  "description": "A library for integrating with Chargebee.",
5
5
  "scripts": {
6
6
  "prepack": "npm install && npm run build",
@@ -374,6 +374,7 @@ declare module 'chargebee' {
374
374
  force_term_reset?: boolean;
375
375
  change_option?: ChangeOptionEnum;
376
376
  changes_scheduled_at?: number;
377
+ invoice_usages?: boolean;
377
378
  redirect_url?: string;
378
379
  cancel_url?: string;
379
380
  pass_thru_content?: string;
@@ -28,6 +28,7 @@ declare module 'chargebee' {
28
28
  renewal_term?: SalesOrder.RenewalTerm;
29
29
  status: 'active' | 'completed';
30
30
  credit_lines?: SalesOrder.CreditLine[];
31
+ deleted: boolean;
31
32
  }
32
33
 
33
34
  export namespace SalesOrder {
@@ -488,7 +488,7 @@ declare module 'chargebee' {
488
488
 
489
489
  customer: Customer;
490
490
 
491
- advance_invoice_schedule: AdvanceInvoiceSchedule;
491
+ advance_invoice_schedule: AdvanceInvoiceSchedule[];
492
492
  };
493
493
  export type GiftExpiredContent = {
494
494
  gift: Gift;
@@ -501,7 +501,7 @@ declare module 'chargebee' {
501
501
  credit_note: CreditNote;
502
502
  };
503
503
  export type UnbilledChargesDeletedContent = {
504
- unbilled_charge: UnbilledCharge;
504
+ unbilled_charge: UnbilledCharge[];
505
505
  };
506
506
  export type CouponUpdatedContent = {
507
507
  coupon: Coupon;
@@ -525,7 +525,7 @@ declare module 'chargebee' {
525
525
  customer: Customer;
526
526
  };
527
527
  export type UnbilledChargesCreatedContent = {
528
- unbilled_charge: UnbilledCharge;
528
+ unbilled_charge: UnbilledCharge[];
529
529
  };
530
530
  export type SubscriptionResumedContent = {
531
531
  subscription: Subscription;
@@ -536,7 +536,7 @@ declare module 'chargebee' {
536
536
 
537
537
  invoice: Invoice;
538
538
 
539
- unbilled_charge: UnbilledCharge;
539
+ unbilled_charge: UnbilledCharge[];
540
540
  };
541
541
  export type OmnichannelOneTimeOrderItemCancelledContent = {
542
542
  omnichannel_one_time_order: OmnichannelOneTimeOrder;
@@ -556,9 +556,9 @@ declare module 'chargebee' {
556
556
 
557
557
  invoice: Invoice;
558
558
 
559
- credit_note: CreditNote;
559
+ credit_note: CreditNote[];
560
560
 
561
- unbilled_charge: UnbilledCharge;
561
+ unbilled_charge: UnbilledCharge[];
562
562
  };
563
563
  export type ItemEntitlementsRemovedContent = {
564
564
  feature: Feature;
@@ -601,7 +601,7 @@ declare module 'chargebee' {
601
601
 
602
602
  invoice: Invoice;
603
603
 
604
- unbilled_charge: UnbilledCharge;
604
+ unbilled_charge: UnbilledCharge[];
605
605
  };
606
606
  export type SubscriptionTrialEndReminderContent = {
607
607
  subscription: Subscription;
@@ -632,7 +632,7 @@ declare module 'chargebee' {
632
632
 
633
633
  card: Card;
634
634
 
635
- subscription: Subscription;
635
+ subscription: Subscription[];
636
636
  };
637
637
  export type RefundInitiatedContent = {
638
638
  transaction: Transaction;
@@ -713,9 +713,9 @@ declare module 'chargebee' {
713
713
 
714
714
  invoice: Invoice;
715
715
 
716
- credit_note: CreditNote;
716
+ credit_note: CreditNote[];
717
717
 
718
- unbilled_charge: UnbilledCharge;
718
+ unbilled_charge: UnbilledCharge[];
719
719
  };
720
720
  export type OmnichannelSubscriptionItemChangedContent = {
721
721
  omnichannel_subscription_item: OmnichannelSubscriptionItem;
@@ -769,7 +769,7 @@ declare module 'chargebee' {
769
769
 
770
770
  customer: Customer;
771
771
 
772
- advance_invoice_schedule: AdvanceInvoiceSchedule;
772
+ advance_invoice_schedule: AdvanceInvoiceSchedule[];
773
773
  };
774
774
  export type ItemDeletedContent = {
775
775
  item: Item;
@@ -813,7 +813,7 @@ declare module 'chargebee' {
813
813
 
814
814
  invoice: Invoice;
815
815
 
816
- unbilled_charge: UnbilledCharge;
816
+ unbilled_charge: UnbilledCharge[];
817
817
  };
818
818
  export type FeatureUpdatedContent = {
819
819
  feature: Feature;
@@ -917,9 +917,9 @@ declare module 'chargebee' {
917
917
 
918
918
  invoice: Invoice;
919
919
 
920
- credit_note: CreditNote;
920
+ credit_note: CreditNote[];
921
921
 
922
- unbilled_charge: UnbilledCharge;
922
+ unbilled_charge: UnbilledCharge[];
923
923
  };
924
924
  export type OrderReadyToProcessContent = {
925
925
  order: Order;
@@ -965,7 +965,7 @@ declare module 'chargebee' {
965
965
  subscription: Subscription;
966
966
  };
967
967
  export type UnbilledChargesInvoicedContent = {
968
- unbilled_charge: UnbilledCharge;
968
+ unbilled_charge: UnbilledCharge[];
969
969
 
970
970
  invoice: Invoice;
971
971
  };
@@ -994,9 +994,9 @@ declare module 'chargebee' {
994
994
 
995
995
  invoice: Invoice;
996
996
 
997
- credit_note: CreditNote;
997
+ credit_note: CreditNote[];
998
998
 
999
- unbilled_charge: UnbilledCharge;
999
+ unbilled_charge: UnbilledCharge[];
1000
1000
  };
1001
1001
  export type PaymentFailedContent = {
1002
1002
  transaction: Transaction;
@@ -1153,7 +1153,7 @@ declare module 'chargebee' {
1153
1153
 
1154
1154
  customer: Customer;
1155
1155
 
1156
- advance_invoice_schedule: AdvanceInvoiceSchedule;
1156
+ advance_invoice_schedule: AdvanceInvoiceSchedule[];
1157
1157
  };
1158
1158
  export type CardDeletedContent = {
1159
1159
  customer: Customer;
@@ -1206,7 +1206,7 @@ declare module 'chargebee' {
1206
1206
 
1207
1207
  invoice: Invoice;
1208
1208
 
1209
- unbilled_charge: UnbilledCharge;
1209
+ unbilled_charge: UnbilledCharge[];
1210
1210
  };
1211
1211
  export type OmnichannelSubscriptionImportedContent = {
1212
1212
  omnichannel_subscription_item: OmnichannelSubscriptionItem;
@@ -1262,7 +1262,7 @@ declare module 'chargebee' {
1262
1262
 
1263
1263
  invoice: Invoice;
1264
1264
 
1265
- unbilled_charge: UnbilledCharge;
1265
+ unbilled_charge: UnbilledCharge[];
1266
1266
  };
1267
1267
  export type SubscriptionEntitlementsCreatedContent = {
1268
1268
  subscription_entitlements_created_detail: SubscriptionEntitlementsCreatedDetail;
@@ -1346,12 +1346,12 @@ declare module 'chargebee' {
1346
1346
 
1347
1347
  invoice: Invoice;
1348
1348
 
1349
- credit_note: CreditNote;
1349
+ credit_note: CreditNote[];
1350
1350
 
1351
- unbilled_charge: UnbilledCharge;
1351
+ unbilled_charge: UnbilledCharge[];
1352
1352
  };
1353
1353
  export type UnbilledChargesVoidedContent = {
1354
- unbilled_charge: UnbilledCharge;
1354
+ unbilled_charge: UnbilledCharge[];
1355
1355
  };
1356
1356
  export type QuoteCreatedContent = {
1357
1357
  quote: Quote;
@@ -1404,7 +1404,7 @@ declare module 'chargebee' {
1404
1404
 
1405
1405
  invoice: Invoice;
1406
1406
 
1407
- unbilled_charge: UnbilledCharge;
1407
+ unbilled_charge: UnbilledCharge[];
1408
1408
  };
1409
1409
  export type OrderUpdatedContent = {
1410
1410
  order: Order;
@@ -1436,7 +1436,7 @@ declare module 'chargebee' {
1436
1436
 
1437
1437
  invoice: Invoice;
1438
1438
 
1439
- unbilled_charge: UnbilledCharge;
1439
+ unbilled_charge: UnbilledCharge[];
1440
1440
  };
1441
1441
  export type SubscriptionRampCreatedContent = {
1442
1442
  ramp: Ramp;
@@ -1571,9 +1571,9 @@ declare module 'chargebee' {
1571
1571
 
1572
1572
  invoice: Invoice;
1573
1573
 
1574
- credit_note: CreditNote;
1574
+ credit_note: CreditNote[];
1575
1575
 
1576
- unbilled_charge: UnbilledCharge;
1576
+ unbilled_charge: UnbilledCharge[];
1577
1577
  };
1578
1578
  export type RuleCreatedContent = {
1579
1579
  rule: Rule;