Acquire.Accounting._refund module¶
-
class
Refund(credit_note=None, authorisation=None)[source]¶ Bases:
objectThis class holds the refund for a transaction. This is sent by the credited account or other authorised party to refund a transaction. Refunds must succeed, so potentially they can allow accounts to breach overdraft limits etc.
Return the authorisation for the refund
-
static
create(credit_notes, authorisation)[source]¶ Construct a series of refunds from the passed credit notes, each of which is authorised using the passed authorisation. This will refund all of the transactions passed in full
-
transaction()[source]¶ Return a transaction that corresponds to the real transfer of value back from the credit to debit accounts (remembering that the original debit account will be the new credit account, and the original credit account will be the new debit account).