chargebee 2.14.0 → 2.16.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 +30 -1
- package/lib/chargebee.js +1 -1
- package/lib/resources/api_endpoints.js +8 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,32 @@
|
|
|
1
|
+
### v2.16.0 (2022-09-20)
|
|
2
|
+
|
|
3
|
+
#### New Resource:
|
|
4
|
+
* discount has been added.
|
|
5
|
+
|
|
6
|
+
#### New Enum values:
|
|
7
|
+
* apply_on, duration_type and operation_type enums have been added.
|
|
8
|
+
|
|
9
|
+
### v2.15.0 (2022-09-20)
|
|
10
|
+
* * *
|
|
11
|
+
|
|
12
|
+
#### New endpoints:
|
|
13
|
+
* subscriptions#list_discounts has been added to the subscriptions resource.
|
|
14
|
+
|
|
15
|
+
#### New attributes:
|
|
16
|
+
* billing_month has been added to the customer resource.
|
|
17
|
+
|
|
18
|
+
#### Added input parameters:
|
|
19
|
+
* billing_month has been added to the customers#change_billing_date API.
|
|
20
|
+
* line_items[subscription_id] has been added to the invoices#import_invoice API.
|
|
21
|
+
* layout has been added to hosted_pages#checkout_onetime_for_items, hosted_pages#checkout_new_for_items and hosted_pages#checkout_existing_for_items APIs.
|
|
22
|
+
* discounts[apply_on], discounts[percentage], discounts[amount] and discounts[item_price_id] have been added to estimates#create_subscription_for_items, estimates#create_subscription_for_items_estimate, estimates#update_subscription_for_items, hosted_pages#checkout_onetime_for_items, hosted_pages#checkout_new_for_items, hosted_pages#checkout_existing_for_items, invoices#create_for_charge_items_and_charges, quotes#create_subscription_for_items, quotes#edit_create_subscription_quote_for_items, quotes#update_subscription_quote_for_items, quotes#edit_update_subscription_quote_for_items, quotes#create_for_charge_items_and_charges, quotes#edit_for_charge_items_and_charges, subscriptions#create_subscription_for_items, subscriptions#update_subscription_for_items and subscriptions#import_subscription_for_items APIs.
|
|
23
|
+
* discounts[duration_type], discounts[period], discounts[period_unit] and discounts[included_in_mrr] have been added to estimates#create_subscription_for_items, estimates#create_subscription_for_items_estimate, estimates#update_subscription_for_items, hosted_pages#checkout_new_for_items, hosted_pages#checkout_existing_for_items, quotes#create_subscription_for_items, quotes#edit_create_subscription_quote_for_items, quotes#update_subscription_quote_for_items, quotes#edit_update_subscription_quote_for_items, subscriptions#create_subscription_for_items, subscriptions#update_subscription_for_items and subscriptions#import_subscription_for_items APIs.
|
|
24
|
+
* discounts[operation_type] and discounts[id] have been added to estimates#update_subscription_for_items, quotes#update_subscription_quote_for_items, hosted_pages#checkout_existing_for_items, quotes#edit_update_subscription_quote_for_items, subscriptions#update_subscription_for_items and subscriptions#import_subscription_for_items APIs.
|
|
25
|
+
|
|
26
|
+
#### New Enum values:
|
|
27
|
+
* global_payments has been added to gateway enum.
|
|
28
|
+
* layout enum has been added.
|
|
29
|
+
|
|
1
30
|
### v2.14.0 (2022-08-22)
|
|
2
31
|
* * *
|
|
3
32
|
|
|
@@ -15,7 +44,7 @@
|
|
|
15
44
|
#### New Resource:
|
|
16
45
|
* InAppSubscription have been added.
|
|
17
46
|
|
|
18
|
-
|
|
47
|
+
#### Removed input parameters:
|
|
19
48
|
* BusinessEntityId has been removed from Purchase#CreateRequest and Purchase#EstimateRequest.
|
|
20
49
|
|
|
21
50
|
|
package/lib/chargebee.js
CHANGED
|
@@ -42,6 +42,13 @@ var _endpoints = {
|
|
|
42
42
|
"/contract_terms",
|
|
43
43
|
true
|
|
44
44
|
],
|
|
45
|
+
[
|
|
46
|
+
"list_discounts",
|
|
47
|
+
"GET",
|
|
48
|
+
"/subscriptions",
|
|
49
|
+
"/discounts",
|
|
50
|
+
true
|
|
51
|
+
],
|
|
45
52
|
[
|
|
46
53
|
"retrieve",
|
|
47
54
|
"GET",
|
|
@@ -240,6 +247,7 @@ var _endpoints = {
|
|
|
240
247
|
]
|
|
241
248
|
],
|
|
242
249
|
"contract_term": [],
|
|
250
|
+
"discount": [],
|
|
243
251
|
"advance_invoice_schedule": [],
|
|
244
252
|
"customer": [
|
|
245
253
|
[
|
|
@@ -2525,13 +2533,6 @@ var _endpoints = {
|
|
|
2525
2533
|
null,
|
|
2526
2534
|
false
|
|
2527
2535
|
],
|
|
2528
|
-
[
|
|
2529
|
-
"retrieve",
|
|
2530
|
-
"GET",
|
|
2531
|
-
"/purchases",
|
|
2532
|
-
null,
|
|
2533
|
-
true
|
|
2534
|
-
],
|
|
2535
2536
|
[
|
|
2536
2537
|
"estimate",
|
|
2537
2538
|
"POST",
|