chargebee 2.25.3 → 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.
- package/CHANGELOG.md +35 -0
- package/README.md +55 -49
- package/lib/chargebee.js +1 -1
- package/package.json +1 -1
- package/types/core.d.ts +1 -0
- package/types/resources/Address.d.ts +245 -5
- package/types/resources/AdvanceInvoiceSchedule.d.ts +78 -2
- package/types/resources/AttachedItem.d.ts +305 -13
- package/types/resources/Card.d.ts +485 -13
- package/types/resources/Comment.d.ts +177 -11
- package/types/resources/Contact.d.ts +54 -0
- package/types/resources/ContractTerm.d.ts +83 -0
- package/types/resources/Coupon.d.ts +665 -20
- package/types/resources/CouponCode.d.ts +56 -5
- package/types/resources/CouponSet.d.ts +224 -17
- package/types/resources/CreditNote.d.ts +1202 -44
- package/types/resources/CreditNoteEstimate.d.ts +75 -6
- package/types/resources/Customer.d.ts +2132 -73
- package/types/resources/DifferentialPrice.d.ts +266 -15
- package/types/resources/Discount.d.ts +107 -0
- package/types/resources/Download.d.ts +18 -0
- package/types/resources/EntitlementOverride.d.ts +101 -7
- package/types/resources/Estimate.d.ts +1181 -27
- package/types/resources/Event.d.ts +145 -8
- package/types/resources/Export.d.ts +703 -32
- package/types/resources/Feature.d.ts +356 -22
- package/types/resources/Gift.d.ts +351 -24
- package/types/resources/Hierarchy.d.ts +30 -0
- package/types/resources/HostedPage.d.ts +1212 -37
- package/types/resources/ImpactedItem.d.ts +41 -1
- package/types/resources/ImpactedSubscription.d.ts +36 -1
- package/types/resources/InAppSubscription.d.ts +636 -9
- package/types/resources/Invoice.d.ts +2293 -93
- package/types/resources/InvoiceEstimate.d.ts +75 -6
- package/types/resources/Item.d.ts +542 -16
- package/types/resources/ItemEntitlement.d.ts +172 -13
- package/types/resources/ItemFamily.d.ts +173 -15
- package/types/resources/ItemPrice.d.ts +971 -26
- package/types/resources/Media.d.ts +24 -0
- package/types/resources/NonSubscription.d.ts +51 -3
- package/types/resources/Order.d.ts +1224 -32
- package/types/resources/PaymentIntent.d.ts +318 -8
- package/types/resources/PaymentReferenceNumber.d.ts +24 -0
- package/types/resources/PaymentSource.d.ts +1259 -55
- package/types/resources/PaymentVoucher.d.ts +262 -14
- package/types/resources/PortalSession.d.ts +187 -10
- package/types/resources/PromotionalCredit.d.ts +351 -16
- package/types/resources/Purchase.d.ts +274 -5
- package/types/resources/Quote.d.ts +1595 -62
- package/types/resources/QuoteLineGroup.d.ts +134 -5
- package/types/resources/QuotedCharge.d.ts +63 -5
- package/types/resources/QuotedSubscription.d.ts +192 -5
- package/types/resources/ResourceMigration.d.ts +73 -3
- package/types/resources/SiteMigrationDetail.d.ts +98 -5
- package/types/resources/Subscription.d.ts +3462 -137
- package/types/resources/SubscriptionEntitlement.d.ts +116 -8
- package/types/resources/SubscriptionEstimate.d.ts +36 -2
- package/types/resources/TaxWithheld.d.ts +32 -0
- package/types/resources/ThirdPartyPaymentMethod.d.ts +24 -0
- package/types/resources/TimeMachine.d.ts +99 -7
- package/types/resources/Token.d.ts +179 -7
- package/types/resources/Transaction.d.ts +597 -25
- package/types/resources/UnbilledCharge.d.ts +355 -14
- package/types/resources/Usage.d.ts +259 -13
- package/types/resources/VirtualBankAccount.d.ts +255 -17
|
@@ -1,94 +1,421 @@
|
|
|
1
1
|
///<reference path='./../core.d.ts'/>
|
|
2
2
|
declare module 'chargebee' {
|
|
3
3
|
export interface Gift {
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @description Uniquely identifies a gift
|
|
7
|
+
|
|
8
|
+
*/
|
|
9
|
+
|
|
4
10
|
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
|
+
|
|
15
|
+
*/
|
|
16
|
+
|
|
5
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.
|
|
21
|
+
|
|
22
|
+
*/
|
|
23
|
+
|
|
6
24
|
scheduled_at?:number;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @description When `true`, the claim happens automatically. When not passed, the default value in the site settings is used.
|
|
28
|
+
|
|
29
|
+
*/
|
|
30
|
+
|
|
7
31
|
auto_claim:boolean;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @description When `true`, indicates that the gift does not expire. Do not pass or pass as `false` when `auto_claim` is set.
|
|
35
|
+
|
|
36
|
+
*/
|
|
37
|
+
|
|
8
38
|
no_expiry:boolean;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @description The date until which the gift can be claimed. Must be set to a value after `scheduled_at`. If the gift is not claimed within `claim_expiry_date`, it will expire and the subscription will move to `cancelled` state. When not passed, the value specified in the site settings will be used. Pass as `NULL` or do not pass when `auto_claim` or `no_expiry` are set.
|
|
42
|
+
|
|
43
|
+
*/
|
|
44
|
+
|
|
9
45
|
claim_expiry_date?:number;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @description Version number of this resource. The `resource_version` 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
|
+
|
|
50
|
+
*/
|
|
51
|
+
|
|
10
52
|
resource_version?:number;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @description Timestamp indicating when this gift resource was last updated.
|
|
56
|
+
|
|
57
|
+
*/
|
|
58
|
+
|
|
11
59
|
updated_at?:number;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @description Gifter details
|
|
63
|
+
|
|
64
|
+
*/
|
|
65
|
+
|
|
12
66
|
gifter:Gift.Gifter;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* @description Receiver details
|
|
70
|
+
|
|
71
|
+
*/
|
|
72
|
+
|
|
13
73
|
gift_receiver:Gift.GiftReceiver;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @description Gift timeline details
|
|
77
|
+
|
|
78
|
+
*/
|
|
79
|
+
|
|
14
80
|
gift_timelines?:Gift.GiftTimeline[];
|
|
15
81
|
}
|
|
16
82
|
export namespace Gift {
|
|
17
|
-
export class GiftResource {
|
|
83
|
+
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
|
+
|
|
18
89
|
create_for_items(input?:CreateForItemsInputParam):ChargebeeRequest<CreateForItemsResponse>;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @description This API allows to cancel gifts. Only gift in 'scheduled' and 'unclaimed' states can be cancelled.
|
|
93
|
+
|
|
94
|
+
*/
|
|
95
|
+
|
|
19
96
|
cancel(gift_id:string):ChargebeeRequest<CancelResponse>;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* @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).
|
|
100
|
+
|
|
101
|
+
*/
|
|
102
|
+
|
|
20
103
|
update_gift(gift_id:string, input:UpdateGiftInputParam):ChargebeeRequest<UpdateGiftResponse>;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* @description Retrieves the list of gifts.
|
|
107
|
+
|
|
108
|
+
*/
|
|
109
|
+
|
|
21
110
|
list(input?:ListInputParam):ChargebeeRequest<ListResponse>;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* @description Retrieves a gift subscription. This API accepts the gift 'id' and returns the gift along with the subscription.
|
|
114
|
+
|
|
115
|
+
*/
|
|
116
|
+
|
|
22
117
|
retrieve(gift_id:string):ChargebeeRequest<RetrieveResponse>;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* @description Claiming a gift will move the status to 'claimed'. Only gifts in 'unclaimed' state can be claimed.
|
|
121
|
+
|
|
122
|
+
*/
|
|
123
|
+
|
|
23
124
|
claim(gift_id:string):ChargebeeRequest<ClaimResponse>;
|
|
24
125
|
}
|
|
25
|
-
export interface CreateForItemsResponse {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
126
|
+
export interface CreateForItemsResponse {
|
|
127
|
+
/**
|
|
128
|
+
* @description Create a gift subscription with items like plans, addons, or charges and gift it to an existing customer.
|
|
129
|
+
|
|
130
|
+
*/
|
|
131
|
+
|
|
132
|
+
gift:Gift;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* @description Create a gift subscription with items like plans, addons, or charges and gift it to an existing customer.
|
|
136
|
+
|
|
137
|
+
*/
|
|
138
|
+
|
|
139
|
+
subscription:Subscription;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* @description Create a gift subscription with items like plans, addons, or charges and gift it to an existing customer.
|
|
143
|
+
|
|
144
|
+
*/
|
|
145
|
+
|
|
146
|
+
invoice?:Invoice;
|
|
29
147
|
}
|
|
30
148
|
export interface CreateForItemsInputParam {
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* @description Indicates the date on which the gift notification is sent to the receiver. If not passed, the receiver is notified immediately.
|
|
152
|
+
|
|
153
|
+
*/
|
|
154
|
+
|
|
31
155
|
scheduled_at?:number;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* @description When `true`, the claim happens automatically. When not passed, the default value in the site settings is used.
|
|
159
|
+
|
|
160
|
+
*/
|
|
161
|
+
|
|
32
162
|
auto_claim?:boolean;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* @description When `true`, indicates that the gift does not expire. Do not pass or pass as `false` when `auto_claim` is set. .
|
|
166
|
+
|
|
167
|
+
*/
|
|
168
|
+
|
|
33
169
|
no_expiry?:boolean;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* @description The date until which the gift can be claimed. Must be set to a value after `scheduled_at`. If the gift is not claimed within `claim_expiry_date`, it will expire and the subscription will move to `cancelled` state. When not passed, the value specified in the site settings will be used. Pass as `NULL` or do not pass when `auto_claim` or `no_expiry` are set.
|
|
173
|
+
|
|
174
|
+
*/
|
|
175
|
+
|
|
34
176
|
claim_expiry_date?:number;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* @description List of coupons to be applied to this subscription. You can provide coupon ids or coupon codes.
|
|
180
|
+
|
|
181
|
+
*/
|
|
182
|
+
|
|
35
183
|
coupon_ids?:string[];
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* @description Parameters for gifter
|
|
187
|
+
|
|
188
|
+
*/
|
|
189
|
+
|
|
36
190
|
gifter?:{customer_id:string,note?:string,payment_src_id?:string,signature:string};
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* @description Parameters for gift_receiver
|
|
194
|
+
|
|
195
|
+
*/
|
|
196
|
+
|
|
37
197
|
gift_receiver?:{customer_id:string,email:string,first_name:string,last_name:string};
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* @description Parameters for payment_intent
|
|
201
|
+
|
|
202
|
+
*/
|
|
203
|
+
|
|
38
204
|
payment_intent?:{additional_information?:object,gateway_account_id?:string,gw_token?:string,id?:string,payment_method_type?:'giropay' | 'ideal' | 'google_pay' | 'netbanking_emandates' | 'dotpay' | 'boleto' | 'direct_debit' | 'sofort' | 'upi' | 'apple_pay' | 'bancontact' | 'paypal_express_checkout' | 'card',reference_id?:string};
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* @description Parameters for shipping_address
|
|
208
|
+
|
|
209
|
+
*/
|
|
210
|
+
|
|
39
211
|
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};
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* @description Parameters for subscription_items
|
|
215
|
+
|
|
216
|
+
*/
|
|
217
|
+
|
|
40
218
|
subscription_items?:{item_price_id?:string,quantity?:number,quantity_in_decimal?:string}[];
|
|
41
219
|
}
|
|
42
|
-
export interface CancelResponse {
|
|
43
|
-
|
|
44
|
-
|
|
220
|
+
export interface CancelResponse {
|
|
221
|
+
/**
|
|
222
|
+
* @description This API allows to cancel gifts. Only gift in 'scheduled' and 'unclaimed' states can be cancelled.
|
|
223
|
+
|
|
224
|
+
*/
|
|
225
|
+
|
|
226
|
+
gift:Gift;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* @description This API allows to cancel gifts. Only gift in 'scheduled' and 'unclaimed' states can be cancelled.
|
|
230
|
+
|
|
231
|
+
*/
|
|
232
|
+
|
|
233
|
+
subscription:Subscription;
|
|
45
234
|
}
|
|
46
235
|
|
|
47
|
-
export interface UpdateGiftResponse {
|
|
48
|
-
|
|
49
|
-
|
|
236
|
+
export interface UpdateGiftResponse {
|
|
237
|
+
/**
|
|
238
|
+
* @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).
|
|
239
|
+
|
|
240
|
+
*/
|
|
241
|
+
|
|
242
|
+
gift:Gift;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* @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).
|
|
246
|
+
|
|
247
|
+
*/
|
|
248
|
+
|
|
249
|
+
subscription:Subscription;
|
|
50
250
|
}
|
|
51
251
|
export interface UpdateGiftInputParam {
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* @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).
|
|
255
|
+
|
|
256
|
+
*/
|
|
257
|
+
|
|
52
258
|
scheduled_at:number;
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* @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).
|
|
262
|
+
|
|
263
|
+
*/
|
|
264
|
+
|
|
53
265
|
comment?:string;
|
|
54
266
|
}
|
|
55
|
-
export interface ListResponse {
|
|
56
|
-
|
|
57
|
-
|
|
267
|
+
export interface ListResponse {
|
|
268
|
+
/**
|
|
269
|
+
* @description Retrieves the list of gifts.
|
|
270
|
+
|
|
271
|
+
*/
|
|
272
|
+
|
|
273
|
+
list:{gift:Gift,subscription:Subscription}[];
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* @description Retrieves the list of gifts.
|
|
277
|
+
|
|
278
|
+
*/
|
|
279
|
+
|
|
280
|
+
next_offset?:string;
|
|
58
281
|
}
|
|
59
282
|
export interface ListInputParam {
|
|
60
|
-
[key : string]: any;
|
|
283
|
+
[key : string]: any;
|
|
284
|
+
/**
|
|
285
|
+
* @description The number of resources to be returned.
|
|
286
|
+
|
|
287
|
+
*/
|
|
288
|
+
|
|
61
289
|
limit?:number;
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* @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.
|
|
293
|
+
|
|
294
|
+
*/
|
|
295
|
+
|
|
62
296
|
offset?:string;
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* @description Status of the gift.
|
|
300
|
+
|
|
301
|
+
*/
|
|
302
|
+
|
|
63
303
|
status?:{in?:string,is?:'expired' | 'scheduled' | 'unclaimed' | 'claimed' | 'cancelled',is_not?:'expired' | 'scheduled' | 'unclaimed' | 'claimed' | 'cancelled',not_in?:string};
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* @description Parameters for gift_receiver
|
|
307
|
+
|
|
308
|
+
*/
|
|
309
|
+
|
|
64
310
|
gift_receiver?:{customer_id?:{is?:string,is_not?:string,starts_with?:string},email?:{is?:string,is_not?:string,starts_with?:string}};
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* @description Parameters for gifter
|
|
314
|
+
|
|
315
|
+
*/
|
|
316
|
+
|
|
65
317
|
gifter?:{customer_id?:{is?:string,is_not?:string,starts_with?:string}};
|
|
66
318
|
}
|
|
67
|
-
export interface RetrieveResponse {
|
|
68
|
-
|
|
69
|
-
|
|
319
|
+
export interface RetrieveResponse {
|
|
320
|
+
/**
|
|
321
|
+
* @description Retrieves a gift subscription. This API accepts the gift 'id' and returns the gift along with the subscription.
|
|
322
|
+
|
|
323
|
+
*/
|
|
324
|
+
|
|
325
|
+
gift:Gift;
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* @description Retrieves a gift subscription. This API accepts the gift 'id' and returns the gift along with the subscription.
|
|
329
|
+
|
|
330
|
+
*/
|
|
331
|
+
|
|
332
|
+
subscription:Subscription;
|
|
70
333
|
}
|
|
71
334
|
|
|
72
|
-
export interface ClaimResponse {
|
|
73
|
-
|
|
74
|
-
|
|
335
|
+
export interface ClaimResponse {
|
|
336
|
+
/**
|
|
337
|
+
* @description Claiming a gift will move the status to 'claimed'. Only gifts in 'unclaimed' state can be claimed.
|
|
338
|
+
|
|
339
|
+
*/
|
|
340
|
+
|
|
341
|
+
gift:Gift;
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* @description Claiming a gift will move the status to 'claimed'. Only gifts in 'unclaimed' state can be claimed.
|
|
345
|
+
|
|
346
|
+
*/
|
|
347
|
+
|
|
348
|
+
subscription:Subscription;
|
|
75
349
|
}
|
|
76
350
|
|
|
77
|
-
export interface Gifter {
|
|
351
|
+
export interface Gifter {
|
|
352
|
+
/**
|
|
353
|
+
* @description Gifter customer id.
|
|
354
|
+
|
|
355
|
+
*/
|
|
356
|
+
|
|
78
357
|
customer_id?:string;
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* @description Invoice raised on the gifter.
|
|
361
|
+
|
|
362
|
+
*/
|
|
363
|
+
|
|
79
364
|
invoice_id?:string;
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* @description Gifter sign-off name
|
|
368
|
+
|
|
369
|
+
*/
|
|
370
|
+
|
|
80
371
|
signature?:string;
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* @description Personalized message for the gift.
|
|
375
|
+
|
|
376
|
+
*/
|
|
377
|
+
|
|
81
378
|
note?:string;
|
|
82
379
|
}
|
|
83
|
-
export interface GiftReceiver {
|
|
380
|
+
export interface GiftReceiver {
|
|
381
|
+
/**
|
|
382
|
+
* @description Receiver customer id.
|
|
383
|
+
|
|
384
|
+
*/
|
|
385
|
+
|
|
84
386
|
customer_id?:string;
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* @description Subscription created for the gift.
|
|
390
|
+
|
|
391
|
+
*/
|
|
392
|
+
|
|
85
393
|
subscription_id?:string;
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* @description First name of the receiver as given by the gifter.
|
|
397
|
+
|
|
398
|
+
*/
|
|
399
|
+
|
|
86
400
|
first_name?:string;
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* @description Last name of the receiver as given by the gifter,
|
|
404
|
+
|
|
405
|
+
*/
|
|
406
|
+
|
|
87
407
|
last_name?:string;
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* @description Email of the receiver. All gift related emails are sent to this email.
|
|
411
|
+
|
|
412
|
+
*/
|
|
413
|
+
|
|
88
414
|
email?:string;
|
|
89
415
|
}
|
|
90
|
-
export interface GiftTimeline {
|
|
416
|
+
export interface GiftTimeline {
|
|
91
417
|
status?:'expired' | 'scheduled' | 'unclaimed' | 'claimed' | 'cancelled';
|
|
418
|
+
|
|
92
419
|
occurred_at?:number;
|
|
93
420
|
}
|
|
94
421
|
}
|
|
@@ -1,10 +1,40 @@
|
|
|
1
1
|
///<reference path='./../core.d.ts'/>
|
|
2
2
|
declare module 'chargebee' {
|
|
3
3
|
export interface Hierarchy {
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @description The `id` of the customer
|
|
7
|
+
|
|
8
|
+
*/
|
|
9
|
+
|
|
4
10
|
customer_id:string;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @description The `id` of the customer who is the immediate parent.
|
|
14
|
+
|
|
15
|
+
*/
|
|
16
|
+
|
|
5
17
|
parent_id?:string;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @description The `id` of the customer who pays the invoices for this customer. Can be the customer itself or the `invoice_owner_id`
|
|
21
|
+
|
|
22
|
+
*/
|
|
23
|
+
|
|
6
24
|
payment_owner_id:string;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @description The `id` of the customer who is invoiced for charges incurred. Can be the customer itself or any parent in its hierarchy.
|
|
28
|
+
|
|
29
|
+
*/
|
|
30
|
+
|
|
7
31
|
invoice_owner_id:string;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @description The list of immediate children of the customer
|
|
35
|
+
|
|
36
|
+
*/
|
|
37
|
+
|
|
8
38
|
children_ids?:string[];
|
|
9
39
|
}
|
|
10
40
|
}
|