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.
Files changed (43) hide show
  1. package/CHANGELOG.md +20 -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
@@ -124,25 +124,10 @@ declare module 'chargebee' {
124
124
  claim(gift_id:string):ChargebeeRequest<ClaimResponse>;
125
125
  }
126
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
127
  gift:Gift;
133
128
 
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
129
  subscription:Subscription;
140
130
 
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
131
  invoice?:Invoice;
147
132
  }
148
133
  export interface CreateForItemsInputParam {
@@ -218,34 +203,14 @@ declare module 'chargebee' {
218
203
  subscription_items?:{item_price_id?:string,quantity?:number,quantity_in_decimal?:string}[];
219
204
  }
220
205
  export interface CancelResponse {
221
- /**
222
- * @description This API allows to cancel gifts. Only gift in &#x27;scheduled&#x27; and &#x27;unclaimed&#x27; states can be cancelled.
223
-
224
- */
225
-
226
206
  gift:Gift;
227
207
 
228
- /**
229
- * @description This API allows to cancel gifts. Only gift in &#x27;scheduled&#x27; and &#x27;unclaimed&#x27; states can be cancelled.
230
-
231
- */
232
-
233
208
  subscription:Subscription;
234
209
  }
235
210
 
236
211
  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
212
  gift:Gift;
243
213
 
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
214
  subscription:Subscription;
250
215
  }
251
216
  export interface UpdateGiftInputParam {
@@ -317,34 +282,14 @@ declare module 'chargebee' {
317
282
  gifter?:{customer_id?:{is?:string,is_not?:string,starts_with?:string}};
318
283
  }
319
284
  export interface RetrieveResponse {
320
- /**
321
- * @description Retrieves a gift subscription. This API accepts the gift &#x27;id&#x27; and returns the gift along with the subscription.
322
-
323
- */
324
-
325
285
  gift:Gift;
326
286
 
327
- /**
328
- * @description Retrieves a gift subscription. This API accepts the gift &#x27;id&#x27; and returns the gift along with the subscription.
329
-
330
- */
331
-
332
287
  subscription:Subscription;
333
288
  }
334
289
 
335
290
  export interface ClaimResponse {
336
- /**
337
- * @description Claiming a gift will move the status to &#x27;claimed&#x27;. Only gifts in &#x27;unclaimed&#x27; state can be claimed.
338
-
339
- */
340
-
341
291
  gift:Gift;
342
292
 
343
- /**
344
- * @description Claiming a gift will move the status to &#x27;claimed&#x27;. Only gifts in &#x27;unclaimed&#x27; state can be claimed.
345
-
346
- */
347
-
348
293
  subscription:Subscription;
349
294
  }
350
295
 
@@ -297,26 +297,6 @@ Customer locale is used to generate the PDF in the required language. If a custo
297
297
  manage_payment_sources(input?:ManagePaymentSourcesInputParam):ChargebeeRequest<ManagePaymentSourcesResponse>;
298
298
  }
299
299
  export interface CheckoutOneTimeForItemsResponse {
300
- /**
301
- * @description Create a Chargebee hosted page to accept payment details from a customer and checkout [charge-items](./items?prod_cat_ver&#x3D;2) and [one-time charges](./invoices?prod_cat_ver&#x3D;2#create_invoice_for_items_and_one-time_charges).
302
-
303
- The following steps describe how best to use this API:
304
-
305
- 1. Call this endpoint, providing [item prices](./item_prices?prod_cat_ver&#x3D;2), [charges](./items?prod_cat_ver&#x3D;2), [coupons](./coupons?prod_cat_ver&#x3D;2) and a host of other details such as billing and shipping addresses of the customer, to be prefilled on the checkout page.
306
- 2. Send the customer to the Checkout &#x60;url&#x60; received in the response.
307
- 3. Once they complete checkout, the set of charge-items and one-time charges are automatically invoiced against the respective &#x60;customer&#x60; record in Chargebee, and they are redirected to the &#x60;redirect_url&#x60; with the &#x60;id&#x60; and &#x60;state&#x60; attributes passed as query string parameters.
308
- 4. [Retrieve the hosted page](./hosted_pages?prod_cat_ver&#x3D;2#retrieve_a_hosted_page) at this stage to get the invoice details.
309
-
310
- #### Customer resource lookup and creation {#customer_lookup1}
311
-
312
- When [customer[id]](/docs/api/hosted_pages#checkout_charge_items_and_one_time_charges_customer_id) is provided for this operation, it is looked up by Chargebee, and if found, the hosted_page is created for it. If not found, a new customer resource is created with the ID provided, and the hosted_page is created.
313
-
314
- ##### Multiple business entities
315
-
316
- If multiple [business entities](/docs/api/advanced-features#mbe) are created for the site, the customer resource lookup and creation happen within the [context](/docs/api/advanced-features#mbe-context) of the business entity [specified](/docs/api/advanced-features#mbe-header-main) in this API call. If no business entity is specified, the customer resource lookup is performed within the [site context](/docs/api/advanced-features#mbe-context) , and if not found, the resource is created for the [default business entity](/docs/api/advanced-features#mbe-default-be) of the site.
317
-
318
- */
319
-
320
300
  hosted_page:HostedPage;
321
301
  }
322
302
  export interface CheckoutOneTimeForItemsInputParam {
@@ -467,21 +447,6 @@ An alternative way of passing this parameter is by means of a [custom HTTP heade
467
447
  entity_identifiers?:{id?:string,operation?:Operation,scheme?:string,standard?:string,value?:string}[];
468
448
  }
469
449
  export interface UpdatePaymentMethodResponse {
470
- /**
471
- * @description **Note:** If you&#x27;re using [In-App Checkout](https://www.chargebee.com/docs/2.0/checkout.html), use [Manage Payment Sources API](/docs/api/hosted_pages#manage_payment_sources) to request your customers to update their payment method details or change their payment method.
472
-
473
- Using this API, you can request your customers to update their payment method details or change their payment method. This is used in scenarios like customers updating their payment methods before the end of trial or customers switching among payment methods.
474
-
475
- When this API is invoked, it returns a hosted page URL. When the customers are directed to this URL, they will be able to change/update their payment methods.
476
-
477
- Depending on the payment methods (Card, PayPal Express Checkout, Amazon Payments) that you offer your customers, they will find options to switch among the various methods of payment.
478
- **Note:**
479
-
480
- * If the card\[gateway\] parameter is passed, and the customer chooses Card as a payment method, then the card details are stored in the gateway which is passed. However, if the card\[gateway\] parameter is passed and the customer chooses PayPal Express Checkout/Amazon Payments as a payment method, the gateway passed will be ignored.
481
- * The option of embedding into an iframe is not supported for PayPal Express Checkout and Amazon Payments as customers are redirected to the respective website pages. Hence if you have PayPal Express Checkout/Amazon Payments configured and pass the parameter embed&#x3D;true, this will result in an unsuccessful API request. Also, if you have all the three payment methods (Card, Paypal Express Checkout and Amazon Payments) configured and pass the parameter embed&#x3D;true, the returned hosted page URL will show only Card Payment as a payment method.
482
-
483
- */
484
-
485
450
  hosted_page:HostedPage;
486
451
  }
487
452
  export interface UpdatePaymentMethodInputParam {
@@ -544,11 +509,6 @@ Depending on the payment methods (Card, PayPal Express Checkout, Amazon Payments
544
509
  card?:{gateway_account_id?:string};
545
510
  }
546
511
  export interface ExtendSubscriptionResponse {
547
- /**
548
- * @description This API generates a hosted page URL to extend the billing cycle of a subscription.
549
-
550
- */
551
-
552
512
  hosted_page:HostedPage;
553
513
  }
554
514
  export interface ExtendSubscriptionInputParam {
@@ -575,11 +535,6 @@ Depending on the payment methods (Card, PayPal Express Checkout, Amazon Payments
575
535
  subscription?:{id:string};
576
536
  }
577
537
  export interface EventsResponse {
578
- /**
579
- * @description Use this API to notify Chargebee about important events that occur on your web pages, such as subscription cancellations. An event contains data about affected resources and additional details such as when the change occurred.
580
-
581
- */
582
-
583
538
  success:boolean;
584
539
  }
585
540
  export interface EventsInputParam {
@@ -609,27 +564,6 @@ Depending on the payment methods (Card, PayPal Express Checkout, Amazon Payments
609
564
  event_data:object;
610
565
  }
611
566
  export interface CheckoutGiftForItemsResponse {
612
- /**
613
- * @description Creates a hosted page for a customer (called the gifter) to gift a subscription to another customer (called the receiver).
614
-
615
- #### Gifter customer resource lookup and creation {#gifter_lookup}
616
-
617
- When [gifter[customer_id]](/docs/api/hosted_pages#checkout_gift_subscription_for_items_gifter_customer_id) is provided, it is looked up in Chargebee when the gifter completes the hosted page checkout. If not found, a new customer resource is created with this ID.
618
-
619
- ##### Multiple business entities
620
-
621
- If multiple [business entities](/docs/api/advanced-features?prod_cat_ver&#x3D;2#mbe) are created for the site, the lookup and creation of the gifter customer resource happen within the [context](/docs/api/advanced-features#mbe-context) of the business entity specified in this API call. If no business entity is [specified](/docs/api/advanced-features#mbe-header-main), the customer resource lookup is performed within the [site context](/docs/api/advanced-features#mbe-context), and if not found, the resource is created for the [default business entity](/docs/api/advanced-features#mbe-default-be) of the site.
622
-
623
- #### Gift receiver customer resource lookup and creation {#receiver_lookup}
624
-
625
- Once the gifter checks out using the hosted page returned by this endpoint, Chargebee checks if a customer resource with the receiver&#x27;s email address exists. The first such customer record is considered the receiver&#x27;s customer resource. A new customer resource is created for the receiver if none are found.
626
-
627
- ##### Multiple business entities
628
-
629
- If multiple [business entities](/docs/api/advanced-features?prod_cat_ver&#x3D;2#mbe) are created for the site, the lookup and creation of the gift receiver&#x27;s customer resource happen within the [context](/docs/api/advanced-features#mbe-context) of the business entity of the gifter
630
-
631
- */
632
-
633
567
  hosted_page:HostedPage;
634
568
  }
635
569
  export interface CheckoutGiftForItemsInputParam {
@@ -742,11 +676,6 @@ Gifter customer resource lookup and creation.
742
676
  updated_at?:{after?:string,before?:string,between?:string,on?:string};
743
677
  }
744
678
  export interface ViewVoucherResponse {
745
- /**
746
- * @description Creates a &#x60;hosted_page&#x60; resource of type, &#x60;view_voucher&#x60;. When your end customers choose the Boleto payment method, you can generate a voucher for their pending invoice. Using this API, you can create a voucher_detail hosted page for your customers and email them a link to this hosted page. Your customers can review the voucher details on the page by clicking the link in the email.
747
-
748
- */
749
-
750
679
  hosted_page:HostedPage;
751
680
  }
752
681
  export interface ViewVoucherInputParam {
@@ -766,11 +695,6 @@ Gifter customer resource lookup and creation.
766
695
  customer?:{locale?:string};
767
696
  }
768
697
  export interface CollectNowResponse {
769
- /**
770
- * @description This API generates a hosted page URL to collect due payments for the customer.
771
-
772
- */
773
-
774
698
  hosted_page:HostedPage;
775
699
  }
776
700
  export interface CollectNowInputParam {
@@ -804,11 +728,6 @@ Gifter customer resource lookup and creation.
804
728
  card?:{gateway_account_id?:string};
805
729
  }
806
730
  export interface AcceptQuoteResponse {
807
- /**
808
- * @description This API generates a hosted page URL for the customer to accept a quote. If the hosted page URL has expired, a new URL will be generated automatically.
809
-
810
- */
811
-
812
731
  hosted_page:HostedPage;
813
732
  }
814
733
  export interface AcceptQuoteInputParam {
@@ -835,29 +754,6 @@ Gifter customer resource lookup and creation.
835
754
  quote?:{id:string};
836
755
  }
837
756
  export interface CheckoutNewForItemsResponse {
838
- /**
839
- * @description Create a Chargebee hosted page to accept payment details from a customer and checkout a new subscription.
840
-
841
- The following steps describe how best to use this API:
842
-
843
- 1. Call this endpoint, providing [item prices](./item_prices?prod_cat_ver&#x3D;2), [coupons](./coupons?prod_cat_ver&#x3D;2) and a host of other details such as billing and shipping addresses to be prefilled for the customer on the checkout page.
844
- 2. Send the customer to the Checkout &#x60;url&#x60; received in the response.
845
- 3. Once they complete checkout, a new subscription is automatically created and the customer is redirected to the &#x60;redirect_url&#x60; with the &#x60;id&#x60; and &#x60;state&#x60; attributes passed as query string parameters.
846
- Although the customer will be redirected to the &#x60;redirect_url&#x60; after successful checkout, we do not recommend relying on it for completing critical post-checkout actions. This is because redirection may not happen due to unforeseen reasons. Chargebee recommends listening to appropriate webhooks such as [subscription_created](./events#subscription_created) or [invoice_generated](./events#invoice_generated) to verify a successful checkout.
847
- 4. [Retrieve the hosted page](./hosted_pages?prod_cat_ver&#x3D;2#retrieve_a_hosted_page) at this stage to get the subscription and invoice details.
848
-
849
-
850
-
851
- #### Customer resource lookup and creation {#customer_lookup2}
852
-
853
- When the [customer[id]](/docs/api/hosted_pages#create_checkout_for_a_new_subscription_customer_id) parameter is provided and if a customer resource with the ID is found to be already created in Chargebee, the subscription is created under that customer resource. If not found, then a new customer resource is created with the ID provided and the subscription is created under it.
854
-
855
- ##### Multiple business entities
856
-
857
- If multiple [business entities](/docs/api/advanced-features?prod_cat_ver&#x3D;2#mbe) are created for the site, the customer resource lookup and creation happen within the [context](/docs/api/advanced-features#mbe-context) of the business entity [specified](/docs/api/advanced-features#mbe-header-main) in this API call. If no business entity is specified, the customer resource lookup is performed within the [site context](/docs/api/advanced-features#mbe-context), and if not found, the resource is created for the [default business entity](/docs/api/advanced-features#mbe-default-be) of the site.
858
-
859
- */
860
-
861
757
  hosted_page:HostedPage;
862
758
  }
863
759
  export interface CheckoutNewForItemsInputParam {
@@ -1029,11 +925,6 @@ An alternative way of passing this parameter is by means of a [custom HTTP heade
1029
925
  entity_identifiers?:{id?:string,operation?:Operation,scheme?:string,standard?:string,value?:string}[];
1030
926
  }
1031
927
  export interface ClaimGiftResponse {
1032
- /**
1033
- * @description This API generates a hosted page URL to claim a gifted subscription.
1034
-
1035
- */
1036
-
1037
928
  hosted_page:HostedPage;
1038
929
  }
1039
930
  export interface ClaimGiftInputParam {
@@ -1067,22 +958,6 @@ An alternative way of passing this parameter is by means of a [custom HTTP heade
1067
958
  customer?:{locale?:string};
1068
959
  }
1069
960
  export interface CheckoutExistingForItemsResponse {
1070
- /**
1071
- * @description Create a Chargebee hosted page to accept payment details from a customer and checkout to update the subscription.
1072
-
1073
- The following steps describe how best to use this API:
1074
-
1075
- 1. Provide [item prices](./item_prices?prod_cat_ver&#x3D;2), [coupons](./coupons?prod_cat_ver&#x3D;2) and a host of other details such as billing and shipping addresses to be prefilled for the customer on the checkout page.
1076
- 2. Send the customer to the Checkout &#x60;url&#x60; received in the response. They can now add a payment method or use an existing one, to complete the checkout.
1077
- 3. The subscription is updated and the customer is redirected to the &#x60;redirect_url&#x60; with the &#x60;id&#x60; and &#x60;state&#x60; attributes passed as query string parameters.
1078
- Although the customer will be redirected to the &#x60;redirect_url&#x60; after successful checkout, we do not recommend relying on it for completing critical post-checkout actions. This is because redirection may not happen due to unforeseen reasons. Chargebee recommends listening to appropriate webhooks such as [subscription_created](./events#subscription_created) or [invoice_generated](./events#invoice_generated) to verify a successful checkout.
1079
- 4. [Retrieve the hosted page](./hosted_pages?prod_cat_ver&#x3D;2#retrieve_a_hosted_page) at this stage to get the subscription and invoice details.
1080
-
1081
-
1082
-
1083
-
1084
- */
1085
-
1086
961
  hosted_page:HostedPage;
1087
962
  }
1088
963
  export interface CheckoutExistingForItemsInputParam {
@@ -1276,12 +1151,6 @@ The following steps describe how best to use this API:
1276
1151
  entity_identifiers?:{id?:string,operation?:Operation,scheme?:string,standard?:string,value?:string}[];
1277
1152
  }
1278
1153
  export interface PreCancelResponse {
1279
- /**
1280
- * @description Creates a &#x60;hosted_page&#x60; resource of &#x60;type&#x60; &#x60;pre_cancel&#x60;. Route canceling users to this page to provide them a retention experience and start saving revenue.
1281
- The hosted page is created in accordance with the retention experience [configured in the Chargebee Retention app](https://help.brightback.com/article/239-steps-to-get-brightback-ready-to-launch-for-chargebee-billing-merchants), along with the data provided as input to this endpoint. Call the endpoint before your customer clicks the **Cancel** button, and when they do, route them to the [url](https://apidocs.chargebee.com/docs/api/hosted_pages#hosted_page_url) in the endpoint response.
1282
-
1283
- */
1284
-
1285
1154
  hosted_page:HostedPage;
1286
1155
  }
1287
1156
  export interface PreCancelInputParam {
@@ -1318,26 +1187,10 @@ Although only &#x60;pass_thru_content.custom&#x60; is sent to Chargebee Retentio
1318
1187
  subscription?:{id:string};
1319
1188
  }
1320
1189
  export interface AcknowledgeResponse {
1321
- /**
1322
- * @description When a hosted page is successfully completed by the user and processed by Chargebee, its [&#x60;state&#x60;](hosted_pages#hosted_page_state) is automatically changed to &#x60;succeeded&#x60;. Acknowledging a hosted page confirms that you have moved the customer details from Chargebee into your system and are ready to fulfill it. This API is used to acknowledge the hosted page in &#x60;succeeded&#x60; state and change its state to &#x60;acknowledged&#x60;.
1323
-
1324
- **Note:** The hosted page status must be succeeded for this API call to be allowed.
1325
-
1326
- */
1327
-
1328
1190
  hosted_page:HostedPage;
1329
1191
  }
1330
1192
 
1331
1193
  export interface RetrieveAgreementPdfResponse {
1332
- /**
1333
- * @description This is applicable only for Direct Debit via SEPA, Bacs, Bg Autogiro, BECS (for both Australia and New Zealand) and PAD. For Direct Debit, the customer needs to accept an agreement that allows the merchant to debit their bank account. This agreement PDF allows you to easily display scheme-rules compliant Direct Debit mandates to your customers.
1334
-
1335
- This API retrieves the redirect link to the corresponding agreement for customers. The agreement PDF can be your &quot;Thank You&quot; page or sent by email to customers. Communicating this PDF to your customers is mandatory.
1336
-
1337
- Customer locale is used to generate the PDF in the required language. If a customer language is not supported, the PDF is generated in English. Checkout the [list of languages](https://developer.gocardless.com/api-reference/#mandate-pdfs-create-a-mandate-pdf) supported by GoCardless.
1338
-
1339
- */
1340
-
1341
1194
  hosted_page:HostedPage;
1342
1195
  }
1343
1196
  export interface RetrieveAgreementPdfInputParam {
@@ -1350,29 +1203,10 @@ Customer locale is used to generate the PDF in the required language. If a custo
1350
1203
  payment_source_id:string;
1351
1204
  }
1352
1205
  export interface RetrieveResponse {
1353
- /**
1354
- * @description When you retrieve a hosted page whose &#x60;status&#x60; is &#x60;successful&#x60;, the &#x60;content&#x60; attribute has the following objects based on the &#x60;type&#x60; of the hosted page.
1355
-
1356
- |---------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
1357
- | **&#x60;type&#x60; of hosted page** | **&#x60;content&#x60; attribute constituents** |
1358
- | &#x60;checkout_new&#x60; | * &#x60;customer&#x60;: the object representing the details of the [Customer](/docs/api/customers#customer_attributes) for whom the subscription was created. * &#x60;subscription&#x60;: the new Subscription object created. * &#x60;card&#x60;: the [Card](/docs/api/cards#card_attributes) object if the [payment method](/docs/api/customers#customer_payment_method) &#x60;type&#x60; used was &#x60;card&#x60;. * &#x60;invoice&#x60;: the Invoice object, if an invoice was generated. |
1359
- | &#x60;checkout_existing&#x60; | * &#x60;customer&#x60;: the object representing the details of the [Customer](/docs/api/customers#customer_attributes) whose subscription was changed. * &#x60;subscription&#x60;: the updated Subscription object created. * &#x60;card&#x60;: the [Card](/docs/api/cards#card_attributes) object if the [payment method](/docs/api/customers#customer_payment_method) &#x60;type&#x60; used was &#x60;card&#x60;. * &#x60;invoice&#x60;: the Invoice object, if an invoice was generated for the subscription change. |
1360
- | &#x60;update_payment_method&#x60; | * &#x60;customer&#x60;: the object representing the details of the [Customer](/docs/api/customers#customer_attributes) whose subscription was changed. * &#x60;card&#x60;: the [Card](/docs/api/cards#card_attributes) object if the new [payment method](/docs/api/customers#customer_payment_method) added was of &#x60;type&#x60; &#x60;card&#x60;. |
1361
- | &#x60;pre_cancel&#x60; | &#x60;retention&#x60;: Use the &#x60;bypass&#x60; flag in this object to route the cancellation flow to the merchants&#x27; portal or the Chargebee Retention. * If &#x60;bypass&#x60; flag is &#x60;true&#x60;, you should route the end-customers to your native cancellation flow. * If the &#x60;bypass&#x60; flag is &#x60;false&#x60;, you should route the end-customers to the hosted page URL. **Note:** Retention is currently in &#x60;beta&#x60;. To enable Retention, [Contact Support.](https://support.chargebee.com/support/home) |
1362
- | &#x60;collect_now&#x60; | * &#x60;transactions&#x60;: this object should contain a list of [transactions](/docs/api/transactions#transaction_attributes) triggered from the &#x60;collect_now&#x60; hosted page. Each transaction in the list should be represented as an array that includes relevant information about the transaction, such as transaction ID, customer ID, amount, currency, payment method, and any other relevant details. * &#x60;customer&#x60;: this object should contain the customer record associated with the transaction. The key, &#x60;customer_id&#x60; is used to link the transaction to the corresponding customer record. |
1363
-
1364
-
1365
- */
1366
-
1367
1206
  hosted_page:HostedPage;
1368
1207
  }
1369
1208
 
1370
1209
  export interface ManagePaymentSourcesResponse {
1371
- /**
1372
- * @description This API generates a hosted page URL to add new or update existing payment sources for the customer.
1373
-
1374
- */
1375
-
1376
1210
  hosted_page:HostedPage;
1377
1211
  }
1378
1212
  export interface ManagePaymentSourcesInputParam {