-
Notifications
You must be signed in to change notification settings - Fork 461
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
API Updates #1354
Conversation
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.
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"` |
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.
Do we want to document the possible values for this string enum?
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.
Good call, I made it an enum in 181688d
r? @dcr-stripe |
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.
LGTM. Thanks!!
Codegen for openapi ef061d9.
r? @dcr-stripe
cc @stripe/api-libraries
Changelog
PaymentMethodCategory
andPreferredLocale
onChargePaymentMethodDetailsKlarna
Klarna
onPaymentIntentPaymentMethodDataParams
,PaymentIntentPaymentMethodOptionsParams
,PaymentIntentPaymentMethodDataParams
,PaymentIntentPaymentMethodOptionsParams
,PaymentIntentConfirmPaymentMethodDataParams
,PaymentIntentConfirmPaymentMethodOptionsParams
,PaymentIntentPaymentMethodOptions
,PaymentMethodParams
, andPaymentMethod
klarna
on enumPaymentMethodType