feat: add view teller component (#554)

Fixes: #535
This commit is contained in:
Rishabh Verma
2020-01-12 00:33:52 +03:00
committed by Abhay Chawla
parent d4281628ea
commit d6edcf0554
9 changed files with 233 additions and 6 deletions
@@ -107,6 +107,22 @@ export class OrganizationService {
return this.http.get('/tellers');
}
/**
* @param {string} tellerId Teller ID of teller.
* @returns {Observable<any>} Teller.
*/
getTeller(tellerId: string): Observable<any> {
return this.http.get(`/tellers/${tellerId}`);
}
/**
* @param {string} tellerId Teller ID of teller to be deleted.
* @returns {Observable<any>}
*/
deleteTeller(tellerId: string): Observable<any> {
return this.http.delete(`/tellers/${tellerId}`);
}
/**
* @returns {Observable<any>} Payment Types data
*/