chargebee 2.51.0 → 2.52.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 +27 -0
- package/lib/chargebee.js +1 -1
- package/lib/resources/api_endpoints.js +14 -1
- package/package.json +1 -1
- package/types/core.d.ts +4 -4
- package/types/index.d.ts +2 -0
- package/types/resources/Address.d.ts +2 -194
- package/types/resources/AdvanceInvoiceSchedule.d.ts +5 -67
- package/types/resources/Attribute.d.ts +4 -1
- package/types/resources/BillingConfiguration.d.ts +21 -0
- package/types/resources/Brand.d.ts +12 -0
- package/types/resources/BusinessEntity.d.ts +8 -6
- package/types/resources/BusinessEntityTransfer.d.ts +10 -7
- package/types/resources/Card.d.ts +11 -311
- package/types/resources/Comment.d.ts +7 -124
- package/types/resources/Contact.d.ts +2 -44
- package/types/resources/ContractTerm.d.ts +4 -72
- package/types/resources/Coupon.d.ts +0 -37
- package/types/resources/CouponCode.d.ts +67 -35
- package/types/resources/CouponSet.d.ts +12 -121
- package/types/resources/CreditNote.d.ts +0 -6
- package/types/resources/Currency.d.ts +8 -5
- package/types/resources/Customer.d.ts +90 -89
- package/types/resources/Discount.d.ts +2 -89
- package/types/resources/Download.d.ts +2 -14
- package/types/resources/Entitlement.d.ts +15 -103
- package/types/resources/EntitlementOverride.d.ts +4 -89
- package/types/resources/Estimate.d.ts +2 -10
- package/types/resources/Event.d.ts +23 -108
- package/types/resources/Export.d.ts +116 -432
- package/types/resources/Feature.d.ts +17 -319
- package/types/resources/GatewayErrorDetail.d.ts +6 -48
- package/types/resources/Gift.d.ts +34 -294
- package/types/resources/Hierarchy.d.ts +4 -24
- package/types/resources/ImpactedItem.d.ts +4 -36
- package/types/resources/ImpactedItemPrice.d.ts +5 -2
- package/types/resources/ImpactedSubscription.d.ts +3 -30
- package/types/resources/InAppSubscription.d.ts +13 -355
- package/types/resources/Invoice.d.ts +2 -16
- package/types/resources/InvoiceEstimate.d.ts +1 -1
- package/types/resources/Item.d.ts +0 -7
- package/types/resources/ItemEntitlement.d.ts +15 -155
- package/types/resources/NonSubscription.d.ts +9 -6
- package/types/resources/PaymentIntent.d.ts +9 -255
- package/types/resources/PaymentReferenceNumber.d.ts +3 -20
- package/types/resources/PaymentSource.d.ts +2 -2
- package/types/resources/PaymentVoucher.d.ts +20 -203
- package/types/resources/PortalSession.d.ts +4 -146
- package/types/resources/PromotionalCredit.d.ts +10 -215
- package/types/resources/Purchase.d.ts +3 -1
- package/types/resources/Quote.d.ts +19 -1
- package/types/resources/QuotedRamp.d.ts +11 -16
- package/types/resources/RecordedPurchase.d.ts +2 -0
- package/types/resources/ResourceMigration.d.ts +2 -54
- package/types/resources/SiteMigrationDetail.d.ts +13 -55
- package/types/resources/Subscription.d.ts +11 -9
- package/types/resources/SubscriptionEntitlement.d.ts +6 -106
- package/types/resources/SubscriptionEstimate.d.ts +14 -11
- package/types/resources/TaxWithheld.d.ts +14 -26
- package/types/resources/ThirdPartyPaymentMethod.d.ts +2 -19
- package/types/resources/TimeMachine.d.ts +3 -64
- package/types/resources/Token.d.ts +3 -60
- package/types/resources/Transaction.d.ts +2 -2
- package/types/resources/Usage.d.ts +21 -165
|
@@ -1,134 +1,44 @@
|
|
|
1
1
|
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
2
3
|
declare module 'chargebee' {
|
|
3
4
|
export interface PromotionalCredit {
|
|
4
5
|
|
|
5
|
-
/**
|
|
6
|
-
* @description Unique reference ID provided for promotional credits
|
|
7
6
|
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
7
|
id:string;
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @description Identifier of the customer.
|
|
14
8
|
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
9
|
customer_id:string;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* @description Type of promotional credits \* decrement - Decrement \* increment - Increment
|
|
21
10
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
type:'decrement' | 'increment';
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @description Amount in decimal
|
|
11
|
+
type:'increment' | 'decrement';
|
|
28
12
|
|
|
29
|
-
*/
|
|
30
|
-
|
|
31
13
|
amount_in_decimal?:string;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* @description Promotional credits amount
|
|
35
14
|
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
15
|
amount:number;
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* @description The currency code (ISO 4217 format) for promotional credit
|
|
42
16
|
|
|
43
|
-
*/
|
|
44
|
-
|
|
45
17
|
currency_code:string;
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* @description Detailed description of this promotional credits.
|
|
49
18
|
|
|
50
|
-
*/
|
|
51
|
-
|
|
52
19
|
description:string;
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* @description Type of promotional credits provided to customer \* referral_rewards - Referral \* loyalty_credits - Loyalty Credits \* general - General
|
|
56
20
|
|
|
57
|
-
*/
|
|
58
|
-
|
|
59
21
|
credit_type:CreditType;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* @description Describes why promotional credits were provided
|
|
63
22
|
|
|
64
|
-
*/
|
|
65
|
-
|
|
66
23
|
reference?:string;
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* @description Closing balance as on end date.
|
|
70
24
|
|
|
71
|
-
*/
|
|
72
|
-
|
|
73
25
|
closing_balance:number;
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* @description The user who added/deducted the credit. If created via API, this contains the name given for the API key used.
|
|
77
26
|
|
|
78
|
-
*/
|
|
79
|
-
|
|
80
27
|
done_by?:string;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* @description Timestamp indicating when this promotional credit resource is created.
|
|
84
28
|
|
|
85
|
-
*/
|
|
86
|
-
|
|
87
29
|
created_at:number;
|
|
30
|
+
|
|
88
31
|
}
|
|
89
32
|
export namespace PromotionalCredit {
|
|
90
33
|
export class PromotionalCreditResource {
|
|
91
|
-
/**
|
|
92
|
-
* @description This API call can be used to add promotional credits to a customer. [Learn more about Promotional Credits](https://www.chargebee.com/docs/2.0/credit-notes.html#creating-promotional-credits).
|
|
93
|
-
|
|
94
|
-
For example, if a customer has credits of $10, if you pass the **amount** as $10, then the customer's credit balance would become $20.
|
|
95
|
-
|
|
96
|
-
*/
|
|
97
|
-
|
|
98
34
|
add(input:AddInputParam):ChargebeeRequest<AddResponse>;
|
|
99
35
|
|
|
100
|
-
/**
|
|
101
|
-
* @description This API call can be used to deduct promotional credits for a customer. [Learn more about Promotional Credits](https://www.chargebee.com/docs/2.0/credit-notes.html#creating-promotional-credits).
|
|
102
|
-
|
|
103
|
-
For example, if a customer has a credit balance of $20, if you pass the **amount** as $5, then the customer's credit balance would become $15.
|
|
104
|
-
|
|
105
|
-
If you do not pass any amount as the input parameter then, it will deduct the whole available amount from the credit balance.
|
|
106
|
-
|
|
107
|
-
*/
|
|
108
|
-
|
|
109
36
|
deduct(input:DeductInputParam):ChargebeeRequest<DeductResponse>;
|
|
110
37
|
|
|
111
|
-
/**
|
|
112
|
-
* @description This API call can be used to set the promotional credits balance of a customer. [Learn more about Promotional Credits](https://www.chargebee.com/docs/2.0/credit-notes.html#creating-promotional-credits).
|
|
113
|
-
|
|
114
|
-
For example, if a customer has a credit balance of $10 and if you would like to set the balance to $100, you could pass the **amount** as $100.
|
|
115
|
-
|
|
116
|
-
*/
|
|
117
|
-
|
|
118
38
|
set(input:SetInputParam):ChargebeeRequest<SetResponse>;
|
|
119
39
|
|
|
120
|
-
/**
|
|
121
|
-
* @description This endpoint lists the promotional credits set for a customer
|
|
122
|
-
|
|
123
|
-
*/
|
|
124
|
-
|
|
125
40
|
list(input?:ListInputParam):ChargebeeRequest<ListResponse>;
|
|
126
41
|
|
|
127
|
-
/**
|
|
128
|
-
* @description This endpoint retrieves the promotional credit based on the promotional credit id
|
|
129
|
-
|
|
130
|
-
*/
|
|
131
|
-
|
|
132
42
|
retrieve(account_credit_id:string):ChargebeeRequest<RetrieveResponse>;
|
|
133
43
|
}
|
|
134
44
|
export interface AddResponse {
|
|
@@ -138,53 +48,18 @@ For example, if a customer has a credit balance of $10 and if you would like to
|
|
|
138
48
|
}
|
|
139
49
|
export interface AddInputParam {
|
|
140
50
|
|
|
141
|
-
/**
|
|
142
|
-
* @description Identifier of the customer.
|
|
143
|
-
|
|
144
|
-
*/
|
|
145
|
-
|
|
146
51
|
customer_id:string;
|
|
147
52
|
|
|
148
|
-
/**
|
|
149
|
-
* @description Promotional credits amount.
|
|
150
|
-
|
|
151
|
-
*/
|
|
152
|
-
|
|
153
53
|
amount?:number;
|
|
154
54
|
|
|
155
|
-
/**
|
|
156
|
-
* @description Amount in decimal.
|
|
157
|
-
|
|
158
|
-
*/
|
|
159
|
-
|
|
160
55
|
amount_in_decimal?:string;
|
|
161
56
|
|
|
162
|
-
/**
|
|
163
|
-
* @description The currency code (ISO 4217 format) for promotional credit.
|
|
164
|
-
|
|
165
|
-
*/
|
|
166
|
-
|
|
167
57
|
currency_code?:string;
|
|
168
58
|
|
|
169
|
-
/**
|
|
170
|
-
* @description Detailed description of this promotional credits.
|
|
171
|
-
|
|
172
|
-
*/
|
|
173
|
-
|
|
174
59
|
description:string;
|
|
175
60
|
|
|
176
|
-
/**
|
|
177
|
-
* @description Type of promotional credits provided to customer. \* general - General \* referral_rewards - Referral \* loyalty_credits - Loyalty Credits
|
|
178
|
-
|
|
179
|
-
*/
|
|
180
|
-
|
|
181
61
|
credit_type?:CreditType;
|
|
182
62
|
|
|
183
|
-
/**
|
|
184
|
-
* @description Describes why promotional credits were provided.
|
|
185
|
-
|
|
186
|
-
*/
|
|
187
|
-
|
|
188
63
|
reference?:string;
|
|
189
64
|
}
|
|
190
65
|
export interface DeductResponse {
|
|
@@ -194,53 +69,18 @@ For example, if a customer has a credit balance of $10 and if you would like to
|
|
|
194
69
|
}
|
|
195
70
|
export interface DeductInputParam {
|
|
196
71
|
|
|
197
|
-
/**
|
|
198
|
-
* @description Identifier of the customer.
|
|
199
|
-
|
|
200
|
-
*/
|
|
201
|
-
|
|
202
72
|
customer_id:string;
|
|
203
73
|
|
|
204
|
-
/**
|
|
205
|
-
* @description Promotional credits amount.
|
|
206
|
-
|
|
207
|
-
*/
|
|
208
|
-
|
|
209
74
|
amount?:number;
|
|
210
75
|
|
|
211
|
-
/**
|
|
212
|
-
* @description Amount in decimal.
|
|
213
|
-
|
|
214
|
-
*/
|
|
215
|
-
|
|
216
76
|
amount_in_decimal?:string;
|
|
217
77
|
|
|
218
|
-
/**
|
|
219
|
-
* @description The currency code (ISO 4217 format) for promotional credit.
|
|
220
|
-
|
|
221
|
-
*/
|
|
222
|
-
|
|
223
78
|
currency_code?:string;
|
|
224
79
|
|
|
225
|
-
/**
|
|
226
|
-
* @description Detailed description of this promotional credits.
|
|
227
|
-
|
|
228
|
-
*/
|
|
229
|
-
|
|
230
80
|
description:string;
|
|
231
81
|
|
|
232
|
-
/**
|
|
233
|
-
* @description Type of promotional credits provided to customer. \* general - General \* referral_rewards - Referral \* loyalty_credits - Loyalty Credits
|
|
234
|
-
|
|
235
|
-
*/
|
|
236
|
-
|
|
237
82
|
credit_type?:CreditType;
|
|
238
83
|
|
|
239
|
-
/**
|
|
240
|
-
* @description Describes why promotional credits were provided.
|
|
241
|
-
|
|
242
|
-
*/
|
|
243
|
-
|
|
244
84
|
reference?:string;
|
|
245
85
|
}
|
|
246
86
|
export interface SetResponse {
|
|
@@ -250,109 +90,64 @@ For example, if a customer has a credit balance of $10 and if you would like to
|
|
|
250
90
|
}
|
|
251
91
|
export interface SetInputParam {
|
|
252
92
|
|
|
253
|
-
/**
|
|
254
|
-
* @description Identifier of the customer.
|
|
255
|
-
|
|
256
|
-
*/
|
|
257
|
-
|
|
258
93
|
customer_id:string;
|
|
259
94
|
|
|
260
|
-
/**
|
|
261
|
-
* @description Promotional credits amount.
|
|
262
|
-
|
|
263
|
-
*/
|
|
264
|
-
|
|
265
95
|
amount?:number;
|
|
266
96
|
|
|
267
|
-
/**
|
|
268
|
-
* @description Amount in decimal.
|
|
269
|
-
|
|
270
|
-
*/
|
|
271
|
-
|
|
272
97
|
amount_in_decimal?:string;
|
|
273
98
|
|
|
274
|
-
/**
|
|
275
|
-
* @description The currency code (ISO 4217 format) for promotional credit.
|
|
276
|
-
|
|
277
|
-
*/
|
|
278
|
-
|
|
279
99
|
currency_code?:string;
|
|
280
100
|
|
|
281
|
-
/**
|
|
282
|
-
* @description Detailed description of this promotional credits.
|
|
283
|
-
|
|
284
|
-
*/
|
|
285
|
-
|
|
286
101
|
description:string;
|
|
287
102
|
|
|
288
|
-
/**
|
|
289
|
-
* @description Type of promotional credits provided to customer. \* general - General \* referral_rewards - Referral \* loyalty_credits - Loyalty Credits
|
|
290
|
-
|
|
291
|
-
*/
|
|
292
|
-
|
|
293
103
|
credit_type?:CreditType;
|
|
294
104
|
|
|
295
|
-
/**
|
|
296
|
-
* @description Describes why promotional credits were provided.
|
|
297
|
-
|
|
298
|
-
*/
|
|
299
|
-
|
|
300
105
|
reference?:string;
|
|
301
106
|
}
|
|
302
107
|
export interface ListResponse {
|
|
303
|
-
/**
|
|
304
|
-
* @description This endpoint lists the promotional credits set for a customer
|
|
305
|
-
|
|
306
|
-
*/
|
|
307
|
-
|
|
308
108
|
list:{promotional_credit:PromotionalCredit}[];
|
|
309
109
|
|
|
310
|
-
/**
|
|
311
|
-
* @description This endpoint lists the promotional credits set for a customer
|
|
312
|
-
|
|
313
|
-
*/
|
|
314
|
-
|
|
315
110
|
next_offset?:string;
|
|
316
111
|
}
|
|
317
112
|
export interface ListInputParam {
|
|
318
113
|
[key : string]: any;
|
|
319
114
|
/**
|
|
320
|
-
* @description
|
|
115
|
+
* @description The number of resources to be returned.
|
|
321
116
|
|
|
322
117
|
*/
|
|
323
118
|
|
|
324
119
|
limit?:number;
|
|
325
120
|
|
|
326
121
|
/**
|
|
327
|
-
* @description
|
|
122
|
+
* @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.
|
|
328
123
|
|
|
329
124
|
*/
|
|
330
125
|
|
|
331
126
|
offset?:string;
|
|
332
127
|
|
|
333
128
|
/**
|
|
334
|
-
* @description
|
|
129
|
+
* @description Unique reference ID provided for promotional credits
|
|
335
130
|
|
|
336
131
|
*/
|
|
337
132
|
|
|
338
133
|
id?:{is?:string,is_not?:string,starts_with?:string};
|
|
339
134
|
|
|
340
135
|
/**
|
|
341
|
-
* @description
|
|
136
|
+
* @description Timestamp indicating when this promotional credit resource is created.
|
|
342
137
|
|
|
343
138
|
*/
|
|
344
139
|
|
|
345
140
|
created_at?:{after?:string,before?:string,between?:string,on?:string};
|
|
346
141
|
|
|
347
142
|
/**
|
|
348
|
-
* @description
|
|
143
|
+
* @description Type of promotional credits
|
|
349
144
|
|
|
350
145
|
*/
|
|
351
146
|
|
|
352
|
-
type?:{in?:string,is?:'
|
|
147
|
+
type?:{in?:string,is?:'increment' | 'decrement',is_not?:'increment' | 'decrement',not_in?:string};
|
|
353
148
|
|
|
354
149
|
/**
|
|
355
|
-
* @description
|
|
150
|
+
* @description Identifier of the customer.
|
|
356
151
|
|
|
357
152
|
*/
|
|
358
153
|
|
|
@@ -34,7 +34,7 @@ declare module 'chargebee' {
|
|
|
34
34
|
|
|
35
35
|
statement_descriptor?:{descriptor?:string};
|
|
36
36
|
|
|
37
|
-
payment_intent?:{additional_information?:object,gateway_account_id?:string,gw_payment_method_id?:string,gw_token?:string,id?:string,payment_method_type?:'card' | 'ideal' | 'sofort' | 'bancontact' | 'google_pay' | 'dotpay' | 'giropay' | 'apple_pay' | 'upi' | 'netbanking_emandates' | 'paypal_express_checkout' | 'direct_debit' | 'boleto' | 'venmo' | 'amazon_payments' | 'pay_to' | 'faster_payments' | 'sepa_instant_transfer' | 'klarna_pay_now' | 'online_banking_poland',reference_id?:string};
|
|
37
|
+
payment_intent?:{additional_information?:object,gateway_account_id?:string,gw_payment_method_id?:string,gw_token?:string,id?:string,payment_method_type?:'card' | 'ideal' | 'sofort' | 'bancontact' | 'google_pay' | 'dotpay' | 'giropay' | 'apple_pay' | 'upi' | 'netbanking_emandates' | 'paypal_express_checkout' | 'direct_debit' | 'boleto' | 'venmo' | 'amazon_payments' | 'pay_to' | 'faster_payments' | 'sepa_instant_transfer' | 'klarna_pay_now' | 'online_banking_poland' | 'payconiq_by_bancontact',reference_id?:string};
|
|
38
38
|
|
|
39
39
|
purchase_items:{index:number,item_price_id:string,quantity?:number,quantity_in_decimal?:string,unit_amount?:number,unit_amount_in_decimal?:string}[];
|
|
40
40
|
|
|
@@ -51,6 +51,8 @@ declare module 'chargebee' {
|
|
|
51
51
|
customer_id:string;
|
|
52
52
|
|
|
53
53
|
payment_source_id?:string;
|
|
54
|
+
|
|
55
|
+
replace_primary_payment_source?:boolean;
|
|
54
56
|
}
|
|
55
57
|
export interface EstimateResponse {
|
|
56
58
|
estimate:Estimate;
|
|
@@ -135,6 +135,8 @@ declare module 'chargebee' {
|
|
|
135
135
|
quoted_subscription?:QuotedSubscription;
|
|
136
136
|
|
|
137
137
|
quoted_charge?:QuotedCharge;
|
|
138
|
+
|
|
139
|
+
quoted_ramp?:QuotedRamp;
|
|
138
140
|
}
|
|
139
141
|
|
|
140
142
|
export interface CreateSubForCustomerQuoteResponse {
|
|
@@ -363,6 +365,8 @@ declare module 'chargebee' {
|
|
|
363
365
|
quote:Quote;
|
|
364
366
|
|
|
365
367
|
quoted_subscription?:QuotedSubscription;
|
|
368
|
+
|
|
369
|
+
quoted_ramp?:QuotedRamp;
|
|
366
370
|
}
|
|
367
371
|
export interface CreateSubItemsForCustomerQuoteInputParam {
|
|
368
372
|
[key : string] : any;
|
|
@@ -406,6 +410,8 @@ declare module 'chargebee' {
|
|
|
406
410
|
quote:Quote;
|
|
407
411
|
|
|
408
412
|
quoted_subscription?:QuotedSubscription;
|
|
413
|
+
|
|
414
|
+
quoted_ramp?:QuotedRamp;
|
|
409
415
|
}
|
|
410
416
|
export interface EditCreateSubCustomerQuoteForItemsInputParam {
|
|
411
417
|
[key : string] : any;
|
|
@@ -447,6 +453,8 @@ declare module 'chargebee' {
|
|
|
447
453
|
quote:Quote;
|
|
448
454
|
|
|
449
455
|
quoted_subscription?:QuotedSubscription;
|
|
456
|
+
|
|
457
|
+
quoted_ramp?:QuotedRamp;
|
|
450
458
|
}
|
|
451
459
|
export interface UpdateSubscriptionQuoteForItemsInputParam {
|
|
452
460
|
[key : string] : any;
|
|
@@ -504,6 +512,8 @@ declare module 'chargebee' {
|
|
|
504
512
|
quote:Quote;
|
|
505
513
|
|
|
506
514
|
quoted_subscription?:QuotedSubscription;
|
|
515
|
+
|
|
516
|
+
quoted_ramp?:QuotedRamp;
|
|
507
517
|
}
|
|
508
518
|
export interface EditUpdateSubscriptionQuoteForItemsInputParam {
|
|
509
519
|
[key : string] : any;
|
|
@@ -626,7 +636,7 @@ declare module 'chargebee' {
|
|
|
626
636
|
coupon_ids?:string[];
|
|
627
637
|
}
|
|
628
638
|
export interface ListResponse {
|
|
629
|
-
list:{quote:Quote,quoted_subscription?:QuotedSubscription}[];
|
|
639
|
+
list:{quote:Quote,quoted_subscription?:QuotedSubscription,quoted_ramp?:QuotedRamp}[];
|
|
630
640
|
|
|
631
641
|
next_offset?:string;
|
|
632
642
|
}
|
|
@@ -726,6 +736,8 @@ NOTE: Not to be used if *consolidated invoicing* feature is enabled.
|
|
|
726
736
|
|
|
727
737
|
quoted_charge?:QuotedCharge;
|
|
728
738
|
|
|
739
|
+
quoted_ramp?:QuotedRamp;
|
|
740
|
+
|
|
729
741
|
customer:Customer;
|
|
730
742
|
|
|
731
743
|
subscription?:Subscription;
|
|
@@ -754,6 +766,8 @@ NOTE: Not to be used if *consolidated invoicing* feature is enabled.
|
|
|
754
766
|
quoted_subscription?:QuotedSubscription;
|
|
755
767
|
|
|
756
768
|
quoted_charge?:QuotedCharge;
|
|
769
|
+
|
|
770
|
+
quoted_ramp?:QuotedRamp;
|
|
757
771
|
}
|
|
758
772
|
export interface UpdateStatusInputParam {
|
|
759
773
|
|
|
@@ -767,6 +781,8 @@ NOTE: Not to be used if *consolidated invoicing* feature is enabled.
|
|
|
767
781
|
quoted_subscription?:QuotedSubscription;
|
|
768
782
|
|
|
769
783
|
quoted_charge?:QuotedCharge;
|
|
784
|
+
|
|
785
|
+
quoted_ramp?:QuotedRamp;
|
|
770
786
|
}
|
|
771
787
|
export interface ExtendExpiryDateInputParam {
|
|
772
788
|
|
|
@@ -778,6 +794,8 @@ NOTE: Not to be used if *consolidated invoicing* feature is enabled.
|
|
|
778
794
|
quoted_subscription?:QuotedSubscription;
|
|
779
795
|
|
|
780
796
|
quoted_charge?:QuotedCharge;
|
|
797
|
+
|
|
798
|
+
quoted_ramp?:QuotedRamp;
|
|
781
799
|
}
|
|
782
800
|
export interface DeleteInputParam {
|
|
783
801
|
|
|
@@ -12,6 +12,8 @@ declare module 'chargebee' {
|
|
|
12
12
|
|
|
13
13
|
item_tiers?:QuotedRamp.ItemTier[];
|
|
14
14
|
|
|
15
|
+
coupon_applicability_mappings?:QuotedRamp.CouponApplicabilityMapping[];
|
|
16
|
+
|
|
15
17
|
}
|
|
16
18
|
export namespace QuotedRamp {
|
|
17
19
|
|
|
@@ -59,14 +61,6 @@ declare module 'chargebee' {
|
|
|
59
61
|
|
|
60
62
|
ramp_tier_id?:string;
|
|
61
63
|
|
|
62
|
-
discount_amount?:number;
|
|
63
|
-
|
|
64
|
-
md_discount_amount?:string;
|
|
65
|
-
|
|
66
|
-
item_level_discount_amount?:number;
|
|
67
|
-
|
|
68
|
-
md_item_level_discount_amount?:string;
|
|
69
|
-
|
|
70
64
|
discount_per_billing_cycle?:number;
|
|
71
65
|
|
|
72
66
|
discount_per_billing_cycle_in_decimal?:string;
|
|
@@ -75,10 +69,6 @@ declare module 'chargebee' {
|
|
|
75
69
|
|
|
76
70
|
item_level_discount_per_billing_cycle_in_decimal?:string;
|
|
77
71
|
|
|
78
|
-
net_amount?:number;
|
|
79
|
-
|
|
80
|
-
md_net_amount?:string;
|
|
81
|
-
|
|
82
72
|
amount_per_billing_cycle?:number;
|
|
83
73
|
|
|
84
74
|
amount_per_billing_cycle_in_decimal?:string;
|
|
@@ -90,8 +80,6 @@ declare module 'chargebee' {
|
|
|
90
80
|
export interface Discount {
|
|
91
81
|
id:string;
|
|
92
82
|
|
|
93
|
-
name:string;
|
|
94
|
-
|
|
95
83
|
invoice_name?:string;
|
|
96
84
|
|
|
97
85
|
type:'fixed_amount' | 'percentage';
|
|
@@ -114,8 +102,6 @@ declare module 'chargebee' {
|
|
|
114
102
|
|
|
115
103
|
apply_on:'invoice_amount' | 'specific_item_price';
|
|
116
104
|
|
|
117
|
-
apply_on_item_type?:'plan' | 'addon' | 'charge';
|
|
118
|
-
|
|
119
105
|
item_price_id?:string;
|
|
120
106
|
|
|
121
107
|
created_at:number;
|
|
@@ -142,6 +128,15 @@ declare module 'chargebee' {
|
|
|
142
128
|
price_in_decimal?:string;
|
|
143
129
|
|
|
144
130
|
ramp_tier_id?:string;
|
|
131
|
+
|
|
132
|
+
pricing_type?:'per_unit' | 'flat_fee' | 'package';
|
|
133
|
+
|
|
134
|
+
package_size?:number;
|
|
135
|
+
}
|
|
136
|
+
export interface CouponApplicabilityMapping {
|
|
137
|
+
coupon_id?:string;
|
|
138
|
+
|
|
139
|
+
applicable_item_price_ids?:string[];
|
|
145
140
|
}
|
|
146
141
|
}
|
|
147
142
|
}
|
|
@@ -1,63 +1,26 @@
|
|
|
1
1
|
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
2
3
|
declare module 'chargebee' {
|
|
3
4
|
export interface ResourceMigration {
|
|
4
5
|
|
|
5
|
-
/**
|
|
6
|
-
* @description Domain name to which the item is moved.
|
|
7
6
|
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
7
|
from_site:string;
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @description Type of the entity this record is stored for \* customer - Entity that represents a customer
|
|
14
8
|
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
9
|
entity_type:'customer';
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* @description Handle of the customer in the current site.
|
|
21
10
|
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
11
|
entity_id:string;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @description Status of the copy customer process. \* failed - Failed \* succeeded - Succeeded \* scheduled - Scheduled
|
|
28
12
|
|
|
29
|
-
*/
|
|
30
|
-
|
|
31
13
|
status:'scheduled' | 'failed' | 'succeeded';
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* @description Filled only if the copy operation gets failed
|
|
35
14
|
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
15
|
errors?:string;
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* @description Time the log is created
|
|
42
16
|
|
|
43
|
-
*/
|
|
44
|
-
|
|
45
17
|
created_at:number;
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* @description Time the log is updated
|
|
49
18
|
|
|
50
|
-
*/
|
|
51
|
-
|
|
52
19
|
updated_at:number;
|
|
20
|
+
|
|
53
21
|
}
|
|
54
22
|
export namespace ResourceMigration {
|
|
55
23
|
export class ResourceMigrationResource {
|
|
56
|
-
/**
|
|
57
|
-
* @description Gets the last migration details.
|
|
58
|
-
|
|
59
|
-
*/
|
|
60
|
-
|
|
61
24
|
retrieve_latest(input:RetrieveLatestInputParam):ChargebeeRequest<RetrieveLatestResponse>;
|
|
62
25
|
}
|
|
63
26
|
export interface RetrieveLatestResponse {
|
|
@@ -65,25 +28,10 @@ declare module 'chargebee' {
|
|
|
65
28
|
}
|
|
66
29
|
export interface RetrieveLatestInputParam {
|
|
67
30
|
|
|
68
|
-
/**
|
|
69
|
-
* @description Gets the last migration details.
|
|
70
|
-
|
|
71
|
-
*/
|
|
72
|
-
|
|
73
31
|
from_site:string;
|
|
74
32
|
|
|
75
|
-
/**
|
|
76
|
-
* @description Gets the last migration details.
|
|
77
|
-
|
|
78
|
-
*/
|
|
79
|
-
|
|
80
33
|
entity_type:'customer';
|
|
81
34
|
|
|
82
|
-
/**
|
|
83
|
-
* @description Gets the last migration details.
|
|
84
|
-
|
|
85
|
-
*/
|
|
86
|
-
|
|
87
35
|
entity_id:string;
|
|
88
36
|
}
|
|
89
37
|
|