-
Notifications
You must be signed in to change notification settings - Fork 764
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
Add support for the File Link resource #483
Conversation
Minor comment, but otherwise LGTM. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(And oops, forgot to submit this review.)
Disputes: require('./resources/Issuing/Disputes'), | ||
Transactions: require('./resources/Issuing/Transactions'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hah, thanks for alphabetizing everything!
test/resources/FileLinks.spec.js
Outdated
stripe.fileLinks.update('fl_123', {metadata: {key: 'value'}}); | ||
expect(stripe.LAST_REQUEST).to.deep.equal({ | ||
method: 'POST', | ||
url: '/v1/file_links/fl_123', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quite minor and I didn't notice on your PHP pull, but file link tokens have a test
or live
in them. This is unlike most resources, but is needed because you're not using a key that would hint which mode to load it in.
It might be slightly more accurate if we used an identifier like fl_live_123
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait, that's only for the url
attribute though. File links have a regular token, but it starts with link_
, not with fl_
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh oops. Yeah you're right — I got confused seeing the fl_
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
totally misread that from an earlier link I saw that had fl in it. Thanks for catching, I'll also fix in PHP
4d95bf6
to
df44192
Compare
@brandur-stripe Fixed PTAL |
LGTM. |
Released as 6.6.0. |
r? @ob-stripe @brandur-stripe
cc @stripe/api-libraries