python-moloni-fix 0.3.16__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.
- moloni/__init__.py +0 -0
- moloni/__version__.py +1 -0
- moloni/api/__init__.py +701 -0
- moloni/api/bankaccounts_client.py +372 -0
- moloni/api/billsoflading_client.py +693 -0
- moloni/api/companies_client.py +322 -0
- moloni/api/countries_client.py +171 -0
- moloni/api/creditnotes_client.py +615 -0
- moloni/api/currencies_client.py +171 -0
- moloni/api/customeralternateaddresses_client.py +519 -0
- moloni/api/customerreturnnotes_client.py +701 -0
- moloni/api/customers_client.py +1413 -0
- moloni/api/debitnotes_client.py +597 -0
- moloni/api/deductions_client.py +435 -0
- moloni/api/deliverymethods_client.py +431 -0
- moloni/api/deliverynotes_client.py +714 -0
- moloni/api/documentmodels_client.py +171 -0
- moloni/api/documents_client.py +472 -0
- moloni/api/documentsets_client.py +447 -0
- moloni/api/estimates_client.py +663 -0
- moloni/api/fiscalzones_client.py +219 -0
- moloni/api/identificationtemplates_client.py +513 -0
- moloni/api/invoicereceipts_client.py +705 -0
- moloni/api/invoices_client.py +705 -0
- moloni/api/languages_client.py +171 -0
- moloni/api/maturitydates_client.py +441 -0
- moloni/api/measurementunits_client.py +437 -0
- moloni/api/ownassetsmovementguides_client.py +683 -0
- moloni/api/paymentmethods_client.py +429 -0
- moloni/api/productcategories_client.py +400 -0
- moloni/api/products_client.py +1252 -0
- moloni/api/receipts_client.py +591 -0
- moloni/api/salesmen_client.py +580 -0
- moloni/api/simplifiedinvoices_client.py +705 -0
- moloni/api/subscription_client.py +104 -0
- moloni/api/suppliers_client.py +1264 -0
- moloni/api/taxes_client.py +477 -0
- moloni/api/taxexemptions_client.py +171 -0
- moloni/api/users_client.py +104 -0
- moloni/api/vehicles_client.py +435 -0
- moloni/api/warehouses_client.py +506 -0
- moloni/api/waybills_client.py +699 -0
- moloni/base/__init__.py +24 -0
- moloni/base/client.py +164 -0
- moloni/base/config.py +6 -0
- moloni/base/helpers.py +150 -0
- moloni/base/logger_config.py +49 -0
- python_moloni_fix-0.3.16.dist-info/METADATA +231 -0
- python_moloni_fix-0.3.16.dist-info/RECORD +52 -0
- python_moloni_fix-0.3.16.dist-info/WHEEL +5 -0
- python_moloni_fix-0.3.16.dist-info/licenses/LICENSE +21 -0
- python_moloni_fix-0.3.16.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,683 @@
|
|
|
1
|
+
from pydantic import BaseModel, ValidationError
|
|
2
|
+
from typing import Union, Optional, List, Any
|
|
3
|
+
|
|
4
|
+
from moloni.base.client import MoloniBaseClient
|
|
5
|
+
from moloni.base.helpers import endpoint, fill_query_params, validate_data
|
|
6
|
+
from moloni.base import ApiResponse
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ApiRequestModel(BaseModel):
|
|
10
|
+
_api_client: Any = None
|
|
11
|
+
|
|
12
|
+
def connect(self, *args, **kwargs):
|
|
13
|
+
self._api_client = OwnassetsmovementguidesClient(*args, **kwargs)
|
|
14
|
+
return self
|
|
15
|
+
|
|
16
|
+
def __enter__(self):
|
|
17
|
+
return self.connect()
|
|
18
|
+
|
|
19
|
+
def __exit__(self, exc_type, exc_value, traceback):
|
|
20
|
+
pass
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class Associated_documents(BaseModel):
|
|
24
|
+
associated_id: Optional[Any] = None
|
|
25
|
+
value: Optional[Any] = None
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class Payments(BaseModel):
|
|
29
|
+
date: Optional[Any] = None
|
|
30
|
+
notes: Optional[Any] = None
|
|
31
|
+
payment_method_id: Optional[Any] = None
|
|
32
|
+
value: Optional[Any] = None
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class Products(BaseModel):
|
|
36
|
+
discount: Optional[Any] = None
|
|
37
|
+
exemption_reason: Optional[Any] = None
|
|
38
|
+
name: Optional[Any] = None
|
|
39
|
+
order: Optional[Any] = None
|
|
40
|
+
price: Optional[Any] = None
|
|
41
|
+
product_id: Optional[Any] = None
|
|
42
|
+
qty: Optional[Any] = None
|
|
43
|
+
summary: Optional[Any] = None
|
|
44
|
+
taxes: Optional[Any] = None
|
|
45
|
+
warehouse_id: Optional[Any] = None
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
class OwnassetsmovementguidesCountModel(ApiRequestModel):
|
|
49
|
+
company_id: Union[str, int]
|
|
50
|
+
customer_id: Optional[Union[str, int]] = None
|
|
51
|
+
date: Optional[str] = None
|
|
52
|
+
document_set_id: Optional[Union[str, int]] = None
|
|
53
|
+
number: Optional[str] = None
|
|
54
|
+
year: Optional[str] = None
|
|
55
|
+
your_reference: Optional[str] = None
|
|
56
|
+
|
|
57
|
+
def request(self) -> ApiResponse:
|
|
58
|
+
"""
|
|
59
|
+
request(self) -> ApiResponse
|
|
60
|
+
|
|
61
|
+
Make an API request using the initialized client.
|
|
62
|
+
|
|
63
|
+
This method checks if the `_api_client` attribute is set (i.e., if the client has been initialized via the `connect` method).
|
|
64
|
+
If the client is initialized, it will make an API request using the provided method name and the model's data,
|
|
65
|
+
excluding the `_api_client` attribute itself from the request payload. If the client is not initialized, it will raise a `ValueError`.
|
|
66
|
+
|
|
67
|
+
Returns:
|
|
68
|
+
The response from the API.
|
|
69
|
+
|
|
70
|
+
Raises:
|
|
71
|
+
ValueError: If the client is not initialized via the `connect` method.
|
|
72
|
+
|
|
73
|
+
Example:
|
|
74
|
+
|
|
75
|
+
# Assuming you have a model instance `request_model` and an API client `api_client`
|
|
76
|
+
|
|
77
|
+
..code-block:: python
|
|
78
|
+
|
|
79
|
+
with request_model.connect(auth_config=auth_config) as api:
|
|
80
|
+
response = api.request()
|
|
81
|
+
|
|
82
|
+
# The above example assumes that the `connect` method has been used to initialize the client.
|
|
83
|
+
# The request method then sends the model's data to the API and returns the API's response.
|
|
84
|
+
|
|
85
|
+
"""
|
|
86
|
+
if hasattr(self, "_api_client"):
|
|
87
|
+
response = self._api_client.count(
|
|
88
|
+
self.model_dump(exclude={"_api_client"}, exclude_unset=True)
|
|
89
|
+
)
|
|
90
|
+
return response
|
|
91
|
+
else:
|
|
92
|
+
raise ValueError("Client not initialized. Use the 'connect' method.")
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
class OwnassetsmovementguidesDeleteModel(ApiRequestModel):
|
|
96
|
+
company_id: Union[str, int]
|
|
97
|
+
document_id: Optional[Union[str, int]] = None
|
|
98
|
+
|
|
99
|
+
def request(self) -> ApiResponse:
|
|
100
|
+
"""
|
|
101
|
+
request(self) -> ApiResponse
|
|
102
|
+
|
|
103
|
+
Make an API request using the initialized client.
|
|
104
|
+
|
|
105
|
+
This method checks if the `_api_client` attribute is set (i.e., if the client has been initialized via the `connect` method).
|
|
106
|
+
If the client is initialized, it will make an API request using the provided method name and the model's data,
|
|
107
|
+
excluding the `_api_client` attribute itself from the request payload. If the client is not initialized, it will raise a `ValueError`.
|
|
108
|
+
|
|
109
|
+
Returns:
|
|
110
|
+
The response from the API.
|
|
111
|
+
|
|
112
|
+
Raises:
|
|
113
|
+
ValueError: If the client is not initialized via the `connect` method.
|
|
114
|
+
|
|
115
|
+
Example:
|
|
116
|
+
|
|
117
|
+
# Assuming you have a model instance `request_model` and an API client `api_client`
|
|
118
|
+
|
|
119
|
+
..code-block:: python
|
|
120
|
+
|
|
121
|
+
with request_model.connect(auth_config=auth_config) as api:
|
|
122
|
+
response = api.request()
|
|
123
|
+
|
|
124
|
+
# The above example assumes that the `connect` method has been used to initialize the client.
|
|
125
|
+
# The request method then sends the model's data to the API and returns the API's response.
|
|
126
|
+
|
|
127
|
+
"""
|
|
128
|
+
if hasattr(self, "_api_client"):
|
|
129
|
+
response = self._api_client.delete(
|
|
130
|
+
self.model_dump(exclude={"_api_client"}, exclude_unset=True)
|
|
131
|
+
)
|
|
132
|
+
return response
|
|
133
|
+
else:
|
|
134
|
+
raise ValueError("Client not initialized. Use the 'connect' method.")
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
class OwnassetsmovementguidesGetAllModel(ApiRequestModel):
|
|
138
|
+
company_id: Union[str, int]
|
|
139
|
+
customer_id: Optional[Union[str, int]] = None
|
|
140
|
+
date: Optional[str] = None
|
|
141
|
+
document_set_id: Optional[Union[str, int]] = None
|
|
142
|
+
number: Optional[str] = None
|
|
143
|
+
offset: Optional[Union[str, int]] = 0
|
|
144
|
+
qty: Optional[Union[str, int]] = 25
|
|
145
|
+
year: Optional[str] = None
|
|
146
|
+
your_reference: Optional[str] = None
|
|
147
|
+
|
|
148
|
+
def request(self) -> ApiResponse:
|
|
149
|
+
"""
|
|
150
|
+
request(self) -> ApiResponse
|
|
151
|
+
|
|
152
|
+
Make an API request using the initialized client.
|
|
153
|
+
|
|
154
|
+
This method checks if the `_api_client` attribute is set (i.e., if the client has been initialized via the `connect` method).
|
|
155
|
+
If the client is initialized, it will make an API request using the provided method name and the model's data,
|
|
156
|
+
excluding the `_api_client` attribute itself from the request payload. If the client is not initialized, it will raise a `ValueError`.
|
|
157
|
+
|
|
158
|
+
Returns:
|
|
159
|
+
The response from the API.
|
|
160
|
+
|
|
161
|
+
Raises:
|
|
162
|
+
ValueError: If the client is not initialized via the `connect` method.
|
|
163
|
+
|
|
164
|
+
Example:
|
|
165
|
+
|
|
166
|
+
# Assuming you have a model instance `request_model` and an API client `api_client`
|
|
167
|
+
|
|
168
|
+
..code-block:: python
|
|
169
|
+
|
|
170
|
+
with request_model.connect(auth_config=auth_config) as api:
|
|
171
|
+
response = api.request()
|
|
172
|
+
|
|
173
|
+
# The above example assumes that the `connect` method has been used to initialize the client.
|
|
174
|
+
# The request method then sends the model's data to the API and returns the API's response.
|
|
175
|
+
|
|
176
|
+
"""
|
|
177
|
+
if hasattr(self, "_api_client"):
|
|
178
|
+
response = self._api_client.get_all(
|
|
179
|
+
self.model_dump(exclude={"_api_client"}, exclude_unset=True)
|
|
180
|
+
)
|
|
181
|
+
return response
|
|
182
|
+
else:
|
|
183
|
+
raise ValueError("Client not initialized. Use the 'connect' method.")
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
class OwnassetsmovementguidesGetOneModel(ApiRequestModel):
|
|
187
|
+
company_id: Union[str, int]
|
|
188
|
+
customer_id: Optional[Union[str, int]] = None
|
|
189
|
+
date: Optional[str] = None
|
|
190
|
+
document_id: Optional[Union[str, int]] = None
|
|
191
|
+
document_set_id: Optional[Union[str, int]] = None
|
|
192
|
+
number: Optional[str] = None
|
|
193
|
+
year: Optional[str] = None
|
|
194
|
+
your_reference: Optional[str] = None
|
|
195
|
+
|
|
196
|
+
def request(self) -> ApiResponse:
|
|
197
|
+
"""
|
|
198
|
+
request(self) -> ApiResponse
|
|
199
|
+
|
|
200
|
+
Make an API request using the initialized client.
|
|
201
|
+
|
|
202
|
+
This method checks if the `_api_client` attribute is set (i.e., if the client has been initialized via the `connect` method).
|
|
203
|
+
If the client is initialized, it will make an API request using the provided method name and the model's data,
|
|
204
|
+
excluding the `_api_client` attribute itself from the request payload. If the client is not initialized, it will raise a `ValueError`.
|
|
205
|
+
|
|
206
|
+
Returns:
|
|
207
|
+
The response from the API.
|
|
208
|
+
|
|
209
|
+
Raises:
|
|
210
|
+
ValueError: If the client is not initialized via the `connect` method.
|
|
211
|
+
|
|
212
|
+
Example:
|
|
213
|
+
|
|
214
|
+
# Assuming you have a model instance `request_model` and an API client `api_client`
|
|
215
|
+
|
|
216
|
+
..code-block:: python
|
|
217
|
+
|
|
218
|
+
with request_model.connect(auth_config=auth_config) as api:
|
|
219
|
+
response = api.request()
|
|
220
|
+
|
|
221
|
+
# The above example assumes that the `connect` method has been used to initialize the client.
|
|
222
|
+
# The request method then sends the model's data to the API and returns the API's response.
|
|
223
|
+
|
|
224
|
+
"""
|
|
225
|
+
if hasattr(self, "_api_client"):
|
|
226
|
+
response = self._api_client.get_one(
|
|
227
|
+
self.model_dump(exclude={"_api_client"}, exclude_unset=True)
|
|
228
|
+
)
|
|
229
|
+
return response
|
|
230
|
+
else:
|
|
231
|
+
raise ValueError("Client not initialized. Use the 'connect' method.")
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
class OwnassetsmovementguidesInsertModel(ApiRequestModel):
|
|
235
|
+
company_id: Union[str, int]
|
|
236
|
+
customer_id: Optional[Union[str, int]] = None
|
|
237
|
+
date: Optional[str] = None
|
|
238
|
+
delivery_datetime: Optional[str] = None
|
|
239
|
+
delivery_departure_address: Optional[str] = None
|
|
240
|
+
delivery_departure_city: Optional[str] = None
|
|
241
|
+
delivery_departure_country: Optional[str] = None
|
|
242
|
+
delivery_departure_zip_code: Optional[str] = None
|
|
243
|
+
delivery_destination_address: Optional[str] = None
|
|
244
|
+
delivery_destination_city: Optional[str] = None
|
|
245
|
+
delivery_destination_country: Optional[str] = None
|
|
246
|
+
delivery_destination_zip_code: Optional[str] = None
|
|
247
|
+
delivery_method_id: Optional[Union[str, int]] = None
|
|
248
|
+
document_set_id: Optional[Union[str, int]] = None
|
|
249
|
+
notes: Optional[str] = None
|
|
250
|
+
products: Optional[List[Products]] = None
|
|
251
|
+
status: Optional[str] = None
|
|
252
|
+
vehicle_id: Optional[Union[str, int]] = None
|
|
253
|
+
your_reference: Optional[str] = None
|
|
254
|
+
|
|
255
|
+
def request(self) -> ApiResponse:
|
|
256
|
+
"""
|
|
257
|
+
request(self) -> ApiResponse
|
|
258
|
+
|
|
259
|
+
Make an API request using the initialized client.
|
|
260
|
+
|
|
261
|
+
This method checks if the `_api_client` attribute is set (i.e., if the client has been initialized via the `connect` method).
|
|
262
|
+
If the client is initialized, it will make an API request using the provided method name and the model's data,
|
|
263
|
+
excluding the `_api_client` attribute itself from the request payload. If the client is not initialized, it will raise a `ValueError`.
|
|
264
|
+
|
|
265
|
+
Returns:
|
|
266
|
+
The response from the API.
|
|
267
|
+
|
|
268
|
+
Raises:
|
|
269
|
+
ValueError: If the client is not initialized via the `connect` method.
|
|
270
|
+
|
|
271
|
+
Example:
|
|
272
|
+
|
|
273
|
+
# Assuming you have a model instance `request_model` and an API client `api_client`
|
|
274
|
+
|
|
275
|
+
..code-block:: python
|
|
276
|
+
|
|
277
|
+
with request_model.connect(auth_config=auth_config) as api:
|
|
278
|
+
response = api.request()
|
|
279
|
+
|
|
280
|
+
# The above example assumes that the `connect` method has been used to initialize the client.
|
|
281
|
+
# The request method then sends the model's data to the API and returns the API's response.
|
|
282
|
+
|
|
283
|
+
"""
|
|
284
|
+
if hasattr(self, "_api_client"):
|
|
285
|
+
response = self._api_client.insert(
|
|
286
|
+
self.model_dump(exclude={"_api_client"}, exclude_unset=True)
|
|
287
|
+
)
|
|
288
|
+
return response
|
|
289
|
+
else:
|
|
290
|
+
raise ValueError("Client not initialized. Use the 'connect' method.")
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
class OwnassetsmovementguidesSetTransportCodeModel(ApiRequestModel):
|
|
294
|
+
company_id: Union[str, int]
|
|
295
|
+
document_id: Optional[Union[str, int]] = None
|
|
296
|
+
transport_code: Optional[str] = None
|
|
297
|
+
|
|
298
|
+
def request(self) -> ApiResponse:
|
|
299
|
+
"""
|
|
300
|
+
request(self) -> ApiResponse
|
|
301
|
+
|
|
302
|
+
Make an API request using the initialized client.
|
|
303
|
+
|
|
304
|
+
This method checks if the `_api_client` attribute is set (i.e., if the client has been initialized via the `connect` method).
|
|
305
|
+
If the client is initialized, it will make an API request using the provided method name and the model's data,
|
|
306
|
+
excluding the `_api_client` attribute itself from the request payload. If the client is not initialized, it will raise a `ValueError`.
|
|
307
|
+
|
|
308
|
+
Returns:
|
|
309
|
+
The response from the API.
|
|
310
|
+
|
|
311
|
+
Raises:
|
|
312
|
+
ValueError: If the client is not initialized via the `connect` method.
|
|
313
|
+
|
|
314
|
+
Example:
|
|
315
|
+
|
|
316
|
+
# Assuming you have a model instance `request_model` and an API client `api_client`
|
|
317
|
+
|
|
318
|
+
..code-block:: python
|
|
319
|
+
|
|
320
|
+
with request_model.connect(auth_config=auth_config) as api:
|
|
321
|
+
response = api.request()
|
|
322
|
+
|
|
323
|
+
# The above example assumes that the `connect` method has been used to initialize the client.
|
|
324
|
+
# The request method then sends the model's data to the API and returns the API's response.
|
|
325
|
+
|
|
326
|
+
"""
|
|
327
|
+
if hasattr(self, "_api_client"):
|
|
328
|
+
response = self._api_client.set_transport_code(
|
|
329
|
+
self.model_dump(exclude={"_api_client"}, exclude_unset=True)
|
|
330
|
+
)
|
|
331
|
+
return response
|
|
332
|
+
else:
|
|
333
|
+
raise ValueError("Client not initialized. Use the 'connect' method.")
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
class OwnassetsmovementguidesUpdateModel(ApiRequestModel):
|
|
337
|
+
company_id: Union[str, int]
|
|
338
|
+
customer_id: Optional[Union[str, int]] = None
|
|
339
|
+
date: Optional[str] = None
|
|
340
|
+
delivery_datetime: Optional[str] = None
|
|
341
|
+
delivery_departure_address: Optional[str] = None
|
|
342
|
+
delivery_departure_city: Optional[str] = None
|
|
343
|
+
delivery_departure_country: Optional[str] = None
|
|
344
|
+
delivery_departure_zip_code: Optional[str] = None
|
|
345
|
+
delivery_destination_address: Optional[str] = None
|
|
346
|
+
delivery_destination_city: Optional[str] = None
|
|
347
|
+
delivery_destination_country: Optional[str] = None
|
|
348
|
+
delivery_destination_zip_code: Optional[str] = None
|
|
349
|
+
delivery_method_id: Optional[Union[str, int]] = None
|
|
350
|
+
document_id: Optional[Union[str, int]] = None
|
|
351
|
+
document_set_id: Optional[Union[str, int]] = None
|
|
352
|
+
notes: Optional[str] = None
|
|
353
|
+
products: Optional[List[Products]] = None
|
|
354
|
+
status: Optional[str] = None
|
|
355
|
+
vehicle_id: Optional[Union[str, int]] = None
|
|
356
|
+
your_reference: Optional[str] = None
|
|
357
|
+
|
|
358
|
+
def request(self) -> ApiResponse:
|
|
359
|
+
"""
|
|
360
|
+
request(self) -> ApiResponse
|
|
361
|
+
|
|
362
|
+
Make an API request using the initialized client.
|
|
363
|
+
|
|
364
|
+
This method checks if the `_api_client` attribute is set (i.e., if the client has been initialized via the `connect` method).
|
|
365
|
+
If the client is initialized, it will make an API request using the provided method name and the model's data,
|
|
366
|
+
excluding the `_api_client` attribute itself from the request payload. If the client is not initialized, it will raise a `ValueError`.
|
|
367
|
+
|
|
368
|
+
Returns:
|
|
369
|
+
The response from the API.
|
|
370
|
+
|
|
371
|
+
Raises:
|
|
372
|
+
ValueError: If the client is not initialized via the `connect` method.
|
|
373
|
+
|
|
374
|
+
Example:
|
|
375
|
+
|
|
376
|
+
# Assuming you have a model instance `request_model` and an API client `api_client`
|
|
377
|
+
|
|
378
|
+
..code-block:: python
|
|
379
|
+
|
|
380
|
+
with request_model.connect(auth_config=auth_config) as api:
|
|
381
|
+
response = api.request()
|
|
382
|
+
|
|
383
|
+
# The above example assumes that the `connect` method has been used to initialize the client.
|
|
384
|
+
# The request method then sends the model's data to the API and returns the API's response.
|
|
385
|
+
|
|
386
|
+
"""
|
|
387
|
+
if hasattr(self, "_api_client"):
|
|
388
|
+
response = self._api_client.update(
|
|
389
|
+
self.model_dump(exclude={"_api_client"}, exclude_unset=True)
|
|
390
|
+
)
|
|
391
|
+
return response
|
|
392
|
+
else:
|
|
393
|
+
raise ValueError("Client not initialized. Use the 'connect' method.")
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
class OwnassetsmovementguidesClient(MoloniBaseClient):
|
|
397
|
+
|
|
398
|
+
@endpoint("/<version>/ownAssetsMovementGuides/count/", method="post")
|
|
399
|
+
def count(self, data: Union[OwnassetsmovementguidesCountModel, dict], **kwargs):
|
|
400
|
+
"""
|
|
401
|
+
count(self, data: Union[OwnassetsmovementguidesCountModel, dict], **kwargs)
|
|
402
|
+
|
|
403
|
+
Args:
|
|
404
|
+
|
|
405
|
+
data (Union[OwnassetsmovementguidesCountModel, dict]): A model instance or dictionary containing the following fields:
|
|
406
|
+
|
|
407
|
+
- company_id (Union[str, int]): company_id of the OwnassetsmovementguidesCountModel.
|
|
408
|
+
|
|
409
|
+
- customer_id (Union[str, int]): customer_id of the OwnassetsmovementguidesCountModel.
|
|
410
|
+
|
|
411
|
+
- date (str): date of the OwnassetsmovementguidesCountModel.
|
|
412
|
+
|
|
413
|
+
- document_set_id (Union[str, int]): document_set_id of the OwnassetsmovementguidesCountModel.
|
|
414
|
+
|
|
415
|
+
- number (str): number of the OwnassetsmovementguidesCountModel.
|
|
416
|
+
|
|
417
|
+
- year (str): year of the OwnassetsmovementguidesCountModel.
|
|
418
|
+
|
|
419
|
+
- your_reference (str): your_reference of the OwnassetsmovementguidesCountModel.
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
Returns:
|
|
424
|
+
ApiResponse: The response from the API.
|
|
425
|
+
"""
|
|
426
|
+
|
|
427
|
+
data = validate_data(data, self.validate, OwnassetsmovementguidesCountModel)
|
|
428
|
+
|
|
429
|
+
return self._request(
|
|
430
|
+
fill_query_params(kwargs.pop("path"), self.version), data={**data, **kwargs}
|
|
431
|
+
)
|
|
432
|
+
|
|
433
|
+
@endpoint("/<version>/ownAssetsMovementGuides/delete/", method="post")
|
|
434
|
+
def delete(self, data: Union[OwnassetsmovementguidesDeleteModel, dict], **kwargs):
|
|
435
|
+
"""
|
|
436
|
+
delete(self, data: Union[OwnassetsmovementguidesDeleteModel, dict], **kwargs)
|
|
437
|
+
|
|
438
|
+
Args:
|
|
439
|
+
|
|
440
|
+
data (Union[OwnassetsmovementguidesDeleteModel, dict]): A model instance or dictionary containing the following fields:
|
|
441
|
+
|
|
442
|
+
- company_id (Union[str, int]): company_id of the OwnassetsmovementguidesDeleteModel.
|
|
443
|
+
|
|
444
|
+
- document_id (Union[str, int]): document_id of the OwnassetsmovementguidesDeleteModel.
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
Returns:
|
|
449
|
+
ApiResponse: The response from the API.
|
|
450
|
+
"""
|
|
451
|
+
|
|
452
|
+
data = validate_data(data, self.validate, OwnassetsmovementguidesDeleteModel)
|
|
453
|
+
|
|
454
|
+
return self._request(
|
|
455
|
+
fill_query_params(kwargs.pop("path"), self.version), data={**data, **kwargs}
|
|
456
|
+
)
|
|
457
|
+
|
|
458
|
+
@endpoint("/<version>/ownAssetsMovementGuides/getAll/", method="post")
|
|
459
|
+
def get_all(self, data: Union[OwnassetsmovementguidesGetAllModel, dict], **kwargs):
|
|
460
|
+
"""
|
|
461
|
+
get_all(self, data: Union[OwnassetsmovementguidesGetAllModel, dict], **kwargs)
|
|
462
|
+
|
|
463
|
+
Args:
|
|
464
|
+
|
|
465
|
+
data (Union[OwnassetsmovementguidesGetAllModel, dict]): A model instance or dictionary containing the following fields:
|
|
466
|
+
|
|
467
|
+
- company_id (Union[str, int]): company_id of the OwnassetsmovementguidesGetAllModel.
|
|
468
|
+
|
|
469
|
+
- customer_id (Union[str, int]): customer_id of the OwnassetsmovementguidesGetAllModel.
|
|
470
|
+
|
|
471
|
+
- date (str): date of the OwnassetsmovementguidesGetAllModel.
|
|
472
|
+
|
|
473
|
+
- document_set_id (Union[str, int]): document_set_id of the OwnassetsmovementguidesGetAllModel.
|
|
474
|
+
|
|
475
|
+
- number (str): number of the OwnassetsmovementguidesGetAllModel.
|
|
476
|
+
|
|
477
|
+
- offset (str): offset of the OwnassetsmovementguidesGetAllModel.
|
|
478
|
+
|
|
479
|
+
- qty (str): qty of the OwnassetsmovementguidesGetAllModel.
|
|
480
|
+
|
|
481
|
+
- year (str): year of the OwnassetsmovementguidesGetAllModel.
|
|
482
|
+
|
|
483
|
+
- your_reference (str): your_reference of the OwnassetsmovementguidesGetAllModel.
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
Returns:
|
|
488
|
+
ApiResponse: The response from the API.
|
|
489
|
+
"""
|
|
490
|
+
|
|
491
|
+
data = validate_data(data, self.validate, OwnassetsmovementguidesGetAllModel)
|
|
492
|
+
|
|
493
|
+
return self._request(
|
|
494
|
+
fill_query_params(kwargs.pop("path"), self.version), data={**data, **kwargs}
|
|
495
|
+
)
|
|
496
|
+
|
|
497
|
+
@endpoint("/<version>/ownAssetsMovementGuides/getOne/", method="post")
|
|
498
|
+
def get_one(self, data: Union[OwnassetsmovementguidesGetOneModel, dict], **kwargs):
|
|
499
|
+
"""
|
|
500
|
+
get_one(self, data: Union[OwnassetsmovementguidesGetOneModel, dict], **kwargs)
|
|
501
|
+
|
|
502
|
+
Args:
|
|
503
|
+
|
|
504
|
+
data (Union[OwnassetsmovementguidesGetOneModel, dict]): A model instance or dictionary containing the following fields:
|
|
505
|
+
|
|
506
|
+
- company_id (Union[str, int]): company_id of the OwnassetsmovementguidesGetOneModel.
|
|
507
|
+
|
|
508
|
+
- customer_id (Union[str, int]): customer_id of the OwnassetsmovementguidesGetOneModel.
|
|
509
|
+
|
|
510
|
+
- date (str): date of the OwnassetsmovementguidesGetOneModel.
|
|
511
|
+
|
|
512
|
+
- document_id (Union[str, int]): document_id of the OwnassetsmovementguidesGetOneModel.
|
|
513
|
+
|
|
514
|
+
- document_set_id (Union[str, int]): document_set_id of the OwnassetsmovementguidesGetOneModel.
|
|
515
|
+
|
|
516
|
+
- number (str): number of the OwnassetsmovementguidesGetOneModel.
|
|
517
|
+
|
|
518
|
+
- year (str): year of the OwnassetsmovementguidesGetOneModel.
|
|
519
|
+
|
|
520
|
+
- your_reference (str): your_reference of the OwnassetsmovementguidesGetOneModel.
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
Returns:
|
|
525
|
+
ApiResponse: The response from the API.
|
|
526
|
+
"""
|
|
527
|
+
|
|
528
|
+
data = validate_data(data, self.validate, OwnassetsmovementguidesGetOneModel)
|
|
529
|
+
|
|
530
|
+
return self._request(
|
|
531
|
+
fill_query_params(kwargs.pop("path"), self.version), data={**data, **kwargs}
|
|
532
|
+
)
|
|
533
|
+
|
|
534
|
+
@endpoint("/<version>/ownAssetsMovementGuides/insert/", method="post")
|
|
535
|
+
def insert(self, data: Union[OwnassetsmovementguidesInsertModel, dict], **kwargs):
|
|
536
|
+
"""
|
|
537
|
+
insert(self, data: Union[OwnassetsmovementguidesInsertModel, dict], **kwargs)
|
|
538
|
+
|
|
539
|
+
Args:
|
|
540
|
+
|
|
541
|
+
data (Union[OwnassetsmovementguidesInsertModel, dict]): A model instance or dictionary containing the following fields:
|
|
542
|
+
|
|
543
|
+
- company_id (Union[str, int]): company_id of the OwnassetsmovementguidesInsertModel.
|
|
544
|
+
|
|
545
|
+
- customer_id (Union[str, int]): customer_id of the OwnassetsmovementguidesInsertModel.
|
|
546
|
+
|
|
547
|
+
- date (str): date of the OwnassetsmovementguidesInsertModel.
|
|
548
|
+
|
|
549
|
+
- delivery_datetime (str): delivery_datetime of the OwnassetsmovementguidesInsertModel.
|
|
550
|
+
|
|
551
|
+
- delivery_departure_address (str): delivery_departure_address of the OwnassetsmovementguidesInsertModel.
|
|
552
|
+
|
|
553
|
+
- delivery_departure_city (str): delivery_departure_city of the OwnassetsmovementguidesInsertModel.
|
|
554
|
+
|
|
555
|
+
- delivery_departure_country (str): delivery_departure_country of the OwnassetsmovementguidesInsertModel.
|
|
556
|
+
|
|
557
|
+
- delivery_departure_zip_code (str): delivery_departure_zip_code of the OwnassetsmovementguidesInsertModel.
|
|
558
|
+
|
|
559
|
+
- delivery_destination_address (str): delivery_destination_address of the OwnassetsmovementguidesInsertModel.
|
|
560
|
+
|
|
561
|
+
- delivery_destination_city (str): delivery_destination_city of the OwnassetsmovementguidesInsertModel.
|
|
562
|
+
|
|
563
|
+
- delivery_destination_country (str): delivery_destination_country of the OwnassetsmovementguidesInsertModel.
|
|
564
|
+
|
|
565
|
+
- delivery_destination_zip_code (str): delivery_destination_zip_code of the OwnassetsmovementguidesInsertModel.
|
|
566
|
+
|
|
567
|
+
- delivery_method_id (Union[str, int]): delivery_method_id of the OwnassetsmovementguidesInsertModel.
|
|
568
|
+
|
|
569
|
+
- document_set_id (Union[str, int]): document_set_id of the OwnassetsmovementguidesInsertModel.
|
|
570
|
+
|
|
571
|
+
- notes (str): notes of the OwnassetsmovementguidesInsertModel.
|
|
572
|
+
|
|
573
|
+
- products (str): products of the OwnassetsmovementguidesInsertModel.
|
|
574
|
+
|
|
575
|
+
- status (str): status of the OwnassetsmovementguidesInsertModel.
|
|
576
|
+
|
|
577
|
+
- vehicle_id (Union[str, int]): vehicle_id of the OwnassetsmovementguidesInsertModel.
|
|
578
|
+
|
|
579
|
+
- your_reference (str): your_reference of the OwnassetsmovementguidesInsertModel.
|
|
580
|
+
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
Returns:
|
|
584
|
+
ApiResponse: The response from the API.
|
|
585
|
+
"""
|
|
586
|
+
|
|
587
|
+
data = validate_data(data, self.validate, OwnassetsmovementguidesInsertModel)
|
|
588
|
+
|
|
589
|
+
return self._request(
|
|
590
|
+
fill_query_params(kwargs.pop("path"), self.version), data={**data, **kwargs}
|
|
591
|
+
)
|
|
592
|
+
|
|
593
|
+
@endpoint("/<version>/ownAssetsMovementGuides/setTransportCode/", method="post")
|
|
594
|
+
def set_transport_code(
|
|
595
|
+
self, data: Union[OwnassetsmovementguidesSetTransportCodeModel, dict], **kwargs
|
|
596
|
+
):
|
|
597
|
+
"""
|
|
598
|
+
set_transport_code(self, data: Union[OwnassetsmovementguidesSetTransportCodeModel, dict], **kwargs)
|
|
599
|
+
|
|
600
|
+
Args:
|
|
601
|
+
|
|
602
|
+
data (Union[OwnassetsmovementguidesSetTransportCodeModel, dict]): A model instance or dictionary containing the following fields:
|
|
603
|
+
|
|
604
|
+
- company_id (Union[str, int]): company_id of the OwnassetsmovementguidesSetTransportCodeModel.
|
|
605
|
+
|
|
606
|
+
- document_id (Union[str, int]): document_id of the OwnassetsmovementguidesSetTransportCodeModel.
|
|
607
|
+
|
|
608
|
+
- transport_code (str): transport_code of the OwnassetsmovementguidesSetTransportCodeModel.
|
|
609
|
+
|
|
610
|
+
|
|
611
|
+
|
|
612
|
+
Returns:
|
|
613
|
+
ApiResponse: The response from the API.
|
|
614
|
+
"""
|
|
615
|
+
|
|
616
|
+
data = validate_data(
|
|
617
|
+
data, self.validate, OwnassetsmovementguidesSetTransportCodeModel
|
|
618
|
+
)
|
|
619
|
+
|
|
620
|
+
return self._request(
|
|
621
|
+
fill_query_params(kwargs.pop("path"), self.version), data={**data, **kwargs}
|
|
622
|
+
)
|
|
623
|
+
|
|
624
|
+
@endpoint("/<version>/ownAssetsMovementGuides/update/", method="post")
|
|
625
|
+
def update(self, data: Union[OwnassetsmovementguidesUpdateModel, dict], **kwargs):
|
|
626
|
+
"""
|
|
627
|
+
update(self, data: Union[OwnassetsmovementguidesUpdateModel, dict], **kwargs)
|
|
628
|
+
|
|
629
|
+
Args:
|
|
630
|
+
|
|
631
|
+
data (Union[OwnassetsmovementguidesUpdateModel, dict]): A model instance or dictionary containing the following fields:
|
|
632
|
+
|
|
633
|
+
- company_id (Union[str, int]): company_id of the OwnassetsmovementguidesUpdateModel.
|
|
634
|
+
|
|
635
|
+
- customer_id (Union[str, int]): customer_id of the OwnassetsmovementguidesUpdateModel.
|
|
636
|
+
|
|
637
|
+
- date (str): date of the OwnassetsmovementguidesUpdateModel.
|
|
638
|
+
|
|
639
|
+
- delivery_datetime (str): delivery_datetime of the OwnassetsmovementguidesUpdateModel.
|
|
640
|
+
|
|
641
|
+
- delivery_departure_address (str): delivery_departure_address of the OwnassetsmovementguidesUpdateModel.
|
|
642
|
+
|
|
643
|
+
- delivery_departure_city (str): delivery_departure_city of the OwnassetsmovementguidesUpdateModel.
|
|
644
|
+
|
|
645
|
+
- delivery_departure_country (str): delivery_departure_country of the OwnassetsmovementguidesUpdateModel.
|
|
646
|
+
|
|
647
|
+
- delivery_departure_zip_code (str): delivery_departure_zip_code of the OwnassetsmovementguidesUpdateModel.
|
|
648
|
+
|
|
649
|
+
- delivery_destination_address (str): delivery_destination_address of the OwnassetsmovementguidesUpdateModel.
|
|
650
|
+
|
|
651
|
+
- delivery_destination_city (str): delivery_destination_city of the OwnassetsmovementguidesUpdateModel.
|
|
652
|
+
|
|
653
|
+
- delivery_destination_country (str): delivery_destination_country of the OwnassetsmovementguidesUpdateModel.
|
|
654
|
+
|
|
655
|
+
- delivery_destination_zip_code (str): delivery_destination_zip_code of the OwnassetsmovementguidesUpdateModel.
|
|
656
|
+
|
|
657
|
+
- delivery_method_id (Union[str, int]): delivery_method_id of the OwnassetsmovementguidesUpdateModel.
|
|
658
|
+
|
|
659
|
+
- document_id (Union[str, int]): document_id of the OwnassetsmovementguidesUpdateModel.
|
|
660
|
+
|
|
661
|
+
- document_set_id (Union[str, int]): document_set_id of the OwnassetsmovementguidesUpdateModel.
|
|
662
|
+
|
|
663
|
+
- notes (str): notes of the OwnassetsmovementguidesUpdateModel.
|
|
664
|
+
|
|
665
|
+
- products (str): products of the OwnassetsmovementguidesUpdateModel.
|
|
666
|
+
|
|
667
|
+
- status (str): status of the OwnassetsmovementguidesUpdateModel.
|
|
668
|
+
|
|
669
|
+
- vehicle_id (Union[str, int]): vehicle_id of the OwnassetsmovementguidesUpdateModel.
|
|
670
|
+
|
|
671
|
+
- your_reference (str): your_reference of the OwnassetsmovementguidesUpdateModel.
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
|
|
675
|
+
Returns:
|
|
676
|
+
ApiResponse: The response from the API.
|
|
677
|
+
"""
|
|
678
|
+
|
|
679
|
+
data = validate_data(data, self.validate, OwnassetsmovementguidesUpdateModel)
|
|
680
|
+
|
|
681
|
+
return self._request(
|
|
682
|
+
fill_query_params(kwargs.pop("path"), self.version), data={**data, **kwargs}
|
|
683
|
+
)
|