producteca 2.0.31__tar.gz → 2.0.33__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.31 → producteca-2.0.33}/PKG-INFO +1 -1
- {producteca-2.0.31 → producteca-2.0.33}/producteca/sales_orders/search_sale_orders.py +12 -12
- {producteca-2.0.31 → producteca-2.0.33}/pyproject.toml +1 -1
- {producteca-2.0.31 → producteca-2.0.33}/LICENSE +0 -0
- {producteca-2.0.31 → producteca-2.0.33}/README.md +0 -0
- {producteca-2.0.31 → producteca-2.0.33}/producteca/__init__.py +0 -0
- {producteca-2.0.31 → producteca-2.0.33}/producteca/abstract/__init__.py +0 -0
- {producteca-2.0.31 → producteca-2.0.33}/producteca/abstract/abstract_dataclass.py +0 -0
- {producteca-2.0.31 → producteca-2.0.33}/producteca/client.py +0 -0
- {producteca-2.0.31 → producteca-2.0.33}/producteca/config/__init__.py +0 -0
- {producteca-2.0.31 → producteca-2.0.33}/producteca/config/config.py +0 -0
- {producteca-2.0.31 → producteca-2.0.33}/producteca/payments/__init__.py +0 -0
- {producteca-2.0.31 → producteca-2.0.33}/producteca/payments/payments.py +0 -0
- {producteca-2.0.31 → producteca-2.0.33}/producteca/payments/tests/__init__.py +0 -0
- {producteca-2.0.31 → producteca-2.0.33}/producteca/payments/tests/test_payments.py +0 -0
- {producteca-2.0.31 → producteca-2.0.33}/producteca/products/__init__.py +0 -0
- {producteca-2.0.31 → producteca-2.0.33}/producteca/products/products.py +0 -0
- {producteca-2.0.31 → producteca-2.0.33}/producteca/products/search_products.py +0 -0
- {producteca-2.0.31 → producteca-2.0.33}/producteca/products/tests/__init__.py +0 -0
- {producteca-2.0.31 → producteca-2.0.33}/producteca/products/tests/test_products.py +0 -0
- {producteca-2.0.31 → producteca-2.0.33}/producteca/products/tests/test_search_products.py +0 -0
- {producteca-2.0.31 → producteca-2.0.33}/producteca/sales_orders/__init__.py +0 -0
- {producteca-2.0.31 → producteca-2.0.33}/producteca/sales_orders/sales_orders.py +0 -0
- {producteca-2.0.31 → producteca-2.0.33}/producteca/sales_orders/tests/__init__.py +0 -0
- {producteca-2.0.31 → producteca-2.0.33}/producteca/sales_orders/tests/search.json +0 -0
- {producteca-2.0.31 → producteca-2.0.33}/producteca/sales_orders/tests/test_sales_orders.py +0 -0
- {producteca-2.0.31 → producteca-2.0.33}/producteca/sales_orders/tests/test_search_so.py +0 -0
- {producteca-2.0.31 → producteca-2.0.33}/producteca/shipments/__init__.py +0 -0
- {producteca-2.0.31 → producteca-2.0.33}/producteca/shipments/shipment.py +0 -0
- {producteca-2.0.31 → producteca-2.0.33}/producteca/shipments/tests/__init__.py +0 -0
- {producteca-2.0.31 → producteca-2.0.33}/producteca/shipments/tests/test_shipment.py +0 -0
|
@@ -13,20 +13,20 @@ class SalesOrderProduct(BaseModel):
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
class SalesOrderVariationAttribute(BaseModel):
|
|
16
|
-
key: str
|
|
17
|
-
value: str
|
|
16
|
+
key: Optional[str] = None
|
|
17
|
+
value: Optional[str] = None
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
class SalesOrderVariation(BaseModel):
|
|
21
21
|
id: int
|
|
22
|
-
attributes: List[SalesOrderVariationAttribute]
|
|
22
|
+
attributes: Optional[List[SalesOrderVariationAttribute]] = None
|
|
23
23
|
sku: str
|
|
24
24
|
thumbnail: str
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
class SalesOrderLine(BaseModel):
|
|
28
28
|
product: SalesOrderProduct
|
|
29
|
-
variation: SalesOrderVariation
|
|
29
|
+
variation: Optional[SalesOrderVariation] = None
|
|
30
30
|
quantity: int
|
|
31
31
|
price: float
|
|
32
32
|
|
|
@@ -74,13 +74,13 @@ class SalesOrderShipmentProduct(BaseModel):
|
|
|
74
74
|
|
|
75
75
|
class SalesOrderShipmentMethod(BaseModel):
|
|
76
76
|
tracking_number: Optional[str] = Field(alias="trackingNumber")
|
|
77
|
-
tracking_url: str = Field(alias="trackingUrl")
|
|
78
|
-
courier: str
|
|
77
|
+
tracking_url: Optional[str] = Field(alias="trackingUrl")
|
|
78
|
+
courier: Optional[str] = None
|
|
79
79
|
mode: Optional[str] = None
|
|
80
|
-
cost: float
|
|
81
|
-
type: str
|
|
80
|
+
cost: Optional[float] = None
|
|
81
|
+
type: Optional[str] = None
|
|
82
82
|
eta: Optional[Union[int, str]] = Field(None)
|
|
83
|
-
status: str
|
|
83
|
+
status: Optional[str] = None
|
|
84
84
|
|
|
85
85
|
|
|
86
86
|
class SalesOrderShipmentIntegration(BaseModel):
|
|
@@ -110,13 +110,13 @@ class SalesOrderResultItem(BaseModel):
|
|
|
110
110
|
invoice_integration_app: Optional[int] = Field(default=None, alias="invoiceIntegrationApp")
|
|
111
111
|
invoice_integration_id: Optional[str] = Field(default=None, alias="invoiceIntegrationId")
|
|
112
112
|
lines: List[SalesOrderLine]
|
|
113
|
-
payments: List[SalesOrderPayment]
|
|
113
|
+
payments: Optional[List[SalesOrderPayment]] = None
|
|
114
114
|
payment_status: str = Field(alias="paymentStatus")
|
|
115
115
|
payment_term: str = Field(alias="paymentTerm")
|
|
116
116
|
product_names: List[str] = Field(alias="productNames")
|
|
117
117
|
reserving_product_ids: Union[str, List[str]] = Field(alias="reservingProductIds")
|
|
118
118
|
sales_channel: int = Field(alias="salesChannel")
|
|
119
|
-
shipments: List[SalesOrderShipment]
|
|
119
|
+
shipments: Optional[List[SalesOrderShipment]] = None
|
|
120
120
|
tracking_number: Optional[str] = Field(alias="trackingNumber")
|
|
121
121
|
skus: List[str]
|
|
122
122
|
status: str
|
|
@@ -126,7 +126,7 @@ class SalesOrderResultItem(BaseModel):
|
|
|
126
126
|
shipping_cost: float = Field(alias="shippingCost")
|
|
127
127
|
contact_phone: Optional[str] = Field(default=None, alias="contactPhone")
|
|
128
128
|
brands: List[str]
|
|
129
|
-
courier: str
|
|
129
|
+
courier: Optional[str] = None
|
|
130
130
|
order_id: int = Field(alias="orderId")
|
|
131
131
|
updated_at: str = Field(alias="updatedAt")
|
|
132
132
|
invoice_integration_created_at: Optional[str] = Field(default=None, alias="invoiceIntegrationCreatedAt")
|
|
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
|