Restore Interbank functionality

This commit is contained in:
Victor Romero
2025-03-28 00:06:59 -06:00
parent e776d5cee8
commit 9ddb79ba45
7 changed files with 79 additions and 3 deletions
@@ -318,7 +318,31 @@ export class MakeAccountTransfersComponent implements OnInit, AfterViewInit {
},
note: this.makeAccountTransferForm.controls.transferDescription.value
};
this.accountTransfersService.sendInterbankTransfer(JSON.stringify(payload)).subscribe(
(trnsfr) => {
if (trnsfr.systemMessage) {
this.isLoading = false;
this.router.navigate(['../../transactions'], { relativeTo: this.route });
}
},
(error) => {
this.isLoading = false;
}
);
}
searchAccountByNumber() {}
searchAccountByNumber() {
this.isLoading = true;
this.accountTransfersService
.getAccountByNumber(this.phoneAccount, this.accountTransferTemplateData.currency.code)
.subscribe(
(acc) => {
this.interbankTransferForm = true;
this.createMakeAccountInterbankTransferForm(acc);
},
(error) => {
this.isLoading = false;
}
);
}
}