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

Move to API version 2019-08-14 and other changes #915

Merged
merged 1 commit into from
Aug 15, 2019
Merged

Conversation

remi-stripe
Copy link
Contributor

  • Pin to API version 2019-08-14
  • Rename AccountCapabilityPlatformPayments to AccountCapabilityTransfers
  • Add Executive in PersonRelationship
  • Remove PayentMethodOptions as there was a typo which was fixed.
  • Make OffSession only support booleans on PaymentIntent
  • Remove PaymentIntentLastPaymentError and use Error instead
  • Move DeclineCode on Error to the DeclineCode instead of string

r? @ob-stripe @brandur-stripe (tagging you both are there are multiple changes
cc @stripe/api-libraries

person.go Outdated Show resolved Hide resolved
@ob-stripe
Copy link
Contributor

LGTM! Love the various cleanups here.

Reassigning to @brandur-stripe for a second look just in case.

@ob-stripe ob-stripe removed their assignment Aug 14, 2019
@ob-stripe ob-stripe requested review from ob-stripe and brandur-stripe and removed request for ob-stripe August 14, 2019 23:57
Copy link
Contributor

@brandur-stripe brandur-stripe left a comment

Choose a reason for hiding this comment

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

One comment, but LGTM Remi! Thanks for remembering that all these TODOs even existed.

ptal @remi-stripe

@@ -242,7 +219,7 @@ type PaymentIntent struct {
Customer *Customer `json:"customer"`
Description string `json:"description"`
Invoice *Invoice `json:"invoice"`
LastPaymentError *PaymentIntentLastPaymentError `json:"last_payment_error"`
LastPaymentError *Error `json:"last_payment_error"`
Copy link
Contributor

Choose a reason for hiding this comment

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

Just flagging that it looks like DocURL will go away with this change. I think it may just be an oversight that it's not on the standard Error struct?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Damn nice catch, yes looks like an oversight, let me add this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed! 🦅 👁

Copy link
Contributor

@brandur-stripe brandur-stripe left a comment

Choose a reason for hiding this comment

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

Thanks Remi! LGTM.

* Pin to API version 2019-08-14
* Rename AccountCapabilityPlatformPayments to AccountCapabilityTransfers
* Add `Executive` in `PersonRelationship`
* Remove `PayentMethodOptions` as there was a typo which was fixed.
* Make `OffSession` only support booleans on `PaymentIntent`
* Remove `PaymentIntentLastPaymentError` and use `Error` instead
* Move `DeclineCode` on `Error` to the `DeclineCode` instead of `string`
@ob-stripe ob-stripe merged commit 7846b57 into master Aug 15, 2019
@ob-stripe ob-stripe deleted the remi-2019-08-14 branch August 15, 2019 01:11
@ob-stripe
Copy link
Contributor

Released as 62.0.0.

nadaismail-stripe added a commit that referenced this pull request Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants