mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-11-26 16:44:54 +00:00
feat: transfer to parent
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user