chargebee 2.28.0 → 2.30.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/.github/ISSUE_TEMPLATE/bug_report.yml +81 -0
- package/.github/ISSUE_TEMPLATE/config.yml +6 -0
- package/.github/ISSUE_TEMPLATE/feature_request.yml +34 -0
- package/.github/PULL_REQUEST_TEMPLATE.md +8 -0
- package/.github/workflows/greeting.yml +47 -0
- package/CHANGELOG.md +59 -0
- package/SECURITY.md +8 -0
- package/lib/chargebee.js +1 -1
- package/lib/resources/api_endpoints.js +0 -14
- package/package.json +1 -1
- package/types/core.d.ts +4 -4
- package/types/resources/AttachedItem.d.ts +88 -88
- package/types/resources/Card.d.ts +68 -68
- package/types/resources/Comment.d.ts +50 -44
- package/types/resources/Coupon.d.ts +242 -207
- package/types/resources/CouponSet.d.ts +72 -68
- package/types/resources/CreditNote.d.ts +612 -236
- package/types/resources/Customer.d.ts +655 -513
- package/types/resources/DifferentialPrice.d.ts +99 -74
- package/types/resources/EntitlementOverride.d.ts +27 -12
- package/types/resources/Estimate.d.ts +450 -450
- package/types/resources/Event.d.ts +30 -12
- package/types/resources/Export.d.ts +200 -200
- package/types/resources/Feature.d.ts +66 -35
- package/types/resources/Gift.d.ts +54 -44
- package/types/resources/HostedPage.d.ts +381 -381
- package/types/resources/InAppSubscription.d.ts +94 -90
- package/types/resources/Invoice.d.ts +1242 -660
- package/types/resources/Item.d.ts +148 -142
- package/types/resources/ItemEntitlement.d.ts +36 -36
- package/types/resources/ItemFamily.d.ts +45 -45
- package/types/resources/ItemPrice.d.ts +317 -273
- package/types/resources/PaymentIntent.d.ts +60 -60
- package/types/resources/PaymentReferenceNumber.d.ts +1 -1
- package/types/resources/PaymentVoucher.d.ts +74 -59
- package/types/resources/PortalSession.d.ts +45 -20
- package/types/resources/PromotionalCredit.d.ts +68 -68
- package/types/resources/Purchase.d.ts +3 -3
- package/types/resources/Quote.d.ts +655 -366
- package/types/resources/QuoteLineGroup.d.ts +245 -0
- package/types/resources/QuotedCharge.d.ts +170 -0
- package/types/resources/QuotedSubscription.d.ts +219 -0
- package/types/resources/SiteMigrationDetail.d.ts +7 -7
- package/types/resources/Subscription.d.ts +1219 -932
- package/types/resources/SubscriptionEntitlement.d.ts +33 -12
- package/types/resources/ThirdPartyPaymentMethod.d.ts +1 -1
- package/types/resources/TimeMachine.d.ts +15 -15
- package/types/resources/Token.d.ts +0 -116
- package/types/resources/Transaction.d.ts +229 -112
- package/types/resources/UnbilledCharge.d.ts +112 -67
- package/types/resources/Usage.d.ts +46 -47
- package/types/resources/VirtualBankAccount.d.ts +66 -66
- package/types/resources/Media.d.ts +0 -33
- package/types/resources/NonSubscription.d.ts +0 -65
|
@@ -90,20 +90,6 @@ declare module 'chargebee' {
|
|
|
90
90
|
|
|
91
91
|
create(input:CreateInputParam):ChargebeeRequest<CreateResponse>;
|
|
92
92
|
|
|
93
|
-
/**
|
|
94
|
-
* @description Deletes a feature. Any item entitlements and subscription entitlements defined for the feature are also removed. This action is not permissible when the `status` of the feature is `active`.
|
|
95
|
-
|
|
96
|
-
*/
|
|
97
|
-
|
|
98
|
-
delete(feature_id:string):ChargebeeRequest<DeleteResponse>;
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* @description Retrieve a specific feature using its id.
|
|
102
|
-
|
|
103
|
-
*/
|
|
104
|
-
|
|
105
|
-
retrieve(feature_id:string):ChargebeeRequest<RetrieveResponse>;
|
|
106
|
-
|
|
107
93
|
/**
|
|
108
94
|
* @description Updates a specific feature.
|
|
109
95
|
**Note**
|
|
@@ -146,11 +132,18 @@ However, changing `levels[]` to the state shown below is not permissib
|
|
|
146
132
|
update(feature_id:string, input?:UpdateInputParam):ChargebeeRequest<UpdateResponse>;
|
|
147
133
|
|
|
148
134
|
/**
|
|
149
|
-
* @description
|
|
135
|
+
* @description Retrieve a specific feature using its id.
|
|
150
136
|
|
|
151
137
|
*/
|
|
152
138
|
|
|
153
|
-
|
|
139
|
+
retrieve(feature_id:string):ChargebeeRequest<RetrieveResponse>;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* @description Deletes a feature. Any item entitlements and subscription entitlements defined for the feature are also removed. This action is not permissible when the `status` of the feature is `active`.
|
|
143
|
+
|
|
144
|
+
*/
|
|
145
|
+
|
|
146
|
+
delete(feature_id:string):ChargebeeRequest<DeleteResponse>;
|
|
154
147
|
|
|
155
148
|
/**
|
|
156
149
|
* @description Activates a `draft` feature so that any [item](item_entitlements) or [subscription entitlements](subscription_entitlements) defined towards it take effect immediately. This operation changes the [status](features#feature_status) of the feature to `active`. The feature `status` must be `draft` when calling this endpoint.
|
|
@@ -159,6 +152,13 @@ However, changing `levels[]` to the state shown below is not permissib
|
|
|
159
152
|
|
|
160
153
|
activate(feature_id:string):ChargebeeRequest<ActivateResponse>;
|
|
161
154
|
|
|
155
|
+
/**
|
|
156
|
+
* @description Archives an `active` feature so that no **new** [item](item_entitlements) or [subscription entitlements](subscription_entitlements) can be created towards the feature. Any pre-existing item or subscription entitlements from the time that the feature was `active` remain effective. This operation changes the [status](features#feature_status) of the feature to `archived`. The feature `status` must be `active` when calling this endpoint.
|
|
157
|
+
|
|
158
|
+
*/
|
|
159
|
+
|
|
160
|
+
archive(feature_id:string):ChargebeeRequest<ArchiveResponse>;
|
|
161
|
+
|
|
162
162
|
/**
|
|
163
163
|
* @description Reactivates an archived feature so that **new** [item](item_entitlements) or [subscription entitlements](subscription_entitlements) can be created towards the feature. This operation changes the [status](features#feature_status) of the feature to `active`. The feature `status` must be `archived` when calling this endpoint.
|
|
164
164
|
|
|
@@ -184,43 +184,42 @@ However, changing `levels[]` to the state shown below is not permissib
|
|
|
184
184
|
export interface ListInputParam {
|
|
185
185
|
[key : string]: any;
|
|
186
186
|
/**
|
|
187
|
-
* @description
|
|
187
|
+
* @description "This API fetches all the available features. " If the limit parameter is not set, it will return upto 10 features. "
|
|
188
188
|
|
|
189
189
|
*/
|
|
190
190
|
|
|
191
191
|
limit?:number;
|
|
192
192
|
|
|
193
193
|
/**
|
|
194
|
-
* @description
|
|
194
|
+
* @description "This API fetches all the available features. " If the limit parameter is not set, it will return upto 10 features. "
|
|
195
195
|
|
|
196
196
|
*/
|
|
197
197
|
|
|
198
198
|
offset?:string;
|
|
199
199
|
|
|
200
200
|
/**
|
|
201
|
-
* @description
|
|
202
|
-
**Note:** This name is not displayed on any customer-facing documents or pages such as [invoice PDFs](invoices#retrieve_invoice_as_pdf) or [hosted pages](hosted_pages). However, in the future, it is likely to be introduced on the [Self-Serve Portal](portal_sessions).
|
|
201
|
+
* @description "This API fetches all the available features. " If the limit parameter is not set, it will return upto 10 features. "
|
|
203
202
|
|
|
204
203
|
*/
|
|
205
204
|
|
|
206
205
|
name?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
207
206
|
|
|
208
207
|
/**
|
|
209
|
-
* @description
|
|
208
|
+
* @description "This API fetches all the available features. " If the limit parameter is not set, it will return upto 10 features. "
|
|
210
209
|
|
|
211
210
|
*/
|
|
212
211
|
|
|
213
212
|
id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
214
213
|
|
|
215
214
|
/**
|
|
216
|
-
* @description
|
|
215
|
+
* @description "This API fetches all the available features. " If the limit parameter is not set, it will return upto 10 features. "
|
|
217
216
|
|
|
218
217
|
*/
|
|
219
218
|
|
|
220
219
|
status?:{in?:string,is?:'archived' | 'draft' | 'active',is_not?:'archived' | 'draft' | 'active',not_in?:string};
|
|
221
220
|
|
|
222
221
|
/**
|
|
223
|
-
* @description
|
|
222
|
+
* @description "This API fetches all the available features. " If the limit parameter is not set, it will return upto 10 features. "
|
|
224
223
|
|
|
225
224
|
*/
|
|
226
225
|
|
|
@@ -281,14 +280,6 @@ However, changing `levels[]` to the state shown below is not permissib
|
|
|
281
280
|
|
|
282
281
|
levels?:{is_unlimited?:boolean,level?:number,name?:string,value?:string}[];
|
|
283
282
|
}
|
|
284
|
-
export interface DeleteResponse {
|
|
285
|
-
feature:Feature;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
export interface RetrieveResponse {
|
|
289
|
-
feature:Feature;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
283
|
export interface UpdateResponse {
|
|
293
284
|
feature:Feature;
|
|
294
285
|
}
|
|
@@ -330,7 +321,11 @@ However, changing `levels[]` to the state shown below is not permissib
|
|
|
330
321
|
|
|
331
322
|
levels?:{is_unlimited?:boolean,level?:number,name?:string,value?:string}[];
|
|
332
323
|
}
|
|
333
|
-
export interface
|
|
324
|
+
export interface RetrieveResponse {
|
|
325
|
+
feature:Feature;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
export interface DeleteResponse {
|
|
334
329
|
feature:Feature;
|
|
335
330
|
}
|
|
336
331
|
|
|
@@ -338,18 +333,54 @@ However, changing `levels[]` to the state shown below is not permissib
|
|
|
338
333
|
feature:Feature;
|
|
339
334
|
}
|
|
340
335
|
|
|
336
|
+
export interface ArchiveResponse {
|
|
337
|
+
feature:Feature;
|
|
338
|
+
}
|
|
339
|
+
|
|
341
340
|
export interface ReactivateResponse {
|
|
342
341
|
feature:Feature;
|
|
343
342
|
}
|
|
344
343
|
|
|
345
344
|
export interface Level {
|
|
345
|
+
/**
|
|
346
|
+
* @description A case-sensitive display name for the entitlement level. Provide a name that helps you clearly identify the entitlement level. For example: a feature such as `Email Support` can have entitlement levels named as `All weekdays`, `All days`, `40 hours per week` and so on. When not provided for `feature.type` `quantity` or `range`, this name is auto-generated as the space-separated concatenation of `levels[].value` and the pluralized version of `unit`. For example, if `levels[].value` is `20` and `unit` is `user`, then `levels[].name` becomes `20 users`.
|
|
347
|
+
|
|
348
|
+
*/
|
|
349
|
+
|
|
346
350
|
name?:string;
|
|
347
351
|
|
|
348
|
-
|
|
352
|
+
/**
|
|
353
|
+
* @description The value denoting the entitlement level granted.
|
|
354
|
+
|
|
355
|
+
* **When `type` is `quantity`:** this attribute denotes the quantity of units of the feature for this entitlement level. For example, a feature such as `number of users` can have `levels[].value` as `5`, `20`, `50`, and `100`. `levels[].is_unlimited` is used to set the entitlement level to "unlimited".
|
|
356
|
+
* **When `type` is `range`:** there can be be only two elements in the `levels[]` array; one corresponding to the minimum value (`levels[0]`) and the other to the maximum value (`levels[1]`) of the range of possible entitlement levels. For example, a feature such as `number of users` may have `levels[0].value` = `5` and `levels[1].value` = `50000`. When the upper limit is "unlimited", then `levels[1].value` is not set and `levels[1].is_unlimited` is `true`.
|
|
357
|
+
* **When `type` is `custom`:** this attribute denotes the value of this custom entitlement level. For example, a feature `Email Support` can have `levels[].value` as one of say, `24×7` and `24×5`.
|
|
358
|
+
|
|
359
|
+
*/
|
|
349
360
|
|
|
350
|
-
|
|
361
|
+
value:string;
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* @description This attribute represents the order of the entitlement levels from lowest to highest.
|
|
365
|
+
|
|
366
|
+
* When `type` is `quantity` or `custom`: The lowest entitlement level has the value `0`, the next higher level has the value `1`, followed by `2`, and so on.
|
|
367
|
+
* When `type` is `range`: This attribute is `0` for the minimum value and `1` for the maximum value in the range.
|
|
368
|
+
|
|
369
|
+
When not defined, it is assumed as the index of the `levels[]` array.
|
|
370
|
+
|
|
371
|
+
*/
|
|
372
|
+
|
|
373
|
+
level:number;
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* @description When `type` is `quantity` or `range`, this attribute indicates whether the entitlement level corresponds to unlimited units of the feature. Possible values:
|
|
377
|
+
|
|
378
|
+
* `true`: The entitlement level corresponds to unlimited units of the feature. `levels[].value` is ignored for this level. This can only be set for the level that has the highest value for `levels[].level.`
|
|
379
|
+
* `false`: The entitlement level does not correspond to unlimited units of the feature.
|
|
380
|
+
|
|
381
|
+
*/
|
|
351
382
|
|
|
352
|
-
is_unlimited
|
|
383
|
+
is_unlimited:boolean;
|
|
353
384
|
}
|
|
354
385
|
}
|
|
355
386
|
}
|
|
@@ -89,39 +89,39 @@ declare module 'chargebee' {
|
|
|
89
89
|
create_for_items(input?:CreateForItemsInputParam):ChargebeeRequest<CreateForItemsResponse>;
|
|
90
90
|
|
|
91
91
|
/**
|
|
92
|
-
* @description
|
|
92
|
+
* @description Retrieves a gift subscription. This API accepts the gift 'id' and returns the gift along with the subscription.
|
|
93
93
|
|
|
94
94
|
*/
|
|
95
95
|
|
|
96
|
-
|
|
96
|
+
retrieve(gift_id:string):ChargebeeRequest<RetrieveResponse>;
|
|
97
97
|
|
|
98
98
|
/**
|
|
99
|
-
* @description
|
|
99
|
+
* @description Retrieves the list of gifts.
|
|
100
100
|
|
|
101
101
|
*/
|
|
102
102
|
|
|
103
|
-
|
|
103
|
+
list(input?:ListInputParam):ChargebeeRequest<ListResponse>;
|
|
104
104
|
|
|
105
105
|
/**
|
|
106
|
-
* @description
|
|
106
|
+
* @description Claiming a gift will move the status to 'claimed'. Only gifts in 'unclaimed' state can be claimed.
|
|
107
107
|
|
|
108
108
|
*/
|
|
109
109
|
|
|
110
|
-
|
|
110
|
+
claim(gift_id:string):ChargebeeRequest<ClaimResponse>;
|
|
111
111
|
|
|
112
112
|
/**
|
|
113
|
-
* @description
|
|
113
|
+
* @description This API allows to cancel gifts. Only gift in 'scheduled' and 'unclaimed' states can be cancelled.
|
|
114
114
|
|
|
115
115
|
*/
|
|
116
116
|
|
|
117
|
-
|
|
117
|
+
cancel(gift_id:string):ChargebeeRequest<CancelResponse>;
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
|
-
* @description
|
|
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
121
|
|
|
122
122
|
*/
|
|
123
123
|
|
|
124
|
-
|
|
124
|
+
update_gift(gift_id:string, input:UpdateGiftInputParam):ChargebeeRequest<UpdateGiftResponse>;
|
|
125
125
|
}
|
|
126
126
|
export interface CreateForItemsResponse {
|
|
127
127
|
gift:Gift;
|
|
@@ -186,7 +186,7 @@ declare module 'chargebee' {
|
|
|
186
186
|
|
|
187
187
|
*/
|
|
188
188
|
|
|
189
|
-
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};
|
|
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' | 'dotpay' | 'boleto' | 'direct_debit' | 'faster_payments' | 'sofort' | 'upi' | 'venmo' | 'amazon_payments' | 'apple_pay' | 'bancontact' | 'paypal_express_checkout' | 'pay_to' | 'card',reference_id?:string};
|
|
190
190
|
|
|
191
191
|
/**
|
|
192
192
|
* @description Parameters for shipping_address
|
|
@@ -202,33 +202,12 @@ declare module 'chargebee' {
|
|
|
202
202
|
|
|
203
203
|
subscription_items?:{item_price_id?:string,quantity?:number,quantity_in_decimal?:string}[];
|
|
204
204
|
}
|
|
205
|
-
export interface
|
|
205
|
+
export interface RetrieveResponse {
|
|
206
206
|
gift:Gift;
|
|
207
207
|
|
|
208
208
|
subscription:Subscription;
|
|
209
209
|
}
|
|
210
210
|
|
|
211
|
-
export interface UpdateGiftResponse {
|
|
212
|
-
gift:Gift;
|
|
213
|
-
|
|
214
|
-
subscription:Subscription;
|
|
215
|
-
}
|
|
216
|
-
export interface UpdateGiftInputParam {
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* @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).
|
|
220
|
-
|
|
221
|
-
*/
|
|
222
|
-
|
|
223
|
-
scheduled_at:number;
|
|
224
|
-
|
|
225
|
-
/**
|
|
226
|
-
* @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).
|
|
227
|
-
|
|
228
|
-
*/
|
|
229
|
-
|
|
230
|
-
comment?:string;
|
|
231
|
-
}
|
|
232
211
|
export interface ListResponse {
|
|
233
212
|
/**
|
|
234
213
|
* @description Retrieves the list of gifts.
|
|
@@ -247,59 +226,80 @@ declare module 'chargebee' {
|
|
|
247
226
|
export interface ListInputParam {
|
|
248
227
|
[key : string]: any;
|
|
249
228
|
/**
|
|
250
|
-
* @description
|
|
229
|
+
* @description Retrieves the list of gifts.
|
|
251
230
|
|
|
252
231
|
*/
|
|
253
232
|
|
|
254
233
|
limit?:number;
|
|
255
234
|
|
|
256
235
|
/**
|
|
257
|
-
* @description
|
|
236
|
+
* @description Retrieves the list of gifts.
|
|
258
237
|
|
|
259
238
|
*/
|
|
260
239
|
|
|
261
240
|
offset?:string;
|
|
262
241
|
|
|
263
242
|
/**
|
|
264
|
-
* @description
|
|
243
|
+
* @description Retrieves the list of gifts.
|
|
265
244
|
|
|
266
245
|
*/
|
|
267
246
|
|
|
268
247
|
status?:{in?:string,is?:'expired' | 'scheduled' | 'unclaimed' | 'claimed' | 'cancelled',is_not?:'expired' | 'scheduled' | 'unclaimed' | 'claimed' | 'cancelled',not_in?:string};
|
|
269
248
|
|
|
270
249
|
/**
|
|
271
|
-
* @description
|
|
250
|
+
* @description Retrieves the list of gifts.
|
|
272
251
|
|
|
273
252
|
*/
|
|
274
253
|
|
|
275
254
|
gift_receiver?:{customer_id?:{is?:string,is_not?:string,starts_with?:string},email?:{is?:string,is_not?:string,starts_with?:string}};
|
|
276
255
|
|
|
277
256
|
/**
|
|
278
|
-
* @description
|
|
257
|
+
* @description Retrieves the list of gifts.
|
|
279
258
|
|
|
280
259
|
*/
|
|
281
260
|
|
|
282
261
|
gifter?:{customer_id?:{is?:string,is_not?:string,starts_with?:string}};
|
|
283
262
|
}
|
|
284
|
-
export interface
|
|
263
|
+
export interface ClaimResponse {
|
|
285
264
|
gift:Gift;
|
|
286
265
|
|
|
287
266
|
subscription:Subscription;
|
|
288
267
|
}
|
|
289
268
|
|
|
290
|
-
export interface
|
|
269
|
+
export interface CancelResponse {
|
|
291
270
|
gift:Gift;
|
|
292
271
|
|
|
293
272
|
subscription:Subscription;
|
|
294
273
|
}
|
|
295
274
|
|
|
275
|
+
export interface UpdateGiftResponse {
|
|
276
|
+
gift:Gift;
|
|
277
|
+
|
|
278
|
+
subscription:Subscription;
|
|
279
|
+
}
|
|
280
|
+
export interface UpdateGiftInputParam {
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* @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).
|
|
284
|
+
|
|
285
|
+
*/
|
|
286
|
+
|
|
287
|
+
scheduled_at:number;
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* @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).
|
|
291
|
+
|
|
292
|
+
*/
|
|
293
|
+
|
|
294
|
+
comment?:string;
|
|
295
|
+
}
|
|
296
296
|
export interface Gifter {
|
|
297
297
|
/**
|
|
298
298
|
* @description Gifter customer id.
|
|
299
299
|
|
|
300
300
|
*/
|
|
301
301
|
|
|
302
|
-
customer_id
|
|
302
|
+
customer_id:string;
|
|
303
303
|
|
|
304
304
|
/**
|
|
305
305
|
* @description Invoice raised on the gifter.
|
|
@@ -328,14 +328,14 @@ declare module 'chargebee' {
|
|
|
328
328
|
|
|
329
329
|
*/
|
|
330
330
|
|
|
331
|
-
customer_id
|
|
331
|
+
customer_id:string;
|
|
332
332
|
|
|
333
333
|
/**
|
|
334
334
|
* @description Subscription created for the gift.
|
|
335
335
|
|
|
336
336
|
*/
|
|
337
337
|
|
|
338
|
-
subscription_id
|
|
338
|
+
subscription_id:string;
|
|
339
339
|
|
|
340
340
|
/**
|
|
341
341
|
* @description First name of the receiver as given by the gifter.
|
|
@@ -359,7 +359,17 @@ declare module 'chargebee' {
|
|
|
359
359
|
email?:string;
|
|
360
360
|
}
|
|
361
361
|
export interface GiftTimeline {
|
|
362
|
-
|
|
362
|
+
/**
|
|
363
|
+
* @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.
|
|
364
|
+
|
|
365
|
+
*/
|
|
366
|
+
|
|
367
|
+
status:'expired' | 'scheduled' | 'unclaimed' | 'claimed' | 'cancelled';
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* @description Timestamp indicating when this event occurred.
|
|
371
|
+
|
|
372
|
+
*/
|
|
363
373
|
|
|
364
374
|
occurred_at?:number;
|
|
365
375
|
}
|