feat: add payment types component (#521)

Fixes: #163
This commit is contained in:
punwai
2019-12-24 12:04:46 +03:00
committed by Abhay Chawla
parent 34e1f4da36
commit dc61cba5d6
9 changed files with 260 additions and 3 deletions
@@ -67,4 +67,19 @@ export class OrganizationService {
return this.http.get('/tellers');
}
/**
* @returns {Observable<any>} Payment Types data
*/
getPaymentTypes(): Observable<any> {
return this.http.get('/paymenttypes');
}
/**
* @param {string} paymentTypeId Payment type ID of payment type to be deleted.
* @returns {Observable<any>}
*/
deletePaymentType(paymentTypeId: string): Observable<any> {
return this.http.delete(`/paymenttypes/${paymentTypeId}`);
}
}