Expand description
Functionsยง
- add_
user - Adds a
user
to theCCash
session described bysession
with the balance determined byamount
. This function requires thatadmin_user
to be the admin account. - change_
password - Changes the password for the
user
. This function modifiesuser
to use thenew_password
instead of the previous password in the case of a successful password change. This function requiresadmin_user
to be equal to the admin user of theCCash
instance. - close
- Saves and closes the
CCash
instance. This updatessession
to reflect that the connection to theCCash
instance has closed. This function requires thatadmin_user
to be the admin user for theCCash
instance. - delete_
user - Removes a user associated with the
username
on theCCash
instance described bysession
. This function requires thatadmin_user
to be the admin account for theCCash
instance. - impact_
balance - Impacts the balance of user with the given
username
by the amount described byamount
. This function requiresadmin_user
to be the admin account for theCCash
instance. - prune_
users - Prunes users with less than
amount
in balance or users with transactions older thantime
and less thanamount
in balance. This function requires thatadmin_user
be the admin user for theCCash
instance. - set_
balance - Sets the balance of a user with the given
username
to the amount described bynew_balance
. This function requiresadmin_user
to be the admin account for theCCash
instance. - verify_
account - Returns a boolean whether or not the
user
is an admin account.