mirror of
https://github.com/retailcrm/api-client-python.git
synced 2024-11-24 14:06:04 +03:00
added param "site" in inventories_upload
This commit is contained in:
parent
361d2cc537
commit
f9d81948bf
@ -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')
|
||||||
|
@ -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')
|
||||||
|
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user