rename Account to Partner

master
Marek Isalski 3 years ago
parent 167946385a
commit abfbda8867

@ -184,11 +184,11 @@ class APIObject(object):
return self.__class__.makeUrl(self._id, parent) return self.__class__.makeUrl(self._id, parent)
class Account(APIObject): class Partner(APIObject):
@classmethod @classmethod
def makeUrl(cls, id=None, parent=None): def makeUrl(cls, id=None, parent=None):
if parent: if parent:
raise ValueError("Account should not have a parent") raise ValueError("Partner should not have a parent")
if id: if id:
raise NotImplementedError("There can be only one (Partner account)") raise NotImplementedError("There can be only one (Partner account)")
return "/" return "/"

Loading…
Cancel
Save