@commet/node 7.9.0 → 8.0.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/README.md CHANGED
@@ -60,7 +60,7 @@ await commet.subscriptions.create({
60
60
 
61
61
  // Track usage events
62
62
  await commet.usage.track({
63
- feature: 'api_call',
63
+ featureCode: 'api_call',
64
64
  value: 1,
65
65
  customerId: 'cus_123'
66
66
  });
@@ -86,9 +86,9 @@ const projects = await commet.quota.get({
86
86
  });
87
87
 
88
88
  // Check feature access
89
- const access = await commet.featureAccess.canUse({
89
+ const access = await commet.usage.check({
90
90
  customerId: 'cus_123',
91
- code: 'api_calls'
91
+ featureCode: 'api_calls'
92
92
  });
93
93
 
94
94
  // Generate customer portal link