2024-12-25 21:06:42 +01:00
|
|
|
import type { Bank, Transaction } from "@/bank/sparebank1.ts"
|
2024-12-01 20:48:42 +01:00
|
|
|
|
|
|
|
export class BankStub implements Bank {
|
|
|
|
async transactionsPastDay(
|
|
|
|
_accountIds: ReadonlyArray<string> | string,
|
|
|
|
): Promise<ReadonlyArray<Transaction>> {
|
|
|
|
const someFields = {
|
2024-12-23 16:47:07 +01:00
|
|
|
date: "2019-08-20",
|
2024-12-01 20:48:42 +01:00
|
|
|
description: "Test transaction",
|
|
|
|
cleanedDescription: "Test transaction",
|
|
|
|
remoteAccountName: "Test account",
|
|
|
|
}
|
|
|
|
return [
|
|
|
|
{
|
|
|
|
id: "1",
|
|
|
|
amount: 100,
|
|
|
|
...someFields,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: "2",
|
|
|
|
amount: 200,
|
|
|
|
...someFields,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: "3",
|
|
|
|
amount: -50,
|
|
|
|
...someFields,
|
|
|
|
},
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|