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

API Updates #1354

Merged
merged 7 commits into from
Oct 11, 2021
Merged

API Updates #1354

merged 7 commits into from
Oct 11, 2021

Conversation

richardm-stripe
Copy link
Contributor

@richardm-stripe richardm-stripe commented Oct 11, 2021

Codegen for openapi ef061d9.
r? @dcr-stripe
cc @stripe/api-libraries

Changelog

  • Add support for PaymentMethodCategory and PreferredLocale on ChargePaymentMethodDetailsKlarna
  • Add support for Klarna on PaymentIntentPaymentMethodDataParams, PaymentIntentPaymentMethodOptionsParams, PaymentIntentPaymentMethodDataParams, PaymentIntentPaymentMethodOptionsParams, PaymentIntentConfirmPaymentMethodDataParams, PaymentIntentConfirmPaymentMethodOptionsParams, PaymentIntentPaymentMethodOptions, PaymentMethodParams, and PaymentMethod
  • Add support for new value klarna on enum PaymentMethodType

@richardm-stripe richardm-stripe changed the title API Updates [WIP] API Updates Oct 11, 2021
@yejia-stripe yejia-stripe changed the title [WIP] API Updates API Updates Oct 11, 2021
Copy link
Contributor

@dcr-stripe dcr-stripe left a comment

Choose a reason for hiding this comment

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

LGTM overall - just one comment!

charge.go Outdated
@@ -495,7 +495,10 @@ type ChargePaymentMethodDetailsInteracPresentReceipt struct {

// ChargePaymentMethodDetailsKlarna represents details for the Klarna
// PaymentMethod.
type ChargePaymentMethodDetailsKlarna struct{}
type ChargePaymentMethodDetailsKlarna struct {
PaymentMethodCategory string `json:"payment_method_category"`
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want to document the possible values for this string enum?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call, I made it an enum in 181688d

@richardm-stripe
Copy link
Contributor Author

r? @dcr-stripe

Copy link
Contributor

@dcr-stripe dcr-stripe left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!!

@richardm-stripe richardm-stripe merged commit f563534 into master Oct 11, 2021
@richardm-stripe richardm-stripe deleted the latest-codegen branch October 11, 2021 20:00
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.

3 participants