-
Notifications
You must be signed in to change notification settings - Fork 465
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 #1319
API Updates #1319
Conversation
sub.go
Outdated
const ( | ||
SubscriptionPaymentSettingsPaymentMethodOptionsBancontactPreferredLanguageDe SubscriptionPaymentSettingsPaymentMethodOptionsBancontactPreferredLanguage = "de" | ||
SubscriptionPaymentSettingsPaymentMethodOptionsBancontactPreferredLanguageEn SubscriptionPaymentSettingsPaymentMethodOptionsBancontactPreferredLanguage = "en" | ||
SubscriptionPaymentSettingsPaymentMethodOptionsBancontactPreferredLanguageFr SubscriptionPaymentSettingsPaymentMethodOptionsBancontactPreferredLanguage = "fr" | ||
SubscriptionPaymentSettingsPaymentMethodOptionsBancontactPreferredLanguageNl SubscriptionPaymentSettingsPaymentMethodOptionsBancontactPreferredLanguage = "nl" |
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.
I think these are acronyms and need to be properly gophercased
const ( | |
SubscriptionPaymentSettingsPaymentMethodOptionsBancontactPreferredLanguageDe SubscriptionPaymentSettingsPaymentMethodOptionsBancontactPreferredLanguage = "de" | |
SubscriptionPaymentSettingsPaymentMethodOptionsBancontactPreferredLanguageEn SubscriptionPaymentSettingsPaymentMethodOptionsBancontactPreferredLanguage = "en" | |
SubscriptionPaymentSettingsPaymentMethodOptionsBancontactPreferredLanguageFr SubscriptionPaymentSettingsPaymentMethodOptionsBancontactPreferredLanguage = "fr" | |
SubscriptionPaymentSettingsPaymentMethodOptionsBancontactPreferredLanguageNl SubscriptionPaymentSettingsPaymentMethodOptionsBancontactPreferredLanguage = "nl" | |
const ( | |
SubscriptionPaymentSettingsPaymentMethodOptionsBancontactPreferredLanguageDE SubscriptionPaymentSettingsPaymentMethodOptionsBancontactPreferredLanguage = "de" | |
SubscriptionPaymentSettingsPaymentMethodOptionsBancontactPreferredLanguageEN SubscriptionPaymentSettingsPaymentMethodOptionsBancontactPreferredLanguage = "en" | |
SubscriptionPaymentSettingsPaymentMethodOptionsBancontactPreferredLanguageFR SubscriptionPaymentSettingsPaymentMethodOptionsBancontactPreferredLanguage = "fr" | |
SubscriptionPaymentSettingsPaymentMethodOptionsBancontactPreferredLanguageNL SubscriptionPaymentSettingsPaymentMethodOptionsBancontactPreferredLanguage = "nl" |
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.
Although elsewhere, it looks like we've kind of punted on this problem and just have "preferred_language" as a string. I think that probably makes sense here, too.
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.
Two minor acronym-related things:
Let's override BancontactPreferredLanguage
to be a string, and fix `AuBECS
Co-authored-by: Richard Marmorstein <[email protected]>
Thanks @richardm-stripe . Fixed! PTAL? |
Codegen for openapi 737a5b2.
r? @richardm-stripe
cc @stripe/api-libraries
Changelog
payment_settings
onSubscription
andSubscriptionParams
.