Recurring Deposit account deposit and withdrawal transactions (#1919)
Co-authored-by: Jose Alberto Hernandez <alberto@blue-daemon.local>
This commit is contained in:
co-authored by
Jose Alberto Hernandez
parent
a26c906d2c
commit
dd7faffad7
@@ -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 });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user