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)
class Account(APIObject):
class Partner(APIObject):
@classmethod
def makeUrl(cls, id=None, parent=None):
if parent:
raise ValueError("Account should not have a parent")
raise ValueError("Partner should not have a parent")
if id:
raise NotImplementedError("There can be only one (Partner account)")
return "/"

Loading…
Cancel
Save