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.
@@ -51,11 +51,12 @@ class UpdateSubscriptionRequestBodyTypedDict(TypedDict):
51
51
  failures as well. Be sure to verify the payment's subscription ID and its status.
52
52
  """
53
53
  mandate_id: NotRequired[str]
54
- testmode: NotRequired[Nullable[bool]]
55
- r"""Most API credentials are specifically created for either live mode or test mode. For organization-level credentials
56
- such as OAuth access tokens, you can enable test mode by setting `testmode` to `true`.
54
+ testmode: NotRequired[bool]
55
+ r"""Whether the entity was created in test mode or live mode. This field does not update the mode of the entity.
57
56
 
58
- Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
57
+ Most API credentials are specifically created for either live mode or test mode, in which case this parameter can be
58
+ omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by setting
59
+ `testmode` to `true`.
59
60
  """
60
61
 
61
62
 
@@ -102,11 +103,12 @@ class UpdateSubscriptionRequestBody(BaseModel):
102
103
 
103
104
  mandate_id: Annotated[Optional[str], pydantic.Field(alias="mandateId")] = None
104
105
 
105
- testmode: OptionalNullable[bool] = UNSET
106
- r"""Most API credentials are specifically created for either live mode or test mode. For organization-level credentials
107
- such as OAuth access tokens, you can enable test mode by setting `testmode` to `true`.
106
+ testmode: Optional[bool] = None
107
+ r"""Whether the entity was created in test mode or live mode. This field does not update the mode of the entity.
108
108
 
109
- Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
109
+ Most API credentials are specifically created for either live mode or test mode, in which case this parameter can be
110
+ omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by setting
111
+ `testmode` to `true`.
110
112
  """
111
113
 
112
114
  @model_serializer(mode="wrap")
@@ -122,7 +124,7 @@ class UpdateSubscriptionRequestBody(BaseModel):
122
124
  "mandateId",
123
125
  "testmode",
124
126
  ]
125
- nullable_fields = ["metadata", "testmode"]
127
+ nullable_fields = ["metadata"]
126
128
  null_default_fields = []
127
129
 
128
130
  serialized = handler(self)
@@ -32,9 +32,11 @@ class UpdateWebhookRequestBodyTypedDict(TypedDict):
32
32
  r"""The URL Mollie will send the events to. This URL must be publicly accessible."""
33
33
  event_types: NotRequired[UpdateWebhookEventTypesTypedDict]
34
34
  testmode: NotRequired[bool]
35
- r"""You can enable test mode by setting `testmode` to `true`.
35
+ r"""Whether the entity was created in test mode or live mode. This field does not update the mode of the entity.
36
36
 
37
- Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
37
+ Most API credentials are specifically created for either live mode or test mode, in which case this parameter can be
38
+ omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by setting
39
+ `testmode` to `true`.
38
40
  """
39
41
 
40
42
 
@@ -50,9 +52,11 @@ class UpdateWebhookRequestBody(BaseModel):
50
52
  ] = None
51
53
 
52
54
  testmode: Optional[bool] = None
53
- r"""You can enable test mode by setting `testmode` to `true`.
55
+ r"""Whether the entity was created in test mode or live mode. This field does not update the mode of the entity.
54
56
 
55
- Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
57
+ Most API credentials are specifically created for either live mode or test mode, in which case this parameter can be
58
+ omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by setting
59
+ `testmode` to `true`.
56
60
  """
57
61
 
58
62
 
mollie/sales_invoices.py CHANGED
@@ -659,10 +659,10 @@ class SalesInvoices(BaseSDK):
659
659
  *,
660
660
  sales_invoice_id: str,
661
661
  idempotency_key: Optional[str] = None,
662
- update_values_sales_invoice: Optional[
662
+ request_body: Optional[
663
663
  Union[
664
- models.UpdateValuesSalesInvoice,
665
- models.UpdateValuesSalesInvoiceTypedDict,
664
+ models.UpdateSalesInvoiceRequestBody,
665
+ models.UpdateSalesInvoiceRequestBodyTypedDict,
666
666
  ]
667
667
  ] = None,
668
668
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
@@ -682,7 +682,7 @@ class SalesInvoices(BaseSDK):
682
682
 
683
683
  :param sales_invoice_id: Provide the ID of the related sales invoice.
684
684
  :param idempotency_key: A unique key to ensure idempotent requests. This key should be a UUID v4 string.
685
- :param update_values_sales_invoice:
685
+ :param request_body:
686
686
  :param retries: Override the default retry configuration for this method
687
687
  :param server_url: Override the default server URL for this method
688
688
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -701,8 +701,8 @@ class SalesInvoices(BaseSDK):
701
701
  request = models.UpdateSalesInvoiceRequest(
702
702
  sales_invoice_id=sales_invoice_id,
703
703
  idempotency_key=idempotency_key,
704
- update_values_sales_invoice=utils.get_pydantic_model(
705
- update_values_sales_invoice, Optional[models.UpdateValuesSalesInvoice]
704
+ request_body=utils.get_pydantic_model(
705
+ request_body, Optional[models.UpdateSalesInvoiceRequestBody]
706
706
  ),
707
707
  )
708
708
 
@@ -720,11 +720,11 @@ class SalesInvoices(BaseSDK):
720
720
  http_headers=http_headers,
721
721
  security=self.sdk_configuration.security,
722
722
  get_serialized_body=lambda: utils.serialize_request_body(
723
- request.update_values_sales_invoice,
723
+ request.request_body,
724
724
  False,
725
725
  True,
726
726
  "json",
727
- Optional[models.UpdateValuesSalesInvoice],
727
+ Optional[models.UpdateSalesInvoiceRequestBody],
728
728
  ),
729
729
  timeout_ms=timeout_ms,
730
730
  )
@@ -776,10 +776,10 @@ class SalesInvoices(BaseSDK):
776
776
  *,
777
777
  sales_invoice_id: str,
778
778
  idempotency_key: Optional[str] = None,
779
- update_values_sales_invoice: Optional[
779
+ request_body: Optional[
780
780
  Union[
781
- models.UpdateValuesSalesInvoice,
782
- models.UpdateValuesSalesInvoiceTypedDict,
781
+ models.UpdateSalesInvoiceRequestBody,
782
+ models.UpdateSalesInvoiceRequestBodyTypedDict,
783
783
  ]
784
784
  ] = None,
785
785
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
@@ -799,7 +799,7 @@ class SalesInvoices(BaseSDK):
799
799
 
800
800
  :param sales_invoice_id: Provide the ID of the related sales invoice.
801
801
  :param idempotency_key: A unique key to ensure idempotent requests. This key should be a UUID v4 string.
802
- :param update_values_sales_invoice:
802
+ :param request_body:
803
803
  :param retries: Override the default retry configuration for this method
804
804
  :param server_url: Override the default server URL for this method
805
805
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -818,8 +818,8 @@ class SalesInvoices(BaseSDK):
818
818
  request = models.UpdateSalesInvoiceRequest(
819
819
  sales_invoice_id=sales_invoice_id,
820
820
  idempotency_key=idempotency_key,
821
- update_values_sales_invoice=utils.get_pydantic_model(
822
- update_values_sales_invoice, Optional[models.UpdateValuesSalesInvoice]
821
+ request_body=utils.get_pydantic_model(
822
+ request_body, Optional[models.UpdateSalesInvoiceRequestBody]
823
823
  ),
824
824
  )
825
825
 
@@ -837,11 +837,11 @@ class SalesInvoices(BaseSDK):
837
837
  http_headers=http_headers,
838
838
  security=self.sdk_configuration.security,
839
839
  get_serialized_body=lambda: utils.serialize_request_body(
840
- request.update_values_sales_invoice,
840
+ request.request_body,
841
841
  False,
842
842
  True,
843
843
  "json",
844
- Optional[models.UpdateValuesSalesInvoice],
844
+ Optional[models.UpdateSalesInvoiceRequestBody],
845
845
  ),
846
846
  timeout_ms=timeout_ms,
847
847
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mollie-api-py
3
- Version: 1.1.1
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=JHpe8PAjqWxSveD4PsIf45Qi8zvlstN5rV88WPeB9-w,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
@@ -13,13 +13,13 @@ mollie/captures.py,sha256=C61UqNAPX1xiM49OmtsV7LsYJ8vEYYTpK-Fm1oSD8_A,29805
13
13
  mollie/chargebacks_sdk.py,sha256=MjxCjXdFKcKbfREBkjW-kpkSfMCohpG59rJLDb9S-Bc,31858
14
14
  mollie/client_links.py,sha256=XzVjOMYTlaoGeduI9XHXszfS46WuVRh-a7tjnF_fMkg,13790
15
15
  mollie/clients.py,sha256=KEOyGFwCdbssJcWu7IpkrFAnPxeGkoyt4Ms4KFJtSiY,17239
16
- mollie/customers.py,sha256=ksxAonl_4ajtVuwq4oRA8vqFv9607y5YKd3G2717pOk,67846
17
- mollie/delayed_routing.py,sha256=xECygSW1o42qrEBcJj92O6T5bnZjboRcqvOwTqHYZcQ,18189
16
+ mollie/customers.py,sha256=abIL8yfiMw2WjlcOqIga3Zc7IaavNLl6Dl9cVkv_qYQ,67998
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=zphRFnFppWy8zeLU2YAGvv20FqGeKWlRmZpGEhQJOvs,171250
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
@@ -284,14 +286,13 @@ mollie/models/subscription_response.py,sha256=zhqP68NbzfA6IR068oydtBWTvaV6eX5Ceb
284
286
  mollie/models/terminal_brand.py,sha256=ZDjJ3jI0ucMuj09XdFBiogX8qFA7SDJVcL7ZQfFuSTU,290
285
287
  mollie/models/terminal_model.py,sha256=qYsdNuAe4i7tGdqfIC_xjsLzWsQt--oyC3OBopxG9oY,430
286
288
  mollie/models/test_webhookop.py,sha256=cysS1WKFyEoK3yRRKU4Gz-oSRUynqAsUWHbkPgTg9MU,2056
287
- mollie/models/update_customerop.py,sha256=mGjZ914r6aJ1ngz4drvtP5R33icxjstWREUURY0vYwE,1451
288
- mollie/models/update_payment_linkop.py,sha256=lH9y_4k6MuXF4r9Cb4RfCO0uPs49T_Q5RY8000MY69o,6811
289
- mollie/models/update_paymentop.py,sha256=kACNI9xVbaFwy2HsNhBS4j_w8ygad7G1BeK8OebBz7g,15628
289
+ mollie/models/update_customerop.py,sha256=NuF7yVsKhDJ8wy69L-sQrqM-gUg3VJZ5TLJIVXDgHI8,4799
290
+ mollie/models/update_payment_linkop.py,sha256=W9IzoylqGFLcZIiHkNQ_Etr0pc1AYfPe1-PtbkqWd30,6918
291
+ mollie/models/update_paymentop.py,sha256=S7ltPqKhuNTiSY09vW7h8ASVZnpb7qQEAwirtCU9agU,15691
290
292
  mollie/models/update_profileop.py,sha256=o1h6QNbyZ7JAKNjuaLG6x-OuPkG4KXFmZAPkOH7oTR8,5363
291
- mollie/models/update_sales_invoiceop.py,sha256=x3NsZHRHzhL5aqB09AqpXoxyNOLgCuziZxr83WLwMu8,1572
292
- mollie/models/update_subscriptionop.py,sha256=jUZIO4PQqaN28Y_YGd4qEpgxBF2ISYMxzVmAH_fS1Uk,7589
293
- mollie/models/update_values_sales_invoice.py,sha256=8aBZbgouerFGpZpv-zf7q11OCeppVWokV3zxeU54msc,7539
294
- mollie/models/update_webhookop.py,sha256=hkD0yw0Srea0FJiXErbZmVoA0f90PJt1_zJbmDABX0I,2817
293
+ mollie/models/update_sales_invoiceop.py,sha256=9FBWG4SSFMQYEWIkDO01cyFSpDkXkZYdJXhA1tS6anc,8831
294
+ mollie/models/update_subscriptionop.py,sha256=mQK-FJUnEeOG9m97bfJ1WzB_qOU500K9EYHxREIVynI,7696
295
+ mollie/models/update_webhookop.py,sha256=BzrKncGzgda-epYz4gNXO_vLJIoyIxqxjE9O1Qhfy6s,3253
295
296
  mollie/models/url.py,sha256=y60CyrKscRh_3oUv1uVH_JQxbi2Z12hTGjcKxOoReeo,713
296
297
  mollie/models/url_nullable.py,sha256=V6_B_fQRZ8R4xwE92BKQmiHzpo-QpEyoy-L5hodUJqo,830
297
298
  mollie/models/webhook_event_types.py,sha256=lD9firF7AHA23nSi5lo_FtWVwpjWnQG1r39eNhtSDaE,653
@@ -304,7 +305,7 @@ mollie/permissions.py,sha256=TFKnXM-d7w5pNN0K89nirhY5BlYLt1Q-nF2dPpaK8FY,16637
304
305
  mollie/profiles.py,sha256=ujZj8eSuxJt4lyLaNlz18YBvp9Lw7z9gheU0p4E0XJk,49837
305
306
  mollie/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
306
307
  mollie/refunds_sdk.py,sha256=mxIKg-c-1ihGKzQrW1eqcg2XhmNKR5Qki3PD-QJy5Og,50285
307
- mollie/sales_invoices.py,sha256=pq9YPXNj_nQFhDDqoSEeft9DdiovuSnNQ5aqJc-7dHY,47966
308
+ mollie/sales_invoices.py,sha256=DQ5CzrekAwet8wE8_OHDnxZawrUeOXIBlGLehheKwFk,47856
308
309
  mollie/sdk.py,sha256=_2ymDgFyuNx9AF8VahUtkjT5P0jVJ_eVaBnayeen5Co,10760
309
310
  mollie/sdkconfiguration.py,sha256=-acueIPHy8HkPxAtTs8cSNPhglmYezpVkmBqueLI2Iw,1629
310
311
  mollie/settlements.py,sha256=87uHPyD2CmJBZbDelMYntqQ_7DFQX4rsbLH_7gsYfMQ,78247
@@ -332,7 +333,7 @@ mollie/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
332
333
  mollie/wallets.py,sha256=Sz8KRUq8TwWxSyYktdeaIGQCAwqBz8Vhnv0GWDfBTRs,12240
333
334
  mollie/webhook_events.py,sha256=Hgo-KY0TzRlu8jFAoYCpCpAzWcmSYURRQfmsxgiM8ac,9001
334
335
  mollie/webhooks.py,sha256=r2jKIBeUofuVHGTEvaOaLYLZC6kzsQRdNBPdXAPFSbU,54185
335
- mollie_api_py-1.1.1.dist-info/METADATA,sha256=_pJ331Orhmm-cmU-sEkZ85Bs5rPiD_dOjTkVZQxeZCo,40277
336
- mollie_api_py-1.1.1.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
337
- mollie_api_py-1.1.1.dist-info/licenses/LICENSE.md,sha256=SGg2WzlJYIta4I_BlrvHizir1Lq0UNCqIJGj-MQPZ1s,1295
338
- mollie_api_py-1.1.1.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
@@ -1,176 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from .sales_invoice_discount import SalesInvoiceDiscount, SalesInvoiceDiscountTypedDict
5
- from .sales_invoice_email_details import (
6
- SalesInvoiceEmailDetails,
7
- SalesInvoiceEmailDetailsTypedDict,
8
- )
9
- from .sales_invoice_line_item import SalesInvoiceLineItem, SalesInvoiceLineItemTypedDict
10
- from .sales_invoice_payment_details import (
11
- SalesInvoicePaymentDetails,
12
- SalesInvoicePaymentDetailsTypedDict,
13
- )
14
- from .sales_invoice_payment_term import SalesInvoicePaymentTerm
15
- from .sales_invoice_recipient import (
16
- SalesInvoiceRecipient,
17
- SalesInvoiceRecipientTypedDict,
18
- )
19
- from .sales_invoice_status import SalesInvoiceStatus
20
- from mollie.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
21
- import pydantic
22
- from pydantic import model_serializer
23
- from typing import List, Optional
24
- from typing_extensions import Annotated, NotRequired, TypedDict
25
-
26
-
27
- class UpdateValuesSalesInvoiceTypedDict(TypedDict):
28
- testmode: NotRequired[Nullable[bool]]
29
- r"""Most API credentials are specifically created for either live mode or test mode. For organization-level credentials
30
- such as OAuth access tokens, you can enable test mode by setting `testmode` to `true`.
31
-
32
- Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
33
- """
34
- status: NotRequired[SalesInvoiceStatus]
35
- r"""The status for the invoice to end up in.
36
-
37
- A `draft` invoice is not paid or not sent and can be updated after creation. Setting it to `issued` sends it to
38
- the recipient so they may then pay through our payment system. To skip our payment process, set this to `paid` to
39
- mark it as paid. It can then subsequently be sent as well, same as with `issued`.
40
-
41
- A status value that cannot be set but can be returned is `canceled`, for invoices which were
42
- issued, but then canceled. Currently this can only be done for invoices created in the dashboard.
43
-
44
- Dependent parameters:
45
- - `paymentDetails` is required if invoice should be set directly to `paid`
46
- - `customerId` and `mandateId` are required if a recurring payment should be used to set the invoice to `paid`
47
- - `emailDetails` optional for `issued` and `paid` to send the invoice by email
48
- """
49
- memo: NotRequired[Nullable[str]]
50
- r"""A free-form memo you can set on the invoice, and will be shown on the invoice PDF."""
51
- payment_term: NotRequired[Nullable[SalesInvoicePaymentTerm]]
52
- r"""The payment term to be set on the invoice."""
53
- payment_details: NotRequired[SalesInvoicePaymentDetailsTypedDict]
54
- email_details: NotRequired[Nullable[SalesInvoiceEmailDetailsTypedDict]]
55
- recipient_identifier: NotRequired[str]
56
- r"""An identifier tied to the recipient data. This should be a unique value based on data your system contains,
57
- so that both you and us know who we're referring to. It is a value you provide to us so that recipient management
58
- is not required to send a first invoice to a recipient.
59
- """
60
- recipient: NotRequired[Nullable[SalesInvoiceRecipientTypedDict]]
61
- lines: NotRequired[Nullable[List[SalesInvoiceLineItemTypedDict]]]
62
- r"""Provide the line items for the invoice. Each line contains details such as a description of the item
63
- ordered and its price.
64
-
65
- All lines must have the same currency as the invoice.
66
- """
67
- discount: NotRequired[Nullable[SalesInvoiceDiscountTypedDict]]
68
-
69
-
70
- class UpdateValuesSalesInvoice(BaseModel):
71
- testmode: OptionalNullable[bool] = UNSET
72
- r"""Most API credentials are specifically created for either live mode or test mode. For organization-level credentials
73
- such as OAuth access tokens, you can enable test mode by setting `testmode` to `true`.
74
-
75
- Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
76
- """
77
-
78
- status: Optional[SalesInvoiceStatus] = None
79
- r"""The status for the invoice to end up in.
80
-
81
- A `draft` invoice is not paid or not sent and can be updated after creation. Setting it to `issued` sends it to
82
- the recipient so they may then pay through our payment system. To skip our payment process, set this to `paid` to
83
- mark it as paid. It can then subsequently be sent as well, same as with `issued`.
84
-
85
- A status value that cannot be set but can be returned is `canceled`, for invoices which were
86
- issued, but then canceled. Currently this can only be done for invoices created in the dashboard.
87
-
88
- Dependent parameters:
89
- - `paymentDetails` is required if invoice should be set directly to `paid`
90
- - `customerId` and `mandateId` are required if a recurring payment should be used to set the invoice to `paid`
91
- - `emailDetails` optional for `issued` and `paid` to send the invoice by email
92
- """
93
-
94
- memo: OptionalNullable[str] = UNSET
95
- r"""A free-form memo you can set on the invoice, and will be shown on the invoice PDF."""
96
-
97
- payment_term: Annotated[
98
- OptionalNullable[SalesInvoicePaymentTerm], pydantic.Field(alias="paymentTerm")
99
- ] = UNSET
100
- r"""The payment term to be set on the invoice."""
101
-
102
- payment_details: Annotated[
103
- Optional[SalesInvoicePaymentDetails], pydantic.Field(alias="paymentDetails")
104
- ] = None
105
-
106
- email_details: Annotated[
107
- OptionalNullable[SalesInvoiceEmailDetails], pydantic.Field(alias="emailDetails")
108
- ] = UNSET
109
-
110
- recipient_identifier: Annotated[
111
- Optional[str], pydantic.Field(alias="recipientIdentifier")
112
- ] = None
113
- r"""An identifier tied to the recipient data. This should be a unique value based on data your system contains,
114
- so that both you and us know who we're referring to. It is a value you provide to us so that recipient management
115
- is not required to send a first invoice to a recipient.
116
- """
117
-
118
- recipient: OptionalNullable[SalesInvoiceRecipient] = UNSET
119
-
120
- lines: OptionalNullable[List[SalesInvoiceLineItem]] = UNSET
121
- r"""Provide the line items for the invoice. Each line contains details such as a description of the item
122
- ordered and its price.
123
-
124
- All lines must have the same currency as the invoice.
125
- """
126
-
127
- discount: OptionalNullable[SalesInvoiceDiscount] = UNSET
128
-
129
- @model_serializer(mode="wrap")
130
- def serialize_model(self, handler):
131
- optional_fields = [
132
- "testmode",
133
- "status",
134
- "memo",
135
- "paymentTerm",
136
- "paymentDetails",
137
- "emailDetails",
138
- "recipientIdentifier",
139
- "recipient",
140
- "lines",
141
- "discount",
142
- ]
143
- nullable_fields = [
144
- "testmode",
145
- "memo",
146
- "paymentTerm",
147
- "emailDetails",
148
- "recipient",
149
- "lines",
150
- "discount",
151
- ]
152
- null_default_fields = []
153
-
154
- serialized = handler(self)
155
-
156
- m = {}
157
-
158
- for n, f in type(self).model_fields.items():
159
- k = f.alias or n
160
- val = serialized.get(k)
161
- serialized.pop(k, None)
162
-
163
- optional_nullable = k in optional_fields and k in nullable_fields
164
- is_set = (
165
- self.__pydantic_fields_set__.intersection({n})
166
- or k in null_default_fields
167
- ) # pylint: disable=no-member
168
-
169
- if val is not None and val != UNSET_SENTINEL:
170
- m[k] = val
171
- elif val != UNSET_SENTINEL and (
172
- not k in optional_fields or (optional_nullable and is_set)
173
- ):
174
- m[k] = val
175
-
176
- return m