chargebee 2.39.0 → 2.40.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
+ ### v2.40.0 (2024-08-14)
2
+ * * *
3
+
4
+ #### New Attributes:
5
+ * feature_type has been added in SubscriptionEntitlement.
6
+ * business_entity_id has been made optional in Quote.
7
+ * business_entity_id has been made optional in CreditNote.
8
+
9
+ #### New Input parameters:
10
+ * invoice_usages has been added in Subscription#UpdateForItemsRequest.
11
+ * invoice_usages has been added in Estimate#UpdateSubscriptionForItemsRequest.
12
+
1
13
  ### v2.39.0 (2024-07-31)
2
14
  * * *
3
15
 
package/lib/chargebee.js CHANGED
@@ -11,7 +11,7 @@ ChargeBee._env = {
11
11
  hostSuffix: '.chargebee.com',
12
12
  apiPath: '/api/v2',
13
13
  timeout: 80000,
14
- clientVersion: 'v2.39.0',
14
+ clientVersion: 'v2.40.0',
15
15
  port: 443,
16
16
  timemachineWaitInMillis: 3000,
17
17
  exportWaitInMillis: 3000
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"chargebee",
3
- "version":"2.39.0",
3
+ "version":"2.40.0",
4
4
  "description":"A library for integrating with ChargeBee.",
5
5
  "keywords":[
6
6
  "payments",
@@ -1,4 +1,6 @@
1
1
  ///<reference path='./../core.d.ts'/>
2
+ ///<reference path='./../index.d.ts'/>
3
+
2
4
  declare module 'chargebee' {
3
5
  export interface CreditNote {
4
6
 
@@ -240,7 +242,7 @@ Ireland** . The first two characters of the VAT number in such a case is &#x60;X
240
242
 
241
243
  */
242
244
 
243
- business_entity_id:string;
245
+ business_entity_id?:string;
244
246
 
245
247
  /**
246
248
  * @description An e-invoice or electronic invoice is a structured representation of an invoice that is interoperable between computerized invoicing systems. Depending on the country, e-invoicing can be necessary to meet financial/taxation authority regulations.
@@ -316,6 +316,8 @@ declare module 'chargebee' {
316
316
  use_existing_balances?:boolean;
317
317
 
318
318
  invoice_immediately?:boolean;
319
+
320
+ invoice_usages?:boolean;
319
321
  }
320
322
  export interface RenewalEstimateResponse {
321
323
  estimate:Estimate;
@@ -1,4 +1,6 @@
1
1
  ///<reference path='./../core.d.ts'/>
2
+ ///<reference path='./../index.d.ts'/>
3
+
2
4
  declare module 'chargebee' {
3
5
  export interface Quote {
4
6
 
@@ -76,7 +78,7 @@ declare module 'chargebee' {
76
78
 
77
79
  contract_term_termination_fee?:number;
78
80
 
79
- business_entity_id:string;
81
+ business_entity_id?:string;
80
82
  }
81
83
  export namespace Quote {
82
84
  export class QuoteResource {
@@ -2752,6 +2752,7 @@ Updates the specified subscription by setting the parameters passed. Any paramet
2752
2752
  */
2753
2753
 
2754
2754
  item_tiers?:{ending_unit?:number,ending_unit_in_decimal?:string,item_price_id?:string,price?:number,price_in_decimal?:string,starting_unit?:number,starting_unit_in_decimal?:string}[];
2755
+ invoice_usages?:boolean;
2755
2756
  }
2756
2757
  export interface ChangeTermEndResponse {
2757
2758
  subscription:Subscription;
@@ -79,6 +79,7 @@ declare module 'chargebee' {
79
79
  */
80
80
 
81
81
  components?:SubscriptionEntitlement.Component;
82
+ feature_type?:string;
82
83
  }
83
84
  export namespace SubscriptionEntitlement {
84
85
  export class SubscriptionEntitlementResource {