mirror of
https://github.com/retailcrm/api-client-python.git
synced 2024-11-22 04:56:04 +03:00
commit
09c6a496e3
5
retailcrm/versions/__init__.py
Normal file
5
retailcrm/versions/__init__.py
Normal file
@ -0,0 +1,5 @@
|
||||
# coding=utf-8
|
||||
|
||||
"""
|
||||
Init
|
||||
"""
|
@ -461,11 +461,15 @@ class Client(Base):
|
||||
|
||||
return self.get('/store/inventories')
|
||||
|
||||
def inventories_upload(self, offers):
|
||||
def inventories_upload(self, offers, site=None):
|
||||
"""
|
||||
:param offers:
|
||||
:param site:
|
||||
:return: Response
|
||||
"""
|
||||
if site is not None:
|
||||
self.parameters['site'] = site
|
||||
|
||||
self.parameters['offers'] = json.dumps(offers)
|
||||
|
||||
return self.post('/store/inventories/upload')
|
||||
|
@ -522,11 +522,15 @@ class Client(Base):
|
||||
|
||||
return self.get('/store/inventories')
|
||||
|
||||
def inventories_upload(self, offers):
|
||||
def inventories_upload(self, offers, site=None):
|
||||
"""
|
||||
:param offers:
|
||||
:param site:
|
||||
:return: Response
|
||||
"""
|
||||
if site is not None:
|
||||
self.parameters['site'] = site
|
||||
|
||||
self.parameters['offers'] = json.dumps(offers)
|
||||
|
||||
return self.post('/store/inventories/upload')
|
||||
|
@ -899,13 +899,18 @@ class Client(Base):
|
||||
|
||||
return self.get('/store/inventories')
|
||||
|
||||
def inventories_upload(self, offers):
|
||||
def inventories_upload(self, offers, site=None):
|
||||
"""
|
||||
:param offers:
|
||||
:param site:
|
||||
:return: Response
|
||||
"""
|
||||
if site is not None:
|
||||
self.parameters['site'] = site
|
||||
|
||||
self.parameters['offers'] = json.dumps(offers)
|
||||
|
||||
|
||||
return self.post('/store/inventories/upload')
|
||||
|
||||
def prices_upload(self, prices):
|
||||
|
Loading…
Reference in New Issue
Block a user