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.
- package/CHANGELOG.md +149 -0
- package/lib/chargebee.js +1 -1
- package/lib/resources/api_endpoints.js +16 -2
- package/package.json +1 -1
- package/types/core.d.ts +5 -4
- package/types/index.d.ts +6 -0
- package/types/resources/Addon.d.ts +440 -0
- package/types/resources/CreditNote.d.ts +40 -1
- package/types/resources/CreditNoteEstimate.d.ts +8 -2
- package/types/resources/DifferentialPrice.d.ts +6 -2
- package/types/resources/Estimate.d.ts +6 -4
- package/types/resources/HostedPage.d.ts +227 -893
- package/types/resources/Invoice.d.ts +44 -5
- package/types/resources/InvoiceEstimate.d.ts +40 -1
- package/types/resources/Item.d.ts +4 -0
- package/types/resources/ItemPrice.d.ts +6 -2
- package/types/resources/OmnichannelSubscription.d.ts +5 -5
- package/types/resources/OmnichannelSubscriptionItem.d.ts +42 -1
- package/types/resources/OmnichannelSubscriptionItemScheduledChange.d.ts +36 -0
- package/types/resources/OmnichannelTransaction.d.ts +4 -4
- package/types/resources/PaymentSource.d.ts +7 -0
- package/types/resources/Plan.d.ts +554 -0
- package/types/resources/Purchase.d.ts +13 -258
- package/types/resources/Quote.d.ts +18 -12
- package/types/resources/QuoteLineGroup.d.ts +12 -322
- package/types/resources/QuotedCharge.d.ts +23 -219
- package/types/resources/QuotedSubscription.d.ts +4 -0
- package/types/resources/Ramp.d.ts +48 -542
- package/types/resources/RecordedPurchase.d.ts +5 -3
- package/types/resources/Subscription.d.ts +7 -3
- package/types/resources/Transaction.d.ts +1 -1
- package/types/resources/UnbilledCharge.d.ts +31 -25
|
@@ -0,0 +1,440 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
3
|
+
declare module 'chargebee' {
|
|
4
|
+
export interface Addon {
|
|
5
|
+
[key : string] : any;
|
|
6
|
+
|
|
7
|
+
id:string;
|
|
8
|
+
|
|
9
|
+
name:string;
|
|
10
|
+
|
|
11
|
+
invoice_name?:string;
|
|
12
|
+
|
|
13
|
+
description?:string;
|
|
14
|
+
|
|
15
|
+
pricing_model:PricingModel;
|
|
16
|
+
|
|
17
|
+
type:'on_off' | 'quantity' | 'tiered' | 'volume' | 'stairstep';
|
|
18
|
+
|
|
19
|
+
charge_type:'recurring' | 'non_recurring';
|
|
20
|
+
|
|
21
|
+
price?:number;
|
|
22
|
+
|
|
23
|
+
currency_code:string;
|
|
24
|
+
|
|
25
|
+
period?:number;
|
|
26
|
+
|
|
27
|
+
period_unit:'day' | 'week' | 'month' | 'year' | 'not_applicable';
|
|
28
|
+
|
|
29
|
+
unit?:string;
|
|
30
|
+
|
|
31
|
+
status:'active' | 'archived' | 'deleted';
|
|
32
|
+
|
|
33
|
+
archived_at?:number;
|
|
34
|
+
|
|
35
|
+
enabled_in_portal:boolean;
|
|
36
|
+
|
|
37
|
+
tax_code?:string;
|
|
38
|
+
|
|
39
|
+
hsn_code?:string;
|
|
40
|
+
|
|
41
|
+
taxjar_product_code?:string;
|
|
42
|
+
|
|
43
|
+
avalara_sale_type?:AvalaraSaleType;
|
|
44
|
+
|
|
45
|
+
avalara_transaction_type?:number;
|
|
46
|
+
|
|
47
|
+
avalara_service_type?:number;
|
|
48
|
+
|
|
49
|
+
sku?:string;
|
|
50
|
+
|
|
51
|
+
accounting_code?:string;
|
|
52
|
+
|
|
53
|
+
accounting_category1?:string;
|
|
54
|
+
|
|
55
|
+
accounting_category2?:string;
|
|
56
|
+
|
|
57
|
+
accounting_category3?:string;
|
|
58
|
+
|
|
59
|
+
accounting_category4?:string;
|
|
60
|
+
|
|
61
|
+
is_shippable?:boolean;
|
|
62
|
+
|
|
63
|
+
shipping_frequency_period?:number;
|
|
64
|
+
|
|
65
|
+
shipping_frequency_period_unit?:'year' | 'month' | 'week' | 'day';
|
|
66
|
+
|
|
67
|
+
resource_version?:number;
|
|
68
|
+
|
|
69
|
+
updated_at?:number;
|
|
70
|
+
|
|
71
|
+
price_in_decimal?:string;
|
|
72
|
+
|
|
73
|
+
included_in_mrr?:boolean;
|
|
74
|
+
|
|
75
|
+
channel?:Channel;
|
|
76
|
+
|
|
77
|
+
proration_type?:'site_default' | 'partial_term' | 'full_term';
|
|
78
|
+
|
|
79
|
+
invoice_notes?:string;
|
|
80
|
+
|
|
81
|
+
taxable?:boolean;
|
|
82
|
+
|
|
83
|
+
tax_profile_id?:string;
|
|
84
|
+
|
|
85
|
+
meta_data?:object;
|
|
86
|
+
|
|
87
|
+
tiers?:Addon.Tier[];
|
|
88
|
+
|
|
89
|
+
tax_providers_fields?:Addon.TaxProvidersField[];
|
|
90
|
+
|
|
91
|
+
show_description_in_invoices?:boolean;
|
|
92
|
+
|
|
93
|
+
show_description_in_quotes?:boolean;
|
|
94
|
+
|
|
95
|
+
}
|
|
96
|
+
export namespace Addon {
|
|
97
|
+
export class AddonResource {
|
|
98
|
+
create(input:CreateInputParam):ChargebeeRequest<CreateResponse>;
|
|
99
|
+
|
|
100
|
+
update(addon_id:string, input:UpdateInputParam):ChargebeeRequest<UpdateResponse>;
|
|
101
|
+
|
|
102
|
+
list(input?:ListInputParam):ChargebeeRequest<ListResponse>;
|
|
103
|
+
|
|
104
|
+
retrieve(addon_id:string):ChargebeeRequest<RetrieveResponse>;
|
|
105
|
+
|
|
106
|
+
delete(addon_id:string):ChargebeeRequest<DeleteResponse>;
|
|
107
|
+
|
|
108
|
+
copy(input:CopyInputParam):ChargebeeRequest<CopyResponse>;
|
|
109
|
+
|
|
110
|
+
unarchive(addon_id:string):ChargebeeRequest<UnarchiveResponse>;
|
|
111
|
+
}
|
|
112
|
+
export interface CreateResponse {
|
|
113
|
+
addon:Addon;
|
|
114
|
+
}
|
|
115
|
+
export interface CreateInputParam {
|
|
116
|
+
[key : string] : any;
|
|
117
|
+
tiers?:{ending_unit?:number,ending_unit_in_decimal?:string,price?:number,price_in_decimal?:string,starting_unit?:number,starting_unit_in_decimal?:string}[];
|
|
118
|
+
|
|
119
|
+
tax_providers_fields:{field_id:string,field_value:string,provider_name:string}[];
|
|
120
|
+
|
|
121
|
+
id:string;
|
|
122
|
+
|
|
123
|
+
name:string;
|
|
124
|
+
|
|
125
|
+
invoice_name?:string;
|
|
126
|
+
|
|
127
|
+
description?:string;
|
|
128
|
+
|
|
129
|
+
charge_type:'recurring' | 'non_recurring';
|
|
130
|
+
|
|
131
|
+
price?:number;
|
|
132
|
+
|
|
133
|
+
currency_code?:string;
|
|
134
|
+
|
|
135
|
+
period?:number;
|
|
136
|
+
|
|
137
|
+
period_unit?:'day' | 'week' | 'month' | 'year' | 'not_applicable';
|
|
138
|
+
|
|
139
|
+
pricing_model?:PricingModel;
|
|
140
|
+
|
|
141
|
+
type?:'on_off' | 'quantity' | 'tiered' | 'volume' | 'stairstep';
|
|
142
|
+
|
|
143
|
+
unit?:string;
|
|
144
|
+
|
|
145
|
+
enabled_in_portal?:boolean;
|
|
146
|
+
|
|
147
|
+
taxable?:boolean;
|
|
148
|
+
|
|
149
|
+
tax_profile_id?:string;
|
|
150
|
+
|
|
151
|
+
avalara_sale_type?:AvalaraSaleType;
|
|
152
|
+
|
|
153
|
+
avalara_transaction_type?:number;
|
|
154
|
+
|
|
155
|
+
avalara_service_type?:number;
|
|
156
|
+
|
|
157
|
+
tax_code?:string;
|
|
158
|
+
|
|
159
|
+
hsn_code?:string;
|
|
160
|
+
|
|
161
|
+
taxjar_product_code?:string;
|
|
162
|
+
|
|
163
|
+
invoice_notes?:string;
|
|
164
|
+
|
|
165
|
+
meta_data?:object;
|
|
166
|
+
|
|
167
|
+
sku?:string;
|
|
168
|
+
|
|
169
|
+
accounting_code?:string;
|
|
170
|
+
|
|
171
|
+
accounting_category1?:string;
|
|
172
|
+
|
|
173
|
+
accounting_category2?:string;
|
|
174
|
+
|
|
175
|
+
accounting_category3?:string;
|
|
176
|
+
|
|
177
|
+
accounting_category4?:string;
|
|
178
|
+
|
|
179
|
+
is_shippable?:boolean;
|
|
180
|
+
|
|
181
|
+
shipping_frequency_period?:number;
|
|
182
|
+
|
|
183
|
+
shipping_frequency_period_unit?:'year' | 'month' | 'week' | 'day';
|
|
184
|
+
|
|
185
|
+
included_in_mrr?:boolean;
|
|
186
|
+
|
|
187
|
+
show_description_in_invoices?:boolean;
|
|
188
|
+
|
|
189
|
+
show_description_in_quotes?:boolean;
|
|
190
|
+
|
|
191
|
+
price_in_decimal?:string;
|
|
192
|
+
|
|
193
|
+
proration_type?:'site_default' | 'partial_term' | 'full_term';
|
|
194
|
+
|
|
195
|
+
status?:'active' | 'archived';
|
|
196
|
+
}
|
|
197
|
+
export interface UpdateResponse {
|
|
198
|
+
addon:Addon;
|
|
199
|
+
}
|
|
200
|
+
export interface UpdateInputParam {
|
|
201
|
+
[key : string] : any;
|
|
202
|
+
tiers?:{ending_unit?:number,ending_unit_in_decimal?:string,price?:number,price_in_decimal?:string,starting_unit?:number,starting_unit_in_decimal?:string}[];
|
|
203
|
+
|
|
204
|
+
tax_providers_fields:{field_id:string,field_value:string,provider_name:string}[];
|
|
205
|
+
|
|
206
|
+
name?:string;
|
|
207
|
+
|
|
208
|
+
invoice_name?:string;
|
|
209
|
+
|
|
210
|
+
description?:string;
|
|
211
|
+
|
|
212
|
+
charge_type?:'recurring' | 'non_recurring';
|
|
213
|
+
|
|
214
|
+
price?:number;
|
|
215
|
+
|
|
216
|
+
currency_code?:string;
|
|
217
|
+
|
|
218
|
+
period?:number;
|
|
219
|
+
|
|
220
|
+
period_unit?:'day' | 'week' | 'month' | 'year' | 'not_applicable';
|
|
221
|
+
|
|
222
|
+
pricing_model?:PricingModel;
|
|
223
|
+
|
|
224
|
+
type?:'on_off' | 'quantity' | 'tiered' | 'volume' | 'stairstep';
|
|
225
|
+
|
|
226
|
+
unit?:string;
|
|
227
|
+
|
|
228
|
+
enabled_in_portal?:boolean;
|
|
229
|
+
|
|
230
|
+
taxable?:boolean;
|
|
231
|
+
|
|
232
|
+
tax_profile_id?:string;
|
|
233
|
+
|
|
234
|
+
avalara_sale_type?:AvalaraSaleType;
|
|
235
|
+
|
|
236
|
+
avalara_transaction_type?:number;
|
|
237
|
+
|
|
238
|
+
avalara_service_type?:number;
|
|
239
|
+
|
|
240
|
+
tax_code?:string;
|
|
241
|
+
|
|
242
|
+
hsn_code?:string;
|
|
243
|
+
|
|
244
|
+
taxjar_product_code?:string;
|
|
245
|
+
|
|
246
|
+
invoice_notes?:string;
|
|
247
|
+
|
|
248
|
+
meta_data?:object;
|
|
249
|
+
|
|
250
|
+
sku?:string;
|
|
251
|
+
|
|
252
|
+
accounting_code?:string;
|
|
253
|
+
|
|
254
|
+
accounting_category1?:string;
|
|
255
|
+
|
|
256
|
+
accounting_category2?:string;
|
|
257
|
+
|
|
258
|
+
accounting_category3?:string;
|
|
259
|
+
|
|
260
|
+
accounting_category4?:string;
|
|
261
|
+
|
|
262
|
+
is_shippable?:boolean;
|
|
263
|
+
|
|
264
|
+
shipping_frequency_period?:number;
|
|
265
|
+
|
|
266
|
+
shipping_frequency_period_unit?:'year' | 'month' | 'week' | 'day';
|
|
267
|
+
|
|
268
|
+
included_in_mrr?:boolean;
|
|
269
|
+
|
|
270
|
+
show_description_in_invoices?:boolean;
|
|
271
|
+
|
|
272
|
+
show_description_in_quotes?:boolean;
|
|
273
|
+
|
|
274
|
+
price_in_decimal?:string;
|
|
275
|
+
|
|
276
|
+
proration_type?:'site_default' | 'partial_term' | 'full_term';
|
|
277
|
+
}
|
|
278
|
+
export interface ListResponse {
|
|
279
|
+
list:{addon:Addon}[];
|
|
280
|
+
|
|
281
|
+
next_offset?:string;
|
|
282
|
+
}
|
|
283
|
+
export interface ListInputParam {
|
|
284
|
+
[key : string]: any;
|
|
285
|
+
/**
|
|
286
|
+
* @description The number of resources to be returned.
|
|
287
|
+
|
|
288
|
+
*/
|
|
289
|
+
|
|
290
|
+
limit?:number;
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* @description Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set \`offset\` to the value of \`next_offset\` obtained in the previous iteration of the API call.
|
|
294
|
+
|
|
295
|
+
*/
|
|
296
|
+
|
|
297
|
+
offset?:string;
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* @description A unique ID for your system to identify the addon.
|
|
301
|
+
|
|
302
|
+
*/
|
|
303
|
+
|
|
304
|
+
id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* @description The display name used in web interface for identifying the addon.
|
|
308
|
+
|
|
309
|
+
*/
|
|
310
|
+
|
|
311
|
+
name?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* @description Defines how the charges for the addons are calculated.
|
|
315
|
+
|
|
316
|
+
*/
|
|
317
|
+
|
|
318
|
+
pricing_model?:{in?:string,is?:'flat_fee' | 'per_unit' | 'tiered' | 'volume' | 'stairstep',is_not?:'flat_fee' | 'per_unit' | 'tiered' | 'volume' | 'stairstep',not_in?:string};
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* @description Select "On-Off" to charge a flat fee or "Quantity" for unit based charges.
|
|
322
|
+
|
|
323
|
+
*/
|
|
324
|
+
|
|
325
|
+
type?:{in?:string,is?:'on_off' | 'quantity' | 'tiered' | 'volume' | 'stairstep',is_not?:'on_off' | 'quantity' | 'tiered' | 'volume' | 'stairstep',not_in?:string};
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* @description Type of charge
|
|
329
|
+
|
|
330
|
+
*/
|
|
331
|
+
|
|
332
|
+
charge_type?:{in?:string,is?:'recurring' | 'non_recurring',is_not?:'recurring' | 'non_recurring',not_in?:string};
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* @description Addon price is calculated based on the addon type and charge type. [Learn more](https://www.chargebee.com/docs/addons.html#charge-type-and-pricing). The unit depends on the [type of currency](/docs/api?prod_cat_ver=1#md_disabled).
|
|
336
|
+
|
|
337
|
+
*/
|
|
338
|
+
|
|
339
|
+
price?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string};
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* @description Applicable only for recurring-addons. Along with 'period_unit' decides the term-price of this addon.
|
|
343
|
+
|
|
344
|
+
*/
|
|
345
|
+
|
|
346
|
+
period?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string};
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* @description Applicable only for recurring-addons. Along with 'period' decides the term-price of this addon
|
|
350
|
+
|
|
351
|
+
*/
|
|
352
|
+
|
|
353
|
+
period_unit?:{in?:string,is?:'day' | 'week' | 'month' | 'year' | 'not_applicable',is_not?:'day' | 'week' | 'month' | 'year' | 'not_applicable',not_in?:string};
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* @description Status of the addon
|
|
357
|
+
|
|
358
|
+
*/
|
|
359
|
+
|
|
360
|
+
status?:{in?:string,is?:'active' | 'archived' | 'deleted',is_not?:'active' | 'archived' | 'deleted',not_in?:string};
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* @description To filter based on updated at. This attribute will be present only if the resource has been updated after 2016-11-09.
|
|
364
|
+
|
|
365
|
+
*/
|
|
366
|
+
|
|
367
|
+
updated_at?:{after?:string,before?:string,between?:string,on?:string};
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* @description The currency code (ISO 4217 format) of the addon
|
|
371
|
+
|
|
372
|
+
*/
|
|
373
|
+
|
|
374
|
+
currency_code?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* @description The subscription channel this object originated from and is maintained in.
|
|
378
|
+
|
|
379
|
+
*/
|
|
380
|
+
|
|
381
|
+
channel?:{in?:string,is?:'web' | 'app_store' | 'play_store',is_not?:'web' | 'app_store' | 'play_store',not_in?:string};
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* @description Indicates whether to include deleted objects in the list. The deleted objects have the attribute \`deleted\` as \`true\`.
|
|
385
|
+
|
|
386
|
+
*/
|
|
387
|
+
|
|
388
|
+
include_deleted?:boolean;
|
|
389
|
+
}
|
|
390
|
+
export interface RetrieveResponse {
|
|
391
|
+
addon:Addon;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
export interface DeleteResponse {
|
|
395
|
+
addon:Addon;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
export interface CopyResponse {
|
|
399
|
+
addon:Addon;
|
|
400
|
+
}
|
|
401
|
+
export interface CopyInputParam {
|
|
402
|
+
|
|
403
|
+
from_site:string;
|
|
404
|
+
|
|
405
|
+
id_at_from_site:string;
|
|
406
|
+
|
|
407
|
+
id?:string;
|
|
408
|
+
|
|
409
|
+
for_site_merging?:boolean;
|
|
410
|
+
}
|
|
411
|
+
export interface UnarchiveResponse {
|
|
412
|
+
addon:Addon;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
export interface Tier {
|
|
416
|
+
starting_unit:number;
|
|
417
|
+
|
|
418
|
+
ending_unit?:number;
|
|
419
|
+
|
|
420
|
+
price:number;
|
|
421
|
+
|
|
422
|
+
starting_unit_in_decimal?:string;
|
|
423
|
+
|
|
424
|
+
ending_unit_in_decimal?:string;
|
|
425
|
+
|
|
426
|
+
price_in_decimal?:string;
|
|
427
|
+
|
|
428
|
+
pricing_type?:'per_unit' | 'flat_fee' | 'package';
|
|
429
|
+
|
|
430
|
+
package_size?:number;
|
|
431
|
+
}
|
|
432
|
+
export interface TaxProvidersField {
|
|
433
|
+
provider_name:string;
|
|
434
|
+
|
|
435
|
+
field_id:string;
|
|
436
|
+
|
|
437
|
+
field_value:string;
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
}
|
|
@@ -96,6 +96,8 @@ declare module 'chargebee' {
|
|
|
96
96
|
|
|
97
97
|
tax_origin?:CreditNote.TaxOrigin;
|
|
98
98
|
|
|
99
|
+
line_item_addresses?:CreditNote.LineItemAddress[];
|
|
100
|
+
|
|
99
101
|
}
|
|
100
102
|
export namespace CreditNote {
|
|
101
103
|
export class CreditNoteResource {
|
|
@@ -502,7 +504,9 @@ NOTE: Not to be used if *consolidated invoicing* feature is enabled.
|
|
|
502
504
|
|
|
503
505
|
item_level_discount_amount?:number;
|
|
504
506
|
|
|
505
|
-
|
|
507
|
+
metered?:boolean;
|
|
508
|
+
|
|
509
|
+
percentage?:string;
|
|
506
510
|
|
|
507
511
|
reference_line_item_id?:string;
|
|
508
512
|
|
|
@@ -560,6 +564,10 @@ NOTE: Not to be used if *consolidated invoicing* feature is enabled.
|
|
|
560
564
|
quantity_used_in_decimal?:string;
|
|
561
565
|
|
|
562
566
|
unit_amount_in_decimal?:string;
|
|
567
|
+
|
|
568
|
+
pricing_type?:'per_unit' | 'flat_fee' | 'package';
|
|
569
|
+
|
|
570
|
+
package_size?:number;
|
|
563
571
|
}
|
|
564
572
|
export interface Tax {
|
|
565
573
|
name:string;
|
|
@@ -697,5 +705,36 @@ NOTE: Not to be used if *consolidated invoicing* feature is enabled.
|
|
|
697
705
|
|
|
698
706
|
registration_number?:string;
|
|
699
707
|
}
|
|
708
|
+
export interface LineItemAddress {
|
|
709
|
+
line_item_id?:string;
|
|
710
|
+
|
|
711
|
+
first_name?:string;
|
|
712
|
+
|
|
713
|
+
last_name?:string;
|
|
714
|
+
|
|
715
|
+
email?:string;
|
|
716
|
+
|
|
717
|
+
company?:string;
|
|
718
|
+
|
|
719
|
+
phone?:string;
|
|
720
|
+
|
|
721
|
+
line1?:string;
|
|
722
|
+
|
|
723
|
+
line2?:string;
|
|
724
|
+
|
|
725
|
+
line3?:string;
|
|
726
|
+
|
|
727
|
+
city?:string;
|
|
728
|
+
|
|
729
|
+
state_code?:string;
|
|
730
|
+
|
|
731
|
+
state?:string;
|
|
732
|
+
|
|
733
|
+
country?:string;
|
|
734
|
+
|
|
735
|
+
zip?:string;
|
|
736
|
+
|
|
737
|
+
validation_status?:'not_validated' | 'valid' | 'partially_valid' | 'invalid';
|
|
738
|
+
}
|
|
700
739
|
}
|
|
701
740
|
}
|
|
@@ -6,7 +6,7 @@ declare module 'chargebee' {
|
|
|
6
6
|
|
|
7
7
|
reference_invoice_id:string;
|
|
8
8
|
|
|
9
|
-
type:'adjustment' | 'refundable';
|
|
9
|
+
type:'adjustment' | 'refundable' | 'store';
|
|
10
10
|
|
|
11
11
|
price_type:PriceType;
|
|
12
12
|
|
|
@@ -73,7 +73,9 @@ declare module 'chargebee' {
|
|
|
73
73
|
|
|
74
74
|
item_level_discount_amount?:number;
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
metered?:boolean;
|
|
77
|
+
|
|
78
|
+
percentage?:string;
|
|
77
79
|
|
|
78
80
|
reference_line_item_id?:string;
|
|
79
81
|
|
|
@@ -169,6 +171,10 @@ declare module 'chargebee' {
|
|
|
169
171
|
quantity_used_in_decimal?:string;
|
|
170
172
|
|
|
171
173
|
unit_amount_in_decimal?:string;
|
|
174
|
+
|
|
175
|
+
pricing_type?:'per_unit' | 'flat_fee' | 'package';
|
|
176
|
+
|
|
177
|
+
package_size?:number;
|
|
172
178
|
}
|
|
173
179
|
}
|
|
174
180
|
}
|
|
@@ -54,7 +54,7 @@ declare module 'chargebee' {
|
|
|
54
54
|
|
|
55
55
|
parent_periods:{period?:any[],period_unit:'day' | 'week' | 'month' | 'year'}[];
|
|
56
56
|
|
|
57
|
-
tiers?:{ending_unit?:number,ending_unit_in_decimal?:string,price?:number,price_in_decimal?:string,starting_unit?:number,starting_unit_in_decimal?:string}[];
|
|
57
|
+
tiers?:{ending_unit?:number,ending_unit_in_decimal?:string,package_size?:number,price?:number,price_in_decimal?:string,pricing_type?:PricingType,starting_unit?:number,starting_unit_in_decimal?:string}[];
|
|
58
58
|
|
|
59
59
|
parent_item_id:string;
|
|
60
60
|
|
|
@@ -78,7 +78,7 @@ declare module 'chargebee' {
|
|
|
78
78
|
|
|
79
79
|
parent_periods:{period?:any[],period_unit:'day' | 'week' | 'month' | 'year'}[];
|
|
80
80
|
|
|
81
|
-
tiers?:{ending_unit?:number,ending_unit_in_decimal?:string,price?:number,price_in_decimal?:string,starting_unit?:number,starting_unit_in_decimal?:string}[];
|
|
81
|
+
tiers?:{ending_unit?:number,ending_unit_in_decimal?:string,package_size?:number,price?:number,price_in_decimal?:string,pricing_type?:PricingType,starting_unit?:number,starting_unit_in_decimal?:string}[];
|
|
82
82
|
|
|
83
83
|
item_price_id:string;
|
|
84
84
|
|
|
@@ -154,6 +154,10 @@ declare module 'chargebee' {
|
|
|
154
154
|
ending_unit_in_decimal?:string;
|
|
155
155
|
|
|
156
156
|
price_in_decimal?:string;
|
|
157
|
+
|
|
158
|
+
pricing_type?:'per_unit' | 'flat_fee' | 'package';
|
|
159
|
+
|
|
160
|
+
package_size?:number;
|
|
157
161
|
}
|
|
158
162
|
export interface ParentPeriod {
|
|
159
163
|
period_unit:'day' | 'week' | 'month' | 'year';
|
|
@@ -121,7 +121,7 @@ declare module 'chargebee' {
|
|
|
121
121
|
|
|
122
122
|
discounts:{amount?:number,apply_on:ApplyOn,duration_type:DurationType,included_in_mrr?:boolean,item_price_id?:string,percentage?:number,period?:number,period_unit?:PeriodUnit}[];
|
|
123
123
|
|
|
124
|
-
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}[];
|
|
124
|
+
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}[];
|
|
125
125
|
|
|
126
126
|
tax_providers_fields?:{field_id?:string,field_value?:string,provider_name?:string}[];
|
|
127
127
|
|
|
@@ -197,7 +197,7 @@ declare module 'chargebee' {
|
|
|
197
197
|
|
|
198
198
|
discounts:{amount?:number,apply_on:ApplyOn,duration_type:DurationType,included_in_mrr?:boolean,item_price_id?:string,percentage?:number,period?:number,period_unit?:PeriodUnit}[];
|
|
199
199
|
|
|
200
|
-
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}[];
|
|
200
|
+
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}[];
|
|
201
201
|
|
|
202
202
|
use_existing_balances?:boolean;
|
|
203
203
|
|
|
@@ -285,7 +285,7 @@ declare module 'chargebee' {
|
|
|
285
285
|
|
|
286
286
|
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}[];
|
|
287
287
|
|
|
288
|
-
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}[];
|
|
288
|
+
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}[];
|
|
289
289
|
|
|
290
290
|
changes_scheduled_at?:number;
|
|
291
291
|
|
|
@@ -541,9 +541,11 @@ declare module 'chargebee' {
|
|
|
541
541
|
|
|
542
542
|
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};
|
|
543
543
|
|
|
544
|
+
billing_address?:{city?:string,country?:string,line1?:string,line2?:string,line3?:string,state_code?:string,validation_status?:ValidationStatus,zip?:string};
|
|
545
|
+
|
|
544
546
|
item_prices?:{date_from?:number,date_to?:number,item_price_id?:string,quantity?:number,quantity_in_decimal?:string,unit_price?:number,unit_price_in_decimal?:string}[];
|
|
545
547
|
|
|
546
|
-
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}[];
|
|
548
|
+
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}[];
|
|
547
549
|
|
|
548
550
|
charges?:{amount?:number,amount_in_decimal?:string,avalara_sale_type?:AvalaraSaleType,avalara_service_type?:number,avalara_tax_code?:string,avalara_transaction_type?:number,date_from?:number,date_to?:number,description?:string,hsn_code?:string,tax_profile_id?:string,taxable?:boolean,taxjar_product_code?:string}[];
|
|
549
551
|
|