mollie-api-py 1.0.1__py3-none-any.whl → 1.0.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mollie/_hooks/mollie_hooks.py +16 -0
- mollie/_version.py +2 -2
- mollie/balance_transfers.py +8 -8
- mollie/balances.py +8 -8
- mollie/clients.py +8 -8
- mollie/invoices.py +8 -8
- mollie/methods.py +9 -9
- mollie/models/__init__.py +3 -3
- mollie/models/delete_profileop.py +7 -5
- mollie/models/delete_sales_invoiceop.py +7 -5
- mollie/models/delete_webhookop.py +7 -5
- mollie/models/get_balanceop.py +7 -5
- mollie/models/get_clientop.py +7 -5
- mollie/models/get_connect_balance_transferop.py +7 -5
- mollie/models/get_invoiceop.py +7 -5
- mollie/models/get_methodop.py +11 -6
- mollie/models/get_organizationop.py +7 -5
- mollie/models/get_profileop.py +7 -5
- mollie/models/get_sales_invoiceop.py +7 -5
- mollie/models/get_settlementop.py +7 -5
- mollie/models/get_webhook_eventop.py +7 -5
- mollie/models/get_webhookop.py +7 -5
- mollie/models/method_id.py +50 -0
- mollie/models/payment_request.py +3 -40
- mollie/models/test_webhookop.py +7 -5
- mollie/models/update_profileop.py +7 -5
- mollie/models/update_sales_invoiceop.py +7 -5
- mollie/models/update_webhookop.py +7 -5
- mollie/organizations.py +8 -8
- mollie/profiles.py +24 -24
- mollie/sales_invoices.py +24 -24
- mollie/settlements.py +8 -8
- mollie/webhook_events.py +8 -8
- mollie/webhooks.py +32 -32
- {mollie_api_py-1.0.1.dist-info → mollie_api_py-1.0.2.dist-info}/METADATA +1 -1
- {mollie_api_py-1.0.1.dist-info → mollie_api_py-1.0.2.dist-info}/RECORD +38 -37
- {mollie_api_py-1.0.1.dist-info → mollie_api_py-1.0.2.dist-info}/WHEEL +0 -0
- {mollie_api_py-1.0.1.dist-info → mollie_api_py-1.0.2.dist-info}/licenses/LICENSE.md +0 -0
mollie/_hooks/mollie_hooks.py
CHANGED
|
@@ -30,6 +30,9 @@ class MollieHooks(BeforeRequestHook):
|
|
|
30
30
|
:param request: The HTTP request to modify.
|
|
31
31
|
:return: The modified request or an exception.
|
|
32
32
|
"""
|
|
33
|
+
# Validate path parameters
|
|
34
|
+
self._validate_path_parameters(request)
|
|
35
|
+
|
|
33
36
|
# Create a copy of the headers
|
|
34
37
|
headers = dict(request.headers or {})
|
|
35
38
|
|
|
@@ -54,6 +57,19 @@ class MollieHooks(BeforeRequestHook):
|
|
|
54
57
|
|
|
55
58
|
return request
|
|
56
59
|
|
|
60
|
+
def _validate_path_parameters(self, request: Request) -> None:
|
|
61
|
+
path = request.url.path
|
|
62
|
+
path_segments = path.split('/')
|
|
63
|
+
|
|
64
|
+
for i, segment in enumerate(path_segments):
|
|
65
|
+
if i == 0 and segment == '':
|
|
66
|
+
continue
|
|
67
|
+
|
|
68
|
+
if segment == '' or segment.strip() == '':
|
|
69
|
+
raise ValueError(
|
|
70
|
+
f"Invalid request: empty path parameter detected in [{request.method}] '{path}'"
|
|
71
|
+
)
|
|
72
|
+
|
|
57
73
|
def _is_oauth_request(self, headers: dict, hook_ctx: BeforeRequestContext) -> bool:
|
|
58
74
|
security = hook_ctx.config.security
|
|
59
75
|
|
mollie/_version.py
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import importlib.metadata
|
|
4
4
|
|
|
5
5
|
__title__: str = "mollie"
|
|
6
|
-
__version__: str = "1.0.
|
|
6
|
+
__version__: str = "1.0.2"
|
|
7
7
|
__openapi_doc_version__: str = "1.0.0"
|
|
8
8
|
__gen_version__: str = "2.730.5"
|
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 1.0.
|
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 1.0.2 2.730.5 1.0.0 mollie"
|
|
10
10
|
|
|
11
11
|
try:
|
|
12
12
|
if __package__ is not None:
|
mollie/balance_transfers.py
CHANGED
|
@@ -449,7 +449,7 @@ class BalanceTransfers(BaseSDK):
|
|
|
449
449
|
def get(
|
|
450
450
|
self,
|
|
451
451
|
*,
|
|
452
|
-
|
|
452
|
+
balance_transfer_id: str,
|
|
453
453
|
testmode: Optional[bool] = None,
|
|
454
454
|
idempotency_key: Optional[str] = None,
|
|
455
455
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -461,7 +461,7 @@ class BalanceTransfers(BaseSDK):
|
|
|
461
461
|
|
|
462
462
|
Retrieve a single Connect balance transfer object by its ID.
|
|
463
463
|
|
|
464
|
-
:param
|
|
464
|
+
:param balance_transfer_id: Provide the ID of the related balance transfer.
|
|
465
465
|
:param testmode: You can enable test mode by setting the `testmode` query parameter to `true`. Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
|
|
466
466
|
:param idempotency_key: A unique key to ensure idempotent requests. This key should be a UUID v4 string.
|
|
467
467
|
:param retries: Override the default retry configuration for this method
|
|
@@ -480,14 +480,14 @@ class BalanceTransfers(BaseSDK):
|
|
|
480
480
|
base_url = self._get_url(base_url, url_variables)
|
|
481
481
|
|
|
482
482
|
request = models.GetConnectBalanceTransferRequest(
|
|
483
|
-
|
|
483
|
+
balance_transfer_id=balance_transfer_id,
|
|
484
484
|
testmode=testmode,
|
|
485
485
|
idempotency_key=idempotency_key,
|
|
486
486
|
)
|
|
487
487
|
|
|
488
488
|
req = self._build_request(
|
|
489
489
|
method="GET",
|
|
490
|
-
path="/connect/balance-transfers/{
|
|
490
|
+
path="/connect/balance-transfers/{balanceTransferId}",
|
|
491
491
|
base_url=base_url,
|
|
492
492
|
url_variables=url_variables,
|
|
493
493
|
request=request,
|
|
@@ -551,7 +551,7 @@ class BalanceTransfers(BaseSDK):
|
|
|
551
551
|
async def get_async(
|
|
552
552
|
self,
|
|
553
553
|
*,
|
|
554
|
-
|
|
554
|
+
balance_transfer_id: str,
|
|
555
555
|
testmode: Optional[bool] = None,
|
|
556
556
|
idempotency_key: Optional[str] = None,
|
|
557
557
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -563,7 +563,7 @@ class BalanceTransfers(BaseSDK):
|
|
|
563
563
|
|
|
564
564
|
Retrieve a single Connect balance transfer object by its ID.
|
|
565
565
|
|
|
566
|
-
:param
|
|
566
|
+
:param balance_transfer_id: Provide the ID of the related balance transfer.
|
|
567
567
|
:param testmode: You can enable test mode by setting the `testmode` query parameter to `true`. Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
|
|
568
568
|
:param idempotency_key: A unique key to ensure idempotent requests. This key should be a UUID v4 string.
|
|
569
569
|
:param retries: Override the default retry configuration for this method
|
|
@@ -582,14 +582,14 @@ class BalanceTransfers(BaseSDK):
|
|
|
582
582
|
base_url = self._get_url(base_url, url_variables)
|
|
583
583
|
|
|
584
584
|
request = models.GetConnectBalanceTransferRequest(
|
|
585
|
-
|
|
585
|
+
balance_transfer_id=balance_transfer_id,
|
|
586
586
|
testmode=testmode,
|
|
587
587
|
idempotency_key=idempotency_key,
|
|
588
588
|
)
|
|
589
589
|
|
|
590
590
|
req = self._build_request_async(
|
|
591
591
|
method="GET",
|
|
592
|
-
path="/connect/balance-transfers/{
|
|
592
|
+
path="/connect/balance-transfers/{balanceTransferId}",
|
|
593
593
|
base_url=base_url,
|
|
594
594
|
url_variables=url_variables,
|
|
595
595
|
request=request,
|
mollie/balances.py
CHANGED
|
@@ -229,7 +229,7 @@ class Balances(BaseSDK):
|
|
|
229
229
|
def get(
|
|
230
230
|
self,
|
|
231
231
|
*,
|
|
232
|
-
|
|
232
|
+
balance_id: str,
|
|
233
233
|
testmode: Optional[bool] = None,
|
|
234
234
|
idempotency_key: Optional[str] = None,
|
|
235
235
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -255,7 +255,7 @@ class Balances(BaseSDK):
|
|
|
255
255
|
balance instantly. With slower payment methods, like credit card for example, it can take a few days before the
|
|
256
256
|
funds are available on your balance. These funds will be shown under the *pending amount* in the meanwhile.
|
|
257
257
|
|
|
258
|
-
:param
|
|
258
|
+
:param balance_id: Provide the ID of the related balance.
|
|
259
259
|
:param testmode: You can enable test mode by setting the `testmode` query parameter to `true`. Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
|
|
260
260
|
:param idempotency_key: A unique key to ensure idempotent requests. This key should be a UUID v4 string.
|
|
261
261
|
:param retries: Override the default retry configuration for this method
|
|
@@ -274,14 +274,14 @@ class Balances(BaseSDK):
|
|
|
274
274
|
base_url = self._get_url(base_url, url_variables)
|
|
275
275
|
|
|
276
276
|
request = models.GetBalanceRequest(
|
|
277
|
-
|
|
277
|
+
balance_id=balance_id,
|
|
278
278
|
testmode=testmode,
|
|
279
279
|
idempotency_key=idempotency_key,
|
|
280
280
|
)
|
|
281
281
|
|
|
282
282
|
req = self._build_request(
|
|
283
283
|
method="GET",
|
|
284
|
-
path="/balances/{
|
|
284
|
+
path="/balances/{balanceId}",
|
|
285
285
|
base_url=base_url,
|
|
286
286
|
url_variables=url_variables,
|
|
287
287
|
request=request,
|
|
@@ -343,7 +343,7 @@ class Balances(BaseSDK):
|
|
|
343
343
|
async def get_async(
|
|
344
344
|
self,
|
|
345
345
|
*,
|
|
346
|
-
|
|
346
|
+
balance_id: str,
|
|
347
347
|
testmode: Optional[bool] = None,
|
|
348
348
|
idempotency_key: Optional[str] = None,
|
|
349
349
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -369,7 +369,7 @@ class Balances(BaseSDK):
|
|
|
369
369
|
balance instantly. With slower payment methods, like credit card for example, it can take a few days before the
|
|
370
370
|
funds are available on your balance. These funds will be shown under the *pending amount* in the meanwhile.
|
|
371
371
|
|
|
372
|
-
:param
|
|
372
|
+
:param balance_id: Provide the ID of the related balance.
|
|
373
373
|
:param testmode: You can enable test mode by setting the `testmode` query parameter to `true`. Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
|
|
374
374
|
:param idempotency_key: A unique key to ensure idempotent requests. This key should be a UUID v4 string.
|
|
375
375
|
:param retries: Override the default retry configuration for this method
|
|
@@ -388,14 +388,14 @@ class Balances(BaseSDK):
|
|
|
388
388
|
base_url = self._get_url(base_url, url_variables)
|
|
389
389
|
|
|
390
390
|
request = models.GetBalanceRequest(
|
|
391
|
-
|
|
391
|
+
balance_id=balance_id,
|
|
392
392
|
testmode=testmode,
|
|
393
393
|
idempotency_key=idempotency_key,
|
|
394
394
|
)
|
|
395
395
|
|
|
396
396
|
req = self._build_request_async(
|
|
397
397
|
method="GET",
|
|
398
|
-
path="/balances/{
|
|
398
|
+
path="/balances/{balanceId}",
|
|
399
399
|
base_url=base_url,
|
|
400
400
|
url_variables=url_variables,
|
|
401
401
|
request=request,
|
mollie/clients.py
CHANGED
|
@@ -217,7 +217,7 @@ class Clients(BaseSDK):
|
|
|
217
217
|
def get(
|
|
218
218
|
self,
|
|
219
219
|
*,
|
|
220
|
-
|
|
220
|
+
organization_id: str,
|
|
221
221
|
embed: OptionalNullable[str] = UNSET,
|
|
222
222
|
idempotency_key: Optional[str] = None,
|
|
223
223
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -229,7 +229,7 @@ class Clients(BaseSDK):
|
|
|
229
229
|
|
|
230
230
|
Retrieve a single client by its ID.
|
|
231
231
|
|
|
232
|
-
:param
|
|
232
|
+
:param organization_id: Provide the ID of the related organization.
|
|
233
233
|
:param embed: This endpoint allows embedding related API items by appending the following values via the `embed` query string parameter.
|
|
234
234
|
:param idempotency_key: A unique key to ensure idempotent requests. This key should be a UUID v4 string.
|
|
235
235
|
:param retries: Override the default retry configuration for this method
|
|
@@ -248,14 +248,14 @@ class Clients(BaseSDK):
|
|
|
248
248
|
base_url = self._get_url(base_url, url_variables)
|
|
249
249
|
|
|
250
250
|
request = models.GetClientRequest(
|
|
251
|
-
|
|
251
|
+
organization_id=organization_id,
|
|
252
252
|
embed=embed,
|
|
253
253
|
idempotency_key=idempotency_key,
|
|
254
254
|
)
|
|
255
255
|
|
|
256
256
|
req = self._build_request(
|
|
257
257
|
method="GET",
|
|
258
|
-
path="/clients/{
|
|
258
|
+
path="/clients/{organizationId}",
|
|
259
259
|
base_url=base_url,
|
|
260
260
|
url_variables=url_variables,
|
|
261
261
|
request=request,
|
|
@@ -314,7 +314,7 @@ class Clients(BaseSDK):
|
|
|
314
314
|
async def get_async(
|
|
315
315
|
self,
|
|
316
316
|
*,
|
|
317
|
-
|
|
317
|
+
organization_id: str,
|
|
318
318
|
embed: OptionalNullable[str] = UNSET,
|
|
319
319
|
idempotency_key: Optional[str] = None,
|
|
320
320
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
@@ -326,7 +326,7 @@ class Clients(BaseSDK):
|
|
|
326
326
|
|
|
327
327
|
Retrieve a single client by its ID.
|
|
328
328
|
|
|
329
|
-
:param
|
|
329
|
+
:param organization_id: Provide the ID of the related organization.
|
|
330
330
|
:param embed: This endpoint allows embedding related API items by appending the following values via the `embed` query string parameter.
|
|
331
331
|
:param idempotency_key: A unique key to ensure idempotent requests. This key should be a UUID v4 string.
|
|
332
332
|
:param retries: Override the default retry configuration for this method
|
|
@@ -345,14 +345,14 @@ class Clients(BaseSDK):
|
|
|
345
345
|
base_url = self._get_url(base_url, url_variables)
|
|
346
346
|
|
|
347
347
|
request = models.GetClientRequest(
|
|
348
|
-
|
|
348
|
+
organization_id=organization_id,
|
|
349
349
|
embed=embed,
|
|
350
350
|
idempotency_key=idempotency_key,
|
|
351
351
|
)
|
|
352
352
|
|
|
353
353
|
req = self._build_request_async(
|
|
354
354
|
method="GET",
|
|
355
|
-
path="/clients/{
|
|
355
|
+
path="/clients/{organizationId}",
|
|
356
356
|
base_url=base_url,
|
|
357
357
|
url_variables=url_variables,
|
|
358
358
|
request=request,
|
mollie/invoices.py
CHANGED
|
@@ -237,7 +237,7 @@ class Invoices(BaseSDK):
|
|
|
237
237
|
def get(
|
|
238
238
|
self,
|
|
239
239
|
*,
|
|
240
|
-
|
|
240
|
+
invoice_id: str,
|
|
241
241
|
idempotency_key: Optional[str] = None,
|
|
242
242
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
243
243
|
server_url: Optional[str] = None,
|
|
@@ -251,7 +251,7 @@ class Invoices(BaseSDK):
|
|
|
251
251
|
If you want to retrieve the details of an invoice by its invoice number,
|
|
252
252
|
call the [List invoices](list-invoices) endpoint with the `reference` parameter.
|
|
253
253
|
|
|
254
|
-
:param
|
|
254
|
+
:param invoice_id: Provide the ID of the related invoice.
|
|
255
255
|
:param idempotency_key: A unique key to ensure idempotent requests. This key should be a UUID v4 string.
|
|
256
256
|
:param retries: Override the default retry configuration for this method
|
|
257
257
|
:param server_url: Override the default server URL for this method
|
|
@@ -269,13 +269,13 @@ class Invoices(BaseSDK):
|
|
|
269
269
|
base_url = self._get_url(base_url, url_variables)
|
|
270
270
|
|
|
271
271
|
request = models.GetInvoiceRequest(
|
|
272
|
-
|
|
272
|
+
invoice_id=invoice_id,
|
|
273
273
|
idempotency_key=idempotency_key,
|
|
274
274
|
)
|
|
275
275
|
|
|
276
276
|
req = self._build_request(
|
|
277
277
|
method="GET",
|
|
278
|
-
path="/invoices/{
|
|
278
|
+
path="/invoices/{invoiceId}",
|
|
279
279
|
base_url=base_url,
|
|
280
280
|
url_variables=url_variables,
|
|
281
281
|
request=request,
|
|
@@ -334,7 +334,7 @@ class Invoices(BaseSDK):
|
|
|
334
334
|
async def get_async(
|
|
335
335
|
self,
|
|
336
336
|
*,
|
|
337
|
-
|
|
337
|
+
invoice_id: str,
|
|
338
338
|
idempotency_key: Optional[str] = None,
|
|
339
339
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
340
340
|
server_url: Optional[str] = None,
|
|
@@ -348,7 +348,7 @@ class Invoices(BaseSDK):
|
|
|
348
348
|
If you want to retrieve the details of an invoice by its invoice number,
|
|
349
349
|
call the [List invoices](list-invoices) endpoint with the `reference` parameter.
|
|
350
350
|
|
|
351
|
-
:param
|
|
351
|
+
:param invoice_id: Provide the ID of the related invoice.
|
|
352
352
|
:param idempotency_key: A unique key to ensure idempotent requests. This key should be a UUID v4 string.
|
|
353
353
|
:param retries: Override the default retry configuration for this method
|
|
354
354
|
:param server_url: Override the default server URL for this method
|
|
@@ -366,13 +366,13 @@ class Invoices(BaseSDK):
|
|
|
366
366
|
base_url = self._get_url(base_url, url_variables)
|
|
367
367
|
|
|
368
368
|
request = models.GetInvoiceRequest(
|
|
369
|
-
|
|
369
|
+
invoice_id=invoice_id,
|
|
370
370
|
idempotency_key=idempotency_key,
|
|
371
371
|
)
|
|
372
372
|
|
|
373
373
|
req = self._build_request_async(
|
|
374
374
|
method="GET",
|
|
375
|
-
path="/invoices/{
|
|
375
|
+
path="/invoices/{invoiceId}",
|
|
376
376
|
base_url=base_url,
|
|
377
377
|
url_variables=url_variables,
|
|
378
378
|
request=request,
|
mollie/methods.py
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
from .basesdk import BaseSDK
|
|
4
4
|
from mollie import models, utils
|
|
5
5
|
from mollie._hooks import HookContext
|
|
6
|
-
from mollie.types import OptionalNullable, UNSET
|
|
6
|
+
from mollie.types import Nullable, OptionalNullable, UNSET
|
|
7
7
|
from mollie.utils import get_security_from_env
|
|
8
8
|
from mollie.utils.unmarshal_json_response import unmarshal_json_response
|
|
9
9
|
from typing import Any, Mapping, Optional, Union
|
|
@@ -537,7 +537,7 @@ class Methods(BaseSDK):
|
|
|
537
537
|
def get(
|
|
538
538
|
self,
|
|
539
539
|
*,
|
|
540
|
-
|
|
540
|
+
method_id: Nullable[models.MethodID],
|
|
541
541
|
locale: OptionalNullable[models.Locale] = UNSET,
|
|
542
542
|
currency: Optional[str] = None,
|
|
543
543
|
profile_id: Optional[str] = None,
|
|
@@ -565,7 +565,7 @@ class Methods(BaseSDK):
|
|
|
565
565
|
Additionally, it is possible to check if wallet methods such as Apple Pay
|
|
566
566
|
are enabled by passing the wallet ID (`applepay`) as the method ID.
|
|
567
567
|
|
|
568
|
-
:param
|
|
568
|
+
:param method_id: Provide the ID of the related payment method.
|
|
569
569
|
:param locale: Response language
|
|
570
570
|
:param currency: If provided, the `minimumAmount` and `maximumAmount` will be converted to the given currency. An error is returned if the currency is not supported by the payment method.
|
|
571
571
|
:param profile_id: The identifier referring to the [profile](get-profile) you wish to retrieve the resources for. Most API credentials are linked to a single profile. In these cases the `profileId` can be omitted. For organization-level credentials such as OAuth access tokens however, the `profileId` parameter is required.
|
|
@@ -589,7 +589,7 @@ class Methods(BaseSDK):
|
|
|
589
589
|
base_url = self._get_url(base_url, url_variables)
|
|
590
590
|
|
|
591
591
|
request = models.GetMethodRequest(
|
|
592
|
-
|
|
592
|
+
method_id=method_id,
|
|
593
593
|
locale=locale,
|
|
594
594
|
currency=currency,
|
|
595
595
|
profile_id=profile_id,
|
|
@@ -601,7 +601,7 @@ class Methods(BaseSDK):
|
|
|
601
601
|
|
|
602
602
|
req = self._build_request(
|
|
603
603
|
method="GET",
|
|
604
|
-
path="/methods/{
|
|
604
|
+
path="/methods/{methodId}",
|
|
605
605
|
base_url=base_url,
|
|
606
606
|
url_variables=url_variables,
|
|
607
607
|
request=request,
|
|
@@ -664,7 +664,7 @@ class Methods(BaseSDK):
|
|
|
664
664
|
async def get_async(
|
|
665
665
|
self,
|
|
666
666
|
*,
|
|
667
|
-
|
|
667
|
+
method_id: Nullable[models.MethodID],
|
|
668
668
|
locale: OptionalNullable[models.Locale] = UNSET,
|
|
669
669
|
currency: Optional[str] = None,
|
|
670
670
|
profile_id: Optional[str] = None,
|
|
@@ -692,7 +692,7 @@ class Methods(BaseSDK):
|
|
|
692
692
|
Additionally, it is possible to check if wallet methods such as Apple Pay
|
|
693
693
|
are enabled by passing the wallet ID (`applepay`) as the method ID.
|
|
694
694
|
|
|
695
|
-
:param
|
|
695
|
+
:param method_id: Provide the ID of the related payment method.
|
|
696
696
|
:param locale: Response language
|
|
697
697
|
:param currency: If provided, the `minimumAmount` and `maximumAmount` will be converted to the given currency. An error is returned if the currency is not supported by the payment method.
|
|
698
698
|
:param profile_id: The identifier referring to the [profile](get-profile) you wish to retrieve the resources for. Most API credentials are linked to a single profile. In these cases the `profileId` can be omitted. For organization-level credentials such as OAuth access tokens however, the `profileId` parameter is required.
|
|
@@ -716,7 +716,7 @@ class Methods(BaseSDK):
|
|
|
716
716
|
base_url = self._get_url(base_url, url_variables)
|
|
717
717
|
|
|
718
718
|
request = models.GetMethodRequest(
|
|
719
|
-
|
|
719
|
+
method_id=method_id,
|
|
720
720
|
locale=locale,
|
|
721
721
|
currency=currency,
|
|
722
722
|
profile_id=profile_id,
|
|
@@ -728,7 +728,7 @@ class Methods(BaseSDK):
|
|
|
728
728
|
|
|
729
729
|
req = self._build_request_async(
|
|
730
730
|
method="GET",
|
|
731
|
-
path="/methods/{
|
|
731
|
+
path="/methods/{methodId}",
|
|
732
732
|
base_url=base_url,
|
|
733
733
|
url_variables=url_variables,
|
|
734
734
|
request=request,
|
mollie/models/__init__.py
CHANGED
|
@@ -1192,6 +1192,7 @@ if TYPE_CHECKING:
|
|
|
1192
1192
|
)
|
|
1193
1193
|
from .metadata import Metadata, MetadataTypedDict
|
|
1194
1194
|
from .method_enum import MethodEnum
|
|
1195
|
+
from .method_id import MethodID
|
|
1195
1196
|
from .method_include_wallets_parameter import MethodIncludeWalletsParameter
|
|
1196
1197
|
from .method_resource_parameter import MethodResourceParameter
|
|
1197
1198
|
from .method_response import MethodResponse
|
|
@@ -1271,7 +1272,6 @@ if TYPE_CHECKING:
|
|
|
1271
1272
|
PaymentRequestBillingAddressTypedDict,
|
|
1272
1273
|
PaymentRequestLine,
|
|
1273
1274
|
PaymentRequestLineTypedDict,
|
|
1274
|
-
PaymentRequestMethodEnum,
|
|
1275
1275
|
PaymentRequestTypedDict,
|
|
1276
1276
|
)
|
|
1277
1277
|
from .payment_response import (
|
|
@@ -2433,6 +2433,7 @@ __all__ = [
|
|
|
2433
2433
|
"MetadataTypedDict",
|
|
2434
2434
|
"Method",
|
|
2435
2435
|
"MethodEnum",
|
|
2436
|
+
"MethodID",
|
|
2436
2437
|
"MethodIncludeWalletsParameter",
|
|
2437
2438
|
"MethodResourceParameter",
|
|
2438
2439
|
"MethodResponse",
|
|
@@ -2504,7 +2505,6 @@ __all__ = [
|
|
|
2504
2505
|
"PaymentRequestBillingAddressTypedDict",
|
|
2505
2506
|
"PaymentRequestLine",
|
|
2506
2507
|
"PaymentRequestLineTypedDict",
|
|
2507
|
-
"PaymentRequestMethodEnum",
|
|
2508
2508
|
"PaymentRequestTypedDict",
|
|
2509
2509
|
"PaymentResponse",
|
|
2510
2510
|
"PaymentResponseAmountCaptured",
|
|
@@ -3710,6 +3710,7 @@ _dynamic_imports: dict[str, str] = {
|
|
|
3710
3710
|
"Metadata": ".metadata",
|
|
3711
3711
|
"MetadataTypedDict": ".metadata",
|
|
3712
3712
|
"MethodEnum": ".method_enum",
|
|
3713
|
+
"MethodID": ".method_id",
|
|
3713
3714
|
"MethodIncludeWalletsParameter": ".method_include_wallets_parameter",
|
|
3714
3715
|
"MethodResourceParameter": ".method_resource_parameter",
|
|
3715
3716
|
"MethodResponse": ".method_response",
|
|
@@ -3770,7 +3771,6 @@ _dynamic_imports: dict[str, str] = {
|
|
|
3770
3771
|
"PaymentRequestBillingAddressTypedDict": ".payment_request",
|
|
3771
3772
|
"PaymentRequestLine": ".payment_request",
|
|
3772
3773
|
"PaymentRequestLineTypedDict": ".payment_request",
|
|
3773
|
-
"PaymentRequestMethodEnum": ".payment_request",
|
|
3774
3774
|
"PaymentRequestTypedDict": ".payment_request",
|
|
3775
3775
|
"PaymentResponse": ".payment_response",
|
|
3776
3776
|
"PaymentResponseAmountCaptured": ".payment_response",
|
|
@@ -9,17 +9,19 @@ from typing_extensions import Annotated, NotRequired, TypedDict
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class DeleteProfileRequestTypedDict(TypedDict):
|
|
12
|
-
|
|
13
|
-
r"""Provide the ID of the
|
|
12
|
+
profile_id: str
|
|
13
|
+
r"""Provide the ID of the related profile."""
|
|
14
14
|
idempotency_key: NotRequired[str]
|
|
15
15
|
r"""A unique key to ensure idempotent requests. This key should be a UUID v4 string."""
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
class DeleteProfileRequest(BaseModel):
|
|
19
|
-
|
|
20
|
-
str,
|
|
19
|
+
profile_id: Annotated[
|
|
20
|
+
str,
|
|
21
|
+
pydantic.Field(alias="profileId"),
|
|
22
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
|
21
23
|
]
|
|
22
|
-
r"""Provide the ID of the
|
|
24
|
+
r"""Provide the ID of the related profile."""
|
|
23
25
|
|
|
24
26
|
idempotency_key: Annotated[
|
|
25
27
|
Optional[str],
|
|
@@ -18,18 +18,20 @@ from typing_extensions import Annotated, NotRequired, TypedDict
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
class DeleteSalesInvoiceRequestTypedDict(TypedDict):
|
|
21
|
-
|
|
22
|
-
r"""Provide the ID of the
|
|
21
|
+
sales_invoice_id: str
|
|
22
|
+
r"""Provide the ID of the related sales invoice."""
|
|
23
23
|
idempotency_key: NotRequired[str]
|
|
24
24
|
r"""A unique key to ensure idempotent requests. This key should be a UUID v4 string."""
|
|
25
25
|
delete_values_sales_invoice: NotRequired[DeleteValuesSalesInvoiceTypedDict]
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
class DeleteSalesInvoiceRequest(BaseModel):
|
|
29
|
-
|
|
30
|
-
str,
|
|
29
|
+
sales_invoice_id: Annotated[
|
|
30
|
+
str,
|
|
31
|
+
pydantic.Field(alias="salesInvoiceId"),
|
|
32
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
|
31
33
|
]
|
|
32
|
-
r"""Provide the ID of the
|
|
34
|
+
r"""Provide the ID of the related sales invoice."""
|
|
33
35
|
|
|
34
36
|
idempotency_key: Annotated[
|
|
35
37
|
Optional[str],
|
|
@@ -30,18 +30,20 @@ class DeleteWebhookRequestBody(BaseModel):
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
class DeleteWebhookRequestTypedDict(TypedDict):
|
|
33
|
-
|
|
34
|
-
r"""Provide the ID of the
|
|
33
|
+
webhook_id: str
|
|
34
|
+
r"""Provide the ID of the related webhook."""
|
|
35
35
|
idempotency_key: NotRequired[str]
|
|
36
36
|
r"""A unique key to ensure idempotent requests. This key should be a UUID v4 string."""
|
|
37
37
|
request_body: NotRequired[DeleteWebhookRequestBodyTypedDict]
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
class DeleteWebhookRequest(BaseModel):
|
|
41
|
-
|
|
42
|
-
str,
|
|
41
|
+
webhook_id: Annotated[
|
|
42
|
+
str,
|
|
43
|
+
pydantic.Field(alias="webhookId"),
|
|
44
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
|
43
45
|
]
|
|
44
|
-
r"""Provide the ID of the
|
|
46
|
+
r"""Provide the ID of the related webhook."""
|
|
45
47
|
|
|
46
48
|
idempotency_key: Annotated[
|
|
47
49
|
Optional[str],
|
mollie/models/get_balanceop.py
CHANGED
|
@@ -37,8 +37,8 @@ class GetBalanceGlobals(BaseModel):
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
class GetBalanceRequestTypedDict(TypedDict):
|
|
40
|
-
|
|
41
|
-
r"""Provide the ID of the
|
|
40
|
+
balance_id: str
|
|
41
|
+
r"""Provide the ID of the related balance."""
|
|
42
42
|
testmode: NotRequired[bool]
|
|
43
43
|
r"""You can enable test mode by setting the `testmode` query parameter to `true`.
|
|
44
44
|
|
|
@@ -49,10 +49,12 @@ class GetBalanceRequestTypedDict(TypedDict):
|
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
class GetBalanceRequest(BaseModel):
|
|
52
|
-
|
|
53
|
-
str,
|
|
52
|
+
balance_id: Annotated[
|
|
53
|
+
str,
|
|
54
|
+
pydantic.Field(alias="balanceId"),
|
|
55
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
|
54
56
|
]
|
|
55
|
-
r"""Provide the ID of the
|
|
57
|
+
r"""Provide the ID of the related balance."""
|
|
56
58
|
|
|
57
59
|
testmode: Annotated[
|
|
58
60
|
Optional[bool],
|
mollie/models/get_clientop.py
CHANGED
|
@@ -22,8 +22,8 @@ from typing_extensions import Annotated, NotRequired, TypedDict
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
class GetClientRequestTypedDict(TypedDict):
|
|
25
|
-
|
|
26
|
-
r"""Provide the ID of the
|
|
25
|
+
organization_id: str
|
|
26
|
+
r"""Provide the ID of the related organization."""
|
|
27
27
|
embed: NotRequired[Nullable[str]]
|
|
28
28
|
r"""This endpoint allows embedding related API items by appending the following values via the `embed` query string
|
|
29
29
|
parameter.
|
|
@@ -33,10 +33,12 @@ class GetClientRequestTypedDict(TypedDict):
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
class GetClientRequest(BaseModel):
|
|
36
|
-
|
|
37
|
-
str,
|
|
36
|
+
organization_id: Annotated[
|
|
37
|
+
str,
|
|
38
|
+
pydantic.Field(alias="organizationId"),
|
|
39
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
|
38
40
|
]
|
|
39
|
-
r"""Provide the ID of the
|
|
41
|
+
r"""Provide the ID of the related organization."""
|
|
40
42
|
|
|
41
43
|
embed: Annotated[
|
|
42
44
|
OptionalNullable[str],
|
|
@@ -37,8 +37,8 @@ class GetConnectBalanceTransferGlobals(BaseModel):
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
class GetConnectBalanceTransferRequestTypedDict(TypedDict):
|
|
40
|
-
|
|
41
|
-
r"""Provide the ID of the
|
|
40
|
+
balance_transfer_id: str
|
|
41
|
+
r"""Provide the ID of the related balance transfer."""
|
|
42
42
|
testmode: NotRequired[bool]
|
|
43
43
|
r"""You can enable test mode by setting the `testmode` query parameter to `true`.
|
|
44
44
|
|
|
@@ -49,10 +49,12 @@ class GetConnectBalanceTransferRequestTypedDict(TypedDict):
|
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
class GetConnectBalanceTransferRequest(BaseModel):
|
|
52
|
-
|
|
53
|
-
str,
|
|
52
|
+
balance_transfer_id: Annotated[
|
|
53
|
+
str,
|
|
54
|
+
pydantic.Field(alias="balanceTransferId"),
|
|
55
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
|
54
56
|
]
|
|
55
|
-
r"""Provide the ID of the
|
|
57
|
+
r"""Provide the ID of the related balance transfer."""
|
|
56
58
|
|
|
57
59
|
testmode: Annotated[
|
|
58
60
|
Optional[bool],
|
mollie/models/get_invoiceop.py
CHANGED
|
@@ -9,17 +9,19 @@ from typing_extensions import Annotated, NotRequired, TypedDict
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class GetInvoiceRequestTypedDict(TypedDict):
|
|
12
|
-
|
|
13
|
-
r"""Provide the ID of the
|
|
12
|
+
invoice_id: str
|
|
13
|
+
r"""Provide the ID of the related invoice."""
|
|
14
14
|
idempotency_key: NotRequired[str]
|
|
15
15
|
r"""A unique key to ensure idempotent requests. This key should be a UUID v4 string."""
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
class GetInvoiceRequest(BaseModel):
|
|
19
|
-
|
|
20
|
-
str,
|
|
19
|
+
invoice_id: Annotated[
|
|
20
|
+
str,
|
|
21
|
+
pydantic.Field(alias="invoiceId"),
|
|
22
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
|
21
23
|
]
|
|
22
|
-
r"""Provide the ID of the
|
|
24
|
+
r"""Provide the ID of the related invoice."""
|
|
23
25
|
|
|
24
26
|
idempotency_key: Annotated[
|
|
25
27
|
Optional[str],
|