3.2.0
Summary:
- Added support for the Balances API
If you'd like to retrieve a Balance Report or the Balance Transactions, you can do so using their respective methods:
balance = client.balances.get(balance_id)
report = balance.get_report()
transactions = balance.get_transactions()
- Added support using Idempotency Keys when sending POST/PUT/DELETE requests. For every request an Idempotency Key will be generated and used automatically. However, you can submit your own Idempotency Key if you'd like by simply passing it as an argument. An Idempotency Key needs to be unique for each unique request.
client.customers.update(
"cst_8wmqcHMN4U",
{
"name": "Updated Customer A",
"email": "updated-customer@example.org",
},
idempotency_key="your_idempotency_key",
)
- Added
has_settlement()
method to Payment - Simplified the code concerning validating the Settlements ID
Install it: https://pypi.org/project/mollie-api-python/3.2.0