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

Update generated code for beta #979

Merged
merged 3 commits into from
Jun 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v385
v387
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,19 @@ There are a few options for enabling it:
logging.getLogger('stripe').setLevel(logging.DEBUG)
```

### Accessing response code and headers

You can access the HTTP response code and headers using the `last_response` property of the returned resource.

```python
customer = stripe.Customer.retrieve(
"cus_123456789"
)

print(customer.last_response.code)
print(customer.last_response.headers)
```

### Writing a Plugin

If you're writing a plugin that uses the library, we'd appreciate it if you
Expand Down
4 changes: 2 additions & 2 deletions stripe/api_resources/reversal.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ class Reversal(UpdateableAPIResource):
Reversing a transfer that was made for a [destination
charge](https://stripe.com/docs/connect/destination-charges) is allowed only up to the amount of
the charge. It is possible to reverse a
[transfer_group](https://stripe.com/docs/connect/charges-transfers#transfer-options)
[transfer_group](https://stripe.com/docs/connect/separate-charges-and-transfers#transfer-options)
transfer only if the destination account has enough balance to cover the
reversal.

Related guide: [Reversing transfers](https://stripe.com/docs/connect/charges-transfers#reversing-transfers)
Related guide: [Reversing transfers](https://stripe.com/docs/connect/separate-charges-and-transfers#reversing-transfers)
"""

OBJECT_NAME = "transfer_reversal"
Expand Down
2 changes: 1 addition & 1 deletion stripe/api_resources/transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Transfer(
information, read about the
[transfer/payout split](https://stripe.com/docs/transfer-payout-split).

Related guide: [Creating separate charges and transfers](https://stripe.com/docs/connect/charges-transfers)
Related guide: [Creating separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers)
"""

OBJECT_NAME = "transfer"