chargebee 2.7.0 → 2.8.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 +28 -0
- package/lib/chargebee.js +7 -2
- package/lib/resources/api_endpoints.js +22 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
### v2.8.0 (2021-12-08)
|
|
2
|
+
* * *
|
|
3
|
+
|
|
4
|
+
### Fixes:
|
|
5
|
+
* Exposed function chargebee#updateRequestTimeoutInMillis to set custom time out.
|
|
6
|
+
* Updated default request timeout to 80000ms.
|
|
7
|
+
|
|
8
|
+
#### New endpoints:
|
|
9
|
+
* payment_sources#update_bank_account have been added in payment_sources resource.
|
|
10
|
+
* item_price#item_price_find_applicable_items and item_price#item_price_find_applicable_item_prices have been added in item_price resource.
|
|
11
|
+
|
|
12
|
+
#### New Attributes:
|
|
13
|
+
* hsn_code have been added to the resource addon, item_price and plan.
|
|
14
|
+
* first_name, last_name and email have been added to the resource payment_sources.
|
|
15
|
+
|
|
16
|
+
#### New Resource:
|
|
17
|
+
* TaxWithheld has been added.Applicable only for API V2.
|
|
18
|
+
|
|
19
|
+
#### New Input parameters:
|
|
20
|
+
* hsn_code have been added to addons#create_an_addon, addons#update_an_addon, plan#create_an_plan and plan#update_an_plan apis.
|
|
21
|
+
* bank_account[first_name],bank_account[last_name] and bank_account[email] have been added to payment_sources#update_bank_account api.
|
|
22
|
+
* charges[hsn_code] have been added in estimate#Create_Invoice, estimate#Create_Invoice_For_Items, hosted_pages#Checkout_One_Time, hosted_pages#Checkout_One_Time_For_Items, invoice#create_an_invoice, invoice#Create_For_Charge_Items_And_Charges and unbilledCharge#create_an_unbilledCharge apis.
|
|
23
|
+
* tax_detail[hsn_code] have been added in item_price#create_an_itemPrice and item_price#update_an_itemPrice apis.
|
|
24
|
+
* include_deleted have been added in plan#plan_list and addon#addon_list apis.Applicable only for Product Catalog V1.
|
|
25
|
+
|
|
26
|
+
#### New Enum values:
|
|
27
|
+
* subscription_activated_with_backdating, tax_withheld_recorded, tax_withheld_deleted and tax_withheld_refunded has been added to event_type enum.
|
|
28
|
+
|
|
1
29
|
### v2.7.0 (2021-08-16)
|
|
2
30
|
* * *
|
|
3
31
|
#### New Attributes:
|
package/lib/chargebee.js
CHANGED
|
@@ -7,8 +7,8 @@ ChargeBee._env = {
|
|
|
7
7
|
protocol: 'https',
|
|
8
8
|
hostSuffix: '.chargebee.com',
|
|
9
9
|
apiPath: '/api/v2',
|
|
10
|
-
timeout:
|
|
11
|
-
clientVersion: 'v2.
|
|
10
|
+
timeout: 80000,
|
|
11
|
+
clientVersion: 'v2.8.0',
|
|
12
12
|
port: 443,
|
|
13
13
|
timemachineWaitInMillis: 3000,
|
|
14
14
|
exportWaitInMillis: 3000
|
|
@@ -18,6 +18,10 @@ ChargeBee.configure = function(conf) {
|
|
|
18
18
|
ChargeBee._util.extend(true, ChargeBee._env, conf);
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
+
ChargeBee.updateRequestTimeoutInMillis = function(timeout) {
|
|
22
|
+
ChargeBee._env.timeout = timeout;
|
|
23
|
+
};
|
|
24
|
+
|
|
21
25
|
ChargeBee._endpoints = require('./resources/api_endpoints.js');
|
|
22
26
|
|
|
23
27
|
|
|
@@ -459,4 +463,5 @@ ChargeBee._util = (function() {
|
|
|
459
463
|
}
|
|
460
464
|
module.exports.time_machine.wait_for_time_travel_completion = ChargeBee._timeMachineWait;
|
|
461
465
|
module.exports.export.wait_for_export_completion = ChargeBee._waitForExport;
|
|
466
|
+
module.exports.updateRequestTimeoutInMillis = ChargeBee.updateRequestTimeoutInMillis;
|
|
462
467
|
})();
|
|
@@ -471,6 +471,13 @@ var _endpoints = {
|
|
|
471
471
|
"/update_card",
|
|
472
472
|
true
|
|
473
473
|
],
|
|
474
|
+
[
|
|
475
|
+
"update_bank_account",
|
|
476
|
+
"POST",
|
|
477
|
+
"/payment_sources",
|
|
478
|
+
"/update_bank_account",
|
|
479
|
+
true
|
|
480
|
+
],
|
|
474
481
|
[
|
|
475
482
|
"verify_bank_account",
|
|
476
483
|
"POST",
|
|
@@ -838,6 +845,7 @@ var _endpoints = {
|
|
|
838
845
|
true
|
|
839
846
|
]
|
|
840
847
|
],
|
|
848
|
+
"tax_withheld": [],
|
|
841
849
|
"credit_note": [
|
|
842
850
|
[
|
|
843
851
|
"create",
|
|
@@ -2232,6 +2240,20 @@ var _endpoints = {
|
|
|
2232
2240
|
"/item_prices",
|
|
2233
2241
|
"/delete",
|
|
2234
2242
|
true
|
|
2243
|
+
],
|
|
2244
|
+
[
|
|
2245
|
+
"find_applicable_items",
|
|
2246
|
+
"GET",
|
|
2247
|
+
"/item_prices",
|
|
2248
|
+
"/applicable_items",
|
|
2249
|
+
true
|
|
2250
|
+
],
|
|
2251
|
+
[
|
|
2252
|
+
"find_applicable_item_prices",
|
|
2253
|
+
"GET",
|
|
2254
|
+
"/item_prices",
|
|
2255
|
+
"/applicable_item_prices",
|
|
2256
|
+
true
|
|
2235
2257
|
]
|
|
2236
2258
|
],
|
|
2237
2259
|
"attached_item": [
|