{ "version": 3, "sources": ["src/app/ui/repositories/pbm/network-financial-statment-payment.repository.ts", "src/app/ui/models/domains/health/healthStatus.ts", "src/app/ui/models/domains/health/healthItem.model.ts", "src/app/ui/repositories/parsers/health.parser.ts", "src/app/ui/models/domains/reports/report.ts", "src/app/ui/repositories/parsers/powerbi-report-parser.ts", "src/app/ui/repositories/parsers/pbm/benefit/network.parser.ts", "src/app/ui/models/domains/pbm/Benefit/subsidy-configuration.ts", "src/app/ui/models/domains/pbm/Benefit/subsidy-configuration-cluster.ts", "src/app/ui/repositories/parsers/pbm/benefit/subsidy-configuration.parser.ts", "src/app/ui/models/domains/pbm/network-financial-statement/pdv-cycle-item.ts", "src/app/ui/models/domains/pbm/network-financial-statement/pdv-financial-statement.ts", "src/app/ui/repositories/parsers/pbm/network/network-parse-functions.ts", "src/app/ui/repositories/parsers/pbm/network/search-network-financial-statement.parse.ts", "src/app/ui/repositories/parsers/pbm/network-term/network-term-parse.functions.ts", "src/app/ui/components/pbm/network-term/search-network-term/network-term-search-result.ts", "src/app/ui/components/pbm/network-term/search-network-term/network-term-view.ts", "src/app/ui/models/domains/pbm/network-term/network-accept-term.ts", "src/app/ui/models/domains/pbm/network-term/email-type.enum.ts", "src/app/ui/models/domains/pbm/network-term/telephone-type.enum.ts", "src/app/ui/models/domains/pbm/network-term/network-form-term.ts", "src/app/ui/models/domains/pbm/network-term/network-term.ts", "src/app/ui/repositories/parsers/pbm/network-term/network-term.parser.ts", "src/app/ui/repositories/parsers/pbm/network-term/network-term-form.parser.ts", "src/app/ui/repositories/parsers/pbm/network-term/network-accept-term.parser.ts", "src/app/ui/repositories/parsers/pbm/network-term/networks.parser.ts", "src/app/ui/models/domains/pbm/transactional-management/medical-prescription-document-key.ts", "src/app/ui/models/domains/pbm/transactional-management/practitioner-registration.ts", "src/app/ui/models/domains/pbm/transactional-management/medical-prescription.ts", "src/app/ui/models/domains/pbm/transactional-management/medical-prescription-status.ts", "src/app/ui/models/domains/pbm/transactional-management/product-item.ts", "src/app/ui/models/domains/pbm/transactional-management/transactional-management-indicators.ts", "src/app/ui/models/domains/pbm/transactional-management/monitor-status.ts", "src/app/ui/models/domains/pbm/transactional-management/transactional-management-sale.ts", "src/app/ui/models/domains/pbm/transactional-management/transactional-management.result.ts", "src/app/ui/repositories/parsers/pbm/transaction-management/transaction-management-parse-functions.ts", "src/app/ui/repositories/parsers/pbm/transaction-management/indicators.parser.ts", "src/app/ui/repositories/parsers/pbm/transaction-management/transaction-management-result.parser.ts", "src/app/ui/models/domains/pbm/network-term/network-external-configuration.model.ts", "src/app/ui/repositories/parsers/pbm/network/network-external-configuration.parser.ts", "src/app/ui/repositories/parsers/parser.module.ts", "src/app/ui/gateways/gateway.module.ts", "src/app/ui/repositories/health.repository.ts", "src/app/ui/services/observers/networks-observer.service.ts", "src/app/ui/repositories/pbm/network.repository.ts", "src/app/ui/repositories/pbm/product-category.repository.ts", "src/app/ui/repositories/pbm/network-term.repository.ts", "src/app/ui/repositories/pbm/transaction-management.repository.ts", "src/app/ui/repositories/pbm/drugstore-tests.repository.ts", "src/app/ui/models/domains/pbm/audit/audit-sale/audit-sale.ts", "src/app/ui/models/domains/pbm/audit/audit-sale/audit-sale-details.ts", "src/app/ui/models/domains/pbm/financial-satatement/unique-sequential-number.ts", "src/app/ui/repositories/parsers/pbm/audit/audit-sale-pageable-result-parse-functions.ts", "src/app/ui/repositories/parsers/pbm/audit/audit-sale-pageable-result.parser.ts", "src/app/ui/repositories/pbm/audit-sale.repository.ts", "src/app/ui/repositories/repository.module.ts", "src/app/ui/models/domains/credentials/service-credentials.model.ts", "src/app/ui/services/guards/processors/default-auth-processor.ts", "src/app/ui/services/guards/processors/auth-processor-factory.ts", "src/app/ui/services/dialog.service.ts", "src/app/ui/services/network.service.ts", "src/app/ui/services/service.module.ts"], "sourcesContent": ["import { Injectable } from \"@angular/core\";\r\nimport { RemoteGatewayFactory } from \"../../gateways/remote-gateway-factory\";\r\nimport { ExportOrderKey } from \"../../models/domains/pbm/exports/export-order-key\";\r\nimport { BackendUrl } from \"../../models/domains/urls/back-end.url\";\r\n\r\nexport interface IParamsNetworkFinancialstatmentPayment {\r\n StartDate: string;\r\n EndDate: string;\r\n CompanyFiscalNumber?: { Value: string };\r\n}\r\n\r\n@Injectable()\r\nexport class NetworkFinancialstatmentPaymentRepository {\r\n constructor(private remoteGatewayFactory: RemoteGatewayFactory) {}\r\n\r\n async analytic(params: IParamsNetworkFinancialstatmentPayment): Promise {\r\n const headers = {\r\n \"Content-Type\": \"application/json\",\r\n };\r\n\r\n try {\r\n const remoteGateway = this.remoteGatewayFactory.createDefaultRemoteGateway();\r\n const backEndUrl = new BackendUrl(\"/api/pbm/adm/network/financial-statements-analytical\");\r\n\r\n const data: any = await remoteGateway.postWithHeaders(backEndUrl, params, headers);\r\n const exportOrderKey = new ExportOrderKey(data.toString());\r\n return exportOrderKey;\r\n } catch (error) {\r\n return await Promise.reject(error);\r\n }\r\n }\r\n\r\n async synthetic(params: IParamsNetworkFinancialstatmentPayment): Promise {\r\n const headers = {\r\n \"Content-Type\": \"application/json\",\r\n };\r\n\r\n try {\r\n const remoteGateway = this.remoteGatewayFactory.createDefaultRemoteGateway();\r\n const backEndUrl = new BackendUrl(\"/api/pbm/adm/network/financial-statements-Synthetic\");\r\n\r\n const data: any = await remoteGateway.postWithHeaders(backEndUrl, params, headers);\r\n const exportOrderKey = new ExportOrderKey(data.toString());\r\n return exportOrderKey;\r\n } catch (error) {\r\n return await Promise.reject(error);\r\n }\r\n }\r\n}\r\n", "export enum HealthStatus {\r\n Healthy = \"healthy\",\r\n Unhealthy = \"unhealthy\",\r\n}\r\n", "import { HealthStatus } from \"./healthStatus\";\r\nimport { HealthService } from \"src/app/ui/services/health.service\";\r\nimport { IGridColumnDisplayable } from \"../grids/displayable-grid-column\";\r\n\r\nexport class HealthItem implements IGridColumnDisplayable {\r\n constructor() {}\r\n\r\n private name: string;\r\n private description: string;\r\n private status: HealthStatus;\r\n private error: string;\r\n\r\n getName(): string {\r\n return this.name;\r\n }\r\n\r\n getDescription(): string {\r\n return this.description;\r\n }\r\n\r\n getStatus(): HealthStatus {\r\n return this.status;\r\n }\r\n\r\n getError(): string {\r\n return this.error;\r\n }\r\n\r\n setName(name: string): void {\r\n this.name = name;\r\n }\r\n\r\n setDescription(description: string): void {\r\n this.description = description;\r\n }\r\n\r\n setStatus(status: HealthStatus): void {\r\n this.status = status;\r\n }\r\n\r\n setError(error: string): void {\r\n this.error = error;\r\n }\r\n\r\n canDisplay(): boolean {\r\n return this.getStatus() === HealthStatus.Unhealthy;\r\n }\r\n}\r\n", "import { Injectable } from \"@angular/core\";\r\nimport { AbstractParser } from \"./parser\";\r\nimport { HealthItem } from \"../../models/domains/health/healthItem.model\";\r\nimport { HealthStatus } from \"../../models/domains/health/healthStatus\";\r\n\r\n@Injectable()\r\nexport class HealthParser extends AbstractParser> {\r\n parse(payload: any): HealthItem[] {\r\n let items = new Array();\r\n let unhealthy = payload[\"unhealthy\"];\r\n let healthy = payload[\"healthy\"];\r\n\r\n if (unhealthy) {\r\n Object.keys(unhealthy).forEach((key) => {\r\n var item: HealthItem = new HealthItem();\r\n item.setName(key.toString());\r\n item.setError(unhealthy[key]);\r\n item.setStatus(HealthStatus.Unhealthy);\r\n item.setDescription(\"Clique no ícone ao lado para exibir a descrição do erro.\");\r\n items.push(item);\r\n });\r\n }\r\n\r\n if (healthy) {\r\n Object.keys(healthy).forEach((key) => {\r\n var item: HealthItem = new HealthItem();\r\n item.setName(key.toString());\r\n item.setDescription(healthy[key]);\r\n item.setStatus(HealthStatus.Healthy);\r\n items.push(item);\r\n });\r\n }\r\n return items;\r\n }\r\n}\r\n", "export enum ReportType {\r\n PowerBi,\r\n}\r\n\r\nexport interface IReportConfiguration {\r\n getReportType(): ReportType;\r\n}\r\n\r\nexport interface IReport {}\r\n\r\nexport class PowerBiReport implements IReport {\r\n static emptyReport(): PowerBiReport {\r\n return new PowerBiReport(null, null, null);\r\n }\r\n\r\n constructor(private id: string, private embedUrl: string, private embedToken: EmbedToken) {}\r\n\r\n private isEffectiveIdentityRequired: boolean;\r\n private isEffectiveIdentityRolesRequired: boolean;\r\n\r\n getId(): string {\r\n return this.id;\r\n }\r\n\r\n getEmbedUrl(): string {\r\n return this.embedUrl;\r\n }\r\n\r\n getEmbedToken(): EmbedToken {\r\n return this.embedToken;\r\n }\r\n}\r\n\r\nexport class EmbedToken {\r\n constructor(private token: string, private tokenId: string, private expiration: string) {}\r\n\r\n getToken(): string {\r\n return this.token;\r\n }\r\n\r\n getTokenId(): string {\r\n return this.tokenId;\r\n }\r\n\r\n getExpiration(): string {\r\n return this.expiration;\r\n }\r\n}\r\n\r\nexport class PowerBiReportConfiguration implements IReportConfiguration {\r\n constructor(private workspaceId: string, private reportId: string, private role: string) {}\r\n\r\n getReportType(): ReportType {\r\n return ReportType.PowerBi;\r\n }\r\n\r\n getWorkspaceId(): string {\r\n return this.workspaceId;\r\n }\r\n\r\n getReportId(): string {\r\n return this.reportId;\r\n }\r\n\r\n getRole(): string {\r\n return this.role;\r\n }\r\n}\r\n", "import { Injectable } from \"@angular/core\";\r\nimport { AbstractParser } from \"./parser\";\r\nimport { EmbedToken, PowerBiReport } from \"../../models/domains/reports/report\";\r\n\r\n@Injectable()\r\nexport class PowerBiReportParser extends AbstractParser {\r\n parse(data: any): PowerBiReport {\r\n let embedToken = new EmbedToken(data.EmbedToken.token, data.EmbedToken.tokenId, data.EmbedToken.expiration);\r\n let report = new PowerBiReport(data.Id, data.EmbedUrl, embedToken);\r\n return report;\r\n }\r\n}\r\n", "import { ProductSubtype } from \"src/app/ui/models/domains/pbm/Benefit/product-subtype\";\r\nimport { ProductType } from \"src/app/ui/models/domains/pbm/Benefit/product-type\";\r\nimport { Injectable } from \"@angular/core\";\r\nimport { Network, NetworkComercialProduct } from \"src/app/ui/models/domains/pbm/Benefit/network\";\r\nimport { AbstractParser } from \"../../parser\";\r\n\r\n@Injectable()\r\nexport class NetworkParser extends AbstractParser {\r\n parse(payload: any): Network[] {\r\n let networkList: Network[] = [];\r\n if (payload && payload.Data) {\r\n networkList = payload.Data.map((item) => {\r\n const network = new Network();\r\n network.setNetworkInfoKey(item.NetworkInfoKey);\r\n network.setFiscalNumber(item.FiscalNumber.Value);\r\n network.setCorporateName(item.CorporateName);\r\n network.setTradingName(item.TradingName);\r\n network.setDisplayName(item.DisplayName);\r\n network.setNetworkComercialProductList(this.parseNetworkComercialProducts(item.NetworkComercialProducts));\r\n return network;\r\n });\r\n }\r\n return networkList;\r\n }\r\n\r\n parseUnicNetwork(payload: any): Network {\r\n const network = new Network();\r\n if (payload) {\r\n network.setNetworkInfoKey(payload.NetworkInfoKey);\r\n network.setFiscalNumber(typeof payload.FiscalNumber === \"string\" ? payload.FiscalNumber : payload.FiscalNumber.Value);\r\n network.setCorporateName(payload.CorporateName || payload.Name);\r\n network.setTradingName(payload.TradingName);\r\n network.setDisplayName(payload.DisplayName);\r\n network.setNetworkComercialProductList(this.parseNetworkComercialProducts(payload.NetworkComercialProducts));\r\n return network;\r\n }\r\n return network;\r\n }\r\n\r\n private parseNetworkComercialProducts(payload: any): NetworkComercialProduct[] {\r\n let networkComercialProductList = new Array();\r\n if (payload) {\r\n networkComercialProductList = payload.map((item) => {\r\n const networkComercialProduct = new NetworkComercialProduct();\r\n networkComercialProduct.setDiscount(item.Discount);\r\n networkComercialProduct.setProductType(this.parseProductType(item.ProductType));\r\n networkComercialProduct.setProductSubtype(this.parseProductSubType(item.ProductSubType));\r\n return networkComercialProduct;\r\n });\r\n }\r\n return networkComercialProductList;\r\n }\r\n\r\n private parseProductType(payload: any): ProductType {\r\n const productType = new ProductType();\r\n productType.setKey(payload.Key);\r\n productType.setValue(payload.Value);\r\n return productType;\r\n }\r\n\r\n private parseProductSubType(payload: any): ProductSubtype {\r\n const productSubType = new ProductSubtype();\r\n productSubType.setKey(payload.Key);\r\n productSubType.setValue(payload.Value);\r\n return productSubType;\r\n }\r\n}\r\n", "import { ProductType } from \"./product-type\";\r\n\r\nexport class SubsidyConfiguration {\r\n private productType: ProductType;\r\n private remainingPurchasePaymentMethod: number;\r\n private subsidyLimit: number;\r\n private allowSubsidyLimitExceed: boolean;\r\n private allowPurchaseUseReceipt: boolean;\r\n\r\n setProductType(value: ProductType): void {\r\n this.productType = value;\r\n }\r\n getProductType(): ProductType {\r\n return this.productType;\r\n }\r\n\r\n setRemainingPurchasePaymentMethod(value: number): void {\r\n this.remainingPurchasePaymentMethod = value;\r\n }\r\n getRemainingPurchasePaymentMethod(): number {\r\n return this.remainingPurchasePaymentMethod;\r\n }\r\n\r\n setSubsidyLimit(value: number): void {\r\n this.subsidyLimit = value;\r\n }\r\n getSubsidyLimit(): number {\r\n return this.subsidyLimit;\r\n }\r\n\r\n setAllowSubsidyLimitExceed(value: boolean): void {\r\n this.allowSubsidyLimitExceed = value;\r\n }\r\n getAllowSubsidyLimitExceed(): boolean {\r\n return this.allowSubsidyLimitExceed;\r\n }\r\n\r\n setAllowPurchaseUseReceipt(value: boolean): void {\r\n this.allowPurchaseUseReceipt = value;\r\n }\r\n getAllowPurchaseUseReceipt(): boolean {\r\n return this.allowPurchaseUseReceipt;\r\n }\r\n}\r\n", "import { SubsidyConfiguration } from \"./subsidy-configuration\";\r\n\r\nexport class SubsidyConfigurationCluster {\r\n private key: string;\r\n private companyFiscalNumber: string;\r\n private subsidyMappingConfiguration: Array;\r\n\r\n setKey(key: string): void {\r\n this.key = key;\r\n }\r\n\r\n getKey(): string {\r\n return this.key;\r\n }\r\n\r\n setCompanyFiscalNumber(value: string): void {\r\n this.companyFiscalNumber = value;\r\n }\r\n getCompanyFiscalNumber(): string {\r\n return this.companyFiscalNumber;\r\n }\r\n\r\n setSubsidyMappingConfiguration(value: Array): void {\r\n this.subsidyMappingConfiguration = value;\r\n }\r\n getSubsidyMappingConfiguration(): Array {\r\n return this.subsidyMappingConfiguration;\r\n }\r\n\r\n isNew(): boolean {\r\n return !this.key;\r\n }\r\n}\r\n", "import { SubsidyConfiguration } from \"./../../../../models/domains/pbm/Benefit/subsidy-configuration\";\r\nimport { AbstractParser } from \"../../parser\";\r\nimport { SubsidyConfigurationCluster } from \"src/app/ui/models/domains/pbm/Benefit/subsidy-configuration-cluster\";\r\nimport { ProductType } from \"src/app/ui/models/domains/pbm/Benefit/product-type\";\r\n\r\nexport class SubsidyConfigurationParser extends AbstractParser {\r\n parse(payload: any): SubsidyConfigurationCluster {\r\n const subsidyConfiguration = new SubsidyConfigurationCluster();\r\n subsidyConfiguration.setKey(payload.Key);\r\n subsidyConfiguration.setCompanyFiscalNumber(payload.CompanyFiscalNumber);\r\n subsidyConfiguration.setSubsidyMappingConfiguration(this.subsidyMappingConfigurationParser(payload.SubsidyMappingConfiguration));\r\n return subsidyConfiguration;\r\n }\r\n\r\n private subsidyMappingConfigurationParser(payload: any): Array {\r\n const subsidyConfigurationList: Array = [];\r\n payload.forEach((configuration) => {\r\n const subsidyConfiguration = new SubsidyConfiguration();\r\n subsidyConfiguration.setProductType(this.addProductType(configuration.ProductType));\r\n subsidyConfiguration.setRemainingPurchasePaymentMethod(configuration.RemainingPurchasePaymentMethod);\r\n subsidyConfiguration.setSubsidyLimit(configuration.SubsidyLimit);\r\n subsidyConfiguration.setAllowSubsidyLimitExceed(configuration.AllowSubsidyLimitExceed);\r\n subsidyConfiguration.setAllowPurchaseUseReceipt(configuration.AllowPurchaseUseReceipt);\r\n subsidyConfigurationList.push(subsidyConfiguration);\r\n });\r\n return subsidyConfigurationList;\r\n }\r\n\r\n private addProductType(key: string): ProductType {\r\n const productType = new ProductType();\r\n productType.setKey(key);\r\n productType.setValue(null);\r\n return productType;\r\n }\r\n}\r\n", "import moment from \"moment\";\r\n\r\nexport class PdvCycleItem {\r\n constructor(\r\n private readonly referenceMonth: number,\r\n private readonly startPeriod: string,\r\n private readonly endPeriod: string,\r\n private readonly paymentDate: string,\r\n private readonly totalPaymentValue: number,\r\n private readonly totalCardValue: number,\r\n private readonly totalAdministrativeTax: number,\r\n ) {}\r\n\r\n public getReferenceMonth(): number {\r\n return this.referenceMonth;\r\n }\r\n\r\n public getStartPeriod(): string {\r\n return this.startPeriod;\r\n }\r\n\r\n public getEndPeriod(): string {\r\n return this.endPeriod;\r\n }\r\n\r\n public getPaymentDate(): string {\r\n return this.paymentDate;\r\n }\r\n\r\n public getTotalCardValue(): number {\r\n return this.totalCardValue;\r\n }\r\n\r\n public getTotalAdministrativeTax(): number {\r\n return this.totalAdministrativeTax;\r\n }\r\n\r\n public getTotalPaymentValue(): number {\r\n return this.totalPaymentValue;\r\n }\r\n\r\n public getReferenceMonthName(): string {\r\n return moment.months(this.referenceMonth - 1);\r\n }\r\n\r\n public getSellingCycle(): string {\r\n const options = { year: 'numeric' as const, month: 'numeric' as const, day: 'numeric' as const };\r\n\r\n const startDate = new Date(this.startPeriod).toLocaleString(\"pt-BR\", options);\r\n const endDate = new Date(this.endPeriod).toLocaleString(\"pt-BR\", options);\r\n const sellingCycle = `(${startDate} a ${endDate})`;\r\n\r\n return sellingCycle;\r\n }\r\n\r\n public getSanitizedPaymentDate(): string {\r\n const options = { year: 'numeric' as const, month: 'numeric' as const, day: 'numeric' as const };\r\n return new Date(this.paymentDate).toLocaleString(\"pt-BR\", options);\r\n }\r\n}\r\n", "import { Network } from \"../Benefit/network\";\r\nimport { PdvCycleItem } from \"./pdv-cycle-item\";\r\n\r\nexport class PdvFinancialStatement {\r\n constructor(private readonly network: Network, private readonly pdvCycleItemList: PdvCycleItem[]) {}\r\n\r\n public getNetwork(): Network {\r\n return this.network;\r\n }\r\n\r\n public getPdvCycleItemList(): PdvCycleItem[] {\r\n return this.pdvCycleItemList;\r\n }\r\n}\r\n", "import { Network } from \"src/app/ui/models/domains/pbm/Benefit/network\";\r\nimport { PdvCycleItem } from \"src/app/ui/models/domains/pbm/network-financial-statement/pdv-cycle-item\";\r\nimport { PdvFinancialStatement } from \"src/app/ui/models/domains/pbm/network-financial-statement/pdv-financial-statement\";\r\n\r\nexport function parsePdvFinancialStatementList(payload: any): PdvFinancialStatement[] {\r\n return payload.map((item) => {\r\n return new PdvFinancialStatement(parseNetwork(item.Network), parsePdvCycleItemList(item.Items));\r\n });\r\n}\r\n\r\nexport function parseNetwork(payload: any): Network {\r\n const network = new Network();\r\n network.setCorporateName(payload.CorporateName);\r\n network.setFiscalNumber(payload.FiscalNumber.Value);\r\n network.setTradingName(payload.TradingName);\r\n return network;\r\n}\r\n\r\nexport function parsePdvCycleItemList(payload: any): PdvCycleItem[] {\r\n return payload.map((item) => {\r\n return new PdvCycleItem(\r\n item.ReferenceMonth,\r\n item.Period.Start,\r\n item.Period.End,\r\n item.PaymentDate,\r\n item.TotalPaymentValue,\r\n item.TotalCardValue,\r\n item.TotalAdministrativeTax,\r\n );\r\n });\r\n}\r\n", "import { Injectable } from \"@angular/core\";\r\nimport { PageableResult } from \"src/app/ui/models/domains/paginator/pageable-result\";\r\nimport { AbstractParser } from \"../../parser\";\r\nimport { parsePdvFinancialStatementList } from \"./network-parse-functions\";\r\n\r\n@Injectable()\r\nexport class SearchNetworkFinancialStatementsParse extends AbstractParser {\r\n parse(payload: any): PageableResult {\r\n const pageableResult = new PageableResult();\r\n pageableResult.setStart(payload.Start);\r\n pageableResult.setEnd(payload.TotalPerPages);\r\n pageableResult.setTotalItems(payload.Total);\r\n pageableResult.setItems(parsePdvFinancialStatementList(payload.Data));\r\n return pageableResult;\r\n }\r\n}\r\n", "import moment from \"moment\";\r\nimport { NetworkTermSearchResult } from \"src/app/ui/components/pbm/network-term/search-network-term/network-term-search-result\";\r\nimport { NetworkCompanyInfo, NetworkTermView } from \"src/app/ui/components/pbm/network-term/search-network-term/network-term-view\";\r\nimport { Address } from \"src/app/ui/models/domains/pbm/companies/address\";\r\nimport { FiscalNumber } from \"src/app/ui/models/domains/pbm/fiscal-number\";\r\nimport { NetworkAcceptTerm } from \"src/app/ui/models/domains/pbm/network-term/network-accept-term\";\r\nimport { NetworkTermForm } from \"src/app/ui/models/domains/pbm/network-term/network-form-term\";\r\nimport { NetworkTerm } from \"src/app/ui/models/domains/pbm/network-term/network-term\";\r\n\r\nexport function parseNetworkTerm(payload: any): NetworkTerm {\r\n return new NetworkTerm(payload.TermKey, payload.ContentTerm);\r\n}\r\n\r\nexport function parseNetworkTermForm(payload: any): NetworkTermForm {\r\n const termForm = new NetworkTermForm();\r\n if (!payload) {\r\n return termForm;\r\n }\r\n termForm.FiscalNumber.Value = payload.FiscalNumber.Value;\r\n if (payload.NetworkProductBilling) {\r\n termForm.NetworkProductBilling.BankName = payload.NetworkProductBilling.BankName;\r\n termForm.NetworkProductBilling.AccountNumber = payload.NetworkProductBilling.AccountNumber;\r\n termForm.NetworkProductBilling.AccountDigit = payload.NetworkProductBilling.AccountDigit;\r\n termForm.NetworkProductBilling.AgencyNumber = payload.NetworkProductBilling.AgencyNumber;\r\n termForm.NetworkProductBilling.AgencyDigit = payload.NetworkProductBilling.AgencyDigit;\r\n if (payload.NetworkProductBilling.NetworkProductBillingDocument) {\r\n termForm.NetworkDocumentation.BillingDocument.DocumentUrl = payload.NetworkProductBilling.NetworkProductBillingDocument.DocumentUrl;\r\n termForm.NetworkDocumentation.BillingDocument.Filename = payload.NetworkProductBilling.NetworkProductBillingDocument.Filename;\r\n }\r\n }\r\n if (payload.NetworkContact) {\r\n const companyContacts = new Array();\r\n payload.NetworkContact.CompanyContacts.forEach((contact) => {\r\n const companyContact = {\r\n Key: {\r\n Value: contact.Key.Value,\r\n },\r\n Name: contact.Name,\r\n JobDescription: contact.JobDescription,\r\n };\r\n companyContacts.push(companyContact);\r\n });\r\n\r\n const networkEmails = new Array();\r\n payload.NetworkContact.NetworkEmails.forEach((email) => {\r\n const networkEmail = {\r\n Key: {\r\n Value: email.Key.Value,\r\n },\r\n Address: email.Address,\r\n Type: email.Type,\r\n };\r\n networkEmails.push(networkEmail);\r\n });\r\n\r\n const networkTelephones = new Array();\r\n payload.NetworkContact.NetworkTelephones.forEach((telephone) => {\r\n const networkTelephone = {\r\n Key: {\r\n Value: telephone.Key.Value,\r\n },\r\n Number: telephone.Number,\r\n Type: telephone.Type,\r\n };\r\n networkTelephones.push(networkTelephone);\r\n });\r\n\r\n termForm.NetworkContact.CompanyContacts = companyContacts;\r\n termForm.NetworkContact.NetworkEmails = networkEmails;\r\n termForm.NetworkContact.NetworkTelephones = networkTelephones;\r\n }\r\n if (payload.NetworkInfo) {\r\n termForm.NetworkInfo.Is24HoursService = payload.NetworkInfo.Is24HoursService;\r\n termForm.NetworkInfo.WeekDaysOpeningHour = payload.NetworkInfo.WeekDaysOpeningHour;\r\n termForm.NetworkInfo.WeekDaysClosingHour = payload.NetworkInfo.WeekDaysClosingHour;\r\n termForm.NetworkInfo.SaturdayOpeningHour = payload.NetworkInfo.SaturdayOpeningHour;\r\n termForm.NetworkInfo.SaturdayClosingHour = payload.NetworkInfo.SaturdayClosingHour;\r\n termForm.NetworkInfo.SundayHolidaysOpeningHour = payload.NetworkInfo.SundayHolidaysOpeningHour;\r\n termForm.NetworkInfo.SundayHolidaysClosingHour = payload.NetworkInfo.SundayHolidaysClosingHour;\r\n termForm.NetworkInfo.IndustrializedMedicine = payload.NetworkInfo.IndustrializedMedicine;\r\n termForm.NetworkInfo.Manipulation = payload.NetworkInfo.Manipulation;\r\n termForm.NetworkInfo.Homeopathy = payload.NetworkInfo.Homeopathy;\r\n termForm.NetworkInfo.Delivery = payload.NetworkInfo.Delivery;\r\n termForm.NetworkInfo.DeliveryFee = payload.NetworkInfo.DeliveryFee;\r\n termForm.NetworkInfo.MinimumValue = payload.NetworkInfo.MinimumValue;\r\n termForm.NetworkInfo.SoftwareHouse = payload.NetworkInfo.SoftwareHouse;\r\n termForm.NetworkInfo.MedicalPrescription = payload.NetworkInfo.MedicalPrescription;\r\n termForm.NetworkInfo.FinancialReportPeriodType = payload.NetworkInfo.FinancialReportPeriodType;\r\n termForm.NetworkInfo.AdministrativeTax = payload.NetworkInfo.AdministrativeTax;\r\n termForm.NetworkInfo.HighCostMedicine = payload.NetworkInfo.HighCostMedicine;\r\n termForm.NetworkInfo.PopularPharmacy = payload.NetworkInfo.PopularPharmacy;\r\n termForm.NetworkInfo.CentralizerFiscalNumber.Value = payload.NetworkInfo.CentralizerFiscalNumber.Value;\r\n termForm.NetworkInfo.PaymentTerm = payload.NetworkInfo.PaymentTerm;\r\n }\r\n payload.NetworkProductDiscounts.forEach((item) => {\r\n termForm.NetworkProductDiscounts.forEach((termItem) => {\r\n if (termItem.ProductSubTypeKey === item.ProductSubTypeKey) termItem.Discount = item.Discount;\r\n });\r\n });\r\n if (payload.NetworkDocumentation) {\r\n if (payload.NetworkDocumentation.SocialContract) {\r\n termForm.NetworkDocumentation.SocialContract.DocumentUrl = payload.NetworkDocumentation.SocialContract.DocumentUrl;\r\n termForm.NetworkDocumentation.SocialContract.Filename = payload.NetworkDocumentation.SocialContract.Filename;\r\n }\r\n if (payload.NetworkDocumentation.AnvisaPermit) {\r\n termForm.NetworkDocumentation.AnvisaPermit.DocumentNumber = payload.NetworkDocumentation.AnvisaPermit.DocumentNumber;\r\n termForm.NetworkDocumentation.AnvisaPermit.Validity = payload.NetworkDocumentation.AnvisaPermit.Validity;\r\n termForm.NetworkDocumentation.AnvisaPermit.DocumentUrl = payload.NetworkDocumentation.AnvisaPermit.DocumentUrl;\r\n termForm.NetworkDocumentation.AnvisaPermit.Filename = payload.NetworkDocumentation.AnvisaPermit.Filename;\r\n }\r\n if (payload.NetworkDocumentation.PrefecturePermit) {\r\n termForm.NetworkDocumentation.PrefecturePermit.DocumentNumber = payload.NetworkDocumentation.PrefecturePermit.DocumentNumber;\r\n termForm.NetworkDocumentation.PrefecturePermit.Validity = payload.NetworkDocumentation.PrefecturePermit.Validity;\r\n termForm.NetworkDocumentation.PrefecturePermit.DocumentUrl = payload.NetworkDocumentation.PrefecturePermit.DocumentUrl;\r\n termForm.NetworkDocumentation.PrefecturePermit.Filename = payload.NetworkDocumentation.PrefecturePermit.Filename;\r\n }\r\n if (payload.NetworkDocumentation.RegularityCertificate) {\r\n termForm.NetworkDocumentation.RegularityCertificate.ProfessionalName = payload.NetworkDocumentation.RegularityCertificate.ProfessionalName;\r\n termForm.NetworkDocumentation.RegularityCertificate.ProfessionalRegistration =\r\n payload.NetworkDocumentation.RegularityCertificate.ProfessionalRegistration;\r\n termForm.NetworkDocumentation.RegularityCertificate.DocumentUrl = payload.NetworkDocumentation.RegularityCertificate.DocumentUrl;\r\n termForm.NetworkDocumentation.RegularityCertificate.Filename = payload.NetworkDocumentation.RegularityCertificate.Filename;\r\n }\r\n if (payload.NetworkDocumentation.SanitaryPermit) {\r\n termForm.NetworkDocumentation.SanitaryPermit.DocumentNumber = payload.NetworkDocumentation.SanitaryPermit.DocumentNumber;\r\n termForm.NetworkDocumentation.SanitaryPermit.Validity = payload.NetworkDocumentation.SanitaryPermit.Validity;\r\n termForm.NetworkDocumentation.SanitaryPermit.DocumentUrl = payload.NetworkDocumentation.SanitaryPermit.DocumentUrl;\r\n termForm.NetworkDocumentation.SanitaryPermit.Filename = payload.NetworkDocumentation.SanitaryPermit.Filename;\r\n }\r\n }\r\n return termForm;\r\n}\r\n\r\nexport function parseNetworkAcceptTerm(payload: any): NetworkAcceptTerm {\r\n return new NetworkAcceptTerm(payload.ReferenceKey, new Date(payload.AcceptTermDate));\r\n}\r\n\r\nexport function parseNetworkTermSearchResult(payload: any): NetworkTermSearchResult {\r\n const result = new NetworkTermSearchResult();\r\n result.setStartIndex(payload.Start);\r\n result.setEndIndex(payload.TotalPerPages);\r\n result.setTotal(payload.Total);\r\n result.setTotalTermsAccepted(payload.TotalTermsAccepted);\r\n result.setNetworks(\r\n payload.Data.map((item) => {\r\n return parseNetworkTermView(item);\r\n }),\r\n );\r\n return result;\r\n}\r\n\r\nexport function parseNetworkTermView(payload: any): NetworkTermView {\r\n const network = new NetworkTermView();\r\n network.setFiscalNumber(new FiscalNumber(payload.FiscalNumber.Value));\r\n network.setCorporateName(payload.CorporateName);\r\n network.setTradingName(payload.TradingName);\r\n network.setDrugFront(payload.DrugFront);\r\n network.setTermAcceptanceDate(moment(payload.TermAcceptanceDate).format(\"DD/MM/YYYY\"));\r\n network.setNetworkCompanyInfo(parseNetworkCompanyInfo(payload.CompanyInfo));\r\n return network;\r\n}\r\n\r\nexport function parseNetworkCompanyInfo(payload: any): NetworkCompanyInfo {\r\n const networkCompanyInfo = new NetworkCompanyInfo();\r\n networkCompanyInfo.setAddress(parseNetworkAddress(payload.Address));\r\n networkCompanyInfo.setEmailList(payload.Emails);\r\n networkCompanyInfo.setTelephoneList(payload.Telephones);\r\n return networkCompanyInfo;\r\n}\r\n\r\nexport function parseNetworkAddress(payload: any): Address {\r\n const address = new Address();\r\n address.setCity(payload[0].City);\r\n address.setRegion(payload[0].State);\r\n return address;\r\n}\r\n", "import { NetworkTermRequest } from \"./network-term-request\";\r\nimport { NetworkTermView } from \"./network-term-view\";\r\n\r\nexport class NetworkTermSearchResult {\r\n private startIndex: number;\r\n private endIndex: number;\r\n private total: number;\r\n private totalTermsAccepted: number;\r\n private networks: NetworkTermView[];\r\n private request: NetworkTermRequest;\r\n\r\n public getStartIndex(): number {\r\n return this.startIndex;\r\n }\r\n\r\n public setStartIndex(value: number): void {\r\n this.startIndex = value;\r\n }\r\n\r\n public getEndIndex(): number {\r\n return this.endIndex;\r\n }\r\n\r\n public setEndIndex(value: number): void {\r\n this.endIndex = value;\r\n }\r\n\r\n public getTotal(): number {\r\n return this.total;\r\n }\r\n\r\n public setTotal(value: number): void {\r\n this.total = value;\r\n }\r\n\r\n public getTotalTermsAccepted(): number {\r\n return this.totalTermsAccepted;\r\n }\r\n\r\n public setTotalTermsAccepted(value: number): void {\r\n this.totalTermsAccepted = value;\r\n }\r\n\r\n public getNetworks(): NetworkTermView[] {\r\n return this.networks;\r\n }\r\n\r\n public setNetworks(value: NetworkTermView[]): void {\r\n this.networks = value;\r\n }\r\n\r\n public addNetwork(network: NetworkTermView): void {\r\n this.networks.push(network);\r\n }\r\n\r\n public concatNetworks(networkTermViews: NetworkTermView[]): void {\r\n this.networks = this.networks.concat(networkTermViews);\r\n }\r\n\r\n public getRequest(): NetworkTermRequest {\r\n return this.request;\r\n }\r\n\r\n public setRequest(value: NetworkTermRequest): void {\r\n this.request = value;\r\n }\r\n}\r\n", "import { Address } from \"src/app/ui/models/domains/pbm/companies/address\";\r\nimport { FiscalNumber } from \"src/app/ui/models/domains/pbm/fiscal-number\";\r\n\r\nexport class NetworkTermView {\r\n private fiscalNumber: FiscalNumber;\r\n private corporateName: string;\r\n private tradingName: string;\r\n private drugFront: string;\r\n private termAcceptanceDate: string;\r\n private networkCompanyInfo: NetworkCompanyInfo;\r\n\r\n public getFiscalNumber(): FiscalNumber {\r\n return this.fiscalNumber;\r\n }\r\n\r\n public setFiscalNumber(value: FiscalNumber): void {\r\n this.fiscalNumber = value;\r\n }\r\n\r\n public getCorporateName(): string {\r\n return this.corporateName;\r\n }\r\n\r\n public setCorporateName(value: string): void {\r\n this.corporateName = value;\r\n }\r\n\r\n public getTradingName(): string {\r\n return !!this.tradingName && this.tradingName.length > 0 ? this.tradingName : this.getCorporateName();\r\n }\r\n\r\n public setTradingName(value: string): void {\r\n this.tradingName = value;\r\n }\r\n\r\n public getDrugFront(): string {\r\n return this.drugFront;\r\n }\r\n\r\n public setDrugFront(value: string): void {\r\n this.drugFront = value;\r\n }\r\n\r\n public getTermAcceptanceDate(): string {\r\n return this.termAcceptanceDate;\r\n }\r\n\r\n public setTermAcceptanceDate(value: string): void {\r\n this.termAcceptanceDate = value;\r\n }\r\n\r\n public getNetworkCompanyInfo(): NetworkCompanyInfo {\r\n return this.networkCompanyInfo;\r\n }\r\n\r\n public setNetworkCompanyInfo(value: NetworkCompanyInfo): void {\r\n this.networkCompanyInfo = value;\r\n }\r\n}\r\n\r\nexport class NetworkCompanyInfo {\r\n private address: Address;\r\n private emailList: string[];\r\n private telephoneList: string[];\r\n\r\n public getAddress(): Address {\r\n return this.address;\r\n }\r\n\r\n public setAddress(value: Address): void {\r\n this.address = value;\r\n }\r\n\r\n public getEmailList(): string[] {\r\n return this.emailList;\r\n }\r\n\r\n public setEmailList(value: string[]): void {\r\n this.emailList = value;\r\n }\r\n\r\n public getTelephoneList(): string[] {\r\n return this.telephoneList;\r\n }\r\n\r\n public setTelephoneList(value: string[]): void {\r\n this.telephoneList = value;\r\n }\r\n}\r\n", "export class NetworkAcceptTerm {\r\n constructor(private readonly referenceKey: string, private readonly acceptTermDate: Date) {}\r\n\r\n public getReferenceKey(): string {\r\n return this.referenceKey;\r\n }\r\n\r\n public getAcceptTermDate(): Date {\r\n return this.acceptTermDate;\r\n }\r\n}\r\n", "export enum EmailType {\r\n others = \"Others\",\r\n financial = \"Financial\",\r\n}\r\n", "export enum TelephoneType {\r\n work = \"Work\",\r\n mobile = \"Mobile\",\r\n}\r\n", "import { AbstractControl, UntypedFormArray, UntypedFormBuilder, UntypedFormControl, UntypedFormGroup, ValidatorFn, Validators } from \"@angular/forms\";\r\nimport { EmailType } from \"./email-type.enum\";\r\nimport { TelephoneType } from \"./telephone-type.enum\";\r\n\r\nexport class NetworkTermFormGroup extends UntypedFormGroup {\r\n createFormData(): FormData {\r\n const body = this.getRawValue();\r\n const files = body.Files;\r\n let formData = new FormData();\r\n Object.keys(files).forEach((doc) => {\r\n if (files[doc]) formData.append(doc, files[doc], files[doc].name);\r\n });\r\n delete body.Files;\r\n delete body.Documents;\r\n formData.append(\"body\", JSON.stringify(body));\r\n return formData;\r\n }\r\n}\r\n\r\nexport enum NetworkTermDocument {\r\n SocialContract = \"SocialContract\",\r\n AnvisaPermit = \"AnvisaPermit\",\r\n PrefecturePermit = \"PrefecturePermit\",\r\n SanitaryPermit = \"SanitaryPermit\",\r\n RegularityCertificate = \"RegularityCertificate\",\r\n BillingDocument = \"BillingDocument\",\r\n}\r\n\r\nexport class NetworkTermForm {\r\n FiscalNumber = {\r\n Value: \"\",\r\n };\r\n NetworkProductBilling = {\r\n BankName: \"\",\r\n AccountNumber: \"\",\r\n AccountDigit: \"\",\r\n AgencyNumber: \"\",\r\n AgencyDigit: \"\",\r\n };\r\n NetworkContact = {\r\n CompanyContacts: [\r\n {\r\n Key: {\r\n Value: \"\",\r\n },\r\n Name: \"\",\r\n JobDescription: \"\",\r\n },\r\n ],\r\n\r\n NetworkEmails: [\r\n {\r\n Key: {\r\n Value: \"\",\r\n },\r\n Address: \"\",\r\n Type: \"\",\r\n },\r\n ],\r\n\r\n NetworkTelephones: [\r\n {\r\n Key: {\r\n Value: \"\",\r\n },\r\n Number: \"\",\r\n Type: \"\",\r\n },\r\n ],\r\n };\r\n NetworkInfo = {\r\n Is24HoursService: false,\r\n WeekDaysOpeningHour: null,\r\n WeekDaysClosingHour: null,\r\n SaturdayOpeningHour: null,\r\n SaturdayClosingHour: null,\r\n SundayHolidaysOpeningHour: null,\r\n SundayHolidaysClosingHour: null,\r\n IndustrializedMedicine: false,\r\n Manipulation: false,\r\n Homeopathy: false,\r\n Delivery: false,\r\n DeliveryFee: 0,\r\n MinimumValue: 0,\r\n SoftwareHouse: \"\",\r\n MedicalPrescription: null,\r\n FinancialReportPeriodType: \"Biweekly\",\r\n AdministrativeTax: 0,\r\n HighCostMedicine: false,\r\n PopularPharmacy: false,\r\n CentralizerFiscalNumber: {\r\n Value: \"\",\r\n },\r\n PaymentTerm: 0,\r\n };\r\n NetworkProductDiscounts = [\r\n {\r\n Discount: 10,\r\n Label: \"Marcas\",\r\n ProductTypeKey: \"0d0695c9-1582-48e7-b55b-b411e6c1e333\",\r\n ProductSubTypeKey: \"96d1369f-54d2-4b18-975d-02e43a0d2490\",\r\n },\r\n {\r\n Discount: 15,\r\n Label: \"Genérico\",\r\n ProductTypeKey: \"0d0695c9-1582-48e7-b55b-b411e6c1e333\",\r\n ProductSubTypeKey: \"2b5d851b-1952-482e-8a16-29e59ba0977d\",\r\n },\r\n ];\r\n NetworkDocumentation = {\r\n BillingDocument: {\r\n Filename: \"\",\r\n DocumentUrl: \"\",\r\n },\r\n SocialContract: {\r\n Filename: \"\",\r\n DocumentUrl: \"\",\r\n },\r\n AnvisaPermit: {\r\n DocumentNumber: \"\",\r\n Filename: \"\",\r\n Validity: \"\",\r\n DocumentUrl: \"\",\r\n },\r\n PrefecturePermit: {\r\n DocumentNumber: \"\",\r\n Filename: \"\",\r\n Validity: \"\",\r\n DocumentUrl: \"\",\r\n },\r\n SanitaryPermit: {\r\n DocumentNumber: \"\",\r\n Filename: \"\",\r\n Validity: \"\",\r\n DocumentUrl: \"\",\r\n },\r\n RegularityCertificate: {\r\n ProfessionalName: \"\",\r\n ProfessionalRegistration: \"\",\r\n Filename: \"\",\r\n DocumentUrl: \"\",\r\n },\r\n };\r\n Documents = {\r\n SocialContract: null,\r\n AnvisaPermit: null,\r\n PrefecturePermit: null,\r\n SanitaryPermit: null,\r\n RegularityCertificate: null,\r\n BillingDocument: null,\r\n };\r\n\r\n static createForm(form: NetworkTermForm = new NetworkTermForm()): NetworkTermFormGroup {\r\n const builder = new UntypedFormBuilder();\r\n\r\n const companyContactsFormArray = new UntypedFormArray([]);\r\n if (form.NetworkContact.CompanyContacts.length > 0) {\r\n for (let i = 0; i < form.NetworkContact.CompanyContacts.length; i++) {\r\n const contact = new UntypedFormGroup({\r\n Key: new UntypedFormGroup({\r\n Value: new UntypedFormControl(form.NetworkContact.CompanyContacts[i].Key.Value),\r\n }),\r\n Name: new UntypedFormControl(form.NetworkContact.CompanyContacts[i].Name),\r\n JobDescription: new UntypedFormControl(form.NetworkContact.CompanyContacts[i].JobDescription),\r\n });\r\n\r\n companyContactsFormArray.push(contact);\r\n }\r\n } else {\r\n const contact = new UntypedFormGroup({\r\n Key: new UntypedFormGroup({\r\n Value: new UntypedFormControl(\"\"),\r\n }),\r\n Name: new UntypedFormControl(\"\"),\r\n JobDescription: new UntypedFormControl(\"\"),\r\n });\r\n\r\n companyContactsFormArray.push(contact);\r\n }\r\n\r\n const networkEmailsFormArray = new UntypedFormArray([]);\r\n if (form.NetworkContact.NetworkEmails.length > 0) {\r\n for (let i = 0; i < form.NetworkContact.NetworkEmails.length; i++) {\r\n const email = new UntypedFormGroup({\r\n Key: new UntypedFormGroup({\r\n Value: new UntypedFormControl(form.NetworkContact.NetworkEmails[i].Key.Value),\r\n }),\r\n Address: new UntypedFormControl(form.NetworkContact.NetworkEmails[i].Address),\r\n Type: new UntypedFormControl(form.NetworkContact.NetworkEmails[i].Type),\r\n });\r\n\r\n networkEmailsFormArray.push(email);\r\n }\r\n } else {\r\n const email = new UntypedFormGroup({\r\n Key: new UntypedFormGroup({\r\n Value: new UntypedFormControl(\"\"),\r\n }),\r\n Address: new UntypedFormControl(\"\"),\r\n Type: new UntypedFormControl(EmailType.others),\r\n });\r\n\r\n const Financialemail = new UntypedFormGroup({\r\n Key: new UntypedFormGroup({\r\n Value: new UntypedFormControl(\"\"),\r\n }),\r\n Address: new UntypedFormControl(\"\"),\r\n Type: new UntypedFormControl(EmailType.financial),\r\n });\r\n\r\n networkEmailsFormArray.push(email);\r\n networkEmailsFormArray.push(Financialemail);\r\n }\r\n\r\n const networkTelephonesFormArray = new UntypedFormArray([]);\r\n if (form.NetworkContact.NetworkEmails.length > 0) {\r\n for (let i = 0; i < form.NetworkContact.NetworkTelephones.length; i++) {\r\n const telephone = new UntypedFormGroup({\r\n Key: new UntypedFormGroup({\r\n Value: new UntypedFormControl(form.NetworkContact.NetworkTelephones[i].Key.Value),\r\n }),\r\n Number: new UntypedFormControl(form.NetworkContact.NetworkTelephones[i].Number),\r\n Type: new UntypedFormControl(form.NetworkContact.NetworkTelephones[i].Type),\r\n });\r\n\r\n networkTelephonesFormArray.push(telephone);\r\n }\r\n } else {\r\n const telephone1 = new UntypedFormGroup({\r\n Key: new UntypedFormGroup({\r\n Value: new UntypedFormControl(\"\"),\r\n }),\r\n Number: new UntypedFormControl(\"\"),\r\n Type: new UntypedFormControl(TelephoneType.work),\r\n });\r\n const telephone2 = new UntypedFormGroup({\r\n Key: new UntypedFormGroup({\r\n Value: new UntypedFormControl(\"\"),\r\n }),\r\n Number: new UntypedFormControl(\"\"),\r\n Type: new UntypedFormControl(TelephoneType.work),\r\n });\r\n const mobile = new UntypedFormGroup({\r\n Key: new UntypedFormGroup({\r\n Value: new UntypedFormControl(\"\"),\r\n }),\r\n Number: new UntypedFormControl(\"\"),\r\n Type: new UntypedFormControl(TelephoneType.mobile),\r\n });\r\n\r\n networkTelephonesFormArray.push(telephone1);\r\n networkTelephonesFormArray.push(telephone2);\r\n networkTelephonesFormArray.push(mobile);\r\n }\r\n\r\n const formGroup = new NetworkTermFormGroup({\r\n FiscalNumber: new UntypedFormGroup({\r\n Value: new UntypedFormControl(form.FiscalNumber.Value, []),\r\n }),\r\n NetworkProductBilling: new UntypedFormGroup({\r\n BankName: new UntypedFormControl(form.NetworkProductBilling.BankName, [Validators.required]),\r\n AgencyNumber: new UntypedFormControl(form.NetworkProductBilling.AgencyNumber, [Validators.required]),\r\n AgencyDigit: new UntypedFormControl(form.NetworkProductBilling.AgencyDigit, [Validators.required]),\r\n AccountNumber: new UntypedFormControl(form.NetworkProductBilling.AccountNumber, [Validators.required]),\r\n AccountDigit: new UntypedFormControl(form.NetworkProductBilling.AccountDigit, [Validators.required]),\r\n }),\r\n NetworkContact: new UntypedFormGroup({\r\n CompanyContacts: companyContactsFormArray,\r\n NetworkEmails: networkEmailsFormArray,\r\n NetworkTelephones: networkTelephonesFormArray,\r\n }),\r\n NetworkInfo: new UntypedFormGroup({\r\n Is24HoursService: new UntypedFormControl(form.NetworkInfo.Is24HoursService, []),\r\n WeekDaysOpeningHour: new UntypedFormControl({ value: form.NetworkInfo.WeekDaysOpeningHour, disabled: form.NetworkInfo.Is24HoursService }, []),\r\n WeekDaysClosingHour: new UntypedFormControl({ value: form.NetworkInfo.WeekDaysClosingHour, disabled: form.NetworkInfo.Is24HoursService }, []),\r\n SaturdayOpeningHour: new UntypedFormControl({ value: form.NetworkInfo.SaturdayOpeningHour, disabled: form.NetworkInfo.Is24HoursService }, []),\r\n SaturdayClosingHour: new UntypedFormControl({ value: form.NetworkInfo.SaturdayClosingHour, disabled: form.NetworkInfo.Is24HoursService }, []),\r\n SundayHolidaysOpeningHour: new UntypedFormControl({ value: form.NetworkInfo.SundayHolidaysOpeningHour, disabled: form.NetworkInfo.Is24HoursService }, []),\r\n SundayHolidaysClosingHour: new UntypedFormControl({ value: form.NetworkInfo.SundayHolidaysClosingHour, disabled: form.NetworkInfo.Is24HoursService }, []),\r\n IndustrializedMedicine: new UntypedFormControl(form.NetworkInfo.IndustrializedMedicine, []),\r\n Manipulation: new UntypedFormControl(form.NetworkInfo.Manipulation, []),\r\n Homeopathy: new UntypedFormControl(form.NetworkInfo.Homeopathy, []),\r\n Delivery: new UntypedFormControl(form.NetworkInfo.Delivery, []),\r\n DeliveryFee: new UntypedFormControl({ value: form.NetworkInfo.DeliveryFee, disabled: !form.NetworkInfo.Delivery }, []),\r\n MinimumValue: new UntypedFormControl({ value: form.NetworkInfo.MinimumValue, disabled: !form.NetworkInfo.Delivery }, []),\r\n SoftwareHouse: new UntypedFormControl(form.NetworkInfo.SoftwareHouse, []),\r\n MedicalPrescription: new UntypedFormControl(form.NetworkInfo.MedicalPrescription, []),\r\n FinancialReportPeriodType: new UntypedFormControl(form.NetworkInfo.FinancialReportPeriodType, [Validators.required]),\r\n AdministrativeTax: new UntypedFormControl(form.NetworkInfo.AdministrativeTax, []),\r\n HighCostMedicine: new UntypedFormControl(form.NetworkInfo.HighCostMedicine, []),\r\n PopularPharmacy: new UntypedFormControl(form.NetworkInfo.PopularPharmacy, []),\r\n CentralizerFiscalNumber: new UntypedFormGroup({\r\n Value: new UntypedFormControl(form.NetworkInfo.CentralizerFiscalNumber.Value, [Validators.required]),\r\n }),\r\n PaymentTerm: new UntypedFormControl(form.NetworkInfo.PaymentTerm, [Validators.required]),\r\n }),\r\n NetworkProductDiscounts: builder.array(\r\n form.NetworkProductDiscounts.map((el) => {\r\n let minDiscount: number;\r\n if (el.ProductSubTypeKey == \"2b5d851b-1952-482e-8a16-29e59ba0977d\") {\r\n minDiscount = 15;\r\n } else {\r\n minDiscount = 10;\r\n }\r\n\r\n return new UntypedFormGroup(\r\n {\r\n Discount: new UntypedFormControl(el.Discount, [Validators.required, Validators.min(minDiscount)]),\r\n Label: new UntypedFormControl(el.Label, []),\r\n ProductTypeKey: new UntypedFormControl(el.ProductTypeKey, []),\r\n ProductSubTypeKey: new UntypedFormControl(el.ProductSubTypeKey, []),\r\n },\r\n validateMinDiscount,\r\n );\r\n }),\r\n ),\r\n NetworkDocumentation: new UntypedFormGroup({\r\n BillingDocument: new UntypedFormGroup({\r\n DocumentUrl: new UntypedFormControl(form.NetworkDocumentation.BillingDocument.DocumentUrl, []),\r\n Filename: new UntypedFormControl(form.NetworkDocumentation.BillingDocument.Filename, []),\r\n }),\r\n SocialContract: new UntypedFormGroup({\r\n DocumentUrl: new UntypedFormControl(form.NetworkDocumentation.SocialContract.DocumentUrl, []),\r\n Filename: new UntypedFormControl(form.NetworkDocumentation.SocialContract.Filename, []),\r\n }),\r\n AnvisaPermit: new UntypedFormGroup({\r\n DocumentNumber: new UntypedFormControl(form.NetworkDocumentation.AnvisaPermit.DocumentNumber, []),\r\n Validity: new UntypedFormControl(form.NetworkDocumentation.AnvisaPermit.Validity, []),\r\n DocumentUrl: new UntypedFormControl(form.NetworkDocumentation.AnvisaPermit.DocumentUrl, []),\r\n Filename: new UntypedFormControl(form.NetworkDocumentation.AnvisaPermit.Filename, []),\r\n }),\r\n PrefecturePermit: new UntypedFormGroup({\r\n DocumentNumber: new UntypedFormControl(form.NetworkDocumentation.PrefecturePermit.DocumentNumber, []),\r\n Validity: new UntypedFormControl(form.NetworkDocumentation.PrefecturePermit.Validity, []),\r\n DocumentUrl: new UntypedFormControl(form.NetworkDocumentation.PrefecturePermit.DocumentUrl, []),\r\n Filename: new UntypedFormControl(form.NetworkDocumentation.PrefecturePermit.Filename, []),\r\n }),\r\n SanitaryPermit: new UntypedFormGroup({\r\n DocumentNumber: new UntypedFormControl(form.NetworkDocumentation.SanitaryPermit.DocumentNumber, []),\r\n Validity: new UntypedFormControl(form.NetworkDocumentation.SanitaryPermit.Validity, []),\r\n DocumentUrl: new UntypedFormControl(form.NetworkDocumentation.SanitaryPermit.DocumentUrl, []),\r\n Filename: new UntypedFormControl(form.NetworkDocumentation.SanitaryPermit.Filename, []),\r\n }),\r\n RegularityCertificate: new UntypedFormGroup({\r\n ProfessionalName: new UntypedFormControl(form.NetworkDocumentation.RegularityCertificate.ProfessionalName, []),\r\n ProfessionalRegistration: new UntypedFormControl(form.NetworkDocumentation.RegularityCertificate.ProfessionalRegistration, []),\r\n DocumentUrl: new UntypedFormControl(form.NetworkDocumentation.RegularityCertificate.DocumentUrl, []),\r\n Filename: new UntypedFormControl(form.NetworkDocumentation.RegularityCertificate.Filename, []),\r\n }),\r\n }),\r\n Documents: new UntypedFormGroup(\r\n {\r\n SocialContract: new UntypedFormControl(form.Documents.SocialContract, [documentTypeValidator]),\r\n AnvisaPermit: new UntypedFormControl(form.Documents.AnvisaPermit, [documentTypeValidator]),\r\n PrefecturePermit: new UntypedFormControl(form.Documents.PrefecturePermit, [documentTypeValidator]),\r\n SanitaryPermit: new UntypedFormControl(form.Documents.SanitaryPermit, [documentTypeValidator]),\r\n RegularityCertificate: new UntypedFormControl(form.Documents.RegularityCertificate, [documentTypeValidator]),\r\n BillingDocument: new UntypedFormControl(\r\n form.Documents.BillingDocument,\r\n form.NetworkDocumentation.BillingDocument.DocumentUrl ? [documentTypeValidator] : [Validators.required, documentTypeValidator],\r\n ),\r\n },\r\n validateAllDocumentsType,\r\n ),\r\n Files: new UntypedFormGroup({\r\n SocialContract: new UntypedFormControl(null, []),\r\n AnvisaPermit: new UntypedFormControl(null, []),\r\n PrefecturePermit: new UntypedFormControl(null, []),\r\n SanitaryPermit: new UntypedFormControl(null, []),\r\n RegularityCertificate: new UntypedFormControl(null, []),\r\n BillingDocument: new UntypedFormControl(null, []),\r\n }),\r\n });\r\n\r\n return formGroup;\r\n }\r\n}\r\n\r\nfunction documentTypeValidator(control: AbstractControl) {\r\n if (!!control.value) {\r\n if (control.value.match(/\\.[0-9a-z]+$/i)[0] !== \".pdf\") {\r\n return { documentTypeValidator: true };\r\n }\r\n }\r\n return null;\r\n}\r\n\r\nexport const validateAllDocumentsType: ValidatorFn = (formGroup: UntypedFormGroup) => {\r\n if (formGroup) {\r\n const socialContractErrors = formGroup.get(\"SocialContract\").errors;\r\n if (socialContractErrors && socialContractErrors.documentTypeValidator) {\r\n return { validateAllDocumentsType: true };\r\n }\r\n\r\n const anvisaPermitErrors = formGroup.get(\"AnvisaPermit\").errors;\r\n if (anvisaPermitErrors && anvisaPermitErrors.documentTypeValidator) {\r\n return { validateAllDocumentsType: true };\r\n }\r\n\r\n const prefecturePermitErros = formGroup.get(\"PrefecturePermit\").errors;\r\n if (prefecturePermitErros && prefecturePermitErros.documentTypeValidator) {\r\n return { validateAllDocumentsType: true };\r\n }\r\n\r\n const sanitaryPermitErros = formGroup.get(\"SanitaryPermit\").errors;\r\n if (sanitaryPermitErros && sanitaryPermitErros.documentTypeValidator) {\r\n return { validateAllDocumentsType: true };\r\n }\r\n\r\n const regularityCertificateErros = formGroup.get(\"RegularityCertificate\").errors;\r\n if (regularityCertificateErros && regularityCertificateErros.documentTypeValidator) {\r\n return { validateAllDocumentsType: true };\r\n }\r\n\r\n const billingDocumentErros = formGroup.get(\"BillingDocument\").errors;\r\n if (billingDocumentErros && billingDocumentErros.documentTypeValidator) {\r\n return { validateAllDocumentsType: true };\r\n }\r\n return null;\r\n }\r\n return null;\r\n};\r\n\r\nexport const validateMinDiscount: ValidatorFn = (formGroup: UntypedFormGroup) => {\r\n if (formGroup) {\r\n const discountErrors = formGroup.get(\"Discount\").errors;\r\n if (discountErrors && (discountErrors.min || discountErrors.reqrequired)) {\r\n return { validateAllDocumentsType: true };\r\n }\r\n return null;\r\n }\r\n return null;\r\n};\r\n", "export class NetworkTerm {\r\n constructor(private readonly termKey: string, private readonly contentTerm: string) {}\r\n\r\n public getTermKey(): string {\r\n return this.termKey;\r\n }\r\n\r\n public getContentTerm(): string {\r\n return this.contentTerm;\r\n }\r\n}\r\n", "import { NetworkTerm } from \"src/app/ui/models/domains/pbm/network-term/network-term\";\r\nimport { AbstractParser } from \"../../parser\";\r\nimport { parseNetworkTerm } from \"./network-term-parse.functions\";\r\n\r\nexport class NetworkTermParser extends AbstractParser {\r\n parse(payload: any) {\r\n if (payload == null) {\r\n return null;\r\n }\r\n return parseNetworkTerm(payload);\r\n }\r\n}\r\n", "import { NetworkTermForm } from \"src/app/ui/models/domains/pbm/network-term/network-form-term\";\r\nimport { AbstractParser } from \"../../parser\";\r\nimport { parseNetworkTermForm } from \"./network-term-parse.functions\";\r\n\r\nexport class NetworkTermFormParser extends AbstractParser {\r\n parse(payload: any): NetworkTermForm {\r\n return parseNetworkTermForm(payload);\r\n }\r\n}\r\n", "import { NetworkAcceptTerm } from \"src/app/ui/models/domains/pbm/network-term/network-accept-term\";\r\nimport { AbstractParser } from \"../../parser\";\r\nimport { parseNetworkAcceptTerm } from \"./network-term-parse.functions\";\r\n\r\nexport class NetworkAcceptTermParser extends AbstractParser {\r\n parse(payload: any): NetworkAcceptTerm {\r\n if (payload == null) {\r\n return null;\r\n }\r\n return parseNetworkAcceptTerm(payload);\r\n }\r\n}\r\n", "import { NetworkTermSearchResult } from \"src/app/ui/components/pbm/network-term/search-network-term/network-term-search-result\";\r\nimport { AbstractParser } from \"../../parser\";\r\nimport { parseNetworkTermSearchResult } from \"./network-term-parse.functions\";\r\n\r\nexport class NetworksParser extends AbstractParser {\r\n parse(payload: any): NetworkTermSearchResult {\r\n return parseNetworkTermSearchResult(payload);\r\n }\r\n}\r\n", "export class MedicalPrescriptionDocumentKey {\r\n private value: string = \"\";\r\n\r\n constructor(value: string = \"\") {\r\n this.value = value;\r\n }\r\n\r\n setValue(value: string): void {\r\n this.value = value;\r\n }\r\n\r\n getValue(): string {\r\n return this.value;\r\n }\r\n}\r\n", "import { StateAcronym } from \"../state/state-acronym\";\r\n\r\nexport class PractitionerRegistration {\r\n private registration: number = 0;\r\n private state: StateAcronym;\r\n\r\n setRegistration(value: number): void {\r\n this.registration = value;\r\n }\r\n\r\n getRegistration(): number {\r\n return this.registration;\r\n }\r\n\r\n setState(value: StateAcronym): void {\r\n this.state = value;\r\n }\r\n\r\n getState(): StateAcronym {\r\n return this.state;\r\n }\r\n}\r\n", "import { MedicalPrescriptionDocumentKey } from \"./medical-prescription-document-key\";\r\nimport { PractitionerRegistration } from \"./practitioner-registration\";\r\n\r\nexport class MedicalPrescription {\r\n private quantity: number = 0;\r\n private medicalPrescriptionDate: string;\r\n private medicalPrescriptionInsertionDate: string;\r\n private practitionerRegistration: PractitionerRegistration;\r\n private medicalPrescriptionDocumentKey: MedicalPrescriptionDocumentKey;\r\n private MedicalPrescriptionDocument: string;\r\n private medicalPrescriptionScanUrl: string;\r\n private medicalPrescriptionStatus: string;\r\n\r\n constructor() {\r\n this.practitionerRegistration = new PractitionerRegistration();\r\n this.medicalPrescriptionDocumentKey = new MedicalPrescriptionDocumentKey();\r\n this.medicalPrescriptionDate = \"\";\r\n this.medicalPrescriptionInsertionDate = \"\";\r\n }\r\n\r\n public setQuantity(value: number) {\r\n this.quantity = value;\r\n }\r\n\r\n public getQuantity(): number {\r\n return this.quantity;\r\n }\r\n\r\n public setMedicalPrescriptionDate(value: string) {\r\n this.medicalPrescriptionDate = value;\r\n }\r\n\r\n public getMedicalPrescriptionDate(): string {\r\n return this.medicalPrescriptionDate;\r\n }\r\n\r\n public setMedicalPrescriptionInsertionDate(value: string): void {\r\n this.medicalPrescriptionInsertionDate = value;\r\n }\r\n\r\n public getMedicalPrescriptionInsertionDate(): string {\r\n return this.medicalPrescriptionInsertionDate;\r\n }\r\n\r\n public setPractitionerRegistration(value: PractitionerRegistration) {\r\n this.practitionerRegistration = value;\r\n }\r\n\r\n public getPractitionerRegistration(): PractitionerRegistration {\r\n return this.practitionerRegistration;\r\n }\r\n\r\n public setMedicalPrescriptionDocumentKey(value: MedicalPrescriptionDocumentKey) {\r\n this.medicalPrescriptionDocumentKey = value;\r\n }\r\n\r\n public getMedicalPrescriptionDocumentKey(): MedicalPrescriptionDocumentKey {\r\n return this.medicalPrescriptionDocumentKey;\r\n }\r\n\r\n public hasDocumentKey(): boolean {\r\n return !!this.medicalPrescriptionDocumentKey && !!this.medicalPrescriptionDocumentKey.getValue();\r\n }\r\n\r\n public getMedicalPrescriptionDocument(): string {\r\n return this.MedicalPrescriptionDocument;\r\n }\r\n\r\n /**\r\n *\r\n * @param MedicalPrescriptionDocument blob da imagem\r\n */\r\n public setMedicalPrescriptionDocument(MedicalPrescriptionDocument: string): void {\r\n this.MedicalPrescriptionDocument = \"data:image/png;base64,\" + MedicalPrescriptionDocument;\r\n }\r\n\r\n public getMedicalPrescriptionScanUrl(): string {\r\n return this.medicalPrescriptionScanUrl;\r\n }\r\n\r\n public setMedicalPrescriptionScanUrl(medicalPrescriptionScanUrl: string): void {\r\n this.medicalPrescriptionScanUrl = medicalPrescriptionScanUrl;\r\n }\r\n\r\n public getMedicalPrescriptionStatus(): string {\r\n return this.medicalPrescriptionStatus;\r\n }\r\n\r\n public setMedicalPrescriptionStatus(medicalPrescriptionStatus: string): void {\r\n this.medicalPrescriptionStatus = medicalPrescriptionStatus;\r\n }\r\n}\r\n", "export class MedicalPrescriptionStatus {\r\n private static readonly options = new Map([\r\n [1, \"Enviada\"],\r\n [2, \"Pendente\"],\r\n [3, \"Não Necessária\"],\r\n [4, \"Prazo de envio excedido\"],\r\n ]);\r\n\r\n public static fromEnum(value: number): MedicalPrescriptionStatus {\r\n return new MedicalPrescriptionStatus(value);\r\n }\r\n\r\n private readonly description: string;\r\n\r\n private constructor(status: number) {\r\n this.description = MedicalPrescriptionStatus.options.get(status);\r\n }\r\n\r\n public getDescription(): string {\r\n return this.description;\r\n }\r\n}\r\n\r\nexport enum MedicalPrescriptionStatusEnum {\r\n Valid = \"Enviada\",\r\n Pending = \"Pendente\",\r\n NotNeeded = \"Não Necessária\",\r\n Expired = \"Prazo de envio excedido\"\r\n}", "import { MedicalPrescription } from \"./medical-prescription\";\r\nimport { MedicalPrescriptionStatus } from \"./medical-prescription-status\";\r\nimport { PaymentMethod } from \"./payment-method\";\r\n\r\nexport class ProductItem {\r\n private ean: string;\r\n private productName: string;\r\n private grossPrice: number;\r\n private price: number;\r\n private usedNetworkGrossPrice: boolean;\r\n private usedNetworkNetPrice: boolean;\r\n private discountValue: number;\r\n private subsidyValue: number;\r\n private employmentPayrollValue: number;\r\n private checkoutValue: number;\r\n private cardValue: number;\r\n private beneficiaryValue: number;\r\n private authorizedQuantity: number;\r\n private medicalPrescription: MedicalPrescription;\r\n private medicalPrescriptionStatus: MedicalPrescriptionStatus;\r\n private errorMessage: string;\r\n private paymentMethod: PaymentMethod;\r\n\r\n public getEan(): string {\r\n return this.ean;\r\n }\r\n\r\n public setEan(value: string): void {\r\n this.ean = value;\r\n }\r\n\r\n public getProductName(): string {\r\n return this.productName;\r\n }\r\n\r\n public setProductName(value: string): void {\r\n this.productName = value;\r\n }\r\n\r\n public getGrossPrice(): number {\r\n return this.grossPrice;\r\n }\r\n\r\n public setGrossPrice(value: number): void {\r\n this.grossPrice = value;\r\n }\r\n\r\n public getPrice(): number {\r\n return this.price;\r\n }\r\n\r\n public setPrice(value: number): void {\r\n this.price = value;\r\n }\r\n\r\n public getUsedNetworkGrossPrice(): boolean {\r\n return this.usedNetworkGrossPrice;\r\n }\r\n\r\n public setUsedNetworkGrossPrice(value: boolean): void {\r\n this.usedNetworkGrossPrice = value;\r\n }\r\n\r\n public getUsedNetworkNetPrice(): boolean {\r\n return this.usedNetworkNetPrice;\r\n }\r\n\r\n public setUsedNetworkNetPrice(value: boolean): void {\r\n this.usedNetworkNetPrice = value;\r\n }\r\n\r\n public isNetworkSourcePrice(): boolean {\r\n return this.usedNetworkGrossPrice || this.usedNetworkNetPrice;\r\n }\r\n\r\n public getDiscountValue(): number {\r\n return this.discountValue;\r\n }\r\n\r\n public setDiscountValue(value: number): void {\r\n this.discountValue = value;\r\n }\r\n\r\n public getSubsidyValue(): number {\r\n return this.subsidyValue;\r\n }\r\n\r\n public setSubsidyValue(value: number): void {\r\n this.subsidyValue = value;\r\n }\r\n\r\n public getEmploymentPayrollValue(): number {\r\n return this.employmentPayrollValue;\r\n }\r\n\r\n public setEmploymentPayrollValue(value: number): void {\r\n this.employmentPayrollValue = value;\r\n }\r\n\r\n public getCheckoutValue(): number {\r\n return this.checkoutValue;\r\n }\r\n\r\n public setCheckoutValue(value: number): void {\r\n this.checkoutValue = value;\r\n }\r\n\r\n public getCardValue(): number {\r\n return this.cardValue;\r\n }\r\n\r\n public setCardValue(value: number): void {\r\n this.cardValue = value;\r\n }\r\n\r\n public getBeneficiaryValue(): number {\r\n return this.beneficiaryValue;\r\n }\r\n\r\n public setBeneficiaryValue(value: number): void {\r\n this.beneficiaryValue = value;\r\n }\r\n\r\n public getAuthorizedQuantity(): number {\r\n return this.authorizedQuantity;\r\n }\r\n\r\n public setAuthorizedQuantity(value: number): void {\r\n this.authorizedQuantity = value;\r\n }\r\n\r\n public getMedicalPrescription(): MedicalPrescription {\r\n return this.medicalPrescription;\r\n }\r\n\r\n public setMedicalPrescription(value: MedicalPrescription): void {\r\n this.medicalPrescription = value;\r\n }\r\n\r\n public getMedicalPrescriptionStatus(): MedicalPrescriptionStatus {\r\n return this.medicalPrescriptionStatus;\r\n }\r\n\r\n public setMedicalPrescriptionStatus(value: number): void {\r\n this.medicalPrescriptionStatus = MedicalPrescriptionStatus.fromEnum(value);\r\n }\r\n\r\n public getErrorMessage(): string {\r\n return this.errorMessage;\r\n }\r\n\r\n public setErrorMessage(value: string): void {\r\n this.errorMessage = value;\r\n }\r\n\r\n public getPaymentMethod(): PaymentMethod {\r\n return this.paymentMethod;\r\n }\r\n\r\n public setPaymentMethod(value: PaymentMethod): void {\r\n this.paymentMethod = value;\r\n }\r\n}\r\n", "export class TransactionalManagementIndicators {\r\n private openIndicator: number;\r\n private pendingIndicator: number;\r\n private confirmedIndicator: number;\r\n private cancelledIndicator: number;\r\n private expiredIndicator: number;\r\n private rejectedIndicator: number;\r\n private refundIndicator: number;\r\n private refundedIndicator: number;\r\n private inconsistentIndicator: number;\r\n private exceededIndicator: number;\r\n\r\n public getOpenIndicator(): number {\r\n return this.openIndicator;\r\n }\r\n\r\n public setOpenIndicator(value: number): void {\r\n this.openIndicator = value;\r\n }\r\n\r\n public getPendingIndicator(): number {\r\n return this.pendingIndicator;\r\n }\r\n\r\n public setPendingIndicator(value: number): void {\r\n this.pendingIndicator = value;\r\n }\r\n\r\n public getConfirmedIndicator(): number {\r\n return this.confirmedIndicator;\r\n }\r\n\r\n public setConfirmedIndicator(value: number): void {\r\n this.confirmedIndicator = value;\r\n }\r\n\r\n public getCancelledIndicator(): number {\r\n return this.cancelledIndicator;\r\n }\r\n\r\n public setCancelledIndicator(value: number): void {\r\n this.cancelledIndicator = value;\r\n }\r\n\r\n public getExpiredIndicator(): number {\r\n return this.expiredIndicator;\r\n }\r\n\r\n public setExpiredIndicator(value: number): void {\r\n this.expiredIndicator = value;\r\n }\r\n\r\n public getRejectedIndicator(): number {\r\n return this.rejectedIndicator;\r\n }\r\n\r\n public setRejectedIndicator(value: number): void {\r\n this.rejectedIndicator = value;\r\n }\r\n\r\n public getRefundIndicator(): number {\r\n return this.refundIndicator;\r\n }\r\n\r\n public setRefundIndicator(value: number): void {\r\n this.refundIndicator = value;\r\n }\r\n\r\n public getRefundedIndicator(): number {\r\n return this.refundedIndicator;\r\n }\r\n\r\n public setRefundedIndicator(value: number): void {\r\n this.refundedIndicator = value;\r\n }\r\n\r\n public getInconsistentIndicator(): number {\r\n return this.inconsistentIndicator;\r\n }\r\n\r\n public setInconsistentIndicator(value: number): void {\r\n this.inconsistentIndicator = value;\r\n }\r\n public getExceededIndicator(): number {\r\n return this.exceededIndicator;\r\n }\r\n\r\n public setExceededIndicator(value: number): void {\r\n this.exceededIndicator = value;\r\n }\r\n}\r\n", "export class MonitorStatus {\r\n private static readonly options = new Map([\r\n [1, \"Aberta\"],\r\n [2, \"Pendente\"],\r\n [3, \"Concluída\"],\r\n [4, \"Cancelada\"],\r\n [5, \"Expirada\"],\r\n [6, \"Excedida\"], //Foi mantido este, caso em algum ambiente esteja como 6\r\n [7, \"Devolvida\"],\r\n [8, \"Devolução\"], //Agora \"Restrição\" está chegando como 7 do backend\r\n [99, \"Restrição\"],\r\n ]);\r\n\r\n public static fromEnum(value: number): MonitorStatus {\r\n return new MonitorStatus(value);\r\n }\r\n\r\n private readonly description: string;\r\n\r\n private constructor(status: number) {\r\n const textStatus = MonitorStatus.options.get(status);\r\n if (textStatus) {\r\n this.description = textStatus;\r\n } else {\r\n this.description = status + \"\";\r\n }\r\n }\r\n\r\n public getDescription(): string {\r\n return this.description;\r\n }\r\n}\r\n", "import { FiscalNumber } from \"../fiscal-number\";\r\nimport { MonitorStatus } from \"./monitor-status\";\r\nimport { ProductItem } from \"./product-item\";\r\nimport { ShippingType } from \"./shipping-type.enum\";\r\n\r\nexport class TransactionalManagementSale {\r\n private id: string;\r\n private uniqueSequencialNumber: string;\r\n private type: string;\r\n private beneficiarySocialNumber: string;\r\n private beneficiaryName: string;\r\n private isHolder: boolean;\r\n private cardNumber: string;\r\n private networkFiscalNumber: FiscalNumber;\r\n private totalPrice: number;\r\n private totalCardValue: number;\r\n private totalCheckoutValue: number;\r\n private transactionDate: string;\r\n private monitorStatus: MonitorStatus;\r\n private shippingType: ShippingType;\r\n private productItems: ProductItem[];\r\n private uniqueSequencialNumberCorrelated: string;\r\n\r\n constructor() {\r\n this.productItems = [];\r\n }\r\n \r\n public getId(): string {\r\n return this.id;\r\n }\r\n\r\n public setId(value: string): void {\r\n this.id = value;\r\n }\r\n\r\n public getUniqueSequencialNumber(): string {\r\n return this.uniqueSequencialNumber;\r\n }\r\n\r\n public setUniqueSequencialNumber(value: string): void {\r\n this.uniqueSequencialNumber = value;\r\n }\r\n\r\n public getType(): string {\r\n return this.type;\r\n }\r\n\r\n public setType(value: string): void {\r\n this.type = value;\r\n }\r\n\r\n public getBeneficiarySocialNumber(): string {\r\n return this.beneficiarySocialNumber;\r\n }\r\n\r\n public setBeneficiarySocialNumber(value: string): void {\r\n this.beneficiarySocialNumber = value;\r\n }\r\n\r\n public getShippingType(): ShippingType {\r\n return this.shippingType;\r\n }\r\n\r\n public setShippingType(value: ShippingType): void {\r\n this.shippingType = value;\r\n }\r\n\r\n public getBeneficiaryName(): string {\r\n return this.beneficiaryName;\r\n }\r\n\r\n public setBeneficiaryName(value: string): void {\r\n this.beneficiaryName = value;\r\n }\r\n\r\n public getIsHolder(): boolean {\r\n return this.isHolder;\r\n }\r\n\r\n public setIsHolder(value: boolean): void {\r\n this.isHolder = value;\r\n }\r\n\r\n public getCardNumber(): string {\r\n return this.cardNumber;\r\n }\r\n\r\n public setCardNumber(value: string): void {\r\n this.cardNumber = value;\r\n }\r\n\r\n public getNetworkFiscalNumber(): FiscalNumber {\r\n return this.networkFiscalNumber;\r\n }\r\n\r\n public setNetworkFiscalNumber(value: FiscalNumber): void {\r\n this.networkFiscalNumber = value;\r\n }\r\n\r\n public getTotalPrice(): number {\r\n return this.totalPrice;\r\n }\r\n\r\n public setTotalPrice(value: number): void {\r\n this.totalPrice = value;\r\n }\r\n\r\n public getTotalCardValue(): number {\r\n return this.totalCardValue;\r\n }\r\n\r\n public setTotalCardValue(value: number): void {\r\n this.totalCardValue = value;\r\n }\r\n\r\n public getTotalCheckoutValue(): number {\r\n return this.totalCheckoutValue;\r\n }\r\n\r\n public setTotalCheckoutValue(value: number): void {\r\n this.totalCheckoutValue = value;\r\n }\r\n\r\n public getTransactionDate(): string {\r\n return this.transactionDate;\r\n }\r\n\r\n public setTransactionDate(value: string): void {\r\n const year = value.slice(0, 4);\r\n const month = value.slice(5, 7);\r\n const day = value.slice(8, 10);\r\n const hour = value.slice(11, 16);\r\n this.transactionDate = `${day}/${month}/${year} - ${hour}`;\r\n }\r\n\r\n public getMonitorStatus(): MonitorStatus {\r\n return this.monitorStatus;\r\n }\r\n\r\n public setMonitorStatus(value: number): void {\r\n this.monitorStatus = MonitorStatus.fromEnum(value);\r\n }\r\n\r\n public getProductItems(): ProductItem[] {\r\n return this.productItems;\r\n }\r\n\r\n public setProductItems(value: ProductItem[]): void {\r\n this.productItems = value;\r\n }\r\n\r\n public getUniqueSequencialNumberCorrelated(): string {\r\n return this.uniqueSequencialNumberCorrelated;\r\n }\r\n\r\n public setUniqueSequencialNumberCorrelated(uniqueSequencialNumberCorrelated: string): void {\r\n this.uniqueSequencialNumberCorrelated = uniqueSequencialNumberCorrelated;\r\n }\r\n}\r\n", "import { TransactionalManagementIndicators } from \"./transactional-management-indicators\";\r\nimport { TransactionalManagementSale } from \"./transactional-management-sale\";\r\nimport { TransactionalManagementRequest } from \"./transactional-management.request\";\r\n\r\nexport class TransactionalManagementResult {\r\n private request: TransactionalManagementRequest;\r\n private start: number;\r\n private total: number;\r\n private totalPerPages: number;\r\n private sales: TransactionalManagementSale[];\r\n private indicators: TransactionalManagementIndicators;\r\n\r\n constructor() {\r\n this.sales = [];\r\n }\r\n\r\n public getRequest(): TransactionalManagementRequest {\r\n return this.request;\r\n }\r\n\r\n public setRequest(value: TransactionalManagementRequest): void {\r\n this.request = value;\r\n }\r\n\r\n public getStart(): number {\r\n return this.start;\r\n }\r\n\r\n public setStart(value: number): void {\r\n this.start = value;\r\n }\r\n\r\n public getTotal(): number {\r\n return this.total;\r\n }\r\n\r\n public setTotal(value: number): void {\r\n this.total = value;\r\n }\r\n\r\n public getTotalPerPages(): number {\r\n return this.totalPerPages;\r\n }\r\n\r\n public setTotalPerPages(value: number): void {\r\n this.totalPerPages = value;\r\n }\r\n\r\n public getSales(): TransactionalManagementSale[] {\r\n return this.sales;\r\n }\r\n\r\n public setSales(value: TransactionalManagementSale[]) {\r\n this.sales = value;\r\n }\r\n\r\n public addSales(value: TransactionalManagementSale[]): void {\r\n this.sales = this.sales.concat(value);\r\n }\r\n\r\n public hasSalesItem(): boolean {\r\n return this.sales.length > 0;\r\n }\r\n\r\n public getIndicators(): TransactionalManagementIndicators {\r\n return this.indicators;\r\n }\r\n\r\n public setIndicators(value: TransactionalManagementIndicators): void {\r\n this.indicators = value;\r\n }\r\n}\r\n", "import { FiscalNumber } from \"src/app/ui/models/domains/pbm/fiscal-number\";\r\nimport { StateAcronym } from \"src/app/ui/models/domains/pbm/state/state-acronym\";\r\nimport { MedicalPrescription } from \"src/app/ui/models/domains/pbm/transactional-management/medical-prescription\";\r\nimport { MedicalPrescriptionDocumentKey } from \"src/app/ui/models/domains/pbm/transactional-management/medical-prescription-document-key\";\r\nimport { PaymentMethod } from \"src/app/ui/models/domains/pbm/transactional-management/payment-method\";\r\nimport { PractitionerRegistration } from \"src/app/ui/models/domains/pbm/transactional-management/practitioner-registration\";\r\nimport { ProductItem } from \"src/app/ui/models/domains/pbm/transactional-management/product-item\";\r\nimport { TransactionalManagementIndicators } from \"src/app/ui/models/domains/pbm/transactional-management/transactional-management-indicators\";\r\nimport { TransactionalManagementSale } from \"src/app/ui/models/domains/pbm/transactional-management/transactional-management-sale\";\r\nimport { TransactionalManagementResult } from \"src/app/ui/models/domains/pbm/transactional-management/transactional-management.result\";\r\n\r\nexport function parseIndicators(payload: any): TransactionalManagementIndicators {\r\n const indicators = new TransactionalManagementIndicators();\r\n payload.map((item) => {\r\n switch (item.SalesOrderMonitorStatusDescription) {\r\n case \"Open\":\r\n indicators.setOpenIndicator(item.TotalCount);\r\n break;\r\n case \"Pending\":\r\n indicators.setPendingIndicator(item.TotalCount);\r\n break;\r\n case \"Confirmed\":\r\n indicators.setConfirmedIndicator(item.TotalCount);\r\n break;\r\n case \"Cancelled\":\r\n indicators.setCancelledIndicator(item.TotalCount);\r\n break;\r\n case \"Expired\":\r\n indicators.setExpiredIndicator(item.TotalCount);\r\n break;\r\n case \"Rejected\":\r\n indicators.setRejectedIndicator(item.TotalCount);\r\n break;\r\n case \"Refund\":\r\n indicators.setRefundIndicator(item.TotalCount);\r\n break;\r\n case \"Refunded\":\r\n indicators.setRefundedIndicator(item.TotalCount);\r\n break;\r\n case \"Inconsistent\":\r\n indicators.setInconsistentIndicator(item.TotalCount);\r\n break;\r\n case \"Exceeded\":\r\n indicators.setExceededIndicator(item.TotalCount);\r\n break;\r\n default:\r\n break;\r\n }\r\n });\r\n return indicators;\r\n}\r\n\r\nexport function parseTransactionalManagementResult(payload: any): TransactionalManagementResult {\r\n const result = new TransactionalManagementResult();\r\n result.setStart(payload.Start);\r\n result.setTotal(payload.Total);\r\n result.setTotalPerPages(payload.TotalPerPages);\r\n result.setSales(parseSales(payload.Data));\r\n return result;\r\n}\r\n\r\nexport function parseSale(payload: any): TransactionalManagementSale {\r\n const sale = new TransactionalManagementSale();\r\n sale.setId(payload.Id);\r\n sale.setUniqueSequencialNumber(payload.UniqueSequentialNumber);\r\n sale.setType(payload.OrderStatus);\r\n sale.setBeneficiarySocialNumber(payload.Beneficiary.SocialNumber);\r\n sale.setBeneficiaryName(payload.Beneficiary.Name);\r\n sale.setIsHolder(payload.Beneficiary.IsHolder);\r\n sale.setCardNumber(payload.Beneficiary.Card.CardNumber);\r\n sale.setNetworkFiscalNumber(new FiscalNumber(payload.NetworkInfo.FiscalNumber));\r\n sale.setTotalPrice(payload.TotalPrice);\r\n sale.setTotalCardValue(payload.TotalCardValue);\r\n sale.setTotalCheckoutValue(payload.TotalCheckoutValue);\r\n sale.setTransactionDate(payload.TransactionDate);\r\n sale.setMonitorStatus(payload.SalesOrderMonitorStatus);\r\n if (payload.Items)\r\n sale.setProductItems(parseProductItems(payload.Items));\r\n if (payload.UniqueSequentialNumberCorrelated)\r\n sale.setUniqueSequencialNumberCorrelated(payload.UniqueSequentialNumberCorrelated.Value);\r\n return sale;\r\n}\r\n\r\nexport function parseSales(payload: any): TransactionalManagementSale[] {\r\n const sales: TransactionalManagementSale[] = [];\r\n payload.map((item) => {\r\n const sale = new TransactionalManagementSale();\r\n sale.setId(item.Id);\r\n sale.setUniqueSequencialNumber(item.UniqueSequentialNumber);\r\n sale.setType(item.OrderStatus);\r\n sale.setBeneficiarySocialNumber(item.Beneficiary.SocialNumber);\r\n sale.setBeneficiaryName(item.Beneficiary.Name);\r\n sale.setIsHolder(item.Beneficiary.IsHolder);\r\n sale.setCardNumber(item.Beneficiary.Card.CardNumber);\r\n sale.setNetworkFiscalNumber(new FiscalNumber(item.NetworkInfo.FiscalNumber));\r\n sale.setTotalPrice(item.TotalPrice);\r\n sale.setTotalCardValue(item.TotalCardValue);\r\n sale.setTotalCheckoutValue(item.TotalCheckoutValue);\r\n sale.setTransactionDate(item.TransactionDate);\r\n sale.setShippingType(item.ShippingType);\r\n sale.setMonitorStatus(item.SalesOrderMonitorStatus);\r\n if (item.Items)\r\n sale.setProductItems(parseProductItems(item.Items));\r\n if (item.UniqueSequentialNumberCorrelated)\r\n sale.setUniqueSequencialNumberCorrelated(item.UniqueSequentialNumberCorrelated);\r\n\r\n sales.push(sale);\r\n });\r\n return sales;\r\n}\r\n\r\nexport function parseProductItems(payload: any): ProductItem[] {\r\n const productItems: ProductItem[] = [];\r\n payload.map((item) => {\r\n const productItem = new ProductItem();\r\n productItem.setEan(item.EAN);\r\n productItem.setProductName(item.ProductName);\r\n productItem.setGrossPrice(item.GrossPrice);\r\n productItem.setPrice(item.Price);\r\n productItem.setDiscountValue(item.DiscountValue);\r\n productItem.setSubsidyValue(item.SubsidyValue);\r\n productItem.setEmploymentPayrollValue(item.EmploymentPayrollValue);\r\n productItem.setCheckoutValue(item.CheckoutValue);\r\n productItem.setCardValue(item.CardValue);\r\n productItem.setBeneficiaryValue(item.BeneficiaryValue);\r\n productItem.setAuthorizedQuantity(item.AuthorizedQuantity);\r\n if (item.Messages)\r\n productItem.setErrorMessage(item.Messages.length > 0 ? item.Messages[0].Message : \"\");\r\n productItem.setMedicalPrescription(item.MedicalPrescription ? parseMedicalPrescription(item.MedicalPrescription) : null);\r\n productItem.setUsedNetworkNetPrice(item.UsedNetworkNetPrice);\r\n productItem.setUsedNetworkGrossPrice(item.UsedNetworkGrossPrice);\r\n productItem.setMedicalPrescriptionStatus(item.MedicalPrescriptionStatus);\r\n\r\n productItems.push(productItem);\r\n });\r\n return productItems;\r\n}\r\n\r\nfunction parseMedicalPrescription(payload: any): MedicalPrescription {\r\n const medicalPrescription = new MedicalPrescription();\r\n medicalPrescription.setMedicalPrescriptionDate(payload.MedicalPrescriptionDate);\r\n medicalPrescription.setMedicalPrescriptionInsertionDate(payload.MedicalPrescriptionDate);\r\n medicalPrescription.setPractitionerRegistration(parsePractitionerRegistration(payload));\r\n medicalPrescription.setQuantity(payload.Quantity);\r\n return medicalPrescription;\r\n}\r\n\r\nfunction parsePractitionerRegistration(payload: any): PractitionerRegistration {\r\n const registration = new PractitionerRegistration();\r\n registration.setRegistration(payload.PractitionerRegistration);\r\n registration.setState(new StateAcronym(payload.PractitionerState));\r\n return registration;\r\n}\r\n", "import { TransactionalManagementIndicators } from \"src/app/ui/models/domains/pbm/transactional-management/transactional-management-indicators\";\r\nimport { AbstractParser } from \"../../parser\";\r\nimport { parseIndicators } from \"./transaction-management-parse-functions\";\r\n\r\nexport class IndicatorsParser extends AbstractParser {\r\n parse(payload: any) {\r\n return parseIndicators(payload);\r\n }\r\n}\r\n", "import { TransactionalManagementResult } from \"src/app/ui/models/domains/pbm/transactional-management/transactional-management.result\";\r\nimport { AbstractParser } from \"../../parser\";\r\nimport { parseSale, parseTransactionalManagementResult } from \"./transaction-management-parse-functions\";\r\n\r\nexport class TransactionalManagementResultParser extends AbstractParser {\r\n parse(payload: any) {\r\n return parseTransactionalManagementResult(payload);\r\n }\r\n parseSale(payload: any) {\r\n return parseSale(payload);\r\n }\r\n}\r\n", "import { FiscalNumber } from \"../fiscal-number\";\r\n\r\nexport class NetworkExternalConfiguration {\r\n private networkFiscalNumber: string;\r\n private pricingConsultingEnable: boolean;\r\n\r\n public getNetworkFiscalNumber(): string {\r\n return this.networkFiscalNumber;\r\n }\r\n\r\n public setNetworkFiscalNumber(networkFiscalNumber: string): void {\r\n this.networkFiscalNumber = networkFiscalNumber;\r\n }\r\n\r\n public isPricingConsultingEnable(): boolean {\r\n return this.pricingConsultingEnable;\r\n }\r\n\r\n public setPricingConsultingEnable(pricingConsultingEnable: boolean): void {\r\n this.pricingConsultingEnable = pricingConsultingEnable;\r\n }\r\n}\r\n", "import { Injectable } from \"@angular/core\";\r\nimport { NetworkExternalConfiguration } from \"src/app/ui/models/domains/pbm/network-term/network-external-configuration.model\";\r\nimport { AbstractParser } from \"../../parser\";\r\n\r\n@Injectable()\r\nexport class NetworkExternalConfigurationParse extends AbstractParser {\r\n parse(payload: any): NetworkExternalConfiguration {\r\n const networkExternalConfiguration = new NetworkExternalConfiguration();\r\n networkExternalConfiguration.setNetworkFiscalNumber(payload.NetworkFiscalNumber.Value);\r\n networkExternalConfiguration.setPricingConsultingEnable(payload.PricingConsultEnabled);\r\n return networkExternalConfiguration;\r\n }\r\n}\r\n", "import { ModuleWithProviders, NgModule } from \"@angular/core\";\r\n\r\nimport { ScsAuthorizationTokenParser } from \"./scs-authorizatio-token.parser\";\r\nimport { UserCredentialsParser } from \"./user-credentials.parser\";\r\nimport { HealthParser } from \"./health.parser\";\r\nimport { UserCredentialsActivationParser } from \"./user-credentials-activation.parser\";\r\nimport { PowerBiReportParser } from \"./powerbi-report-parser\";\r\nimport { NewsParser } from \"./news.parser\";\r\nimport { ImportFileParser } from \"./pbm/beneficiary/import-file.parser\";\r\nimport { SearchCompanyParser } from \"./pbm/company/search-company.parser\";\r\nimport { CompanyParser } from \"./pbm/company/company.parser\";\r\nimport { AddCompanyParser } from \"./pbm/company/add-company.parser\";\r\nimport { ContactParser } from \"./pbm/company/contact.parser\";\r\nimport { AddContactParser } from \"./pbm/company/add-contact.parser\";\r\nimport { ProductTypeParser } from \"./pbm/benefit/product-type.parser\";\r\nimport { PaymentTypeParser } from \"./pbm/benefit/payment-type.parser\";\r\nimport { ProductSubtypeParser } from \"./pbm/benefit/product-subtype.parser\";\r\nimport { BenefitConfigurationParser } from \"./pbm/benefit/benefit-configuration.parser\";\r\nimport { ProductConfigurationParser } from \"./pbm/benefit/product-configuration.parser\";\r\nimport { NetworkProductConfigurationParser } from \"./pbm/benefit/network-product-configuration.parser\";\r\nimport { NetworkParser } from \"./pbm/benefit/network.parser\";\r\nimport { ProductCategoryParser } from \"./pbm/benefit/product-category.parser\";\r\nimport { TransactionConfigurationParser } from \"./pbm/benefit/transaction-configuration.parser\";\r\nimport { MedicalPrescriptionConfigurationParser } from \"./pbm/benefit/medical-prescription-configuration.parser\";\r\nimport { MedicalPrescriptionValidityParser } from \"./pbm/benefit/medical-prescription.parser\";\r\nimport { LifeCycleConfigurationParser } from \"./pbm/benefit/life-cycle-configuration.parser\";\r\nimport { SubsidyConfigurationParser } from \"./pbm/benefit/subsidy-configuration.parser\";\r\nimport { FindBeneficiaryByKeyParser } from \"./pbm/beneficiary/find-beneficiary-by-key.parser\";\r\nimport { SaveBenficiaryParser } from \"./pbm/beneficiary/save-beneficiary.parser\";\r\nimport { SearchCompanyFromMDMParser } from \"./pbm/company/search-company-from-mdm.parser\";\r\nimport { FindSalesHistoryParser } from \"./pbm/sales-history/find-sales-history.parser\";\r\nimport { FindSalesHistoryByFiscalNumberParser } from \"./pbm/sales-history/find-sales-history-by-fiscal-number.parser\";\r\nimport { SearchUserParser } from \"./pbm/user/search-user.parser\";\r\nimport { SearchUserByUserKeyParser } from \"./pbm/user/search-user-by-user-key.parser\";\r\nimport { RequestUserRolesParser } from \"./pbm/user/request-user-roles.parser\";\r\nimport { UserCredentialParser } from \"./pbm/user/user-credential.parser\";\r\nimport { SearchProductsByParser } from \"./pbm/benefit/search-products-by.parser\";\r\nimport { SearchTherapeuticClassesByParser } from \"./pbm/benefit/search-therapeutic-classes-by.parser\";\r\nimport { ResponseErrorParser } from \"./pbm/response-error.parser\";\r\nimport { FindBeneficiariesByFiscalNumberParser } from \"./pbm/beneficiary/find-beneficiaries-by-fiscal-number.parser\";\r\nimport { FindBeneficiaryHolderBySocialNumberParser } from \"./pbm/beneficiary/find-beneficiary-by-holder-social-number.parser\";\r\nimport { FindBeneficiaryBySocialNumberParser } from \"./pbm/beneficiary/find-beneficiary-by-social-number.parser\";\r\nimport { FindFinancialStatementParser } from \"./pbm/financial-statement/find-financial-statement.parse\";\r\nimport { FindFinancialBalanceBySocialNumberParser } from \"./pbm/financial-statement/financial-balance.parser\";\r\nimport { StateAcronymParser } from \"./pbm/state/state-acronym.parser\";\r\nimport { CityParser } from \"./pbm/state/city.parser\";\r\nimport { BeneficiaryConfigurationParser } from \"./pbm/benefit/beneficiary-configuration.parser\";\r\nimport { GetFileExportStatusParser } from \"./get-file-export-status.parser\";\r\nimport { ExportFileParser } from \"./export-file.parser\";\r\nimport { BlockReasonListParser } from \"./pbm/beneficiary/block-reason-list.parser\";\r\nimport { JobDescriptionParser } from \"./pbm/job-description/job-description.parser\";\r\nimport { OrderBeneficiaryCardParser } from \"./pbm/beneficiary/order-beneficiary-card.parser\";\r\nimport { IndicatorDataParser } from \"./pbm/indicator/indicator-data.parser\";\r\nimport { CompanyFinancialReportsParser } from \"./pbm/company/company-financial-reports.parser\";\r\nimport { SearchNetworkFinancialStatementsParse } from \"./pbm/network/search-network-financial-statement.parse\";\r\nimport { NetworkTermParser } from \"./pbm/network-term/network-term.parser\";\r\nimport { NetworkTermFormParser } from \"./pbm/network-term/network-term-form.parser\";\r\nimport { NetworkAcceptTermParser } from \"./pbm/network-term/network-accept-term.parser\";\r\nimport { NetworksParser } from \"./pbm/network-term/networks.parser\";\r\nimport { IndustryDiscountsPageableResultParser } from \"./pbm/industry/industry-discounts-pageable-result.parser\";\r\nimport { ImportIndustryProductDiscountParser } from \"./pbm/industry/import-industry-product-discount.parser\";\r\nimport { IndustryDiscountParser } from \"./pbm/industry/industry-discount.parser\";\r\nimport { SearchProductsParser } from \"./pbm/product-management/search-products.parser\";\r\nimport { ProductTypesParser } from \"./pbm/product-management/product-types.parser\";\r\nimport { ProductSubTypesParser } from \"./pbm/product-management/product-sub-types.parser\";\r\nimport { TherapeuticClassParser } from \"./pbm/product-management/therapeutic-class.parser\";\r\nimport { ProductUseValiditiesParser } from \"./pbm/product-management/product-use-validities.parser\";\r\nimport { ProductPricingsParser } from \"./pbm/product-management/product-pricings.parser\";\r\nimport { PriceRegimesParser } from \"./pbm/product-management/price-regimes.parser\";\r\nimport { UseTypesParser } from \"./pbm/product-management/use-types.parser\";\r\nimport { TributaryCreditConcessionsParser } from \"./pbm/product-management/tributary-credit-concessions.parser\";\r\nimport { ProductPrincingTemplateParser } from \"./pbm/product-management/product-pricing-template.parser\";\r\nimport { IndicatorsParser } from \"./pbm/transaction-management/indicators.parser\";\r\nimport { TransactionalManagementResultParser } from \"./pbm/transaction-management/transaction-management-result.parser\";\r\nimport { ExportFileAsXLSXParser } from \"./export-file-as-xlsx.parser\";\r\nimport { SearchPractitionersParser } from \"./pbm/practitioner-management/search-practitioners.parser\";\r\nimport { PractitionerSpecialtiesParser } from \"./pbm/practitioner-management/practitioner-specialties.parser\";\r\nimport { SearchPractitionerByKeyParser } from \"./pbm/practitioner-management/search-practitioner-by-key.parser\";\r\nimport { PractitionerStatusParser } from \"./pbm/practitioner-management/practitioner-status.parser\";\r\nimport { NetworkTermStatusParser } from \"./pbm/network-term/network-term-status.parser\";\r\nimport { NetworkExternalConfigurationParse } from \"./pbm/network/network-external-configuration.parser\";\r\nimport { ClustersPageableResultParser } from \"./pbm/clusters/clusters-pageable-result.parser\";\r\nimport { AddNewClusterParser } from \"./pbm/clusters/add-new-cluster.parser\";\r\nimport { ClusterProductsPageableResultParser } from \"./pbm/clusters/clusters-products-pageable-result.parser\";\r\nimport { ImportFileClusterParser } from \"./pbm/clusters/import-cluster-file.parser\";\r\nimport { ClusterParser } from \"./pbm/clusters/cluster.parser\";\r\nimport { CompanyConfigurationParser } from \"./pbm/company/company-configuration.parser\";\r\nimport { ZipCodeIntegrationParser } from \"./pbm/beneficiary/zip-code-integration.parser\";\r\n\r\n@NgModule({})\r\nexport class ParserModule {\r\n static forRoot(): ModuleWithProviders {\r\n return {\r\n ngModule: ParserModule,\r\n providers: [\r\n ScsAuthorizationTokenParser,\r\n UserCredentialsParser,\r\n HealthParser,\r\n UserCredentialsActivationParser,\r\n PowerBiReportParser,\r\n NewsParser,\r\n ImportFileParser,\r\n SaveBenficiaryParser,\r\n SearchCompanyParser,\r\n CompanyParser,\r\n AddCompanyParser,\r\n ContactParser,\r\n AddContactParser,\r\n SearchCompanyFromMDMParser,\r\n BenefitConfigurationParser,\r\n ProductConfigurationParser,\r\n ProductTypeParser,\r\n PaymentTypeParser,\r\n ProductSubtypeParser,\r\n SearchProductsByParser,\r\n SearchTherapeuticClassesByParser,\r\n NetworkProductConfigurationParser,\r\n NetworkParser,\r\n ProductCategoryParser,\r\n ZipCodeIntegrationParser,\r\n MedicalPrescriptionValidityParser,\r\n TransactionConfigurationParser,\r\n MedicalPrescriptionConfigurationParser,\r\n SubsidyConfigurationParser,\r\n BeneficiaryConfigurationParser,\r\n LifeCycleConfigurationParser,\r\n FindSalesHistoryParser,\r\n FindSalesHistoryByFiscalNumberParser,\r\n SearchUserParser,\r\n SearchUserByUserKeyParser,\r\n RequestUserRolesParser,\r\n UserCredentialParser,\r\n ResponseErrorParser,\r\n FindBeneficiaryByKeyParser,\r\n FindBeneficiariesByFiscalNumberParser,\r\n FindBeneficiaryHolderBySocialNumberParser,\r\n FindBeneficiaryBySocialNumberParser,\r\n FindFinancialStatementParser,\r\n FindFinancialBalanceBySocialNumberParser,\r\n StateAcronymParser,\r\n CityParser,\r\n GetFileExportStatusParser,\r\n ExportFileParser,\r\n ExportFileAsXLSXParser,\r\n BlockReasonListParser,\r\n JobDescriptionParser,\r\n OrderBeneficiaryCardParser,\r\n IndicatorDataParser,\r\n CompanyFinancialReportsParser,\r\n SearchNetworkFinancialStatementsParse,\r\n NetworkTermParser,\r\n NetworkTermFormParser,\r\n NetworkAcceptTermParser,\r\n NetworksParser,\r\n IndustryDiscountsPageableResultParser,\r\n IndustryDiscountParser,\r\n ImportIndustryProductDiscountParser,\r\n SearchProductsParser,\r\n ProductTypesParser,\r\n ProductSubTypesParser,\r\n TherapeuticClassParser,\r\n ProductUseValiditiesParser,\r\n ProductPricingsParser,\r\n PriceRegimesParser,\r\n UseTypesParser,\r\n TributaryCreditConcessionsParser,\r\n ProductPrincingTemplateParser,\r\n IndicatorsParser,\r\n TransactionalManagementResultParser,\r\n SearchPractitionersParser,\r\n PractitionerSpecialtiesParser,\r\n SearchPractitionerByKeyParser,\r\n PractitionerStatusParser,\r\n NetworkTermStatusParser,\r\n NetworkExternalConfigurationParse,\r\n ClusterParser,\r\n ClustersPageableResultParser,\r\n ClusterProductsPageableResultParser,\r\n ImportFileClusterParser,\r\n AddNewClusterParser,\r\n CompanyConfigurationParser,\r\n ],\r\n };\r\n }\r\n}\r\n", "import { NgModule, ModuleWithProviders } from \"@angular/core\";\r\nimport { provideHttpClient, withInterceptorsFromDi } from \"@angular/common/http\";\r\nimport { RemoteGatewayFactory } from \"./remote-gateway-factory\";\r\nimport { RouteStrategyFactory } from \"./route-strategy-factory\";\r\n\r\n@NgModule({ imports: [], providers: [provideHttpClient(withInterceptorsFromDi())] })\r\nexport class GatewayModule {\r\n static forRoot(): ModuleWithProviders {\r\n return {\r\n ngModule: GatewayModule,\r\n providers: [RemoteGatewayFactory, RouteStrategyFactory],\r\n };\r\n }\r\n}\r\n", "import { HealthItem } from \"../models/domains/health/healthItem.model\";\r\nimport { HealthParser } from \"./parsers/health.parser\";\r\nimport { RemoteGatewayFactory } from \"../gateways/remote-gateway-factory\";\r\nimport { BackendUrl } from \"../models/domains/urls/back-end.url\";\r\nimport { Injectable } from \"@angular/core\";\r\n\r\n@Injectable()\r\nexport class HealthRepository {\r\n constructor(private remoteGatewayFactory: RemoteGatewayFactory, private healthParser: HealthParser) {}\r\n\r\n public async getItems(): Promise> {\r\n try {\r\n const headers = {\r\n \"Content-Type\": \"application/json\",\r\n };\r\n const remoteGateway = this.remoteGatewayFactory.createDefaultRemoteGateway();\r\n const data = await remoteGateway.getWithHeaders(new BackendUrl(\"/api/health\"), headers);\r\n return this.healthParser.parse(data);\r\n } catch (error) {\r\n return await Promise.reject(error);\r\n }\r\n }\r\n}\r\n", "import { Injectable } from '@angular/core';\r\nimport { BehaviorSubject } from 'rxjs';\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\n\r\nexport class NetworkTotalObserverService {\r\n obsNetworkTotal: BehaviorSubject = new BehaviorSubject(null);\r\n\r\n changeNetworkTotal(data: number) {\r\n this.obsNetworkTotal.next(data);\r\n }\r\n}", "import { Injectable } from \"@angular/core\";\r\nimport { RemoteGatewayFactory } from \"../../gateways/remote-gateway-factory\";\r\nimport { PageableResult } from \"../../models/domains/paginator/pageable-result\";\r\nimport { Network } from \"../../models/domains/pbm/Benefit/network\";\r\nimport { ExportOrderKey } from \"../../models/domains/pbm/exports/export-order-key\";\r\nimport { NetworkExternalConfiguration } from \"../../models/domains/pbm/network-term/network-external-configuration.model\";\r\nimport { BackendUrl } from \"../../models/domains/urls/back-end.url\";\r\nimport { NetworkFinancialStatementPagingRequest } from \"../../pages/network-financial-statement/network-financial-statement-paging-request\";\r\nimport { UserRoleMediator } from \"../mediators/user-role.mediator\";\r\nimport { NetworkParser } from \"../parsers/pbm/benefit/network.parser\";\r\nimport { NetworkExternalConfigurationParse } from \"../parsers/pbm/network/network-external-configuration.parser\";\r\nimport { SearchNetworkFinancialStatementsParse } from \"../parsers/pbm/network/search-network-financial-statement.parse\";\r\nimport { NetworkTotalObserverService } from \"../../services/observers/networks-observer.service\";\r\n\r\nexport interface NetworkDto{\r\n CorporateName: string;\r\n DisplayName: string;\r\n TradingName: string;\r\n FiscalNumber: {\r\n Value: string;\r\n }\r\n}\r\nexport interface SearchNetworksResponse {\r\n\r\n Start: number;\r\n Total: number;\r\n TotalPerPages: number;\r\n Data: NetworkDto[];\r\n}\r\n\r\n@Injectable()\r\nexport class NetworkRepository {\r\n private headers: any;\r\n private fiscalNumberRootHeader: any;\r\n\r\n constructor(\r\n private networkObs: NetworkTotalObserverService,\r\n private remoteGatewayFactory: RemoteGatewayFactory,\r\n private userRoleMediator: UserRoleMediator,\r\n private networkParser: NetworkParser,\r\n private searchNetworkFinancialStatementsParse: SearchNetworkFinancialStatementsParse,\r\n private networkExternalConfigurationParse: NetworkExternalConfigurationParse,\r\n ) {\r\n this.headers = {\r\n \"Content-Type\": \"application/json\",\r\n };\r\n this.fiscalNumberRootHeader = {\r\n \"Content-Type\": \"application/json\",\r\n \"X-NetworkFiscalNumberRoot-Filter\": this.userRoleMediator.getCompanyFiscalNumberRoot(),\r\n };\r\n }\r\n\r\n\r\n\r\n public async searchNetworkFinancialStatements(pagingRequest: NetworkFinancialStatementPagingRequest): Promise {\r\n const body = {\r\n FilterText: pagingRequest.getFiscalNumber() ? pagingRequest.getFiscalNumber() : null,\r\n ReferenceYear: pagingRequest.getReferenceYear(),\r\n ReferenceMonth: pagingRequest.getReferenceMonth(),\r\n StartIndex: pagingRequest.getStart(),\r\n TotalPerPages: pagingRequest.getEnd(),\r\n };\r\n try {\r\n const data = await this.remoteGatewayFactory\r\n .createDefaultRemoteGateway()\r\n .postWithHeaders(new BackendUrl(\"/api/pbm/adm/network/financial-statements\"), body, this.fiscalNumberRootHeader);\r\n return this.searchNetworkFinancialStatementsParse.parse(data);\r\n } catch (httpErrorResponse) {\r\n return await Promise.reject(httpErrorResponse.error.Data.ErrorMessage);\r\n }\r\n }\r\n\r\n public async findNetworkExportOrderKey(fiscalNumber: string, startAt: string, endAt: string): Promise {\r\n const body = JSON.stringify({\r\n FiscalNumber: {\r\n Value: fiscalNumber,\r\n },\r\n StartAt: startAt,\r\n EndAt: endAt,\r\n });\r\n try {\r\n const data = await this.remoteGatewayFactory\r\n .createDefaultRemoteGateway()\r\n .postWithHeaders(new BackendUrl(\"/api/pbm/adm/network/financial-statement\"), body, this.headers);\r\n return new ExportOrderKey(data.toString());\r\n } catch (error) {\r\n return await Promise.reject(error);\r\n }\r\n }\r\n\r\n public async getExternalNetworkConfiguration(fiscalNumber: string): Promise {\r\n try {\r\n const data = await this.remoteGatewayFactory\r\n .createDefaultRemoteGateway()\r\n .get(new BackendUrl(\"/api/pbm/adm/external-network-configuration/\" + fiscalNumber));\r\n return this.networkExternalConfigurationParse.parse(data);\r\n } catch (error) {\r\n return await Promise.reject(error);\r\n }\r\n }\r\n\r\n public async enableNetworkPricingConsult(fiscalNumber: string): Promise {\r\n const headers = { \"Content-Type\": \"application/json\" };\r\n const body = null;\r\n\r\n try {\r\n const data = await this.remoteGatewayFactory\r\n .createDefaultRemoteGateway()\r\n .putWithHeaders(new BackendUrl(\"/api/pbm/adm/external-network-configuration/EnableNetworkPricingConsult/\" + fiscalNumber), body, headers);\r\n return data;\r\n } catch (error) {\r\n return await Promise.reject(error);\r\n }\r\n }\r\n\r\n public async disableNetworkPricingConsult(fiscalNumber: string): Promise {\r\n const headers = { \"Content-Type\": \"application/json\" };\r\n const body = null;\r\n\r\n try {\r\n const data = await this.remoteGatewayFactory\r\n .createDefaultRemoteGateway()\r\n .putWithHeaders(new BackendUrl(\"/api/pbm/adm/ExternalNetworkConfiguration/DisableNetworkPricingConsult/\" + fiscalNumber), body, headers);\r\n return data;\r\n } catch (error) {\r\n return await Promise.reject(error);\r\n }\r\n }\r\n\r\n searchNetworks(payload: { startIndex: number, totalPerPages: number, filterText: string }): Promise {\r\n return this.remoteGatewayFactory\r\n .createDefaultRemoteGateway()\r\n .postWithHeaders(new BackendUrl(\"/api/pbm/adm/network/networks\"), payload, this.headers) as Promise;\r\n }\r\n}\r\n", "import { Injectable } from \"@angular/core\";\r\nimport { RemoteGatewayFactory } from \"../../gateways/remote-gateway-factory\";\r\nimport { BackendUrl } from \"../../models/domains/urls/back-end.url\";\r\nimport { ProductCategoryParser } from \"../parsers/pbm/benefit/product-category.parser\";\r\n\r\n@Injectable()\r\nexport class ProductCategoryRepository {\r\n constructor(private remoteGatewayFactory: RemoteGatewayFactory, private productCategoryParser: ProductCategoryParser) {}\r\n\r\n public async getProductCategoryList(): Promise {\r\n const headers = {\r\n \"Content-Type\": \"application/json\",\r\n };\r\n try {\r\n const remoteGateway = this.remoteGatewayFactory.createDefaultRemoteGateway();\r\n const data = await remoteGateway.getWithHeaders(new BackendUrl(\"/api/pbm/adm/products/categories\"), headers);\r\n return this.productCategoryParser.parse(data);\r\n } catch (error) {\r\n return await Promise.reject(error);\r\n }\r\n }\r\n}\r\n", "import { Injectable } from \"@angular/core\";\r\nimport { NetworkTermRequest } from \"../../components/pbm/network-term/search-network-term/network-term-request\";\r\nimport { NetworkTermSearchResult } from \"../../components/pbm/network-term/search-network-term/network-term-search-result\";\r\nimport { RemoteGatewayFactory } from \"../../gateways/remote-gateway-factory\";\r\nimport { ExportOrderKey } from \"../../models/domains/pbm/exports/export-order-key\";\r\nimport { FiscalNumber } from \"../../models/domains/pbm/fiscal-number\";\r\nimport { NetworkAcceptTerm } from \"../../models/domains/pbm/network-term/network-accept-term\";\r\nimport { NetworkTermForm, NetworkTermFormGroup } from \"../../models/domains/pbm/network-term/network-form-term\";\r\nimport { NetworkTerm } from \"../../models/domains/pbm/network-term/network-term\";\r\nimport { BackendUrl } from \"../../models/domains/urls/back-end.url\";\r\nimport { MdmBackendUrl } from \"../../models/domains/urls/mdm-back-end.url\";\r\nimport { NetworkAcceptTermParser } from \"../parsers/pbm/network-term/network-accept-term.parser\";\r\nimport { NetworkTermFormParser } from \"../parsers/pbm/network-term/network-term-form.parser\";\r\nimport { NetworkTermParser } from \"../parsers/pbm/network-term/network-term.parser\";\r\nimport { NetworksParser } from \"../parsers/pbm/network-term/networks.parser\";\r\n\r\n@Injectable()\r\nexport class NetworkTermRepository {\r\n constructor(\r\n private remoteGatewayFactory: RemoteGatewayFactory,\r\n private termParser: NetworkTermParser,\r\n private termFormParser: NetworkTermFormParser,\r\n private networkAcceptTermParser: NetworkAcceptTermParser,\r\n private networksParser: NetworksParser,\r\n ) {}\r\n\r\n public async acceptTerm(fiscalNumber: FiscalNumber, term: NetworkTerm): Promise {\r\n const body = {\r\n TermKey: term.getTermKey(),\r\n FiscalNumber: fiscalNumber.getValue(),\r\n Accepted: true,\r\n };\r\n const headers = { \"Content-Type\": \"application/json\" };\r\n try {\r\n const remoteGateway = this.remoteGatewayFactory.createDefaultRemoteGateway();\r\n await remoteGateway.postWithHeaders(new BackendUrl(\"/api/pbm/adm/network/term/accept\"), body, headers);\r\n } catch (error) {\r\n return await Promise.reject(error);\r\n }\r\n }\r\n\r\n public async getTerm(networkInfoKey: string): Promise {\r\n try {\r\n const headers = { \"Content-Type\": \"application/json\" };\r\n const remoteGateway = this.remoteGatewayFactory.createDefaultRemoteGateway();\r\n const data: any = await remoteGateway.getWithHeaders(new BackendUrl(\"/api/pbm/adm/network/term/\" + networkInfoKey), headers);\r\n return Promise.resolve(this.termParser.parse(data));\r\n } catch (error) {\r\n return await Promise.reject(error);\r\n }\r\n }\r\n\r\n public async getNetworkAcceptTermByFiscalNumber(fiscalNumber: FiscalNumber): Promise {\r\n try {\r\n const headers = { \"Content-Type\": \"application/json\" };\r\n const remoteGateway = this.remoteGatewayFactory.createDefaultRemoteGateway();\r\n const data: any = await remoteGateway.getWithHeaders(new BackendUrl(\"/api/pbm/adm/network/term/active/\" + fiscalNumber.getValue()), headers);\r\n return Promise.resolve(this.networkAcceptTermParser.parse(data));\r\n } catch (error) {\r\n return await Promise.reject(error);\r\n }\r\n }\r\n\r\n public async getTermForm(fiscalNumber: FiscalNumber): Promise {\r\n try {\r\n const headers = { \"Content-Type\": \"application/json\" };\r\n const remoteGateway = this.remoteGatewayFactory.createDefaultRemoteGateway();\r\n const data: any = await remoteGateway.getWithHeaders(\r\n new MdmBackendUrl(\"/api/mdm/networks/additional-info?fiscalNumber=\" + fiscalNumber.getValue()),\r\n headers,\r\n );\r\n return Promise.resolve(this.termFormParser.parse(data));\r\n } catch (error) {\r\n return await Promise.reject(error);\r\n }\r\n }\r\n\r\n public async sendTermForm(form: NetworkTermFormGroup): Promise {\r\n try {\r\n const formData = form.createFormData();\r\n const headers = { Accept: \"application/json\" };\r\n const remoteGateway = this.remoteGatewayFactory.createDefaultRemoteGateway();\r\n const data: any = await remoteGateway.postWithHeaders(new MdmBackendUrl(\"/api/mdm/networks/additional-info\"), formData, headers);\r\n return Promise.resolve(this.termParser.parse(data));\r\n } catch (error) {\r\n return await Promise.reject(error);\r\n }\r\n }\r\n\r\n public async downloadTerm(termId: string, networkInfoKey: string): Promise {\r\n try {\r\n const headers = { \"Content-Type\": \"application/json\" };\r\n const remoteGateway = this.remoteGatewayFactory.createDefaultRemoteGateway();\r\n const data: Blob = await remoteGateway.downloadAsGet(new MdmBackendUrl(\"/api/mdm/term/download/\" + termId + \"/\" + networkInfoKey), headers);\r\n return Promise.resolve(data);\r\n } catch (error) {\r\n return await Promise.reject(error);\r\n }\r\n }\r\n\r\n public async getNetworksAcceptedTerm(request: NetworkTermRequest): Promise {\r\n try {\r\n const headers = { \"Content-Type\": \"application/json\" };\r\n const body = JSON.stringify({\r\n StartIndex: request.getStartIndex(),\r\n TotalPerPages: request.getTotalPerPages(),\r\n FilterText: request.getFilterText() ? request.getFilterText() : \"\",\r\n StartAt: request.getStartDate(),\r\n EndAt: request.getEndDate(),\r\n });\r\n const remoteGateway = this.remoteGatewayFactory.createDefaultRemoteGateway();\r\n const data: any = await remoteGateway.postWithHeaders(new BackendUrl(\"/api/pbm/adm/network/term/accepted\"), body, headers);\r\n const searchResult = this.networksParser.parse(data);\r\n searchResult.setRequest(request);\r\n return Promise.resolve(searchResult);\r\n } catch (error) {\r\n return await Promise.reject(error);\r\n }\r\n }\r\n\r\n public async findNetworkTermExportOrderKey(request: NetworkTermRequest): Promise {\r\n const headers = { \"Content-Type\": \"application/json\" };\r\n const body = JSON.stringify({\r\n StartIndex: request.getStartIndex(),\r\n TotalPerPages: request.getEndIndex(),\r\n FilterText: request.getFilterText() ? request.getFilterText() : \"\",\r\n StartAt: request.getStartDate(),\r\n EndAt: request.getEndDate(),\r\n });\r\n try {\r\n const data = await this.remoteGatewayFactory\r\n .createDefaultRemoteGateway()\r\n .postWithHeaders(new BackendUrl(\"/api/pbm/adm/network/term/accepted/export\"), body, headers);\r\n const exportOrderKey = new ExportOrderKey(data.toString());\r\n return exportOrderKey;\r\n } catch (referenceError) {\r\n const errorMessage = referenceError.error.Data.ErrorMessage;\r\n return await Promise.reject(errorMessage);\r\n }\r\n }\r\n}\r\n", "import { Injectable } from \"@angular/core\";\r\nimport { RemoteGatewayFactory } from \"../../gateways/remote-gateway-factory\";\r\nimport { ExportOrderKey } from \"../../models/domains/pbm/exports/export-order-key\";\r\nimport { TransactionalManagementIndicators } from \"../../models/domains/pbm/transactional-management/transactional-management-indicators\";\r\nimport { TransactionalManagementRequest } from \"../../models/domains/pbm/transactional-management/transactional-management.request\";\r\nimport { BackendUrl } from \"../../models/domains/urls/back-end.url\";\r\nimport { IndicatorsParser } from \"../parsers/pbm/transaction-management/indicators.parser\";\r\n\r\nimport { PaginationTransactionalManagementModel, TransactionalManagementModel } from \"../../models/domains/pbm/transactional-management/transactional-management.model\";\r\n\r\n@Injectable()\r\nexport class TransactionManagementRepository {\r\n constructor(\r\n private remoteGatewayFactory: RemoteGatewayFactory,\r\n private indicatorsParser: IndicatorsParser,\r\n ) {}\r\n\r\n public async searchSales(request: TransactionalManagementRequest): Promise {\r\n const body = {\r\n FiscalNumber: request.getFiscalNumber() ? { Value: request.getFiscalNumber().getValue() } : null,\r\n SocialNumber: request.geteSocialNumber() ? { Value: request.geteSocialNumber().getValue() } : null,\r\n Card: request.getCard() ? { CardNumber: request.getCard().getCardNumber() } : null,\r\n UniqueSequentialNumber: request.getUniqueSequentialNumber() ? { Value: request.getUniqueSequentialNumber() } : null,\r\n ShippingType: request.getShippingType() > -1 ? request.getShippingType() : null,\r\n StartAt: request.getStartDate(),\r\n EndAt: request.getEndDate(),\r\n SalesOrderMonitorStatus: request.getMonitorStatus(),\r\n StartIndex: request.getStartIndex(),\r\n TotalPerPages: request.getTotalPerPage(),\r\n };\r\n const headers = { \"Content-Type\": \"application/json\" };\r\n try {\r\n const remoteGateway = this.remoteGatewayFactory.createDefaultRemoteGateway();\r\n const data : any = await remoteGateway.postWithHeaders(new BackendUrl(\"/api/pbm/adm/sales-order/monitor\"), body, headers);\r\n return Promise.resolve(data)\r\n } catch (error) {\r\n return Promise.reject(error);\r\n }\r\n }\r\n\r\n public async searchSalesById(id : string): Promise {\r\n const headers = { \"Content-Type\": \"application/json\" };\r\n try {\r\n const remoteGateway = this.remoteGatewayFactory.createDefaultRemoteGateway();\r\n const data : any = await remoteGateway.getWithHeaders(new BackendUrl(\"/api/pbm/adm/sales-order/monitor/\" + id), headers);\r\n return Promise.resolve(data);\r\n } catch (error) {\r\n return Promise.reject(error);\r\n }\r\n }\r\n\r\n public async searchIndicators(request: TransactionalManagementRequest): Promise {\r\n const body = {\r\n FiscalNumber: request.getFiscalNumber() ? { Value: request.getFiscalNumber().getValue() } : null,\r\n SocialNumber: request.geteSocialNumber() ? { Value: request.geteSocialNumber().getValue() } : null,\r\n Card: request.getCard() ? { CardNumber: request.getCard().getCardNumber(), IsBlocked: true, IsCancelled: true } : null,\r\n UniqueSequentialNumber: request.getUniqueSequentialNumber() ? { Value: request.getUniqueSequentialNumber() } : null,\r\n ShippingType: request.getShippingType() > -1 ? request.getShippingType() : null,\r\n StartAt: request.getStartDate(),\r\n EndAt: request.getEndDate(),\r\n SalesOrderMonitorStatus: request.getMonitorStatus(),\r\n StartIndex: request.getStartIndex(),\r\n TotalPerPages: request.getTotalPerPage(),\r\n };\r\n const headers = { \"Content-Type\": \"application/json\" };\r\n try {\r\n const remoteGateway = this.remoteGatewayFactory.createDefaultRemoteGateway();\r\n const data = await remoteGateway.postWithHeaders(new BackendUrl(\"/api/pbm/adm/sales-order/indicator\"), body, headers);\r\n return Promise.resolve(this.indicatorsParser.parse(data));\r\n } catch (error) {\r\n return Promise.reject(error);\r\n }\r\n }\r\n\r\n public async findNetworkTermExportOrderKey(request: TransactionalManagementRequest): Promise {\r\n const body = {\r\n FiscalNumber: request.getFiscalNumber() ? { Value: request.getFiscalNumber().getValue() } : null,\r\n SocialNumber: request.geteSocialNumber() ? { Value: request.geteSocialNumber().getValue() } : null,\r\n Card: request.getCard() ? { CardNumber: request.getCard().getCardNumber(), IsBlocked: true, IsCancelled: true } : null,\r\n UniqueSequentialNumber: request.getUniqueSequentialNumber() ? { Value: request.getUniqueSequentialNumber() } : null,\r\n ShippingType: request.getShippingType() > -1 ? request.getShippingType() : null,\r\n StartAt: request.getStartDate(),\r\n EndAt: request.getEndDate(),\r\n SalesOrderMonitorStatus: request.getMonitorStatus(),\r\n StartIndex: request.getStartIndex(),\r\n TotalPerPages: request.getTotalPerPage(),\r\n };\r\n const headers = { \"Content-Type\": \"application/json\" };\r\n try {\r\n const data = await this.remoteGatewayFactory\r\n .createDefaultRemoteGateway()\r\n .postWithHeaders(new BackendUrl(\"/api/pbm/adm/sales-order/monitor/export\"), body, headers);\r\n const exportOrderKey = new ExportOrderKey(data.toString());\r\n return exportOrderKey;\r\n } catch (referenceError) {\r\n const errorMessage = referenceError.error.Data.ErrorMessage;\r\n return await Promise.reject(errorMessage);\r\n }\r\n }\r\n public async findSalesDatails(id: string ): Promise {\r\n \r\n const headers = { \"Content-Type\": \"application/json\" };\r\n try {\r\n const data = await this.remoteGatewayFactory\r\n .createDefaultRemoteGateway()\r\n .getWithHeaders(new BackendUrl(\"/api/pbm/adm/sales-order/monitor/\" + id), headers);\r\n return Promise.resolve(data);\r\n } catch (referenceError) {\r\n const errorMessage = referenceError.error.Data.ErrorMessage;\r\n return await Promise.reject(errorMessage);\r\n }\r\n }\r\n\r\n public async cancelOrder(nsu : string, description): Promise {\r\n const headers = { \"Content-Type\": \"application/json\" };\r\n try {\r\n const body = {\r\n NSU: nsu,\r\n Description: description,\r\n };\r\n const remoteGateway = this.remoteGatewayFactory.createDefaultRemoteGateway();\r\n const data : any = await remoteGateway.postWithHeaders(new BackendUrl(\"/api/pbm/adm/sales-order/cancel\"), body, headers);\r\n return Promise.resolve(data);\r\n } catch (error) {\r\n return Promise.reject(error);\r\n }\r\n }\r\n}\r\n", "import { HttpClient } from \"@angular/common/http\";\r\nimport { Injectable } from \"@angular/core\";\r\n\r\nimport { RemoteGatewayFactory } from \"../../gateways/remote-gateway-factory\";\r\nimport { environment } from \"src/environments/environment\";\r\nimport { Url } from \"../../models/domains/urls/url\";\r\nimport { first } from \"rxjs/operators\";\r\n\r\n@Injectable()\r\nexport class DrugstoreTestsRepository {\r\n constructor(private remoteGatewayFactory: RemoteGatewayFactory, private http: HttpClient) {}\r\n\r\n public async getToken() {\r\n const headers = { \"content-type\": \"application/x-www-form-urlencoded\" };\r\n const body = environment.pdvTokenBodyRequest;\r\n try {\r\n const data: any = await this.http.post(environment.pdvTokenUrl, body, { headers }).toPromise();\r\n return data.access_token;\r\n } catch (error) {\r\n console.log(error);\r\n return error;\r\n }\r\n }\r\n}\r\n", "import { Beneficiary } from \"../../Beneficiary/beneficiary\";\r\nimport { Network } from \"../../Benefit/network\";\r\nimport { UniqueSequentialNumber } from \"../../financial-satatement/unique-sequential-number\";\r\n\r\nexport class AuditSale {\r\n private salesOrderKey: string;\r\n private uniqueSequentialNumber: UniqueSequentialNumber;\r\n private uniqueSequentialNumberCorrelated: UniqueSequentialNumber;\r\n private beneficiary: Beneficiary;\r\n private transactionDate: string;\r\n private salesAction: string;\r\n private networkInfo: Network;\r\n private errorCauses: Array;\r\n private status: string;\r\n private source: string;\r\n private hasPendingMedicalPrescriptionScans: boolean;\r\n\r\n public getSalesOrderKey(): string {\r\n return this.salesOrderKey;\r\n }\r\n\r\n public setSalesOrderKey(salesOrderKey: string): void {\r\n this.salesOrderKey = salesOrderKey;\r\n }\r\n\r\n public getUniqueSequentialNumber(): UniqueSequentialNumber {\r\n return this.uniqueSequentialNumber;\r\n }\r\n\r\n public setUniqueSequentialNumber(uniqueSequentialNumber: UniqueSequentialNumber): void {\r\n this.uniqueSequentialNumber = uniqueSequentialNumber;\r\n }\r\n\r\n public getUniqueSequentialNumberCorrelated(): UniqueSequentialNumber {\r\n return this.uniqueSequentialNumberCorrelated;\r\n }\r\n\r\n public setUniqueSequentialNumberCorrelated(uniqueSequentialNumberCorrelated: UniqueSequentialNumber): void {\r\n this.uniqueSequentialNumberCorrelated = uniqueSequentialNumberCorrelated;\r\n }\r\n\r\n public getBeneficiary(): Beneficiary {\r\n return this.beneficiary;\r\n }\r\n\r\n public setBeneficiary(beneficiary: Beneficiary): void {\r\n this.beneficiary = beneficiary;\r\n }\r\n\r\n public getTransactionDate(): string {\r\n return this.transactionDate;\r\n }\r\n\r\n public setTransactionDate(transactionDate: string): void {\r\n this.transactionDate = transactionDate;\r\n }\r\n\r\n public getSalesAction(): string {\r\n return this.salesAction;\r\n }\r\n\r\n public setSalesAction(salesAction: string): void {\r\n this.salesAction = salesAction;\r\n }\r\n\r\n public getNetworkInfo(): Network {\r\n return this.networkInfo;\r\n }\r\n\r\n public setNetworkInfo(networkInfo: Network): void {\r\n this.networkInfo = networkInfo;\r\n }\r\n\r\n public getErrorCauses(): Array {\r\n return this.errorCauses;\r\n }\r\n\r\n public setErrorCauses(errorCauses: Array): void {\r\n this.errorCauses = errorCauses;\r\n }\r\n\r\n public getStatus(): string {\r\n return this.status;\r\n }\r\n\r\n public setStatus(status: string): void {\r\n this.status = status;\r\n }\r\n\r\n public getSource(): string {\r\n return this.source;\r\n }\r\n\r\n public setSource(source: string): void {\r\n this.source = source;\r\n }\r\n\r\n public getHasPendingMedicalPrescriptionScans(): boolean {\r\n return this.hasPendingMedicalPrescriptionScans;\r\n }\r\n\r\n public setHasPendingMedicalPrescriptionScans(hasPendingMedicalPrescriptionScans: boolean): void {\r\n this.hasPendingMedicalPrescriptionScans = hasPendingMedicalPrescriptionScans;\r\n }\r\n}\r\n", "import { SalesOrderItemResult } from \"../../financial-satatement/sales-order-item-result\";\r\nimport { ProductItem } from \"../../transactional-management/product-item\";\r\nimport { AuditSale } from \"./audit-sale\";\r\n\r\n/**\r\n * Atenção! Esta classe extends AuditSale, ou seja, contém tudo que tem lá porém com\r\n * a propriedade \"items\" a mais\r\n */\r\nexport class AuditSaleDetails extends AuditSale {\r\n private items: Array;\r\n\r\n constructor() {\r\n super();\r\n this.items = new Array();\r\n }\r\n\r\n public getItems(): Array {\r\n return this.items;\r\n }\r\n\r\n public setItems(items: Array): void {\r\n this.items = items;\r\n }\r\n\r\n setAuditSaleProperts(auditSale: AuditSale) {\r\n this.setSalesOrderKey(auditSale.getSalesOrderKey());\r\n this.setUniqueSequentialNumber(auditSale.getUniqueSequentialNumber());\r\n this.setUniqueSequentialNumberCorrelated(auditSale.getUniqueSequentialNumberCorrelated());\r\n this.setBeneficiary(auditSale.getBeneficiary());\r\n this.setTransactionDate(auditSale.getTransactionDate());\r\n this.setSalesAction(auditSale.getSalesAction());\r\n this.setNetworkInfo(auditSale.getNetworkInfo());\r\n this.setErrorCauses(auditSale.getErrorCauses());\r\n this.setStatus(auditSale.getStatus());\r\n this.setSource(auditSale.getSource());\r\n this.setHasPendingMedicalPrescriptionScans(auditSale.getHasPendingMedicalPrescriptionScans());\r\n }\r\n}\r\n", "export class UniqueSequentialNumber {\r\n private value: string;\r\n\r\n setValue(value: string): void {\r\n this.value = value;\r\n }\r\n\r\n getValue(): string {\r\n return this.value;\r\n }\r\n}\r\n", "import { AuditSale } from \"src/app/ui/models/domains/pbm/audit/audit-sale/audit-sale\";\r\nimport { AuditSaleDetails } from \"src/app/ui/models/domains/pbm/audit/audit-sale/audit-sale-details\";\r\nimport { UniqueSequentialNumber } from \"src/app/ui/models/domains/pbm/financial-satatement/unique-sequential-number\";\r\nimport { PageableResult } from \"../../../../models/domains/paginator/pageable-result\";\r\nimport { parseBeneficiary } from \"../beneficiary/beneficiary-parse-functions\";\r\nimport { NetworkParser } from \"../benefit/network.parser\";\r\nimport { parseProductItems } from \"../transaction-management/transaction-management-parse-functions\";\r\n\r\nconst pageableResult = new PageableResult();\r\nexport function parseAuditSalePageableResult(payload: any): PageableResult {\r\n pageableResult.setStart(payload.Start);\r\n pageableResult.setEnd(payload.TotalPerPages);\r\n pageableResult.setTotalItems(payload.Total);\r\n pageableResult.setItems(parseAuditSaleList(payload.Data));\r\n return pageableResult;\r\n}\r\n\r\nexport function parseAuditSale(payload: any): AuditSale {\r\n const auditSale = new AuditSale();\r\n if (payload) {\r\n const networkParser = new NetworkParser();\r\n\r\n auditSale.setSalesOrderKey(payload.SalesOrderKey);\r\n\r\n const uniqueSequentialNumber = new UniqueSequentialNumber();\r\n uniqueSequentialNumber.setValue(payload.UniqueSequentialNumber.Value);\r\n auditSale.setUniqueSequentialNumber(uniqueSequentialNumber);\r\n\r\n const uniqueSequentialNumberCorrelated = new UniqueSequentialNumber();\r\n uniqueSequentialNumberCorrelated.setValue(payload.UniqueSequentialNumberCorrelated ? payload.UniqueSequentialNumberCorrelated.Value : null);\r\n auditSale.setUniqueSequentialNumberCorrelated(uniqueSequentialNumberCorrelated);\r\n\r\n const beneficiary = parseBeneficiary(payload.Beneficiary);\r\n auditSale.setBeneficiary(beneficiary);\r\n\r\n auditSale.setTransactionDate(payload.TransactionDate);\r\n auditSale.setSalesAction(payload.SalesAction);\r\n\r\n const network = networkParser.parseUnicNetwork(payload.NetworkInfo);\r\n auditSale.setNetworkInfo(network);\r\n\r\n auditSale.setErrorCauses(payload.ErrorCauses);\r\n auditSale.setStatus(payload.Status);\r\n auditSale.setSource(payload.Source);\r\n auditSale.setHasPendingMedicalPrescriptionScans(payload.HasPendingMedicalPrescriptionScans);\r\n }\r\n return auditSale;\r\n}\r\n\r\nexport function parseAuditSaleList(payload: Array): Array {\r\n const auditSaleList: Array = payload.map((item) => {\r\n return parseAuditSale(item);\r\n });\r\n return auditSaleList;\r\n}\r\n\r\n/**\r\n * Como a classe AuditSaleDetails estende de AuditSale foi usado o mesmo parse para as propriedades herdadas\r\n * e apenas adicionado o parse da propriedade \"items\"\r\n * @param payload dever chegar um JSON no formato de AuditSaleDetails\r\n * @returns AuditSaleDetails\r\n */\r\nexport function parseAuditSaleDetails(payload: any): AuditSaleDetails {\r\n let auditSaleDetails = new AuditSaleDetails();\r\n if (payload) {\r\n auditSaleDetails.setAuditSaleProperts(parseAuditSale(payload));\r\n auditSaleDetails.setItems(parseProductItems(payload.Items));\r\n }\r\n return auditSaleDetails;\r\n}\r\n", "import { AuditSaleDetails } from \"src/app/ui/models/domains/pbm/audit/audit-sale/audit-sale-details\";\r\nimport { PageableResult } from \"../../../../models/domains/paginator/pageable-result\";\r\nimport { AbstractParser } from \"../../parser\";\r\nimport { parseAuditSaleDetails, parseAuditSalePageableResult } from \"./audit-sale-pageable-result-parse-functions\";\r\n\r\nexport class AuditSalePageableResultParser extends AbstractParser {\r\n parse(payload: any): PageableResult {\r\n return parseAuditSalePageableResult(payload);\r\n }\r\n\r\n parseDetails(payload: any): AuditSaleDetails {\r\n return parseAuditSaleDetails(payload);\r\n }\r\n}\r\n", "import { Injectable } from \"@angular/core\";\r\nimport { RemoteGatewayFactory } from \"../../gateways/remote-gateway-factory\";\r\nimport { PageableResult } from \"../../models/domains/paginator/pageable-result\";\r\nimport { AuditSaleRequest } from \"../../models/domains/pbm/audit/audit-sale/audit-sale.request\";\r\nimport { BackendUrl } from \"../../models/domains/urls/back-end.url\";\r\nimport { AuditSalePageableResultParser } from \"../parsers/pbm/audit/audit-sale-pageable-result.parser\";\r\nimport { AuditSaleDetailsType, AuditSalesType } from \"../../models/domains/pbm/audit/audit-sale/audit-sale-details-type.model\";\r\n\r\n@Injectable()\r\nexport class AuditSaleRepository {\r\n constructor(private remoteGatewayFactory: RemoteGatewayFactory, private auditSalePageableResultParser: AuditSalePageableResultParser) {}\r\n\r\n public async searchAudit(pagingRequest: AuditSaleRequest): Promise {\r\n const body = JSON.stringify(pagingRequest);\r\n const headers = { \"Content-Type\": \"application/json\" };\r\n\r\n try {\r\n const remoteGateway = this.remoteGatewayFactory.createDefaultRemoteGateway();\r\n const backendUrl = new BackendUrl(\"/api/pbm/adm/sales-order/audit\");\r\n const payload = await remoteGateway.postWithHeaders(backendUrl, body, headers);\r\n return this.auditSalePageableResultParser.parse(payload);\r\n } catch (err) {\r\n return await Promise.reject(err);\r\n }\r\n }\r\n\r\n public async searchAuditDetails(salesOrderKey: string): Promise {\r\n const headers = { \"Content-Type\": \"application/json\" };\r\n try {\r\n const remoteGateway = this.remoteGatewayFactory.createDefaultRemoteGateway();\r\n const backendUrl = new BackendUrl(\"/api/pbm/adm/sales-order/audit/\" + salesOrderKey);\r\n const payload: AuditSaleDetailsType = await remoteGateway.getWithHeaders(backendUrl, headers);\r\n return payload;\r\n } catch (err) {\r\n return await Promise.reject(err);\r\n }\r\n }\r\n}\r\n", "import { NetworkFinancialstatmentPaymentRepository } from \"./pbm/network-financial-statment-payment.repository\";\r\nimport { ModuleWithProviders, NgModule } from \"@angular/core\";\r\nimport { AuthRepository } from \"./auth.repository\";\r\nimport { ParserModule } from \"./parsers/parser.module\";\r\nimport { GatewayModule } from \"../gateways/gateway.module\";\r\nimport { UserRepository } from \"./user.repository\";\r\nimport { ResetPasswordRepository } from \"./reset-password.repository\";\r\nimport { HealthRepository } from \"./health.repository\";\r\nimport { NewsRepository } from \"./news.repository\";\r\nimport { BeneficiaryRepository } from \"./pbm/beneficiary.repository\";\r\nimport { CompanyRepository } from \"./pbm/company.repository\";\r\nimport { ProductRepository } from \"./pbm/product.repository\";\r\nimport { PaymentRepository } from \"./pbm/payment.repository\";\r\nimport { BenefitRepository } from \"./pbm/benefit.repository\";\r\nimport { NetworkRepository } from \"./pbm/network.repository\";\r\nimport { ProductCategoryRepository } from \"./pbm/product-category.repository\";\r\nimport { MedicalPrescriptionRepository } from \"./pbm/medical-prescription.repository\";\r\nimport { SalesHistoryRepository } from \"./pbm/sales-history.repository\";\r\nimport { TherapeuticClassRepository } from \"./pbm/therapeutic-class.repository\";\r\nimport { FinancialStatementRepository } from \"./pbm/financial-statement.repository\";\r\nimport { StateRepository } from \"./pbm/state.repository\";\r\nimport { FileExportRepository } from \"./file-export.repository\";\r\nimport { JobDescriptionRepository } from \"./pbm/job-description.repository\";\r\nimport { IndicatorRepository } from \"./pbm/indicator.repository\";\r\nimport { NetworkTermRepository } from \"./pbm/network-term.repository\";\r\nimport { IndustryRepository } from \"./pbm/industry.repository\";\r\nimport { ProductManagementRepository } from \"./pbm/product-management.repository\";\r\nimport { TransactionManagementRepository } from \"./pbm/transaction-management.repository\";\r\nimport { PractitionerManagementRepository } from \"./pbm/practitioner-management.repository\";\r\nimport { DrugstoreTestsRepository } from \"./pbm/drugstore-tests.repository\";\r\nimport { GeneralReportRepository } from \"./pbm/general-report.repository\";\r\nimport { ClustersRepository } from \"./pbm/clusters.repository\";\r\nimport { AuditSaleRepository } from \"./pbm/audit-sale.repository\";\r\nimport { AuditSalePageableResultParser } from \"./parsers/pbm/audit/audit-sale-pageable-result.parser\";\r\nimport { UserTermRepository } from \"./user-term.repository\";\r\n\r\n@NgModule({\r\n imports: [ParserModule.forRoot(), GatewayModule.forRoot()],\r\n})\r\nexport class RepositoryModule {\r\n static forRoot(): ModuleWithProviders {\r\n return {\r\n ngModule: RepositoryModule,\r\n providers: [\r\n AuthRepository,\r\n UserRepository,\r\n UserTermRepository,\r\n ResetPasswordRepository,\r\n HealthRepository,\r\n NewsRepository,\r\n BeneficiaryRepository,\r\n CompanyRepository,\r\n BenefitRepository,\r\n ProductRepository,\r\n TherapeuticClassRepository,\r\n NetworkRepository,\r\n NetworkFinancialstatmentPaymentRepository,\r\n ProductCategoryRepository,\r\n MedicalPrescriptionRepository,\r\n SalesHistoryRepository,\r\n FinancialStatementRepository,\r\n StateRepository,\r\n FileExportRepository,\r\n JobDescriptionRepository,\r\n IndicatorRepository,\r\n NetworkTermRepository,\r\n IndustryRepository,\r\n ProductManagementRepository,\r\n TransactionManagementRepository,\r\n PractitionerManagementRepository,\r\n DrugstoreTestsRepository,\r\n GeneralReportRepository,\r\n AuditSaleRepository,\r\n AuditSalePageableResultParser,\r\n ClustersRepository,\r\n PaymentRepository,\r\n ],\r\n };\r\n }\r\n}\r\n", "import { ICredentials } from \"./credentials.model\";\r\n\r\nexport class ServiceCredentials implements ICredentials {\r\n token: string;\r\n\r\n constructor(token: string) {\r\n this.token = token;\r\n }\r\n}\r\n", "import { IAuthProcessor } from \"./auth-processor\";\r\nimport { AuthService } from \"../../auth.service\";\r\nimport { AppContext } from \"src/app/ui/contexts/app-context\";\r\nimport { RouteStrategyFactory } from \"src/app/ui/gateways/route-strategy-factory\";\r\nimport { ServiceCredentials } from \"src/app/ui/models/domains/credentials/service-credentials.model\";\r\nimport { ActivatedRouteSnapshot } from \"@angular/router\";\r\n\r\nexport class DefaultAuthProcessor implements IAuthProcessor {\r\n constructor(private authService: AuthService, private appContext: AppContext, private routeStrategyFactory: RouteStrategyFactory) {}\r\n\r\n async processAuthentication(route: ActivatedRouteSnapshot): Promise {\r\n if (route.queryParams) {\r\n const token = route.queryParams.t;\r\n\r\n if (token) {\r\n const authServiceAuthenticated = await this.authService.isServiceTokenvValid(token);\r\n if (authServiceAuthenticated) {\r\n this.appContext.setServiceCredential(new ServiceCredentials(token));\r\n } else {\r\n this.routeStrategyFactory.createStrategy().redirect();\r\n }\r\n return authServiceAuthenticated;\r\n }\r\n\r\n const hash = route.queryParams.hash;\r\n\r\n if (hash) {\r\n await this.authService.switchContext(hash);\r\n }\r\n }\r\n\r\n if (this.authService.isUserLogged()) {\r\n const authenticated = await this.authService.isAuthenticated();\r\n\r\n if (!authenticated) {\r\n this.routeStrategyFactory.createStrategy().redirect();\r\n return false;\r\n }\r\n } else if (!this.authService.isServiceLogged()) {\r\n this.routeStrategyFactory.createStrategy().redirect();\r\n return false;\r\n }\r\n\r\n return true;\r\n }\r\n}\r\n", "import { Injectable } from \"@angular/core\";\r\nimport { IAuthProcessor } from \"./auth-processor\";\r\nimport { DefaultAuthProcessor } from \"./default-auth-processor\";\r\nimport { AuthService } from \"../../auth.service\";\r\nimport { AppContext } from \"src/app/ui/contexts/app-context\";\r\nimport { RouteStrategyFactory } from \"src/app/ui/gateways/route-strategy-factory\";\r\n\r\n@Injectable()\r\nexport class DefaultAuthProcessorFactory {\r\n constructor(private authService: AuthService, private appContext: AppContext, private routeStrategyFactory: RouteStrategyFactory) {}\r\n\r\n createProcessor(): IAuthProcessor {\r\n return new DefaultAuthProcessor(this.authService, this.appContext, this.routeStrategyFactory);\r\n }\r\n}\r\n", "import { ComponentType, Overlay } from \"@angular/cdk/overlay\";\r\nimport { ComponentPortal, PortalInjector, TemplatePortal } from \"@angular/cdk/portal\";\r\nimport { Injectable, InjectionToken, Injector, TemplateRef } from \"@angular/core\";\r\n\r\nimport { DialogConfig } from \"../models/domains/dialog/dialog-config\";\r\nimport { DialogRef } from \"../components/dialog/dialog-ref\";\r\nimport { DialogComponent } from \"../components/dialog/dialog/dialog.component\";\r\n\r\nexport const DIALOG_DATA = new InjectionToken(\"dialog.data\");\r\n\r\nconst defaultConfig: DialogConfig = {\r\n backdropClass: \"\",\r\n disableClose: false,\r\n panelClass: \"\",\r\n width: \"auto\",\r\n};\r\n\r\n@Injectable({\r\n providedIn: \"root\",\r\n})\r\nexport class DialogService {\r\n constructor(private overlay: Overlay, private injector: Injector) {}\r\n\r\n open(componentOrTemplate: ComponentType | TemplateRef, config: Partial = {}): DialogRef {\r\n const dialogConfig: DialogConfig = Object.assign({}, defaultConfig, config);\r\n const overlayRef = this.overlay.create({\r\n hasBackdrop: true,\r\n width: config.width,\r\n positionStrategy: this.overlay.position().global().centerVertically().centerHorizontally(),\r\n });\r\n\r\n const dialogRef = new DialogRef(overlayRef, dialogConfig);\r\n\r\n const dialog = overlayRef.attach(\r\n new ComponentPortal(DialogComponent, null, new PortalInjector(this.injector, new WeakMap([[DialogRef, dialogRef]]))),\r\n ).instance;\r\n\r\n if (componentOrTemplate instanceof TemplateRef) {\r\n dialog.attachTemplatePortal(\r\n new TemplatePortal(componentOrTemplate, null, {\r\n $implicit: config.data,\r\n dialog: dialogRef,\r\n }),\r\n );\r\n } else {\r\n dialog.attachComponentPortal(\r\n new ComponentPortal(\r\n componentOrTemplate,\r\n null,\r\n new PortalInjector(\r\n this.injector,\r\n new WeakMap([\r\n [DIALOG_DATA, config.data],\r\n [DialogRef, dialogRef],\r\n ]),\r\n ),\r\n ),\r\n );\r\n }\r\n\r\n return dialogRef;\r\n }\r\n}\r\n", "import { Injectable } from \"@angular/core\";\r\nimport { PageableResult } from \"../models/domains/paginator/pageable-result\";\r\nimport { Network } from \"../models/domains/pbm/Benefit/network\";\r\nimport { ExportOrderKey } from \"../models/domains/pbm/exports/export-order-key\";\r\nimport { NetworkFinancialStatementPagingRequest } from \"../pages/network-financial-statement/network-financial-statement-paging-request\";\r\nimport { NetworkRepository } from \"../repositories/pbm/network.repository\";\r\n\r\n@Injectable({ providedIn: \"root\" })\r\nexport class NetworkService {\r\n constructor(private networkRepository: NetworkRepository) {}\r\n\r\n public async searchNetworkFinancialStatements(pagingRequest: NetworkFinancialStatementPagingRequest): Promise {\r\n return this.networkRepository.searchNetworkFinancialStatements(pagingRequest);\r\n }\r\n\r\n public async findNetworkExportOrderKey(fiscalNumber: string, startAt: string, endAt: string): Promise {\r\n return this.networkRepository.findNetworkExportOrderKey(fiscalNumber, startAt, endAt);\r\n }\r\n}\r\n", "import { NgModule, ModuleWithProviders } from \"@angular/core\";\r\n\r\nimport { LoadingService } from \"./loading.service\";\r\nimport { ModalService } from \"./modal.service\";\r\nimport { AuthService } from \"./auth.service\";\r\nimport { AlertService } from \"./alert.service\";\r\nimport { RepositoryModule } from \"../repositories/repository.module\";\r\nimport { GridService } from \"./grid.service\";\r\nimport { UserService } from \"./user.service\";\r\nimport { DefaultAuthProcessorFactory } from \"./guards/processors/auth-processor-factory\";\r\nimport { OverlayService } from \"./overlay.service\";\r\nimport { DialogService } from \"./dialog.service\";\r\nimport { ToastService } from \"./toast.service\";\r\nimport { NewsService } from \"./news.service\";\r\nimport { FeatureViewService } from \"./feature-view.service\";\r\nimport { BeneficiaryService } from \"./pbm/beneficiary.service\";\r\nimport { CompanyService } from \"./pbm/company.service\";\r\nimport { HeaderService } from \"./header.service\";\r\nimport { BenefitService } from \"./pbm/benefit.service\";\r\nimport { NetworkService } from \"./network.service\";\r\nimport { MedicalPrescriptionService } from \"./medical-prescription.service\";\r\nimport { TherapeuticClassService } from \"./pbm/therapeutic-class.service\";\r\nimport { ProductService } from \"./pbm/product.service\";\r\nimport { FinancialStatementService } from \"./pbm/financial-statement.service\";\r\nimport { FileExportService } from \"./file-export.service\";\r\nimport { JobDescriptionService } from \"./pbm/job-description.service\";\r\nimport { IndustryDiscountsService } from \"./pbm/industry-discounts.service\";\r\n\r\n@NgModule({\r\n imports: [RepositoryModule.forRoot()],\r\n})\r\nexport class ServiceModule {\r\n static forRoot(): ModuleWithProviders {\r\n return {\r\n ngModule: ServiceModule,\r\n providers: [\r\n AlertService,\r\n AuthService,\r\n GridService,\r\n LoadingService,\r\n ModalService,\r\n UserService,\r\n DefaultAuthProcessorFactory,\r\n OverlayService,\r\n DialogService,\r\n ToastService,\r\n NewsService,\r\n FeatureViewService,\r\n BeneficiaryService,\r\n CompanyService,\r\n HeaderService,\r\n BenefitService,\r\n ProductService,\r\n TherapeuticClassService,\r\n NetworkService,\r\n MedicalPrescriptionService,\r\n FinancialStatementService,\r\n FileExportService,\r\n JobDescriptionService,\r\n IndustryDiscountsService,\r\n ],\r\n };\r\n }\r\n}\r\n"], "mappings": "y7CAYA,IAAaA,IAAyC,IAAA,CAAhD,IAAOA,EAAP,MAAOA,CAAyC,CACpDC,YAAoBC,EAA0C,CAA1C,KAAAA,qBAAAA,CAA6C,CAE3DC,SAASC,EAA8C,QAAAC,EAAA,sBAC3D,IAAMC,EAAU,CACd,eAAgB,oBAGlB,GAAI,CACF,IAAMC,EAAgB,KAAKL,qBAAqBM,2BAA0B,EACpEC,EAAa,IAAIC,EAAW,sDAAsD,EAElFC,EAAY,MAAMJ,EAAcK,gBAAgBH,EAAYL,EAAQE,CAAO,EAEjF,OADuB,IAAIO,EAAeF,EAAKG,SAAQ,CAAE,CAE3D,OAASC,EAAO,CACd,OAAO,MAAMC,QAAQC,OAAOF,CAAK,CACnC,CACF,GAEMG,UAAUd,EAA8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,CAE9CC,iCAAiCC,EAAqD,QAAAC,EAAA,sBACjG,OAAO,KAAKH,kBAAkBC,iCAAiCC,CAAa,CAC9E,GAEaE,0BAA0BC,EAAsBC,EAAiBC,EAAa,QAAAJ,EAAA,sBACzF,OAAO,KAAKH,kBAAkBI,0BAA0BC,EAAcC,EAASC,CAAK,CACtF,2CATWT,GAAcU,EAAAC,EAAA,CAAA,CAAA,wBAAdX,EAAcY,QAAdZ,EAAca,UAAAC,WADD,MAAM,CAAA,EAC1B,IAAOd,EAAPe,SAAOf,CAAc,GAAA,ECuB3B,IAAagB,IAAa,IAAA,CAApB,IAAOA,EAAP,MAAOA,CAAa,CACxB,OAAOC,SAAO,CACZ,MAAO,CACLC,SAAUF,EACVG,UAAW,CACTC,GACAC,EACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,EAAwB,EAG9B,yCA/BW3B,EAAa,sBAAbA,CAAa,CAAA,0BAFd4B,GAAiB3B,QAAO,CAAE,CAAA,CAAA,EAEhC,IAAOD,EAAP6B,SAAO7B,CAAa,GAAA", "names": ["NetworkFinancialstatmentPaymentRepository", "constructor", "remoteGatewayFactory", "analytic", "params", "__async", "headers", "remoteGateway", "createDefaultRemoteGateway", "backEndUrl", "BackendUrl", "data", "postWithHeaders", "ExportOrderKey", "toString", "error", "Promise", "reject", "synthetic", "\u0275\u0275inject", "RemoteGatewayFactory", "factory", "\u0275fac", "_NetworkFinancialstatmentPaymentRepository", "HealthStatus", "HealthItem", "constructor", "getName", "name", "getDescription", "description", "getStatus", "status", "getError", "error", "setName", "setDescription", "setStatus", "setError", "canDisplay", "HealthStatus", "Unhealthy", "HealthParser", "AbstractParser", "parse", "payload", "items", "Array", "unhealthy", "healthy", "Object", "keys", "forEach", "key", "item", "HealthItem", "setName", "toString", "setError", "setStatus", "HealthStatus", "Unhealthy", "setDescription", "push", "Healthy", "__ngFactoryType__", "factory", "\u0275fac", "_HealthParser", "PowerBiReport", "emptyReport", "constructor", "id", "embedUrl", "embedToken", "getId", "getEmbedUrl", "getEmbedToken", "EmbedToken", "token", "tokenId", "expiration", "getToken", "getTokenId", "getExpiration", "PowerBiReportParser", "AbstractParser", "parse", "data", "embedToken", "EmbedToken", "token", "tokenId", "expiration", "PowerBiReport", "Id", "EmbedUrl", "__ngFactoryType__", "factory", "\u0275fac", "_PowerBiReportParser", "NetworkParser", "AbstractParser", "parse", "payload", "networkList", "Data", "map", "item", "network", "Network", "setNetworkInfoKey", "NetworkInfoKey", "setFiscalNumber", "FiscalNumber", "Value", "setCorporateName", "CorporateName", "setTradingName", "TradingName", "setDisplayName", "DisplayName", "setNetworkComercialProductList", "parseNetworkComercialProducts", "NetworkComercialProducts", "parseUnicNetwork", "Name", "networkComercialProductList", "Array", "networkComercialProduct", "NetworkComercialProduct", "setDiscount", "Discount", "setProductType", "parseProductType", "ProductType", "setProductSubtype", "parseProductSubType", "ProductSubType", "productType", "setKey", "Key", "setValue", "productSubType", "ProductSubtype", "__ngFactoryType__", "factory", "\u0275fac", "_NetworkParser", "SubsidyConfiguration", "setProductType", "value", "productType", "getProductType", "setRemainingPurchasePaymentMethod", "remainingPurchasePaymentMethod", "getRemainingPurchasePaymentMethod", "setSubsidyLimit", "subsidyLimit", "getSubsidyLimit", "setAllowSubsidyLimitExceed", "allowSubsidyLimitExceed", "getAllowSubsidyLimitExceed", "setAllowPurchaseUseReceipt", "allowPurchaseUseReceipt", "getAllowPurchaseUseReceipt", "SubsidyConfigurationCluster", "setKey", "key", "getKey", "setCompanyFiscalNumber", "value", "companyFiscalNumber", "getCompanyFiscalNumber", "setSubsidyMappingConfiguration", "subsidyMappingConfiguration", "getSubsidyMappingConfiguration", "isNew", "SubsidyConfigurationParser", "AbstractParser", "parse", "payload", "subsidyConfiguration", "SubsidyConfigurationCluster", "setKey", "Key", "setCompanyFiscalNumber", "CompanyFiscalNumber", "setSubsidyMappingConfiguration", "subsidyMappingConfigurationParser", "SubsidyMappingConfiguration", "subsidyConfigurationList", "forEach", "configuration", "SubsidyConfiguration", "setProductType", "addProductType", "ProductType", "setRemainingPurchasePaymentMethod", "RemainingPurchasePaymentMethod", "setSubsidyLimit", "SubsidyLimit", "setAllowSubsidyLimitExceed", "AllowSubsidyLimitExceed", "setAllowPurchaseUseReceipt", "AllowPurchaseUseReceipt", "push", "key", "productType", "setValue", "import_moment", "PdvCycleItem", "constructor", "referenceMonth", "startPeriod", "endPeriod", "paymentDate", "totalPaymentValue", "totalCardValue", "totalAdministrativeTax", "getReferenceMonth", "getStartPeriod", "getEndPeriod", "getPaymentDate", "getTotalCardValue", "getTotalAdministrativeTax", "getTotalPaymentValue", "getReferenceMonthName", "moment", "months", "getSellingCycle", "options", "year", "month", "day", "startDate", "Date", "toLocaleString", "endDate", "getSanitizedPaymentDate", "PdvFinancialStatement", "constructor", "network", "pdvCycleItemList", "getNetwork", "getPdvCycleItemList", "parsePdvFinancialStatementList", "payload", "map", "item", "PdvFinancialStatement", "parseNetwork", "Network", "parsePdvCycleItemList", "Items", "network", "setCorporateName", "CorporateName", "setFiscalNumber", "FiscalNumber", "Value", "setTradingName", "TradingName", "PdvCycleItem", "ReferenceMonth", "Period", "Start", "End", "PaymentDate", "TotalPaymentValue", "TotalCardValue", "TotalAdministrativeTax", "SearchNetworkFinancialStatementsParse", "AbstractParser", "parse", "payload", "pageableResult", "PageableResult", "setStart", "Start", "setEnd", "TotalPerPages", "setTotalItems", "Total", "setItems", "parsePdvFinancialStatementList", "Data", "__ngFactoryType__", "factory", "\u0275fac", "_SearchNetworkFinancialStatementsParse", "import_moment", "NetworkTermSearchResult", "getStartIndex", "startIndex", "setStartIndex", "value", "getEndIndex", "endIndex", "setEndIndex", "getTotal", "total", "setTotal", "getTotalTermsAccepted", "totalTermsAccepted", "setTotalTermsAccepted", "getNetworks", "networks", "setNetworks", "addNetwork", "network", "push", "concatNetworks", "networkTermViews", "concat", "getRequest", "request", "setRequest", "NetworkTermView", "getFiscalNumber", "fiscalNumber", "setFiscalNumber", "value", "getCorporateName", "corporateName", "setCorporateName", "getTradingName", "tradingName", "length", "setTradingName", "getDrugFront", "drugFront", "setDrugFront", "getTermAcceptanceDate", "termAcceptanceDate", "setTermAcceptanceDate", "getNetworkCompanyInfo", "networkCompanyInfo", "setNetworkCompanyInfo", "NetworkCompanyInfo", "getAddress", "address", "setAddress", "getEmailList", "emailList", "setEmailList", "getTelephoneList", "telephoneList", "setTelephoneList", "NetworkAcceptTerm", "constructor", "referenceKey", "acceptTermDate", "getReferenceKey", "getAcceptTermDate", "EmailType", "TelephoneType", "NetworkTermFormGroup", "UntypedFormGroup", "createFormData", "body", "getRawValue", "files", "Files", "formData", "FormData", "Object", "keys", "forEach", "doc", "append", "name", "Documents", "JSON", "stringify", "NetworkTermDocument", "NetworkTermForm", "constructor", "FiscalNumber", "Value", "NetworkProductBilling", "BankName", "AccountNumber", "AccountDigit", "AgencyNumber", "AgencyDigit", "NetworkContact", "CompanyContacts", "Key", "Name", "JobDescription", "NetworkEmails", "Address", "Type", "NetworkTelephones", "Number", "NetworkInfo", "Is24HoursService", "WeekDaysOpeningHour", "WeekDaysClosingHour", "SaturdayOpeningHour", "SaturdayClosingHour", "SundayHolidaysOpeningHour", "SundayHolidaysClosingHour", "IndustrializedMedicine", "Manipulation", "Homeopathy", "Delivery", "DeliveryFee", "MinimumValue", "SoftwareHouse", "MedicalPrescription", "FinancialReportPeriodType", "AdministrativeTax", "HighCostMedicine", "PopularPharmacy", "CentralizerFiscalNumber", "PaymentTerm", "NetworkProductDiscounts", "Discount", "Label", "ProductTypeKey", "ProductSubTypeKey", "NetworkDocumentation", "BillingDocument", "Filename", "DocumentUrl", "SocialContract", "AnvisaPermit", "DocumentNumber", "Validity", "PrefecturePermit", "SanitaryPermit", "RegularityCertificate", "ProfessionalName", "ProfessionalRegistration", "createForm", "form", "builder", "UntypedFormBuilder", "companyContactsFormArray", "UntypedFormArray", "length", "i", "contact", "UntypedFormControl", "push", "networkEmailsFormArray", "email", "EmailType", "others", "Financialemail", "financial", "networkTelephonesFormArray", "telephone", "telephone1", "TelephoneType", "work", "telephone2", "mobile", "Validators", "required", "value", "disabled", "array", "map", "el", "minDiscount", "min", "validateMinDiscount", "documentTypeValidator", "validateAllDocumentsType", "control", "match", "formGroup", "socialContractErrors", "get", "errors", "anvisaPermitErrors", "prefecturePermitErros", "sanitaryPermitErros", "regularityCertificateErros", "billingDocumentErros", "discountErrors", "reqrequired", "NetworkTerm", "constructor", "termKey", "contentTerm", "getTermKey", "getContentTerm", "parseNetworkTerm", "payload", "NetworkTerm", "TermKey", "ContentTerm", "parseNetworkTermForm", "termForm", "NetworkTermForm", "FiscalNumber", "Value", "NetworkProductBilling", "BankName", "AccountNumber", "AccountDigit", "AgencyNumber", "AgencyDigit", "NetworkProductBillingDocument", "NetworkDocumentation", "BillingDocument", "DocumentUrl", "Filename", "NetworkContact", "companyContacts", "Array", "CompanyContacts", "forEach", "contact", "companyContact", "Key", "Name", "JobDescription", "push", "networkEmails", "NetworkEmails", "email", "networkEmail", "Address", "Type", "networkTelephones", "NetworkTelephones", "telephone", "networkTelephone", "Number", "NetworkInfo", "Is24HoursService", "WeekDaysOpeningHour", "WeekDaysClosingHour", "SaturdayOpeningHour", "SaturdayClosingHour", "SundayHolidaysOpeningHour", "SundayHolidaysClosingHour", "IndustrializedMedicine", "Manipulation", "Homeopathy", "Delivery", "DeliveryFee", "MinimumValue", "SoftwareHouse", "MedicalPrescription", "FinancialReportPeriodType", "AdministrativeTax", "HighCostMedicine", "PopularPharmacy", "CentralizerFiscalNumber", "PaymentTerm", "NetworkProductDiscounts", "item", "termItem", "ProductSubTypeKey", "Discount", "SocialContract", "AnvisaPermit", "DocumentNumber", "Validity", "PrefecturePermit", "RegularityCertificate", "ProfessionalName", "ProfessionalRegistration", "SanitaryPermit", "parseNetworkAcceptTerm", "NetworkAcceptTerm", "ReferenceKey", "Date", "AcceptTermDate", "parseNetworkTermSearchResult", "result", "NetworkTermSearchResult", "setStartIndex", "Start", "setEndIndex", "TotalPerPages", "setTotal", "Total", "setTotalTermsAccepted", "TotalTermsAccepted", "setNetworks", "Data", "map", "parseNetworkTermView", "network", "NetworkTermView", "setFiscalNumber", "setCorporateName", "CorporateName", "setTradingName", "TradingName", "setDrugFront", "DrugFront", "setTermAcceptanceDate", "moment", "TermAcceptanceDate", "format", "setNetworkCompanyInfo", "parseNetworkCompanyInfo", "CompanyInfo", "networkCompanyInfo", "NetworkCompanyInfo", "setAddress", "parseNetworkAddress", "setEmailList", "Emails", "setTelephoneList", "Telephones", "address", "setCity", "City", "setRegion", "State", "NetworkTermParser", "AbstractParser", "parse", "payload", "parseNetworkTerm", "NetworkTermFormParser", "AbstractParser", "parse", "payload", "parseNetworkTermForm", "NetworkAcceptTermParser", "AbstractParser", "parse", "payload", "parseNetworkAcceptTerm", "NetworksParser", "AbstractParser", "parse", "payload", "parseNetworkTermSearchResult", "MedicalPrescriptionDocumentKey", "constructor", "value", "setValue", "getValue", "PractitionerRegistration", "constructor", "registration", "setRegistration", "value", "getRegistration", "setState", "state", "getState", "MedicalPrescription", "constructor", "quantity", "practitionerRegistration", "PractitionerRegistration", "medicalPrescriptionDocumentKey", "MedicalPrescriptionDocumentKey", "medicalPrescriptionDate", "medicalPrescriptionInsertionDate", "setQuantity", "value", "getQuantity", "setMedicalPrescriptionDate", "getMedicalPrescriptionDate", "setMedicalPrescriptionInsertionDate", "getMedicalPrescriptionInsertionDate", "setPractitionerRegistration", "getPractitionerRegistration", "setMedicalPrescriptionDocumentKey", "getMedicalPrescriptionDocumentKey", "hasDocumentKey", "getValue", "getMedicalPrescriptionDocument", "MedicalPrescriptionDocument", "setMedicalPrescriptionDocument", "getMedicalPrescriptionScanUrl", "medicalPrescriptionScanUrl", "setMedicalPrescriptionScanUrl", "getMedicalPrescriptionStatus", "medicalPrescriptionStatus", "setMedicalPrescriptionStatus", "MedicalPrescriptionStatus", "fromEnum", "value", "constructor", "status", "description", "options", "get", "getDescription", "_MedicalPrescriptionStatus", "Map", "MedicalPrescriptionStatusEnum", "ProductItem", "getEan", "ean", "setEan", "value", "getProductName", "productName", "setProductName", "getGrossPrice", "grossPrice", "setGrossPrice", "getPrice", "price", "setPrice", "getUsedNetworkGrossPrice", "usedNetworkGrossPrice", "setUsedNetworkGrossPrice", "getUsedNetworkNetPrice", "usedNetworkNetPrice", "setUsedNetworkNetPrice", "isNetworkSourcePrice", "getDiscountValue", "discountValue", "setDiscountValue", "getSubsidyValue", "subsidyValue", "setSubsidyValue", "getEmploymentPayrollValue", "employmentPayrollValue", "setEmploymentPayrollValue", "getCheckoutValue", "checkoutValue", "setCheckoutValue", "getCardValue", "cardValue", "setCardValue", "getBeneficiaryValue", "beneficiaryValue", "setBeneficiaryValue", "getAuthorizedQuantity", "authorizedQuantity", "setAuthorizedQuantity", "getMedicalPrescription", "medicalPrescription", "setMedicalPrescription", "getMedicalPrescriptionStatus", "medicalPrescriptionStatus", "setMedicalPrescriptionStatus", "MedicalPrescriptionStatus", "fromEnum", "getErrorMessage", "errorMessage", "setErrorMessage", "getPaymentMethod", "paymentMethod", "setPaymentMethod", "TransactionalManagementIndicators", "getOpenIndicator", "openIndicator", "setOpenIndicator", "value", "getPendingIndicator", "pendingIndicator", "setPendingIndicator", "getConfirmedIndicator", "confirmedIndicator", "setConfirmedIndicator", "getCancelledIndicator", "cancelledIndicator", "setCancelledIndicator", "getExpiredIndicator", "expiredIndicator", "setExpiredIndicator", "getRejectedIndicator", "rejectedIndicator", "setRejectedIndicator", "getRefundIndicator", "refundIndicator", "setRefundIndicator", "getRefundedIndicator", "refundedIndicator", "setRefundedIndicator", "getInconsistentIndicator", "inconsistentIndicator", "setInconsistentIndicator", "getExceededIndicator", "exceededIndicator", "setExceededIndicator", "MonitorStatus", "fromEnum", "value", "constructor", "status", "textStatus", "options", "get", "description", "getDescription", "_MonitorStatus", "Map", "TransactionalManagementSale", "constructor", "productItems", "getId", "id", "setId", "value", "getUniqueSequencialNumber", "uniqueSequencialNumber", "setUniqueSequencialNumber", "getType", "type", "setType", "getBeneficiarySocialNumber", "beneficiarySocialNumber", "setBeneficiarySocialNumber", "getShippingType", "shippingType", "setShippingType", "getBeneficiaryName", "beneficiaryName", "setBeneficiaryName", "getIsHolder", "isHolder", "setIsHolder", "getCardNumber", "cardNumber", "setCardNumber", "getNetworkFiscalNumber", "networkFiscalNumber", "setNetworkFiscalNumber", "getTotalPrice", "totalPrice", "setTotalPrice", "getTotalCardValue", "totalCardValue", "setTotalCardValue", "getTotalCheckoutValue", "totalCheckoutValue", "setTotalCheckoutValue", "getTransactionDate", "transactionDate", "setTransactionDate", "year", "slice", "month", "day", "hour", "getMonitorStatus", "monitorStatus", "setMonitorStatus", "MonitorStatus", "fromEnum", "getProductItems", "setProductItems", "getUniqueSequencialNumberCorrelated", "uniqueSequencialNumberCorrelated", "setUniqueSequencialNumberCorrelated", "TransactionalManagementResult", "constructor", "sales", "getRequest", "request", "setRequest", "value", "getStart", "start", "setStart", "getTotal", "total", "setTotal", "getTotalPerPages", "totalPerPages", "setTotalPerPages", "getSales", "setSales", "addSales", "concat", "hasSalesItem", "length", "getIndicators", "indicators", "setIndicators", "parseIndicators", "payload", "indicators", "TransactionalManagementIndicators", "map", "item", "SalesOrderMonitorStatusDescription", "setOpenIndicator", "TotalCount", "setPendingIndicator", "setConfirmedIndicator", "setCancelledIndicator", "setExpiredIndicator", "setRejectedIndicator", "setRefundIndicator", "setRefundedIndicator", "setInconsistentIndicator", "setExceededIndicator", "parseTransactionalManagementResult", "result", "TransactionalManagementResult", "setStart", "Start", "setTotal", "Total", "setTotalPerPages", "TotalPerPages", "setSales", "parseSales", "Data", "parseSale", "sale", "TransactionalManagementSale", "setId", "Id", "setUniqueSequencialNumber", "UniqueSequentialNumber", "setType", "OrderStatus", "setBeneficiarySocialNumber", "Beneficiary", "SocialNumber", "setBeneficiaryName", "Name", "setIsHolder", "IsHolder", "setCardNumber", "Card", "CardNumber", "setNetworkFiscalNumber", "FiscalNumber", "NetworkInfo", "setTotalPrice", "TotalPrice", "setTotalCardValue", "TotalCardValue", "setTotalCheckoutValue", "TotalCheckoutValue", "setTransactionDate", "TransactionDate", "setMonitorStatus", "SalesOrderMonitorStatus", "Items", "setProductItems", "parseProductItems", "UniqueSequentialNumberCorrelated", "setUniqueSequencialNumberCorrelated", "Value", "sales", "setShippingType", "ShippingType", "push", "productItems", "productItem", "ProductItem", "setEan", "EAN", "setProductName", "ProductName", "setGrossPrice", "GrossPrice", "setPrice", "Price", "setDiscountValue", "DiscountValue", "setSubsidyValue", "SubsidyValue", "setEmploymentPayrollValue", "EmploymentPayrollValue", "setCheckoutValue", "CheckoutValue", "setCardValue", "CardValue", "setBeneficiaryValue", "BeneficiaryValue", "setAuthorizedQuantity", "AuthorizedQuantity", "Messages", "setErrorMessage", "length", "Message", "setMedicalPrescription", "MedicalPrescription", "parseMedicalPrescription", "setUsedNetworkNetPrice", "UsedNetworkNetPrice", "setUsedNetworkGrossPrice", "UsedNetworkGrossPrice", "setMedicalPrescriptionStatus", "MedicalPrescriptionStatus", "medicalPrescription", "setMedicalPrescriptionDate", "MedicalPrescriptionDate", "setMedicalPrescriptionInsertionDate", "setPractitionerRegistration", "parsePractitionerRegistration", "setQuantity", "Quantity", "registration", "PractitionerRegistration", "setRegistration", "setState", "StateAcronym", "PractitionerState", "IndicatorsParser", "AbstractParser", "parse", "payload", "parseIndicators", "TransactionalManagementResultParser", "AbstractParser", "parse", "payload", "parseTransactionalManagementResult", "parseSale", "NetworkExternalConfiguration", "getNetworkFiscalNumber", "networkFiscalNumber", "setNetworkFiscalNumber", "isPricingConsultingEnable", "pricingConsultingEnable", "setPricingConsultingEnable", "NetworkExternalConfigurationParse", "AbstractParser", "parse", "payload", "networkExternalConfiguration", "NetworkExternalConfiguration", "setNetworkFiscalNumber", "NetworkFiscalNumber", "Value", "setPricingConsultingEnable", "PricingConsultEnabled", "__ngFactoryType__", "factory", "\u0275fac", "_NetworkExternalConfigurationParse", "ParserModule", "forRoot", "ngModule", "providers", "ScsAuthorizationTokenParser", "UserCredentialsParser", "HealthParser", "UserCredentialsActivationParser", "PowerBiReportParser", "NewsParser", "ImportFileParser", "SaveBenficiaryParser", "SearchCompanyParser", "CompanyParser", "AddCompanyParser", "ContactParser", "AddContactParser", "SearchCompanyFromMDMParser", "BenefitConfigurationParser", "ProductConfigurationParser", "ProductTypeParser", "PaymentTypeParser", "ProductSubtypeParser", "SearchProductsByParser", "SearchTherapeuticClassesByParser", "NetworkProductConfigurationParser", "NetworkParser", "ProductCategoryParser", "ZipCodeIntegrationParser", "MedicalPrescriptionValidityParser", "TransactionConfigurationParser", "MedicalPrescriptionConfigurationParser", "SubsidyConfigurationParser", "BeneficiaryConfigurationParser", "LifeCycleConfigurationParser", "FindSalesHistoryParser", "FindSalesHistoryByFiscalNumberParser", "SearchUserParser", "SearchUserByUserKeyParser", "RequestUserRolesParser", "UserCredentialParser", "ResponseErrorParser", "FindBeneficiaryByKeyParser", "FindBeneficiariesByFiscalNumberParser", "FindBeneficiaryHolderBySocialNumberParser", "FindBeneficiaryBySocialNumberParser", "FindFinancialStatementParser", "FindFinancialBalanceBySocialNumberParser", "StateAcronymParser", "CityParser", "GetFileExportStatusParser", "ExportFileParser", "ExportFileAsXLSXParser", "BlockReasonListParser", "JobDescriptionParser", "OrderBeneficiaryCardParser", "IndicatorDataParser", "CompanyFinancialReportsParser", "SearchNetworkFinancialStatementsParse", "NetworkTermParser", "NetworkTermFormParser", "NetworkAcceptTermParser", "NetworksParser", "IndustryDiscountsPageableResultParser", "IndustryDiscountParser", "ImportIndustryProductDiscountParser", "SearchProductsParser", "ProductTypesParser", "ProductSubTypesParser", "TherapeuticClassParser", "ProductUseValiditiesParser", "ProductPricingsParser", "PriceRegimesParser", "UseTypesParser", "TributaryCreditConcessionsParser", "ProductPrincingTemplateParser", "IndicatorsParser", "TransactionalManagementResultParser", "SearchPractitionersParser", "PractitionerSpecialtiesParser", "SearchPractitionerByKeyParser", "PractitionerStatusParser", "NetworkTermStatusParser", "NetworkExternalConfigurationParse", "ClusterParser", "ClustersPageableResultParser", "ClusterProductsPageableResultParser", "ImportFileClusterParser", "AddNewClusterParser", "CompanyConfigurationParser", "_ParserModule", "GatewayModule", "forRoot", "ngModule", "providers", "RemoteGatewayFactory", "RouteStrategyFactory", "provideHttpClient", "withInterceptorsFromDi", "_GatewayModule", "HealthRepository", "constructor", "remoteGatewayFactory", "healthParser", "getItems", "__async", "headers", "data", "createDefaultRemoteGateway", "getWithHeaders", "BackendUrl", "parse", "error", "Promise", "reject", "\u0275\u0275inject", "RemoteGatewayFactory", "HealthParser", "factory", "\u0275fac", "_HealthRepository", "init_esm2015", "NetworkTotalObserverService", "constructor", "obsNetworkTotal", "BehaviorSubject", "changeNetworkTotal", "data", "next", "factory", "\u0275fac", "providedIn", "_NetworkTotalObserverService", "NetworkRepository", "constructor", "networkObs", "remoteGatewayFactory", "userRoleMediator", "networkParser", "searchNetworkFinancialStatementsParse", "networkExternalConfigurationParse", "headers", "fiscalNumberRootHeader", "getCompanyFiscalNumberRoot", "searchNetworkFinancialStatements", "pagingRequest", "__async", "body", "FilterText", "getFiscalNumber", "ReferenceYear", "getReferenceYear", "ReferenceMonth", "getReferenceMonth", "StartIndex", "getStart", "TotalPerPages", "getEnd", "data", "createDefaultRemoteGateway", "postWithHeaders", "BackendUrl", "parse", "httpErrorResponse", "Promise", "reject", "error", "Data", "ErrorMessage", "findNetworkExportOrderKey", "fiscalNumber", "startAt", "endAt", "JSON", "stringify", "FiscalNumber", "Value", "StartAt", "EndAt", "ExportOrderKey", "toString", "getExternalNetworkConfiguration", "get", "enableNetworkPricingConsult", "putWithHeaders", "disableNetworkPricingConsult", "searchNetworks", "payload", "\u0275\u0275inject", "NetworkTotalObserverService", "RemoteGatewayFactory", "UserRoleMediator", "NetworkParser", "SearchNetworkFinancialStatementsParse", "NetworkExternalConfigurationParse", "factory", "\u0275fac", "_NetworkRepository", "ProductCategoryRepository", "constructor", "remoteGatewayFactory", "productCategoryParser", "getProductCategoryList", "__async", "headers", "data", "createDefaultRemoteGateway", "getWithHeaders", "BackendUrl", "parse", "error", "Promise", "reject", "\u0275\u0275inject", "RemoteGatewayFactory", "ProductCategoryParser", "factory", "\u0275fac", "_ProductCategoryRepository", "NetworkTermRepository", "constructor", "remoteGatewayFactory", "termParser", "termFormParser", "networkAcceptTermParser", "networksParser", "acceptTerm", "fiscalNumber", "term", "__async", "body", "TermKey", "getTermKey", "FiscalNumber", "getValue", "Accepted", "headers", "createDefaultRemoteGateway", "postWithHeaders", "BackendUrl", "error", "Promise", "reject", "getTerm", "networkInfoKey", "data", "getWithHeaders", "resolve", "parse", "getNetworkAcceptTermByFiscalNumber", "getTermForm", "MdmBackendUrl", "sendTermForm", "form", "formData", "createFormData", "Accept", "downloadTerm", "termId", "downloadAsGet", "getNetworksAcceptedTerm", "request", "JSON", "stringify", "StartIndex", "getStartIndex", "TotalPerPages", "getTotalPerPages", "FilterText", "getFilterText", "StartAt", "getStartDate", "EndAt", "getEndDate", "searchResult", "setRequest", "findNetworkTermExportOrderKey", "getEndIndex", "ExportOrderKey", "toString", "referenceError", "errorMessage", "Data", "ErrorMessage", "\u0275\u0275inject", "RemoteGatewayFactory", "NetworkTermParser", "NetworkTermFormParser", "NetworkAcceptTermParser", "NetworksParser", "factory", "\u0275fac", "_NetworkTermRepository", "TransactionManagementRepository", "constructor", "remoteGatewayFactory", "indicatorsParser", "searchSales", "request", "__async", "body", "FiscalNumber", "getFiscalNumber", "Value", "getValue", "SocialNumber", "geteSocialNumber", "Card", "getCard", "CardNumber", "getCardNumber", "UniqueSequentialNumber", "getUniqueSequentialNumber", "ShippingType", "getShippingType", "StartAt", "getStartDate", "EndAt", "getEndDate", "SalesOrderMonitorStatus", "getMonitorStatus", "StartIndex", "getStartIndex", "TotalPerPages", "getTotalPerPage", "headers", "data", "createDefaultRemoteGateway", "postWithHeaders", "BackendUrl", "Promise", "resolve", "error", "reject", "searchSalesById", "id", "getWithHeaders", "searchIndicators", "IsBlocked", "IsCancelled", "parse", "findNetworkTermExportOrderKey", "ExportOrderKey", "toString", "referenceError", "errorMessage", "Data", "ErrorMessage", "findSalesDatails", "cancelOrder", "nsu", "description", "NSU", "Description", "\u0275\u0275inject", "RemoteGatewayFactory", "IndicatorsParser", "factory", "\u0275fac", "_TransactionManagementRepository", "DrugstoreTestsRepository", "constructor", "remoteGatewayFactory", "http", "getToken", "__async", "headers", "body", "environment", "pdvTokenBodyRequest", "post", "pdvTokenUrl", "toPromise", "access_token", "error", "console", "log", "\u0275\u0275inject", "RemoteGatewayFactory", "HttpClient", "factory", "\u0275fac", "_DrugstoreTestsRepository", "AuditSale", "getSalesOrderKey", "salesOrderKey", "setSalesOrderKey", "getUniqueSequentialNumber", "uniqueSequentialNumber", "setUniqueSequentialNumber", "getUniqueSequentialNumberCorrelated", "uniqueSequentialNumberCorrelated", "setUniqueSequentialNumberCorrelated", "getBeneficiary", "beneficiary", "setBeneficiary", "getTransactionDate", "transactionDate", "setTransactionDate", "getSalesAction", "salesAction", "setSalesAction", "getNetworkInfo", "networkInfo", "setNetworkInfo", "getErrorCauses", "errorCauses", "setErrorCauses", "getStatus", "status", "setStatus", "getSource", "source", "setSource", "getHasPendingMedicalPrescriptionScans", "hasPendingMedicalPrescriptionScans", "setHasPendingMedicalPrescriptionScans", "AuditSaleDetails", "AuditSale", "constructor", "items", "Array", "getItems", "setItems", "setAuditSaleProperts", "auditSale", "setSalesOrderKey", "getSalesOrderKey", "setUniqueSequentialNumber", "getUniqueSequentialNumber", "setUniqueSequentialNumberCorrelated", "getUniqueSequentialNumberCorrelated", "setBeneficiary", "getBeneficiary", "setTransactionDate", "getTransactionDate", "setSalesAction", "getSalesAction", "setNetworkInfo", "getNetworkInfo", "setErrorCauses", "getErrorCauses", "setStatus", "getStatus", "setSource", "getSource", "setHasPendingMedicalPrescriptionScans", "getHasPendingMedicalPrescriptionScans", "UniqueSequentialNumber", "setValue", "value", "getValue", "pageableResult", "PageableResult", "parseAuditSalePageableResult", "payload", "setStart", "Start", "setEnd", "TotalPerPages", "setTotalItems", "Total", "setItems", "parseAuditSaleList", "Data", "parseAuditSale", "auditSale", "AuditSale", "networkParser", "NetworkParser", "setSalesOrderKey", "SalesOrderKey", "uniqueSequentialNumber", "UniqueSequentialNumber", "setValue", "Value", "setUniqueSequentialNumber", "uniqueSequentialNumberCorrelated", "UniqueSequentialNumberCorrelated", "setUniqueSequentialNumberCorrelated", "beneficiary", "parseBeneficiary", "Beneficiary", "setBeneficiary", "setTransactionDate", "TransactionDate", "setSalesAction", "SalesAction", "network", "parseUnicNetwork", "NetworkInfo", "setNetworkInfo", "setErrorCauses", "ErrorCauses", "setStatus", "Status", "setSource", "Source", "setHasPendingMedicalPrescriptionScans", "HasPendingMedicalPrescriptionScans", "map", "item", "parseAuditSaleDetails", "auditSaleDetails", "AuditSaleDetails", "setAuditSaleProperts", "parseProductItems", "Items", "AuditSalePageableResultParser", "AbstractParser", "parse", "payload", "parseAuditSalePageableResult", "parseDetails", "parseAuditSaleDetails", "AuditSaleRepository", "constructor", "remoteGatewayFactory", "auditSalePageableResultParser", "searchAudit", "pagingRequest", "__async", "body", "JSON", "stringify", "headers", "remoteGateway", "createDefaultRemoteGateway", "backendUrl", "BackendUrl", "payload", "postWithHeaders", "parse", "err", "Promise", "reject", "searchAuditDetails", "salesOrderKey", "getWithHeaders", "\u0275\u0275inject", "RemoteGatewayFactory", "AuditSalePageableResultParser", "factory", "\u0275fac", "_AuditSaleRepository", "RepositoryModule", "forRoot", "ngModule", "providers", "AuthRepository", "UserRepository", "UserTermRepository", "ResetPasswordRepository", "HealthRepository", "NewsRepository", "BeneficiaryRepository", "CompanyRepository", "BenefitRepository", "ProductRepository", "TherapeuticClassRepository", "NetworkRepository", "NetworkFinancialstatmentPaymentRepository", "ProductCategoryRepository", "MedicalPrescriptionRepository", "SalesHistoryRepository", "FinancialStatementRepository", "StateRepository", "FileExportRepository", "JobDescriptionRepository", "IndicatorRepository", "NetworkTermRepository", "IndustryRepository", "ProductManagementRepository", "TransactionManagementRepository", "PractitionerManagementRepository", "DrugstoreTestsRepository", "GeneralReportRepository", "AuditSaleRepository", "AuditSalePageableResultParser", "ClustersRepository", "PaymentRepository", "ParserModule", "GatewayModule", "_RepositoryModule", "ServiceCredentials", "constructor", "token", "DefaultAuthProcessor", "constructor", "authService", "appContext", "routeStrategyFactory", "processAuthentication", "route", "__async", "queryParams", "token", "t", "authServiceAuthenticated", "isServiceTokenvValid", "setServiceCredential", "ServiceCredentials", "createStrategy", "redirect", "hash", "switchContext", "isUserLogged", "isAuthenticated", "isServiceLogged", "DefaultAuthProcessorFactory", "constructor", "authService", "appContext", "routeStrategyFactory", "createProcessor", "DefaultAuthProcessor", "\u0275\u0275inject", "AuthService", "AppContext", "RouteStrategyFactory", "factory", "\u0275fac", "_DefaultAuthProcessorFactory", "DIALOG_DATA", "InjectionToken", "defaultConfig", "backdropClass", "disableClose", "panelClass", "width", "DialogService", "constructor", "overlay", "injector", "open", "componentOrTemplate", "config", "dialogConfig", "Object", "assign", "overlayRef", "create", "hasBackdrop", "positionStrategy", "position", "global", "centerVertically", "centerHorizontally", "dialogRef", "DialogRef", "dialog", "attach", "ComponentPortal", "DialogComponent", "PortalInjector", "WeakMap", "instance", "TemplateRef", "attachTemplatePortal", "TemplatePortal", "$implicit", "data", "attachComponentPortal", "\u0275\u0275inject", "Overlay", "Injector", "factory", "\u0275fac", "providedIn", "_DialogService", "NetworkService", "constructor", "networkRepository", "searchNetworkFinancialStatements", "pagingRequest", "__async", "findNetworkExportOrderKey", "fiscalNumber", "startAt", "endAt", "\u0275\u0275inject", "NetworkRepository", "factory", "\u0275fac", "providedIn", "_NetworkService", "ServiceModule", "forRoot", "ngModule", "providers", "AlertService", "AuthService", "GridService", "LoadingService", "ModalService", "UserService", "DefaultAuthProcessorFactory", "OverlayService", "DialogService", "ToastService", "NewsService", "FeatureViewService", "BeneficiaryService", "CompanyService", "HeaderService", "BenefitService", "ProductService", "TherapeuticClassService", "NetworkService", "MedicalPrescriptionService", "FinancialStatementService", "FileExportService", "JobDescriptionService", "IndustryDiscountsService", "RepositoryModule", "_ServiceModule"] }