chargebee 2.9.0 → 2.12.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 +98 -0
- package/lib/chargebee.js +2 -2
- package/lib/resources/api_endpoints.js +148 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,101 @@
|
|
|
1
|
+
### v2.12.0 (2022-05-23)
|
|
2
|
+
* * *
|
|
3
|
+
|
|
4
|
+
#### New endpoints:
|
|
5
|
+
* invoice#sync_usages and invoice#resend_einvoice have been added to the invoice resource.
|
|
6
|
+
* credit_notes#resend_einvoice has been added to the credit_notes resource.
|
|
7
|
+
* features#list_features, features#create_a_feature, features#update_a_feature, features#retrieve_a_feature, features#delete_a_feature, features#activate_a_feature, features#archive_a_feature and features#reactivate_a_feature have been added to the features resource.
|
|
8
|
+
* subscription_entitlements#subscription_entitlements_for_subscription and subscription_entitlements#set_subscription_entitlement_availability have been added to the subscription_entitlements resource.
|
|
9
|
+
* item_entitlements#item_entitlements_for_an_item, item_entitlements#item_entitlements_for_a_feature, item_entitlements#add_an_item_entitlements and item_entitlements#upsert_or_remove_an_item_entitlements_for_item have been added to the item_entitlements resource.
|
|
10
|
+
* entitlement_overrides#add_entitlement_override_for_a_subscription and entitlement_overrides#list_entitlement_override_for_a_subscription have been added to the entitlement_overrides resource.
|
|
11
|
+
|
|
12
|
+
#### New Resource:
|
|
13
|
+
* features, subscription_entitlements, item_entitlements and entitlement_overrides have been added.
|
|
14
|
+
|
|
15
|
+
#### New filter parameters:
|
|
16
|
+
* einvoice[status] filter parameter has been added in credit_notes#list_credit_notes api.
|
|
17
|
+
|
|
18
|
+
#### New Enum values:
|
|
19
|
+
* paypal_express_checkout has been added to payment_method_type enum.
|
|
20
|
+
* feature_created, feature_updated, feature_deleted, feature_activated, feature_reactivated, feature_archived, item_entitlements_updated, entitlement_overrides_updated, entitlement_overrides_removed, item_entitlements_removed and entitlement_overrides_auto_removed have been added to the event_type enum.
|
|
21
|
+
* action enum has been added.
|
|
22
|
+
|
|
23
|
+
### v2.11.0 (2022-04-25)
|
|
24
|
+
* * *
|
|
25
|
+
|
|
26
|
+
#### New endpoints:
|
|
27
|
+
* UnbilledCharge#CreateUnbilledCharge has been added to UnbilledCharge resource. Applicable only for PC1.0.
|
|
28
|
+
|
|
29
|
+
#### New attributes:
|
|
30
|
+
* channel have been added to the Addon, AttachedItem, CreditNote, Customer, Invoice, ItemFamily, ItemPrice, Plan and Subscription resources.
|
|
31
|
+
* external_name and channel have been added to the Item resource.
|
|
32
|
+
|
|
33
|
+
#### New input parameters:
|
|
34
|
+
* external_name have been added to Item#CreateRequest and Item#UpdateRequest.
|
|
35
|
+
* channel have been added to Addon#AddonListRequest.
|
|
36
|
+
* channel have been added to CreditNote#CreditNoteListRequest.
|
|
37
|
+
* channel have been added to Customer#CustomerListRequest.
|
|
38
|
+
* invoice[channel], subscription[channel] and customer[channel] have been added to Export#RevenueRecognitionRequest and Export#DeferredRevenueRequest.
|
|
39
|
+
* plan[channel] have been added to Export#PlansRequest.
|
|
40
|
+
* addon[channel] have been added to Export#AddonsRequest.
|
|
41
|
+
* customer[channel] have been added to Export#CustomersRequest.
|
|
42
|
+
* subscription[channel] have been added to Export#SubscriptionsRequest.
|
|
43
|
+
* invoice[channel] have been added to Export#InvoicesRequest.
|
|
44
|
+
* credit_note[channel] have been added to Export#CreditNotesRequest.
|
|
45
|
+
* item[channel] have been added to Export#ItemsRequest.
|
|
46
|
+
* item_price[channel] have been added to Export#ItemPricesRequest.
|
|
47
|
+
* channel have been added to Invoice#InvoiceListRequest.
|
|
48
|
+
* channel have been added to Item#ItemListRequest.
|
|
49
|
+
* channel have been added to ItemPrice#ItemPriceListRequest.
|
|
50
|
+
* channel have been added to Plan#PlanListRequest.
|
|
51
|
+
* channel have been added to Subscription#SubscriptionListRequest.
|
|
52
|
+
|
|
53
|
+
### Existing input parameter changes:
|
|
54
|
+
* item_family_id in Item#CreateRequest has been made as required field.
|
|
55
|
+
|
|
56
|
+
### Removed enum values:
|
|
57
|
+
* coupon_expired has been removed from EventTypeEnum.
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
### v2.10.0 (2022-03-08)
|
|
61
|
+
* * *
|
|
62
|
+
|
|
63
|
+
### Fixes:
|
|
64
|
+
* Fixed metadata for Product Catalog V2 resources, item and item_price.
|
|
65
|
+
|
|
66
|
+
#### New attributes:
|
|
67
|
+
* upi, mandates and their subresources have been added to the payment_source resource.
|
|
68
|
+
|
|
69
|
+
#### New Input parameters:
|
|
70
|
+
* bank_account[phone] have been added to customers#create_bank_account
|
|
71
|
+
* payment_intent[payment_method_type] have been added to customers#create_payment_intent, customers#collect_payment_intent
|
|
72
|
+
* payment_intent[payment_method_type] have been added to estimate#gift_subscription and estimate#gift_subscription_for_items.
|
|
73
|
+
* payment_intent[payment_method_type] have been added to gift#create_payment_intent and gift#create_gift_for_items_payment_intent.
|
|
74
|
+
* customer[is_einvoice_enabled], customer[entity_identifier_scheme], customer[entity_identifier_standard], entity_identifiers[id], entity_identifiers[scheme], entity_identifiers[value], entity_identifiers[operation], entity_identifiers[standard] have been added to hosted_page#checkout_onetime_for_items, hosted_page#checkout_new_for_items and hosted_page#checkout_existing_for_items.
|
|
75
|
+
* bank_account[phone] have been added to invoice#create_bank_account, invoice#create_bank_account_for_chargeitems_and_charges
|
|
76
|
+
* payment_intent[payment_method_type] have been added to invoice#create_payment_intent, invoice#create_payment_intent_for_chargeitems_and_charges
|
|
77
|
+
* bank_account[phone] have been added to payment_source#create_bank_account
|
|
78
|
+
* payment_intent[payment_method_type] have been added to payment_source#create_using_payment_intent
|
|
79
|
+
* subscription_id have been added to payment_source#list_payment_source
|
|
80
|
+
* bank_account[phone] have been added to subscription#create_bank_account
|
|
81
|
+
* payment_intent[payment_method_type] have been added to subscription#create_payment_intent, subscription#create_payment_intent_for_customer, subscription#create_payment_intent_with_items, subscription#update_payment_intent, subscription#update_payment_intent_for_items, subscription#reactivate_payment_intent, subscription#resume_payment_intent
|
|
82
|
+
* activated_at have been added to subscription#import_subscription, subscription#import_subscription_for_customer, subscription#import_subscription_for_items
|
|
83
|
+
|
|
84
|
+
#### New Enum values:
|
|
85
|
+
* upi, netbanking_emandates enum has been added in customer_payment_method_type subresource of customer resource
|
|
86
|
+
* current enum has been added in account_type.
|
|
87
|
+
* quickbooks, razorpay enum has been added in gateway.
|
|
88
|
+
* upi, netbanking_emandates enum has been added in payment_method,payment_method_type, type
|
|
89
|
+
* upi, netbanking_emandates, apple_pay enum has been added in payment_method_type subresource of payment_intent resource
|
|
90
|
+
* current enum has been added in bank_account_type subresource of payment_source.
|
|
91
|
+
|
|
92
|
+
#### Deprecated attributes:
|
|
93
|
+
* coupon attribute have been added and deprecated in hosted_page resource.
|
|
94
|
+
|
|
95
|
+
#### Deprecated enums:
|
|
96
|
+
* NetdPaymentDueReminder have been deprecated in event_type.
|
|
97
|
+
|
|
98
|
+
|
|
1
99
|
### v2.9.0 (2022-01-21)
|
|
2
100
|
* * *
|
|
3
101
|
|
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.
|
|
11
|
+
clientVersion: 'v2.12.0',
|
|
12
12
|
port: 443,
|
|
13
13
|
timemachineWaitInMillis: 3000,
|
|
14
14
|
exportWaitInMillis: 3000
|
|
@@ -328,7 +328,7 @@ ChargeBee._core = (function() {
|
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
|
-
} else if(
|
|
331
|
+
} else if(["meta_data", "metadata"].indexOf(key) !== -1) {
|
|
332
332
|
var attrVal="";
|
|
333
333
|
if(value !== null) {
|
|
334
334
|
attrVal = encodeURIComponent(Object.prototype.toString.call(value) === "[object String]" ? ChargeBee._util.trim(value) : JSON.stringify(value));
|
|
@@ -704,6 +704,13 @@ var _endpoints = {
|
|
|
704
704
|
"/apply_payments",
|
|
705
705
|
true
|
|
706
706
|
],
|
|
707
|
+
[
|
|
708
|
+
"sync_usages",
|
|
709
|
+
"POST",
|
|
710
|
+
"/invoices",
|
|
711
|
+
"/sync_usages",
|
|
712
|
+
true
|
|
713
|
+
],
|
|
707
714
|
[
|
|
708
715
|
"apply_credits",
|
|
709
716
|
"POST",
|
|
@@ -850,6 +857,13 @@ var _endpoints = {
|
|
|
850
857
|
"/invoices",
|
|
851
858
|
"/update_details",
|
|
852
859
|
true
|
|
860
|
+
],
|
|
861
|
+
[
|
|
862
|
+
"resend_einvoice",
|
|
863
|
+
"POST",
|
|
864
|
+
"/invoices",
|
|
865
|
+
"/resend_einvoice",
|
|
866
|
+
true
|
|
853
867
|
]
|
|
854
868
|
],
|
|
855
869
|
"tax_withheld": [],
|
|
@@ -923,9 +937,23 @@ var _endpoints = {
|
|
|
923
937
|
"/credit_notes",
|
|
924
938
|
"/delete",
|
|
925
939
|
true
|
|
940
|
+
],
|
|
941
|
+
[
|
|
942
|
+
"resend_einvoice",
|
|
943
|
+
"POST",
|
|
944
|
+
"/credit_notes",
|
|
945
|
+
"/resend_einvoice",
|
|
946
|
+
true
|
|
926
947
|
]
|
|
927
948
|
],
|
|
928
949
|
"unbilled_charge": [
|
|
950
|
+
[
|
|
951
|
+
"create_unbilled_charge",
|
|
952
|
+
"POST",
|
|
953
|
+
"/unbilled_charges",
|
|
954
|
+
"/create",
|
|
955
|
+
false
|
|
956
|
+
],
|
|
929
957
|
[
|
|
930
958
|
"create",
|
|
931
959
|
"POST",
|
|
@@ -2343,6 +2371,126 @@ var _endpoints = {
|
|
|
2343
2371
|
null,
|
|
2344
2372
|
false
|
|
2345
2373
|
]
|
|
2374
|
+
],
|
|
2375
|
+
"feature": [
|
|
2376
|
+
[
|
|
2377
|
+
"list",
|
|
2378
|
+
"GET",
|
|
2379
|
+
"/features",
|
|
2380
|
+
null,
|
|
2381
|
+
false
|
|
2382
|
+
],
|
|
2383
|
+
[
|
|
2384
|
+
"create",
|
|
2385
|
+
"POST",
|
|
2386
|
+
"/features",
|
|
2387
|
+
null,
|
|
2388
|
+
false
|
|
2389
|
+
],
|
|
2390
|
+
[
|
|
2391
|
+
"update",
|
|
2392
|
+
"POST",
|
|
2393
|
+
"/features",
|
|
2394
|
+
null,
|
|
2395
|
+
true
|
|
2396
|
+
],
|
|
2397
|
+
[
|
|
2398
|
+
"retrieve",
|
|
2399
|
+
"GET",
|
|
2400
|
+
"/features",
|
|
2401
|
+
null,
|
|
2402
|
+
true
|
|
2403
|
+
],
|
|
2404
|
+
[
|
|
2405
|
+
"delete",
|
|
2406
|
+
"POST",
|
|
2407
|
+
"/features",
|
|
2408
|
+
"/delete",
|
|
2409
|
+
true
|
|
2410
|
+
],
|
|
2411
|
+
[
|
|
2412
|
+
"activate",
|
|
2413
|
+
"POST",
|
|
2414
|
+
"/features",
|
|
2415
|
+
"/activate_command",
|
|
2416
|
+
true
|
|
2417
|
+
],
|
|
2418
|
+
[
|
|
2419
|
+
"archive",
|
|
2420
|
+
"POST",
|
|
2421
|
+
"/features",
|
|
2422
|
+
"/archive_command",
|
|
2423
|
+
true
|
|
2424
|
+
],
|
|
2425
|
+
[
|
|
2426
|
+
"reactivate",
|
|
2427
|
+
"POST",
|
|
2428
|
+
"/features",
|
|
2429
|
+
"/reactivate_command",
|
|
2430
|
+
true
|
|
2431
|
+
]
|
|
2432
|
+
],
|
|
2433
|
+
"subscription_entitlement": [
|
|
2434
|
+
[
|
|
2435
|
+
"subscription_entitlements_for_subscription",
|
|
2436
|
+
"GET",
|
|
2437
|
+
"/subscriptions",
|
|
2438
|
+
"/subscription_entitlements",
|
|
2439
|
+
true
|
|
2440
|
+
],
|
|
2441
|
+
[
|
|
2442
|
+
"set_subscription_entitlement_availability",
|
|
2443
|
+
"POST",
|
|
2444
|
+
"/subscriptions",
|
|
2445
|
+
"/subscription_entitlements/set_availability",
|
|
2446
|
+
true
|
|
2447
|
+
]
|
|
2448
|
+
],
|
|
2449
|
+
"item_entitlement": [
|
|
2450
|
+
[
|
|
2451
|
+
"item_entitlements_for_item",
|
|
2452
|
+
"GET",
|
|
2453
|
+
"/items",
|
|
2454
|
+
"/item_entitlements",
|
|
2455
|
+
true
|
|
2456
|
+
],
|
|
2457
|
+
[
|
|
2458
|
+
"item_entitlements_for_feature",
|
|
2459
|
+
"GET",
|
|
2460
|
+
"/features",
|
|
2461
|
+
"/item_entitlements",
|
|
2462
|
+
true
|
|
2463
|
+
],
|
|
2464
|
+
[
|
|
2465
|
+
"add_item_entitlements",
|
|
2466
|
+
"POST",
|
|
2467
|
+
"/features",
|
|
2468
|
+
"/item_entitlements",
|
|
2469
|
+
true
|
|
2470
|
+
],
|
|
2471
|
+
[
|
|
2472
|
+
"upsert_or_remove_item_entitlements_for_item",
|
|
2473
|
+
"POST",
|
|
2474
|
+
"/items",
|
|
2475
|
+
"/item_entitlements",
|
|
2476
|
+
true
|
|
2477
|
+
]
|
|
2478
|
+
],
|
|
2479
|
+
"entitlement_override": [
|
|
2480
|
+
[
|
|
2481
|
+
"add_entitlement_override_for_subscription",
|
|
2482
|
+
"POST",
|
|
2483
|
+
"/subscriptions",
|
|
2484
|
+
"/entitlement_overrides",
|
|
2485
|
+
true
|
|
2486
|
+
],
|
|
2487
|
+
[
|
|
2488
|
+
"list_entitlement_override_for_subscription",
|
|
2489
|
+
"GET",
|
|
2490
|
+
"/subscriptions",
|
|
2491
|
+
"/entitlement_overrides",
|
|
2492
|
+
true
|
|
2493
|
+
]
|
|
2346
2494
|
]
|
|
2347
2495
|
};
|
|
2348
2496
|
module.exports = _endpoints;
|