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

Use request_stripe_object for all requests #1071

Merged

Conversation

pakrym-stripe
Copy link
Contributor

Switches to using request_stripe_object for all requests and removes special cased logic from list and search. The goal is to have the same logic accessible from custom methods as well as standard methods.

@pakrym-stripe
Copy link
Contributor Author

pakrym-stripe commented Jun 9, 2022

This has some extra changes from #1070 I'll rebase after it goes in.

…stripe_object_for_all_requests

# Conflicts:
#	lib/stripe/resources/account.rb
#	lib/stripe/resources/apps/secret.rb
#	lib/stripe/resources/charge.rb
#	lib/stripe/resources/checkout/session.rb
#	lib/stripe/resources/credit_note.rb
#	lib/stripe/resources/customer.rb
#	lib/stripe/resources/dispute.rb
#	lib/stripe/resources/financial_connections/account.rb
#	lib/stripe/resources/identity/verification_session.rb
#	lib/stripe/resources/invoice.rb
#	lib/stripe/resources/issuing/authorization.rb
#	lib/stripe/resources/issuing/card.rb
#	lib/stripe/resources/issuing/dispute.rb
#	lib/stripe/resources/order.rb
#	lib/stripe/resources/payment_intent.rb
#	lib/stripe/resources/payment_link.rb
#	lib/stripe/resources/payment_method.rb
#	lib/stripe/resources/payout.rb
#	lib/stripe/resources/quote.rb
#	lib/stripe/resources/refund.rb
#	lib/stripe/resources/review.rb
#	lib/stripe/resources/setup_intent.rb
#	lib/stripe/resources/source.rb
#	lib/stripe/resources/subscription.rb
#	lib/stripe/resources/subscription_schedule.rb
#	lib/stripe/resources/terminal/reader.rb
#	lib/stripe/resources/test_helpers/test_clock.rb
#	lib/stripe/resources/topup.rb
#	lib/stripe/resources/transfer.rb
#	lib/stripe/resources/treasury/financial_account.rb
#	lib/stripe/resources/treasury/inbound_transfer.rb
#	lib/stripe/resources/treasury/outbound_payment.rb
#	lib/stripe/resources/treasury/outbound_transfer.rb
Copy link
Contributor

@dcr-stripe dcr-stripe left a comment

Choose a reason for hiding this comment

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

Overall I like the direction! Just a few questions. PTAL @pakrym-stripe

lib/stripe/util.rb Outdated Show resolved Hide resolved
lib/stripe/util.rb Outdated Show resolved Hide resolved
lib/stripe/api_operations/request.rb Show resolved Hide resolved
@stripe-ci
Copy link

Note: The magic comments ptal and re-r are being deprecated soon.
Please use r? @... in the future to request a review from a specific team or individual.

1 similar comment
@stripe-ci
Copy link

Note: The magic comments ptal and re-r are being deprecated soon.
Please use r? @... in the future to request a review from a specific team or individual.

@pakrym-stripe
Copy link
Contributor Author

r? @dcr-stripe

Copy link
Contributor

@dcr-stripe dcr-stripe left a comment

Choose a reason for hiding this comment

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

LGTM! Amazing

lib/stripe/api_operations/request.rb Show resolved Hide resolved
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