mollie-api-py 1.1.0__py3-none-any.whl → 1.1.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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=n9_WGf3SXz0_9QH96pWSXyxrZg_uWmsSKZSVB--T_Pc,468
7
+ mollie/_version.py,sha256=WfpYY3l_W1noVgPI4NnKsMTCSDbFXhg4rGepQnvPUco,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
16
+ mollie/customers.py,sha256=abIL8yfiMw2WjlcOqIga3Zc7IaavNLl6Dl9cVkv_qYQ,67998
17
17
  mollie/delayed_routing.py,sha256=xECygSW1o42qrEBcJj92O6T5bnZjboRcqvOwTqHYZcQ,18189
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=1ARs-ZQ32pULGKoFHNysbPqVBGm9u88Lw63lkyeatjI,172348
22
+ mollie/models/__init__.py,sha256=OiYoJbai5tJ3DPBaR4g1B-X03hQ3Eww-_ZfIhqIe5uY,171515
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
@@ -48,7 +48,7 @@ mollie/models/capability_status_reason.py,sha256=tUBSgi6V8IJyI8RYMe1fNmrx16wg59E
48
48
  mollie/models/capture_mode.py,sha256=i1b0qd5Al1FS5vm4jSbb4OEcbBP3WZTuptRqEEHa7ts,473
49
49
  mollie/models/capture_mode_response.py,sha256=J54CNpvOX10o7IXBoros09_yS85HNL4M3-t-B5QDLuw,536
50
50
  mollie/models/capture_response.py,sha256=ZGOEnJrSzUp-Wp_nD9XnXuPW0s4lw-PXk29ksSNN8Rg,11266
51
- mollie/models/client_link_request.py,sha256=tRPknZdPoU8Y4xcHPca1ONC-AGDatm4lr_cnyKhI0Os,27134
51
+ mollie/models/client_link_request.py,sha256=09lB2B4rG2g5QsHt3mtpeJ1M3q5cUnzpQLT-vAijglY,8581
52
52
  mollie/models/client_link_response.py,sha256=fCjukuLg3SIlcPARu0SWt9P8nHdZiT9bGnIlj-XDkGM,2511
53
53
  mollie/models/clienterror.py,sha256=03IpOKiBD-nTXvjXpz67CaJJbRIb38_3APa34-C9Taw,955
54
54
  mollie/models/components_sub_totals.py,sha256=QavYiRRpizDbgTBhlcqbgQ2YNLNeOU0vXTciA-KaVco,4257
@@ -166,7 +166,7 @@ mollie/models/list_mandate_response.py,sha256=Yfd7gRMinXaqPZMgxG0jQlbT1r2P_f9QUt
166
166
  mollie/models/list_mandatesop.py,sha256=1ntExLhI16gOZMOvltpUymwfh5YPxw62Y4c0w4tNtxw,7239
167
167
  mollie/models/list_methodsop.py,sha256=_8c83-b2DDrz0H3HVXAs-v8cN-X5PfnkpTSi8n8tw7o,13759
168
168
  mollie/models/list_payment_linksop.py,sha256=Gxj6rDvci_6p7Mj6PtJleA6yJguAhmPZGMOHnmN9wBc,6489
169
- mollie/models/list_payment_response.py,sha256=f2meKWuQdtpVY6MlE65BiIIs7NoDjujQv5ANWDxjWEM,86697
169
+ mollie/models/list_payment_response.py,sha256=QcidMVh8BRSxdnA_pqbbFdigVJYdUm9xgp6PYOPwx6s,86705
170
170
  mollie/models/list_paymentsop.py,sha256=PSi_aw4oRKXH9vWFpeq8eOsLFY0NEnHGYMpGTSTzSiQ,8806
171
171
  mollie/models/list_permissionsop.py,sha256=dpcrFHX58LxZ4Ao-T3Ac8_zdbgxsJKsENTHFveCPNEg,3407
172
172
  mollie/models/list_profile_response.py,sha256=aSRH3hp6N7hTZCHBX6rh46B4RPA08-KkdtsYWMSIRTo,8962
@@ -227,7 +227,7 @@ mollie/models/payment_link_sequence_type_response.py,sha256=eJflnQQEyan8XF50GmOS
227
227
  mollie/models/payment_list_routesop.py,sha256=DcxZ34Zd_WjM50UpEAZQOr7jq_cVTRg6MDyJ24rR650,5856
228
228
  mollie/models/payment_method.py,sha256=qNAJhRTpfCU3i3blGfNAaJ76pZhOkjX8R8wRp4JboHw,1367
229
229
  mollie/models/payment_request.py,sha256=eVU3nOHz1IQhCS9Z-YC2cVdvQ-t1blUmtytFfCc4AEA,42167
230
- mollie/models/payment_response.py,sha256=oYs9PCYdZPZdfSSiRMFT2C-Jm7CgkShy1KhqukCt8RQ,86734
230
+ mollie/models/payment_response.py,sha256=w8sRFh_CR-YVvHSTAZsAyQbiC02dpC5kjsC5UOWA7F0,86742
231
231
  mollie/models/profile_request.py,sha256=Umllo_8zGRdcdP6wJ4arjA9cqNsPfX4XbVvT6S5n6ng,2661
232
232
  mollie/models/profile_response.py,sha256=fo76HP527MZMCB-092Wshqbn948fqa_r9GgmW9Hv8dI,9186
233
233
  mollie/models/profile_review_status_response.py,sha256=S8znTD7m1JD9cArk6m_V3SJLKrKB9w6wbx85QI-EzjM,332
@@ -284,14 +284,13 @@ mollie/models/subscription_response.py,sha256=zhqP68NbzfA6IR068oydtBWTvaV6eX5Ceb
284
284
  mollie/models/terminal_brand.py,sha256=ZDjJ3jI0ucMuj09XdFBiogX8qFA7SDJVcL7ZQfFuSTU,290
285
285
  mollie/models/terminal_model.py,sha256=qYsdNuAe4i7tGdqfIC_xjsLzWsQt--oyC3OBopxG9oY,430
286
286
  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
287
+ mollie/models/update_customerop.py,sha256=NuF7yVsKhDJ8wy69L-sQrqM-gUg3VJZ5TLJIVXDgHI8,4799
288
+ mollie/models/update_payment_linkop.py,sha256=W9IzoylqGFLcZIiHkNQ_Etr0pc1AYfPe1-PtbkqWd30,6918
289
+ mollie/models/update_paymentop.py,sha256=S7ltPqKhuNTiSY09vW7h8ASVZnpb7qQEAwirtCU9agU,15691
290
290
  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
291
+ mollie/models/update_sales_invoiceop.py,sha256=9FBWG4SSFMQYEWIkDO01cyFSpDkXkZYdJXhA1tS6anc,8831
292
+ mollie/models/update_subscriptionop.py,sha256=mQK-FJUnEeOG9m97bfJ1WzB_qOU500K9EYHxREIVynI,7696
293
+ mollie/models/update_webhookop.py,sha256=BzrKncGzgda-epYz4gNXO_vLJIoyIxqxjE9O1Qhfy6s,3253
295
294
  mollie/models/url.py,sha256=y60CyrKscRh_3oUv1uVH_JQxbi2Z12hTGjcKxOoReeo,713
296
295
  mollie/models/url_nullable.py,sha256=V6_B_fQRZ8R4xwE92BKQmiHzpo-QpEyoy-L5hodUJqo,830
297
296
  mollie/models/webhook_event_types.py,sha256=lD9firF7AHA23nSi5lo_FtWVwpjWnQG1r39eNhtSDaE,653
@@ -304,7 +303,7 @@ mollie/permissions.py,sha256=TFKnXM-d7w5pNN0K89nirhY5BlYLt1Q-nF2dPpaK8FY,16637
304
303
  mollie/profiles.py,sha256=ujZj8eSuxJt4lyLaNlz18YBvp9Lw7z9gheU0p4E0XJk,49837
305
304
  mollie/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
306
305
  mollie/refunds_sdk.py,sha256=mxIKg-c-1ihGKzQrW1eqcg2XhmNKR5Qki3PD-QJy5Og,50285
307
- mollie/sales_invoices.py,sha256=pq9YPXNj_nQFhDDqoSEeft9DdiovuSnNQ5aqJc-7dHY,47966
306
+ mollie/sales_invoices.py,sha256=DQ5CzrekAwet8wE8_OHDnxZawrUeOXIBlGLehheKwFk,47856
308
307
  mollie/sdk.py,sha256=_2ymDgFyuNx9AF8VahUtkjT5P0jVJ_eVaBnayeen5Co,10760
309
308
  mollie/sdkconfiguration.py,sha256=-acueIPHy8HkPxAtTs8cSNPhglmYezpVkmBqueLI2Iw,1629
310
309
  mollie/settlements.py,sha256=87uHPyD2CmJBZbDelMYntqQ_7DFQX4rsbLH_7gsYfMQ,78247
@@ -332,7 +331,7 @@ mollie/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
332
331
  mollie/wallets.py,sha256=Sz8KRUq8TwWxSyYktdeaIGQCAwqBz8Vhnv0GWDfBTRs,12240
333
332
  mollie/webhook_events.py,sha256=Hgo-KY0TzRlu8jFAoYCpCpAzWcmSYURRQfmsxgiM8ac,9001
334
333
  mollie/webhooks.py,sha256=r2jKIBeUofuVHGTEvaOaLYLZC6kzsQRdNBPdXAPFSbU,54185
335
- mollie_api_py-1.1.0.dist-info/METADATA,sha256=p-iOir9FgbS3BduuGKsVSn2CXRIR9XjWORiPRXjoyoA,40277
336
- mollie_api_py-1.1.0.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
337
- mollie_api_py-1.1.0.dist-info/licenses/LICENSE.md,sha256=SGg2WzlJYIta4I_BlrvHizir1Lq0UNCqIJGj-MQPZ1s,1295
338
- mollie_api_py-1.1.0.dist-info/RECORD,,
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,,
@@ -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