Skip to content

[stripe] Fix typo in IProductCreationOptions.#24796

Merged
mhegazy merged 2 commits intoDefinitelyTyped:masterfrom
psigen:patch-1
Apr 9, 2018
Merged

[stripe] Fix typo in IProductCreationOptions.#24796
mhegazy merged 2 commits intoDefinitelyTyped:masterfrom
psigen:patch-1

Conversation

@psigen
Copy link
Copy Markdown
Contributor

@psigen psigen commented Apr 7, 2018

The IProductCreationOptions interface mistakenly lists attribute instead of attributes as a property.

This does not not match the API specification for product creation, and attempting to actually populate this field results in: Error: Received unknown parameter: attribute.

Changing this value to attributes successfully allows stripe.products.create() calls to succeed in populating attributes.


Please fill in this template.

  • Use a meaningful title for the pull request. Include the name of the package modified.
  • Test the change in your own code. (Compile and run.)
  • Add or edit tests to reflect the change. (Run with npm test.)
  • Follow the advice from the readme.
  • Avoid common mistakes.
  • Run npm run lint package-name (or tsc if no tslint.json is present).

Select one of these and delete the others:

If changing an existing definition:

  • Provide a URL to documentation or source code which provides context for the suggested changes: https://stripe.com/docs/api#create_product
  • Increase the version number in the header if appropriate.
  • If you are making substantial changes, consider adding a tslint.json containing { "extends": "dtslint/dt.json" }.

psigen added 2 commits April 7, 2018 17:05
The `IProductCreationOptions` interface mistakenly lists `attribute` instead of `attributes` as a property.

This does not not match [the API specification for product creation](https://stripe.com/docs/api#create_product), and attempting to actually populate this field results in: `Error: Received unknown parameter: attribute`.

Changing this value to `attributes` successfully allows `stripe.products.create()` calls to succeed in populating attributes.
@typescript-bot
Copy link
Copy Markdown
Contributor

typescript-bot commented Apr 7, 2018

@psigen Thank you for submitting this PR!

🔔 @wjohnsto @CodeAnimal @sampsonjoliver @LinusU @brannon @kkamperschroer @starhoshi - please review this PR in the next few days. Be sure to explicitly select Approve or Request Changes in the GitHub UI so I know what's going on.

If no reviewer appears after a week, a DefinitelyTyped maintainer will review the PR instead.

Copy link
Copy Markdown
Contributor

@starhoshi starhoshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@typescript-bot
Copy link
Copy Markdown
Contributor

A definition author has approved this PR ⭐️. A maintainer will merge this PR shortly. If it shouldn't be merged yet, please leave a comment saying so and we'll wait. Thank you for your contribution to DefinitelyTyped!

@CodeAnimal
Copy link
Copy Markdown
Contributor

👍 Thanks for the contribution!

@mhegazy mhegazy merged commit 2a75536 into DefinitelyTyped:master Apr 9, 2018
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

Successfully merging this pull request may close these issues.

5 participants