chargebee 2.19.0 → 2.20.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 CHANGED
@@ -1,3 +1,32 @@
1
+ ### v2.20.0 (2023-03-24)
2
+ * * *
3
+
4
+ #### Fixes:
5
+ * Fixed list_discounts subscriptions API error.
6
+
7
+ #### New Attributes:
8
+ * Einvoice#ReferenceNumber has been added to the CreditNote resource.
9
+ * Einvoice#ReferenceNumber has been added to the Invoice resource.
10
+ * einvoicing_method has been added to the Customer resource.
11
+ * StoreStatus and InvoiceId have been addded to the in_app_subscriptions resource.
12
+
13
+ #### Added Input Parameters:
14
+ * UpdateForItemsRequestParams#discount_quantity and UpdateRequestParams#discount_quantity parameter has been added to the coupon resource.
15
+ * UpdateBillingInfoRequestParams#einvoicing_method and CreateRequestParams#einvoicing_method parameter has been added to the customer resource.
16
+ * CreateCustomerParams#einvoicing_method , UpdateCustomerParams#einvoicing_metho and UpdateForItemsCustomerParams#einvoicing_method parameter has been added to the Subscription resource.
17
+ * CreateSubscriptionInfoParams#meta_data parameter has been added to the purchase resource.
18
+
19
+ #### New Endpoints:
20
+ * credit_note#SendEinvoice has been added to the CreditNote resource.
21
+ * invoice#SendEinvoice has been added to the Invoice resource.
22
+ * in_app_subscriptions#ImportSubscription and in_app_subscriptions#RetrieveStoreSubs requests have been added to the in_app_subscriptions resource.
23
+
24
+ #### New Enum Class:
25
+ * EinvoicingMethod has been added.
26
+ * StoreStatus has been added in in_app_subscriptions resource.
27
+
28
+
29
+
1
30
  ### v2.19.0 (2023-02-17)
2
31
  * * *
3
32
 
package/lib/chargebee.js CHANGED
@@ -8,7 +8,7 @@ ChargeBee._env = {
8
8
  hostSuffix: '.chargebee.com',
9
9
  apiPath: '/api/v2',
10
10
  timeout: 80000,
11
- clientVersion: 'v2.19.0',
11
+ clientVersion: 'v2.20.0',
12
12
  port: 443,
13
13
  timemachineWaitInMillis: 3000,
14
14
  exportWaitInMillis: 3000
@@ -900,6 +900,13 @@ var _endpoints = {
900
900
  "/invoices",
901
901
  "/resend_einvoice",
902
902
  true
903
+ ],
904
+ [
905
+ "send_einvoice",
906
+ "POST",
907
+ "/invoices",
908
+ "/send_einvoice",
909
+ true
903
910
  ]
904
911
  ],
905
912
  "tax_withheld": [],
@@ -988,6 +995,13 @@ var _endpoints = {
988
995
  "/resend_einvoice",
989
996
  true
990
997
  ],
998
+ [
999
+ "send_einvoice",
1000
+ "POST",
1001
+ "/credit_notes",
1002
+ "/send_einvoice",
1003
+ true
1004
+ ],
991
1005
  [
992
1006
  "import_credit_note",
993
1007
  "POST",
@@ -2549,6 +2563,20 @@ var _endpoints = {
2549
2563
  "/in_app_subscriptions",
2550
2564
  "/import_receipt",
2551
2565
  true
2566
+ ],
2567
+ [
2568
+ "import_subscription",
2569
+ "POST",
2570
+ "/in_app_subscriptions",
2571
+ "/import_subscription",
2572
+ true
2573
+ ],
2574
+ [
2575
+ "retrieve_store_subs",
2576
+ "POST",
2577
+ "/in_app_subscriptions",
2578
+ "/retrieve",
2579
+ true
2552
2580
  ]
2553
2581
  ],
2554
2582
  "entitlement_override": [
@@ -2582,6 +2610,7 @@ var _endpoints = {
2582
2610
  "/estimate",
2583
2611
  false
2584
2612
  ]
2585
- ]
2613
+ ],
2614
+ "media": []
2586
2615
  };
2587
- module.exports = _endpoints;
2616
+ module.exports = _endpoints;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"chargebee",
3
- "version":"2.19.0",
3
+ "version":"2.20.0",
4
4
  "description":"A library for integrating with ChargeBee.",
5
5
  "keywords":[
6
6
  "payments",