mollie-api-py 1.1.2__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 CHANGED
@@ -3,10 +3,10 @@
3
3
  import importlib.metadata
4
4
 
5
5
  __title__: str = "mollie-api-py"
6
- __version__: str = "1.1.2"
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.2 2.730.5 1.0.0 mollie-api-py"
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/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
- entity_route: Optional[
19
- Union[models.EntityRoute, models.EntityRouteTypedDict]
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 entity_route:
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
- entity_route=utils.get_pydantic_model(
53
- entity_route, Optional[models.EntityRoute]
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.entity_route, False, True, "json", Optional[models.EntityRoute]
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
- entity_route: Optional[
124
- Union[models.EntityRoute, models.EntityRouteTypedDict]
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 entity_route:
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
- entity_route=utils.get_pydantic_model(
158
- entity_route, Optional[models.EntityRoute]
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.entity_route, False, True, "json", Optional[models.EntityRoute]
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,
@@ -1808,10 +1820,6 @@ __all__ = [
1808
1820
  "EntityRefundResponseSourceTypedDict",
1809
1821
  "EntityRefundResponseStatus",
1810
1822
  "EntityRefundResponseTypedDict",
1811
- "EntityRoute",
1812
- "EntityRouteDestination",
1813
- "EntityRouteDestinationTypedDict",
1814
- "EntityRouteTypedDict",
1815
1823
  "EntitySettlement",
1816
1824
  "EntitySettlementAmount",
1817
1825
  "EntitySettlementAmountTypedDict",
@@ -2474,6 +2482,8 @@ __all__ = [
2474
2482
  "PaymentDetailsWalletResponse",
2475
2483
  "PaymentFee",
2476
2484
  "PaymentFeeTypedDict",
2485
+ "PaymentGetRouteRequest",
2486
+ "PaymentGetRouteRequestTypedDict",
2477
2487
  "PaymentLineItem",
2478
2488
  "PaymentLineItemResponse",
2479
2489
  "PaymentLineItemResponseTypedDict",
@@ -2608,6 +2618,10 @@ __all__ = [
2608
2618
  "RevokeMandateRequestBody",
2609
2619
  "RevokeMandateRequestBodyTypedDict",
2610
2620
  "RevokeMandateRequestTypedDict",
2621
+ "RouteCreateRequest",
2622
+ "RouteCreateRequestDestination",
2623
+ "RouteCreateRequestDestinationTypedDict",
2624
+ "RouteCreateRequestTypedDict",
2611
2625
  "RouteCreateResponse",
2612
2626
  "RouteCreateResponseDestination",
2613
2627
  "RouteCreateResponseDestinationTypedDict",
@@ -2616,6 +2630,12 @@ __all__ = [
2616
2630
  "RouteCreateResponseTypedDict",
2617
2631
  "RouteDestinationType",
2618
2632
  "RouteDestinationTypeResponse",
2633
+ "RouteGetResponse",
2634
+ "RouteGetResponseDestination",
2635
+ "RouteGetResponseDestinationTypedDict",
2636
+ "RouteGetResponseLinks",
2637
+ "RouteGetResponseLinksTypedDict",
2638
+ "RouteGetResponseTypedDict",
2619
2639
  "SalesInvoiceDiscount",
2620
2640
  "SalesInvoiceDiscountResponse",
2621
2641
  "SalesInvoiceDiscountResponseTypedDict",
@@ -3086,10 +3106,6 @@ _dynamic_imports: dict[str, str] = {
3086
3106
  "EntityRefundResponseSourceTypedDict": ".entity_refund_response",
3087
3107
  "EntityRefundResponseStatus": ".entity_refund_response",
3088
3108
  "EntityRefundResponseTypedDict": ".entity_refund_response",
3089
- "EntityRoute": ".entity_route",
3090
- "EntityRouteDestination": ".entity_route",
3091
- "EntityRouteDestinationTypedDict": ".entity_route",
3092
- "EntityRouteTypedDict": ".entity_route",
3093
3109
  "EntitySettlement": ".entity_settlement",
3094
3110
  "EntitySettlementAmount": ".entity_settlement",
3095
3111
  "EntitySettlementAmountTypedDict": ".entity_settlement",
@@ -3738,6 +3754,8 @@ _dynamic_imports: dict[str, str] = {
3738
3754
  "PaymentDetailsReceiptCardVerificationMethodResponse": ".payment_details_receipt_card_verification_method_response",
3739
3755
  "PaymentDetailsSellerProtectionResponse": ".payment_details_seller_protection_response",
3740
3756
  "PaymentDetailsWalletResponse": ".payment_details_wallet_response",
3757
+ "PaymentGetRouteRequest": ".payment_get_routeop",
3758
+ "PaymentGetRouteRequestTypedDict": ".payment_get_routeop",
3741
3759
  "PaymentLineItem": ".payment_line_item",
3742
3760
  "PaymentLineItemTypedDict": ".payment_line_item",
3743
3761
  "PaymentLineItemResponse": ".payment_line_item_response",
@@ -3840,6 +3858,10 @@ _dynamic_imports: dict[str, str] = {
3840
3858
  "RevokeMandateRequestBody": ".revoke_mandateop",
3841
3859
  "RevokeMandateRequestBodyTypedDict": ".revoke_mandateop",
3842
3860
  "RevokeMandateRequestTypedDict": ".revoke_mandateop",
3861
+ "RouteCreateRequest": ".route_create_request",
3862
+ "RouteCreateRequestDestination": ".route_create_request",
3863
+ "RouteCreateRequestDestinationTypedDict": ".route_create_request",
3864
+ "RouteCreateRequestTypedDict": ".route_create_request",
3843
3865
  "RouteCreateResponse": ".route_create_response",
3844
3866
  "RouteCreateResponseDestination": ".route_create_response",
3845
3867
  "RouteCreateResponseDestinationTypedDict": ".route_create_response",
@@ -3848,6 +3870,12 @@ _dynamic_imports: dict[str, str] = {
3848
3870
  "RouteCreateResponseTypedDict": ".route_create_response",
3849
3871
  "RouteDestinationType": ".route_destination_type",
3850
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",
3851
3879
  "SalesInvoiceDiscount": ".sales_invoice_discount",
3852
3880
  "SalesInvoiceDiscountTypedDict": ".sales_invoice_discount",
3853
3881
  "SalesInvoiceDiscountResponse": ".sales_invoice_discount_response",
@@ -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 .entity_route import EntityRoute, EntityRouteTypedDict
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
- entity_route: NotRequired[EntityRouteTypedDict]
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
- entity_route: Annotated[
41
- Optional[EntityRoute],
40
+ route_create_request: Annotated[
41
+ Optional[RouteCreateRequest],
42
42
  FieldMetadata(request=RequestMetadata(media_type="application/json")),
43
43
  ] = None
@@ -0,0 +1,40 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from mollie.types import BaseModel
5
+ from mollie.utils import FieldMetadata, HeaderMetadata, PathParamMetadata
6
+ import pydantic
7
+ from typing import Optional
8
+ from typing_extensions import Annotated, NotRequired, TypedDict
9
+
10
+
11
+ class PaymentGetRouteRequestTypedDict(TypedDict):
12
+ payment_id: str
13
+ r"""Provide the ID of the related payment."""
14
+ route_id: str
15
+ r"""Provide the ID of the route."""
16
+ idempotency_key: NotRequired[str]
17
+ r"""A unique key to ensure idempotent requests. This key should be a UUID v4 string."""
18
+
19
+
20
+ class PaymentGetRouteRequest(BaseModel):
21
+ payment_id: Annotated[
22
+ str,
23
+ pydantic.Field(alias="paymentId"),
24
+ FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
25
+ ]
26
+ r"""Provide the ID of the related payment."""
27
+
28
+ route_id: Annotated[
29
+ str,
30
+ pydantic.Field(alias="routeId"),
31
+ FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
32
+ ]
33
+ r"""Provide the ID of the route."""
34
+
35
+ idempotency_key: Annotated[
36
+ Optional[str],
37
+ pydantic.Field(alias="idempotency-key"),
38
+ FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
39
+ ] = None
40
+ r"""A unique key to ensure idempotent requests. This key should be a UUID v4 string."""
@@ -0,0 +1,50 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .amount import Amount, AmountTypedDict
5
+ from .route_destination_type import RouteDestinationType
6
+ from mollie.types import BaseModel
7
+ import pydantic
8
+ from typing import Optional
9
+ from typing_extensions import Annotated, NotRequired, TypedDict
10
+
11
+
12
+ class RouteCreateRequestDestinationTypedDict(TypedDict):
13
+ r"""The destination of the route."""
14
+
15
+ type: RouteDestinationType
16
+ r"""The type of destination. Currently only the destination type `organization` is supported."""
17
+ organization_id: str
18
+
19
+
20
+ class RouteCreateRequestDestination(BaseModel):
21
+ r"""The destination of the route."""
22
+
23
+ type: RouteDestinationType
24
+ r"""The type of destination. Currently only the destination type `organization` is supported."""
25
+
26
+ organization_id: Annotated[str, pydantic.Field(alias="organizationId")]
27
+
28
+
29
+ class RouteCreateRequestTypedDict(TypedDict):
30
+ r"""Payload to create a new delayed route for a payment."""
31
+
32
+ amount: AmountTypedDict
33
+ r"""In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field."""
34
+ destination: RouteCreateRequestDestinationTypedDict
35
+ r"""The destination of the route."""
36
+ description: NotRequired[str]
37
+ r"""Description shown in reports."""
38
+
39
+
40
+ class RouteCreateRequest(BaseModel):
41
+ r"""Payload to create a new delayed route for a payment."""
42
+
43
+ amount: Amount
44
+ r"""In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field."""
45
+
46
+ destination: RouteCreateRequestDestination
47
+ r"""The destination of the route."""
48
+
49
+ description: Optional[str] = None
50
+ r"""Description shown in reports."""
@@ -8,7 +8,8 @@ from mollie.types import BaseModel
8
8
  from mollie.utils import validate_open_enum
9
9
  import pydantic
10
10
  from pydantic.functional_validators import PlainValidator
11
- from typing_extensions import Annotated, TypedDict
11
+ from typing import Optional
12
+ from typing_extensions import Annotated, NotRequired, TypedDict
12
13
 
13
14
 
14
15
  class RouteCreateResponseDestinationTypedDict(TypedDict):
@@ -37,6 +38,8 @@ class RouteCreateResponseLinksTypedDict(TypedDict):
37
38
  r"""In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field."""
38
39
  documentation: URLTypedDict
39
40
  r"""In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field."""
41
+ payment: URLTypedDict
42
+ r"""In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field."""
40
43
 
41
44
 
42
45
  class RouteCreateResponseLinks(BaseModel):
@@ -48,6 +51,9 @@ class RouteCreateResponseLinks(BaseModel):
48
51
  documentation: URL
49
52
  r"""In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field."""
50
53
 
54
+ payment: URL
55
+ r"""In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field."""
56
+
51
57
 
52
58
  class RouteCreateResponseTypedDict(TypedDict):
53
59
  resource: str
@@ -62,12 +68,14 @@ class RouteCreateResponseTypedDict(TypedDict):
62
68
  """
63
69
  amount: AmountTypedDict
64
70
  r"""In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field."""
65
- description: str
66
- r"""The description of the route. This description is shown in the reports."""
67
71
  destination: RouteCreateResponseDestinationTypedDict
68
72
  r"""The destination of the route."""
73
+ created_at: str
74
+ r"""The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format."""
69
75
  links: RouteCreateResponseLinksTypedDict
70
76
  r"""An object with several relevant URLs. Every URL object will contain an `href` and a `type` field."""
77
+ description: NotRequired[str]
78
+ r"""The description of the route. This description is shown in the reports."""
71
79
 
72
80
 
73
81
  class RouteCreateResponse(BaseModel):
@@ -87,11 +95,14 @@ class RouteCreateResponse(BaseModel):
87
95
  amount: Amount
88
96
  r"""In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field."""
89
97
 
90
- description: str
91
- r"""The description of the route. This description is shown in the reports."""
92
-
93
98
  destination: RouteCreateResponseDestination
94
99
  r"""The destination of the route."""
95
100
 
101
+ created_at: Annotated[str, pydantic.Field(alias="createdAt")]
102
+ r"""The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format."""
103
+
96
104
  links: Annotated[RouteCreateResponseLinks, pydantic.Field(alias="_links")]
97
105
  r"""An object with several relevant URLs. Every URL object will contain an `href` and a `type` field."""
106
+
107
+ description: Optional[str] = None
108
+ r"""The description of the route. This description is shown in the reports."""
@@ -0,0 +1,107 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .amount import Amount, AmountTypedDict
5
+ from .route_destination_type_response import RouteDestinationTypeResponse
6
+ from .url import URL, URLTypedDict
7
+ from mollie.types import BaseModel
8
+ from mollie.utils import validate_open_enum
9
+ import pydantic
10
+ from pydantic.functional_validators import PlainValidator
11
+ from typing_extensions import Annotated, TypedDict
12
+
13
+
14
+ class RouteGetResponseDestinationTypedDict(TypedDict):
15
+ r"""The destination of the route."""
16
+
17
+ type: RouteDestinationTypeResponse
18
+ r"""The type of destination. Currently only the destination type `organization` is supported."""
19
+ organization_id: str
20
+
21
+
22
+ class RouteGetResponseDestination(BaseModel):
23
+ r"""The destination of the route."""
24
+
25
+ type: Annotated[
26
+ RouteDestinationTypeResponse, PlainValidator(validate_open_enum(False))
27
+ ]
28
+ r"""The type of destination. Currently only the destination type `organization` is supported."""
29
+
30
+ organization_id: Annotated[str, pydantic.Field(alias="organizationId")]
31
+
32
+
33
+ class RouteGetResponseLinksTypedDict(TypedDict):
34
+ r"""An object with several relevant URLs. Every URL object will contain an `href` and a `type` field."""
35
+
36
+ self_: URLTypedDict
37
+ r"""In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field."""
38
+ documentation: URLTypedDict
39
+ r"""In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field."""
40
+ payment: URLTypedDict
41
+ r"""In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field."""
42
+
43
+
44
+ class RouteGetResponseLinks(BaseModel):
45
+ r"""An object with several relevant URLs. Every URL object will contain an `href` and a `type` field."""
46
+
47
+ self_: Annotated[URL, pydantic.Field(alias="self")]
48
+ r"""In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field."""
49
+
50
+ documentation: URL
51
+ r"""In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field."""
52
+
53
+ payment: URL
54
+ r"""In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field."""
55
+
56
+
57
+ class RouteGetResponseTypedDict(TypedDict):
58
+ resource: str
59
+ r"""Indicates the response contains a route object. Will always contain the string `route` for this endpoint."""
60
+ id: str
61
+ r"""The identifier uniquely referring to this route. Mollie assigns this identifier at route creation time. Mollie
62
+ will always refer to the route by this ID. Example: `crt_dyARQ3JzCgtPDhU2Pbq3J`.
63
+ """
64
+ payment_id: str
65
+ r"""The unique identifier of the payment. For example: `tr_5B8cwPMGnU6qLbRvo7qEZo`.
66
+ The full payment object can be retrieved via the payment URL in the `_links` object.
67
+ """
68
+ amount: AmountTypedDict
69
+ r"""In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field."""
70
+ description: str
71
+ r"""The description of the route. This description is shown in the reports."""
72
+ destination: RouteGetResponseDestinationTypedDict
73
+ r"""The destination of the route."""
74
+ created_at: str
75
+ r"""The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format."""
76
+ links: RouteGetResponseLinksTypedDict
77
+ r"""An object with several relevant URLs. Every URL object will contain an `href` and a `type` field."""
78
+
79
+
80
+ class RouteGetResponse(BaseModel):
81
+ resource: str
82
+ r"""Indicates the response contains a route object. Will always contain the string `route` for this endpoint."""
83
+
84
+ id: str
85
+ r"""The identifier uniquely referring to this route. Mollie assigns this identifier at route creation time. Mollie
86
+ will always refer to the route by this ID. Example: `crt_dyARQ3JzCgtPDhU2Pbq3J`.
87
+ """
88
+
89
+ payment_id: Annotated[str, pydantic.Field(alias="paymentId")]
90
+ r"""The unique identifier of the payment. For example: `tr_5B8cwPMGnU6qLbRvo7qEZo`.
91
+ The full payment object can be retrieved via the payment URL in the `_links` object.
92
+ """
93
+
94
+ amount: Amount
95
+ r"""In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field."""
96
+
97
+ description: str
98
+ r"""The description of the route. This description is shown in the reports."""
99
+
100
+ destination: RouteGetResponseDestination
101
+ r"""The destination of the route."""
102
+
103
+ created_at: Annotated[str, pydantic.Field(alias="createdAt")]
104
+ r"""The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format."""
105
+
106
+ links: Annotated[RouteGetResponseLinks, pydantic.Field(alias="_links")]
107
+ r"""An object with several relevant URLs. Every URL object will contain an `href` and a `type` field."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mollie-api-py
3
- Version: 1.1.2
3
+ Version: 1.1.3
4
4
  Summary: Python Client SDK Generated by Speakeasy.
5
5
  License-File: LICENSE.md
6
6
  Author: Speakeasy
@@ -364,6 +364,7 @@ client = ClientSDK(
364
364
 
365
365
  * [create](https://github.com/mollie/mollie-api-py/blob/master/docs/sdks/delayedrouting/README.md#create) - Create a delayed route
366
366
  * [list](https://github.com/mollie/mollie-api-py/blob/master/docs/sdks/delayedrouting/README.md#list) - List payment routes
367
+ * [get](https://github.com/mollie/mollie-api-py/blob/master/docs/sdks/delayedrouting/README.md#get) - Get a delayed route
367
368
 
368
369
  ### [invoices](https://github.com/mollie/mollie-api-py/blob/master/docs/sdks/invoices/README.md)
369
370
 
@@ -4,7 +4,7 @@ mollie/_hooks/mollie_hooks.py,sha256=c9l0SCJmT_o6mXzl4WRK8fIOaTox2nrPhuGpN4aso2E
4
4
  mollie/_hooks/registration.py,sha256=J8foUfPGbkJa3va864Q7iXYYK4CpxSaix6nAxw0w7-Y,748
5
5
  mollie/_hooks/sdkhooks.py,sha256=XSStdz5qEmh-Mwt53kk1_nVrtAz1_EZVbHymUEOTdDE,2556
6
6
  mollie/_hooks/types.py,sha256=JKrqkXMXwcNaCf2_hu0yX8Bi7GsHbVBrQDnfRTSws7w,3041
7
- mollie/_version.py,sha256=WfpYY3l_W1noVgPI4NnKsMTCSDbFXhg4rGepQnvPUco,468
7
+ mollie/_version.py,sha256=oJVchawxRJaqjpxHMs4O9QSW2PXuwaogCMrJ4mu74Qs,468
8
8
  mollie/balance_transfers.py,sha256=vDy2v7ezxTv0Atpuv0M9lGXyvQM6KPu_rd2D02CIKIk,29291
9
9
  mollie/balances.py,sha256=ngc5ky8TWB-K2lVFuzZQCwcNdWH6m-KPIznW4qIE1qo,49314
10
10
  mollie/basesdk.py,sha256=q24JMCy4yFLPP2cLt_-S8_4CTd8-h20OLctAVMIBi0w,12168
@@ -14,12 +14,12 @@ mollie/chargebacks_sdk.py,sha256=MjxCjXdFKcKbfREBkjW-kpkSfMCohpG59rJLDb9S-Bc,318
14
14
  mollie/client_links.py,sha256=XzVjOMYTlaoGeduI9XHXszfS46WuVRh-a7tjnF_fMkg,13790
15
15
  mollie/clients.py,sha256=KEOyGFwCdbssJcWu7IpkrFAnPxeGkoyt4Ms4KFJtSiY,17239
16
16
  mollie/customers.py,sha256=abIL8yfiMw2WjlcOqIga3Zc7IaavNLl6Dl9cVkv_qYQ,67998
17
- mollie/delayed_routing.py,sha256=xECygSW1o42qrEBcJj92O6T5bnZjboRcqvOwTqHYZcQ,18189
17
+ mollie/delayed_routing.py,sha256=iKKNvmJmQOEG0UKVRXrK_d2MeOOlRU1niwCyofl36U8,26421
18
18
  mollie/httpclient.py,sha256=dqTPONDBpRn4ktXfcetQiRXnG93f0pJkFhqsYFhLUac,3945
19
19
  mollie/invoices.py,sha256=GAnnYpOFQHMV-ejQA0cqRxdANGZvdOGr2M_WXqtvAzE,17886
20
20
  mollie/mandates.py,sha256=PVMXvDUQQPxeHz5sTNqFsNHPVjIjOD7uf4zAJeDGVdU,38701
21
21
  mollie/methods.py,sha256=G38DTFLyWe0OuW1qnMjIymDgqfT9dKEgOgF6FQR_o3Y,43126
22
- mollie/models/__init__.py,sha256=OiYoJbai5tJ3DPBaR4g1B-X03hQ3Eww-_ZfIhqIe5uY,171515
22
+ mollie/models/__init__.py,sha256=SJMwmWT4TqKVihHzORXY40pBpRdRlFvfxjhAnIDx7vc,172746
23
23
  mollie/models/address.py,sha256=zkgpQcCPnKe6BQ-JqjBhN6YlzTgVyCreQFvAeNMXFuM,1035
24
24
  mollie/models/amount.py,sha256=ThsX_CGdD-_vIIW_cFR7ernByR5jmZjoSnxFSMixCaE,923
25
25
  mollie/models/amount_nullable.py,sha256=zzCJtAd3hWqXPpwrGvu8QoiGxeKff3i5SEP29orBuWg,813
@@ -95,7 +95,6 @@ mollie/models/entity_payment_route.py,sha256=yCclMT2c6LPrVsi20HyCxAZgTorK-AOivHf
95
95
  mollie/models/entity_payment_route_response.py,sha256=3n5suf-dfDFyx7AXGE1eAN54dw6uTxvyhobZSOhGJMk,5869
96
96
  mollie/models/entity_permission.py,sha256=lOIwHTigHDsn-d6_cOHcPsERcoB_Fdo_ICq2owSLCXI,2530
97
97
  mollie/models/entity_refund_response.py,sha256=XLRtRMiFbnnwbcmiJvWGV8L3yNCT6G7r0OSVOo3cbaM,14888
98
- mollie/models/entity_route.py,sha256=JNFqf8sC4WLFqc_Chv_SZH1tab1vyzwPjMXtiKj3ZC0,3704
99
98
  mollie/models/entity_settlement.py,sha256=8ePUiv06Hk39QqIYGfGqvlduispQ2nDQscMvPkmQYL0,18667
100
99
  mollie/models/entity_terminal.py,sha256=soh0LmOvV7XXLytsXkjCDRmynQTNnh1lWPS_UNZEjBU,7091
101
100
  mollie/models/entity_webhook.py,sha256=0attlbOi0TRAmRzgmmiqNP0RUgseECEbDiQlGK26-Vg,4562
@@ -172,7 +171,7 @@ mollie/models/list_permissionsop.py,sha256=dpcrFHX58LxZ4Ao-T3Ac8_zdbgxsJKsENTHFv
172
171
  mollie/models/list_profile_response.py,sha256=aSRH3hp6N7hTZCHBX6rh46B4RPA08-KkdtsYWMSIRTo,8962
173
172
  mollie/models/list_profilesop.py,sha256=ZV8-Pl6j4lyeppr_k9zIEk1Cz7TDPJDWODz9g-YVos0,4360
174
173
  mollie/models/list_refundsop.py,sha256=09fBcB2P5ItrLubn2MJL59bTlBmZqdyeIRKtUQGsR8w,7409
175
- mollie/models/list_route_get_response.py,sha256=40xp77E5WAon96ersZovH7g_wf6O9FJhwZcfY4N65SU,4307
174
+ mollie/models/list_route_get_response.py,sha256=K_1snSzhBzfmFB4iVN5Kypn5Vo4d3Yj79N7pLZ0mYmQ,4555
176
175
  mollie/models/list_sales_invoice_response.py,sha256=jUMUT4UQWuyt4WRudrdQLp3ABMWciqmdDhtq29B_iQM,20927
177
176
  mollie/models/list_sales_invoicesop.py,sha256=THOxw7AY8PvYBCJMwBbssw7-ibBiwkeTIdOE_bkSXAc,7231
178
177
  mollie/models/list_settlement_capturesop.py,sha256=hZbtHP4N7yrOMeFp8tKaXfl1aZezeBUaA7nwhjRA4mk,7333
@@ -204,7 +203,7 @@ mollie/models/no_response_error.py,sha256=DaZukP5ManflzAN-11MtmBitfTIct37sRvfszv
204
203
  mollie/models/onboarding_vat_regulation.py,sha256=jeniICIqfHm9CTznMaB9iEorgE2DBRbvc4pqYb0Uj2A,509
205
204
  mollie/models/organization_vat_regulation.py,sha256=wKlAuDXWOkFFbZWlXoCRvUDqzXC3NSXG3MQi4A7-QY4,566
206
205
  mollie/models/payment_address.py,sha256=v1Yrv6GrnUhWufdGpv5MK626zLJInVFVGfjO2KpQL70,5083
207
- mollie/models/payment_create_routeop.py,sha256=l_i3GwDbtQETvvpKk01qYxleEfvwPR3AXNIU6SE_MD4,1433
206
+ mollie/models/payment_create_routeop.py,sha256=kjqVUfqES1yrco5-zhQNE5hL4Sg6I19z4fqpqrn6E3A,1485
208
207
  mollie/models/payment_details_card_audition_response.py,sha256=JOXF2dkQkpYvjGbSGVZ0zhHPFm7_ylSTtZPgFLOPoh0,342
209
208
  mollie/models/payment_details_card_funding_response.py,sha256=jlzqOSNegEV_uMBZU8RICGmrmXu6n9CHziVQZIO9ypQ,370
210
209
  mollie/models/payment_details_card_label_response.py,sha256=CuF65VcBahpTjAlIEnRtCA1iCWgE1wiLUC_38O7tiVo,611
@@ -215,6 +214,7 @@ mollie/models/payment_details_receipt_card_read_method_response.py,sha256=JitbKo
215
214
  mollie/models/payment_details_receipt_card_verification_method_response.py,sha256=lOupQeAERUERSuFj9XD92E9nx49M4iMEOl22s3S-d70,654
216
215
  mollie/models/payment_details_seller_protection_response.py,sha256=UtebNmX0yQrS1iRIhd3uv2XzpIS-7W4xhyZPx8H0QEo,800
217
216
  mollie/models/payment_details_wallet_response.py,sha256=KE3EWrUY2s3KQFygotnb1_w_2yliRMvy4VqnNf5iQB4,315
217
+ mollie/models/payment_get_routeop.py,sha256=NKx9OK0dIWUDC6YdkfxlXvanlk61WeTsxAYtD0Zs93o,1386
218
218
  mollie/models/payment_line_item.py,sha256=mfFQrZMWEKw6PhHOgWwgWZ-YlLqePWPzDmUijsE19mQ,4589
219
219
  mollie/models/payment_line_item_response.py,sha256=sYvG1VJhQvX4F4vbxij50Ii7B27s2w7chKfLp7bhmDg,4931
220
220
  mollie/models/payment_line_type.py,sha256=u_Aie5-N6uBY0J-ltQZNyEuWtNiG4-vOFcJPRA4KfSA,551
@@ -239,9 +239,11 @@ mollie/models/release_authorizationop.py,sha256=czFvsdAB5y8PvFnCMr30ePfCKla0zQoF
239
239
  mollie/models/request_apple_pay_payment_sessionop.py,sha256=goipxIOLCaWgFAzjaZkaUjDHfL3BC_DMK_WGwS1qpGY,3396
240
240
  mollie/models/responsevalidationerror.py,sha256=RH1wifPPR8GZDQrkN5rxNorINLRCJJxDY-VwycnurPk,748
241
241
  mollie/models/revoke_mandateop.py,sha256=zhfN0VnsE2lobHmX7eKJMxSFfV_bP7XSOJzUStSt8U8,3503
242
- mollie/models/route_create_response.py,sha256=US5c8ushQE-tzG_Gj9w44Dr5NigY9d3S-jAkrjAjDkw,4244
242
+ mollie/models/route_create_request.py,sha256=2-GEpSkkgJatDO1wyWg0BIuXfXf0mJ5I9tp5OvW0Lpc,1734
243
+ mollie/models/route_create_response.py,sha256=6xbymsVm98i_OJyiwaPxMzNW5J7zBa43Ej7Au_hXPcI,4876
243
244
  mollie/models/route_destination_type.py,sha256=pBmlVgA4SxLyErbrkiJhPJpdyECaz9OsfTWe-_0mgDc,307
244
245
  mollie/models/route_destination_type_response.py,sha256=hqWBjFTwa0CFkX5MtbpjGQc8T6qDWT5oy714uIA1gBU,370
246
+ mollie/models/route_get_response.py,sha256=sOH3mp7pRiBOHSuBK-vv1rdstQNEIGP-XzRhJMxJUcc,4775
245
247
  mollie/models/sales_invoice_discount.py,sha256=wkuHrap98LWcScE0MwdgvEOQJRiDy1ntUco8X39TZL0,703
246
248
  mollie/models/sales_invoice_discount_response.py,sha256=3jJ94RSezRj8dgsH24Q3gLUgomrqbsod6bzYqqvALC4,933
247
249
  mollie/models/sales_invoice_discount_type.py,sha256=__TGFhcpi2bW9tKj7gGe7MLiJghlgKOE8EMA2dq9iDE,261
@@ -331,7 +333,7 @@ mollie/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
331
333
  mollie/wallets.py,sha256=Sz8KRUq8TwWxSyYktdeaIGQCAwqBz8Vhnv0GWDfBTRs,12240
332
334
  mollie/webhook_events.py,sha256=Hgo-KY0TzRlu8jFAoYCpCpAzWcmSYURRQfmsxgiM8ac,9001
333
335
  mollie/webhooks.py,sha256=r2jKIBeUofuVHGTEvaOaLYLZC6kzsQRdNBPdXAPFSbU,54185
334
- mollie_api_py-1.1.2.dist-info/METADATA,sha256=kO3qxkn66OZwqqKme3tRf50g-walpxmqwCF_CQ-wGKo,40277
335
- mollie_api_py-1.1.2.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
336
- mollie_api_py-1.1.2.dist-info/licenses/LICENSE.md,sha256=SGg2WzlJYIta4I_BlrvHizir1Lq0UNCqIJGj-MQPZ1s,1295
337
- mollie_api_py-1.1.2.dist-info/RECORD,,
336
+ mollie_api_py-1.1.3.dist-info/METADATA,sha256=1jzQ_MI2Q2De55mdw3AIAu6kgw6J5PyOgkJR2Ezn2gI,40399
337
+ mollie_api_py-1.1.3.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
338
+ mollie_api_py-1.1.3.dist-info/licenses/LICENSE.md,sha256=SGg2WzlJYIta4I_BlrvHizir1Lq0UNCqIJGj-MQPZ1s,1295
339
+ mollie_api_py-1.1.3.dist-info/RECORD,,
@@ -1,96 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from .amount import Amount, AmountTypedDict
5
- from .route_destination_type_response import RouteDestinationTypeResponse
6
- from mollie.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
7
- from mollie.utils import validate_open_enum
8
- import pydantic
9
- from pydantic import model_serializer
10
- from pydantic.functional_validators import PlainValidator
11
- from typing import Optional
12
- from typing_extensions import Annotated, NotRequired, TypedDict
13
-
14
-
15
- class EntityRouteDestinationTypedDict(TypedDict):
16
- r"""The destination of the route."""
17
-
18
- type: RouteDestinationTypeResponse
19
- r"""The type of destination. Currently only the destination type `organization` is supported."""
20
- organization_id: str
21
-
22
-
23
- class EntityRouteDestination(BaseModel):
24
- r"""The destination of the route."""
25
-
26
- type: Annotated[
27
- RouteDestinationTypeResponse, PlainValidator(validate_open_enum(False))
28
- ]
29
- r"""The type of destination. Currently only the destination type `organization` is supported."""
30
-
31
- organization_id: Annotated[str, pydantic.Field(alias="organizationId")]
32
-
33
-
34
- class EntityRouteTypedDict(TypedDict):
35
- amount: NotRequired[AmountTypedDict]
36
- r"""In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field."""
37
- description: NotRequired[str]
38
- r"""The description of the route. This description is shown in the reports."""
39
- destination: NotRequired[EntityRouteDestinationTypedDict]
40
- r"""The destination of the route."""
41
- testmode: NotRequired[Nullable[bool]]
42
- r"""Whether to create the entity in test mode or live mode.
43
-
44
- Most API credentials are specifically created for either live mode or test mode, in which case this parameter can be
45
- omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by setting
46
- `testmode` to `true`.
47
- """
48
-
49
-
50
- class EntityRoute(BaseModel):
51
- amount: Optional[Amount] = None
52
- r"""In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field."""
53
-
54
- description: Optional[str] = None
55
- r"""The description of the route. This description is shown in the reports."""
56
-
57
- destination: Optional[EntityRouteDestination] = None
58
- r"""The destination of the route."""
59
-
60
- testmode: OptionalNullable[bool] = UNSET
61
- r"""Whether to create the entity in test mode or live mode.
62
-
63
- Most API credentials are specifically created for either live mode or test mode, in which case this parameter can be
64
- omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by setting
65
- `testmode` to `true`.
66
- """
67
-
68
- @model_serializer(mode="wrap")
69
- def serialize_model(self, handler):
70
- optional_fields = ["amount", "description", "destination", "testmode"]
71
- nullable_fields = ["testmode"]
72
- null_default_fields = []
73
-
74
- serialized = handler(self)
75
-
76
- m = {}
77
-
78
- for n, f in type(self).model_fields.items():
79
- k = f.alias or n
80
- val = serialized.get(k)
81
- serialized.pop(k, None)
82
-
83
- optional_nullable = k in optional_fields and k in nullable_fields
84
- is_set = (
85
- self.__pydantic_fields_set__.intersection({n})
86
- or k in null_default_fields
87
- ) # pylint: disable=no-member
88
-
89
- if val is not None and val != UNSET_SENTINEL:
90
- m[k] = val
91
- elif val != UNSET_SENTINEL and (
92
- not k in optional_fields or (optional_nullable and is_set)
93
- ):
94
- m[k] = val
95
-
96
- return m