mollie-api-py 1.1.1__py3-none-any.whl → 1.1.3__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/_version.py +2 -2
- mollie/customers.py +20 -14
- mollie/delayed_routing.py +214 -12
- mollie/models/__init__.py +58 -23
- mollie/models/list_route_get_response.py +10 -5
- mollie/models/payment_create_routeop.py +4 -4
- mollie/models/payment_get_routeop.py +40 -0
- mollie/models/route_create_request.py +50 -0
- mollie/models/route_create_response.py +17 -6
- mollie/models/route_get_response.py +107 -0
- mollie/models/update_customerop.py +85 -5
- mollie/models/update_payment_linkop.py +11 -9
- mollie/models/update_paymentop.py +4 -5
- mollie/models/update_sales_invoiceop.py +174 -8
- mollie/models/update_subscriptionop.py +11 -9
- mollie/models/update_webhookop.py +8 -4
- mollie/sales_invoices.py +16 -16
- {mollie_api_py-1.1.1.dist-info → mollie_api_py-1.1.3.dist-info}/METADATA +2 -1
- {mollie_api_py-1.1.1.dist-info → mollie_api_py-1.1.3.dist-info}/RECORD +21 -20
- mollie/models/entity_route.py +0 -96
- mollie/models/update_values_sales_invoice.py +0 -176
- {mollie_api_py-1.1.1.dist-info → mollie_api_py-1.1.3.dist-info}/WHEEL +0 -0
- {mollie_api_py-1.1.1.dist-info → mollie_api_py-1.1.3.dist-info}/licenses/LICENSE.md +0 -0
mollie/_version.py
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import importlib.metadata
|
|
4
4
|
|
|
5
5
|
__title__: str = "mollie-api-py"
|
|
6
|
-
__version__: str = "1.1.
|
|
6
|
+
__version__: str = "1.1.3"
|
|
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.1.
|
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 1.1.3 2.730.5 1.0.0 mollie-api-py"
|
|
10
10
|
|
|
11
11
|
try:
|
|
12
12
|
if __package__ is not None:
|
mollie/customers.py
CHANGED
|
@@ -653,8 +653,11 @@ class Customers(BaseSDK):
|
|
|
653
653
|
*,
|
|
654
654
|
customer_id: str,
|
|
655
655
|
idempotency_key: Optional[str] = None,
|
|
656
|
-
|
|
657
|
-
Union[
|
|
656
|
+
request_body: Optional[
|
|
657
|
+
Union[
|
|
658
|
+
models.UpdateCustomerRequestBody,
|
|
659
|
+
models.UpdateCustomerRequestBodyTypedDict,
|
|
660
|
+
]
|
|
658
661
|
] = None,
|
|
659
662
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
660
663
|
server_url: Optional[str] = None,
|
|
@@ -669,7 +672,7 @@ class Customers(BaseSDK):
|
|
|
669
672
|
|
|
670
673
|
:param customer_id: Provide the ID of the related customer.
|
|
671
674
|
:param idempotency_key: A unique key to ensure idempotent requests. This key should be a UUID v4 string.
|
|
672
|
-
:param
|
|
675
|
+
:param request_body:
|
|
673
676
|
:param retries: Override the default retry configuration for this method
|
|
674
677
|
:param server_url: Override the default server URL for this method
|
|
675
678
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -688,8 +691,8 @@ class Customers(BaseSDK):
|
|
|
688
691
|
request = models.UpdateCustomerRequest(
|
|
689
692
|
customer_id=customer_id,
|
|
690
693
|
idempotency_key=idempotency_key,
|
|
691
|
-
|
|
692
|
-
|
|
694
|
+
request_body=utils.get_pydantic_model(
|
|
695
|
+
request_body, Optional[models.UpdateCustomerRequestBody]
|
|
693
696
|
),
|
|
694
697
|
)
|
|
695
698
|
|
|
@@ -707,11 +710,11 @@ class Customers(BaseSDK):
|
|
|
707
710
|
http_headers=http_headers,
|
|
708
711
|
security=self.sdk_configuration.security,
|
|
709
712
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
710
|
-
request.
|
|
713
|
+
request.request_body,
|
|
711
714
|
False,
|
|
712
715
|
True,
|
|
713
716
|
"json",
|
|
714
|
-
Optional[models.
|
|
717
|
+
Optional[models.UpdateCustomerRequestBody],
|
|
715
718
|
),
|
|
716
719
|
timeout_ms=timeout_ms,
|
|
717
720
|
)
|
|
@@ -763,8 +766,11 @@ class Customers(BaseSDK):
|
|
|
763
766
|
*,
|
|
764
767
|
customer_id: str,
|
|
765
768
|
idempotency_key: Optional[str] = None,
|
|
766
|
-
|
|
767
|
-
Union[
|
|
769
|
+
request_body: Optional[
|
|
770
|
+
Union[
|
|
771
|
+
models.UpdateCustomerRequestBody,
|
|
772
|
+
models.UpdateCustomerRequestBodyTypedDict,
|
|
773
|
+
]
|
|
768
774
|
] = None,
|
|
769
775
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
770
776
|
server_url: Optional[str] = None,
|
|
@@ -779,7 +785,7 @@ class Customers(BaseSDK):
|
|
|
779
785
|
|
|
780
786
|
:param customer_id: Provide the ID of the related customer.
|
|
781
787
|
:param idempotency_key: A unique key to ensure idempotent requests. This key should be a UUID v4 string.
|
|
782
|
-
:param
|
|
788
|
+
:param request_body:
|
|
783
789
|
:param retries: Override the default retry configuration for this method
|
|
784
790
|
:param server_url: Override the default server URL for this method
|
|
785
791
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -798,8 +804,8 @@ class Customers(BaseSDK):
|
|
|
798
804
|
request = models.UpdateCustomerRequest(
|
|
799
805
|
customer_id=customer_id,
|
|
800
806
|
idempotency_key=idempotency_key,
|
|
801
|
-
|
|
802
|
-
|
|
807
|
+
request_body=utils.get_pydantic_model(
|
|
808
|
+
request_body, Optional[models.UpdateCustomerRequestBody]
|
|
803
809
|
),
|
|
804
810
|
)
|
|
805
811
|
|
|
@@ -817,11 +823,11 @@ class Customers(BaseSDK):
|
|
|
817
823
|
http_headers=http_headers,
|
|
818
824
|
security=self.sdk_configuration.security,
|
|
819
825
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
820
|
-
request.
|
|
826
|
+
request.request_body,
|
|
821
827
|
False,
|
|
822
828
|
True,
|
|
823
829
|
"json",
|
|
824
|
-
Optional[models.
|
|
830
|
+
Optional[models.UpdateCustomerRequestBody],
|
|
825
831
|
),
|
|
826
832
|
timeout_ms=timeout_ms,
|
|
827
833
|
)
|
mollie/delayed_routing.py
CHANGED
|
@@ -15,8 +15,8 @@ class DelayedRouting(BaseSDK):
|
|
|
15
15
|
*,
|
|
16
16
|
payment_id: str,
|
|
17
17
|
idempotency_key: Optional[str] = None,
|
|
18
|
-
|
|
19
|
-
Union[models.
|
|
18
|
+
route_create_request: Optional[
|
|
19
|
+
Union[models.RouteCreateRequest, models.RouteCreateRequestTypedDict]
|
|
20
20
|
] = None,
|
|
21
21
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
22
22
|
server_url: Optional[str] = None,
|
|
@@ -30,7 +30,7 @@ class DelayedRouting(BaseSDK):
|
|
|
30
30
|
|
|
31
31
|
:param payment_id: Provide the ID of the related payment.
|
|
32
32
|
:param idempotency_key: A unique key to ensure idempotent requests. This key should be a UUID v4 string.
|
|
33
|
-
:param
|
|
33
|
+
:param route_create_request:
|
|
34
34
|
:param retries: Override the default retry configuration for this method
|
|
35
35
|
:param server_url: Override the default server URL for this method
|
|
36
36
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -49,8 +49,8 @@ class DelayedRouting(BaseSDK):
|
|
|
49
49
|
request = models.PaymentCreateRouteRequest(
|
|
50
50
|
payment_id=payment_id,
|
|
51
51
|
idempotency_key=idempotency_key,
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
route_create_request=utils.get_pydantic_model(
|
|
53
|
+
route_create_request, Optional[models.RouteCreateRequest]
|
|
54
54
|
),
|
|
55
55
|
)
|
|
56
56
|
|
|
@@ -68,7 +68,11 @@ class DelayedRouting(BaseSDK):
|
|
|
68
68
|
http_headers=http_headers,
|
|
69
69
|
security=self.sdk_configuration.security,
|
|
70
70
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
71
|
-
request.
|
|
71
|
+
request.route_create_request,
|
|
72
|
+
False,
|
|
73
|
+
True,
|
|
74
|
+
"json",
|
|
75
|
+
Optional[models.RouteCreateRequest],
|
|
72
76
|
),
|
|
73
77
|
timeout_ms=timeout_ms,
|
|
74
78
|
)
|
|
@@ -120,8 +124,8 @@ class DelayedRouting(BaseSDK):
|
|
|
120
124
|
*,
|
|
121
125
|
payment_id: str,
|
|
122
126
|
idempotency_key: Optional[str] = None,
|
|
123
|
-
|
|
124
|
-
Union[models.
|
|
127
|
+
route_create_request: Optional[
|
|
128
|
+
Union[models.RouteCreateRequest, models.RouteCreateRequestTypedDict]
|
|
125
129
|
] = None,
|
|
126
130
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
127
131
|
server_url: Optional[str] = None,
|
|
@@ -135,7 +139,7 @@ class DelayedRouting(BaseSDK):
|
|
|
135
139
|
|
|
136
140
|
:param payment_id: Provide the ID of the related payment.
|
|
137
141
|
:param idempotency_key: A unique key to ensure idempotent requests. This key should be a UUID v4 string.
|
|
138
|
-
:param
|
|
142
|
+
:param route_create_request:
|
|
139
143
|
:param retries: Override the default retry configuration for this method
|
|
140
144
|
:param server_url: Override the default server URL for this method
|
|
141
145
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -154,8 +158,8 @@ class DelayedRouting(BaseSDK):
|
|
|
154
158
|
request = models.PaymentCreateRouteRequest(
|
|
155
159
|
payment_id=payment_id,
|
|
156
160
|
idempotency_key=idempotency_key,
|
|
157
|
-
|
|
158
|
-
|
|
161
|
+
route_create_request=utils.get_pydantic_model(
|
|
162
|
+
route_create_request, Optional[models.RouteCreateRequest]
|
|
159
163
|
),
|
|
160
164
|
)
|
|
161
165
|
|
|
@@ -173,7 +177,11 @@ class DelayedRouting(BaseSDK):
|
|
|
173
177
|
http_headers=http_headers,
|
|
174
178
|
security=self.sdk_configuration.security,
|
|
175
179
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
176
|
-
request.
|
|
180
|
+
request.route_create_request,
|
|
181
|
+
False,
|
|
182
|
+
True,
|
|
183
|
+
"json",
|
|
184
|
+
Optional[models.RouteCreateRequest],
|
|
177
185
|
),
|
|
178
186
|
timeout_ms=timeout_ms,
|
|
179
187
|
)
|
|
@@ -419,3 +427,197 @@ class DelayedRouting(BaseSDK):
|
|
|
419
427
|
raise models.APIError("API error occurred", http_res, http_res_text)
|
|
420
428
|
|
|
421
429
|
raise models.APIError("Unexpected response received", http_res)
|
|
430
|
+
|
|
431
|
+
def get(
|
|
432
|
+
self,
|
|
433
|
+
*,
|
|
434
|
+
payment_id: str,
|
|
435
|
+
route_id: str,
|
|
436
|
+
idempotency_key: Optional[str] = None,
|
|
437
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
438
|
+
server_url: Optional[str] = None,
|
|
439
|
+
timeout_ms: Optional[int] = None,
|
|
440
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
|
441
|
+
) -> models.RouteGetResponse:
|
|
442
|
+
r"""Get a delayed route
|
|
443
|
+
|
|
444
|
+
Retrieve a single route created for a specific payment.
|
|
445
|
+
|
|
446
|
+
:param payment_id: Provide the ID of the related payment.
|
|
447
|
+
:param route_id: Provide the ID of the route.
|
|
448
|
+
:param idempotency_key: A unique key to ensure idempotent requests. This key should be a UUID v4 string.
|
|
449
|
+
:param retries: Override the default retry configuration for this method
|
|
450
|
+
:param server_url: Override the default server URL for this method
|
|
451
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
452
|
+
:param http_headers: Additional headers to set or replace on requests.
|
|
453
|
+
"""
|
|
454
|
+
base_url = None
|
|
455
|
+
url_variables = None
|
|
456
|
+
if timeout_ms is None:
|
|
457
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
|
458
|
+
|
|
459
|
+
if server_url is not None:
|
|
460
|
+
base_url = server_url
|
|
461
|
+
else:
|
|
462
|
+
base_url = self._get_url(base_url, url_variables)
|
|
463
|
+
|
|
464
|
+
request = models.PaymentGetRouteRequest(
|
|
465
|
+
payment_id=payment_id,
|
|
466
|
+
route_id=route_id,
|
|
467
|
+
idempotency_key=idempotency_key,
|
|
468
|
+
)
|
|
469
|
+
|
|
470
|
+
req = self._build_request(
|
|
471
|
+
method="GET",
|
|
472
|
+
path="/payments/{paymentId}/routes/{routeId}",
|
|
473
|
+
base_url=base_url,
|
|
474
|
+
url_variables=url_variables,
|
|
475
|
+
request=request,
|
|
476
|
+
request_body_required=False,
|
|
477
|
+
request_has_path_params=True,
|
|
478
|
+
request_has_query_params=True,
|
|
479
|
+
user_agent_header="user-agent",
|
|
480
|
+
accept_header_value="application/hal+json",
|
|
481
|
+
http_headers=http_headers,
|
|
482
|
+
security=self.sdk_configuration.security,
|
|
483
|
+
timeout_ms=timeout_ms,
|
|
484
|
+
)
|
|
485
|
+
|
|
486
|
+
if retries == UNSET:
|
|
487
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
|
488
|
+
retries = self.sdk_configuration.retry_config
|
|
489
|
+
else:
|
|
490
|
+
retries = utils.RetryConfig(
|
|
491
|
+
"backoff", utils.BackoffStrategy(500, 5000, 2, 7500), True
|
|
492
|
+
)
|
|
493
|
+
|
|
494
|
+
retry_config = None
|
|
495
|
+
if isinstance(retries, utils.RetryConfig):
|
|
496
|
+
retry_config = (retries, ["5xx"])
|
|
497
|
+
|
|
498
|
+
http_res = self.do_request(
|
|
499
|
+
hook_ctx=HookContext(
|
|
500
|
+
config=self.sdk_configuration,
|
|
501
|
+
base_url=base_url or "",
|
|
502
|
+
operation_id="payment-get-route",
|
|
503
|
+
oauth2_scopes=None,
|
|
504
|
+
security_source=get_security_from_env(
|
|
505
|
+
self.sdk_configuration.security, models.Security
|
|
506
|
+
),
|
|
507
|
+
),
|
|
508
|
+
request=req,
|
|
509
|
+
error_status_codes=["404", "4XX", "5XX"],
|
|
510
|
+
retry_config=retry_config,
|
|
511
|
+
)
|
|
512
|
+
|
|
513
|
+
response_data: Any = None
|
|
514
|
+
if utils.match_response(http_res, "200", "application/hal+json"):
|
|
515
|
+
return unmarshal_json_response(models.RouteGetResponse, http_res)
|
|
516
|
+
if utils.match_response(http_res, "404", "application/hal+json"):
|
|
517
|
+
response_data = unmarshal_json_response(models.ErrorResponseData, http_res)
|
|
518
|
+
raise models.ErrorResponse(response_data, http_res)
|
|
519
|
+
if utils.match_response(http_res, "4XX", "*"):
|
|
520
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
521
|
+
raise models.APIError("API error occurred", http_res, http_res_text)
|
|
522
|
+
if utils.match_response(http_res, "5XX", "*"):
|
|
523
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
524
|
+
raise models.APIError("API error occurred", http_res, http_res_text)
|
|
525
|
+
|
|
526
|
+
raise models.APIError("Unexpected response received", http_res)
|
|
527
|
+
|
|
528
|
+
async def get_async(
|
|
529
|
+
self,
|
|
530
|
+
*,
|
|
531
|
+
payment_id: str,
|
|
532
|
+
route_id: str,
|
|
533
|
+
idempotency_key: Optional[str] = None,
|
|
534
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
535
|
+
server_url: Optional[str] = None,
|
|
536
|
+
timeout_ms: Optional[int] = None,
|
|
537
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
|
538
|
+
) -> models.RouteGetResponse:
|
|
539
|
+
r"""Get a delayed route
|
|
540
|
+
|
|
541
|
+
Retrieve a single route created for a specific payment.
|
|
542
|
+
|
|
543
|
+
:param payment_id: Provide the ID of the related payment.
|
|
544
|
+
:param route_id: Provide the ID of the route.
|
|
545
|
+
:param idempotency_key: A unique key to ensure idempotent requests. This key should be a UUID v4 string.
|
|
546
|
+
:param retries: Override the default retry configuration for this method
|
|
547
|
+
:param server_url: Override the default server URL for this method
|
|
548
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
549
|
+
:param http_headers: Additional headers to set or replace on requests.
|
|
550
|
+
"""
|
|
551
|
+
base_url = None
|
|
552
|
+
url_variables = None
|
|
553
|
+
if timeout_ms is None:
|
|
554
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
|
555
|
+
|
|
556
|
+
if server_url is not None:
|
|
557
|
+
base_url = server_url
|
|
558
|
+
else:
|
|
559
|
+
base_url = self._get_url(base_url, url_variables)
|
|
560
|
+
|
|
561
|
+
request = models.PaymentGetRouteRequest(
|
|
562
|
+
payment_id=payment_id,
|
|
563
|
+
route_id=route_id,
|
|
564
|
+
idempotency_key=idempotency_key,
|
|
565
|
+
)
|
|
566
|
+
|
|
567
|
+
req = self._build_request_async(
|
|
568
|
+
method="GET",
|
|
569
|
+
path="/payments/{paymentId}/routes/{routeId}",
|
|
570
|
+
base_url=base_url,
|
|
571
|
+
url_variables=url_variables,
|
|
572
|
+
request=request,
|
|
573
|
+
request_body_required=False,
|
|
574
|
+
request_has_path_params=True,
|
|
575
|
+
request_has_query_params=True,
|
|
576
|
+
user_agent_header="user-agent",
|
|
577
|
+
accept_header_value="application/hal+json",
|
|
578
|
+
http_headers=http_headers,
|
|
579
|
+
security=self.sdk_configuration.security,
|
|
580
|
+
timeout_ms=timeout_ms,
|
|
581
|
+
)
|
|
582
|
+
|
|
583
|
+
if retries == UNSET:
|
|
584
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
|
585
|
+
retries = self.sdk_configuration.retry_config
|
|
586
|
+
else:
|
|
587
|
+
retries = utils.RetryConfig(
|
|
588
|
+
"backoff", utils.BackoffStrategy(500, 5000, 2, 7500), True
|
|
589
|
+
)
|
|
590
|
+
|
|
591
|
+
retry_config = None
|
|
592
|
+
if isinstance(retries, utils.RetryConfig):
|
|
593
|
+
retry_config = (retries, ["5xx"])
|
|
594
|
+
|
|
595
|
+
http_res = await self.do_request_async(
|
|
596
|
+
hook_ctx=HookContext(
|
|
597
|
+
config=self.sdk_configuration,
|
|
598
|
+
base_url=base_url or "",
|
|
599
|
+
operation_id="payment-get-route",
|
|
600
|
+
oauth2_scopes=None,
|
|
601
|
+
security_source=get_security_from_env(
|
|
602
|
+
self.sdk_configuration.security, models.Security
|
|
603
|
+
),
|
|
604
|
+
),
|
|
605
|
+
request=req,
|
|
606
|
+
error_status_codes=["404", "4XX", "5XX"],
|
|
607
|
+
retry_config=retry_config,
|
|
608
|
+
)
|
|
609
|
+
|
|
610
|
+
response_data: Any = None
|
|
611
|
+
if utils.match_response(http_res, "200", "application/hal+json"):
|
|
612
|
+
return unmarshal_json_response(models.RouteGetResponse, http_res)
|
|
613
|
+
if utils.match_response(http_res, "404", "application/hal+json"):
|
|
614
|
+
response_data = unmarshal_json_response(models.ErrorResponseData, http_res)
|
|
615
|
+
raise models.ErrorResponse(response_data, http_res)
|
|
616
|
+
if utils.match_response(http_res, "4XX", "*"):
|
|
617
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
618
|
+
raise models.APIError("API error occurred", http_res, http_res_text)
|
|
619
|
+
if utils.match_response(http_res, "5XX", "*"):
|
|
620
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
621
|
+
raise models.APIError("API error occurred", http_res, http_res_text)
|
|
622
|
+
|
|
623
|
+
raise models.APIError("Unexpected response received", http_res)
|
mollie/models/__init__.py
CHANGED
|
@@ -400,12 +400,6 @@ if TYPE_CHECKING:
|
|
|
400
400
|
EntityRefundResponseStatus,
|
|
401
401
|
EntityRefundResponseTypedDict,
|
|
402
402
|
)
|
|
403
|
-
from .entity_route import (
|
|
404
|
-
EntityRoute,
|
|
405
|
-
EntityRouteDestination,
|
|
406
|
-
EntityRouteDestinationTypedDict,
|
|
407
|
-
EntityRouteTypedDict,
|
|
408
|
-
)
|
|
409
403
|
from .entity_settlement import (
|
|
410
404
|
EntitySettlement,
|
|
411
405
|
EntitySettlementAmount,
|
|
@@ -1228,6 +1222,10 @@ if TYPE_CHECKING:
|
|
|
1228
1222
|
PaymentDetailsSellerProtectionResponse,
|
|
1229
1223
|
)
|
|
1230
1224
|
from .payment_details_wallet_response import PaymentDetailsWalletResponse
|
|
1225
|
+
from .payment_get_routeop import (
|
|
1226
|
+
PaymentGetRouteRequest,
|
|
1227
|
+
PaymentGetRouteRequestTypedDict,
|
|
1228
|
+
)
|
|
1231
1229
|
from .payment_line_item import PaymentLineItem, PaymentLineItemTypedDict
|
|
1232
1230
|
from .payment_line_item_response import (
|
|
1233
1231
|
PaymentLineItemResponse,
|
|
@@ -1349,6 +1347,12 @@ if TYPE_CHECKING:
|
|
|
1349
1347
|
RevokeMandateRequestBodyTypedDict,
|
|
1350
1348
|
RevokeMandateRequestTypedDict,
|
|
1351
1349
|
)
|
|
1350
|
+
from .route_create_request import (
|
|
1351
|
+
RouteCreateRequest,
|
|
1352
|
+
RouteCreateRequestDestination,
|
|
1353
|
+
RouteCreateRequestDestinationTypedDict,
|
|
1354
|
+
RouteCreateRequestTypedDict,
|
|
1355
|
+
)
|
|
1352
1356
|
from .route_create_response import (
|
|
1353
1357
|
RouteCreateResponse,
|
|
1354
1358
|
RouteCreateResponseDestination,
|
|
@@ -1359,6 +1363,14 @@ if TYPE_CHECKING:
|
|
|
1359
1363
|
)
|
|
1360
1364
|
from .route_destination_type import RouteDestinationType
|
|
1361
1365
|
from .route_destination_type_response import RouteDestinationTypeResponse
|
|
1366
|
+
from .route_get_response import (
|
|
1367
|
+
RouteGetResponse,
|
|
1368
|
+
RouteGetResponseDestination,
|
|
1369
|
+
RouteGetResponseDestinationTypedDict,
|
|
1370
|
+
RouteGetResponseLinks,
|
|
1371
|
+
RouteGetResponseLinksTypedDict,
|
|
1372
|
+
RouteGetResponseTypedDict,
|
|
1373
|
+
)
|
|
1362
1374
|
from .sales_invoice_discount import (
|
|
1363
1375
|
SalesInvoiceDiscount,
|
|
1364
1376
|
SalesInvoiceDiscountTypedDict,
|
|
@@ -1481,7 +1493,12 @@ if TYPE_CHECKING:
|
|
|
1481
1493
|
TestWebhookRequestBodyTypedDict,
|
|
1482
1494
|
TestWebhookRequestTypedDict,
|
|
1483
1495
|
)
|
|
1484
|
-
from .update_customerop import
|
|
1496
|
+
from .update_customerop import (
|
|
1497
|
+
UpdateCustomerRequest,
|
|
1498
|
+
UpdateCustomerRequestBody,
|
|
1499
|
+
UpdateCustomerRequestBodyTypedDict,
|
|
1500
|
+
UpdateCustomerRequestTypedDict,
|
|
1501
|
+
)
|
|
1485
1502
|
from .update_payment_linkop import (
|
|
1486
1503
|
UpdatePaymentLinkRequest,
|
|
1487
1504
|
UpdatePaymentLinkRequestBody,
|
|
@@ -1502,6 +1519,8 @@ if TYPE_CHECKING:
|
|
|
1502
1519
|
)
|
|
1503
1520
|
from .update_sales_invoiceop import (
|
|
1504
1521
|
UpdateSalesInvoiceRequest,
|
|
1522
|
+
UpdateSalesInvoiceRequestBody,
|
|
1523
|
+
UpdateSalesInvoiceRequestBodyTypedDict,
|
|
1505
1524
|
UpdateSalesInvoiceRequestTypedDict,
|
|
1506
1525
|
)
|
|
1507
1526
|
from .update_subscriptionop import (
|
|
@@ -1510,10 +1529,6 @@ if TYPE_CHECKING:
|
|
|
1510
1529
|
UpdateSubscriptionRequestBodyTypedDict,
|
|
1511
1530
|
UpdateSubscriptionRequestTypedDict,
|
|
1512
1531
|
)
|
|
1513
|
-
from .update_values_sales_invoice import (
|
|
1514
|
-
UpdateValuesSalesInvoice,
|
|
1515
|
-
UpdateValuesSalesInvoiceTypedDict,
|
|
1516
|
-
)
|
|
1517
1532
|
from .update_webhookop import (
|
|
1518
1533
|
UpdateWebhookEventTypes,
|
|
1519
1534
|
UpdateWebhookEventTypesTypedDict,
|
|
@@ -1805,10 +1820,6 @@ __all__ = [
|
|
|
1805
1820
|
"EntityRefundResponseSourceTypedDict",
|
|
1806
1821
|
"EntityRefundResponseStatus",
|
|
1807
1822
|
"EntityRefundResponseTypedDict",
|
|
1808
|
-
"EntityRoute",
|
|
1809
|
-
"EntityRouteDestination",
|
|
1810
|
-
"EntityRouteDestinationTypedDict",
|
|
1811
|
-
"EntityRouteTypedDict",
|
|
1812
1823
|
"EntitySettlement",
|
|
1813
1824
|
"EntitySettlementAmount",
|
|
1814
1825
|
"EntitySettlementAmountTypedDict",
|
|
@@ -2471,6 +2482,8 @@ __all__ = [
|
|
|
2471
2482
|
"PaymentDetailsWalletResponse",
|
|
2472
2483
|
"PaymentFee",
|
|
2473
2484
|
"PaymentFeeTypedDict",
|
|
2485
|
+
"PaymentGetRouteRequest",
|
|
2486
|
+
"PaymentGetRouteRequestTypedDict",
|
|
2474
2487
|
"PaymentLineItem",
|
|
2475
2488
|
"PaymentLineItemResponse",
|
|
2476
2489
|
"PaymentLineItemResponseTypedDict",
|
|
@@ -2605,6 +2618,10 @@ __all__ = [
|
|
|
2605
2618
|
"RevokeMandateRequestBody",
|
|
2606
2619
|
"RevokeMandateRequestBodyTypedDict",
|
|
2607
2620
|
"RevokeMandateRequestTypedDict",
|
|
2621
|
+
"RouteCreateRequest",
|
|
2622
|
+
"RouteCreateRequestDestination",
|
|
2623
|
+
"RouteCreateRequestDestinationTypedDict",
|
|
2624
|
+
"RouteCreateRequestTypedDict",
|
|
2608
2625
|
"RouteCreateResponse",
|
|
2609
2626
|
"RouteCreateResponseDestination",
|
|
2610
2627
|
"RouteCreateResponseDestinationTypedDict",
|
|
@@ -2613,6 +2630,12 @@ __all__ = [
|
|
|
2613
2630
|
"RouteCreateResponseTypedDict",
|
|
2614
2631
|
"RouteDestinationType",
|
|
2615
2632
|
"RouteDestinationTypeResponse",
|
|
2633
|
+
"RouteGetResponse",
|
|
2634
|
+
"RouteGetResponseDestination",
|
|
2635
|
+
"RouteGetResponseDestinationTypedDict",
|
|
2636
|
+
"RouteGetResponseLinks",
|
|
2637
|
+
"RouteGetResponseLinksTypedDict",
|
|
2638
|
+
"RouteGetResponseTypedDict",
|
|
2616
2639
|
"SalesInvoiceDiscount",
|
|
2617
2640
|
"SalesInvoiceDiscountResponse",
|
|
2618
2641
|
"SalesInvoiceDiscountResponseTypedDict",
|
|
@@ -2717,6 +2740,8 @@ __all__ = [
|
|
|
2717
2740
|
"UnauthorizedDirectDebit",
|
|
2718
2741
|
"UnauthorizedDirectDebitTypedDict",
|
|
2719
2742
|
"UpdateCustomerRequest",
|
|
2743
|
+
"UpdateCustomerRequestBody",
|
|
2744
|
+
"UpdateCustomerRequestBodyTypedDict",
|
|
2720
2745
|
"UpdateCustomerRequestTypedDict",
|
|
2721
2746
|
"UpdatePaymentLinkRequest",
|
|
2722
2747
|
"UpdatePaymentLinkRequestBody",
|
|
@@ -2731,13 +2756,13 @@ __all__ = [
|
|
|
2731
2756
|
"UpdateProfileRequestBodyTypedDict",
|
|
2732
2757
|
"UpdateProfileRequestTypedDict",
|
|
2733
2758
|
"UpdateSalesInvoiceRequest",
|
|
2759
|
+
"UpdateSalesInvoiceRequestBody",
|
|
2760
|
+
"UpdateSalesInvoiceRequestBodyTypedDict",
|
|
2734
2761
|
"UpdateSalesInvoiceRequestTypedDict",
|
|
2735
2762
|
"UpdateSubscriptionRequest",
|
|
2736
2763
|
"UpdateSubscriptionRequestBody",
|
|
2737
2764
|
"UpdateSubscriptionRequestBodyTypedDict",
|
|
2738
2765
|
"UpdateSubscriptionRequestTypedDict",
|
|
2739
|
-
"UpdateValuesSalesInvoice",
|
|
2740
|
-
"UpdateValuesSalesInvoiceTypedDict",
|
|
2741
2766
|
"UpdateWebhookEventTypes",
|
|
2742
2767
|
"UpdateWebhookEventTypesTypedDict",
|
|
2743
2768
|
"UpdateWebhookRequest",
|
|
@@ -3081,10 +3106,6 @@ _dynamic_imports: dict[str, str] = {
|
|
|
3081
3106
|
"EntityRefundResponseSourceTypedDict": ".entity_refund_response",
|
|
3082
3107
|
"EntityRefundResponseStatus": ".entity_refund_response",
|
|
3083
3108
|
"EntityRefundResponseTypedDict": ".entity_refund_response",
|
|
3084
|
-
"EntityRoute": ".entity_route",
|
|
3085
|
-
"EntityRouteDestination": ".entity_route",
|
|
3086
|
-
"EntityRouteDestinationTypedDict": ".entity_route",
|
|
3087
|
-
"EntityRouteTypedDict": ".entity_route",
|
|
3088
3109
|
"EntitySettlement": ".entity_settlement",
|
|
3089
3110
|
"EntitySettlementAmount": ".entity_settlement",
|
|
3090
3111
|
"EntitySettlementAmountTypedDict": ".entity_settlement",
|
|
@@ -3733,6 +3754,8 @@ _dynamic_imports: dict[str, str] = {
|
|
|
3733
3754
|
"PaymentDetailsReceiptCardVerificationMethodResponse": ".payment_details_receipt_card_verification_method_response",
|
|
3734
3755
|
"PaymentDetailsSellerProtectionResponse": ".payment_details_seller_protection_response",
|
|
3735
3756
|
"PaymentDetailsWalletResponse": ".payment_details_wallet_response",
|
|
3757
|
+
"PaymentGetRouteRequest": ".payment_get_routeop",
|
|
3758
|
+
"PaymentGetRouteRequestTypedDict": ".payment_get_routeop",
|
|
3736
3759
|
"PaymentLineItem": ".payment_line_item",
|
|
3737
3760
|
"PaymentLineItemTypedDict": ".payment_line_item",
|
|
3738
3761
|
"PaymentLineItemResponse": ".payment_line_item_response",
|
|
@@ -3835,6 +3858,10 @@ _dynamic_imports: dict[str, str] = {
|
|
|
3835
3858
|
"RevokeMandateRequestBody": ".revoke_mandateop",
|
|
3836
3859
|
"RevokeMandateRequestBodyTypedDict": ".revoke_mandateop",
|
|
3837
3860
|
"RevokeMandateRequestTypedDict": ".revoke_mandateop",
|
|
3861
|
+
"RouteCreateRequest": ".route_create_request",
|
|
3862
|
+
"RouteCreateRequestDestination": ".route_create_request",
|
|
3863
|
+
"RouteCreateRequestDestinationTypedDict": ".route_create_request",
|
|
3864
|
+
"RouteCreateRequestTypedDict": ".route_create_request",
|
|
3838
3865
|
"RouteCreateResponse": ".route_create_response",
|
|
3839
3866
|
"RouteCreateResponseDestination": ".route_create_response",
|
|
3840
3867
|
"RouteCreateResponseDestinationTypedDict": ".route_create_response",
|
|
@@ -3843,6 +3870,12 @@ _dynamic_imports: dict[str, str] = {
|
|
|
3843
3870
|
"RouteCreateResponseTypedDict": ".route_create_response",
|
|
3844
3871
|
"RouteDestinationType": ".route_destination_type",
|
|
3845
3872
|
"RouteDestinationTypeResponse": ".route_destination_type_response",
|
|
3873
|
+
"RouteGetResponse": ".route_get_response",
|
|
3874
|
+
"RouteGetResponseDestination": ".route_get_response",
|
|
3875
|
+
"RouteGetResponseDestinationTypedDict": ".route_get_response",
|
|
3876
|
+
"RouteGetResponseLinks": ".route_get_response",
|
|
3877
|
+
"RouteGetResponseLinksTypedDict": ".route_get_response",
|
|
3878
|
+
"RouteGetResponseTypedDict": ".route_get_response",
|
|
3846
3879
|
"SalesInvoiceDiscount": ".sales_invoice_discount",
|
|
3847
3880
|
"SalesInvoiceDiscountTypedDict": ".sales_invoice_discount",
|
|
3848
3881
|
"SalesInvoiceDiscountResponse": ".sales_invoice_discount_response",
|
|
@@ -3937,6 +3970,8 @@ _dynamic_imports: dict[str, str] = {
|
|
|
3937
3970
|
"TestWebhookRequestBodyTypedDict": ".test_webhookop",
|
|
3938
3971
|
"TestWebhookRequestTypedDict": ".test_webhookop",
|
|
3939
3972
|
"UpdateCustomerRequest": ".update_customerop",
|
|
3973
|
+
"UpdateCustomerRequestBody": ".update_customerop",
|
|
3974
|
+
"UpdateCustomerRequestBodyTypedDict": ".update_customerop",
|
|
3940
3975
|
"UpdateCustomerRequestTypedDict": ".update_customerop",
|
|
3941
3976
|
"UpdatePaymentLinkRequest": ".update_payment_linkop",
|
|
3942
3977
|
"UpdatePaymentLinkRequestBody": ".update_payment_linkop",
|
|
@@ -3951,13 +3986,13 @@ _dynamic_imports: dict[str, str] = {
|
|
|
3951
3986
|
"UpdateProfileRequestBodyTypedDict": ".update_profileop",
|
|
3952
3987
|
"UpdateProfileRequestTypedDict": ".update_profileop",
|
|
3953
3988
|
"UpdateSalesInvoiceRequest": ".update_sales_invoiceop",
|
|
3989
|
+
"UpdateSalesInvoiceRequestBody": ".update_sales_invoiceop",
|
|
3990
|
+
"UpdateSalesInvoiceRequestBodyTypedDict": ".update_sales_invoiceop",
|
|
3954
3991
|
"UpdateSalesInvoiceRequestTypedDict": ".update_sales_invoiceop",
|
|
3955
3992
|
"UpdateSubscriptionRequest": ".update_subscriptionop",
|
|
3956
3993
|
"UpdateSubscriptionRequestBody": ".update_subscriptionop",
|
|
3957
3994
|
"UpdateSubscriptionRequestBodyTypedDict": ".update_subscriptionop",
|
|
3958
3995
|
"UpdateSubscriptionRequestTypedDict": ".update_subscriptionop",
|
|
3959
|
-
"UpdateValuesSalesInvoice": ".update_values_sales_invoice",
|
|
3960
|
-
"UpdateValuesSalesInvoiceTypedDict": ".update_values_sales_invoice",
|
|
3961
3996
|
"UpdateWebhookEventTypes": ".update_webhookop",
|
|
3962
3997
|
"UpdateWebhookEventTypesTypedDict": ".update_webhookop",
|
|
3963
3998
|
"UpdateWebhookRequest": ".update_webhookop",
|
|
@@ -35,6 +35,8 @@ class ListRouteGetResponseLinksTypedDict(TypedDict):
|
|
|
35
35
|
|
|
36
36
|
self_: URLTypedDict
|
|
37
37
|
r"""In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field."""
|
|
38
|
+
payment: URLTypedDict
|
|
39
|
+
r"""In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field."""
|
|
38
40
|
|
|
39
41
|
|
|
40
42
|
class ListRouteGetResponseLinks(BaseModel):
|
|
@@ -43,6 +45,9 @@ class ListRouteGetResponseLinks(BaseModel):
|
|
|
43
45
|
self_: Annotated[URL, pydantic.Field(alias="self")]
|
|
44
46
|
r"""In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field."""
|
|
45
47
|
|
|
48
|
+
payment: URL
|
|
49
|
+
r"""In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field."""
|
|
50
|
+
|
|
46
51
|
|
|
47
52
|
class ListRouteGetResponseTypedDict(TypedDict):
|
|
48
53
|
resource: str
|
|
@@ -61,10 +66,10 @@ class ListRouteGetResponseTypedDict(TypedDict):
|
|
|
61
66
|
r"""The description of the route. This description is shown in the reports."""
|
|
62
67
|
destination: ListRouteGetResponseDestinationTypedDict
|
|
63
68
|
r"""The destination of the route."""
|
|
64
|
-
links: ListRouteGetResponseLinksTypedDict
|
|
65
|
-
r"""An object with several relevant URLs. Every URL object will contain an `href` and a `type` field."""
|
|
66
69
|
created_at: str
|
|
67
70
|
r"""The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format."""
|
|
71
|
+
links: ListRouteGetResponseLinksTypedDict
|
|
72
|
+
r"""An object with several relevant URLs. Every URL object will contain an `href` and a `type` field."""
|
|
68
73
|
|
|
69
74
|
|
|
70
75
|
class ListRouteGetResponse(BaseModel):
|
|
@@ -90,8 +95,8 @@ class ListRouteGetResponse(BaseModel):
|
|
|
90
95
|
destination: ListRouteGetResponseDestination
|
|
91
96
|
r"""The destination of the route."""
|
|
92
97
|
|
|
93
|
-
links: Annotated[ListRouteGetResponseLinks, pydantic.Field(alias="_links")]
|
|
94
|
-
r"""An object with several relevant URLs. Every URL object will contain an `href` and a `type` field."""
|
|
95
|
-
|
|
96
98
|
created_at: Annotated[str, pydantic.Field(alias="createdAt")]
|
|
97
99
|
r"""The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format."""
|
|
100
|
+
|
|
101
|
+
links: Annotated[ListRouteGetResponseLinks, pydantic.Field(alias="_links")]
|
|
102
|
+
r"""An object with several relevant URLs. Every URL object will contain an `href` and a `type` field."""
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .
|
|
4
|
+
from .route_create_request import RouteCreateRequest, RouteCreateRequestTypedDict
|
|
5
5
|
from mollie.types import BaseModel
|
|
6
6
|
from mollie.utils import (
|
|
7
7
|
FieldMetadata,
|
|
@@ -19,7 +19,7 @@ class PaymentCreateRouteRequestTypedDict(TypedDict):
|
|
|
19
19
|
r"""Provide the ID of the related payment."""
|
|
20
20
|
idempotency_key: NotRequired[str]
|
|
21
21
|
r"""A unique key to ensure idempotent requests. This key should be a UUID v4 string."""
|
|
22
|
-
|
|
22
|
+
route_create_request: NotRequired[RouteCreateRequestTypedDict]
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
class PaymentCreateRouteRequest(BaseModel):
|
|
@@ -37,7 +37,7 @@ class PaymentCreateRouteRequest(BaseModel):
|
|
|
37
37
|
] = None
|
|
38
38
|
r"""A unique key to ensure idempotent requests. This key should be a UUID v4 string."""
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
Optional[
|
|
40
|
+
route_create_request: Annotated[
|
|
41
|
+
Optional[RouteCreateRequest],
|
|
42
42
|
FieldMetadata(request=RequestMetadata(media_type="application/json")),
|
|
43
43
|
] = None
|