feat: add view client charge overview (#681)

Fixes: #680
This commit is contained in:
Benura Abeywardena
2020-05-24 22:21:04 +05:30
committed by GitHub
parent 314d0fa977
commit 7a5069e590
9 changed files with 184 additions and 5 deletions
+8
View File
@@ -87,6 +87,14 @@ export class ClientsService {
return this.http.post(`/clients/${chargeData.clientId}/charges/${chargeData.resourceType}`, chargeData, { params: httpParams });
}
/**
* Get All Client Cgarges.
* @param clientId Client Id of the user.
*/
getAllClientCharges(clientId: string) {
return this.http.get(`/clients/${clientId}/charges`);
}
getClientSummary(clientId: string) {
const httpParams = new HttpParams().set('R_clientId', clientId)
.set('genericResultSet', 'false');