Acquire.Client._account module¶
-
class
Account(user=None, account_name=None, accounting_service=None, accounting_url=None)[source]¶ Bases:
objectThis is the client-side handle that is used to interact with an account on the service. If the account is created with a valid user login then you can perform tasks such as making payments, or issueing receipts or refunds. Otherwise, this is a simple interface that allows the account to be used as a receiver of value
-
guid()[source]¶ Return the globally unique UID of this account. This is a combination of the UID of the accounting service and the UID of the account
-
is_beyond_overdraft_limit(force_update=False)[source]¶ Return whether or not the current balance is beyond the overdraft limit
-
perform(transaction, credit_account, is_provisional=False)[source]¶ Tell this accounting service to apply the transfer described in ‘transaction’ from this account to the passed account. Note that the user must have logged into this account so that they have authorised this transaction. This returns the record of this transaction
-
receipt(credit_note, receipted_value=None)[source]¶ Receipt the passed credit note that contains a request to transfer value from another account to the passed account
-
receivable(force_update=False)[source]¶ Return the current total accounts receivable of this account
-
-
get_accounts(user, accounting_service=None, accounting_url=None)[source]¶ Return all of the accounts of the passed user. Note that the user must be authenticated to call this function
-
create_account(user, account_name, description=None, accounting_service=None, accounting_url=None)[source]¶ Create an account on the accounting service for the passed user, calling the account ‘account_name’ and optionally passing in an account description. Note that the user must have authorised the login