def webhook_data(self): return { 'piece': reverse_url('api:piece-detail', args=[self.piece.bitcoin_id]), 'share': reverse_url('api:ownership:sharepiece-detail', args=[self.id]), 'piece_id': self.piece.bitcoin_id, 'sharer': self.prev_owner.email, 'sharee': self.new_owner.email }
def webhook_data(self): return { 'piece': reverse_url('api:piece-detail', args=[self.piece.bitcoin_id]), 'loan': reverse_url('api:ownership:loanpiece-detail', args=[self.id]), 'piece_id': self.piece.bitcoin_id, 'owner': self.prev_owner.email, 'loanee': self.new_owner.email, 'confirm': reverse_url('api:ownership:loanpiece-confirm'), 'deny': reverse_url('api:ownership:loanpiece-deny') }
def webhook_data(self): return { 'edition': reverse_url('api:edition-detail', args=[self.edition.bitcoin_id]), 'share': reverse_url('api:ownership:share-detail', args=[self.id]), 'edition_id': self.edition.bitcoin_id, 'sharer': self.prev_owner.email, 'sharee': self.new_owner.email }
def webhook_data(self): return { 'edition': reverse_url('api:edition-detail', args=[self.edition.bitcoin_id]), 'transfer': reverse_url('api:ownership:ownershiptransfer-detail', args=[self.id]), 'edition_id': self.edition.bitcoin_id, 'previous_owner': self.prev_owner.email, 'new_owner': self.new_owner.email }
def webhook_data(self): return { 'edition': reverse_url('api:edition-detail', args=[self.edition.bitcoin_id]), 'loan': reverse_url('api:ownership:loan-detail', args=[self.id]), 'edition_id': self.edition.bitcoin_id, 'owner': self.prev_owner.email, 'loanee': self.new_owner.email, 'confirm': reverse_url('api:ownership:loan-confirm'), 'deny': reverse_url('api:ownership:loan-deny') }