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

Add support for Network on Charge #1001

Merged
merged 1 commit into from
Dec 4, 2019
Merged

Conversation

remi-stripe
Copy link
Contributor

Similar to the java one but not touching SourceTransaction as stripe-go doesn't support the hash specific for now and since this is low usage I want to avoid adding features that will go away in the future.

r? @richardm-stripe
cc @stripe/api-libraries

@@ -39,6 +39,23 @@ const (
PaymentMethodCardBrandVisa PaymentMethodCardBrand = "visa"
)

// PaymentMethodCardNetwork is the list of allowed values to represent the network
// used for a card-like transaction.
type PaymentMethodCardNetwork string
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I made a call here on where to set the enum. I am not sure this is the right decision in the library. In a "normal" world we'd name if ChargePaymentMethodDetailsCardNetwork and it'd be specific, and duplicated for CardPresent, but in the future the network will be chosen for a PI and that will make us rename it.

Long story short: we need to figure out clear rules on how to name enums.

@remi-stripe remi-stripe merged commit 7168432 into master Dec 4, 2019
@remi-stripe remi-stripe deleted the remi-add-new-fields branch December 4, 2019 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants