chargebee 2.50.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.
Files changed (68) hide show
  1. package/CHANGELOG.md +92 -0
  2. package/lib/chargebee.js +1 -1
  3. package/lib/resources/api_endpoints.js +37 -1
  4. package/package.json +1 -1
  5. package/types/core.d.ts +8 -5
  6. package/types/index.d.ts +3 -0
  7. package/types/resources/Address.d.ts +2 -194
  8. package/types/resources/AdvanceInvoiceSchedule.d.ts +5 -67
  9. package/types/resources/Attribute.d.ts +4 -1
  10. package/types/resources/BillingConfiguration.d.ts +21 -0
  11. package/types/resources/Brand.d.ts +12 -0
  12. package/types/resources/BusinessEntity.d.ts +8 -6
  13. package/types/resources/BusinessEntityTransfer.d.ts +10 -7
  14. package/types/resources/Card.d.ts +11 -311
  15. package/types/resources/Comment.d.ts +7 -124
  16. package/types/resources/Configuration.d.ts +2 -0
  17. package/types/resources/Contact.d.ts +2 -44
  18. package/types/resources/ContractTerm.d.ts +4 -72
  19. package/types/resources/Coupon.d.ts +0 -37
  20. package/types/resources/CouponCode.d.ts +67 -35
  21. package/types/resources/CouponSet.d.ts +12 -121
  22. package/types/resources/CreditNote.d.ts +2 -6
  23. package/types/resources/CreditNoteEstimate.d.ts +1 -1
  24. package/types/resources/Currency.d.ts +8 -5
  25. package/types/resources/Customer.d.ts +90 -89
  26. package/types/resources/Discount.d.ts +2 -89
  27. package/types/resources/Download.d.ts +2 -14
  28. package/types/resources/Entitlement.d.ts +15 -103
  29. package/types/resources/EntitlementOverride.d.ts +4 -89
  30. package/types/resources/Estimate.d.ts +6 -10
  31. package/types/resources/Event.d.ts +23 -108
  32. package/types/resources/Export.d.ts +116 -432
  33. package/types/resources/Feature.d.ts +17 -319
  34. package/types/resources/GatewayErrorDetail.d.ts +6 -48
  35. package/types/resources/Gift.d.ts +34 -294
  36. package/types/resources/Hierarchy.d.ts +4 -24
  37. package/types/resources/ImpactedItem.d.ts +4 -36
  38. package/types/resources/ImpactedItemPrice.d.ts +5 -2
  39. package/types/resources/ImpactedSubscription.d.ts +3 -30
  40. package/types/resources/InAppSubscription.d.ts +13 -355
  41. package/types/resources/Invoice.d.ts +26 -18
  42. package/types/resources/InvoiceEstimate.d.ts +1 -1
  43. package/types/resources/Item.d.ts +4 -9
  44. package/types/resources/ItemEntitlement.d.ts +15 -155
  45. package/types/resources/NonSubscription.d.ts +9 -6
  46. package/types/resources/OmnichannelSubscriptionItem.d.ts +9 -0
  47. package/types/resources/PaymentIntent.d.ts +9 -255
  48. package/types/resources/PaymentReferenceNumber.d.ts +3 -20
  49. package/types/resources/PaymentSource.d.ts +2 -2
  50. package/types/resources/PaymentVoucher.d.ts +20 -203
  51. package/types/resources/PortalSession.d.ts +4 -146
  52. package/types/resources/PromotionalCredit.d.ts +10 -215
  53. package/types/resources/Purchase.d.ts +3 -1
  54. package/types/resources/Quote.d.ts +68 -18
  55. package/types/resources/QuoteLineGroup.d.ts +1 -1
  56. package/types/resources/QuotedRamp.d.ts +142 -0
  57. package/types/resources/RecordedPurchase.d.ts +2 -0
  58. package/types/resources/ResourceMigration.d.ts +2 -54
  59. package/types/resources/SiteMigrationDetail.d.ts +13 -55
  60. package/types/resources/Subscription.d.ts +13 -9
  61. package/types/resources/SubscriptionEntitlement.d.ts +6 -106
  62. package/types/resources/SubscriptionEstimate.d.ts +14 -11
  63. package/types/resources/TaxWithheld.d.ts +14 -26
  64. package/types/resources/ThirdPartyPaymentMethod.d.ts +2 -19
  65. package/types/resources/TimeMachine.d.ts +3 -64
  66. package/types/resources/Token.d.ts +3 -60
  67. package/types/resources/Transaction.d.ts +2 -2
  68. package/types/resources/Usage.d.ts +21 -165
@@ -1,126 +1,46 @@
1
1
  ///<reference path='./../core.d.ts'/>
2
+ ///<reference path='./../index.d.ts'/>
2
3
  declare module 'chargebee' {
3
4
  export interface Gift {
4
5
 
5
- /**
6
- * @description Uniquely identifies a gift
7
6
 
8
- */
9
-
10
7
  id:string;
11
-
12
- /**
13
- * @description Status of the gift. \* claimed - Gift is claimed. \* cancelled - Gift is cancelled. \* unclaimed - Gift is not yet claimed and is ready to be claimed. \* scheduled - Gift has been scheduled. \* expired - Gift is expired.
14
8
 
15
- */
16
-
17
- status:'expired' | 'scheduled' | 'unclaimed' | 'claimed' | 'cancelled';
18
-
19
- /**
20
- * @description Indicates the date on which the gift notification is sent to the receiver. If not passed, the receiver is notified immediately.
9
+ status:'scheduled' | 'unclaimed' | 'claimed' | 'cancelled' | 'expired';
21
10
 
22
- */
23
-
24
11
  scheduled_at?:number;
25
-
26
- /**
27
- * @description When &#x60;true&#x60;, the claim happens automatically. When not passed, the default value in the site settings is used.
28
12
 
29
- */
30
-
31
13
  auto_claim:boolean;
32
-
33
- /**
34
- * @description When &#x60;true&#x60;, indicates that the gift does not expire. Do not pass or pass as &#x60;false&#x60; when &#x60;auto_claim&#x60; is set.
35
14
 
36
- */
37
-
38
15
  no_expiry:boolean;
39
-
40
- /**
41
- * @description The date until which the gift can be claimed. Must be set to a value after &#x60;scheduled_at&#x60;. If the gift is not claimed within &#x60;claim_expiry_date&#x60;, it will expire and the subscription will move to &#x60;cancelled&#x60; state. When not passed, the value specified in the site settings will be used. Pass as &#x60;NULL&#x60; or do not pass when &#x60;auto_claim&#x60; or &#x60;no_expiry&#x60; are set.
42
16
 
43
- */
44
-
45
17
  claim_expiry_date?:number;
46
-
47
- /**
48
- * @description Version number of this resource. The &#x60;resource_version&#x60; is updated with a new timestamp in milliseconds for every change made to the resource. This attribute will be present only if the resource has been updated after 2016-09-28.
49
18
 
50
- */
51
-
52
19
  resource_version?:number;
53
-
54
- /**
55
- * @description Timestamp indicating when this gift resource was last updated.
56
20
 
57
- */
58
-
59
21
  updated_at?:number;
60
-
61
- /**
62
- * @description Gifter details
63
22
 
64
- */
65
-
66
23
  gifter:Gift.Gifter;
67
-
68
- /**
69
- * @description Receiver details
70
24
 
71
- */
72
-
73
25
  gift_receiver:Gift.GiftReceiver;
74
-
75
- /**
76
- * @description Gift timeline details
77
26
 
78
- */
79
-
80
27
  gift_timelines?:Gift.GiftTimeline[];
28
+
81
29
  }
82
30
  export namespace Gift {
83
31
  export class GiftResource {
84
- /**
85
- * @description Create a gift subscription with items like plans, addons, or charges and gift it to an existing customer.
86
-
87
- */
88
-
89
- create_for_items(input?:CreateForItemsInputParam):ChargebeeRequest<CreateForItemsResponse>;
32
+ create(input:CreateInputParam):ChargebeeRequest<CreateResponse>;
33
+
34
+ create_for_items(input:CreateForItemsInputParam):ChargebeeRequest<CreateForItemsResponse>;
90
35
 
91
- /**
92
- * @description Retrieves a gift subscription. This API accepts the gift &#x27;id&#x27; and returns the gift along with the subscription.
93
-
94
- */
95
-
96
36
  retrieve(gift_id:string):ChargebeeRequest<RetrieveResponse>;
97
37
 
98
- /**
99
- * @description Retrieves the list of gifts.
100
-
101
- */
102
-
103
38
  list(input?:ListInputParam):ChargebeeRequest<ListResponse>;
104
39
 
105
- /**
106
- * @description Claiming a gift will move the status to &#x27;claimed&#x27;. Only gifts in &#x27;unclaimed&#x27; state can be claimed.
107
-
108
- */
109
-
110
40
  claim(gift_id:string):ChargebeeRequest<ClaimResponse>;
111
41
 
112
- /**
113
- * @description This API allows to cancel gifts. Only gift in &#x27;scheduled&#x27; and &#x27;unclaimed&#x27; states can be cancelled.
114
-
115
- */
116
-
117
42
  cancel(gift_id:string):ChargebeeRequest<CancelResponse>;
118
43
 
119
- /**
120
- * @description Change the date/time at which the gift notification email is to be sent. This only applies to gifts in the scheduled [status](https://apidocs.chargebee.com/docs/api/gifts#gift_status).
121
-
122
- */
123
-
124
44
  update_gift(gift_id:string, input:UpdateGiftInputParam):ChargebeeRequest<UpdateGiftResponse>;
125
45
  }
126
46
  export interface CreateResponse {
@@ -132,82 +52,27 @@ declare module 'chargebee' {
132
52
  }
133
53
  export interface CreateInputParam {
134
54
 
135
- /**
136
- * @description Indicates the date on which the gift notification is sent to the receiver. If not passed, the receiver is notified immediately.
137
-
138
- */
139
-
140
- scheduled_at?:number;
141
-
142
- /**
143
- * @description When &#x60;true&#x60;, the claim happens automatically. When not passed, the default value in the site settings is used.
144
-
145
- */
146
-
147
- auto_claim?:boolean;
148
-
149
- /**
150
- * @description When &#x60;true&#x60;, indicates that the gift does not expire. Do not pass or pass as &#x60;false&#x60; when &#x60;auto_claim&#x60; is set. .
151
-
152
- */
153
-
154
- no_expiry?:boolean;
155
-
156
- /**
157
- * @description The date until which the gift can be claimed. Must be set to a value after &#x60;scheduled_at&#x60;. If the gift is not claimed within &#x60;claim_expiry_date&#x60;, it will expire and the subscription will move to &#x60;cancelled&#x60; state. When not passed, the value specified in the site settings will be used. Pass as &#x60;NULL&#x60; or do not pass when &#x60;auto_claim&#x60; or &#x60;no_expiry&#x60; are set.
158
-
159
- */
160
-
161
- claim_expiry_date?:number;
162
-
163
- /**
164
- * @description List of coupons to be applied to this subscription. You can provide coupon ids or coupon codes.
165
-
166
- */
167
-
168
- coupon_ids?:string[];
169
-
170
- /**
171
- * @description Parameters for gifter
172
-
173
- */
174
-
175
55
  gifter:{customer_id:string,note?:string,payment_src_id?:string,signature:string};
176
56
 
177
- /**
178
- * @description Parameters for gift_receiver
179
-
180
- */
181
-
182
57
  gift_receiver:{customer_id:string,email:string,first_name:string,last_name:string};
183
58
 
184
- /**
185
- * @description Parameters for payment_intent
186
-
187
- */
59
+ 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};
188
60
 
189
- payment_intent?:{additional_information?:object,gateway_account_id?:string,gw_token?:string,id?:string,payment_method_type?:'giropay' | 'ideal' | 'sepa_instant_transfer' | 'google_pay' | 'netbanking_emandates' | 'klarna_pay_now' | 'dotpay' | 'boleto' | 'direct_debit' | 'faster_payments' | 'sofort' | 'upi' | 'venmo' | 'amazon_payments' | 'apple_pay' | 'bancontact' | 'paypal_express_checkout' | 'pay_to' | 'card',reference_id?:string};
61
+ 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};
190
62
 
191
- /**
192
- * @description Parameters for shipping_address
193
-
194
- */
63
+ subscription:object;
195
64
 
196
- 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};
65
+ addons?:{id?:string,quantity?:number,quantity_in_decimal?:string}[];
197
66
 
198
- /**
199
- * @description Parameters for subscription
200
-
201
- */
67
+ scheduled_at?:number;
202
68
 
203
- subscription:object;
69
+ auto_claim?:boolean;
204
70
 
205
- /**
206
- * @description Parameters for addons
207
-
208
- */
71
+ no_expiry?:boolean;
209
72
 
210
- addons?:{id?:string,quantity?:number,quantity_in_decimal?:string}[];
73
+ claim_expiry_date?:number;
74
+
75
+ coupon_ids?:string[];
211
76
  }
212
77
  export interface CreateForItemsResponse {
213
78
  gift:Gift;
@@ -218,75 +83,25 @@ declare module 'chargebee' {
218
83
  }
219
84
  export interface CreateForItemsInputParam {
220
85
 
221
- /**
222
- * @description Indicates the date on which the gift notification is sent to the receiver. If not passed, the receiver is notified immediately.
223
-
224
- */
86
+ gifter:{customer_id:string,note?:string,payment_src_id?:string,signature:string};
225
87
 
226
- scheduled_at?:number;
88
+ gift_receiver:{customer_id:string,email:string,first_name:string,last_name:string};
227
89
 
228
- /**
229
- * @description When &#x60;true&#x60;, the claim happens automatically. When not passed, the default value in the site settings is used.
230
-
231
- */
90
+ 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};
232
91
 
233
- auto_claim?:boolean;
92
+ 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};
234
93
 
235
- /**
236
- * @description When &#x60;true&#x60;, indicates that the gift does not expire. Do not pass or pass as &#x60;false&#x60; when &#x60;auto_claim&#x60; is set. .
237
-
238
- */
94
+ subscription_items?:{item_price_id?:string,quantity?:number,quantity_in_decimal?:string}[];
239
95
 
240
- no_expiry?:boolean;
96
+ scheduled_at?:number;
241
97
 
242
- /**
243
- * @description The date until which the gift can be claimed. Must be set to a value after &#x60;scheduled_at&#x60;. If the gift is not claimed within &#x60;claim_expiry_date&#x60;, it will expire and the subscription will move to &#x60;cancelled&#x60; state. When not passed, the value specified in the site settings will be used. Pass as &#x60;NULL&#x60; or do not pass when &#x60;auto_claim&#x60; or &#x60;no_expiry&#x60; are set.
244
-
245
- */
98
+ auto_claim?:boolean;
246
99
 
247
- claim_expiry_date?:number;
100
+ no_expiry?:boolean;
248
101
 
249
- /**
250
- * @description List of coupons to be applied to this subscription. You can provide coupon ids or coupon codes.
251
-
252
- */
102
+ claim_expiry_date?:number;
253
103
 
254
104
  coupon_ids?:string[];
255
-
256
- /**
257
- * @description Parameters for gifter
258
-
259
- */
260
-
261
- gifter?:{customer_id:string,note?:string,payment_src_id?:string,signature:string};
262
-
263
- /**
264
- * @description Parameters for gift_receiver
265
-
266
- */
267
-
268
- gift_receiver?:{customer_id:string,email:string,first_name:string,last_name:string};
269
-
270
- /**
271
- * @description Parameters for payment_intent
272
-
273
- */
274
-
275
- payment_intent?:{additional_information?:object,gateway_account_id?:string,gw_token?:string,id?:string,payment_method_type?:'giropay' | 'ideal' | 'sepa_instant_transfer' | 'google_pay' | 'netbanking_emandates' | 'klarna_pay_now' | 'dotpay' | 'boleto' | 'direct_debit' | 'faster_payments' | 'sofort' | 'upi' | 'venmo' | 'amazon_payments' | 'apple_pay' | 'bancontact' | 'paypal_express_checkout' | 'pay_to' | 'card',reference_id?:string};
276
-
277
- /**
278
- * @description Parameters for shipping_address
279
-
280
- */
281
-
282
- 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};
283
-
284
- /**
285
- * @description Parameters for subscription_items
286
-
287
- */
288
-
289
- subscription_items?:{item_price_id?:string,quantity?:number,quantity_in_decimal?:string}[];
290
105
  }
291
106
  export interface RetrieveResponse {
292
107
  gift:Gift;
@@ -295,56 +110,46 @@ declare module 'chargebee' {
295
110
  }
296
111
 
297
112
  export interface ListResponse {
298
- /**
299
- * @description Retrieves the list of gifts.
300
-
301
- */
302
-
303
113
  list:{gift:Gift,subscription:Subscription}[];
304
114
 
305
- /**
306
- * @description Retrieves the list of gifts.
307
-
308
- */
309
-
310
115
  next_offset?:string;
311
116
  }
312
117
  export interface ListInputParam {
313
118
  [key : string]: any;
314
119
  /**
315
- * @description Retrieves the list of gifts.
120
+ * @description The number of resources to be returned.
316
121
 
317
122
  */
318
123
 
319
124
  limit?:number;
320
125
 
321
126
  /**
322
- * @description Retrieves the list of gifts.
127
+ * @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.
323
128
 
324
129
  */
325
130
 
326
131
  offset?:string;
327
132
 
328
133
  /**
329
- * @description Retrieves the list of gifts.
134
+ * @description Parameters for gift_receiver
330
135
 
331
136
  */
332
137
 
333
- status?:{in?:string,is?:'expired' | 'scheduled' | 'unclaimed' | 'claimed' | 'cancelled',is_not?:'expired' | 'scheduled' | 'unclaimed' | 'claimed' | 'cancelled',not_in?:string};
138
+ gift_receiver?:{customer_id?:{is?:string,is_not?:string,starts_with?:string},email?:{is?:string,is_not?:string,starts_with?:string}};
334
139
 
335
140
  /**
336
- * @description Retrieves the list of gifts.
141
+ * @description Parameters for gifter
337
142
 
338
143
  */
339
144
 
340
- gift_receiver?:{customer_id?:{is?:string,is_not?:string,starts_with?:string},email?:{is?:string,is_not?:string,starts_with?:string}};
145
+ gifter?:{customer_id?:{is?:string,is_not?:string,starts_with?:string}};
341
146
 
342
147
  /**
343
- * @description Retrieves the list of gifts.
148
+ * @description Status of the gift.
344
149
 
345
150
  */
346
151
 
347
- gifter?:{customer_id?:{is?:string,is_not?:string,starts_with?:string}};
152
+ status?:{in?:string,is?:'scheduled' | 'unclaimed' | 'claimed' | 'cancelled' | 'expired',is_not?:'scheduled' | 'unclaimed' | 'claimed' | 'cancelled' | 'expired',not_in?:string};
348
153
  }
349
154
  export interface ClaimResponse {
350
155
  gift:Gift;
@@ -365,97 +170,32 @@ declare module 'chargebee' {
365
170
  }
366
171
  export interface UpdateGiftInputParam {
367
172
 
368
- /**
369
- * @description The new date/time at which the gift notification email is to be sent. The value must be greater than current time. If [no_expiry](https://apidocs.chargebee.com/docs/api/gifts#gift_no_expiry) is false then the value must also be less than [claim_expiry_date](https://apidocs.chargebee.com/docs/api/gifts#gift_claim_expiry_date).
370
-
371
- */
372
-
373
173
  scheduled_at:number;
374
174
 
375
- /**
376
- * @description An internal comment for this action. The comments are not retrievable via API and are only available on request via [Chargebee Support](https://chargebee.freshdesk.com/support/home).
377
-
378
- */
379
-
380
175
  comment?:string;
381
176
  }
382
177
  export interface Gifter {
383
- /**
384
- * @description Gifter customer id.
385
-
386
- */
387
-
388
178
  customer_id:string;
389
179
 
390
- /**
391
- * @description Invoice raised on the gifter.
392
-
393
- */
394
-
395
180
  invoice_id?:string;
396
181
 
397
- /**
398
- * @description Gifter sign-off name
399
-
400
- */
401
-
402
182
  signature?:string;
403
183
 
404
- /**
405
- * @description Personalized message for the gift.
406
-
407
- */
408
-
409
184
  note?:string;
410
185
  }
411
186
  export interface GiftReceiver {
412
- /**
413
- * @description Receiver customer id.
414
-
415
- */
416
-
417
187
  customer_id:string;
418
188
 
419
- /**
420
- * @description Subscription created for the gift.
421
-
422
- */
423
-
424
189
  subscription_id:string;
425
190
 
426
- /**
427
- * @description First name of the receiver as given by the gifter.
428
-
429
- */
430
-
431
191
  first_name?:string;
432
192
 
433
- /**
434
- * @description Last name of the receiver as given by the gifter,
435
-
436
- */
437
-
438
193
  last_name?:string;
439
194
 
440
- /**
441
- * @description Email of the receiver. All gift related emails are sent to this email.
442
-
443
- */
444
-
445
195
  email?:string;
446
196
  }
447
197
  export interface GiftTimeline {
448
- /**
449
- * @description Status of the gift. \* cancelled - Gift is cancelled. \* expired - Gift is expired. \* scheduled - Gift has been scheduled. \* claimed - Gift is claimed. \* unclaimed - Gift is not yet claimed and is ready to be claimed.
450
-
451
- */
452
-
453
- status:'expired' | 'scheduled' | 'unclaimed' | 'claimed' | 'cancelled';
454
-
455
- /**
456
- * @description Timestamp indicating when this event occurred.
457
-
458
- */
198
+ status:'scheduled' | 'unclaimed' | 'claimed' | 'cancelled' | 'expired';
459
199
 
460
200
  occurred_at?:number;
461
201
  }
@@ -1,40 +1,20 @@
1
1
  ///<reference path='./../core.d.ts'/>
2
+ ///<reference path='./../index.d.ts'/>
2
3
  declare module 'chargebee' {
3
4
  export interface Hierarchy {
4
5
 
5
- /**
6
- * @description The &#x60;id&#x60; of the customer associated with this &#x60;hierarchy&#x60; resource.
7
6
 
8
- */
9
-
10
7
  customer_id:string;
11
-
12
- /**
13
- * @description The &#x60;id&#x60; of the immediate parent for the customer identified by &#x60;customer_id&#x60;. If the customer is the root of the hierarchy, this attribute isn&#x27;t returned.
14
8
 
15
- */
16
-
17
9
  parent_id?:string;
18
-
19
- /**
20
- * @description The &#x60;id&#x60; of the customer responsible for paying the invoices for the customer identified by &#x60;customer_id&#x60;. This ID must match either &#x60;customer_id&#x60; or &#x60;invoice_owner_id&#x60;.
21
10
 
22
- */
23
-
24
11
  payment_owner_id:string;
25
-
26
- /**
27
- * @description The &#x60;id&#x60; of the customer who receives the invoice for charges incurred by the customer identified by &#x60;customer_id&#x60;. This ID must match either &#x60;customer_id&#x60; or one of its ancestors.
28
12
 
29
- */
30
-
31
13
  invoice_owner_id:string;
32
-
33
- /**
34
- * @description A list of &#x60;id&#x60;s representing the immediate children, if any exist, for the customer identified by &#x60;customer_id&#x60;.
35
14
 
36
- */
37
-
15
+ has_children?:boolean;
16
+
38
17
  children_ids?:string[];
18
+
39
19
  }
40
20
  }
@@ -1,55 +1,23 @@
1
1
  ///<reference path='./../core.d.ts'/>
2
+ ///<reference path='./../index.d.ts'/>
2
3
  declare module 'chargebee' {
3
4
  export interface ImpactedItem {
4
5
 
5
- /**
6
- * @description The total number of items that have been impacted.
7
6
 
8
- */
9
-
10
7
  count?:number;
11
-
12
- /**
13
- * @description The list of items that have been impacted. The objects in this array have the following keys:
14
8
 
15
- * &#x60;id&#x60;: (string, max chars &#x3D; 100) The [unique identifier](/docs/api/items#item_id) for the item.
16
- * &#x60;type&#x60;: (enumerated string) The [type](/docs/api/items#item_type) of the item.
17
-
18
- This list can contain a maximum of 1,000 items. The full list of items is available in &#x60;download&#x60;.
9
+ download?:ImpactedItem.Download;
19
10
 
20
- */
21
-
22
11
  items?:any[];
23
-
24
- /**
25
- * @description The [download](/docs/api/downloads) resource containing all the impacted items. The list of items is available as a JSON array in the file at &#x60;download.url&#x60; until &#x60;download.valid_till&#x60;.
26
12
 
27
- */
28
-
29
- download?:ImpactedItem.Download;
30
13
  }
31
14
  export namespace ImpactedItem {
32
15
 
33
16
 
34
17
  export interface Download {
35
- /**
36
- * @description The URL at which the file is available for download.
37
-
38
- */
18
+ download_url:string;
39
19
 
40
- download_url?:string;
41
-
42
- /**
43
- * @description The time until which the &#x60;download_url&#x60; is valid.
44
-
45
- */
46
-
47
- valid_till?:number;
48
-
49
- /**
50
- * @description The [media type](https://en.wikipedia.org/wiki/Media_type) of the file.
51
-
52
- */
20
+ valid_till:number;
53
21
 
54
22
  mime_type?:string;
55
23
  }
@@ -1,12 +1,15 @@
1
1
  ///<reference path='./../core.d.ts'/>
2
+ ///<reference path='./../index.d.ts'/>
2
3
  declare module 'chargebee' {
3
4
  export interface ImpactedItemPrice {
4
5
 
6
+
5
7
  count?:number;
6
-
8
+
7
9
  download?:ImpactedItemPrice.Download;
8
-
10
+
9
11
  item_prices?:any[];
12
+
10
13
  }
11
14
  export namespace ImpactedItemPrice {
12
15
 
@@ -1,51 +1,24 @@
1
1
  ///<reference path='./../core.d.ts'/>
2
+ ///<reference path='./../index.d.ts'/>
2
3
  declare module 'chargebee' {
3
4
  export interface ImpactedSubscription {
4
5
 
5
- /**
6
- * @description The total count of affected subscriptions.
7
6
 
8
- */
9
-
10
7
  count?:number;
11
-
12
- /**
13
- * @description The impacted subscription IDs. This list contains up to 1,000 IDs. The complete list of subscription IDs is in the &#x60;download&#x60; resource, which can store up to 100,000 IDs.
14
8
 
15
- */
16
-
9
+ download?:ImpactedSubscription.Download;
10
+
17
11
  subscription_ids?:any[];
18
-
19
- /**
20
- * @description This [download](downloads) resource contains the impacted subscription IDs. These IDs are in a JSON array in the file at &#x60;download.url&#x60; until &#x60;download.valid_till&#x60;. The file at this URL stores up to 100,000 subscription IDs. [Contact Support](https://support.chargebee.com/support/home) to increase this limit for your Chargebee site.
21
12
 
22
- */
23
-
24
- download?:ImpactedSubscription.Download;
25
13
  }
26
14
  export namespace ImpactedSubscription {
27
15
 
28
16
 
29
17
  export interface Download {
30
- /**
31
- * @description The download URL for the file.
32
-
33
- */
34
-
35
18
  download_url:string;
36
19
 
37
- /**
38
- * @description The expiration time for the &#x60;download_url&#x60;.
39
-
40
- */
41
-
42
20
  valid_till:number;
43
21
 
44
- /**
45
- * @description The [media type](https://en.wikipedia.org/wiki/Media_type) of the file.
46
-
47
- */
48
-
49
22
  mime_type?:string;
50
23
  }
51
24
  }