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

Remove extension methods #1511

Merged
merged 2 commits into from
Feb 12, 2019
Merged

Conversation

ob-stripe
Copy link
Contributor

r? @remi-stripe @brandur-stripe

Remember those fancy extension methods I added in #1478? Well, they're gone already.

  • BaseOptionsExtensions.ToQueryString() was no longer used in the library after all the requestor code refactoring, only in tests
  • ServiceExtensions.Expansions() was only used in the Service class itself, so it didn't make sense for it to be an extension method. It's now a regular class method.

This PR also adds the ability to pass a custom Stripe client to service instances, and uses this for testing the now private Expansions() method.

@brandur-stripe
Copy link
Contributor

Haha, nice. LGTM!

@remi-stripe remi-stripe removed their assignment Feb 12, 2019
@remi-stripe
Copy link
Contributor

This looks good but deferring to Brandur as usual for those core changes.

@ob-stripe ob-stripe merged commit 17121c3 into integration-v23 Feb 12, 2019
@ob-stripe ob-stripe deleted the ob-remove-extension-methods branch February 12, 2019 07:38
@ob-stripe ob-stripe mentioned this pull request Feb 12, 2019
52 tasks
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.

None yet

3 participants