feat: transfer to parent

This commit is contained in:
Abdalhameed Ahmad
2025-09-07 20:23:11 +03:00
parent 9b0e1791da
commit d768da70f2
6 changed files with 45 additions and 4 deletions

View File

@ -111,6 +111,11 @@ export class CardService {
}
}
async getIbanInformation(customerId: string) {
const account = await this.accountService.getAccountByCustomerId(customerId);
return account.iban;
}
@Transactional()
async transferToChild(juniorId: string, amount: number) {
const card = await this.getCardByCustomerId(juniorId);