vtexpy 0.0.0b20__py3-none-any.whl → 0.0.0b21__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 vtexpy might be problematic. Click here for more details.

vtex/_api/custom.py CHANGED
@@ -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["seller_type"] == 1 and seller["seller_id"] == "1":
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["seller_type"] == 1
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 seller["seller_type"] == 2 and (include_inactive or seller["is_active"])
86
+ for seller in self.client.catalog.list_sellers(seller_type=2).items
87
+ if include_inactive or seller["is_active"]
94
88
  ]
vtex/_api/orders.py CHANGED
@@ -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=4)
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)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vtexpy
3
- Version: 0.0.0b20
3
+ Version: 0.0.0b21
4
4
  Summary: Unofficial VTEX API's Python SDK
5
5
  Home-page: https://github.com/lvieirajr/vtex-python
6
6
  License: Apache
@@ -3,11 +3,11 @@ vtex/_api/__init__.py,sha256=V4n0SQrqCcVFWtm8J7jbmwIRI9mCSURwdD_8uHGueAI,353
3
3
  vtex/_api/base.py,sha256=e3_rADPPmA7gafPBhLEL7B8a7yJjScMvcXU4pke2gGM,6840
4
4
  vtex/_api/catalog.py,sha256=0nYieUaEe2marzyDVpa23-XgtIXciK7n9rw8UqI9MU4,4661
5
5
  vtex/_api/checkout.py,sha256=AMhSzyjAu5sZUpqevRorV706yXjNafqGDgbnq2wxVpg,1693
6
- vtex/_api/custom.py,sha256=0zSbV0CX4Fr-u3GdwCSRNOj7cz_zai36FnbK8KAxtT0,3067
6
+ vtex/_api/custom.py,sha256=oW4dkHr1xuqVD7oby7ca9Qlhfzq7AeAIzcuKQ3eiUdc,2910
7
7
  vtex/_api/license_manager.py,sha256=DRHCOBmDTY6E4pSjcfZckTJD87bip_SXgu85qCNwwE0,2691
8
8
  vtex/_api/logistics.py,sha256=wKSbV2BnDxfhj04d3yQ39errOwml3zNYlXkqcIE2fqI,5052
9
9
  vtex/_api/master_data.py,sha256=JdMA_dWpbSY7TAJY5MobmQ7OsnoofJA60Qbx8IA6pe0,2046
10
- vtex/_api/orders.py,sha256=w15rKdArlCoI7PXSbuoIaj1v9hGIxBUVgM_9JHq8wEo,5127
10
+ vtex/_api/orders.py,sha256=ea5ThbS1Offe9qrPJldM3g9uTPCw9KqdhR4XpIOj4y8,5127
11
11
  vtex/_api/payments_gateway.py,sha256=5XkxbXGI7OEQEaykL-y-3PKnfloy380fjUQ18Ctts9E,3804
12
12
  vtex/_api/promotions_and_taxes.py,sha256=yi9EDlOTop77_DqUF-E9SjblfgF4FyXyerA0_QZplJ4,1893
13
13
  vtex/_api/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -24,7 +24,7 @@ vtex/_types.py,sha256=xrqHzmrc0IhE5fc1aGf0StCm3BQbVFyk3LG4Hd7Wd2Q,631
24
24
  vtex/_utils.py,sha256=avSFE3v-HaUrof6JBzyspqA-eDrfOF5hnJT-KlRB0_8,3425
25
25
  vtex/_vtex.py,sha256=Vt-ERteT70vpXHpe2Q4VlkR5qpz_AS_Ni2OsS0hgDZs,2003
26
26
  vtex/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
- vtexpy-0.0.0b20.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
28
- vtexpy-0.0.0b20.dist-info/METADATA,sha256=UREByGg7FpyCreKLEQ9zv-8iqBrQMnh9JMLjO23lUyM,3453
29
- vtexpy-0.0.0b20.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
30
- vtexpy-0.0.0b20.dist-info/RECORD,,
27
+ vtexpy-0.0.0b21.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
28
+ vtexpy-0.0.0b21.dist-info/METADATA,sha256=Yn2Z4La165KUdplhuQY-jPPgvvoprMYPzVm5yFEW334,3453
29
+ vtexpy-0.0.0b21.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
30
+ vtexpy-0.0.0b21.dist-info/RECORD,,