feat: client actions (add-charge) (#1105)

Fixes: #1104
This commit is contained in:
Karan Takalkar
2020-07-15 14:07:35 +05:30
committed by GitHub
parent 7616938e20
commit fdbde1336e
11 changed files with 285 additions and 2 deletions
+13
View File
@@ -224,6 +224,19 @@ export class ClientsService {
return this.http.get(`/clients/${clientId}/transferproposaldate`);
}
getClientChargeTemplate(clientId: any): Observable<any> {
return this.http.get(`/clients/${clientId}/charges/template`);
}
getChargeAndTemplate(chargeId: any): Observable<any> {
const httpParams = new HttpParams().set('template', 'true');
return this.http.get(`/charges/${chargeId}`, { params: httpParams });
}
createClientCharge(clientId: any, charge: any) {
return this.http.post(`/clients/${clientId}/charges`, charge);
}
/**
* @returns {Observable<any>} Offices data
*/