feat: add create payment type component (#543)

Fixes: #164
This commit is contained in:
Rishabh Verma
2020-01-04 20:14:58 +03:00
committed by Abhay Chawla
parent 8fc6dba1a9
commit 15ff035d13
8 changed files with 172 additions and 7 deletions
@@ -90,6 +90,14 @@ export class OrganizationService {
return this.http.get('/paymenttypes');
}
/**
* @param {any} paymentType Payment type to be created.
* @returns {Observable<any>}
*/
createPaymentType(paymentType: any): Observable<any> {
return this.http.post('/paymenttypes', paymentType);
}
/**
* @param {string} paymentTypeId Payment type ID of payment type to be deleted.
* @returns {Observable<any>}