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,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 \`offset\` to the value of \`next_offset\` 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=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 "3" 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 \`deleted\` as \`true\`.
|
|
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
|
+
}
|