Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs] Usage record summaries method typo #503

Closed
svarlamov opened this issue Sep 25, 2018 · 1 comment
Closed

[Docs] Usage record summaries method typo #503

svarlamov opened this issue Sep 25, 2018 · 1 comment

Comments

@svarlamov
Copy link

svarlamov commented Sep 25, 2018

In the docs here there is a typo that causes the call to fail.

var stripe = require("stripe")("~~~");

stripe.usageRecordSummarys.list(
  { limit: 3 },
  function(err, usageRecordSummarys) {
    // asynchronously called
  }
);

Should be replaced with:

var stripe = require("stripe")("~~~");

stripe.usageRecordSummaries.list(
  { limit: 3 },
  function(err, usageRecordSummaries) {
    // asynchronously called
  }
);

EDIT: There's also no example of how the subscription item ID should be passed...

@remi-stripe
Copy link
Contributor

@svarlamov Thanks for the report, I'll work with the docs team internally to get this fixed. The code should look like this:

stripe.usageRecordSummaries.list(
  'si_123',
  { limit: 3 },
  function(err, usageRecordSummaries) {
    // asynchronously called
  }
);

cpsoinos added a commit to streetsmartslabs/DefinitelyTyped that referenced this issue Jan 8, 2019
cpsoinos added a commit to streetsmartslabs/DefinitelyTyped that referenced this issue Jan 8, 2019
cpsoinos added a commit to streetsmartslabs/DefinitelyTyped that referenced this issue Jan 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants