chargebee 2.26.1 → 2.27.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 +20 -0
- package/lib/chargebee.js +1 -1
- package/lib/resources/api_endpoints.js +8 -1
- package/package.json +1 -1
- package/types/resources/Address.d.ts +0 -10
- package/types/resources/AttachedItem.d.ts +0 -20
- package/types/resources/Card.d.ts +0 -110
- package/types/resources/Comment.d.ts +0 -17
- package/types/resources/Coupon.d.ts +0 -37
- package/types/resources/CouponCode.d.ts +0 -10
- package/types/resources/CouponSet.d.ts +0 -30
- package/types/resources/CreditNote.d.ts +0 -102
- package/types/resources/Customer.d.ts +0 -313
- package/types/resources/DifferentialPrice.d.ts +0 -20
- package/types/resources/Estimate.d.ts +0 -160
- package/types/resources/Event.d.ts +0 -7
- package/types/resources/Export.d.ts +0 -81
- package/types/resources/Feature.d.ts +0 -69
- package/types/resources/Gift.d.ts +0 -55
- package/types/resources/HostedPage.d.ts +0 -166
- package/types/resources/InAppSubscription.d.ts +0 -267
- package/types/resources/Invoice.d.ts +0 -350
- package/types/resources/Item.d.ts +0 -20
- package/types/resources/ItemEntitlement.d.ts +0 -10
- package/types/resources/ItemFamily.d.ts +0 -20
- package/types/resources/ItemPrice.d.ts +0 -20
- package/types/resources/NonSubscription.d.ts +0 -5
- package/types/resources/Order.d.ts +0 -52
- package/types/resources/PaymentIntent.d.ts +0 -25
- package/types/resources/PaymentSource.d.ts +0 -275
- package/types/resources/PaymentVoucher.d.ts +0 -10
- package/types/resources/PortalSession.d.ts +0 -33
- package/types/resources/PromotionalCredit.d.ts +0 -51
- package/types/resources/Purchase.d.ts +0 -68
- package/types/resources/Quote.d.ts +0 -165
- package/types/resources/ResourceMigration.d.ts +0 -5
- package/types/resources/Subscription.d.ts +103 -1001
- package/types/resources/TimeMachine.d.ts +0 -17
- package/types/resources/Token.d.ts +0 -15
- package/types/resources/Transaction.d.ts +0 -30
- package/types/resources/UnbilledCharge.d.ts +0 -46
- package/types/resources/Usage.d.ts +0 -22
- package/types/resources/VirtualBankAccount.d.ts +0 -35
|
@@ -137,11 +137,6 @@ If this API is called for a Portal Session that currently is in :
|
|
|
137
137
|
retrieve(portal_session_id:string):ChargebeeRequest<RetrieveResponse>;
|
|
138
138
|
}
|
|
139
139
|
export interface CreateResponse {
|
|
140
|
-
/**
|
|
141
|
-
* @description Creates a portal session for a customer. The session resource in the response contains the access URL. Forward the customer to that access URL. If you would like to logout the customer later via API call, you need to store the id of the portal session resource returned by this API. While creating a session, you also need to pass the redirect URL to which your customers will be sent to upon logout from the portal UI.
|
|
142
|
-
|
|
143
|
-
*/
|
|
144
|
-
|
|
145
140
|
portal_session:PortalSession;
|
|
146
141
|
}
|
|
147
142
|
export interface CreateInputParam {
|
|
@@ -170,18 +165,6 @@ If this API is called for a Portal Session that currently is in :
|
|
|
170
165
|
customer?:{id:string};
|
|
171
166
|
}
|
|
172
167
|
export interface ActivateResponse {
|
|
173
|
-
/**
|
|
174
|
-
* @description When an user is sent back to your return URL with session details, you should validate that information by calling this API. The details passed to the **return_url** should be sent as below:
|
|
175
|
-
|
|
176
|
-
* **auth_session_id** - this should be sent as part of the endpoint.
|
|
177
|
-
* **auth_session_token** - this should be sent as value for the input parameter **token**.
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
**Note:** This API is not applicable for [in-app](https://www.chargebee.com/docs/v3-self-serve-portal.html) portal.
|
|
182
|
-
|
|
183
|
-
*/
|
|
184
|
-
|
|
185
168
|
portal_session:PortalSession;
|
|
186
169
|
}
|
|
187
170
|
export interface ActivateInputParam {
|
|
@@ -194,26 +177,10 @@ If this API is called for a Portal Session that currently is in :
|
|
|
194
177
|
token:string;
|
|
195
178
|
}
|
|
196
179
|
export interface LogoutResponse {
|
|
197
|
-
/**
|
|
198
|
-
* @description Logs out the portal session. Typically this should be called when customers logout of your application.
|
|
199
|
-
|
|
200
|
-
If this API is called for a Portal Session that currently is in :
|
|
201
|
-
|
|
202
|
-
* "created" status, the session status will be marked as "logged_out" and the access URL will become invalid.
|
|
203
|
-
* "logged_in" status, the session status will be marked as "logged_out" and customer will not be able to use that session.
|
|
204
|
-
* "logged_out" status, this will return normally without changing any attribute of this resource.
|
|
205
|
-
|
|
206
|
-
*/
|
|
207
|
-
|
|
208
180
|
portal_session:PortalSession;
|
|
209
181
|
}
|
|
210
182
|
|
|
211
183
|
export interface RetrieveResponse {
|
|
212
|
-
/**
|
|
213
|
-
* @description This API retrieves a portal session using `portal_session_id` as a path parameter.
|
|
214
|
-
|
|
215
|
-
*/
|
|
216
|
-
|
|
217
184
|
portal_session:PortalSession;
|
|
218
185
|
}
|
|
219
186
|
|
|
@@ -132,11 +132,6 @@ For example, if a customer has credits of $10, if you pass the **amount** as $10
|
|
|
132
132
|
add(input:AddInputParam):ChargebeeRequest<AddResponse>;
|
|
133
133
|
}
|
|
134
134
|
export interface RetrieveResponse {
|
|
135
|
-
/**
|
|
136
|
-
* @description This endpoint retrieves the promotional credit based on the promotional credit id
|
|
137
|
-
|
|
138
|
-
*/
|
|
139
|
-
|
|
140
135
|
promotional_credit:PromotionalCredit;
|
|
141
136
|
}
|
|
142
137
|
|
|
@@ -200,26 +195,8 @@ For example, if a customer has credits of $10, if you pass the **amount** as $10
|
|
|
200
195
|
customer_id?:{is?:string,is_not?:string,starts_with?:string};
|
|
201
196
|
}
|
|
202
197
|
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'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
198
|
customer:Customer;
|
|
213
199
|
|
|
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'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
200
|
promotional_credit:PromotionalCredit;
|
|
224
201
|
}
|
|
225
202
|
export interface DeductInputParam {
|
|
@@ -274,22 +251,8 @@ If you do not pass any amount as the input parameter then, it will deduct the wh
|
|
|
274
251
|
reference?:string;
|
|
275
252
|
}
|
|
276
253
|
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
254
|
customer:Customer;
|
|
285
255
|
|
|
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
256
|
promotional_credit:PromotionalCredit;
|
|
294
257
|
}
|
|
295
258
|
export interface SetInputParam {
|
|
@@ -344,22 +307,8 @@ For example, if a customer has a credit balance of $10 and if you would like to
|
|
|
344
307
|
reference?:string;
|
|
345
308
|
}
|
|
346
309
|
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's credit balance would become $20.
|
|
351
|
-
|
|
352
|
-
*/
|
|
353
|
-
|
|
354
310
|
customer:Customer;
|
|
355
311
|
|
|
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's credit balance would become $20.
|
|
360
|
-
|
|
361
|
-
*/
|
|
362
|
-
|
|
363
312
|
promotional_credit:PromotionalCredit;
|
|
364
313
|
}
|
|
365
314
|
export interface AddInputParam {
|
|
@@ -119,69 +119,6 @@ Discounts, both [manual discounts](discounts) and <coupons>, can be applie
|
|
|
119
119
|
estimate(input?:EstimateInputParam):ChargebeeRequest<EstimateResponse>;
|
|
120
120
|
}
|
|
121
121
|
export interface CreateResponse {
|
|
122
|
-
/**
|
|
123
|
-
* @description Creates a `purchase` resource. A purchase can contain one or more of the following:
|
|
124
|
-
|
|
125
|
-
* subscriptions (a [subscription](subscriptions) resource consists of item prices such that at least one of the item prices belongs to an [item](items) of `type` `plan`.)
|
|
126
|
-
* group of one-time charges (aka [charge item prices](item_prices#types))
|
|
127
|
-
|
|
128
|
-
When you call this API, the invoices for the subscription(s) and one-time charge(s) are created immediately and not left [unbilled](subscriptions?prod_cat_ver=2#create_subscription_for_items_invoice_immediately).
|
|
129
|
-
**Note**
|
|
130
|
-
|
|
131
|
-
Providing `shipping_addresses[]` is required when the [Orders feature](https://www.chargebee.com/docs/2.0/orders.html#configuration_step-1-configure-site-wide-settings) has been enabled.
|
|
132
|
-
|
|
133
|
-
### Specifying `purchase_item` groups {#groups}
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
When creating a purchase, you must specify the *group* or `index` to which each item price belongs. You can do this by setting the `purchase_items[index]` for each item price. Item prices with the same `purchase_items[index]` belong to the same group.
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
The grouping of item prices allows you to specify the `discounts[]` applicable for each group and indicate which item prices should be added to any subscriptions you want to create. Groups can be one of two types:
|
|
140
|
-
|
|
141
|
-
* Subscription groups
|
|
142
|
-
* One-time charge groups
|
|
143
|
-
|
|
144
|
-
The following subsections describe the types of groups in detail.
|
|
145
|
-
**Note**
|
|
146
|
-
|
|
147
|
-
You can specify up to 10 groups,
|
|
148
|
-
|
|
149
|
-
* with a recommended subscription group of 5. To increase this limit to a maximum of 8, contact [Chargebee Support](https://support.chargebee.com).
|
|
150
|
-
* with a maximum of 10 one-time charge groups by default.
|
|
151
|
-
|
|
152
|
-
The total limit for group items for a single purchase is 60.
|
|
153
|
-
|
|
154
|
-
#### Subscription groups {#subscription}
|
|
155
|
-
|
|
156
|
-
To create a subscription, specify a *subscription group* . A subscription [group](#groups) is a group of item prices that contains exactly one item price of `type` `plan`. To create multiple subscriptions, provide multiple subscription groups.
|
|
157
|
-
**Note**
|
|
158
|
-
|
|
159
|
-
A subscription group can have up to 20 non-plan item prices. To increase this limit to a maximum of 60, contact [Chargebee Support](https://support.chargebee.com).
|
|
160
|
-
|
|
161
|
-
#### Custom Fields {#custom-fields}
|
|
162
|
-
|
|
163
|
-
Purchase API supports custom fields of Subscriptions, use the following format to specify custom fields in Purchase API: **`subscription_info[custom_field]`**.
|
|
164
|
-
|
|
165
|
-
#### One-time charge groups {#one-time}
|
|
166
|
-
|
|
167
|
-
A one-time charge [group](#groups) is a group of charge item prices (i.e. item prices belonging to items of `type` `charge`). Charge item prices can be added to subscription groups as well. The charges within and across each one-time group must be unique.
|
|
168
|
-
**Note**
|
|
169
|
-
|
|
170
|
-
* A one-time charge group can have up to 20 item prices. To increase this limit to a maximum of 60, contact [Chargebee Support](https://support.chargebee.com).
|
|
171
|
-
* A charge item price can only be added to a single one-time charge group. However, it can be part of multiple [subscription groups](#subscription).
|
|
172
|
-
|
|
173
|
-
### Applying discounts {#discounts}
|
|
174
|
-
|
|
175
|
-
Discounts, both [manual discounts](discounts) and <coupons>, can be applied to groups by specifying the `discounts[]` array. The following table describes the method of application based on whether `discounts[index][i]` is provided:
|
|
176
|
-
|
|
177
|
-
| | **`discounts[index][i]` is provided** | **`discounts[index][i]` is not provided** |
|
|
178
|
-
|----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
179
|
-
| **Coupons** | * The coupon is applied exclusively to the invoice for group `i`. * The coupon is applied exclusively to the invoice created immediately upon invoking this API. * If group `i` is a [subscription group](#subscription), then the coupon is applied to invoices for subscription renewals based on coupon attributes such as `duration_type` and `max_redemptions`. | * The coupon is applied to all the invoices immediately generated upon invoking this API. * The coupon is not applied to subsequent invoices, such as those generated upon subscription renewal. |
|
|
180
|
-
| **Manual discounts** | * The manual discount is applied exclusively to the invoice for group `i`. * The manual discount is applied exclusively to the invoice created immediately upon invoking this API. * The manual discount is not applied to subsequent invoices, such as those generated upon subscription renewal. | * The manual discount is applied to all the invoices immediately generated upon invoking this API. * The manual discount is not applied to subsequent invoices, such as those generated upon subscription renewal. |
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
*/
|
|
184
|
-
|
|
185
122
|
purchase:Purchase;
|
|
186
123
|
}
|
|
187
124
|
export interface CreateInputParam {
|
|
@@ -236,11 +173,6 @@ Discounts, both [manual discounts](discounts) and <coupons>, can be applie
|
|
|
236
173
|
subscription_info?:{billing_cycles?:number,index:number,meta_data?:object,subscription_id?:string}[];
|
|
237
174
|
}
|
|
238
175
|
export interface EstimateResponse {
|
|
239
|
-
/**
|
|
240
|
-
* @description Returns an estimate for creating a `purchase` resource. The operation works exactly like [Create a purchase](purchases#create_a_purchase), except that only an [estimate](estimates) resource is returned without an actual `purchase` resource being created.
|
|
241
|
-
|
|
242
|
-
*/
|
|
243
|
-
|
|
244
176
|
estimate:Estimate;
|
|
245
177
|
}
|
|
246
178
|
export interface EstimateInputParam {
|
|
@@ -374,18 +374,8 @@ Ireland** . The first two characters of the VAT number in such a case is `X
|
|
|
374
374
|
delete(quote_id:string, input?:DeleteInputParam):ChargebeeRequest<DeleteResponse>;
|
|
375
375
|
}
|
|
376
376
|
export interface CreateSubItemsForCustomerQuoteResponse {
|
|
377
|
-
/**
|
|
378
|
-
* @description Create a quote for new subscription line items of a customer.
|
|
379
|
-
|
|
380
|
-
*/
|
|
381
|
-
|
|
382
377
|
quote:Quote;
|
|
383
378
|
|
|
384
|
-
/**
|
|
385
|
-
* @description Create a quote for new subscription line items of a customer.
|
|
386
|
-
|
|
387
|
-
*/
|
|
388
|
-
|
|
389
379
|
quoted_subscription?:QuotedSubscription;
|
|
390
380
|
}
|
|
391
381
|
export interface CreateSubItemsForCustomerQuoteInputParam {
|
|
@@ -489,41 +479,16 @@ Ireland** . The first two characters of the VAT number in such a case is `X
|
|
|
489
479
|
item_tiers?:{ending_unit?:number,ending_unit_in_decimal?:string,item_price_id?:string,price?:number,price_in_decimal?:string,starting_unit?:number,starting_unit_in_decimal?:string}[];
|
|
490
480
|
}
|
|
491
481
|
export interface RetrieveResponse {
|
|
492
|
-
/**
|
|
493
|
-
* @description Retrieves the quotes identified by the 'number' specified in the url.
|
|
494
|
-
|
|
495
|
-
*/
|
|
496
|
-
|
|
497
482
|
quote:Quote;
|
|
498
483
|
|
|
499
|
-
/**
|
|
500
|
-
* @description Retrieves the quotes identified by the 'number' specified in the url.
|
|
501
|
-
|
|
502
|
-
*/
|
|
503
|
-
|
|
504
484
|
quoted_subscription?:QuotedSubscription;
|
|
505
485
|
|
|
506
|
-
/**
|
|
507
|
-
* @description Retrieves the quotes identified by the 'number' specified in the url.
|
|
508
|
-
|
|
509
|
-
*/
|
|
510
|
-
|
|
511
486
|
quoted_charge?:QuotedCharge;
|
|
512
487
|
}
|
|
513
488
|
|
|
514
489
|
export interface EditCreateSubCustomerQuoteForItemsResponse {
|
|
515
|
-
/**
|
|
516
|
-
* @description Changes the quote produced for creating a new subscription items
|
|
517
|
-
|
|
518
|
-
*/
|
|
519
|
-
|
|
520
490
|
quote:Quote;
|
|
521
491
|
|
|
522
|
-
/**
|
|
523
|
-
* @description Changes the quote produced for creating a new subscription items
|
|
524
|
-
|
|
525
|
-
*/
|
|
526
|
-
|
|
527
492
|
quoted_subscription?:QuotedSubscription;
|
|
528
493
|
}
|
|
529
494
|
export interface EditCreateSubCustomerQuoteForItemsInputParam {
|
|
@@ -620,25 +585,10 @@ Ireland** . The first two characters of the VAT number in such a case is `X
|
|
|
620
585
|
item_tiers?:{ending_unit?:number,ending_unit_in_decimal?:string,item_price_id?:string,price?:number,price_in_decimal?:string,starting_unit?:number,starting_unit_in_decimal?:string}[];
|
|
621
586
|
}
|
|
622
587
|
export interface UpdateStatusResponse {
|
|
623
|
-
/**
|
|
624
|
-
* @description Updates the status of the quote. Status can be updated to Accepted, Declined, and Closed.
|
|
625
|
-
|
|
626
|
-
*/
|
|
627
|
-
|
|
628
588
|
quote:Quote;
|
|
629
589
|
|
|
630
|
-
/**
|
|
631
|
-
* @description Updates the status of the quote. Status can be updated to Accepted, Declined, and Closed.
|
|
632
|
-
|
|
633
|
-
*/
|
|
634
|
-
|
|
635
590
|
quoted_subscription?:QuotedSubscription;
|
|
636
591
|
|
|
637
|
-
/**
|
|
638
|
-
* @description Updates the status of the quote. Status can be updated to Accepted, Declined, and Closed.
|
|
639
|
-
|
|
640
|
-
*/
|
|
641
|
-
|
|
642
592
|
quoted_charge?:QuotedCharge;
|
|
643
593
|
}
|
|
644
594
|
export interface UpdateStatusInputParam {
|
|
@@ -658,18 +608,8 @@ Ireland** . The first two characters of the VAT number in such a case is `X
|
|
|
658
608
|
comment?:string;
|
|
659
609
|
}
|
|
660
610
|
export interface UpdateSubscriptionQuoteForItemsResponse {
|
|
661
|
-
/**
|
|
662
|
-
* @description Create a quote for updating subscription line items.
|
|
663
|
-
|
|
664
|
-
*/
|
|
665
|
-
|
|
666
611
|
quote:Quote;
|
|
667
612
|
|
|
668
|
-
/**
|
|
669
|
-
* @description Create a quote for updating subscription line items.
|
|
670
|
-
|
|
671
|
-
*/
|
|
672
|
-
|
|
673
613
|
quoted_subscription?:QuotedSubscription;
|
|
674
614
|
}
|
|
675
615
|
export interface UpdateSubscriptionQuoteForItemsInputParam {
|
|
@@ -888,25 +828,10 @@ Ireland** . The first two characters of the VAT number in such a case is `X
|
|
|
888
828
|
offset?:string;
|
|
889
829
|
}
|
|
890
830
|
export interface ExtendExpiryDateResponse {
|
|
891
|
-
/**
|
|
892
|
-
* @description Can be used to extend the expiry date of a quote.
|
|
893
|
-
|
|
894
|
-
*/
|
|
895
|
-
|
|
896
831
|
quote:Quote;
|
|
897
832
|
|
|
898
|
-
/**
|
|
899
|
-
* @description Can be used to extend the expiry date of a quote.
|
|
900
|
-
|
|
901
|
-
*/
|
|
902
|
-
|
|
903
833
|
quoted_subscription?:QuotedSubscription;
|
|
904
834
|
|
|
905
|
-
/**
|
|
906
|
-
* @description Can be used to extend the expiry date of a quote.
|
|
907
|
-
|
|
908
|
-
*/
|
|
909
|
-
|
|
910
835
|
quoted_charge?:QuotedCharge;
|
|
911
836
|
}
|
|
912
837
|
export interface ExtendExpiryDateInputParam {
|
|
@@ -919,18 +844,8 @@ Ireland** . The first two characters of the VAT number in such a case is `X
|
|
|
919
844
|
valid_till:number;
|
|
920
845
|
}
|
|
921
846
|
export interface EditForChargeItemsAndChargesResponse {
|
|
922
|
-
/**
|
|
923
|
-
* @description Changes the quote produced for adding one-time charges and charge items.
|
|
924
|
-
|
|
925
|
-
*/
|
|
926
|
-
|
|
927
847
|
quote:Quote;
|
|
928
848
|
|
|
929
|
-
/**
|
|
930
|
-
* @description Changes the quote produced for adding one-time charges and charge items.
|
|
931
|
-
|
|
932
|
-
*/
|
|
933
|
-
|
|
934
849
|
quoted_charge?:QuotedCharge;
|
|
935
850
|
}
|
|
936
851
|
export interface EditForChargeItemsAndChargesInputParam {
|
|
@@ -1013,18 +928,8 @@ Ireland** . The first two characters of the VAT number in such a case is `X
|
|
|
1013
928
|
discounts?:{amount?:number,apply_on:ApplyOn,item_price_id?:string,percentage?:number}[];
|
|
1014
929
|
}
|
|
1015
930
|
export interface EditUpdateSubscriptionQuoteForItemsResponse {
|
|
1016
|
-
/**
|
|
1017
|
-
* @description Changes the quote produced for updating the subscription items.
|
|
1018
|
-
|
|
1019
|
-
*/
|
|
1020
|
-
|
|
1021
931
|
quote:Quote;
|
|
1022
932
|
|
|
1023
|
-
/**
|
|
1024
|
-
* @description Changes the quote produced for updating the subscription items.
|
|
1025
|
-
|
|
1026
|
-
*/
|
|
1027
|
-
|
|
1028
933
|
quoted_subscription?:QuotedSubscription;
|
|
1029
934
|
}
|
|
1030
935
|
export interface EditUpdateSubscriptionQuoteForItemsInputParam {
|
|
@@ -1293,11 +1198,6 @@ NOTE: Not to be used if *consolidated invoicing* feature is enabled.
|
|
|
1293
1198
|
sort_by?:{asc?:'date',desc?:'date'};
|
|
1294
1199
|
}
|
|
1295
1200
|
export interface PdfResponse {
|
|
1296
|
-
/**
|
|
1297
|
-
* @description Retrieves the quote as a PDF. The returned URL is secure, allows download and expires in 60 minutes.
|
|
1298
|
-
|
|
1299
|
-
*/
|
|
1300
|
-
|
|
1301
1201
|
download:Download;
|
|
1302
1202
|
}
|
|
1303
1203
|
export interface PdfInputParam {
|
|
@@ -1317,60 +1217,20 @@ NOTE: Not to be used if *consolidated invoicing* feature is enabled.
|
|
|
1317
1217
|
disposition_type?:DispositionType;
|
|
1318
1218
|
}
|
|
1319
1219
|
export interface ConvertResponse {
|
|
1320
|
-
/**
|
|
1321
|
-
* @description This API is to convert a quote to an invoice.
|
|
1322
|
-
|
|
1323
|
-
*/
|
|
1324
|
-
|
|
1325
1220
|
quote:Quote;
|
|
1326
1221
|
|
|
1327
|
-
/**
|
|
1328
|
-
* @description This API is to convert a quote to an invoice.
|
|
1329
|
-
|
|
1330
|
-
*/
|
|
1331
|
-
|
|
1332
1222
|
quoted_subscription?:QuotedSubscription;
|
|
1333
1223
|
|
|
1334
|
-
/**
|
|
1335
|
-
* @description This API is to convert a quote to an invoice.
|
|
1336
|
-
|
|
1337
|
-
*/
|
|
1338
|
-
|
|
1339
1224
|
quoted_charge?:QuotedCharge;
|
|
1340
1225
|
|
|
1341
|
-
/**
|
|
1342
|
-
* @description This API is to convert a quote to an invoice.
|
|
1343
|
-
|
|
1344
|
-
*/
|
|
1345
|
-
|
|
1346
1226
|
customer:Customer;
|
|
1347
1227
|
|
|
1348
|
-
/**
|
|
1349
|
-
* @description This API is to convert a quote to an invoice.
|
|
1350
|
-
|
|
1351
|
-
*/
|
|
1352
|
-
|
|
1353
1228
|
subscription?:Subscription;
|
|
1354
1229
|
|
|
1355
|
-
/**
|
|
1356
|
-
* @description This API is to convert a quote to an invoice.
|
|
1357
|
-
|
|
1358
|
-
*/
|
|
1359
|
-
|
|
1360
1230
|
invoice?:Invoice;
|
|
1361
1231
|
|
|
1362
|
-
/**
|
|
1363
|
-
* @description This API is to convert a quote to an invoice.
|
|
1364
|
-
|
|
1365
|
-
*/
|
|
1366
|
-
|
|
1367
1232
|
credit_note?:CreditNote;
|
|
1368
1233
|
|
|
1369
|
-
/**
|
|
1370
|
-
* @description This API is to convert a quote to an invoice.
|
|
1371
|
-
|
|
1372
|
-
*/
|
|
1373
|
-
|
|
1374
1234
|
unbilled_charges?:UnbilledCharge[];
|
|
1375
1235
|
}
|
|
1376
1236
|
export interface ConvertInputParam {
|
|
@@ -1425,18 +1285,8 @@ This parameter is passed only when there are metered items in the subscription o
|
|
|
1425
1285
|
subscription?:{auto_close_invoices?:boolean,auto_collection?:AutoCollection,id?:string,po_number?:string};
|
|
1426
1286
|
}
|
|
1427
1287
|
export interface CreateForChargeItemsAndChargesResponse {
|
|
1428
|
-
/**
|
|
1429
|
-
* @description Creates a quote using charge-items and one-time charges.
|
|
1430
|
-
|
|
1431
|
-
*/
|
|
1432
|
-
|
|
1433
1288
|
quote:Quote;
|
|
1434
1289
|
|
|
1435
|
-
/**
|
|
1436
|
-
* @description Creates a quote using charge-items and one-time charges.
|
|
1437
|
-
|
|
1438
|
-
*/
|
|
1439
|
-
|
|
1440
1290
|
quoted_charge?:QuotedCharge;
|
|
1441
1291
|
}
|
|
1442
1292
|
export interface CreateForChargeItemsAndChargesInputParam {
|
|
@@ -1533,25 +1383,10 @@ This parameter is passed only when there are metered items in the subscription o
|
|
|
1533
1383
|
discounts?:{amount?:number,apply_on:ApplyOn,item_price_id?:string,percentage?:number}[];
|
|
1534
1384
|
}
|
|
1535
1385
|
export interface DeleteResponse {
|
|
1536
|
-
/**
|
|
1537
|
-
* @description Delete a quote using this API.
|
|
1538
|
-
|
|
1539
|
-
*/
|
|
1540
|
-
|
|
1541
1386
|
quote:Quote;
|
|
1542
1387
|
|
|
1543
|
-
/**
|
|
1544
|
-
* @description Delete a quote using this API.
|
|
1545
|
-
|
|
1546
|
-
*/
|
|
1547
|
-
|
|
1548
1388
|
quoted_subscription?:QuotedSubscription;
|
|
1549
1389
|
|
|
1550
|
-
/**
|
|
1551
|
-
* @description Delete a quote using this API.
|
|
1552
|
-
|
|
1553
|
-
*/
|
|
1554
|
-
|
|
1555
1390
|
quoted_charge?:QuotedCharge;
|
|
1556
1391
|
}
|
|
1557
1392
|
export interface DeleteInputParam {
|
|
@@ -61,11 +61,6 @@ declare module 'chargebee' {
|
|
|
61
61
|
retrieve_latest(input:RetrieveLatestInputParam):ChargebeeRequest<RetrieveLatestResponse>;
|
|
62
62
|
}
|
|
63
63
|
export interface RetrieveLatestResponse {
|
|
64
|
-
/**
|
|
65
|
-
* @description Gets the last migration details.
|
|
66
|
-
|
|
67
|
-
*/
|
|
68
|
-
|
|
69
64
|
resource_migration:ResourceMigration;
|
|
70
65
|
}
|
|
71
66
|
export interface RetrieveLatestInputParam {
|