chargebee 3.17.0 → 3.19.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,28 @@
1
+ ### v3.19.0 (2026-01-16)
2
+ * * *
3
+
4
+ ### New Parameters:
5
+ * `applicable_item_price_ids` has been added to Coupon#CouponListRequest.
6
+ * `applicable_item_price_ids` has been added to Export#CouponRequest.
7
+
8
+ ### New Enums:
9
+ * `Twikey` has been added to GatewayEnum.
10
+
11
+ ### Deleted Action:
12
+ * `move` action has been removed from the ItemPrice.
13
+
14
+ ### v3.18.0 (2026-01-12)
15
+ * * *
16
+
17
+ ### New Attributes:
18
+ * deleted has been added to SalesOrder.
19
+
20
+ ### New Parameters:
21
+ * invoice_usages has been added to HostedPage#CheckoutExistingForItemsInputParam.
22
+
23
+ ### Bug fix:
24
+ * webhook event content types array resource incorrectly marked as object fixed (#96).
25
+
1
26
  ### v3.17.0 (2025-12-30)
2
27
  * * *
3
28
 
@@ -3376,4 +3401,4 @@ Support for deleting the plans & addons. See our API documentation on [Delete a
3376
3401
 
3377
3402
  ### v1.0.0 (2014-02-02)
3378
3403
  * * *
3379
- Initial version of ChargeBee NodeJS binding.
3404
+ Initial version of ChargeBee NodeJS binding.
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Chargebee Node.js / TypeScript Client Library
2
2
 
3
3
  > [!NOTE]
4
- > [![Join Discord](https://img.shields.io/badge/Discord-Early%20Access-blue?logo=discord&logoColor=white)](https://discord.gg/S3SXDzXHAg)
4
+ > [![Join Discord](https://img.shields.io/badge/Discord-Early%20Access-blue?logo=discord&logoColor=white)](https://discord.gg/gpsNqnhDm2)
5
5
  >
6
6
  > We are trialing a Discord server for developers building with Chargebee. Limited spots are open on a first-come basis. Join [here](https://discord.gg/S3SXDzXHAg) if interested.
7
7
 
@@ -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.19.0',
15
15
  port: DEFAULT_PORT,
16
16
  timemachineWaitInMillis: DEFAULT_TIME_MACHINE_WAIT,
17
17
  exportWaitInMillis: DEFAULT_EXPORT_WAIT,
@@ -3963,19 +3963,6 @@ exports.Endpoints = {
3963
3963
  {},
3964
3964
  {},
3965
3965
  ],
3966
- [
3967
- 'moveItemPrice',
3968
- 'POST',
3969
- '/item_prices',
3970
- '/move',
3971
- true,
3972
- null,
3973
- false,
3974
- {},
3975
- {
3976
- isIdempotent: true,
3977
- },
3978
- ],
3979
3966
  ],
3980
3967
  attachedItem: [
3981
3968
  [
@@ -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.19.0',
12
12
  port: DEFAULT_PORT,
13
13
  timemachineWaitInMillis: DEFAULT_TIME_MACHINE_WAIT,
14
14
  exportWaitInMillis: DEFAULT_EXPORT_WAIT,
@@ -3960,19 +3960,6 @@ export const Endpoints = {
3960
3960
  {},
3961
3961
  {},
3962
3962
  ],
3963
- [
3964
- 'moveItemPrice',
3965
- 'POST',
3966
- '/item_prices',
3967
- '/move',
3968
- true,
3969
- null,
3970
- false,
3971
- {},
3972
- {
3973
- isIdempotent: true,
3974
- },
3975
- ],
3976
3963
  ],
3977
3964
  attachedItem: [
3978
3965
  [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chargebee",
3
- "version": "3.17.0",
3
+ "version": "3.19.0",
4
4
  "description": "A library for integrating with Chargebee.",
5
5
  "scripts": {
6
6
  "prepack": "npm install && npm run build",
package/types/core.d.ts CHANGED
@@ -429,6 +429,7 @@ declare module 'chargebee' {
429
429
  | 'jp_morgan'
430
430
  | 'deutsche_bank'
431
431
  | 'ezidebit'
432
+ | 'twikey'
432
433
  | 'gocardless'
433
434
  | 'not_applicable';
434
435
  type HierarchyOperationTypeEnum =
@@ -241,6 +241,7 @@ declare module 'chargebee' {
241
241
  created_at?: filter.Timestamp;
242
242
  updated_at?: filter.Timestamp;
243
243
  currency_code?: filter.String;
244
+ applicable_item_price_ids?: filter.String;
244
245
  'sort_by[asc]'?: string;
245
246
  'sort_by[desc]'?: string;
246
247
  [key: `cf_${string}`]: unknown;
@@ -230,6 +230,7 @@ declare module 'chargebee' {
230
230
  }
231
231
  export interface CouponsInputParam {
232
232
  currency_code?: filter.String;
233
+ applicable_item_price_ids?: filter.String;
233
234
  coupon?: CouponCouponsInputParam;
234
235
  }
235
236
  export interface CustomersInputParam {
@@ -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;
@@ -91,16 +91,6 @@ declare module 'chargebee' {
91
91
  input?: FindApplicableItemPricesInputParam,
92
92
  headers?: ChargebeeRequestHeader,
93
93
  ): Promise<ChargebeeResponse<FindApplicableItemPricesResponse>>;
94
-
95
- /**
96
- * @deprecated This method is deprecated and will be removed in a future version.
97
- */
98
-
99
- moveItemPrice(
100
- item_price_id: string,
101
- input: MoveItemPriceInputParam,
102
- headers?: ChargebeeRequestHeader,
103
- ): Promise<ChargebeeResponse<MoveItemPriceResponse>>;
104
94
  }
105
95
 
106
96
  export interface CreateResponse {
@@ -134,10 +124,6 @@ declare module 'chargebee' {
134
124
  next_offset?: string;
135
125
  }
136
126
 
137
- export interface MoveItemPriceResponse {
138
- item_price: ItemPrice;
139
- }
140
-
141
127
  export interface Tier {
142
128
  starting_unit: number;
143
129
  ending_unit?: number;
@@ -283,10 +269,6 @@ declare module 'chargebee' {
283
269
  'sort_by[asc]'?: string;
284
270
  'sort_by[desc]'?: string;
285
271
  }
286
- export interface MoveItemPriceInputParam {
287
- destination_item_id: string;
288
- variant_id?: string;
289
- }
290
272
  export interface TaxDetailCreateInputParam {
291
273
  tax_profile_id?: string;
292
274
  avalara_tax_code?: 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;