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 last_response to StripeObject #1377

Merged
merged 3 commits into from
Apr 9, 2024
Merged

Conversation

helenye-stripe
Copy link
Contributor

@helenye-stripe helenye-stripe commented Apr 9, 2024

This allows users to retrieve status code and headers more easily for all requests.

Keeps the existing last_response pattern for backwards compatibility.

Changelog

  • Users can now retrieve raw response from the returned resource, using the last_response property. See README for an example.

@helenye-stripe helenye-stripe requested review from a team and pakrym-stripe and removed request for a team April 9, 2024 17:44
@richardm-stripe richardm-stripe changed the title Add last_rseponse to StripeObject Add last_response to StripeObject Apr 9, 2024
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.

LGTM!

@helenye-stripe helenye-stripe merged commit a12ff9c into master Apr 9, 2024
13 checks passed
@helenye-stripe helenye-stripe deleted the helenye-last-response branch July 16, 2024 17:13
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