vtexpy 0.0.0b20__tar.gz → 0.0.0b21__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 vtexpy might be problematic. Click here for more details.
- {vtexpy-0.0.0b20 → vtexpy-0.0.0b21}/PKG-INFO +1 -1
- {vtexpy-0.0.0b20 → vtexpy-0.0.0b21}/pyproject.toml +1 -1
- {vtexpy-0.0.0b20 → vtexpy-0.0.0b21}/vtex/_api/custom.py +7 -13
- {vtexpy-0.0.0b20 → vtexpy-0.0.0b21}/vtex/_api/orders.py +1 -1
- {vtexpy-0.0.0b20 → vtexpy-0.0.0b21}/LICENSE +0 -0
- {vtexpy-0.0.0b20 → vtexpy-0.0.0b21}/README.md +0 -0
- {vtexpy-0.0.0b20 → vtexpy-0.0.0b21}/vtex/__init__.py +0 -0
- {vtexpy-0.0.0b20 → vtexpy-0.0.0b21}/vtex/_api/__init__.py +0 -0
- {vtexpy-0.0.0b20 → vtexpy-0.0.0b21}/vtex/_api/base.py +0 -0
- {vtexpy-0.0.0b20 → vtexpy-0.0.0b21}/vtex/_api/catalog.py +0 -0
- {vtexpy-0.0.0b20 → vtexpy-0.0.0b21}/vtex/_api/checkout.py +0 -0
- {vtexpy-0.0.0b20 → vtexpy-0.0.0b21}/vtex/_api/license_manager.py +0 -0
- {vtexpy-0.0.0b20 → vtexpy-0.0.0b21}/vtex/_api/logistics.py +0 -0
- {vtexpy-0.0.0b20 → vtexpy-0.0.0b21}/vtex/_api/master_data.py +0 -0
- {vtexpy-0.0.0b20 → vtexpy-0.0.0b21}/vtex/_api/payments_gateway.py +0 -0
- {vtexpy-0.0.0b20 → vtexpy-0.0.0b21}/vtex/_api/promotions_and_taxes.py +0 -0
- {vtexpy-0.0.0b20 → vtexpy-0.0.0b21}/vtex/_api/types/__init__.py +0 -0
- {vtexpy-0.0.0b20 → vtexpy-0.0.0b21}/vtex/_api/types/catalog.py +0 -0
- {vtexpy-0.0.0b20 → vtexpy-0.0.0b21}/vtex/_api/types/generic.py +0 -0
- {vtexpy-0.0.0b20 → vtexpy-0.0.0b21}/vtex/_api/types/license_manager.py +0 -0
- {vtexpy-0.0.0b20 → vtexpy-0.0.0b21}/vtex/_config.py +0 -0
- {vtexpy-0.0.0b20 → vtexpy-0.0.0b21}/vtex/_constants.py +0 -0
- {vtexpy-0.0.0b20 → vtexpy-0.0.0b21}/vtex/_dto.py +0 -0
- {vtexpy-0.0.0b20 → vtexpy-0.0.0b21}/vtex/_exceptions.py +0 -0
- {vtexpy-0.0.0b20 → vtexpy-0.0.0b21}/vtex/_logging.py +0 -0
- {vtexpy-0.0.0b20 → vtexpy-0.0.0b21}/vtex/_sentinels.py +0 -0
- {vtexpy-0.0.0b20 → vtexpy-0.0.0b21}/vtex/_types.py +0 -0
- {vtexpy-0.0.0b20 → vtexpy-0.0.0b21}/vtex/_utils.py +0 -0
- {vtexpy-0.0.0b20 → vtexpy-0.0.0b21}/vtex/_vtex.py +0 -0
- {vtexpy-0.0.0b20 → vtexpy-0.0.0b21}/vtex/py.typed +0 -0
|
@@ -67,28 +67,22 @@ class CustomAPI(BaseAPI):
|
|
|
67
67
|
return self.client.license_manager.get_account().data["sites"]
|
|
68
68
|
|
|
69
69
|
def get_main_seller(self) -> Seller:
|
|
70
|
-
for seller in self.client.catalog.list_sellers().items:
|
|
71
|
-
if seller["
|
|
70
|
+
for seller in self.client.catalog.list_sellers(seller_type=1).items:
|
|
71
|
+
if seller["seller_id"] == "1":
|
|
72
72
|
return seller
|
|
73
73
|
|
|
74
74
|
raise VTEXError("Could not find main seller")
|
|
75
75
|
|
|
76
|
-
def list_market_place_sellers(
|
|
77
|
-
self,
|
|
78
|
-
include_inactive: bool = False,
|
|
79
|
-
include_main: bool = False,
|
|
80
|
-
) -> List[Seller]:
|
|
76
|
+
def list_market_place_sellers(self, include_inactive: bool = False) -> List[Seller]:
|
|
81
77
|
return [
|
|
82
78
|
seller
|
|
83
|
-
for seller in self.client.catalog.list_sellers().items
|
|
84
|
-
if seller["
|
|
85
|
-
and (include_main or seller["seller_id"] != "1")
|
|
86
|
-
and (include_inactive or seller["is_active"])
|
|
79
|
+
for seller in self.client.catalog.list_sellers(seller_type=1).items
|
|
80
|
+
if (include_inactive or seller["is_active"]) and seller["seller_id"] != "1"
|
|
87
81
|
]
|
|
88
82
|
|
|
89
83
|
def list_franchise_sellers(self, include_inactive: bool = False) -> List[Seller]:
|
|
90
84
|
return [
|
|
91
85
|
seller
|
|
92
|
-
for seller in self.client.catalog.list_sellers().items
|
|
93
|
-
if
|
|
86
|
+
for seller in self.client.catalog.list_sellers(seller_type=2).items
|
|
87
|
+
if include_inactive or seller["is_active"]
|
|
94
88
|
]
|
|
@@ -60,7 +60,7 @@ class OrdersAPI(BaseAPI):
|
|
|
60
60
|
|
|
61
61
|
if creation_date_from is not UNDEFINED or creation_date_to is not UNDEFINED:
|
|
62
62
|
if not isinstance(creation_date_from, datetime):
|
|
63
|
-
creation_date_from = years_ago(years=
|
|
63
|
+
creation_date_from = years_ago(years=2)
|
|
64
64
|
|
|
65
65
|
if not isinstance(creation_date_to, datetime):
|
|
66
66
|
creation_date_to = now() + timedelta(minutes=1)
|
|
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
|