chargebee 2.47.0 → 2.49.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 (32) hide show
  1. package/CHANGELOG.md +149 -0
  2. package/lib/chargebee.js +1 -1
  3. package/lib/resources/api_endpoints.js +16 -2
  4. package/package.json +1 -1
  5. package/types/core.d.ts +5 -4
  6. package/types/index.d.ts +6 -0
  7. package/types/resources/Addon.d.ts +440 -0
  8. package/types/resources/CreditNote.d.ts +40 -1
  9. package/types/resources/CreditNoteEstimate.d.ts +8 -2
  10. package/types/resources/DifferentialPrice.d.ts +6 -2
  11. package/types/resources/Estimate.d.ts +6 -4
  12. package/types/resources/HostedPage.d.ts +227 -893
  13. package/types/resources/Invoice.d.ts +44 -5
  14. package/types/resources/InvoiceEstimate.d.ts +40 -1
  15. package/types/resources/Item.d.ts +4 -0
  16. package/types/resources/ItemPrice.d.ts +6 -2
  17. package/types/resources/OmnichannelSubscription.d.ts +5 -5
  18. package/types/resources/OmnichannelSubscriptionItem.d.ts +42 -1
  19. package/types/resources/OmnichannelSubscriptionItemScheduledChange.d.ts +36 -0
  20. package/types/resources/OmnichannelTransaction.d.ts +4 -4
  21. package/types/resources/PaymentSource.d.ts +7 -0
  22. package/types/resources/Plan.d.ts +554 -0
  23. package/types/resources/Purchase.d.ts +13 -258
  24. package/types/resources/Quote.d.ts +18 -12
  25. package/types/resources/QuoteLineGroup.d.ts +12 -322
  26. package/types/resources/QuotedCharge.d.ts +23 -219
  27. package/types/resources/QuotedSubscription.d.ts +4 -0
  28. package/types/resources/Ramp.d.ts +48 -542
  29. package/types/resources/RecordedPurchase.d.ts +5 -3
  30. package/types/resources/Subscription.d.ts +7 -3
  31. package/types/resources/Transaction.d.ts +1 -1
  32. package/types/resources/UnbilledCharge.d.ts +31 -25
@@ -3,120 +3,24 @@
3
3
  declare module 'chargebee' {
4
4
  export interface Purchase {
5
5
 
6
- /**
7
- * @description The unique identifier of the purchase resource. This is always autogenerated.
8
6
 
9
- */
10
-
11
7
  id?:string;
12
-
13
- /**
14
- * @description The unique identifier of the [customer](https://apidocs.chargebee.com/docs/api/customers) that made this purchase.
15
8
 
16
- */
17
-
18
9
  customer_id:string;
19
-
20
- /**
21
- * @description The time at which this purchase was created.
22
10
 
23
- */
24
-
25
11
  created_at?:number;
26
-
27
- /**
28
- * @description The time at which the purchase was modified.
29
12
 
30
- */
31
-
32
13
  modified_at?:number;
33
-
34
- /**
35
- * @description The unique identifiers of the [subscriptions](https://apidocs.chargebee.com/docs/api/subscriptions) that are created as part of this purchase. These IDs remain even when the associated subscriptions have been deleted.
36
14
 
37
- */
38
-
39
15
  subscription_ids?:string[];
40
-
41
- /**
42
- * @description The unique identifier of the [invoice(s)](invoices) created immediately as part of this purchase.
43
16
 
44
- */
45
-
46
17
  invoice_ids?:string[];
18
+
47
19
  }
48
20
  export namespace Purchase {
49
21
  export class PurchaseResource {
50
- /**
51
- * @description Creates a `purchase` resource. A purchase can contain one or more of the following:
52
-
53
- * subscriptions (a [subscription](subscriptions) resource consists of item prices such that at least one of the item prices belongs to an [item](items) of `type` `plan`.)
54
- * group of one-time charges (aka [charge item prices](item_prices#types))
55
-
56
- When you call this API, the invoices for the subscription(s) and one-time charge(s) are created immediately and not left [unbilled](subscriptions?prod_cat_ver=2#create_subscription_for_items_invoice_immediately).
57
- **Note**
58
-
59
- Providing `shipping_addresses[]` is required when the [Orders feature](https://www.chargebee.com/docs/2.0/orders.html#configuration_step-1-configure-site-wide-settings) has been enabled.
60
-
61
- ### Specifying `purchase_item` groups {#groups}
62
-
63
-
64
- When creating a purchase, you must specify the *group* or `index` to which each item price belongs. You can do this by setting the `purchase_items[index]` for each item price. Item prices with the same `purchase_items[index]` belong to the same group.
65
-
66
-
67
- The grouping of item prices allows you to specify the `discounts[]` applicable for each group and indicate which item prices should be added to any subscriptions you want to create. Groups can be one of two types:
68
-
69
- * Subscription groups
70
- * One-time charge groups
71
-
72
- The following subsections describe the types of groups in detail.
73
- **Note**
74
-
75
- You can specify up to 10 groups,
76
-
77
- * with a recommended subscription group of 5. To increase this limit to a maximum of 8, contact eap@chargebee.com.
78
- * with a maximum of 10 one-time charge groups by default.
79
-
80
- The total limit for group items for a single purchase is 60.
81
-
82
- #### Subscription groups {#subscription}
83
-
84
- To create a subscription, specify a *subscription group* . A subscription [group](#groups) is a group of item prices that contains exactly one item price of `type` `plan`. To create multiple subscriptions, provide multiple subscription groups.
85
- **Note**
86
-
87
- A subscription group can have up to 20 non-plan item prices. To increase this limit to a maximum of 60, contact eap@chargebee.com.
88
-
89
- #### Custom Fields {#custom-fields}
90
-
91
- Purchase API supports custom fields of Subscriptions, use the following format to specify custom fields in Purchase API: **`subscription_info[custom_field]`**.
92
-
93
- #### One-time charge groups {#one-time}
94
-
95
- A one-time charge [group](#groups) is a group of charge item prices (i.e. item prices belonging to items of `type` `charge`). Charge item prices can be added to subscription groups as well. The charges within and across each one-time group must be unique.
96
- **Note**
97
-
98
- * A one-time charge group can have up to 20 item prices. To increase this limit to a maximum of 60, contact eap@chargebee.com.
99
- * A charge item price can only be added to a single one-time charge group. However, it can be part of multiple [subscription groups](#subscription).
100
-
101
- ### Applying discounts {#discounts}
102
-
103
- Discounts, both [manual discounts](discounts) and <coupons>, can be applied to groups by specifying the `discounts[]` array. The following table describes the method of application based on whether `discounts[index][i]` is provided:
104
-
105
- | | **`discounts[index][i]` is provided** | **`discounts[index][i]` is not provided** |
106
- |----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
107
- | **Coupons** | * The coupon is applied exclusively to the invoice for group `i`. * The coupon is applied exclusively to the invoice created immediately upon invoking this API. * If group `i` is a [subscription group](#subscription), then the coupon is applied to invoices for subscription renewals based on coupon attributes such as `duration_type` and `max_redemptions`. | * The coupon is applied to all the invoices immediately generated upon invoking this API. * The coupon is not applied to subsequent invoices, such as those generated upon subscription renewal. |
108
- | **Manual discounts** | * The manual discount is applied exclusively to the invoice for group `i`. * The manual discount is applied exclusively to the invoice created immediately upon invoking this API. * The manual discount is not applied to subsequent invoices, such as those generated upon subscription renewal. | * The manual discount is applied to all the invoices immediately generated upon invoking this API. * The manual discount is not applied to subsequent invoices, such as those generated upon subscription renewal. |
109
-
110
-
111
- */
112
-
113
22
  create(input:CreateInputParam):ChargebeeRequest<CreateResponse>;
114
23
 
115
- /**
116
- * @description Returns an estimate for creating a &#x60;purchase&#x60; resource. The operation works exactly like [Create a purchase](purchases#create_a_purchase), except that only an [estimate](estimates) resource is returned without an actual &#x60;purchase&#x60; resource being created.
117
-
118
- */
119
-
120
24
  estimate(input:EstimateInputParam):ChargebeeRequest<EstimateResponse>;
121
25
  }
122
26
  export interface CreateResponse {
@@ -124,203 +28,54 @@ Discounts, both [manual discounts](discounts) and &lt;coupons&gt;, can be applie
124
28
  }
125
29
  export interface CreateInputParam {
126
30
 
127
- /**
128
- * @description The unique identifier of the [customer](https://apidocs.chargebee.com/docs/api/customers) that made this purchase.
129
-
130
- */
131
-
132
- customer_id:string;
133
-
134
- /**
135
- * @description Payment source attached to this purchase. If present, the customer&#x27;s payment sources won&#x27;t be used to collect any payment for this purchase.
136
-
137
- */
138
-
139
- payment_source_id?:string;
31
+ invoice_info?:{notes?:string,po_number?:string};
140
32
 
141
- /**
142
- * @description Parameters for invoice_info
143
-
144
- */
33
+ payment_schedule?:{amount?:number,scheme_id?:string};
145
34
 
146
- invoice_info?:{notes?:string,po_number?:string};
35
+ statement_descriptor?:{descriptor?:string};
147
36
 
148
- /**
149
- * @description Parameters for purchase_items
150
-
151
- */
37
+ payment_intent?:{additional_information?:object,gateway_account_id?:string,gw_payment_method_id?:string,gw_token?:string,id?:string,payment_method_type?:'card' | 'ideal' | 'sofort' | 'bancontact' | 'google_pay' | 'dotpay' | 'giropay' | 'apple_pay' | 'upi' | 'netbanking_emandates' | 'paypal_express_checkout' | 'direct_debit' | 'boleto' | 'venmo' | 'amazon_payments' | 'pay_to' | 'faster_payments' | 'sepa_instant_transfer' | 'klarna_pay_now' | 'online_banking_poland',reference_id?:string};
152
38
 
153
39
  purchase_items:{index:number,item_price_id:string,quantity?:number,quantity_in_decimal?:string,unit_amount?:number,unit_amount_in_decimal?:string}[];
154
40
 
155
- /**
156
- * @description Parameters for item_tiers
157
-
158
- */
159
-
160
41
  item_tiers:{ending_unit?:number,ending_unit_in_decimal?:string,index:number,item_price_id?:string,price?:number,price_in_decimal?:string,starting_unit?:number,starting_unit_in_decimal?:string}[];
161
42
 
162
- /**
163
- * @description Parameters for shipping_addresses
164
-
165
- */
166
-
167
43
  shipping_addresses?:{city?:string,company?:string,country?:string,email?:string,first_name?:string,last_name?:string,line1?:string,line2?:string,line3?:string,phone?:string,state?:string,state_code?:string,validation_status?:ValidationStatus,zip?:string}[];
168
44
 
169
- /**
170
- * @description Parameters for discounts
171
-
172
- */
173
-
174
45
  discounts?:{amount?:number,coupon_id?:string,included_in_mrr?:boolean,index?:number,percentage?:number}[];
175
46
 
176
- /**
177
- * @description Parameters for subscription_info
178
-
179
- */
180
-
181
47
  subscription_info:{billing_cycles?:number,contract_term_billing_cycle_on_renewal?:number,index:number,meta_data?:object,subscription_id?:string}[];
182
48
 
183
- /**
184
- * @description Creates a &#x60;purchase&#x60; resource. A purchase can contain one or more of the following:
185
-
186
- * subscriptions (a [subscription](subscriptions) resource consists of item prices such that at least one of the item prices belongs to an [item](items) of &#x60;type&#x60; &#x60;plan&#x60;.)
187
- * group of one-time charges (aka [charge item prices](item_prices#types))
188
-
189
- When you call this API, the invoices for the subscription(s) and one-time charge(s) are created immediately and not left [unbilled](subscriptions?prod_cat_ver&#x3D;2#create_subscription_for_items_invoice_immediately).
190
- **Note**
191
-
192
- Providing &#x60;shipping_addresses[]&#x60; is required when the [Orders feature](https://www.chargebee.com/docs/2.0/orders.html#configuration_step-1-configure-site-wide-settings) has been enabled.
193
-
194
- ### Specifying &#x60;purchase_item&#x60; groups {#groups}
195
-
196
-
197
- When creating a purchase, you must specify the *group* or &#x60;index&#x60; to which each item price belongs. You can do this by setting the &#x60;purchase_items[index]&#x60; for each item price. Item prices with the same &#x60;purchase_items[index]&#x60; belong to the same group.
198
-
199
-
200
- The grouping of item prices allows you to specify the &#x60;discounts[]&#x60; applicable for each group and indicate which item prices should be added to any subscriptions you want to create. Groups can be one of two types:
201
-
202
- * Subscription groups
203
- * One-time charge groups
204
-
205
- The following subsections describe the types of groups in detail.
206
- **Note**
207
-
208
- You can specify up to 10 groups,
209
-
210
- * with a recommended subscription group of 5. To increase this limit to a maximum of 8, contact eap@chargebee.com.
211
- * with a maximum of 10 one-time charge groups by default.
212
-
213
- The total limit for group items for a single purchase is 60.
214
-
215
- #### Subscription groups {#subscription}
216
-
217
- To create a subscription, specify a *subscription group* . A subscription [group](#groups) is a group of item prices that contains exactly one item price of &#x60;type&#x60; &#x60;plan&#x60;. To create multiple subscriptions, provide multiple subscription groups.
218
- **Note**
219
-
220
- A subscription group can have up to 20 non-plan item prices. To increase this limit to a maximum of 60, contact eap@chargebee.com.
221
-
222
- #### Custom Fields {#custom-fields}
223
-
224
- Purchase API supports custom fields of Subscriptions, use the following format to specify custom fields in Purchase API: **&#x60;subscription_info[custom_field]&#x60;**.
225
-
226
- #### One-time charge groups {#one-time}
227
-
228
- A one-time charge [group](#groups) is a group of charge item prices (i.e. item prices belonging to items of &#x60;type&#x60; &#x60;charge&#x60;). Charge item prices can be added to subscription groups as well. The charges within and across each one-time group must be unique.
229
- **Note**
230
-
231
- * A one-time charge group can have up to 20 item prices. To increase this limit to a maximum of 60, contact eap@chargebee.com.
232
- * A charge item price can only be added to a single one-time charge group. However, it can be part of multiple [subscription groups](#subscription).
233
-
234
- ### Applying discounts {#discounts}
235
-
236
- Discounts, both [manual discounts](discounts) and &lt;coupons&gt;, can be applied to groups by specifying the &#x60;discounts[]&#x60; array. The following table describes the method of application based on whether &#x60;discounts[index][i]&#x60; is provided:
237
-
238
- | | **&#x60;discounts[index][i]&#x60; is provided** | **&#x60;discounts[index][i]&#x60; is not provided** |
239
- |----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
240
- | **Coupons** | * The coupon is applied exclusively to the invoice for group &#x60;i&#x60;. * The coupon is applied exclusively to the invoice created immediately upon invoking this API. * If group &#x60;i&#x60; is a [subscription group](#subscription), then the coupon is applied to invoices for subscription renewals based on coupon attributes such as &#x60;duration_type&#x60; and &#x60;max_redemptions&#x60;. | * The coupon is applied to all the invoices immediately generated upon invoking this API. * The coupon is not applied to subsequent invoices, such as those generated upon subscription renewal. |
241
- | **Manual discounts** | * The manual discount is applied exclusively to the invoice for group &#x60;i&#x60;. * The manual discount is applied exclusively to the invoice created immediately upon invoking this API. * The manual discount is not applied to subsequent invoices, such as those generated upon subscription renewal. | * The manual discount is applied to all the invoices immediately generated upon invoking this API. * The manual discount is not applied to subsequent invoices, such as those generated upon subscription renewal. |
242
-
243
-
244
- */
49
+ contract_terms:{action_at_term_end?:'renew' | 'evergreen' | 'cancel' | 'renew_once',cancellation_cutoff_period?:number,index:number}[];
245
50
 
246
- contract_terms:{action_at_term_end?:'cancel' | 'renew_once' | 'renew' | 'evergreen',cancellation_cutoff_period?:number,index:number}[];
247
- statement_descriptor?:{descriptor?:string};
248
- payment_schedule?:{amount?:number,scheme_id?:string};
51
+ customer_id:string;
52
+
53
+ payment_source_id?:string;
249
54
  }
250
55
  export interface EstimateResponse {
251
56
  estimate:Estimate;
252
57
  }
253
58
  export interface EstimateInputParam {
254
59
 
255
- /**
256
- * @description Indicates the Client profile id for the customer. This is applicable only if you use [Chargebee&#x27;s AvaTax for Communications](https://www.chargebee.com/docs/avatax-for-communication.html) integration.
257
-
258
- */
259
-
260
- client_profile_id?:string;
261
-
262
- /**
263
- * @description The unique identifier of the [customer](https://apidocs.chargebee.com/docs/api/customers) that made this purchase.
264
-
265
- */
266
-
267
- customer_id?:string;
268
-
269
- /**
270
- * @description Parameters for customer
271
-
272
- */
273
-
274
60
  customer?:{customer_type?:CustomerType,entity_code?:EntityCode,exempt_number?:string,exemption_details?:any[],registered_for_gst?:boolean,taxability?:Taxability,vat_number?:string,vat_number_prefix?:string};
275
61
 
276
- /**
277
- * @description Parameters for billing_address
278
-
279
- */
280
-
281
62
  billing_address?:{city?:string,country?:string,line1?:string,line2?:string,line3?:string,state_code?:string,validation_status?:ValidationStatus,zip?:string};
282
63
 
283
- /**
284
- * @description Parameters for purchase_items
285
-
286
- */
287
-
288
64
  purchase_items:{index:number,item_price_id:string,quantity?:number,quantity_in_decimal?:string,unit_amount?:number,unit_amount_in_decimal?:string}[];
289
65
 
290
- /**
291
- * @description Parameters for item_tiers
292
-
293
- */
294
-
295
66
  item_tiers:{ending_unit?:number,ending_unit_in_decimal?:string,index:number,item_price_id?:string,price?:number,price_in_decimal?:string,starting_unit?:number,starting_unit_in_decimal?:string}[];
296
67
 
297
- /**
298
- * @description Parameters for shipping_addresses
299
-
300
- */
301
-
302
68
  shipping_addresses?:{city?:string,company?:string,country?:string,email?:string,first_name?:string,last_name?:string,line1?:string,line2?:string,line3?:string,phone?:string,state?:string,state_code?:string,validation_status?:ValidationStatus,zip?:string}[];
303
69
 
304
- /**
305
- * @description Parameters for discounts
306
-
307
- */
308
-
309
70
  discounts?:{amount?:number,coupon_id?:string,included_in_mrr?:boolean,index?:number,percentage?:number}[];
310
71
 
311
- /**
312
- * @description Parameters for subscription_info
313
-
314
- */
315
-
316
72
  subscription_info:{billing_cycles?:number,contract_term_billing_cycle_on_renewal?:number,index:number,subscription_id?:string}[];
317
73
 
318
- /**
319
- * @description Returns an estimate for creating a &#x60;purchase&#x60; resource. The operation works exactly like [Create a purchase](purchases#create_a_purchase), except that only an [estimate](estimates) resource is returned without an actual &#x60;purchase&#x60; resource being created.
320
-
321
- */
74
+ contract_terms:{action_at_term_end?:'renew' | 'evergreen' | 'cancel' | 'renew_once',cancellation_cutoff_period?:number,index:number}[];
322
75
 
323
- contract_terms:{action_at_term_end?:'cancel' | 'renew_once' | 'renew' | 'evergreen',cancellation_cutoff_period?:number,index:number}[];
76
+ client_profile_id?:string;
77
+
78
+ customer_id?:string;
324
79
  }
325
80
 
326
81
  }
@@ -2,7 +2,7 @@
2
2
  ///<reference path='./../index.d.ts'/>
3
3
  declare module 'chargebee' {
4
4
  export interface Quote {
5
-
5
+ [key : string] : any;
6
6
 
7
7
  id:string;
8
8
 
@@ -361,7 +361,7 @@ declare module 'chargebee' {
361
361
  quoted_subscription?:QuotedSubscription;
362
362
  }
363
363
  export interface CreateSubItemsForCustomerQuoteInputParam {
364
-
364
+ [key : string] : any;
365
365
  subscription?:{contract_term_billing_cycle_on_renewal?:number,id?:string,po_number?:string,setup_fee?:number,start_date?:number,trial_end?:number};
366
366
 
367
367
  shipping_address?:{city?:string,company?:string,country?:string,email?:string,first_name?:string,last_name?:string,line1?:string,line2?:string,line3?:string,phone?:string,state?:string,state_code?:string,validation_status?:ValidationStatus,zip?:string};
@@ -372,7 +372,7 @@ declare module 'chargebee' {
372
372
 
373
373
  discounts:{amount?:number,apply_on:ApplyOn,duration_type:DurationType,included_in_mrr?:boolean,item_price_id?:string,percentage?:number,period?:number,period_unit?:PeriodUnit}[];
374
374
 
375
- 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}[];
375
+ item_tiers?:{ending_unit?:number,ending_unit_in_decimal?:string,item_price_id?:string,package_size?:number,price?:number,price_in_decimal?:string,pricing_type?:PricingType,starting_unit?:number,starting_unit_in_decimal?:string}[];
376
376
 
377
377
  name?:string;
378
378
 
@@ -396,7 +396,7 @@ declare module 'chargebee' {
396
396
  quoted_subscription?:QuotedSubscription;
397
397
  }
398
398
  export interface EditCreateSubCustomerQuoteForItemsInputParam {
399
-
399
+ [key : string] : any;
400
400
  subscription?:{contract_term_billing_cycle_on_renewal?:number,id?:string,po_number?:string,setup_fee?:number,start_date?:number,trial_end?:number};
401
401
 
402
402
  shipping_address?:{city?:string,company?:string,country?:string,email?:string,first_name?:string,last_name?:string,line1?:string,line2?:string,line3?:string,phone?:string,state?:string,state_code?:string,validation_status?:ValidationStatus,zip?:string};
@@ -407,7 +407,7 @@ declare module 'chargebee' {
407
407
 
408
408
  discounts:{amount?:number,apply_on:ApplyOn,duration_type:DurationType,included_in_mrr?:boolean,item_price_id?:string,percentage?:number,period?:number,period_unit?:PeriodUnit}[];
409
409
 
410
- 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}[];
410
+ item_tiers?:{ending_unit?:number,ending_unit_in_decimal?:string,item_price_id?:string,package_size?:number,price?:number,price_in_decimal?:string,pricing_type?:PricingType,starting_unit?:number,starting_unit_in_decimal?:string}[];
411
411
 
412
412
  notes?:string;
413
413
 
@@ -429,7 +429,7 @@ declare module 'chargebee' {
429
429
  quoted_subscription?:QuotedSubscription;
430
430
  }
431
431
  export interface UpdateSubscriptionQuoteForItemsInputParam {
432
-
432
+ [key : string] : any;
433
433
  subscription:{auto_collection?:AutoCollection,contract_term_billing_cycle_on_renewal?:number,coupon?:string,id:string,offline_payment_method?:OfflinePaymentMethod,setup_fee?:number,start_date?:number,trial_end?:number};
434
434
 
435
435
  billing_address?:{city?:string,company?:string,country?:string,email?:string,first_name?:string,last_name?:string,line1?:string,line2?:string,line3?:string,phone?:string,state?:string,state_code?:string,validation_status?:ValidationStatus,zip?:string};
@@ -444,7 +444,7 @@ declare module 'chargebee' {
444
444
 
445
445
  discounts:{amount?:number,apply_on:ApplyOn,duration_type:DurationType,id?:string,included_in_mrr?:boolean,item_price_id?:string,operation_type:OperationType,percentage?:number,period?:number,period_unit?:PeriodUnit}[];
446
446
 
447
- 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}[];
447
+ item_tiers?:{ending_unit?:number,ending_unit_in_decimal?:string,item_price_id?:string,package_size?:number,price?:number,price_in_decimal?:string,pricing_type?:PricingType,starting_unit?:number,starting_unit_in_decimal?:string}[];
448
448
 
449
449
  name?:string;
450
450
 
@@ -482,7 +482,7 @@ declare module 'chargebee' {
482
482
  quoted_subscription?:QuotedSubscription;
483
483
  }
484
484
  export interface EditUpdateSubscriptionQuoteForItemsInputParam {
485
-
485
+ [key : string] : any;
486
486
  subscription?:{auto_collection?:AutoCollection,contract_term_billing_cycle_on_renewal?:number,coupon?:string,offline_payment_method?:OfflinePaymentMethod,setup_fee?:number,start_date?:number,trial_end?:number};
487
487
 
488
488
  billing_address?:{city?:string,company?:string,country?:string,email?:string,first_name?:string,last_name?:string,line1?:string,line2?:string,line3?:string,phone?:string,state?:string,state_code?:string,validation_status?:ValidationStatus,zip?:string};
@@ -497,7 +497,7 @@ declare module 'chargebee' {
497
497
 
498
498
  discounts:{amount?:number,apply_on:ApplyOn,duration_type:DurationType,id?:string,included_in_mrr?:boolean,item_price_id?:string,operation_type:OperationType,percentage?:number,period?:number,period_unit?:PeriodUnit}[];
499
499
 
500
- 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}[];
500
+ item_tiers?:{ending_unit?:number,ending_unit_in_decimal?:string,item_price_id?:string,package_size?:number,price?:number,price_in_decimal?:string,pricing_type?:PricingType,starting_unit?:number,starting_unit_in_decimal?:string}[];
501
501
 
502
502
  notes?:string;
503
503
 
@@ -538,7 +538,7 @@ declare module 'chargebee' {
538
538
 
539
539
  item_prices?:{item_price_id?:string,quantity?:number,quantity_in_decimal?:string,service_period_days?:number,unit_price?:number,unit_price_in_decimal?:string}[];
540
540
 
541
- 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}[];
541
+ item_tiers?:{ending_unit?:number,ending_unit_in_decimal?:string,item_price_id?:string,package_size?:number,price?:number,price_in_decimal?:string,pricing_type?:PricingType,starting_unit?:number,starting_unit_in_decimal?:string}[];
542
542
 
543
543
  charges?:{amount?:number,amount_in_decimal?:string,avalara_sale_type?:AvalaraSaleType,avalara_service_type?:number,avalara_transaction_type?:number,description?:string,service_period?:number}[];
544
544
 
@@ -573,7 +573,7 @@ declare module 'chargebee' {
573
573
 
574
574
  item_prices?:{item_price_id?:string,quantity?:number,quantity_in_decimal?:string,service_period_days?:number,unit_price?:number,unit_price_in_decimal?:string}[];
575
575
 
576
- 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}[];
576
+ item_tiers?:{ending_unit?:number,ending_unit_in_decimal?:string,item_price_id?:string,package_size?:number,price?:number,price_in_decimal?:string,pricing_type?:PricingType,starting_unit?:number,starting_unit_in_decimal?:string}[];
577
577
 
578
578
  charges?:{amount?:number,amount_in_decimal?:string,avalara_sale_type?:AvalaraSaleType,avalara_service_type?:number,avalara_transaction_type?:number,description?:string,service_period?:number}[];
579
579
 
@@ -793,7 +793,9 @@ NOTE: Not to be used if *consolidated invoicing* feature is enabled.
793
793
 
794
794
  item_level_discount_amount?:number;
795
795
 
796
- usage_percentage?:string;
796
+ metered?:boolean;
797
+
798
+ percentage?:string;
797
799
 
798
800
  reference_line_item_id?:string;
799
801
 
@@ -889,6 +891,10 @@ NOTE: Not to be used if *consolidated invoicing* feature is enabled.
889
891
  quantity_used_in_decimal?:string;
890
892
 
891
893
  unit_amount_in_decimal?:string;
894
+
895
+ pricing_type?:'per_unit' | 'flat_fee' | 'package';
896
+
897
+ package_size?:number;
892
898
  }
893
899
  export interface ShippingAddress {
894
900
  first_name?:string;