chargebee 2.11.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 CHANGED
@@ -1,3 +1,25 @@
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
+
1
23
  ### v2.11.0 (2022-04-25)
2
24
  * * *
3
25
 
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.0',
11
+ clientVersion: 'v2.12.0',
12
12
  port: 443,
13
13
  timemachineWaitInMillis: 3000,
14
14
  exportWaitInMillis: 3000
@@ -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,6 +937,13 @@ 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": [
@@ -2350,6 +2371,126 @@ var _endpoints = {
2350
2371
  null,
2351
2372
  false
2352
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
+ ]
2353
2494
  ]
2354
2495
  };
2355
2496
  module.exports = _endpoints;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"chargebee",
3
- "version":"2.11.0",
3
+ "version":"2.12.0",
4
4
  "description":"A library for integrating with ChargeBee.",
5
5
  "keywords":[
6
6
  "payments",