Skip to content

Commit 1c693bc

Browse files
committed
## Python SDK Changes Detected:
* `client.sales-invoices.create()`: * `request.entity-sales-invoice.is_e_invoice` **Added** * `response` **Changed** * `client.sales-invoices.list()`: `response._embedded.sales_invoices.[]` **Changed** * `client.sales-invoices.get()`: `response` **Changed** * `client.sales-invoices.update()`: * `request.update-values-sales-invoice.is_e_invoice` **Added** * `response` **Changed**
1 parent 56078aa commit 1c693bc

21 files changed

+166
-175
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.env
2+
.env.local
13
**/__pycache__/
24
README-PYPI.md
35
**/.speakeasy/temp/

.speakeasy/gen.lock

Lines changed: 13 additions & 107 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@ generation:
1919
auth:
2020
oAuth2ClientCredentialsEnabled: true
2121
oAuth2PasswordEnabled: true
22+
hoistGlobalSecurity: true
2223
tests:
2324
generateTests: true
2425
generateNewTests: false
2526
skipResponseBodyAssertions: false
2627
python:
27-
version: 0.12.3
28+
version: 0.12.4
2829
additionalDependencies:
2930
dev: {}
3031
main: {}
@@ -63,4 +64,5 @@ python:
6364
pytestFilterWarnings: []
6465
pytestTimeout: 0
6566
responseFormat: flat
67+
sseFlatResponse: false
6668
templateVersion: v2

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.612.1
1+
speakeasyVersion: 1.617.1
22
sources:
33
Mollie API:
44
sourceNamespace: mollie-api
5-
sourceRevisionDigest: sha256:0dfd78968eda6d8391c0657345397a275bb59c87f13670cec93b9eea6b824b48
6-
sourceBlobDigest: sha256:a0d91b096851a09970703904cba2c11ffa50080c8545b2be0813b6c87acf7278
5+
sourceRevisionDigest: sha256:ae8caebe3b3984288826498a7e4200b7ff7ad6ea92308ebd5971c4d6d11a524a
6+
sourceBlobDigest: sha256:2cf60cfdb209c6b9c2a5a7d58d198e0ac31861703cf4abe36c64e08678ae2356
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1757346587
9+
- speakeasy-sdk-regen-1758068690
1010
- 1.0.0
1111
targets:
1212
client:
1313
source: Mollie API
1414
sourceNamespace: mollie-api
15-
sourceRevisionDigest: sha256:0dfd78968eda6d8391c0657345397a275bb59c87f13670cec93b9eea6b824b48
16-
sourceBlobDigest: sha256:a0d91b096851a09970703904cba2c11ffa50080c8545b2be0813b6c87acf7278
15+
sourceRevisionDigest: sha256:ae8caebe3b3984288826498a7e4200b7ff7ad6ea92308ebd5971c4d6d11a524a
16+
sourceBlobDigest: sha256:2cf60cfdb209c6b9c2a5a7d58d198e0ac31861703cf4abe36c64e08678ae2356
1717
codeSamplesNamespace: mollie-api-python-code-samples
18-
codeSamplesRevisionDigest: sha256:5a0f820bf2c9dd10c5e7382ab471b30316935056157aa84a345967965339f0d9
18+
codeSamplesRevisionDigest: sha256:8044a5d066ce7501b4114afb6ecbb6955d7fa31817df750550e553333ace49d4
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README-PYPI.md

Lines changed: 41 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ This documentation is for the new Mollie's SDK. You can find more details on how
2727
* [IDE Support](https://github.com/mollie/mollie-api-python-beta/blob/master/#ide-support)
2828
* [SDK Example Usage](https://github.com/mollie/mollie-api-python-beta/blob/master/#sdk-example-usage)
2929
* [Authentication](https://github.com/mollie/mollie-api-python-beta/blob/master/#authentication)
30+
* [Idempotency Key](https://github.com/mollie/mollie-api-python-beta/blob/master/#idempotency-key)
3031
* [Available Resources and Operations](https://github.com/mollie/mollie-api-python-beta/blob/master/#available-resources-and-operations)
3132
* [Retries](https://github.com/mollie/mollie-api-python-beta/blob/master/#retries)
3233
* [Error Handling](https://github.com/mollie/mollie-api-python-beta/blob/master/#error-handling)
3334
* [Server Selection](https://github.com/mollie/mollie-api-python-beta/blob/master/#server-selection)
3435
* [Custom HTTP Client](https://github.com/mollie/mollie-api-python-beta/blob/master/#custom-http-client)
3536
* [Resource Management](https://github.com/mollie/mollie-api-python-beta/blob/master/#resource-management)
3637
* [Debugging](https://github.com/mollie/mollie-api-python-beta/blob/master/#debugging)
37-
* [Idempotency Key](https://github.com/mollie/mollie-api-python-beta/blob/master/#idempotency-key)
3838
* [Development](https://github.com/mollie/mollie-api-python-beta/blob/master/#development)
3939
* [Maturity](https://github.com/mollie/mollie-api-python-beta/blob/master/#maturity)
4040
* [Contributions](https://github.com/mollie/mollie-api-python-beta/blob/master/#contributions)
@@ -201,6 +201,46 @@ with ClientSDK(
201201
```
202202
<!-- End Authentication [security] -->
203203

204+
<!-- Start Idempotency Key -->
205+
## Idempotency Key
206+
207+
This SDK supports the usage of Idempotency Keys. See our [documentation](https://docs.mollie.com/reference/api-idempotency) on how to use it.
208+
209+
```python
210+
import os
211+
from mollie import ClientSDK, Security
212+
213+
client = ClientSDK(
214+
security = Security(
215+
api_key = os.getenv("CLIENT_API_KEY", "test_..."),
216+
)
217+
)
218+
219+
payload = {
220+
"description": "Description",
221+
"amount": {
222+
"currency": "EUR",
223+
"value": "5.00",
224+
},
225+
"redirect_url": "https://example.org/redirect",
226+
}
227+
228+
idempotency_key = "<some-idempotency-key>"
229+
payment1 = client.payments.create(
230+
payment_request=payload,
231+
idempotency_key=idempotency_key
232+
)
233+
234+
payment2 = client.payments.create(
235+
payment_request=payload,
236+
idempotency_key=idempotency_key
237+
)
238+
print(f"Payment created with ID: {payment1.id}")
239+
print(f"Payment created with ID: {payment2.id}")
240+
print("Payments are the same" if payment1.id == payment2.id else "Payments are different")
241+
```
242+
<!-- End Idempotency Key -->
243+
204244
<!-- Start Available Resources and Operations [operations] -->
205245
## Available Resources and Operations
206246

@@ -664,48 +704,6 @@ You can also enable a default debug logger by setting an environment variable `C
664704

665705
<!-- Placeholder for Future Speakeasy SDK Sections -->
666706

667-
## Idempotency Key
668-
669-
You can setup an Idempotency Key.
670-
671-
```
672-
import os
673-
from mollie import ClientSDK, Security
674-
675-
client = ClientSDK(
676-
security = Security(
677-
api_key = os.getenv("MOLLIE_API_KEY", "test_..."),
678-
)
679-
)
680-
681-
payload = {
682-
"description": "Some Description",
683-
"amount": {
684-
"currency": "EUR",
685-
"value": "0.01",
686-
},
687-
"redirect_url": "https://example.org/redirect",
688-
}
689-
690-
idempotency_key = "unique-idempotency-key-12345"
691-
payment1 = client.payments.create(
692-
request_body=payload,
693-
http_headers={
694-
"Idempotency-Key": idempotency_key
695-
}
696-
)
697-
698-
payment2 = client.payments.create(
699-
request_body=payload,
700-
http_headers={
701-
"Idempotency-Key": idempotency_key
702-
}
703-
)
704-
print(f"Payment created with ID: {payment1.id}")
705-
print(f"Payment created with ID: {payment2.id}")
706-
print("Payments are the same" if payment1.id == payment2.id else "Payments are different")
707-
```
708-
709707
# Development
710708

711709
## Maturity

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,4 +518,14 @@ Based on:
518518
### Generated
519519
- [python v0.12.3] .
520520
### Releases
521-
- [PyPI v0.12.3] https://pypi.org/project/mollie/0.12.3 - .
521+
- [PyPI v0.12.3] https://pypi.org/project/mollie/0.12.3 - .
522+
523+
## 2025-09-17 00:24:25
524+
### Changes
525+
Based on:
526+
- OpenAPI Doc
527+
- Speakeasy CLI 1.617.1 (2.701.8) https://github.com/speakeasy-api/speakeasy
528+
### Generated
529+
- [python v0.12.4] .
530+
### Releases
531+
- [PyPI v0.12.4] https://pypi.org/project/mollie/0.12.4 - .

docs/models/entitysalesinvoice.md

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

docs/models/entitysalesinvoiceresponse.md

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

docs/models/entitysalesinvoiceresponselinks.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ An object with several relevant URLs. Every URL object will contain an `href` an
1010
| `self_` | [Optional[models.URL]](../models/url.md) | :heavy_minus_sign: | In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field. |
1111
| `invoice_payment` | [Optional[models.URL]](../models/url.md) | :heavy_minus_sign: | In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field. |
1212
| `pdf_link` | [Optional[models.URL]](../models/url.md) | :heavy_minus_sign: | In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field. |
13-
| `documentation` | [Optional[models.URL]](../models/url.md) | :heavy_minus_sign: | In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field. |
13+
| `documentation` | [Optional[models.URL]](../models/url.md) | :heavy_minus_sign: | In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field. |
14+
| `next` | [Optional[models.URL]](../models/url.md) | :heavy_minus_sign: | In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field. |
15+
| `previous` | [Optional[models.URL]](../models/url.md) | :heavy_minus_sign: | In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field. |

0 commit comments

Comments
 (0)