feat:add waive flag and payment functions (#694)

Fixes: #691
This commit is contained in:
Benura Abeywardena
2020-05-13 10:17:08 +05:30
committed by GitHub
parent edcbc5b380
commit 0790ee893e
3 changed files with 39 additions and 9 deletions
+8
View File
@@ -67,6 +67,14 @@ export class ClientsService {
return this.http.get(`/clients/${clientId}/charges`, { params: httpParams });
}
/**
* @param chargeData Charge Data to be waived.
*/
waiveClientCharge(chargeData: any) {
const httpParams = new HttpParams().set('command', 'waive');
return this.http.post(`/clients/${chargeData.clientId}/charges/${chargeData.resourceType}`, chargeData, { params: httpParams });
}
getClientSummary(clientId: string) {
const httpParams = new HttpParams().set('R_clientId', clientId)
.set('genericResultSet', 'false');