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C;IACN,CAAC;IAED,mBAAmB,CAAC,IAAS;QAC3B,sDAAsD;QACtD,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,GAAG,gCAAgC,EAAE,IAAI,CAAC;aAChE,IAAI,CACH,iEAAU,CAAC,IAAI,CAAC,WAAW,CAAC,CAC7B,CAAC;IACN,CAAC;IAED,oBAAoB;QAClB,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,4BAA4B,CAAC;aACrD,IAAI,CACH,iEAAU,CAAC,IAAI,CAAC,WAAW,CAAC,CAC7B,CAAC;IACN,CAAC;IACD,oBAAoB,CAAC,IAAI;QAEvB,MAAM,OAAO,GAAG,IAAI,gEAAW,CAAC;YAC9B,cAAc,EAAE,kBAAkB;SACnC,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,GAAG,4BAA4B,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC;aACzE,IAAI,CACH,iEAAU,CAAC,IAAI,CAAC,WAAW,CAAC,CAC7B,CAAC;IACN,CAAC;IAED,WAAW,CAAC,KAAU;QACpB,IAAI,YAAY,GAAG,EAAE,CAAC;QACtB,IAAI,KAAK,CAAC,KAAK,YAAY,UAAU,EAAE;YACrC,wBAAwB;YACxB,YAAY,GAAG,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC;SACpC;aAAM;YACL,wBAAwB;YACxB,YAAY,GAAG,KAAK,CAAC,KAAK,CAAC;SAC5B;QACD,OAAO,uDAAU,CAAC,YAAY,CAAC,CAAC;IAClC,CAAC;;wFA9EU,oBAAoB;uGAApB,oBAAoB,WAApB,oBAAoB,mBAFnB,MAAM;6FAEP,oBAAoB;cAHhC,wDAAU;eAAC;gBACV,UAAU,EAAE,MAAM;aACnB","file":"common.js","sourcesContent":["import { HttpClient, HttpHeaders } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { catchError } from 'rxjs/operators';\r\nimport { throwError } from 'rxjs'\r\nimport { environment } from '../../environments/environment';\r\n\r\nconst URL = `${environment.apiUrl}`;\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class FeeManagementService {\r\n\r\n constructor(\r\n private http: HttpClient\r\n ) { }\r\n\r\n getCourseFeeDetails(data: any) {\r\n return this.http.post(`${URL}/FetchFeeSplitUpAndFeeFullDetails`, data)\r\n .pipe(\r\n catchError(this.handleError)\r\n );\r\n }\r\n getPartialPAymentInfo() {\r\n return this.http.get(`${URL}/partial_payment_status`)\r\n .pipe(\r\n catchError(this.handleError)\r\n );\r\n }\r\n\r\n\r\n paySplitFeeDetails(data: any) {\r\n // return this.http.post(`${URL}/InsertPayment`, data)\r\n return this.http.post(`${URL}/InsertPaymentWithPgName`, data)\r\n .pipe(\r\n catchError(this.handleError)\r\n );\r\n }\r\n\r\n tabbyPrescoreCheck(data: any) {\r\n return this.http.post(`${URL}/Tabby-Prescore-Check`, data)\r\n .pipe(\r\n catchError(this.handleError)\r\n );\r\n }\r\n\r\n tabbyPayment(data: any) {\r\n // return this.http.post(`${URL}/InsertPayment`, data)\r\n return this.http.post(`${URL}/InsertPaymentViaTabby`, data)\r\n .pipe(\r\n catchError(this.handleError)\r\n );\r\n }\r\n\r\n fetchSettingsValues(data: any) {\r\n // return this.http.post(`${URL}/InsertPayment`, data)\r\n return this.http.post(`${URL}/FetchSettingsValuesBasedonKey`, data)\r\n .pipe(\r\n catchError(this.handleError)\r\n );\r\n }\r\n\r\n getAllPaymentMethods() {\r\n return this.http.get(`${URL}/Fetch-All-Payment-Methods`)\r\n .pipe(\r\n catchError(this.handleError)\r\n );\r\n }\r\n getTabbySettingsKeys(data) {\r\n\r\n const headers = new HttpHeaders({\r\n 'Content-Type': 'application/json'\r\n });\r\n return this.http.post(`${URL}/Fetch-Tabby-Settings-Keys`, data, { headers })\r\n .pipe(\r\n catchError(this.handleError)\r\n );\r\n }\r\n\r\n handleError(error: any) {\r\n let errorMessage = '';\r\n if (error.error instanceof ErrorEvent) {\r\n // Get client-side error\r\n errorMessage = error.error.message;\r\n } else {\r\n // Get server-side error\r\n errorMessage = error.error;\r\n }\r\n return throwError(errorMessage);\r\n }\r\n\r\n\r\n}\r\n"],"sourceRoot":"webpack:///"}