chargebee 2.48.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.
@@ -0,0 +1,554 @@
1
+ ///<reference path='./../core.d.ts'/>
2
+ ///<reference path='./../index.d.ts'/>
3
+ declare module 'chargebee' {
4
+ export interface Plan {
5
+ [key : string] : any;
6
+
7
+ id:string;
8
+
9
+ name:string;
10
+
11
+ invoice_name?:string;
12
+
13
+ description?:string;
14
+
15
+ price?:number;
16
+
17
+ currency_code:string;
18
+
19
+ period:number;
20
+
21
+ period_unit:'day' | 'week' | 'month' | 'year';
22
+
23
+ trial_period?:number;
24
+
25
+ trial_period_unit?:'day' | 'month';
26
+
27
+ trial_end_action?:'site_default' | 'activate_subscription' | 'cancel_subscription';
28
+
29
+ pricing_model:PricingModel;
30
+
31
+ charge_model:'flat_fee' | 'per_unit' | 'tiered' | 'volume' | 'stairstep';
32
+
33
+ free_quantity:number;
34
+
35
+ setup_cost?:number;
36
+
37
+ downgrade_penalty?:number;
38
+
39
+ status:'active' | 'archived' | 'deleted';
40
+
41
+ archived_at?:number;
42
+
43
+ billing_cycles?:number;
44
+
45
+ redirect_url?:string;
46
+
47
+ enabled_in_hosted_pages:boolean;
48
+
49
+ enabled_in_portal:boolean;
50
+
51
+ addon_applicability:'all' | 'restricted';
52
+
53
+ tax_code?:string;
54
+
55
+ hsn_code?:string;
56
+
57
+ taxjar_product_code?:string;
58
+
59
+ avalara_sale_type?:AvalaraSaleType;
60
+
61
+ avalara_transaction_type?:number;
62
+
63
+ avalara_service_type?:number;
64
+
65
+ sku?:string;
66
+
67
+ accounting_code?:string;
68
+
69
+ accounting_category1?:string;
70
+
71
+ accounting_category2?:string;
72
+
73
+ accounting_category3?:string;
74
+
75
+ accounting_category4?:string;
76
+
77
+ is_shippable?:boolean;
78
+
79
+ shipping_frequency_period?:number;
80
+
81
+ shipping_frequency_period_unit?:'year' | 'month' | 'week' | 'day';
82
+
83
+ resource_version?:number;
84
+
85
+ updated_at?:number;
86
+
87
+ giftable:boolean;
88
+
89
+ claim_url?:string;
90
+
91
+ free_quantity_in_decimal?:string;
92
+
93
+ price_in_decimal?:string;
94
+
95
+ channel?:Channel;
96
+
97
+ invoice_notes?:string;
98
+
99
+ taxable?:boolean;
100
+
101
+ tax_profile_id?:string;
102
+
103
+ meta_data?:object;
104
+
105
+ tiers?:Plan.Tier[];
106
+
107
+ tax_providers_fields?:Plan.TaxProvidersField[];
108
+
109
+ applicable_addons?:Plan.ApplicableAddon[];
110
+
111
+ attached_addons?:Plan.AttachedAddon[];
112
+
113
+ event_based_addons?:Plan.EventBasedAddon[];
114
+
115
+ show_description_in_invoices?:boolean;
116
+
117
+ show_description_in_quotes?:boolean;
118
+
119
+ }
120
+ export namespace Plan {
121
+ export class PlanResource {
122
+ create(input:CreateInputParam):ChargebeeRequest<CreateResponse>;
123
+
124
+ update(plan_id:string, input:UpdateInputParam):ChargebeeRequest<UpdateResponse>;
125
+
126
+ list(input?:ListInputParam):ChargebeeRequest<ListResponse>;
127
+
128
+ retrieve(plan_id:string):ChargebeeRequest<RetrieveResponse>;
129
+
130
+ delete(plan_id:string):ChargebeeRequest<DeleteResponse>;
131
+
132
+ copy(input:CopyInputParam):ChargebeeRequest<CopyResponse>;
133
+
134
+ unarchive(plan_id:string):ChargebeeRequest<UnarchiveResponse>;
135
+ }
136
+ export interface CreateResponse {
137
+ plan:Plan;
138
+ }
139
+ export interface CreateInputParam {
140
+ [key : string] : any;
141
+ tiers?:{ending_unit?:number,ending_unit_in_decimal?:string,price?:number,price_in_decimal?:string,starting_unit?:number,starting_unit_in_decimal?:string}[];
142
+
143
+ tax_providers_fields:{field_id:string,field_value:string,provider_name:string}[];
144
+
145
+ applicable_addons?:{id?:string}[];
146
+
147
+ event_based_addons?:{charge_once?:boolean,id?:string,on_event?:OnEvent,quantity?:number,quantity_in_decimal?:string}[];
148
+
149
+ attached_addons?:{billing_cycles?:number,id?:string,quantity?:number,quantity_in_decimal?:string,type?:'recommended' | 'mandatory'}[];
150
+
151
+ id:string;
152
+
153
+ name:string;
154
+
155
+ invoice_name?:string;
156
+
157
+ description?:string;
158
+
159
+ trial_period?:number;
160
+
161
+ trial_period_unit?:'day' | 'month';
162
+
163
+ trial_end_action?:'site_default' | 'activate_subscription' | 'cancel_subscription';
164
+
165
+ period?:number;
166
+
167
+ period_unit?:'day' | 'week' | 'month' | 'year';
168
+
169
+ setup_cost?:number;
170
+
171
+ price?:number;
172
+
173
+ price_in_decimal?:string;
174
+
175
+ currency_code?:string;
176
+
177
+ billing_cycles?:number;
178
+
179
+ pricing_model?:PricingModel;
180
+
181
+ charge_model?:'flat_fee' | 'per_unit' | 'tiered' | 'volume' | 'stairstep';
182
+
183
+ free_quantity?:number;
184
+
185
+ free_quantity_in_decimal?:string;
186
+
187
+ addon_applicability?:'all' | 'restricted';
188
+
189
+ downgrade_penalty?:number;
190
+
191
+ redirect_url?:string;
192
+
193
+ enabled_in_hosted_pages?:boolean;
194
+
195
+ enabled_in_portal?:boolean;
196
+
197
+ taxable?:boolean;
198
+
199
+ tax_profile_id?:string;
200
+
201
+ tax_code?:string;
202
+
203
+ hsn_code?:string;
204
+
205
+ taxjar_product_code?:string;
206
+
207
+ avalara_sale_type?:AvalaraSaleType;
208
+
209
+ avalara_transaction_type?:number;
210
+
211
+ avalara_service_type?:number;
212
+
213
+ sku?:string;
214
+
215
+ accounting_code?:string;
216
+
217
+ accounting_category1?:string;
218
+
219
+ accounting_category2?:string;
220
+
221
+ accounting_category3?:string;
222
+
223
+ accounting_category4?:string;
224
+
225
+ is_shippable?:boolean;
226
+
227
+ shipping_frequency_period?:number;
228
+
229
+ shipping_frequency_period_unit?:'year' | 'month' | 'week' | 'day';
230
+
231
+ invoice_notes?:string;
232
+
233
+ meta_data?:object;
234
+
235
+ show_description_in_invoices?:boolean;
236
+
237
+ show_description_in_quotes?:boolean;
238
+
239
+ giftable?:boolean;
240
+
241
+ status?:'active' | 'archived';
242
+
243
+ claim_url?:string;
244
+ }
245
+ export interface UpdateResponse {
246
+ plan:Plan;
247
+ }
248
+ export interface UpdateInputParam {
249
+ [key : string] : any;
250
+ tiers?:{ending_unit?:number,ending_unit_in_decimal?:string,price?:number,price_in_decimal?:string,starting_unit?:number,starting_unit_in_decimal?:string}[];
251
+
252
+ tax_providers_fields:{field_id:string,field_value:string,provider_name:string}[];
253
+
254
+ name?:string;
255
+
256
+ invoice_name?:string;
257
+
258
+ description?:string;
259
+
260
+ trial_period?:number;
261
+
262
+ trial_period_unit?:'day' | 'month';
263
+
264
+ trial_end_action?:'site_default' | 'activate_subscription' | 'cancel_subscription';
265
+
266
+ period?:number;
267
+
268
+ period_unit?:'day' | 'week' | 'month' | 'year';
269
+
270
+ setup_cost?:number;
271
+
272
+ price?:number;
273
+
274
+ price_in_decimal?:string;
275
+
276
+ currency_code?:string;
277
+
278
+ billing_cycles?:number;
279
+
280
+ pricing_model?:PricingModel;
281
+
282
+ charge_model?:'flat_fee' | 'per_unit' | 'tiered' | 'volume' | 'stairstep';
283
+
284
+ free_quantity?:number;
285
+
286
+ free_quantity_in_decimal?:string;
287
+
288
+ addon_applicability?:'all' | 'restricted';
289
+
290
+ downgrade_penalty?:number;
291
+
292
+ redirect_url?:string;
293
+
294
+ enabled_in_hosted_pages?:boolean;
295
+
296
+ enabled_in_portal?:boolean;
297
+
298
+ taxable?:boolean;
299
+
300
+ tax_profile_id?:string;
301
+
302
+ tax_code?:string;
303
+
304
+ hsn_code?:string;
305
+
306
+ taxjar_product_code?:string;
307
+
308
+ avalara_sale_type?:AvalaraSaleType;
309
+
310
+ avalara_transaction_type?:number;
311
+
312
+ avalara_service_type?:number;
313
+
314
+ sku?:string;
315
+
316
+ accounting_code?:string;
317
+
318
+ accounting_category1?:string;
319
+
320
+ accounting_category2?:string;
321
+
322
+ accounting_category3?:string;
323
+
324
+ accounting_category4?:string;
325
+
326
+ is_shippable?:boolean;
327
+
328
+ shipping_frequency_period?:number;
329
+
330
+ shipping_frequency_period_unit?:'year' | 'month' | 'week' | 'day';
331
+
332
+ invoice_notes?:string;
333
+
334
+ meta_data?:object;
335
+
336
+ show_description_in_invoices?:boolean;
337
+
338
+ show_description_in_quotes?:boolean;
339
+
340
+ applicable_addons?:{id?:string}[];
341
+
342
+ attached_addons?:{billing_cycles?:number,id?:string,quantity?:number,quantity_in_decimal?:string,type?:'recommended' | 'mandatory'}[];
343
+
344
+ event_based_addons?:{charge_once?:boolean,id?:string,on_event?:OnEvent,quantity?:number,quantity_in_decimal?:string}[];
345
+ }
346
+ export interface ListResponse {
347
+ list:{plan:Plan}[];
348
+
349
+ next_offset?:string;
350
+ }
351
+ export interface ListInputParam {
352
+ [key : string]: any;
353
+ /**
354
+ * @description The number of resources to be returned.
355
+
356
+ */
357
+
358
+ limit?:number;
359
+
360
+ /**
361
+ * @description Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set \&#x60;offset\&#x60; to the value of \&#x60;next_offset\&#x60; obtained in the previous iteration of the API call.
362
+
363
+ */
364
+
365
+ offset?:string;
366
+
367
+ /**
368
+ * @description A unique ID for your system to identify the plan.
369
+
370
+ */
371
+
372
+ id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
373
+
374
+ /**
375
+ * @description The display name used in web interface for identifying the plan.
376
+
377
+ */
378
+
379
+ name?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
380
+
381
+ /**
382
+ * @description The price of the plan. The unit depends on the [type of currency](/docs/api?prod_cat_ver&#x3D;1#md_disabled).
383
+
384
+ */
385
+
386
+ price?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string};
387
+
388
+ /**
389
+ * @description Defines billing frequency. Example: to bill customer every 3 months, provide &quot;3&quot; here.
390
+
391
+ */
392
+
393
+ period?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string};
394
+
395
+ /**
396
+ * @description Defines billing frequency in association with billing period.
397
+
398
+ */
399
+
400
+ period_unit?:{in?:string,is?:'day' | 'week' | 'month' | 'year',is_not?:'day' | 'week' | 'month' | 'year',not_in?:string};
401
+
402
+ /**
403
+ * @description The free time window for your customer to try your product
404
+
405
+ */
406
+
407
+ trial_period?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,is_present?:'true' | 'false',lt?:string,lte?:string};
408
+
409
+ /**
410
+ * @description Time unit for the trial period.
411
+
412
+ */
413
+
414
+ trial_period_unit?:{in?:string,is?:'day' | 'month',is_not?:'day' | 'month',not_in?:string};
415
+
416
+ /**
417
+ * @description Indicates if all or only some addons are applicable with the plan.
418
+
419
+ */
420
+
421
+ addon_applicability?:{in?:string,is?:'all' | 'restricted',is_not?:'all' | 'restricted',not_in?:string};
422
+
423
+ /**
424
+ * @description Specifies if the plan should be gifted or not.
425
+
426
+ */
427
+
428
+ giftable?:{is?:'true' | 'false'};
429
+
430
+ /**
431
+ * @description Defines how the subscription recurring charge for this plan should be calculated.
432
+
433
+ */
434
+
435
+ charge_model?:{in?:string,is?:'flat_fee' | 'per_unit' | 'tiered' | 'volume' | 'stairstep',is_not?:'flat_fee' | 'per_unit' | 'tiered' | 'volume' | 'stairstep',not_in?:string};
436
+
437
+ /**
438
+ * @description Defines how the recurring charges for the subscription is calculated.
439
+
440
+ */
441
+
442
+ pricing_model?:{in?:string,is?:'flat_fee' | 'per_unit' | 'tiered' | 'volume' | 'stairstep',is_not?:'flat_fee' | 'per_unit' | 'tiered' | 'volume' | 'stairstep',not_in?:string};
443
+
444
+ /**
445
+ * @description The plan state
446
+
447
+ */
448
+
449
+ status?:{in?:string,is?:'active' | 'archived' | 'deleted',is_not?:'active' | 'archived' | 'deleted',not_in?:string};
450
+
451
+ /**
452
+ * @description To filter based on updated at. This attribute will be present only if the resource has been updated after 2016-11-09.
453
+
454
+ */
455
+
456
+ updated_at?:{after?:string,before?:string,between?:string,on?:string};
457
+
458
+ /**
459
+ * @description The currency code (ISO 4217 format) of the plan
460
+
461
+ */
462
+
463
+ currency_code?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
464
+
465
+ /**
466
+ * @description The subscription channel this object originated from and is maintained in.
467
+
468
+ */
469
+
470
+ channel?:{in?:string,is?:'web' | 'app_store' | 'play_store',is_not?:'web' | 'app_store' | 'play_store',not_in?:string};
471
+
472
+ /**
473
+ * @description Indicates whether to include deleted objects in the list. The deleted objects have the attribute \&#x60;deleted\&#x60; as \&#x60;true\&#x60;.
474
+
475
+ */
476
+
477
+ include_deleted?:boolean;
478
+ }
479
+ export interface RetrieveResponse {
480
+ plan:Plan;
481
+ }
482
+
483
+ export interface DeleteResponse {
484
+ plan:Plan;
485
+ }
486
+
487
+ export interface CopyResponse {
488
+ plan:Plan;
489
+ }
490
+ export interface CopyInputParam {
491
+
492
+ from_site:string;
493
+
494
+ id_at_from_site:string;
495
+
496
+ id?:string;
497
+
498
+ for_site_merging?:boolean;
499
+ }
500
+ export interface UnarchiveResponse {
501
+ plan:Plan;
502
+ }
503
+
504
+ export interface Tier {
505
+ starting_unit:number;
506
+
507
+ ending_unit?:number;
508
+
509
+ price:number;
510
+
511
+ starting_unit_in_decimal?:string;
512
+
513
+ ending_unit_in_decimal?:string;
514
+
515
+ price_in_decimal?:string;
516
+
517
+ pricing_type?:'per_unit' | 'flat_fee' | 'package';
518
+
519
+ package_size?:number;
520
+ }
521
+ export interface TaxProvidersField {
522
+ provider_name:string;
523
+
524
+ field_id:string;
525
+
526
+ field_value:string;
527
+ }
528
+ export interface ApplicableAddon {
529
+ id:string;
530
+ }
531
+ export interface AttachedAddon {
532
+ id:string;
533
+
534
+ quantity:number;
535
+
536
+ billing_cycles?:number;
537
+
538
+ type:'recommended' | 'mandatory';
539
+
540
+ quantity_in_decimal?:string;
541
+ }
542
+ export interface EventBasedAddon {
543
+ id:string;
544
+
545
+ quantity:number;
546
+
547
+ on_event:'subscription_creation' | 'subscription_trial_start' | 'plan_activation' | 'subscription_activation' | 'contract_termination';
548
+
549
+ charge_once:boolean;
550
+
551
+ quantity_in_decimal?:string;
552
+ }
553
+ }
554
+ }
@@ -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;