#42 wallet and plugged to the backend

This commit is contained in:
Dominic Villemure
2024-05-18 00:03:27 -04:00
parent 70d158705b
commit 81953890d8
3 changed files with 125 additions and 9 deletions

15
src/models/myUserModel.js Normal file
View File

@@ -0,0 +1,15 @@
import UserTransactionsModel from "@/models/userTransactionsModel.js";
export default class MyUserModel
{
id = "";
firstName = "";
lastName = "";
userName = "";
totalBalance = "";
userTransactions = new UserTransactionsModel()
static createFromApiResult(apiResult){
return Object.assign(new MyUserModel(), apiResult);
}
}

View File

@@ -0,0 +1,12 @@
export default class UserTransactionsModel
{
amount = "";
currency = "";
tipMessage = "";
created = "";
createFromApiResult(apiResult){
return Object.assign(apiResult, new UserTransactionsModel())
}
}