feat: shares account actions (approve) (#890)

Fixes: #889
This commit is contained in:
Karan Takalkar
2020-06-23 15:30:03 +05:30
committed by GitHub
parent 02e2155f15
commit 5701bd1ed0
14 changed files with 298 additions and 72 deletions
+11
View File
@@ -50,4 +50,15 @@ export class SharesService {
return this.http.put(`/accounts/share/${accountId}`, sharesAccount);
}
/**
* @param {string} accountId Shares Account Id
* @param {string} command Command
* @param {any} data Data
* @returns {Observable<any>} Shares data.
*/
executeSharesAccountCommand(accountId: string, command: string, data: any): Observable<any> {
const httpParams = new HttpParams().set('command', command);
return this.http.post(`/accounts/share/${accountId}`, data, { params: httpParams });
}
}