feat: add create shares account page (#877)

Fixes: #223
This commit is contained in:
Karan Takalkar
2020-06-15 21:18:14 +05:30
committed by GitHub
parent 5304774e26
commit d51bd6466a
26 changed files with 1103 additions and 5 deletions
+18
View File
@@ -23,4 +23,22 @@ export class SharesService {
return this.http.get(`/accounts/share/${accountId}`);
}
/**
* @param clientId Client Id assosciated with shares account.
* @returns {Observable<any>} Shares account template.
*/
getSharesAccountTemplate(clientId: string, productId?: string): Observable<any> {
let httpParams = new HttpParams().set('clientId', clientId);
httpParams = productId ? httpParams.set('productId', productId) : httpParams;
return this.http.get('/accounts/share/template', { params: httpParams });
}
/**
* @param {any} sharesAccount Shares Account
* @returns {Observable<any>}
*/
createSharesAccount(sharesAccount: any): Observable<any> {
return this.http.post('/accounts/share', sharesAccount);
}
}