Skip to content

Commit

Permalink
Merge pull request #979 from stripe/latest-codegen-beta
Browse files Browse the repository at this point in the history
Update generated code for beta
  • Loading branch information
stripe-openapi[bot] authored Jun 15, 2023
2 parents caad475 + e1d81b6 commit 227ad6b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
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"

0 comments on commit 227ad6b

Please sign in to comment.