chargebee 2.6.4 → 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 +157 -0
- package/LICENSE +1 -1
- package/lib/chargebee.js +10 -3
- package/lib/resources/api_endpoints.js +122 -20
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,160 @@
|
|
|
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
|
+
|
|
29
|
+
### v2.7.0 (2021-08-16)
|
|
30
|
+
* * *
|
|
31
|
+
#### New Attributes:
|
|
32
|
+
* generated_at has been added in credit_note and invoice resources.
|
|
33
|
+
* change_option have been added in quoted_subscription resource.
|
|
34
|
+
* changes_scheduled_at has been added in subscription and quoted_subscription resources.
|
|
35
|
+
* iin and last4 have been added in transaction resource.
|
|
36
|
+
|
|
37
|
+
#### New Resource:
|
|
38
|
+
* quoted_charge has been added.
|
|
39
|
+
|
|
40
|
+
#### New Input parameters:
|
|
41
|
+
* invoice_date has been added in estimates##create_subscription_estimate, estimates#estimate_for_creating_a_customer_and_subscription, estimates#estimate_for_creating_a_subscription, estimates#create_subscription_for_a_customer_estimate, estimates#update_subscription_estimate, estimates#estimate_for_updating_a_subscription, estimates#cancel_subscription_estimate, estimates#cancel_subscription_for_items_estimate, estimates#create_invoice_for_items_estimate, estimates#create_invoice_estimate, hosted_pages#checkout_existing_subscription, hosted_pages#create_checkout_to_update_a_subscription, invoices#create_an_invoice, invoices#create_invoice_for_items_and_one-time_charges, subscriptions#create_a_subscription, subscriptions#create_subscription_for_customer, subscriptions#update_a_subscription, subscriptions#create_subscription_for_items, subscriptions#update_subscription_for_items, subscriptions#reactivate_a_subscription, subscriptions#cancel_subscription_for_items and subscriptions#cancel_a_subscription endpoints.
|
|
42
|
+
* coupon_ids has been added to invoices#create_invoice_for_a_one-time_charge, invoice#create_invoice_for_a_non-recurring_addon, quotes#create_quote_for_one-time_charges, quotes#edit_quote_for_one-time_charges, quotes#create_a_quote_for_charge_and_charge_items, quotes#edit_quote_for_charge_items_and_charges endpoints.
|
|
43
|
+
* change_option and changes_scheduled_at have been added in quotes#create_quote_for_updating_a_subscription, quotes#edit_quote_for_updating_a_subscription, quotes#create_a_quote_for_update_subscription_items, quotes#edit_update_subscription_quote_for_items, subscriptions#update_a_subscription and subscriptions#create_subscription_for_items endpoints.
|
|
44
|
+
* invoice_date, create_pending_invoices and first_invoice_pending have been added in quotes#convert_a_quote endpoint.
|
|
45
|
+
* subscription[auto_close_invoices] has been added in quotes#convert_a_quote endpoint.
|
|
46
|
+
|
|
47
|
+
#### New Enum values:
|
|
48
|
+
* subscription_cancel has been added to charge_event enum in quote_line_groups resource.
|
|
49
|
+
* subscription_created_with_backdating, subscription_changed_with_backdating, subscription_canceled_with_backdating, subscription_reactivated_with_backdating, invoice_generated_with_backdating and credit_note_created_with_backdating have been added to event_type enum
|
|
50
|
+
* change_option enum has been added.
|
|
51
|
+
|
|
52
|
+
#### Deprecated parameters:
|
|
53
|
+
* coupon has been deprecated in invoices#create_invoice_for_a_one-time_charge and invoices#create_invoice_for_a_non-recurring_addon endpoints.
|
|
54
|
+
|
|
55
|
+
### v2.6.6 (2021-07-22)
|
|
56
|
+
* * *
|
|
57
|
+
#### Fixes:
|
|
58
|
+
* Changed use of deprecated Buffer allocation to 'safer-buffer' module. 'safer-buffer' is used inorder to support older versions of Node.js (<8.0.0) . By end of September, support for Node.js < 8.0.0 will be dropped and [native Buffer module](https://nodejs.org/api/buffer.html#buffer_static_method_buffer_from_string_encoding) will be used instead of 'safer-buffer'.
|
|
59
|
+
#### New endpoints:
|
|
60
|
+
* hosted_pages#checkout_one_time_for_items and hosted_pages#checkout_gift_for_items have been added in hosted_pages resource.
|
|
61
|
+
* orders#resend_an_order has been added in orders resource.
|
|
62
|
+
* quotes#edit_create_subscription_quote_for_items, quotes#edit_update_subscription_quote_for_items and quotes#edit_quote_for_charge_items_and_charges have been added in quotes resource. Applicable only for Product Catalog V2.
|
|
63
|
+
|
|
64
|
+
#### New attributes:
|
|
65
|
+
* accounting_category3 and accounting_category4 have been added to addon, item_price and plan resources.
|
|
66
|
+
* quantity_in_decimal has been added to attached_item resource.
|
|
67
|
+
* period and period_unit have been added to coupon resource.
|
|
68
|
+
* entity_id has been added to line_item_discounts object of credit_note, credit_note_estimate, invoice, invoice_estimate, quote and quote_line_group resources.
|
|
69
|
+
* vat_number_prefix has been added to credit_note, customer, invoice and quote resources.
|
|
70
|
+
* price_in_decimal has been added to differential_price and item_price resources.
|
|
71
|
+
* exchange_rate and new_sales_amount have been added to invoice resource.
|
|
72
|
+
* archived_at has been added to item and item_price resources.
|
|
73
|
+
* trial_end_action has been added to item_price, plan, subscription and subscription_estimate resources.
|
|
74
|
+
* resent_orders, tracking_url, resent_status, is_resent, original_order_id and resend_reasons have been added to order resource.
|
|
75
|
+
* line_item_tiers have been added to quote resource.
|
|
76
|
+
* plan_quantity_in_decimal and plan_unit_price_in_decimal have been added to quoted_subscription and subscription resources. Applicable only for Product Catalog V1.
|
|
77
|
+
* contract_term_billing_cycle_on_renewal and quoted_contract_term have been added to quoted_subscription resource.
|
|
78
|
+
* quantity_in_decimal, metered_quantity, last_calculated_at, unit_price_in_decimal, amount_in_decimal and free_quantity_in_decimal have been added to subscription_items object of quoted_subscription and subscription resources.
|
|
79
|
+
* starting_unit_in_decimal, ending_unit_in_decimal and price_in_decimal have been added to item_tiers object in quoted_subscription resources.
|
|
80
|
+
* cancel_schedule_created_at has been added to subscription resource.
|
|
81
|
+
* exchange_rate and merchant_reference_id have been added to transaction resource.
|
|
82
|
+
|
|
83
|
+
#### New parameters:
|
|
84
|
+
* accounting_category3 and accounting_category4 have been added in addons#create_an_addon, addons#update_an_addon, plans#create_a_plan and plans#update_a_plan endpoints.
|
|
85
|
+
* quantity_in_decimal has been added in attached_items#create_an_attached_item, attached_items#update_an_attached_item and gifts#create_a_gift_subscription_for_items endpoints.
|
|
86
|
+
* period and period_unit have been added in coupons#create_a_coupon, coupons#update_a_coupon, coupons#create_a_coupon_for_items and coupons#update_a_coupon_for_items endpoints.
|
|
87
|
+
* vat_number_prefix has been added in customers#create_a_customer, customers#update_billing_info_for_a_customer, estimates#create_subscription, estimates#create_subscription_estimate, estimates#create_subscription_for_items, estimates#create_subscription_for_items_estimate, estimates#update_subscription_for_items, estimates#update_subscription, hosted_pages#checkout_new_subscription, hosted_pages#checkout_one-time_payments, hosted_pages#create_checkout_for_a_new_subscription hosted_pages#checkout_existing_subscription, hosted_pages#create_checkout_to_update_a_subscription, invoices#import_invoice, invoices#update_invoice_details, subscriptions#create_a_subscription, subscriptions#update_a_subscription, subscriptions#update_subscription_for_items and subscriptions#import_a_subscription endpoints.
|
|
88
|
+
* payment_method[additional_information] has been added in customers#create_a_customer, customers#update_payment_method_for_a_customer, customers#collect_payment_for_customer, invoices#create_an_invoice, invoices#create_invoice_for_items_and_one-time_charges, subscriptions#create_a_subscription, subscriptions#update_a_subscription, subscriptions#update_subscription_for_items and subscriptions#import_a_subscription endpoints.
|
|
89
|
+
* card[additional_information] has been added in customers#create_a_customer, customers#collect_payment_for_customer, invoices#create_an_invoice, invoices#create_invoice_for_items_and_one-time_charges, payment_sources#create_a_card_payment_source, subscriptions#create_a_subscription, subscriptions#update_a_subscription, subscriptions#update_subscription_for_items and subscriptions#import_a_subscription endpoints.
|
|
90
|
+
* bank_account[billing_address] has been added in customers#create_a_customer, invoices#create_an_invoice, invoices#create_invoice_for_items_and_one-time_charges, payment_sources#create_a_bank_account_payment_source and subscriptions#create_a_subscription endpoints.
|
|
91
|
+
* price_in_decimal has been added in differential_prices#create_a_differential_price and differential_prices#update_a_differential_price endpoints.
|
|
92
|
+
* tiers[starting_unit_in_decimal][0..N], tiers[ending_unit_in_decimal][0..N] and tiers[price_in_decimal][0..N] have been added in differential_prices#create_a_differential_price, differential_prices#update_a_differential_price, item_prices#create_an_item_price and item_prices#update_an_item_price endpoints.
|
|
93
|
+
* remove_general_note and notes_to_remove been added in estimates#create_invoice_estimate, estimates#create_invoice_for_items_estimate and invoices#create_invoice_for_items_and_one-time_charges endpoints.
|
|
94
|
+
* trial_end_action has been added in estimates#create_subscription, estimates#create_subscription_estimate, estimates#create_subscription_for_items, estimates#create_subscription_for_items_estimate, estimates#update_subscription_for_items, estimates#update_subscription, plans#create_a_plan, plans#update_a_plan, item_prices#create_an_item_price, item_prices#update_an_item_price, subscriptions#create_a_subscription, subscriptions#create_subscription_for_customer, subscriptions#create_subscription_for_items, subscriptions#update_a_subscription and subscriptions#update_subscription_for_items endpoints.
|
|
95
|
+
* subscription_items[unit_price_in_decimal][0..N], item_tiers[starting_unit][0..N], item_tiers[ending_unit][0..N] and item_tiers[price_in_decimal][0..N] have been added in estimates#create_subscription_for_items, estimates#create_subscription_for_items_estimate, estimates#update_subscription_for_items, estimates#update_subscription, estimates#cancel_subscription_for_items_estimate, hosted_pages#create_checkout_for_a_new_subscription, hosted_pages#create_checkout_to_update_a_subscription, subscriptions#create_subscription_for_items, subscriptions#update_subscription_for_items and subscriptions#import_subscription_for_items endpoints.
|
|
96
|
+
* subscription_items[quantity_in_decimal][0..N] has been added in estimates#create_subscription_for_items, estimates#create_subscription_for_items_estimate, estimates#cancel_subscription_for_items_estimate, estimates#update_subscription_for_items, estimates#update_subscription, estimates#gift_subscription_for_items, estimates#cancel_subscription_for_items_estimate, gifts#create_a_gift_subscription_for_items, hosted_pages#create_checkout_for_a_new_subscription, hosted_pages#create_checkout_to_update_a_subscription, subscriptions#create_subscription_for_items, subscriptions#update_subscription_for_items, subscriptions#import_subscription_for_items and subscriptions#cancel_subscription_for_items endpoints.
|
|
97
|
+
* notes_to_remove[entity_type][0..N] and notes_to_remove[entity_id][0..N] have been added in estimates#create_invoice, estimates#create_invoice_for_items and invoices#create_invoice_for_items_and_one-time_charges endpoints.
|
|
98
|
+
* item_prices[quantity_in_decimal][0..N] and item_prices[unit_price_in_decimal][0..N] have been added in estimates#create_invoice_for_items, invoices#create_invoice_for_items_and_one-time_charges and unbilled_charges#create_unbilled_charges_for_a_subscription endpoints.
|
|
99
|
+
* item_tiers[starting_unit_in_decimal][0..N], item_tiers[ending_unit_in_decimal][0..N] and item_tiers[price_in_decimal][0..N] have been added in estimates#create_invoice_for_items, invoices#create_invoice_for_items_and_one-time_charges and unbilled_charges#create_unbilled_charges_for_a_subscription endpoints.
|
|
100
|
+
* payment_intent[additional_information] has been added in customers#create_a_customer, customers#collect_payment_for_customer, gifts#create_a_gift_subscription_for_items, gifts#create_a_gif and payment_sources#create_using_payment_intent endpoints.
|
|
101
|
+
* invoice_note has been added in hosted_pages#checkout_one-time_payments endpoint.
|
|
102
|
+
* allow_offline_payment_methods has been added in hosted_pages#create_checkout_for_a_new_subscription and hosted_pages#create_checkout_to_update_a_subscription endpoints.
|
|
103
|
+
* free_quantity_in_decimal, price_in_decimal and trial_end_action have been added in item_prices#create_an_item_price and item_prices#update_an_item_price endpoints.
|
|
104
|
+
* tracking_url has been added in orders#create_an_order, orders#update_an_order and orders#import_an_order endpoints.
|
|
105
|
+
* additional_information has been added in payment_sources#create_using_gateway_temporary_token and payment_sources#create_using_permanent_token endpoints.
|
|
106
|
+
|
|
107
|
+
#### New enum values:
|
|
108
|
+
* bancontact has been added to card_type enum.
|
|
109
|
+
* card and latam_local_card have been added to powered_by enum.
|
|
110
|
+
* item_level_discount and document_level_discount have been added to entity_type enum of credit_note_discount, credit_note_estimate_discount, invoice_discount, line_item_discount and invoice_estimate_discount resources.
|
|
111
|
+
* item_level_discount and document_level_discount have been added to discount_type enum.
|
|
112
|
+
* add_usages_reminder and order_resent have been added to event_type enum.
|
|
113
|
+
* ingenico_direct and exact have been added to gateway enum.
|
|
114
|
+
* max_usage has been added to usage_calculation enum.
|
|
115
|
+
* trial_end_action enum has been added.
|
|
116
|
+
* order_resent has been added to cancellation_reason enum.
|
|
117
|
+
* resent_status enum has been added.
|
|
118
|
+
* custom_discount has been added in discount_type enum of order_line_item_discount.
|
|
119
|
+
|
|
120
|
+
#### New filter parameters:
|
|
121
|
+
* resent_status, is_resent and original_order_id filter parameters have been added in exports#orders and orders#list_orders enpoints.
|
|
122
|
+
* updated_at filter parameter has been added in exports#item_families and item_families#list_item_families endpoints.
|
|
123
|
+
|
|
124
|
+
#### New sort parameters:
|
|
125
|
+
* name, id and updated_at sort parameters are added to items#list_items and item_prices#list_item_prices endpoints.
|
|
126
|
+
* created_at and updated_at sort parameters are added to payment_sources#list_payment_sources endpoint.
|
|
127
|
+
* usage_date sort parameter has been added to usages#list_usages endpoint.
|
|
128
|
+
|
|
129
|
+
#### Deprecated parameters:
|
|
130
|
+
* duration_month parameter has been deprecated in coupon resource.
|
|
131
|
+
|
|
132
|
+
### v2.6.5 (2021-01-19)
|
|
133
|
+
* * *
|
|
134
|
+
##### New resources:
|
|
135
|
+
* Usages is added. Applicable only for Product Catalog V2
|
|
136
|
+
|
|
137
|
+
##### New end points:
|
|
138
|
+
* hosted_pages#checkout_one-time_payments has been added in hosted_pages resource
|
|
139
|
+
|
|
140
|
+
##### New attributes:
|
|
141
|
+
* auto_close_invoices has been added to customers, subscriptions resources
|
|
142
|
+
* metered, usage_calculation have been added to items resources
|
|
143
|
+
* create_pending_invoices, auto_close_invoices have been added to subscriptions resources
|
|
144
|
+
|
|
145
|
+
##### New parameters:
|
|
146
|
+
* auto_close_invoices has been added to the endpoint: customers#create_a_customer, customers#list_customers, customers#update_a_customer
|
|
147
|
+
* invoice_allocations[invoice_id] has been added to the endpoint: customers#collect_payment_for_customer
|
|
148
|
+
* coupon_ids has been added to the endpoint: estimates#create_invoice_for_items_estimate. Applicable only for Product Catalog V2
|
|
149
|
+
* subscription[auto_close_invoices] has been added to the endpoint: exports#export_revenue_recognition_reports, exports#export_deferred_revenue_reports, exports#export_subscriptions
|
|
150
|
+
* customer[auto_close_invoices] has been added to the endpoint: exports#export_revenue_recognition_reports, exports#export_deferred_revenue_reports, exports#export_customers
|
|
151
|
+
* item[metered], item[usage_calculation] have been added to the endpoint: exports#export_items. Applicable only for Product Catalog V2
|
|
152
|
+
* subscription_id has been added to the endpoint: invoices#add_one-time_charge_to_a_pending_invoice, invoices#add_non-recurring_addon_to_a_pending_invoice
|
|
153
|
+
* subscription_id has been added to the endpoint: invoices#add_a_charge-item_to_a_pending_invoice. Applicable only for Product Catalog V2
|
|
154
|
+
* metered, usage_calculation have been added to the endpoint: items#create_an_item, items#list_item. Applicable only for Product Catalog V2
|
|
155
|
+
* create_pending_invoices, auto_close_invoices, first_invoice_pending have been added to the endpoint: subscriptions#create_subscription_for_items, subscriptions#update_subscription_for_items,subscriptions#import_subscription_for_items. Applicable only for Product Catalog V2
|
|
156
|
+
* create_pending_invoices, auto_close_invoices have been added to the endpoint: subscriptions#list_subscriptions
|
|
157
|
+
|
|
1
158
|
### v2.6.4 (2020-12-15)
|
|
2
159
|
* * *
|
|
3
160
|
##### New end points:
|
package/LICENSE
CHANGED
package/lib/chargebee.js
CHANGED
|
@@ -2,12 +2,13 @@ var ChargeBee = {};
|
|
|
2
2
|
|
|
3
3
|
var Q = require("q");
|
|
4
4
|
var os = require("os");
|
|
5
|
+
var Buffer = require("safer-buffer").Buffer;
|
|
5
6
|
ChargeBee._env = {
|
|
6
7
|
protocol: 'https',
|
|
7
8
|
hostSuffix: '.chargebee.com',
|
|
8
9
|
apiPath: '/api/v2',
|
|
9
|
-
timeout:
|
|
10
|
-
clientVersion: 'v2.
|
|
10
|
+
timeout: 80000,
|
|
11
|
+
clientVersion: 'v2.8.0',
|
|
11
12
|
port: 443,
|
|
12
13
|
timemachineWaitInMillis: 3000,
|
|
13
14
|
exportWaitInMillis: 3000
|
|
@@ -17,6 +18,10 @@ ChargeBee.configure = function(conf) {
|
|
|
17
18
|
ChargeBee._util.extend(true, ChargeBee._env, conf);
|
|
18
19
|
};
|
|
19
20
|
|
|
21
|
+
ChargeBee.updateRequestTimeoutInMillis = function(timeout) {
|
|
22
|
+
ChargeBee._env.timeout = timeout;
|
|
23
|
+
};
|
|
24
|
+
|
|
20
25
|
ChargeBee._endpoints = require('./resources/api_endpoints.js');
|
|
21
26
|
|
|
22
27
|
|
|
@@ -218,8 +223,9 @@ ChargeBee._core = (function() {
|
|
|
218
223
|
}
|
|
219
224
|
var data = encodeParams(params);
|
|
220
225
|
var protocol = (env.protocol === 'http' ? http : https);
|
|
226
|
+
|
|
221
227
|
ChargeBee._util.extend(true, headers, {
|
|
222
|
-
'Authorization': 'Basic ' +
|
|
228
|
+
'Authorization': 'Basic ' + Buffer.from(env.api_key+':').toString('base64'),
|
|
223
229
|
'Accept': 'application/json',
|
|
224
230
|
'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8',
|
|
225
231
|
"Content-Length": data.length,
|
|
@@ -457,4 +463,5 @@ ChargeBee._util = (function() {
|
|
|
457
463
|
}
|
|
458
464
|
module.exports.time_machine.wait_for_time_travel_completion = ChargeBee._timeMachineWait;
|
|
459
465
|
module.exports.export.wait_for_export_completion = ChargeBee._waitForExport;
|
|
466
|
+
module.exports.updateRequestTimeoutInMillis = ChargeBee.updateRequestTimeoutInMillis;
|
|
460
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",
|
|
@@ -1017,6 +1025,13 @@ var _endpoints = {
|
|
|
1017
1025
|
"/invoices",
|
|
1018
1026
|
"/orders",
|
|
1019
1027
|
true
|
|
1028
|
+
],
|
|
1029
|
+
[
|
|
1030
|
+
"resend",
|
|
1031
|
+
"POST",
|
|
1032
|
+
"/orders",
|
|
1033
|
+
"/resend",
|
|
1034
|
+
true
|
|
1020
1035
|
]
|
|
1021
1036
|
],
|
|
1022
1037
|
"gift": [
|
|
@@ -1150,6 +1165,20 @@ var _endpoints = {
|
|
|
1150
1165
|
"/checkout_new",
|
|
1151
1166
|
false
|
|
1152
1167
|
],
|
|
1168
|
+
[
|
|
1169
|
+
"checkout_one_time",
|
|
1170
|
+
"POST",
|
|
1171
|
+
"/hosted_pages",
|
|
1172
|
+
"/checkout_one_time",
|
|
1173
|
+
false
|
|
1174
|
+
],
|
|
1175
|
+
[
|
|
1176
|
+
"checkout_one_time_for_items",
|
|
1177
|
+
"POST",
|
|
1178
|
+
"/hosted_pages",
|
|
1179
|
+
"/checkout_one_time_for_items",
|
|
1180
|
+
false
|
|
1181
|
+
],
|
|
1153
1182
|
[
|
|
1154
1183
|
"checkout_new_for_items",
|
|
1155
1184
|
"POST",
|
|
@@ -1220,6 +1249,13 @@ var _endpoints = {
|
|
|
1220
1249
|
"/checkout_gift",
|
|
1221
1250
|
false
|
|
1222
1251
|
],
|
|
1252
|
+
[
|
|
1253
|
+
"checkout_gift_for_items",
|
|
1254
|
+
"POST",
|
|
1255
|
+
"/hosted_pages",
|
|
1256
|
+
"/checkout_gift_for_items",
|
|
1257
|
+
false
|
|
1258
|
+
],
|
|
1223
1259
|
[
|
|
1224
1260
|
"claim_gift",
|
|
1225
1261
|
"POST",
|
|
@@ -1413,13 +1449,6 @@ var _endpoints = {
|
|
|
1413
1449
|
"/edit_create_subscription_quote",
|
|
1414
1450
|
true
|
|
1415
1451
|
],
|
|
1416
|
-
[
|
|
1417
|
-
"create_sub_items_for_customer_quote",
|
|
1418
|
-
"POST",
|
|
1419
|
-
"/customers",
|
|
1420
|
-
"/create_subscription_quote_for_items",
|
|
1421
|
-
true
|
|
1422
|
-
],
|
|
1423
1452
|
[
|
|
1424
1453
|
"update_subscription_quote",
|
|
1425
1454
|
"POST",
|
|
@@ -1434,6 +1463,34 @@ var _endpoints = {
|
|
|
1434
1463
|
"/edit_update_subscription_quote",
|
|
1435
1464
|
true
|
|
1436
1465
|
],
|
|
1466
|
+
[
|
|
1467
|
+
"create_for_onetime_charges",
|
|
1468
|
+
"POST",
|
|
1469
|
+
"/quotes",
|
|
1470
|
+
"/create_for_onetime_charges",
|
|
1471
|
+
false
|
|
1472
|
+
],
|
|
1473
|
+
[
|
|
1474
|
+
"edit_one_time_quote",
|
|
1475
|
+
"POST",
|
|
1476
|
+
"/quotes",
|
|
1477
|
+
"/edit_one_time_quote",
|
|
1478
|
+
true
|
|
1479
|
+
],
|
|
1480
|
+
[
|
|
1481
|
+
"create_sub_items_for_customer_quote",
|
|
1482
|
+
"POST",
|
|
1483
|
+
"/customers",
|
|
1484
|
+
"/create_subscription_quote_for_items",
|
|
1485
|
+
true
|
|
1486
|
+
],
|
|
1487
|
+
[
|
|
1488
|
+
"edit_create_sub_customer_quote_for_items",
|
|
1489
|
+
"POST",
|
|
1490
|
+
"/quotes",
|
|
1491
|
+
"/edit_create_subscription_quote_for_items",
|
|
1492
|
+
true
|
|
1493
|
+
],
|
|
1437
1494
|
[
|
|
1438
1495
|
"update_subscription_quote_for_items",
|
|
1439
1496
|
"POST",
|
|
@@ -1442,11 +1499,11 @@ var _endpoints = {
|
|
|
1442
1499
|
false
|
|
1443
1500
|
],
|
|
1444
1501
|
[
|
|
1445
|
-
"
|
|
1502
|
+
"edit_update_subscription_quote_for_items",
|
|
1446
1503
|
"POST",
|
|
1447
1504
|
"/quotes",
|
|
1448
|
-
"/
|
|
1449
|
-
|
|
1505
|
+
"/edit_update_subscription_quote_for_items",
|
|
1506
|
+
true
|
|
1450
1507
|
],
|
|
1451
1508
|
[
|
|
1452
1509
|
"create_for_charge_items_and_charges",
|
|
@@ -1456,10 +1513,10 @@ var _endpoints = {
|
|
|
1456
1513
|
false
|
|
1457
1514
|
],
|
|
1458
1515
|
[
|
|
1459
|
-
"
|
|
1516
|
+
"edit_for_charge_items_and_charges",
|
|
1460
1517
|
"POST",
|
|
1461
1518
|
"/quotes",
|
|
1462
|
-
"/
|
|
1519
|
+
"/edit_for_charge_items_and_charges",
|
|
1463
1520
|
true
|
|
1464
1521
|
],
|
|
1465
1522
|
[
|
|
@@ -1513,6 +1570,7 @@ var _endpoints = {
|
|
|
1513
1570
|
]
|
|
1514
1571
|
],
|
|
1515
1572
|
"quoted_subscription": [],
|
|
1573
|
+
"quoted_charge": [],
|
|
1516
1574
|
"quote_line_group": [],
|
|
1517
1575
|
"plan": [
|
|
1518
1576
|
[
|
|
@@ -1778,6 +1836,43 @@ var _endpoints = {
|
|
|
1778
1836
|
false
|
|
1779
1837
|
]
|
|
1780
1838
|
],
|
|
1839
|
+
"usage": [
|
|
1840
|
+
[
|
|
1841
|
+
"create",
|
|
1842
|
+
"POST",
|
|
1843
|
+
"/subscriptions",
|
|
1844
|
+
"/usages",
|
|
1845
|
+
true
|
|
1846
|
+
],
|
|
1847
|
+
[
|
|
1848
|
+
"retrieve",
|
|
1849
|
+
"GET",
|
|
1850
|
+
"/subscriptions",
|
|
1851
|
+
"/usages",
|
|
1852
|
+
true
|
|
1853
|
+
],
|
|
1854
|
+
[
|
|
1855
|
+
"delete",
|
|
1856
|
+
"POST",
|
|
1857
|
+
"/subscriptions",
|
|
1858
|
+
"/delete_usage",
|
|
1859
|
+
true
|
|
1860
|
+
],
|
|
1861
|
+
[
|
|
1862
|
+
"list",
|
|
1863
|
+
"GET",
|
|
1864
|
+
"/usages",
|
|
1865
|
+
null,
|
|
1866
|
+
false
|
|
1867
|
+
],
|
|
1868
|
+
[
|
|
1869
|
+
"pdf",
|
|
1870
|
+
"POST",
|
|
1871
|
+
"/usages",
|
|
1872
|
+
"/pdf",
|
|
1873
|
+
false
|
|
1874
|
+
]
|
|
1875
|
+
],
|
|
1781
1876
|
"event": [
|
|
1782
1877
|
[
|
|
1783
1878
|
"list",
|
|
@@ -2145,6 +2240,20 @@ var _endpoints = {
|
|
|
2145
2240
|
"/item_prices",
|
|
2146
2241
|
"/delete",
|
|
2147
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
|
|
2148
2257
|
]
|
|
2149
2258
|
],
|
|
2150
2259
|
"attached_item": [
|
|
@@ -2182,13 +2291,6 @@ var _endpoints = {
|
|
|
2182
2291
|
"/items",
|
|
2183
2292
|
"/attached_items",
|
|
2184
2293
|
true
|
|
2185
|
-
],
|
|
2186
|
-
[
|
|
2187
|
-
"list_internal",
|
|
2188
|
-
"GET",
|
|
2189
|
-
"/attached_items",
|
|
2190
|
-
"/list_internal",
|
|
2191
|
-
false
|
|
2192
2294
|
]
|
|
2193
2295
|
],
|
|
2194
2296
|
"differential_price": [
|
|
@@ -2227,6 +2329,6 @@ var _endpoints = {
|
|
|
2227
2329
|
null,
|
|
2228
2330
|
false
|
|
2229
2331
|
]
|
|
2230
|
-
]
|
|
2332
|
+
]
|
|
2231
2333
|
};
|
|
2232
2334
|
module.exports = _endpoints;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name":"chargebee",
|
|
3
|
-
"version":"2.
|
|
3
|
+
"version":"2.8.0",
|
|
4
4
|
"description":"A library for integrating with ChargeBee.",
|
|
5
5
|
"keywords":[
|
|
6
6
|
"payments",
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"author":"Ajit <ajit@chargebee.com> (https://www.chargebee.com)",
|
|
13
13
|
"main":"lib/chargebee.js",
|
|
14
14
|
"dependencies":{
|
|
15
|
-
"q" : ">=1.0.1"
|
|
15
|
+
"q" : ">=1.0.1",
|
|
16
|
+
"safer-buffer": "2.1.2"
|
|
16
17
|
},
|
|
17
18
|
"directories":{
|
|
18
19
|
"lib":"./lib"
|