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 /v1/topups endpoints #520

Merged
merged 1 commit into from
Feb 21, 2018
Merged

Conversation

jkakar-stripe
Copy link
Contributor

This add standard retrieve, create and update client support for the new /v1/topups endpoint.

r? @apakulov-stripe @ccontinanza-stripe @chellman-stripe @kenneth-stripe @miguel-stripe

@jkakar-stripe
Copy link
Contributor Author

r? @stripe/api-libraries

assert.NotNil(t, topup)
}

func TestTopupGet(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Apologies in advance for the nit, but would you mind alphabetizing these tests (i.e., move the Get to the top). We're still working on that in a lot of places in the library, but I think we have this decently consistent throughout tests now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No need to apologize! That's done.

@brandur-stripe
Copy link
Contributor

Someone familiar with the new product being implemented should probably take a review pass as well, but LGTM. Thanks Jamu!

topup.go Outdated
CreatedRange *RangeQueryParams `form:"created"`
}

// TopupList is a list of charges as retrieved from a list endpoint.

Choose a reason for hiding this comment

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

Is charges an intentional word here, vs using topups?

Similarly for other references to charge in the description?

@jkakar-stripe
Copy link
Contributor Author

jkakar-stripe commented Feb 16, 2018 via email

@brandur-stripe
Copy link
Contributor

Let us know when this is finalized and we'll merge and cut a release.

@apakulov-stripe
Copy link

apakulov-stripe commented Feb 21, 2018

r? @stripe/api-libraries are we ready to merge it?

@brandur-stripe
Copy link
Contributor

Yep, it's good to go. Thanks guys!

@brandur-stripe brandur-stripe merged commit 15eeb53 into master Feb 21, 2018
@brandur-stripe brandur-stripe deleted the jkakar/topup-client branch February 21, 2018 19:33
@brandur-stripe
Copy link
Contributor

Released as 29.1.0.

nadaismail-stripe pushed a commit that referenced this pull request Oct 18, 2024
* Adding basic data sanitizer for stripe field requirements

* Sanitizer test
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.

4 participants