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

fix: Update cash balance methods to no longer require nested ID. #818

Merged
merged 2 commits into from
Jun 8, 2022

Conversation

dcr-stripe
Copy link
Contributor

@dcr-stripe dcr-stripe commented May 31, 2022

Summary

Updates Customer.retrieve_cash_balance and Customer.modify_cash_balance methods to no longer require a nested ID.

Previously you always had to call with None as the second parameter (eg. retrieve_cash_balance('cus_123', None)).
With this PR, the second parameter is None by default. Now you can call this just with the customer ID (eg. retrieve_cash_balance('cus_123')).

@dcr-stripe dcr-stripe force-pushed the dcr-cash-balance-tests branch 3 times, most recently from edc5f48 to 5c883d8 Compare May 31, 2022 22:22
@dcr-stripe dcr-stripe changed the title Add test for cash balance methods. fix: Update cash balance methods to no longer require nested ID. May 31, 2022
@richardm-stripe richardm-stripe mentioned this pull request Jun 8, 2022
@dcr-stripe dcr-stripe merged commit ad11a80 into master Jun 8, 2022
@dcr-stripe dcr-stripe deleted the dcr-cash-balance-tests branch June 8, 2022 16:14
netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this pull request Jul 8, 2022
## 3.5.0 - 2022-06-30
* [#831](stripe/stripe-python#831) API Updates
  * Add support for `deliver_card`, `fail_card`, `return_card`, and `ship_card` test helper methods on resource `Issuing.Card`
  * Switch from using `instance_url` to computing method path in place for custom methods.
  * Switch from using explicit class methods for test helpers instead of using meta-programming.

## 3.4.0 - 2022-06-17
* [#824](stripe/stripe-python#824) API Updates
  * Add support for `fund_cash_balance` test helper method on resource `Customer`
* [#823](stripe/stripe-python#823) Trigger workflows on beta branches

## 3.3.0 - 2022-06-08
* [#818](stripe/stripe-python#818) fix: Update cash balance methods to no longer require nested ID.

## 3.2.0 - 2022-05-23
* [#812](stripe/stripe-python#812) API Updates
  * Add support for new resource `Apps.Secret`

## 3.1.0 - 2022-05-19
* [#810](stripe/stripe-python#810) API Updates
  * Add support for new resources `Treasury.CreditReversal`, `Treasury.DebitReversal`, `Treasury.FinancialAccountFeatures`, `Treasury.FinancialAccount`, `Treasury.FlowDetails`, `Treasury.InboundTransfer`, `Treasury.OutboundPayment`, `Treasury.OutboundTransfer`, `Treasury.ReceivedCredit`, `Treasury.ReceivedDebit`, `Treasury.TransactionEntry`, and `Treasury.Transaction`
  * Add support for `retrieve_payment_method` method on resource `Customer`
  * Add support for `list_owners` and `list` methods on resource `FinancialConnections.Account`
* [#719](stripe/stripe-python#719) Set daemon attribute instead of using setDaemon method that was deprecated in Python 3.10
* [#767](stripe/stripe-python#767) Bump vendored six to 1.16.0
* [#806](stripe/stripe-python#806) Start testing on pypy-3.8
* [#811](stripe/stripe-python#811) Add sanitize_id method


## 3.0.0 - 2022-05-09
* [#809](stripe/stripe-python#809) Release of major version v3.0.0. The [migration guide](https://github.com/stripe/stripe-python/wiki/Migration-Guide-for-v3) contains more information.
  (⚠️ = breaking changes):
  * ⚠️ Replace the legacy `Order` API with the new `Order` API.
    * New methods: `cancel`, `list_line_items`, `reopen`, and `submit`
    * Removed methods: `pay` and `return_order`
    * Removed resources: `OrderItem` and `OrderReturn`
  * ⚠️ Rename `financial_connections.account.refresh` to `financial_connections.refresh_account`
  * Add support for `amount_discount`, `amount_tax`, and `product` on `LineItem`

## 2.76.0 - 2022-05-05
* [#808](stripe/stripe-python#808) API Updates
  * Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session`

## 2.75.0 - 2022-05-03
* [#805](stripe/stripe-python#805) API Updates
  * Add support for new resource `CashBalance`
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.

None yet

2 participants