def instance_url(self): token = util.utf8(self.id) transfer = util.utf8(self.transfer) base = Transfer.class_url() cust_extn = quote_plus(transfer) extn = quote_plus(token) return "%s/%s/reversals/%s" % (base, cust_extn, extn)
def transfers(self, **params): params['recipient'] = self.id transfers = Transfer.list(self.api_key, **params) return transfers