producteca 2.0.36__tar.gz → 2.0.38__tar.gz

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.

Files changed (31) hide show
  1. {producteca-2.0.36 → producteca-2.0.38}/PKG-INFO +1 -1
  2. {producteca-2.0.36 → producteca-2.0.38}/producteca/products/search_products.py +3 -3
  3. {producteca-2.0.36 → producteca-2.0.38}/producteca/sales_orders/sales_orders.py +1 -1
  4. {producteca-2.0.36 → producteca-2.0.38}/pyproject.toml +1 -1
  5. {producteca-2.0.36 → producteca-2.0.38}/LICENSE +0 -0
  6. {producteca-2.0.36 → producteca-2.0.38}/README.md +0 -0
  7. {producteca-2.0.36 → producteca-2.0.38}/producteca/__init__.py +0 -0
  8. {producteca-2.0.36 → producteca-2.0.38}/producteca/abstract/__init__.py +0 -0
  9. {producteca-2.0.36 → producteca-2.0.38}/producteca/abstract/abstract_dataclass.py +0 -0
  10. {producteca-2.0.36 → producteca-2.0.38}/producteca/client.py +0 -0
  11. {producteca-2.0.36 → producteca-2.0.38}/producteca/config/__init__.py +0 -0
  12. {producteca-2.0.36 → producteca-2.0.38}/producteca/config/config.py +0 -0
  13. {producteca-2.0.36 → producteca-2.0.38}/producteca/payments/__init__.py +0 -0
  14. {producteca-2.0.36 → producteca-2.0.38}/producteca/payments/payments.py +0 -0
  15. {producteca-2.0.36 → producteca-2.0.38}/producteca/payments/tests/__init__.py +0 -0
  16. {producteca-2.0.36 → producteca-2.0.38}/producteca/payments/tests/test_payments.py +0 -0
  17. {producteca-2.0.36 → producteca-2.0.38}/producteca/products/__init__.py +0 -0
  18. {producteca-2.0.36 → producteca-2.0.38}/producteca/products/products.py +0 -0
  19. {producteca-2.0.36 → producteca-2.0.38}/producteca/products/tests/__init__.py +0 -0
  20. {producteca-2.0.36 → producteca-2.0.38}/producteca/products/tests/test_products.py +0 -0
  21. {producteca-2.0.36 → producteca-2.0.38}/producteca/products/tests/test_search_products.py +0 -0
  22. {producteca-2.0.36 → producteca-2.0.38}/producteca/sales_orders/__init__.py +0 -0
  23. {producteca-2.0.36 → producteca-2.0.38}/producteca/sales_orders/search_sale_orders.py +0 -0
  24. {producteca-2.0.36 → producteca-2.0.38}/producteca/sales_orders/tests/__init__.py +0 -0
  25. {producteca-2.0.36 → producteca-2.0.38}/producteca/sales_orders/tests/search.json +0 -0
  26. {producteca-2.0.36 → producteca-2.0.38}/producteca/sales_orders/tests/test_sales_orders.py +0 -0
  27. {producteca-2.0.36 → producteca-2.0.38}/producteca/sales_orders/tests/test_search_so.py +0 -0
  28. {producteca-2.0.36 → producteca-2.0.38}/producteca/shipments/__init__.py +0 -0
  29. {producteca-2.0.36 → producteca-2.0.38}/producteca/shipments/shipment.py +0 -0
  30. {producteca-2.0.36 → producteca-2.0.38}/producteca/shipments/tests/__init__.py +0 -0
  31. {producteca-2.0.36 → producteca-2.0.38}/producteca/shipments/tests/test_shipment.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: producteca
3
- Version: 2.0.36
3
+ Version: 2.0.38
4
4
  Summary:
5
5
  Author: Chroma Agency, Matias Rivera
6
6
  Author-email: mrivera@chroma.agency
@@ -64,15 +64,15 @@ class SearchResultItem(BaseModel):
64
64
  brand: Optional[str] = None
65
65
  category: Optional[str] = None
66
66
  thumbnail: Optional[str] = None
67
- stocks: Optional[List[SearchStocks]] = None
67
+ stocks: Optional[Union[List[SearchStocks], List]] = None
68
68
  warehouses_with_stock: Optional[List[str]] = Field(None, alias='warehousesWithStock')
69
69
  total_stock: Optional[int] = Field(None, alias='totalStock')
70
70
  has_pictures: Optional[bool] = Field(None, alias='hasPictures')
71
71
  buying_price: Optional[float] = Field(None, alias='buyingPrice')
72
- prices: Optional[List[SearchPrices]] = None
72
+ prices: Optional[Union[List[SearchPrices], List]] = None
73
73
  integration_ids: Optional[List[str]] = Field(None, alias='integrationIds')
74
74
  integration_apps: Optional[List[str]] = Field(None, alias='integrationApps')
75
- integrations: Optional[List[SearchIntegration]] = None
75
+ integrations: Optional[Union[List[SearchIntegration], List]] = None
76
76
  campaigns: Optional[List[str]] = None
77
77
  app: Optional[int] = None
78
78
  status: Optional[str] = None
@@ -289,7 +289,7 @@ class SaleOrderService(BaseService):
289
289
  url = self.config.get_endpoint(endpoint)
290
290
  response = requests.get(url, headers=self.config.headers)
291
291
  if not response.ok:
292
- raise Exception(f"Order {sale_order_id} could not be fetched")
292
+ raise Exception(f"Order {sale_order_id} could not be fetched. Error {response.status_code} {response.text}")
293
293
  response_data = response.json()
294
294
  return self(**response_data)
295
295
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "producteca"
3
- version = "2.0.36"
3
+ version = "2.0.38"
4
4
  description = ""
5
5
  authors = ["Chroma Agency, Matias Rivera <mrivera@chroma.agency>"]
6
6
  readme = "README.md"
File without changes
File without changes