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 #1319

Merged
merged 4 commits into from
Jul 22, 2021
Merged

API Updates #1319

merged 4 commits into from
Jul 22, 2021

Conversation

dcr-stripe
Copy link
Contributor

@dcr-stripe dcr-stripe commented Jul 21, 2021

Codegen for openapi 737a5b2.
r? @richardm-stripe
cc @stripe/api-libraries

Changelog

  • Add support for payment_settings on Subscription and SubscriptionParams.

sub.go Outdated
Comment on lines 47 to 51
const (
SubscriptionPaymentSettingsPaymentMethodOptionsBancontactPreferredLanguageDe SubscriptionPaymentSettingsPaymentMethodOptionsBancontactPreferredLanguage = "de"
SubscriptionPaymentSettingsPaymentMethodOptionsBancontactPreferredLanguageEn SubscriptionPaymentSettingsPaymentMethodOptionsBancontactPreferredLanguage = "en"
SubscriptionPaymentSettingsPaymentMethodOptionsBancontactPreferredLanguageFr SubscriptionPaymentSettingsPaymentMethodOptionsBancontactPreferredLanguage = "fr"
SubscriptionPaymentSettingsPaymentMethodOptionsBancontactPreferredLanguageNl SubscriptionPaymentSettingsPaymentMethodOptionsBancontactPreferredLanguage = "nl"
Copy link
Contributor

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

Suggested change
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"

Copy link
Contributor

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.

sub.go Outdated Show resolved Hide resolved
Copy link
Contributor

@richardm-stripe richardm-stripe left a 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

@dcr-stripe
Copy link
Contributor Author

Thanks @richardm-stripe . Fixed! PTAL?

@dcr-stripe dcr-stripe merged commit 4a3f1d6 into master Jul 22, 2021
@dcr-stripe dcr-stripe deleted the dcr-codegen branch July 22, 2021 17:59
nadaismail-stripe pushed 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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants