chargebee 2.26.0 → 2.26.1

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.
Files changed (64) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/lib/chargebee.js +1 -1
  3. package/package.json +1 -1
  4. package/types/core.d.ts +1 -0
  5. package/types/resources/Address.d.ts +245 -5
  6. package/types/resources/AdvanceInvoiceSchedule.d.ts +78 -2
  7. package/types/resources/AttachedItem.d.ts +305 -13
  8. package/types/resources/Card.d.ts +485 -13
  9. package/types/resources/Comment.d.ts +177 -11
  10. package/types/resources/Contact.d.ts +54 -0
  11. package/types/resources/ContractTerm.d.ts +83 -0
  12. package/types/resources/Coupon.d.ts +665 -20
  13. package/types/resources/CouponCode.d.ts +56 -5
  14. package/types/resources/CouponSet.d.ts +224 -17
  15. package/types/resources/CreditNote.d.ts +1202 -44
  16. package/types/resources/CreditNoteEstimate.d.ts +75 -6
  17. package/types/resources/Customer.d.ts +2132 -73
  18. package/types/resources/DifferentialPrice.d.ts +266 -15
  19. package/types/resources/Discount.d.ts +107 -0
  20. package/types/resources/Download.d.ts +18 -0
  21. package/types/resources/EntitlementOverride.d.ts +101 -7
  22. package/types/resources/Estimate.d.ts +1181 -27
  23. package/types/resources/Event.d.ts +145 -8
  24. package/types/resources/Export.d.ts +703 -32
  25. package/types/resources/Feature.d.ts +356 -22
  26. package/types/resources/Gift.d.ts +351 -24
  27. package/types/resources/Hierarchy.d.ts +30 -0
  28. package/types/resources/HostedPage.d.ts +1212 -37
  29. package/types/resources/ImpactedItem.d.ts +41 -1
  30. package/types/resources/ImpactedSubscription.d.ts +36 -1
  31. package/types/resources/InAppSubscription.d.ts +636 -9
  32. package/types/resources/Invoice.d.ts +2293 -93
  33. package/types/resources/InvoiceEstimate.d.ts +75 -6
  34. package/types/resources/Item.d.ts +542 -16
  35. package/types/resources/ItemEntitlement.d.ts +172 -13
  36. package/types/resources/ItemFamily.d.ts +173 -15
  37. package/types/resources/ItemPrice.d.ts +971 -26
  38. package/types/resources/Media.d.ts +24 -0
  39. package/types/resources/NonSubscription.d.ts +51 -3
  40. package/types/resources/Order.d.ts +1224 -32
  41. package/types/resources/PaymentIntent.d.ts +318 -8
  42. package/types/resources/PaymentReferenceNumber.d.ts +24 -0
  43. package/types/resources/PaymentSource.d.ts +1259 -55
  44. package/types/resources/PaymentVoucher.d.ts +262 -14
  45. package/types/resources/PortalSession.d.ts +187 -10
  46. package/types/resources/PromotionalCredit.d.ts +351 -16
  47. package/types/resources/Purchase.d.ts +274 -5
  48. package/types/resources/Quote.d.ts +1595 -62
  49. package/types/resources/QuoteLineGroup.d.ts +134 -5
  50. package/types/resources/QuotedCharge.d.ts +63 -5
  51. package/types/resources/QuotedSubscription.d.ts +192 -5
  52. package/types/resources/ResourceMigration.d.ts +73 -3
  53. package/types/resources/SiteMigrationDetail.d.ts +98 -5
  54. package/types/resources/Subscription.d.ts +3462 -137
  55. package/types/resources/SubscriptionEntitlement.d.ts +116 -8
  56. package/types/resources/SubscriptionEstimate.d.ts +36 -2
  57. package/types/resources/TaxWithheld.d.ts +32 -0
  58. package/types/resources/ThirdPartyPaymentMethod.d.ts +24 -0
  59. package/types/resources/TimeMachine.d.ts +99 -7
  60. package/types/resources/Token.d.ts +179 -7
  61. package/types/resources/Transaction.d.ts +597 -25
  62. package/types/resources/UnbilledCharge.d.ts +355 -14
  63. package/types/resources/Usage.d.ts +259 -13
  64. package/types/resources/VirtualBankAccount.d.ts +255 -17
@@ -1,81 +1,416 @@
1
1
  ///<reference path='./../core.d.ts'/>
2
2
  declare module 'chargebee' {
3
3
  export interface PromotionalCredit {
4
+
5
+ /**
6
+ * @description Unique reference ID provided for promotional credits
7
+
8
+ */
9
+
4
10
  id:string;
11
+
12
+ /**
13
+ * @description Identifier of the customer.
14
+
15
+ */
16
+
5
17
  customer_id:string;
18
+
19
+ /**
20
+ * @description Type of promotional credits \* decrement - Decrement \* increment - Increment
21
+
22
+ */
23
+
6
24
  type:'decrement' | 'increment';
25
+
26
+ /**
27
+ * @description Amount in decimal
28
+
29
+ */
30
+
7
31
  amount_in_decimal?:string;
32
+
33
+ /**
34
+ * @description Promotional credits amount
35
+
36
+ */
37
+
8
38
  amount:number;
39
+
40
+ /**
41
+ * @description The currency code (ISO 4217 format) for promotional credit
42
+
43
+ */
44
+
9
45
  currency_code:string;
46
+
47
+ /**
48
+ * @description Detailed description of this promotional credits.
49
+
50
+ */
51
+
10
52
  description:string;
53
+
54
+ /**
55
+ * @description Type of promotional credits provided to customer \* referral_rewards - Referral \* loyalty_credits - Loyalty Credits \* general - General
56
+
57
+ */
58
+
11
59
  credit_type:CreditType;
60
+
61
+ /**
62
+ * @description Describes why promotional credits were provided
63
+
64
+ */
65
+
12
66
  reference?:string;
67
+
68
+ /**
69
+ * @description Closing balance as on end date.
70
+
71
+ */
72
+
13
73
  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
+
78
+ */
79
+
14
80
  done_by?:string;
81
+
82
+ /**
83
+ * @description Timestamp indicating when this promotional credit resource is created.
84
+
85
+ */
86
+
15
87
  created_at:number;
16
88
  }
17
89
  export namespace PromotionalCredit {
18
- export class PromotionalCreditResource {
90
+ export class PromotionalCreditResource {
91
+ /**
92
+ * @description This endpoint retrieves the promotional credit based on the promotional credit id
93
+
94
+ */
95
+
19
96
  retrieve(account_credit_id:string):ChargebeeRequest<RetrieveResponse>;
97
+
98
+ /**
99
+ * @description This endpoint lists the promotional credits set for a customer
100
+
101
+ */
102
+
20
103
  list(input?:ListInputParam):ChargebeeRequest<ListResponse>;
104
+
105
+ /**
106
+ * @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).
107
+
108
+ For example, if a customer has a credit balance of $20, if you pass the **amount** as $5, then the customer&#x27;s credit balance would become $15.
109
+
110
+ If you do not pass any amount as the input parameter then, it will deduct the whole available amount from the credit balance.
111
+
112
+ */
113
+
21
114
  deduct(input:DeductInputParam):ChargebeeRequest<DeductResponse>;
115
+
116
+ /**
117
+ * @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).
118
+
119
+ 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.
120
+
121
+ */
122
+
22
123
  set(input:SetInputParam):ChargebeeRequest<SetResponse>;
124
+
125
+ /**
126
+ * @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).
127
+
128
+ For example, if a customer has credits of $10, if you pass the **amount** as $10, then the customer&#x27;s credit balance would become $20.
129
+
130
+ */
131
+
23
132
  add(input:AddInputParam):ChargebeeRequest<AddResponse>;
24
133
  }
25
- export interface RetrieveResponse {
26
- promotional_credit:PromotionalCredit;
134
+ export interface RetrieveResponse {
135
+ /**
136
+ * @description This endpoint retrieves the promotional credit based on the promotional credit id
137
+
138
+ */
139
+
140
+ promotional_credit:PromotionalCredit;
27
141
  }
28
142
 
29
- export interface ListResponse {
30
- list:{promotional_credit:PromotionalCredit}[];
31
- next_offset?:string;
143
+ export interface ListResponse {
144
+ /**
145
+ * @description This endpoint lists the promotional credits set for a customer
146
+
147
+ */
148
+
149
+ list:{promotional_credit:PromotionalCredit}[];
150
+
151
+ /**
152
+ * @description This endpoint lists the promotional credits set for a customer
153
+
154
+ */
155
+
156
+ next_offset?:string;
32
157
  }
33
158
  export interface ListInputParam {
34
- [key : string]: any;
159
+ [key : string]: any;
160
+ /**
161
+ * @description The number of resources to be returned.
162
+
163
+ */
164
+
35
165
  limit?:number;
166
+
167
+ /**
168
+ * @description Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set \&#x60;offset\&#x60; to the value of \&#x60;next_offset\&#x60; obtained in the previous iteration of the API call.
169
+
170
+ */
171
+
36
172
  offset?:string;
173
+
174
+ /**
175
+ * @description Unique reference ID provided for promotional credits
176
+
177
+ */
178
+
37
179
  id?:{is?:string,is_not?:string,starts_with?:string};
180
+
181
+ /**
182
+ * @description Timestamp indicating when this promotional credit resource is created.
183
+
184
+ */
185
+
38
186
  created_at?:{after?:string,before?:string,between?:string,on?:string};
187
+
188
+ /**
189
+ * @description Type of promotional credits
190
+
191
+ */
192
+
39
193
  type?:{in?:string,is?:'decrement' | 'increment',is_not?:'decrement' | 'increment',not_in?:string};
194
+
195
+ /**
196
+ * @description Identifier of the customer.
197
+
198
+ */
199
+
40
200
  customer_id?:{is?:string,is_not?:string,starts_with?:string};
41
201
  }
42
- export interface DeductResponse {
43
- customer:Customer;
44
- promotional_credit:PromotionalCredit;
202
+ export interface DeductResponse {
203
+ /**
204
+ * @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).
205
+
206
+ For example, if a customer has a credit balance of $20, if you pass the **amount** as $5, then the customer&#x27;s credit balance would become $15.
207
+
208
+ If you do not pass any amount as the input parameter then, it will deduct the whole available amount from the credit balance.
209
+
210
+ */
211
+
212
+ customer:Customer;
213
+
214
+ /**
215
+ * @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).
216
+
217
+ For example, if a customer has a credit balance of $20, if you pass the **amount** as $5, then the customer&#x27;s credit balance would become $15.
218
+
219
+ If you do not pass any amount as the input parameter then, it will deduct the whole available amount from the credit balance.
220
+
221
+ */
222
+
223
+ promotional_credit:PromotionalCredit;
45
224
  }
46
225
  export interface DeductInputParam {
226
+
227
+ /**
228
+ * @description Identifier of the customer.
229
+
230
+ */
231
+
47
232
  customer_id:string;
233
+
234
+ /**
235
+ * @description Promotional credits amount.
236
+
237
+ */
238
+
48
239
  amount?:number;
240
+
241
+ /**
242
+ * @description Amount in decimal.
243
+
244
+ */
245
+
49
246
  amount_in_decimal?:string;
247
+
248
+ /**
249
+ * @description The currency code (ISO 4217 format) for promotional credit.
250
+
251
+ */
252
+
50
253
  currency_code?:string;
254
+
255
+ /**
256
+ * @description Detailed description of this promotional credits.
257
+
258
+ */
259
+
51
260
  description:string;
261
+
262
+ /**
263
+ * @description Type of promotional credits provided to customer. \* general - General \* referral_rewards - Referral \* loyalty_credits - Loyalty Credits
264
+
265
+ */
266
+
52
267
  credit_type?:CreditType;
268
+
269
+ /**
270
+ * @description Describes why promotional credits were provided.
271
+
272
+ */
273
+
53
274
  reference?:string;
54
275
  }
55
- export interface SetResponse {
56
- customer:Customer;
57
- promotional_credit:PromotionalCredit;
276
+ export interface SetResponse {
277
+ /**
278
+ * @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).
279
+
280
+ 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.
281
+
282
+ */
283
+
284
+ customer:Customer;
285
+
286
+ /**
287
+ * @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).
288
+
289
+ 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.
290
+
291
+ */
292
+
293
+ promotional_credit:PromotionalCredit;
58
294
  }
59
295
  export interface SetInputParam {
296
+
297
+ /**
298
+ * @description Identifier of the customer.
299
+
300
+ */
301
+
60
302
  customer_id:string;
303
+
304
+ /**
305
+ * @description Promotional credits amount.
306
+
307
+ */
308
+
61
309
  amount?:number;
310
+
311
+ /**
312
+ * @description Amount in decimal.
313
+
314
+ */
315
+
62
316
  amount_in_decimal?:string;
317
+
318
+ /**
319
+ * @description The currency code (ISO 4217 format) for promotional credit.
320
+
321
+ */
322
+
63
323
  currency_code?:string;
324
+
325
+ /**
326
+ * @description Detailed description of this promotional credits.
327
+
328
+ */
329
+
64
330
  description:string;
331
+
332
+ /**
333
+ * @description Type of promotional credits provided to customer. \* general - General \* referral_rewards - Referral \* loyalty_credits - Loyalty Credits
334
+
335
+ */
336
+
65
337
  credit_type?:CreditType;
338
+
339
+ /**
340
+ * @description Describes why promotional credits were provided.
341
+
342
+ */
343
+
66
344
  reference?:string;
67
345
  }
68
- export interface AddResponse {
69
- customer:Customer;
70
- promotional_credit:PromotionalCredit;
346
+ export interface AddResponse {
347
+ /**
348
+ * @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).
349
+
350
+ For example, if a customer has credits of $10, if you pass the **amount** as $10, then the customer&#x27;s credit balance would become $20.
351
+
352
+ */
353
+
354
+ customer:Customer;
355
+
356
+ /**
357
+ * @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).
358
+
359
+ For example, if a customer has credits of $10, if you pass the **amount** as $10, then the customer&#x27;s credit balance would become $20.
360
+
361
+ */
362
+
363
+ promotional_credit:PromotionalCredit;
71
364
  }
72
365
  export interface AddInputParam {
366
+
367
+ /**
368
+ * @description Identifier of the customer.
369
+
370
+ */
371
+
73
372
  customer_id:string;
373
+
374
+ /**
375
+ * @description Promotional credits amount.
376
+
377
+ */
378
+
74
379
  amount?:number;
380
+
381
+ /**
382
+ * @description Amount in decimal.
383
+
384
+ */
385
+
75
386
  amount_in_decimal?:string;
387
+
388
+ /**
389
+ * @description The currency code (ISO 4217 format) for promotional credit.
390
+
391
+ */
392
+
76
393
  currency_code?:string;
394
+
395
+ /**
396
+ * @description Detailed description of this promotional credits.
397
+
398
+ */
399
+
77
400
  description:string;
401
+
402
+ /**
403
+ * @description Type of promotional credits provided to customer. \* general - General \* referral_rewards - Referral \* loyalty_credits - Loyalty Credits
404
+
405
+ */
406
+
78
407
  credit_type?:CreditType;
408
+
409
+ /**
410
+ * @description Describes why promotional credits were provided.
411
+
412
+ */
413
+
79
414
  reference?:string;
80
415
  }
81
416