|
|
@ -230,11 +230,11 @@ class Customer(APIObject):
|
|
|
|
return "/customers/"
|
|
|
|
return "/customers/"
|
|
|
|
|
|
|
|
|
|
|
|
def endpoints(self):
|
|
|
|
def endpoints(self):
|
|
|
|
for c in self._api.getMany(Endpoint.makeUrl(parent=self):
|
|
|
|
for c in self._api.getMany(Endpoint.makeUrl(parent=self)):
|
|
|
|
yield Endpoint(self._api, data=c)
|
|
|
|
yield Endpoint(self._api, data=c)
|
|
|
|
|
|
|
|
|
|
|
|
def phonenumbers(self):
|
|
|
|
def phonenumbers(self):
|
|
|
|
for c in self._api.getMany(PhoneNumber.makeUrl(parent=self):
|
|
|
|
for c in self._api.getMany(PhoneNumber.makeUrl(parent=self)):
|
|
|
|
yield PhoneNumber(self._api, data=c)
|
|
|
|
yield PhoneNumber(self._api, data=c)
|
|
|
|
|
|
|
|
|
|
|
|
def calls(self, params=None):
|
|
|
|
def calls(self, params=None):
|
|
|
@ -242,39 +242,39 @@ class Customer(APIObject):
|
|
|
|
yield Call(self._api, data=c)
|
|
|
|
yield Call(self._api, data=c)
|
|
|
|
|
|
|
|
|
|
|
|
def callbundles(self):
|
|
|
|
def callbundles(self):
|
|
|
|
for c in self._api.getMany(CallBundle.makeUrl(parent=self):
|
|
|
|
for c in self._api.getMany(CallBundle.makeUrl(parent=self)):
|
|
|
|
yield CallBundle(self._api, data=c)
|
|
|
|
yield CallBundle(self._api, data=c)
|
|
|
|
|
|
|
|
|
|
|
|
def recordings(self):
|
|
|
|
def recordings(self):
|
|
|
|
for c in self._api.getMany(Recording.makeUrl(parent=self):
|
|
|
|
for c in self._api.getMany(Recording.makeUrl(parent=self)):
|
|
|
|
yield Recording(self._api, data=c)
|
|
|
|
yield Recording(self._api, data=c)
|
|
|
|
|
|
|
|
|
|
|
|
def phonebooks(self):
|
|
|
|
def phonebooks(self):
|
|
|
|
for c in self._api.getMany(PhoneBook.makeUrl(parent=self):
|
|
|
|
for c in self._api.getMany(PhoneBook.makeUrl(parent=self)):
|
|
|
|
yield PhoneBook(self._api, data=c)
|
|
|
|
yield PhoneBook(self._api, data=c)
|
|
|
|
|
|
|
|
|
|
|
|
def timeintervals(self):
|
|
|
|
def timeintervals(self):
|
|
|
|
for c in self._api.getMany(TimeInterval.makeUrl(parent=self):
|
|
|
|
for c in self._api.getMany(TimeInterval.makeUrl(parent=self)):
|
|
|
|
yield TimeInterval(self._api, data=c)
|
|
|
|
yield TimeInterval(self._api, data=c)
|
|
|
|
|
|
|
|
|
|
|
|
def smss(self):
|
|
|
|
def smss(self):
|
|
|
|
for c in self._api.getMany(Sms.makeUrl(parent=self):
|
|
|
|
for c in self._api.getMany(Sms.makeUrl(parent=self)):
|
|
|
|
yield Sms(self._api, data=c)
|
|
|
|
yield Sms(self._api, data=c)
|
|
|
|
|
|
|
|
|
|
|
|
def sounds(self):
|
|
|
|
def sounds(self):
|
|
|
|
for c in self._api.getMany(Sound.makeUrl(parent=self):
|
|
|
|
for c in self._api.getMany(Sound.makeUrl(parent=self)):
|
|
|
|
yield Sound(self._api, data=c)
|
|
|
|
yield Sound(self._api, data=c)
|
|
|
|
|
|
|
|
|
|
|
|
def outgoingcallerids(self):
|
|
|
|
def outgoingcallerids(self):
|
|
|
|
for c in self._api.getMany(OutgoingCallerId.makeUrl(parent=self):
|
|
|
|
for c in self._api.getMany(OutgoingCallerId.makeUrl(parent=self)):
|
|
|
|
yield OutgoingCallerId(self._api, data=c)
|
|
|
|
yield OutgoingCallerId(self._api, data=c)
|
|
|
|
|
|
|
|
|
|
|
|
def creditstatuses(self):
|
|
|
|
def creditstatuses(self):
|
|
|
|
for c in self._api.getMany(CreditStatus.makeUrl(parent=self):
|
|
|
|
for c in self._api.getMany(CreditStatus.makeUrl(parent=self)):
|
|
|
|
yield CreditStatus(self._api, data=c)
|
|
|
|
yield CreditStatus(self._api, data=c)
|
|
|
|
|
|
|
|
|
|
|
|
def linkedusers(self):
|
|
|
|
def linkedusers(self):
|
|
|
|
for c in self._api.getMany(LinkedUser.makeUrl(parent=self):
|
|
|
|
for c in self._api.getMany(LinkedUser.makeUrl(parent=self)):
|
|
|
|
yield LinkedUser(self._api, data=c)
|
|
|
|
yield LinkedUser(self._api, data=c)
|
|
|
|
|
|
|
|
|
|
|
|
def create(self, parent=None, **kwargs):
|
|
|
|
def create(self, parent=None, **kwargs):
|
|
|
|