feat: add edit payment type component (#560)

Fixes: #536
This commit is contained in:
Rishabh Verma
2020-01-14 19:15:16 +05:30
committed by Jivjyot Singh
parent b0b4a926eb
commit 51d622a9ff
9 changed files with 218 additions and 1 deletions
@@ -146,6 +146,22 @@ export class OrganizationService {
return this.http.delete(`/paymenttypes/${paymentTypeId}`);
}
/**
* @param {string} paymentTypeId Payment type ID of payment type.
* @returns {Observable<any>} Payment type.
*/
getPaymentType(paymentTypeId: string): Observable<any> {
return this.http.get(`/paymenttypes/${paymentTypeId}`);
}
/**
* @param {string} paymentTypeId Payment type ID of Payment Type to be edited.
* @returns {Observable<any>}
*/
updatePaymentType(paymentTypeId: string, paymentType: any): Observable<any> {
return this.http.put(`/paymenttypes/${paymentTypeId}`, paymentType);
}
/**
* @returns {Observable<any>} Password Preferences Template data
*/