producteca 2.0.21__py3-none-any.whl → 2.0.24__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.

Potentially problematic release.


This version of producteca might be problematic. Click here for more details.

@@ -1,14 +1,14 @@
1
1
  from abc import ABC
2
2
  from ..config.config import ConfigProducteca
3
3
  from dataclasses import dataclass
4
- from typing import Optional
4
+ from typing import Optional, Any
5
5
 
6
6
 
7
7
  @dataclass
8
- class BaseService[T](ABC):
8
+ class BaseService(ABC):
9
9
  config: ConfigProducteca
10
10
  endpoint: str
11
- _record: Optional[T] = None
11
+ _record: Optional[Any] = None
12
12
 
13
13
  def __repr__(self):
14
14
  return repr(self._record)
@@ -244,7 +244,7 @@ class ListedSynchronizeResponse(BaseModel):
244
244
 
245
245
 
246
246
  @dataclass
247
- class ProductService(BaseService[Product]):
247
+ class ProductService(BaseService):
248
248
  endpoint: str = 'products'
249
249
  create_if_it_doesnt_exist: bool = Field(default=False, exclude=True)
250
250
 
@@ -205,6 +205,12 @@ class SaleOrderInvoiceIntegrationPut(SaleOrderInvoiceIntegrationAbstract):
205
205
  xml_url: str = Field(alias="xmlUrl")
206
206
 
207
207
 
208
+ class SaleOrderWarehouseIntegration(BaseModel):
209
+ app: Optional[int] = None
210
+ status: Optional[str] = None
211
+ integration_id: Optional[str] = Field(None, alias="integrationId")
212
+
213
+
208
214
  class SaleOrder(BaseModel):
209
215
  tags: Optional[List[str]] = None
210
216
  integrations: Optional[List[SaleOrderIntegrationId]] = None
@@ -215,7 +221,7 @@ class SaleOrder(BaseModel):
215
221
  lines: Optional[List[SaleOrderLine]] = None
216
222
  warehouse: Optional[str] = None
217
223
  warehouse_id: Optional[int] = Field(None, alias="warehouseId")
218
- warehouse_integration: Optional[str] = Field(None, alias="warehouseIntegration")
224
+ warehouse_integration: Optional[SaleOrderWarehouseIntegration] = Field(None, alias="warehouseIntegration")
219
225
  pick_up_store: Optional[str] = Field(None, alias="pickUpStore")
220
226
  payments: Optional[List[SaleOrderPayment]] = None
221
227
  shipments: Optional[List[SaleOrderShipment]] = None
@@ -264,7 +270,7 @@ class SaleOrderSyncResponse(BaseModel):
264
270
 
265
271
 
266
272
  @dataclass
267
- class SaleOrderService(BaseService[SaleOrder]):
273
+ class SaleOrderService(BaseService):
268
274
  endpoint: str = 'salesorders'
269
275
 
270
276
  def __call__(self, **payload):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: producteca
3
- Version: 2.0.21
3
+ Version: 2.0.24
4
4
  Summary:
5
5
  Author: Chroma Agency, Matias Rivera
6
6
  Author-email: mrivera@chroma.agency
@@ -1,6 +1,6 @@
1
1
  producteca/__init__.py,sha256=ML-Y_hCd8HOgNOVGiqGpbLqWAtvPXqQQaBQmj-A5Lvc,52
2
2
  producteca/abstract/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- producteca/abstract/abstract_dataclass.py,sha256=wO6svFCpMB8CrRbm7SX3PCqggsCUu04pjuoVaBrSrag,545
3
+ producteca/abstract/abstract_dataclass.py,sha256=LpAsIdVgCbqT602_1X19mfnuooa5j6LttjvZKKJhw-Q,549
4
4
  producteca/client.py,sha256=4T4vLh_Zz56mG2S0P9Il1NEJ4Rj0g2mgXYA7KJjY72U,789
5
5
  producteca/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  producteca/config/config.py,sha256=uTRaHLI9L7P_LPuFmuYgV50Aedz9MfDbXOZVZPFkOuI,658
@@ -9,13 +9,13 @@ producteca/payments/payments.py,sha256=ac0X-QC4CGvxs40B_qWv0IepBVpj_nULNSNp8s3v5
9
9
  producteca/payments/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
10
  producteca/payments/tests/test_payments.py,sha256=wutk5zK2xRChTvKyTmi54Y_92PzNtUKZF6xWF298sFY,3032
11
11
  producteca/products/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
- producteca/products/products.py,sha256=U761wxKI5ZqZm8FCtqJIUaslWZEwm9Wog4qZ_hw_kuU,12412
12
+ producteca/products/products.py,sha256=FQeif3q52JGUcYVu5VKzY81FPSInQlc-HfYpYFlWmxo,12403
13
13
  producteca/products/search_products.py,sha256=qoo7ttdBuDUKEIOz4ysuBwK88aJ6PfSOtLkgNymvD4Y,5880
14
14
  producteca/products/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
15
  producteca/products/tests/test_products.py,sha256=0Tph7T9D2XTLdTDoIpR2PcLTrvPt6h2LPuKowTXrDgU,5742
16
16
  producteca/products/tests/test_search_products.py,sha256=ISkDClYaYnwo23a7_O4OlgPfc4dAZCMinLAi07yecEI,4941
17
17
  producteca/sales_orders/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
- producteca/sales_orders/sales_orders.py,sha256=p0pZz6Rth1rN0CzZx-4HTwKzXay8armt1BHkOSgRIbE,16093
18
+ producteca/sales_orders/sales_orders.py,sha256=OZSA8qonTl5BKAAmTpI_wE2Als5AHI2ISuprt8o-750,16292
19
19
  producteca/sales_orders/search_sale_orders.py,sha256=x4ln0P2QBR1F4OyiFY6EUM1stLVv6MNOyYsnmtPoLIo,4825
20
20
  producteca/sales_orders/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
21
  producteca/sales_orders/tests/search.json,sha256=v6LkTvQyeBdqxRc3iWwXH5Ugs7EYJAEOiuPuuj_rHYk,3508
@@ -25,8 +25,8 @@ producteca/shipments/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hS
25
25
  producteca/shipments/shipment.py,sha256=YokJRBX1ZbUtZVc4AOAB188rbHFO0_MH5hFv5U9Qpjw,844
26
26
  producteca/shipments/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
27
  producteca/shipments/tests/test_shipment.py,sha256=0edX3WM-t4nbp53r_Lvhtk_Suc2QCnIUQ27I90qSUfE,2512
28
- producteca-2.0.21.dist-info/LICENSE,sha256=DZak_2itbUtvHzD3E7GNUYSRK6jdOJ-GqncQ2weavLA,34523
29
- producteca-2.0.21.dist-info/METADATA,sha256=6OIHiZcshMttbJ89_0uI6y4M3c3Dmo7t3JR5e05FxyM,3809
30
- producteca-2.0.21.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
31
- producteca-2.0.21.dist-info/entry_points.txt,sha256=BFSDFLbB70p8YVZPiU7HDJdj2VyyLdMVa4ekLQAUAVc,125
32
- producteca-2.0.21.dist-info/RECORD,,
28
+ producteca-2.0.24.dist-info/LICENSE,sha256=DZak_2itbUtvHzD3E7GNUYSRK6jdOJ-GqncQ2weavLA,34523
29
+ producteca-2.0.24.dist-info/METADATA,sha256=PJ94kQmEt4-Mf7YqNX6Ol5WS2cPhL6qROU1B9sfW2iw,3809
30
+ producteca-2.0.24.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
31
+ producteca-2.0.24.dist-info/entry_points.txt,sha256=BFSDFLbB70p8YVZPiU7HDJdj2VyyLdMVa4ekLQAUAVc,125
32
+ producteca-2.0.24.dist-info/RECORD,,