added param "site" in inventories_upload

This commit is contained in:
Круглов Дмитрий 2019-08-15 11:52:15 +03:00
parent 361d2cc537
commit f9d81948bf
3 changed files with 16 additions and 3 deletions

View File

@ -461,11 +461,15 @@ class Client(Base):
return self.get('/store/inventories') return self.get('/store/inventories')
def inventories_upload(self, offers): def inventories_upload(self, offers, site=None):
""" """
:param offers: :param offers:
:param site:
:return: Response :return: Response
""" """
if site is not None:
self.parameters['site'] = site
self.parameters['offers'] = json.dumps(offers) self.parameters['offers'] = json.dumps(offers)
return self.post('/store/inventories/upload') return self.post('/store/inventories/upload')

View File

@ -522,11 +522,15 @@ class Client(Base):
return self.get('/store/inventories') return self.get('/store/inventories')
def inventories_upload(self, offers): def inventories_upload(self, offers, site=None):
""" """
:param offers: :param offers:
:param site:
:return: Response :return: Response
""" """
if site is not None:
self.parameters['site'] = site
self.parameters['offers'] = json.dumps(offers) self.parameters['offers'] = json.dumps(offers)
return self.post('/store/inventories/upload') return self.post('/store/inventories/upload')

View File

@ -899,13 +899,18 @@ class Client(Base):
return self.get('/store/inventories') return self.get('/store/inventories')
def inventories_upload(self, offers): def inventories_upload(self, offers, site=None):
""" """
:param offers: :param offers:
:param site:
:return: Response :return: Response
""" """
if site is not None:
self.parameters['site'] = site
self.parameters['offers'] = json.dumps(offers) self.parameters['offers'] = json.dumps(offers)
return self.post('/store/inventories/upload') return self.post('/store/inventories/upload')
def prices_upload(self, prices): def prices_upload(self, prices):