chargebee 2.26.1 → 2.28.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 (43) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/lib/chargebee.js +1 -1
  3. package/lib/resources/api_endpoints.js +8 -1
  4. package/package.json +1 -1
  5. package/types/resources/Address.d.ts +0 -10
  6. package/types/resources/AttachedItem.d.ts +0 -20
  7. package/types/resources/Card.d.ts +0 -110
  8. package/types/resources/Comment.d.ts +0 -17
  9. package/types/resources/Coupon.d.ts +0 -37
  10. package/types/resources/CouponCode.d.ts +0 -10
  11. package/types/resources/CouponSet.d.ts +0 -30
  12. package/types/resources/CreditNote.d.ts +0 -102
  13. package/types/resources/Customer.d.ts +0 -313
  14. package/types/resources/DifferentialPrice.d.ts +0 -20
  15. package/types/resources/Estimate.d.ts +0 -160
  16. package/types/resources/Event.d.ts +0 -7
  17. package/types/resources/Export.d.ts +0 -81
  18. package/types/resources/Feature.d.ts +0 -69
  19. package/types/resources/Gift.d.ts +0 -55
  20. package/types/resources/HostedPage.d.ts +0 -166
  21. package/types/resources/InAppSubscription.d.ts +0 -267
  22. package/types/resources/Invoice.d.ts +0 -350
  23. package/types/resources/Item.d.ts +0 -20
  24. package/types/resources/ItemEntitlement.d.ts +0 -10
  25. package/types/resources/ItemFamily.d.ts +0 -20
  26. package/types/resources/ItemPrice.d.ts +0 -20
  27. package/types/resources/NonSubscription.d.ts +0 -5
  28. package/types/resources/Order.d.ts +0 -52
  29. package/types/resources/PaymentIntent.d.ts +0 -25
  30. package/types/resources/PaymentSource.d.ts +0 -275
  31. package/types/resources/PaymentVoucher.d.ts +0 -10
  32. package/types/resources/PortalSession.d.ts +0 -33
  33. package/types/resources/PromotionalCredit.d.ts +0 -51
  34. package/types/resources/Purchase.d.ts +0 -68
  35. package/types/resources/Quote.d.ts +0 -165
  36. package/types/resources/ResourceMigration.d.ts +0 -5
  37. package/types/resources/Subscription.d.ts +103 -1001
  38. package/types/resources/TimeMachine.d.ts +0 -17
  39. package/types/resources/Token.d.ts +0 -15
  40. package/types/resources/Transaction.d.ts +0 -30
  41. package/types/resources/UnbilledCharge.d.ts +0 -46
  42. package/types/resources/Usage.d.ts +0 -22
  43. package/types/resources/VirtualBankAccount.d.ts +0 -35
@@ -78,20 +78,10 @@ declare module 'chargebee' {
78
78
  start_afresh(time_machine_name:string, input?:StartAfreshInputParam):ChargebeeRequest<StartAfreshResponse>;
79
79
  }
80
80
  export interface RetrieveResponse {
81
- /**
82
- * @description Retrieves the time machine. Currently only one time machine is available per site and is named &#x27;delorean&#x27;.
83
-
84
- */
85
-
86
81
  time_machine:TimeMachine;
87
82
  }
88
83
 
89
84
  export interface TravelForwardResponse {
90
- /**
91
- * @description Travel forward in time. This operation is **asynchronous** . You need to check if the &quot;start afresh&quot; operation has completed by checking if the time travel status is **successful** by retrieving the time machine in a loop with a minimum delay of 3 secs between two retrieve requests. Use method **waitForTimeTravelCompletion()** on the returned time_machine resource which will block until the time travel completes.
92
-
93
- */
94
-
95
85
  time_machine:TimeMachine;
96
86
  }
97
87
  export interface TravelForwardInputParam {
@@ -104,13 +94,6 @@ declare module 'chargebee' {
104
94
  destination_time?:number;
105
95
  }
106
96
  export interface StartAfreshResponse {
107
- /**
108
- * @description Restart the time machine. This will clear the &quot;customer&quot; data like customer details, subscriptions, invoices, transactions. Also a time travel is initiated to travel back to specified genesis time.
109
-
110
- **Note:** This API call is asynchronous. You need to check if the &quot;start afresh&quot; operation has completed by checking if the time travel status is **successful** by retrieving the time machine in a loop with a minimum delay of 3 secs between two retrieve requests. In case you are using any of the client libraries, use the **wait for time travel completion** function provided as a instance method in the library. Use method **waitForTimeTravelCompletion()** on the returned **time_machine** resource which will block until the time travel completes. Use method **waitForTimeTravelCompletion()** on the returned **time_machine** resource which will block until the time travel completes. Use method **wait_for_time_travel_completion** on the returned **time_machine** resource which will block until the time travel completes. Use method **wait_for_time_travel_completion** on the returned **time_machine** resource which will block until the time travel completes. Use method **WaitForTimeTravelCompletion** on the returned **time_machine** resource which will block until the time travel completes. Use method **wait_for_time_travel_completion** on the returned **time_machine** resource which will block until the time travel completes. Use method **waitForTimeTravelCompletion** on the returned **time_machine** resource which will block until the time travel completes. Use method **wait_for_time_travel_completion** on the returned **time_machine** resource which will block until the time travel completes.
111
-
112
- */
113
-
114
97
  time_machine:TimeMachine;
115
98
  }
116
99
  export interface StartAfreshInputParam {
@@ -110,11 +110,6 @@ declare module 'chargebee' {
110
110
  retrieve(cb_token_id:string):ChargebeeRequest<RetrieveResponse>;
111
111
  }
112
112
  export interface CreateUsingTempTokenResponse {
113
- /**
114
- * @description Generate a token using the one time token created by payment gateways for any specific payment method.
115
-
116
- */
117
-
118
113
  token:Token;
119
114
  }
120
115
  export interface CreateUsingTempTokenInputParam {
@@ -190,11 +185,6 @@ declare module 'chargebee' {
190
185
  token_billing_address?:{city?:string,country_code?:string,line1?:string,line2?:string,state?:string,state_code?:string,zip?:string};
191
186
  }
192
187
  export interface CreateForCardResponse {
193
- /**
194
- * @description Generate a token that holds card related information.
195
-
196
- */
197
-
198
188
  token:Token;
199
189
  }
200
190
  export interface CreateForCardInputParam {
@@ -207,11 +197,6 @@ declare module 'chargebee' {
207
197
  card?:{additional_information?:object,billing_addr1?:string,billing_addr2?:string,billing_city?:string,billing_country?:string,billing_state?:string,billing_state_code?:string,billing_zip?:string,card_type?:'discover' | 'bancontact' | 'other' | 'visa' | 'jcb' | 'diners_club' | 'mastercard' | 'not_applicable' | 'american_express',cvv?:string,expiry_month:number,expiry_year:number,first_name?:string,gateway_account_id?:string,last_name?:string,number:string};
208
198
  }
209
199
  export interface RetrieveResponse {
210
- /**
211
- * @description Retrieve a token using token ID.
212
-
213
- */
214
-
215
200
  token:Token;
216
201
  }
217
202
 
@@ -362,11 +362,6 @@ declare module 'chargebee' {
362
362
  refund(transaction_id:string, input?:RefundInputParam):ChargebeeRequest<RefundResponse>;
363
363
  }
364
364
  export interface RecordRefundResponse {
365
- /**
366
- * @description Records a refund made offline. Applicable only for &#x60;transaction&#x60;s of [type](transactions#transaction_type) &#x3D; &#x60;payment&#x60;.
367
-
368
- */
369
-
370
365
  transaction:Transaction;
371
366
  }
372
367
  export interface RecordRefundInputParam {
@@ -557,20 +552,10 @@ declare module 'chargebee' {
557
552
  sort_by?:{asc?:'date' | 'updated_at',desc?:'date' | 'updated_at'};
558
553
  }
559
554
  export interface VoidTransactionResponse {
560
- /**
561
- * @description This API voids the specific authorization transaction in order to release the blocked funds from the customer&#x27;s card. Voiding an already captured or voided transaction is not possible.
562
-
563
- */
564
-
565
555
  transaction:Transaction;
566
556
  }
567
557
 
568
558
  export interface CreateAuthorizationResponse {
569
- /**
570
- * @description Authorizes a specific amount in customer&#x27;s Credit card, which can be collected within a span of time. Read more on authorization and capture [here](https://www.chargebee.com/docs/stripe.html#auth-and-capture).
571
-
572
- */
573
-
574
559
  transaction:Transaction;
575
560
  }
576
561
  export interface CreateAuthorizationInputParam {
@@ -604,11 +589,6 @@ declare module 'chargebee' {
604
589
  amount:number;
605
590
  }
606
591
  export interface RetrieveResponse {
607
- /**
608
- * @description Retrieve a transaction identified by its unique id.
609
-
610
- */
611
-
612
592
  transaction:Transaction;
613
593
  }
614
594
 
@@ -644,11 +624,6 @@ declare module 'chargebee' {
644
624
  offset?:string;
645
625
  }
646
626
  export interface DeleteOfflineTransactionResponse {
647
- /**
648
- * @description This API deletes an offline transaction. However, to delete an offline transaction all payment allocations associated with the transaction must be removed.
649
-
650
- */
651
-
652
627
  transaction:Transaction;
653
628
  }
654
629
  export interface DeleteOfflineTransactionInputParam {
@@ -661,11 +636,6 @@ declare module 'chargebee' {
661
636
  comment?:string;
662
637
  }
663
638
  export interface RefundResponse {
664
- /**
665
- * @description Refunds an online payment. Applicable only for &#x60;transaction&#x60;s of [type](transactions#transaction_type) &#x3D; &#x60;payment&#x60;. You can only refund a &#x60;transaction&#x60; whose [status](transactions#transaction_status)&#x60; &#x60; is &#x60;success&#x60;.
666
-
667
- */
668
-
669
639
  transaction:Transaction;
670
640
  }
671
641
  export interface RefundInputParam {
@@ -222,32 +222,10 @@ If consolidated invoicing is enabled and the parameter &#x27;customer_id&#x27; i
222
222
  create(input:CreateInputParam):ChargebeeRequest<CreateResponse>;
223
223
  }
224
224
  export interface DeleteResponse {
225
- /**
226
- * @description Use this API to delete an unbilled charge by specifying the id of the charge.
227
-
228
- */
229
-
230
225
  unbilled_charge:UnbilledCharge;
231
226
  }
232
227
 
233
228
  export interface InvoiceNowEstimateResponse {
234
- /**
235
- * @description This is similar to the &quot;Create an invoice for unbilled charges&quot; API but no invoice will be created, only an estimate for this operation is created.
236
-
237
- In the estimate response,
238
-
239
- * **estimate.invoice_estimates** is an array of **estimate.invoice_estimate**. This has the details of the invoices that will be generated now.
240
-
241
- **Note:**
242
-
243
- * This API when invoked does not perform the actual operation. It just generates an estimate.
244
- * Both *subscription_id* and *customer_id* parameters should not be given at the same time.
245
-
246
-
247
-
248
-
249
- */
250
-
251
229
  estimate:Estimate;
252
230
  }
253
231
  export interface InvoiceNowEstimateInputParam {
@@ -267,25 +245,6 @@ In the estimate response,
267
245
  customer_id?:string;
268
246
  }
269
247
  export interface InvoiceUnbilledChargesResponse {
270
- /**
271
- * @description Use this API to bill the [unbilled charges](https://www.chargebee.com/docs/unbilled-charges.html). Available Credits and Excess Payments will automatically be applied while creating the invoice.
272
-
273
- If the *Auto Collection* is turned on for the particular customer, the invoice will be created in payment_due state and the payment collection will be scheduled immediately.
274
-
275
- During invoice creation, the PO number for the line items will be filled from the subscription&#x27;s current PO number, if available.
276
-
277
- If no recurring item is present in the created invoice, the invoice will be marked as recurring&#x3D;false.
278
-
279
- If consolidated invoicing is enabled and the parameter &#x27;customer_id&#x27; is passed, multiple invoices can be created based on the following factors.
280
-
281
- * Currency
282
- * PO number if &#x27;Group by PO number&#x27; is enabled
283
- * Shipping address
284
- * Auto Collection
285
- * Payment method
286
-
287
- */
288
-
289
248
  invoices:Invoice[];
290
249
  }
291
250
  export interface InvoiceUnbilledChargesInputParam {
@@ -364,11 +323,6 @@ If consolidated invoicing is enabled and the parameter &#x27;customer_id&#x27; i
364
323
  customer_id?:{in?:string,is?:string,is_not?:string,is_present?:'true' | 'false',not_in?:string,starts_with?:string};
365
324
  }
366
325
  export interface CreateResponse {
367
- /**
368
- * @description This endpoint creates unbilled charges for a subscription.
369
-
370
- */
371
-
372
326
  unbilled_charges:UnbilledCharge[];
373
327
  }
374
328
  export interface CreateInputParam {
@@ -127,11 +127,6 @@ The maximum number of usages that can be recorded for the entire lifetime of a s
127
127
  list(input:ListInputParam):ChargebeeRequest<ListResponse>;
128
128
  }
129
129
  export interface PdfResponse {
130
- /**
131
- * @description Retrieves usages record for an invoice in PDF file format.
132
-
133
- */
134
-
135
130
  download:Download;
136
131
  }
137
132
  export interface PdfInputParam {
@@ -151,11 +146,6 @@ The maximum number of usages that can be recorded for the entire lifetime of a s
151
146
  invoice?:{id:string};
152
147
  }
153
148
  export interface RetrieveResponse {
154
- /**
155
- * @description Retrieves a usage record of a specific subscription.
156
-
157
- */
158
-
159
149
  usage:Usage;
160
150
  }
161
151
  export interface RetrieveInputParam {
@@ -168,13 +158,6 @@ The maximum number of usages that can be recorded for the entire lifetime of a s
168
158
  id:string;
169
159
  }
170
160
  export interface CreateResponse {
171
- /**
172
- * @description Creates a usage record for an item price in a subscription. The item price must belong to a [metered](/docs/api/items?prod_cat_ver&#x3D;2#item_metered) item.
173
- **Max Usages**
174
- The maximum number of usages that can be recorded for the entire lifetime of a subscription is 5000. [Contact Support](https://chargebee.freshdesk.com/support/home) if you want this limit to be increased for your site.
175
-
176
- */
177
-
178
161
  usage:Usage;
179
162
  }
180
163
  export interface CreateInputParam {
@@ -216,11 +199,6 @@ The maximum number of usages that can be recorded for the entire lifetime of a s
216
199
  note?:string;
217
200
  }
218
201
  export interface DeleteResponse {
219
- /**
220
- * @description Deletes a usage record. This operation cannot be invoked for a usage record that has been [invoiced](usages?prod_cat_ver&#x3D;2#invoicing_usages).
221
-
222
- */
223
-
224
202
  usage:Usage;
225
203
  }
226
204
  export interface DeleteInputParam {
@@ -152,20 +152,10 @@ declare module 'chargebee' {
152
152
  create_using_permanent_token(input:CreateUsingPermanentTokenInputParam):ChargebeeRequest<CreateUsingPermanentTokenResponse>;
153
153
  }
154
154
  export interface DeleteLocalResponse {
155
- /**
156
- * @description Deletes virtual bank accounts from Chargebee. Payment method in the payment gateway, and Auto Collection settings in Chargebee are not affected.
157
-
158
- */
159
-
160
155
  virtual_bank_account:VirtualBankAccount;
161
156
  }
162
157
 
163
158
  export interface DeleteResponse {
164
- /**
165
- * @description Deletes a virtual bank account. If there is no virtual bank account present in the gateway for the customer, this API will return successfully without throwing an error.
166
-
167
- */
168
-
169
159
  virtual_bank_account:VirtualBankAccount;
170
160
  }
171
161
 
@@ -222,18 +212,8 @@ declare module 'chargebee' {
222
212
  created_at?:{after?:string,before?:string,between?:string,on?:string};
223
213
  }
224
214
  export interface CreateResponse {
225
- /**
226
- * @description Creates a virtual bank account for a customer. Email address is mandatory for virtual bank account creation. All notifications related to this virtual bank account will be sent to the email address you specify.
227
-
228
- */
229
-
230
215
  virtual_bank_account:VirtualBankAccount;
231
216
 
232
- /**
233
- * @description Creates a virtual bank account for a customer. Email address is mandatory for virtual bank account creation. All notifications related to this virtual bank account will be sent to the email address you specify.
234
-
235
- */
236
-
237
217
  customer?:Customer;
238
218
  }
239
219
  export interface CreateInputParam {
@@ -260,27 +240,12 @@ declare module 'chargebee' {
260
240
  scheme?:'ach_credit' | 'sepa_credit';
261
241
  }
262
242
  export interface RetrieveResponse {
263
- /**
264
- * @description Retrieves the virtual bank account identified by the unique identifier.
265
-
266
- */
267
-
268
243
  virtual_bank_account:VirtualBankAccount;
269
244
  }
270
245
 
271
246
  export interface CreateUsingPermanentTokenResponse {
272
- /**
273
- * @description Creates a virtual bank account using the identifier provided by the gateway.
274
-
275
- */
276
-
277
247
  virtual_bank_account:VirtualBankAccount;
278
248
 
279
- /**
280
- * @description Creates a virtual bank account using the identifier provided by the gateway.
281
-
282
- */
283
-
284
249
  customer?:Customer;
285
250
  }
286
251
  export interface CreateUsingPermanentTokenInputParam {