feat (clients) : add, edit, enable, disable address

fixes: #259
This commit is contained in:
Jivjyot Singh
2019-12-01 23:20:51 +03:00
committed by Abhay Chawla
parent d18097107a
commit 6c7e8ad7ba
3 changed files with 167 additions and 4 deletions
+8
View File
@@ -151,4 +151,12 @@ export class ClientsService {
getClientAddressTemplate() {
return this.http.get(`/client/addresses/template`);
}
createClientAddress(clientId: string, addressTypeId: string, addressData: any) {
return this.http.post(`/client/${clientId}/addresses?type=${addressTypeId}`, addressData);
}
editClientAddress(clientId: string, addressTypeId: string, addressData: any) {
return this.http.put(`/client/${clientId}/addresses?type=${addressTypeId}`, addressData);
}
}