...
Code Block | ||
---|---|---|
| ||
from trivoreid.models.wallet import Transaction wallet1 = api.wallet_service.get('walletID1') wallet2 = api.wallet_service.get('walletID2') # deposit funds transaction = Transaction() transaction.amount = 5 transaction.currency = 'EUR' api.wallet_service.deposit(wallet1.id, transaction) # transfer funds from wallet1 to wallet2 transaction.amount = 3 transaction.transferTo = wallet2.id api.wallet_service.transfer(wallet1.id, transaction) # withdraw funds from the wallet transaction.amount = 2 api.wallet_service.withdraw(wallet1.id, transaction) |
Wallet Service Models
/wiki/spaces/TISpubdoc/pages/88277458