Skip to content

Commit

Permalink
Added refund_parent method to get a refunds parent notification
Browse files Browse the repository at this point in the history
  • Loading branch information
Sureiya committed Nov 14, 2013
1 parent 4fc2024 commit 6d0867f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions django_clickbank/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,15 @@ def parent(self):
except:
return None

def refund_parent(self):
"""
Gets parent notification for a refund or chargeback
"""
try:
return Notification.objects.get(receipt=self.receipt, transaction_type='SALE')
except:
return None

def rebill_parent(self):
"""
Gets parent notification of a rebill
Expand Down

0 comments on commit 6d0867f

Please sign in to comment.