vtexpy 0.0.0b11__py3-none-any.whl → 0.0.0b12__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.
vtex/_api/custom.py CHANGED
@@ -68,15 +68,18 @@ class CustomAPI(BaseAPI):
68
68
  def get_main_seller(self) -> str:
69
69
  return "1"
70
70
 
71
- def get_market_place_sellers(self) -> List[str]:
71
+ def get_market_place_sellers(self, include_inactive: bool = False) -> List[str]:
72
72
  return [
73
73
  seller["seller_id"]
74
- for seller in self.client.catalog.list_sellers(seller_type=1).items
75
- if seller["seller_id"] != "1"
74
+ for seller in self.client.catalog.list_sellers().items
75
+ if seller["seller_type"] == 1
76
+ and seller["seller_id"] != "1"
77
+ and (seller["is_active"] or include_inactive)
76
78
  ]
77
79
 
78
- def get_franchise_sellers(self) -> List[str]:
80
+ def get_franchise_sellers(self, include_inactive: bool = False) -> List[str]:
79
81
  return [
80
82
  seller["seller_id"]
81
- for seller in self.client.catalog.list_sellers(seller_type=2).items
83
+ for seller in self.client.catalog.list_sellers().items
84
+ if seller["seller_type"] == 2 and (seller["is_active"] or include_inactive)
82
85
  ]
vtex/_config.py CHANGED
@@ -71,7 +71,10 @@ class Config:
71
71
  retry_backoff_min: Union[float, int, UndefinedSentinel] = UNDEFINED,
72
72
  retry_backoff_max: Union[float, int, UndefinedSentinel] = UNDEFINED,
73
73
  retry_backoff_exponential: Union[
74
- bool, int, float, UndefinedSentinel
74
+ bool,
75
+ int,
76
+ float,
77
+ UndefinedSentinel,
75
78
  ] = UNDEFINED,
76
79
  retry_statuses: Union[List[int], UndefinedSentinel] = UNDEFINED,
77
80
  retry_logs: Union[bool, UndefinedSentinel] = UNDEFINED,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vtexpy
3
- Version: 0.0.0b11
3
+ Version: 0.0.0b12
4
4
  Summary: Unofficial Python SDK for VTEX API
5
5
  Home-page: https://github.com/lvieirajr/vtex-python
6
6
  License: MIT
@@ -3,7 +3,7 @@ vtex/_api/__init__.py,sha256=V4n0SQrqCcVFWtm8J7jbmwIRI9mCSURwdD_8uHGueAI,353
3
3
  vtex/_api/base.py,sha256=rux3pUNhz76B4dm6I1I9ojnuWKp8oR2EhnJ12anxnCU,5564
4
4
  vtex/_api/catalog.py,sha256=nqiAZ3W4IXMcXED2x0WwDToTihTHvdnldoahnQc85bw,4290
5
5
  vtex/_api/checkout.py,sha256=Q_PxFvWyWNzRJw-YJuHi2NSjRqQfQ-R2NIlYhXl3Dh0,1751
6
- vtex/_api/custom.py,sha256=py3Zj_mY3JZfhd3LDx1OzXe1WuRbgzeCcvlrlpizYDY,2472
6
+ vtex/_api/custom.py,sha256=QzxN1bst3Rnd4guy1e-9c8SmE7ILFu0fUpmAG7Ki0Dg,2699
7
7
  vtex/_api/license_manager.py,sha256=mYEUSYLkFdaBPEmhyNx2jUbhaHubcOwpqLG0SutoQMo,692
8
8
  vtex/_api/logistics.py,sha256=tXg9V2wIBqNJuUUTJEZx4esN9T66ZKVxPb7X_4hPbUU,4618
9
9
  vtex/_api/master_data.py,sha256=1q_OKY5Cf2Cfe1lcGI2hOplXZb-VSLFIO3jXReVHMVI,2088
@@ -12,7 +12,7 @@ vtex/_api/payments_gateway.py,sha256=d6Lr3D7Aj6HXXP2gX8TA961C75JQ1lelTmdb2Sjo5Os
12
12
  vtex/_api/promotions_and_taxes.py,sha256=S8Vp0tlZAyJITAXEnxPi8LZMjE4wl_aChDRV1YAqt34,1973
13
13
  vtex/_api/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  vtex/_api/types/license_manager.py,sha256=NhKr9pBoVAhp_hK4mAbXsjGM24oglf9ItWbQ7dgosZI,431
15
- vtex/_config.py,sha256=aK6efpIOamEF76GWfdII7XlKXNNrpmU9jNzTLgq7zpo,16799
15
+ vtex/_config.py,sha256=RmsQG_hILqEU5HHnnuLh--LxFhn8uSfrk-yPE-_WJhE,16836
16
16
  vtex/_constants.py,sha256=BV6BRgbYA6_jcp2t_SBXjXgVgg2-iDdJrYYXsXETU_8,1701
17
17
  vtex/_dto.py,sha256=gX_r0685dXRo916A-ZSw9vYfN7XcxFLxkaiIBRbxA6M,6092
18
18
  vtex/_exceptions.py,sha256=yglSMmPy4oYWU65oGY1XWA1CbmW1MJO8K-bGYIjoXeg,2127
@@ -22,7 +22,7 @@ vtex/_types.py,sha256=I_vca-7hqRiMXJOXMB40OVTlypXdujduf4LSwW-tGKk,333
22
22
  vtex/_utils.py,sha256=OdKGAyGks0sYo8z9ljVVUnWyPZttEluE4hWCrK0hcJA,3483
23
23
  vtex/_vtex.py,sha256=kz3SfwSW8rcRVSW_-5MXb8njpqWNknzA8JDYZu9-Vjo,3321
24
24
  vtex/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
- vtexpy-0.0.0b11.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
26
- vtexpy-0.0.0b11.dist-info/METADATA,sha256=iN_kTbEHbX7wW_MWLGYLWTIrDY1G5ol_XsQg6A-Io04,2956
27
- vtexpy-0.0.0b11.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
28
- vtexpy-0.0.0b11.dist-info/RECORD,,
25
+ vtexpy-0.0.0b12.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
26
+ vtexpy-0.0.0b12.dist-info/METADATA,sha256=7k75Qq19-nI_iQXAle04uCaxQCVtoq8Yb_UGK4n7Vxw,2956
27
+ vtexpy-0.0.0b12.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
28
+ vtexpy-0.0.0b12.dist-info/RECORD,,