producteca 2.0.29__tar.gz → 2.0.31__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.
- {producteca-2.0.29 → producteca-2.0.31}/PKG-INFO +1 -1
- {producteca-2.0.29 → producteca-2.0.31}/producteca/sales_orders/sales_orders.py +2 -2
- {producteca-2.0.29 → producteca-2.0.31}/pyproject.toml +1 -1
- {producteca-2.0.29 → producteca-2.0.31}/LICENSE +0 -0
- {producteca-2.0.29 → producteca-2.0.31}/README.md +0 -0
- {producteca-2.0.29 → producteca-2.0.31}/producteca/__init__.py +0 -0
- {producteca-2.0.29 → producteca-2.0.31}/producteca/abstract/__init__.py +0 -0
- {producteca-2.0.29 → producteca-2.0.31}/producteca/abstract/abstract_dataclass.py +0 -0
- {producteca-2.0.29 → producteca-2.0.31}/producteca/client.py +0 -0
- {producteca-2.0.29 → producteca-2.0.31}/producteca/config/__init__.py +0 -0
- {producteca-2.0.29 → producteca-2.0.31}/producteca/config/config.py +0 -0
- {producteca-2.0.29 → producteca-2.0.31}/producteca/payments/__init__.py +0 -0
- {producteca-2.0.29 → producteca-2.0.31}/producteca/payments/payments.py +0 -0
- {producteca-2.0.29 → producteca-2.0.31}/producteca/payments/tests/__init__.py +0 -0
- {producteca-2.0.29 → producteca-2.0.31}/producteca/payments/tests/test_payments.py +0 -0
- {producteca-2.0.29 → producteca-2.0.31}/producteca/products/__init__.py +0 -0
- {producteca-2.0.29 → producteca-2.0.31}/producteca/products/products.py +0 -0
- {producteca-2.0.29 → producteca-2.0.31}/producteca/products/search_products.py +0 -0
- {producteca-2.0.29 → producteca-2.0.31}/producteca/products/tests/__init__.py +0 -0
- {producteca-2.0.29 → producteca-2.0.31}/producteca/products/tests/test_products.py +0 -0
- {producteca-2.0.29 → producteca-2.0.31}/producteca/products/tests/test_search_products.py +0 -0
- {producteca-2.0.29 → producteca-2.0.31}/producteca/sales_orders/__init__.py +0 -0
- {producteca-2.0.29 → producteca-2.0.31}/producteca/sales_orders/search_sale_orders.py +0 -0
- {producteca-2.0.29 → producteca-2.0.31}/producteca/sales_orders/tests/__init__.py +0 -0
- {producteca-2.0.29 → producteca-2.0.31}/producteca/sales_orders/tests/search.json +0 -0
- {producteca-2.0.29 → producteca-2.0.31}/producteca/sales_orders/tests/test_sales_orders.py +0 -0
- {producteca-2.0.29 → producteca-2.0.31}/producteca/sales_orders/tests/test_search_so.py +0 -0
- {producteca-2.0.29 → producteca-2.0.31}/producteca/shipments/__init__.py +0 -0
- {producteca-2.0.29 → producteca-2.0.31}/producteca/shipments/shipment.py +0 -0
- {producteca-2.0.29 → producteca-2.0.31}/producteca/shipments/tests/__init__.py +0 -0
- {producteca-2.0.29 → producteca-2.0.31}/producteca/shipments/tests/test_shipment.py +0 -0
|
@@ -197,7 +197,7 @@ class SaleOrderInvoiceIntegrationAbstract(BaseModel):
|
|
|
197
197
|
integration_id: str = Field(alias="integrationId")
|
|
198
198
|
app: int
|
|
199
199
|
created_at: str = Field(alias="createdAt")
|
|
200
|
-
decrease_stock: bool = Field(alias="decreaseStock")
|
|
200
|
+
decrease_stock: Optional[bool] = Field(None, alias="decreaseStock")
|
|
201
201
|
|
|
202
202
|
|
|
203
203
|
class SaleOrderInvoiceIntegration(SaleOrderInvoiceIntegrationAbstract):
|
|
@@ -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("Order could not be fetched")
|
|
292
|
+
raise Exception(f"Order {sale_order_id} could not be fetched")
|
|
293
293
|
response_data = response.json()
|
|
294
294
|
return self(**response_data)
|
|
295
295
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|