chargebee 3.5.0 → 3.6.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 +139 -0
- package/README.md +6 -3
- package/cjs/environment.js +1 -1
- package/cjs/resources/api_endpoints.js +13 -1
- package/esm/environment.js +1 -1
- package/esm/resources/api_endpoints.js +13 -1
- package/package.json +1 -1
- package/types/core.d.ts +15 -4
- package/types/index.d.ts +6 -0
- package/types/resources/Addon.d.ts +283 -0
- package/types/resources/Comment.d.ts +2 -0
- package/types/resources/CreditNote.d.ts +26 -1
- package/types/resources/CreditNoteEstimate.d.ts +4 -1
- package/types/resources/DifferentialPrice.d.ts +6 -0
- package/types/resources/Estimate.d.ts +19 -0
- package/types/resources/HostedPage.d.ts +6 -0
- package/types/resources/Invoice.d.ts +32 -1
- package/types/resources/InvoiceEstimate.d.ts +26 -1
- package/types/resources/Item.d.ts +2 -0
- package/types/resources/ItemPrice.d.ts +6 -0
- package/types/resources/OmnichannelSubscription.d.ts +5 -5
- package/types/resources/OmnichannelSubscriptionItem.d.ts +38 -2
- package/types/resources/OmnichannelSubscriptionItemScheduledChange.d.ts +27 -0
- package/types/resources/OmnichannelTransaction.d.ts +4 -4
- package/types/resources/PaymentSource.d.ts +1 -0
- package/types/resources/Plan.d.ts +401 -0
- package/types/resources/Quote.d.ts +22 -1
- package/types/resources/QuoteLineGroup.d.ts +2 -1
- package/types/resources/QuotedCharge.d.ts +2 -0
- package/types/resources/QuotedSubscription.d.ts +2 -0
- package/types/resources/Ramp.d.ts +6 -0
- package/types/resources/RecordedPurchase.d.ts +7 -1
- package/types/resources/Subscription.d.ts +8 -0
- package/types/resources/UnbilledCharge.d.ts +4 -0
|
@@ -0,0 +1,401 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
3
|
+
///<reference path='./filter.d.ts'/>
|
|
4
|
+
declare module 'chargebee' {
|
|
5
|
+
export interface Plan {
|
|
6
|
+
[key: string]: unknown;
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
invoice_name?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
price?: number;
|
|
12
|
+
currency_code: string;
|
|
13
|
+
period: number;
|
|
14
|
+
period_unit: 'day' | 'week' | 'month' | 'year';
|
|
15
|
+
trial_period?: number;
|
|
16
|
+
trial_period_unit?: 'day' | 'month';
|
|
17
|
+
trial_end_action?:
|
|
18
|
+
| 'site_default'
|
|
19
|
+
| 'activate_subscription'
|
|
20
|
+
| 'cancel_subscription';
|
|
21
|
+
pricing_model: PricingModelEnum;
|
|
22
|
+
charge_model: 'flat_fee' | 'per_unit' | 'tiered' | 'volume' | 'stairstep';
|
|
23
|
+
free_quantity: number;
|
|
24
|
+
setup_cost?: number;
|
|
25
|
+
downgrade_penalty?: number;
|
|
26
|
+
status: 'active' | 'archived' | 'deleted';
|
|
27
|
+
archived_at?: number;
|
|
28
|
+
billing_cycles?: number;
|
|
29
|
+
redirect_url?: string;
|
|
30
|
+
enabled_in_hosted_pages: boolean;
|
|
31
|
+
enabled_in_portal: boolean;
|
|
32
|
+
addon_applicability: 'all' | 'restricted';
|
|
33
|
+
tax_code?: string;
|
|
34
|
+
hsn_code?: string;
|
|
35
|
+
taxjar_product_code?: string;
|
|
36
|
+
avalara_sale_type?: AvalaraSaleTypeEnum;
|
|
37
|
+
avalara_transaction_type?: number;
|
|
38
|
+
avalara_service_type?: number;
|
|
39
|
+
sku?: string;
|
|
40
|
+
accounting_code?: string;
|
|
41
|
+
accounting_category1?: string;
|
|
42
|
+
accounting_category2?: string;
|
|
43
|
+
accounting_category3?: string;
|
|
44
|
+
accounting_category4?: string;
|
|
45
|
+
is_shippable?: boolean;
|
|
46
|
+
shipping_frequency_period?: number;
|
|
47
|
+
shipping_frequency_period_unit?: 'year' | 'month' | 'week' | 'day';
|
|
48
|
+
resource_version?: number;
|
|
49
|
+
updated_at?: number;
|
|
50
|
+
giftable: boolean;
|
|
51
|
+
claim_url?: string;
|
|
52
|
+
free_quantity_in_decimal?: string;
|
|
53
|
+
price_in_decimal?: string;
|
|
54
|
+
channel?: ChannelEnum;
|
|
55
|
+
invoice_notes?: string;
|
|
56
|
+
taxable?: boolean;
|
|
57
|
+
tax_profile_id?: string;
|
|
58
|
+
meta_data?: any;
|
|
59
|
+
tiers?: Plan.Tier[];
|
|
60
|
+
tax_providers_fields?: Plan.TaxProvidersField[];
|
|
61
|
+
applicable_addons?: Plan.ApplicableAddon[];
|
|
62
|
+
attached_addons?: Plan.AttachedAddon[];
|
|
63
|
+
event_based_addons?: Plan.EventBasedAddon[];
|
|
64
|
+
show_description_in_invoices?: boolean;
|
|
65
|
+
show_description_in_quotes?: boolean;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export namespace Plan {
|
|
69
|
+
export class PlanResource {
|
|
70
|
+
create(
|
|
71
|
+
input: CreateInputParam,
|
|
72
|
+
headers?: ChargebeeRequestHeader,
|
|
73
|
+
): Promise<ChargebeeResponse<CreateResponse>>;
|
|
74
|
+
|
|
75
|
+
update(
|
|
76
|
+
plan_id: string,
|
|
77
|
+
input: UpdateInputParam,
|
|
78
|
+
headers?: ChargebeeRequestHeader,
|
|
79
|
+
): Promise<ChargebeeResponse<UpdateResponse>>;
|
|
80
|
+
|
|
81
|
+
list(
|
|
82
|
+
input?: ListInputParam,
|
|
83
|
+
headers?: ChargebeeRequestHeader,
|
|
84
|
+
): Promise<ChargebeeResponse<ListResponse>>;
|
|
85
|
+
|
|
86
|
+
retrieve(
|
|
87
|
+
plan_id: string,
|
|
88
|
+
headers?: ChargebeeRequestHeader,
|
|
89
|
+
): Promise<ChargebeeResponse<RetrieveResponse>>;
|
|
90
|
+
|
|
91
|
+
delete(
|
|
92
|
+
plan_id: string,
|
|
93
|
+
headers?: ChargebeeRequestHeader,
|
|
94
|
+
): Promise<ChargebeeResponse<DeleteResponse>>;
|
|
95
|
+
|
|
96
|
+
copy(
|
|
97
|
+
input: CopyInputParam,
|
|
98
|
+
headers?: ChargebeeRequestHeader,
|
|
99
|
+
): Promise<ChargebeeResponse<CopyResponse>>;
|
|
100
|
+
|
|
101
|
+
unarchive(
|
|
102
|
+
plan_id: string,
|
|
103
|
+
headers?: ChargebeeRequestHeader,
|
|
104
|
+
): Promise<ChargebeeResponse<UnarchiveResponse>>;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export interface CreateResponse {
|
|
108
|
+
plan: Plan;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export interface UpdateResponse {
|
|
112
|
+
plan: Plan;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export interface ListResponse {
|
|
116
|
+
list: { plan: Plan }[];
|
|
117
|
+
next_offset?: string;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export interface RetrieveResponse {
|
|
121
|
+
plan: Plan;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export interface DeleteResponse {
|
|
125
|
+
plan: Plan;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export interface CopyResponse {
|
|
129
|
+
plan: Plan;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export interface UnarchiveResponse {
|
|
133
|
+
plan: Plan;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export interface Tier {
|
|
137
|
+
starting_unit: number;
|
|
138
|
+
ending_unit?: number;
|
|
139
|
+
price: number;
|
|
140
|
+
starting_unit_in_decimal?: string;
|
|
141
|
+
ending_unit_in_decimal?: string;
|
|
142
|
+
price_in_decimal?: string;
|
|
143
|
+
pricing_type?: 'per_unit' | 'flat_fee' | 'package';
|
|
144
|
+
package_size?: number;
|
|
145
|
+
}
|
|
146
|
+
export interface TaxProvidersField {
|
|
147
|
+
provider_name: string;
|
|
148
|
+
field_id: string;
|
|
149
|
+
field_value: string;
|
|
150
|
+
}
|
|
151
|
+
export interface ApplicableAddon {
|
|
152
|
+
id: string;
|
|
153
|
+
}
|
|
154
|
+
export interface AttachedAddon {
|
|
155
|
+
id: string;
|
|
156
|
+
quantity: number;
|
|
157
|
+
billing_cycles?: number;
|
|
158
|
+
type: 'recommended' | 'mandatory';
|
|
159
|
+
quantity_in_decimal?: string;
|
|
160
|
+
}
|
|
161
|
+
export interface EventBasedAddon {
|
|
162
|
+
id: string;
|
|
163
|
+
quantity: number;
|
|
164
|
+
on_event:
|
|
165
|
+
| 'subscription_creation'
|
|
166
|
+
| 'subscription_trial_start'
|
|
167
|
+
| 'plan_activation'
|
|
168
|
+
| 'subscription_activation'
|
|
169
|
+
| 'contract_termination';
|
|
170
|
+
charge_once: boolean;
|
|
171
|
+
quantity_in_decimal?: string;
|
|
172
|
+
}
|
|
173
|
+
// REQUEST PARAMS
|
|
174
|
+
//---------------
|
|
175
|
+
|
|
176
|
+
export interface CreateInputParam {
|
|
177
|
+
id: string;
|
|
178
|
+
name: string;
|
|
179
|
+
invoice_name?: string;
|
|
180
|
+
description?: string;
|
|
181
|
+
trial_period?: number;
|
|
182
|
+
trial_period_unit?: 'day' | 'month';
|
|
183
|
+
trial_end_action?:
|
|
184
|
+
| 'site_default'
|
|
185
|
+
| 'activate_subscription'
|
|
186
|
+
| 'cancel_subscription';
|
|
187
|
+
period?: number;
|
|
188
|
+
period_unit?: 'day' | 'week' | 'month' | 'year';
|
|
189
|
+
setup_cost?: number;
|
|
190
|
+
price?: number;
|
|
191
|
+
price_in_decimal?: string;
|
|
192
|
+
currency_code?: string;
|
|
193
|
+
billing_cycles?: number;
|
|
194
|
+
pricing_model?: PricingModelEnum /**
|
|
195
|
+
* @deprecated Please refer API docs to use other attributes
|
|
196
|
+
*/;
|
|
197
|
+
|
|
198
|
+
charge_model?:
|
|
199
|
+
| 'flat_fee'
|
|
200
|
+
| 'per_unit'
|
|
201
|
+
| 'tiered'
|
|
202
|
+
| 'volume'
|
|
203
|
+
| 'stairstep';
|
|
204
|
+
free_quantity?: number;
|
|
205
|
+
free_quantity_in_decimal?: string;
|
|
206
|
+
addon_applicability?: 'all' | 'restricted' /**
|
|
207
|
+
* @deprecated Please refer API docs to use other attributes
|
|
208
|
+
*/;
|
|
209
|
+
|
|
210
|
+
downgrade_penalty?: number;
|
|
211
|
+
redirect_url?: string;
|
|
212
|
+
enabled_in_hosted_pages?: boolean;
|
|
213
|
+
enabled_in_portal?: boolean;
|
|
214
|
+
taxable?: boolean;
|
|
215
|
+
tax_profile_id?: string;
|
|
216
|
+
tax_code?: string;
|
|
217
|
+
hsn_code?: string;
|
|
218
|
+
taxjar_product_code?: string;
|
|
219
|
+
avalara_sale_type?: AvalaraSaleTypeEnum;
|
|
220
|
+
avalara_transaction_type?: number;
|
|
221
|
+
avalara_service_type?: number;
|
|
222
|
+
sku?: string;
|
|
223
|
+
accounting_code?: string;
|
|
224
|
+
accounting_category1?: string;
|
|
225
|
+
accounting_category2?: string;
|
|
226
|
+
accounting_category3?: string;
|
|
227
|
+
accounting_category4?: string;
|
|
228
|
+
is_shippable?: boolean;
|
|
229
|
+
shipping_frequency_period?: number;
|
|
230
|
+
shipping_frequency_period_unit?: 'year' | 'month' | 'week' | 'day';
|
|
231
|
+
invoice_notes?: string;
|
|
232
|
+
meta_data?: any;
|
|
233
|
+
show_description_in_invoices?: boolean;
|
|
234
|
+
show_description_in_quotes?: boolean;
|
|
235
|
+
giftable?: boolean;
|
|
236
|
+
status?: 'active' | 'archived';
|
|
237
|
+
claim_url?: string;
|
|
238
|
+
tiers?: TiersCreateInputParam[];
|
|
239
|
+
tax_providers_fields?: TaxProvidersFieldsCreateInputParam[];
|
|
240
|
+
applicable_addons?: ApplicableAddonsCreateInputParam[];
|
|
241
|
+
event_based_addons?: EventBasedAddonsCreateInputParam[];
|
|
242
|
+
attached_addons?: AttachedAddonsCreateInputParam[];
|
|
243
|
+
[key: `cf_${string}`]: unknown;
|
|
244
|
+
}
|
|
245
|
+
export interface UpdateInputParam {
|
|
246
|
+
name?: string;
|
|
247
|
+
invoice_name?: string;
|
|
248
|
+
description?: string;
|
|
249
|
+
trial_period?: number;
|
|
250
|
+
trial_period_unit?: 'day' | 'month';
|
|
251
|
+
trial_end_action?:
|
|
252
|
+
| 'site_default'
|
|
253
|
+
| 'activate_subscription'
|
|
254
|
+
| 'cancel_subscription';
|
|
255
|
+
period?: number;
|
|
256
|
+
period_unit?: 'day' | 'week' | 'month' | 'year';
|
|
257
|
+
setup_cost?: number;
|
|
258
|
+
price?: number;
|
|
259
|
+
price_in_decimal?: string;
|
|
260
|
+
currency_code?: string;
|
|
261
|
+
billing_cycles?: number;
|
|
262
|
+
pricing_model?: PricingModelEnum /**
|
|
263
|
+
* @deprecated Please refer API docs to use other attributes
|
|
264
|
+
*/;
|
|
265
|
+
|
|
266
|
+
charge_model?:
|
|
267
|
+
| 'flat_fee'
|
|
268
|
+
| 'per_unit'
|
|
269
|
+
| 'tiered'
|
|
270
|
+
| 'volume'
|
|
271
|
+
| 'stairstep';
|
|
272
|
+
free_quantity?: number;
|
|
273
|
+
free_quantity_in_decimal?: string;
|
|
274
|
+
addon_applicability?: 'all' | 'restricted' /**
|
|
275
|
+
* @deprecated Please refer API docs to use other attributes
|
|
276
|
+
*/;
|
|
277
|
+
|
|
278
|
+
downgrade_penalty?: number;
|
|
279
|
+
redirect_url?: string;
|
|
280
|
+
enabled_in_hosted_pages?: boolean;
|
|
281
|
+
enabled_in_portal?: boolean;
|
|
282
|
+
taxable?: boolean;
|
|
283
|
+
tax_profile_id?: string;
|
|
284
|
+
tax_code?: string;
|
|
285
|
+
hsn_code?: string;
|
|
286
|
+
taxjar_product_code?: string;
|
|
287
|
+
avalara_sale_type?: AvalaraSaleTypeEnum;
|
|
288
|
+
avalara_transaction_type?: number;
|
|
289
|
+
avalara_service_type?: number;
|
|
290
|
+
sku?: string;
|
|
291
|
+
accounting_code?: string;
|
|
292
|
+
accounting_category1?: string;
|
|
293
|
+
accounting_category2?: string;
|
|
294
|
+
accounting_category3?: string;
|
|
295
|
+
accounting_category4?: string;
|
|
296
|
+
is_shippable?: boolean;
|
|
297
|
+
shipping_frequency_period?: number;
|
|
298
|
+
shipping_frequency_period_unit?: 'year' | 'month' | 'week' | 'day';
|
|
299
|
+
invoice_notes?: string;
|
|
300
|
+
meta_data?: any;
|
|
301
|
+
show_description_in_invoices?: boolean;
|
|
302
|
+
show_description_in_quotes?: boolean;
|
|
303
|
+
tiers?: TiersUpdateInputParam[];
|
|
304
|
+
tax_providers_fields?: TaxProvidersFieldsUpdateInputParam[];
|
|
305
|
+
applicable_addons?: ApplicableAddonsUpdateInputParam[];
|
|
306
|
+
attached_addons?: AttachedAddonsUpdateInputParam[];
|
|
307
|
+
event_based_addons?: EventBasedAddonsUpdateInputParam[];
|
|
308
|
+
[key: `cf_${string}`]: unknown;
|
|
309
|
+
}
|
|
310
|
+
export interface ListInputParam {
|
|
311
|
+
limit?: number;
|
|
312
|
+
offset?: string;
|
|
313
|
+
id?: filter.String;
|
|
314
|
+
name?: filter.String;
|
|
315
|
+
price?: filter.Number;
|
|
316
|
+
period?: filter.Number;
|
|
317
|
+
period_unit?: filter.Enum;
|
|
318
|
+
trial_period?: filter.Number;
|
|
319
|
+
trial_period_unit?: filter.Enum;
|
|
320
|
+
addon_applicability?: filter.Enum;
|
|
321
|
+
giftable?: filter.Boolean /**
|
|
322
|
+
* @deprecated Please refer API docs to use other attributes
|
|
323
|
+
*/;
|
|
324
|
+
|
|
325
|
+
charge_model?: filter.Enum;
|
|
326
|
+
pricing_model?: filter.Enum;
|
|
327
|
+
status?: filter.Enum;
|
|
328
|
+
updated_at?: filter.Timestamp;
|
|
329
|
+
currency_code?: filter.String;
|
|
330
|
+
channel?: filter.Enum;
|
|
331
|
+
include_deleted?: boolean;
|
|
332
|
+
[key: `cf_${string}`]: unknown;
|
|
333
|
+
}
|
|
334
|
+
export interface CopyInputParam {
|
|
335
|
+
from_site: string;
|
|
336
|
+
id_at_from_site: string;
|
|
337
|
+
id?: string;
|
|
338
|
+
for_site_merging?: boolean;
|
|
339
|
+
}
|
|
340
|
+
export interface TiersCreateInputParam {
|
|
341
|
+
starting_unit?: number;
|
|
342
|
+
ending_unit?: number;
|
|
343
|
+
price?: number;
|
|
344
|
+
starting_unit_in_decimal?: string;
|
|
345
|
+
ending_unit_in_decimal?: string;
|
|
346
|
+
price_in_decimal?: string;
|
|
347
|
+
}
|
|
348
|
+
export interface EventBasedAddonsCreateInputParam {
|
|
349
|
+
id?: string;
|
|
350
|
+
quantity?: number;
|
|
351
|
+
quantity_in_decimal?: string;
|
|
352
|
+
on_event?: OnEventEnum;
|
|
353
|
+
charge_once?: boolean;
|
|
354
|
+
}
|
|
355
|
+
export interface AttachedAddonsCreateInputParam {
|
|
356
|
+
id?: string;
|
|
357
|
+
quantity?: number;
|
|
358
|
+
quantity_in_decimal?: string;
|
|
359
|
+
billing_cycles?: number;
|
|
360
|
+
type?: 'recommended' | 'mandatory';
|
|
361
|
+
}
|
|
362
|
+
export interface ApplicableAddonsCreateInputParam {
|
|
363
|
+
id?: string;
|
|
364
|
+
}
|
|
365
|
+
export interface TaxProvidersFieldsCreateInputParam {
|
|
366
|
+
provider_name: string;
|
|
367
|
+
field_id: string;
|
|
368
|
+
field_value: string;
|
|
369
|
+
}
|
|
370
|
+
export interface TiersUpdateInputParam {
|
|
371
|
+
starting_unit?: number;
|
|
372
|
+
ending_unit?: number;
|
|
373
|
+
price?: number;
|
|
374
|
+
starting_unit_in_decimal?: string;
|
|
375
|
+
ending_unit_in_decimal?: string;
|
|
376
|
+
price_in_decimal?: string;
|
|
377
|
+
}
|
|
378
|
+
export interface EventBasedAddonsUpdateInputParam {
|
|
379
|
+
id?: string;
|
|
380
|
+
quantity?: number;
|
|
381
|
+
quantity_in_decimal?: string;
|
|
382
|
+
on_event?: OnEventEnum;
|
|
383
|
+
charge_once?: boolean;
|
|
384
|
+
}
|
|
385
|
+
export interface AttachedAddonsUpdateInputParam {
|
|
386
|
+
id?: string;
|
|
387
|
+
quantity?: number;
|
|
388
|
+
quantity_in_decimal?: string;
|
|
389
|
+
billing_cycles?: number;
|
|
390
|
+
type?: 'recommended' | 'mandatory';
|
|
391
|
+
}
|
|
392
|
+
export interface ApplicableAddonsUpdateInputParam {
|
|
393
|
+
id?: string;
|
|
394
|
+
}
|
|
395
|
+
export interface TaxProvidersFieldsUpdateInputParam {
|
|
396
|
+
provider_name: string;
|
|
397
|
+
field_id: string;
|
|
398
|
+
field_value: string;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
///<reference path='./filter.d.ts'/>
|
|
4
4
|
declare module 'chargebee' {
|
|
5
5
|
export interface Quote {
|
|
6
|
+
[key: string]: unknown;
|
|
6
7
|
id: string;
|
|
7
8
|
name?: string;
|
|
8
9
|
po_number?: string;
|
|
@@ -297,7 +298,8 @@ declare module 'chargebee' {
|
|
|
297
298
|
amount_in_decimal?: string;
|
|
298
299
|
discount_amount?: number;
|
|
299
300
|
item_level_discount_amount?: number;
|
|
300
|
-
|
|
301
|
+
metered?: boolean;
|
|
302
|
+
percentage?: string;
|
|
301
303
|
reference_line_item_id?: string;
|
|
302
304
|
description: string;
|
|
303
305
|
entity_description?: string;
|
|
@@ -390,6 +392,8 @@ declare module 'chargebee' {
|
|
|
390
392
|
ending_unit_in_decimal?: string;
|
|
391
393
|
quantity_used_in_decimal?: string;
|
|
392
394
|
unit_amount_in_decimal?: string;
|
|
395
|
+
pricing_type?: 'per_unit' | 'flat_fee' | 'package';
|
|
396
|
+
package_size?: number;
|
|
393
397
|
}
|
|
394
398
|
export interface ShippingAddress {
|
|
395
399
|
first_name?: string;
|
|
@@ -544,6 +548,7 @@ declare module 'chargebee' {
|
|
|
544
548
|
subscription_items?: SubscriptionItemsCreateSubItemsForCustomerQuoteInputParam[];
|
|
545
549
|
discounts?: DiscountsCreateSubItemsForCustomerQuoteInputParam[];
|
|
546
550
|
item_tiers?: ItemTiersCreateSubItemsForCustomerQuoteInputParam[];
|
|
551
|
+
[key: `cf_${string}`]: unknown;
|
|
547
552
|
}
|
|
548
553
|
export interface EditCreateSubCustomerQuoteForItemsInputParam {
|
|
549
554
|
notes?: string;
|
|
@@ -559,6 +564,7 @@ declare module 'chargebee' {
|
|
|
559
564
|
subscription_items?: SubscriptionItemsEditCreateSubCustomerQuoteForItemsInputParam[];
|
|
560
565
|
discounts?: DiscountsEditCreateSubCustomerQuoteForItemsInputParam[];
|
|
561
566
|
item_tiers?: ItemTiersEditCreateSubCustomerQuoteForItemsInputParam[];
|
|
567
|
+
[key: `cf_${string}`]: unknown;
|
|
562
568
|
}
|
|
563
569
|
export interface UpdateSubscriptionQuoteForItemsInputParam {
|
|
564
570
|
name?: string;
|
|
@@ -584,6 +590,7 @@ declare module 'chargebee' {
|
|
|
584
590
|
subscription_items?: SubscriptionItemsUpdateSubscriptionQuoteForItemsInputParam[];
|
|
585
591
|
discounts?: DiscountsUpdateSubscriptionQuoteForItemsInputParam[];
|
|
586
592
|
item_tiers?: ItemTiersUpdateSubscriptionQuoteForItemsInputParam[];
|
|
593
|
+
[key: `cf_${string}`]: unknown;
|
|
587
594
|
}
|
|
588
595
|
export interface EditUpdateSubscriptionQuoteForItemsInputParam {
|
|
589
596
|
notes?: string;
|
|
@@ -608,6 +615,7 @@ declare module 'chargebee' {
|
|
|
608
615
|
subscription_items?: SubscriptionItemsEditUpdateSubscriptionQuoteForItemsInputParam[];
|
|
609
616
|
discounts?: DiscountsEditUpdateSubscriptionQuoteForItemsInputParam[];
|
|
610
617
|
item_tiers?: ItemTiersEditUpdateSubscriptionQuoteForItemsInputParam[];
|
|
618
|
+
[key: `cf_${string}`]: unknown;
|
|
611
619
|
}
|
|
612
620
|
export interface CreateForChargeItemsAndChargesInputParam {
|
|
613
621
|
name?: string;
|
|
@@ -651,6 +659,7 @@ declare module 'chargebee' {
|
|
|
651
659
|
updated_at?: filter.Timestamp;
|
|
652
660
|
'sort_by[asc]'?: string;
|
|
653
661
|
'sort_by[desc]'?: string;
|
|
662
|
+
[key: `cf_${string}`]: unknown;
|
|
654
663
|
}
|
|
655
664
|
export interface QuoteLineGroupsForQuoteInputParam {
|
|
656
665
|
limit?: number;
|
|
@@ -1091,6 +1100,8 @@ declare module 'chargebee' {
|
|
|
1091
1100
|
starting_unit_in_decimal?: string;
|
|
1092
1101
|
ending_unit_in_decimal?: string;
|
|
1093
1102
|
price_in_decimal?: string;
|
|
1103
|
+
pricing_type?: PricingTypeEnum;
|
|
1104
|
+
package_size?: number;
|
|
1094
1105
|
}
|
|
1095
1106
|
export interface ShippingAddressEditCreateSubCustomerQuoteForItemsInputParam {
|
|
1096
1107
|
first_name?: string;
|
|
@@ -1159,6 +1170,8 @@ declare module 'chargebee' {
|
|
|
1159
1170
|
starting_unit_in_decimal?: string;
|
|
1160
1171
|
ending_unit_in_decimal?: string;
|
|
1161
1172
|
price_in_decimal?: string;
|
|
1173
|
+
pricing_type?: PricingTypeEnum;
|
|
1174
|
+
package_size?: number;
|
|
1162
1175
|
}
|
|
1163
1176
|
export interface BillingAddressUpdateSubscriptionQuoteForItemsInputParam {
|
|
1164
1177
|
first_name?: string;
|
|
@@ -1255,6 +1268,8 @@ declare module 'chargebee' {
|
|
|
1255
1268
|
starting_unit_in_decimal?: string;
|
|
1256
1269
|
ending_unit_in_decimal?: string;
|
|
1257
1270
|
price_in_decimal?: string;
|
|
1271
|
+
pricing_type?: PricingTypeEnum;
|
|
1272
|
+
package_size?: number;
|
|
1258
1273
|
}
|
|
1259
1274
|
export interface BillingAddressEditUpdateSubscriptionQuoteForItemsInputParam {
|
|
1260
1275
|
first_name?: string;
|
|
@@ -1350,6 +1365,8 @@ declare module 'chargebee' {
|
|
|
1350
1365
|
starting_unit_in_decimal?: string;
|
|
1351
1366
|
ending_unit_in_decimal?: string;
|
|
1352
1367
|
price_in_decimal?: string;
|
|
1368
|
+
pricing_type?: PricingTypeEnum;
|
|
1369
|
+
package_size?: number;
|
|
1353
1370
|
}
|
|
1354
1371
|
export interface ShippingAddressCreateForChargeItemsAndChargesInputParam {
|
|
1355
1372
|
first_name?: string;
|
|
@@ -1391,6 +1408,8 @@ declare module 'chargebee' {
|
|
|
1391
1408
|
starting_unit_in_decimal?: string;
|
|
1392
1409
|
ending_unit_in_decimal?: string;
|
|
1393
1410
|
price_in_decimal?: string;
|
|
1411
|
+
pricing_type?: PricingTypeEnum;
|
|
1412
|
+
package_size?: number;
|
|
1394
1413
|
}
|
|
1395
1414
|
export interface ItemPricesCreateForChargeItemsAndChargesInputParam {
|
|
1396
1415
|
item_price_id?: string;
|
|
@@ -1445,6 +1464,8 @@ declare module 'chargebee' {
|
|
|
1445
1464
|
starting_unit_in_decimal?: string;
|
|
1446
1465
|
ending_unit_in_decimal?: string;
|
|
1447
1466
|
price_in_decimal?: string;
|
|
1467
|
+
pricing_type?: PricingTypeEnum;
|
|
1468
|
+
package_size?: number;
|
|
1448
1469
|
}
|
|
1449
1470
|
export interface ItemPricesEditForChargeItemsAndChargesInputParam {
|
|
1450
1471
|
item_price_id?: string;
|
|
@@ -48,7 +48,8 @@ declare module 'chargebee' {
|
|
|
48
48
|
amount_in_decimal?: string;
|
|
49
49
|
discount_amount?: number;
|
|
50
50
|
item_level_discount_amount?: number;
|
|
51
|
-
|
|
51
|
+
metered?: boolean;
|
|
52
|
+
percentage?: string;
|
|
52
53
|
reference_line_item_id?: string;
|
|
53
54
|
description: string;
|
|
54
55
|
entity_description?: string;
|
|
@@ -45,6 +45,8 @@ declare module 'chargebee' {
|
|
|
45
45
|
starting_unit_in_decimal?: string;
|
|
46
46
|
ending_unit_in_decimal?: string;
|
|
47
47
|
price_in_decimal?: string;
|
|
48
|
+
pricing_type?: 'per_unit' | 'flat_fee' | 'package';
|
|
49
|
+
package_size?: number;
|
|
48
50
|
index: number;
|
|
49
51
|
}
|
|
50
52
|
export interface Coupon {
|
|
@@ -101,6 +101,8 @@ declare module 'chargebee' {
|
|
|
101
101
|
starting_unit_in_decimal?: string;
|
|
102
102
|
ending_unit_in_decimal?: string;
|
|
103
103
|
price_in_decimal?: string;
|
|
104
|
+
pricing_type?: 'per_unit' | 'flat_fee' | 'package';
|
|
105
|
+
package_size?: number;
|
|
104
106
|
index: number;
|
|
105
107
|
}
|
|
106
108
|
export interface QuotedContractTerm {
|
|
@@ -130,6 +130,8 @@ declare module 'chargebee' {
|
|
|
130
130
|
starting_unit_in_decimal?: string;
|
|
131
131
|
ending_unit_in_decimal?: string;
|
|
132
132
|
price_in_decimal?: string;
|
|
133
|
+
pricing_type?: 'per_unit' | 'flat_fee' | 'package';
|
|
134
|
+
package_size?: number;
|
|
133
135
|
index: number;
|
|
134
136
|
}
|
|
135
137
|
export interface StatusTransitionReason {
|
|
@@ -195,6 +197,8 @@ declare module 'chargebee' {
|
|
|
195
197
|
starting_unit_in_decimal?: string;
|
|
196
198
|
ending_unit_in_decimal?: string;
|
|
197
199
|
price_in_decimal?: string;
|
|
200
|
+
pricing_type?: PricingTypeEnum;
|
|
201
|
+
package_size?: number;
|
|
198
202
|
}
|
|
199
203
|
export interface ItemsToUpdateCreateForSubscriptionInputParam {
|
|
200
204
|
item_price_id: string;
|
|
@@ -236,6 +240,8 @@ declare module 'chargebee' {
|
|
|
236
240
|
starting_unit_in_decimal?: string;
|
|
237
241
|
ending_unit_in_decimal?: string;
|
|
238
242
|
price_in_decimal?: string;
|
|
243
|
+
pricing_type?: PricingTypeEnum;
|
|
244
|
+
package_size?: number;
|
|
239
245
|
}
|
|
240
246
|
export interface ItemsToUpdateUpdateInputParam {
|
|
241
247
|
item_price_id: string;
|
|
@@ -6,7 +6,7 @@ declare module 'chargebee' {
|
|
|
6
6
|
id: string;
|
|
7
7
|
customer_id: string;
|
|
8
8
|
app_id: string;
|
|
9
|
-
source: 'apple_app_store';
|
|
9
|
+
source: 'apple_app_store' | 'google_play_store';
|
|
10
10
|
status: 'in_process' | 'completed' | 'failed' | 'ignored';
|
|
11
11
|
omnichannel_transaction_id?: string;
|
|
12
12
|
created_at: number;
|
|
@@ -50,12 +50,18 @@ declare module 'chargebee' {
|
|
|
50
50
|
app_id: string;
|
|
51
51
|
customer?: CustomerCreateInputParam;
|
|
52
52
|
apple_app_store?: AppleAppStoreCreateInputParam;
|
|
53
|
+
google_play_store?: GooglePlayStoreCreateInputParam;
|
|
53
54
|
}
|
|
54
55
|
export interface CustomerCreateInputParam {
|
|
55
56
|
id: string;
|
|
56
57
|
}
|
|
58
|
+
export interface GooglePlayStoreCreateInputParam {
|
|
59
|
+
purchase_token?: string;
|
|
60
|
+
}
|
|
57
61
|
export interface AppleAppStoreCreateInputParam {
|
|
58
62
|
transaction_id?: string;
|
|
63
|
+
receipt?: string;
|
|
64
|
+
product_id?: string;
|
|
59
65
|
}
|
|
60
66
|
}
|
|
61
67
|
}
|
|
@@ -590,6 +590,8 @@ declare module 'chargebee' {
|
|
|
590
590
|
starting_unit_in_decimal?: string;
|
|
591
591
|
ending_unit_in_decimal?: string;
|
|
592
592
|
price_in_decimal?: string;
|
|
593
|
+
pricing_type?: 'per_unit' | 'flat_fee' | 'package';
|
|
594
|
+
package_size?: number;
|
|
593
595
|
index: number;
|
|
594
596
|
}
|
|
595
597
|
export interface ChargedItem {
|
|
@@ -1669,6 +1671,8 @@ declare module 'chargebee' {
|
|
|
1669
1671
|
starting_unit_in_decimal?: string;
|
|
1670
1672
|
ending_unit_in_decimal?: string;
|
|
1671
1673
|
price_in_decimal?: string;
|
|
1674
|
+
pricing_type?: PricingTypeEnum;
|
|
1675
|
+
package_size?: number;
|
|
1672
1676
|
}
|
|
1673
1677
|
export interface BillingAddressUpdateInputParam {
|
|
1674
1678
|
first_name?: string;
|
|
@@ -2006,6 +2010,8 @@ declare module 'chargebee' {
|
|
|
2006
2010
|
starting_unit_in_decimal?: string;
|
|
2007
2011
|
ending_unit_in_decimal?: string;
|
|
2008
2012
|
price_in_decimal?: string;
|
|
2013
|
+
pricing_type?: PricingTypeEnum;
|
|
2014
|
+
package_size?: number;
|
|
2009
2015
|
}
|
|
2010
2016
|
export interface StatementDescriptorReactivateInputParam {
|
|
2011
2017
|
descriptor?: string;
|
|
@@ -2410,6 +2416,8 @@ declare module 'chargebee' {
|
|
|
2410
2416
|
starting_unit_in_decimal?: string;
|
|
2411
2417
|
ending_unit_in_decimal?: string;
|
|
2412
2418
|
price_in_decimal?: string;
|
|
2419
|
+
pricing_type?: PricingTypeEnum;
|
|
2420
|
+
package_size?: number;
|
|
2413
2421
|
}
|
|
2414
2422
|
export interface ChargedItemsImportForItemsInputParam {
|
|
2415
2423
|
item_price_id?: string;
|
|
@@ -103,6 +103,8 @@ declare module 'chargebee' {
|
|
|
103
103
|
ending_unit_in_decimal?: string;
|
|
104
104
|
quantity_used_in_decimal?: string;
|
|
105
105
|
unit_amount_in_decimal?: string;
|
|
106
|
+
pricing_type?: 'per_unit' | 'flat_fee' | 'package';
|
|
107
|
+
package_size?: number;
|
|
106
108
|
}
|
|
107
109
|
// REQUEST PARAMS
|
|
108
110
|
//---------------
|
|
@@ -190,6 +192,8 @@ declare module 'chargebee' {
|
|
|
190
192
|
starting_unit_in_decimal?: string;
|
|
191
193
|
ending_unit_in_decimal?: string;
|
|
192
194
|
price_in_decimal?: string;
|
|
195
|
+
pricing_type?: PricingTypeEnum;
|
|
196
|
+
package_size?: number;
|
|
193
197
|
}
|
|
194
198
|
export interface ItemPricesCreateInputParam {
|
|
195
199
|
item_price_id?: string;
|