Recurring Deposit account deposit and withdrawal transactions (#1919)

Co-authored-by: Jose Alberto Hernandez <alberto@blue-daemon.local>
This commit is contained in:
José Alberto Hernández
2023-12-05 00:05:16 -06:00
committed by GitHub
co-authored by Jose Alberto Hernandez
parent a26c906d2c
commit dd7faffad7
8 changed files with 20 additions and 6 deletions
@@ -73,6 +73,9 @@ export class RecurringDepositsService {
*/
executeRecurringDepositsAccountCommand(accountId: string, command: string, data: any): Observable<any> {
const httpParams = new HttpParams().set('command', command);
if (command === 'deposit' || command === 'withdrawal') {
return this.http.post(`/recurringdepositaccounts/${accountId}/transactions`, data, { params: httpParams });
}
return this.http.post(`/recurringdepositaccounts/${accountId}`, data, { params: httpParams });
}