Merge pull request #10 from KMityai/master

small fixes
This commit is contained in:
Alex Lushpai 2019-08-16 14:21:46 +03:00 committed by GitHub
commit 09c6a496e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 3 deletions

View File

@ -0,0 +1,5 @@
# coding=utf-8
"""
Init
"""

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):