Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
Wallet wallet1 = walletService.get("walletId1");
Wallet wallet2 = walletService.get("walletId2");

// deposit funds
Transaction transaction = new Transaction();
transaction.setAmount("5");
transaction.setCurrency("EUR");

walletService.deposit(wallet1.getId(), transaction);

// transfer funds from wallet1 to wallet2
transaction.setAmount("3");
transaction.setTransferTo(wallet2.getId());

walletService.transfer(wallet1.getId(), transaction);

// withdraw funds from the wallet
transaction.setAmount("2");

walletService.withdraw(wallet1.getId(), transaction);

Wallet Service Models

/wiki/spaces/TISpubdoc/pages/88277458

/wiki/spaces/TISpubdoc/pages/98631789

/wiki/spaces/TISpubdoc/pages/99057677