From 2b2c0d4e82ae6ba94a12aac76a23cabe7e0be5b4 Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Thu, 22 Aug 2024 15:28:16 +0000 Subject: [PATCH] disable ecommerce filter: helm files updated --- helm/Chart.yaml | 4 ++-- helm/values-dev.yaml | 4 ++-- helm/values-prod.yaml | 4 ++-- helm/values-uat.yaml | 4 ++-- openapi/openapi.json | 2 +- pom.xml | 2 +- .../pdf/helpdesk/utils/BizEventToReceiptUtils.java | 12 ++++++------ 7 files changed, 16 insertions(+), 16 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 47d5cb4..b905456 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopareceiptpdfhelpdesk description: Microservice description type: application -version: 0.168.0 -appVersion: 0.10.1 +version: 0.169.0 +appVersion: 0.11.0 dependencies: - name: microservice-chart version: 2.4.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 058f514..4eed34b 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-receipt-pdf-helpdesk - tag: "0.10.1" + tag: "0.11.0" pullPolicy: Always # https://github.com/Azure/azure-functions-host/blob/dev/src/WebJobs.Script.WebHost/Controllers/HostController.cs livenessProbe: @@ -123,7 +123,7 @@ microservice-chart: RECOVER_FAILED_MASSIVE_MAX_DAYS: "0" RECOVER_NOT_NOTIFIED_MASSIVE_MAX_DAYS: "0" RECOVER_NOT_NOTIFIED_MASSIVE_MAX_RECORDS: "200" - ECOMMERCE_FILTER_ENABLED: "true" + ECOMMERCE_FILTER_ENABLED: "false" UNWANTED_REMITTANCE_INFO: "pagamento multibeneficiario,pagamento bpay" envConfigMapExternals: template-maps: diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index b954022..a239b29 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-receipt-pdf-helpdesk - tag: "0.10.1" + tag: "0.11.0" pullPolicy: Always # https://github.com/Azure/azure-functions-host/blob/dev/src/WebJobs.Script.WebHost/Controllers/HostController.cs livenessProbe: @@ -123,7 +123,7 @@ microservice-chart: RECOVER_FAILED_MASSIVE_MAX_DAYS: "1" RECOVER_NOT_NOTIFIED_MASSIVE_MAX_DAYS: "1" RECOVER_NOT_NOTIFIED_MASSIVE_MAX_RECORDS: "200" - ECOMMERCE_FILTER_ENABLED: "true" + ECOMMERCE_FILTER_ENABLED: "false" UNWANTED_REMITTANCE_INFO: "pagamento multibeneficiario,pagamento bpay" envConfigMapExternals: template-maps: diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index 2ac147c..5f28c26 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-receipt-pdf-helpdesk - tag: "0.10.1" + tag: "0.11.0" pullPolicy: Always # https://github.com/Azure/azure-functions-host/blob/dev/src/WebJobs.Script.WebHost/Controllers/HostController.cs livenessProbe: @@ -123,7 +123,7 @@ microservice-chart: RECOVER_FAILED_MASSIVE_MAX_DAYS: "0" RECOVER_NOT_NOTIFIED_MASSIVE_MAX_DAYS: "0" RECOVER_NOT_NOTIFIED_MASSIVE_MAX_RECORDS: "200" - ECOMMERCE_FILTER_ENABLED: "true" + ECOMMERCE_FILTER_ENABLED: "false" UNWANTED_REMITTANCE_INFO: "pagamento multibeneficiario,pagamento bpay" envConfigMapExternals: template-maps: diff --git a/openapi/openapi.json b/openapi/openapi.json index a4db15b..e26b6e7 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -4,7 +4,7 @@ "title": "Receipts Helpdesk", "description": "Microservice for exposing REST APIs about receipts helpdesk.", "termsOfService": "https://www.pagopa.gov.it/", - "version": "0.10.1" + "version": "0.11.0" }, "servers": [ { diff --git a/pom.xml b/pom.xml index 66a21f5..b68bf5a 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ it.gov.pagopa.receipt receipt-pdf-helpdesk - 0.10.1 + 0.11.0 jar pagopa-receipt-pdf-helpdesk diff --git a/src/main/java/it/gov/pagopa/receipt/pdf/helpdesk/utils/BizEventToReceiptUtils.java b/src/main/java/it/gov/pagopa/receipt/pdf/helpdesk/utils/BizEventToReceiptUtils.java index 2f89a54..449ea82 100644 --- a/src/main/java/it/gov/pagopa/receipt/pdf/helpdesk/utils/BizEventToReceiptUtils.java +++ b/src/main/java/it/gov/pagopa/receipt/pdf/helpdesk/utils/BizEventToReceiptUtils.java @@ -228,18 +228,18 @@ public static List getCartItems(BizEvent bizEvent) { public static boolean isBizEventInvalid(BizEvent bizEvent, ExecutionContext context, Logger logger) { if (bizEvent == null) { - logger.debug("[{}] event is null", context.getFunctionName()); + logger.warn("[{}] event is null", context.getFunctionName()); return true; } if (!BizEventStatusType.DONE.equals(bizEvent.getEventStatus()) && !BizEventStatusType.INGESTED.equals(bizEvent.getEventStatus())) { - logger.debug("[{}] event with id {} discarded because in status {}", + logger.warn("[{}] event with id {} discarded because in status {}", context.getFunctionName(), bizEvent.getId(), bizEvent.getEventStatus()); return true; } if (!hasValidFiscalCode(bizEvent)) { - logger.debug("[{}] event with id {} discarded because debtor's and payer's identifiers are missing or not valid", + logger.warn("[{}] event with id {} discarded because debtor's and payer's identifiers are missing or not valid", context.getFunctionName(), bizEvent.getId()); return true; } @@ -249,13 +249,13 @@ public static boolean isBizEventInvalid(BizEvent bizEvent, ExecutionContext cont && bizEvent.getTransactionDetails().getInfo() != null && ECOMMERCE.equals(bizEvent.getTransactionDetails().getInfo().getClientId()) ) { - logger.debug("[{}] event with id {} discarded because from e-commerce {}", + logger.warn("[{}] event with id {} discarded because from e-commerce {}", context.getFunctionName(), bizEvent.getId(), bizEvent.getTransactionDetails().getInfo().getClientId()); return true; } if (!isCartMod1(bizEvent)) { - logger.debug("[{}] event with id {} contain either an invalid amount value," + + logger.warn("[{}] event with id {} contain either an invalid amount value," + " or it is a legacy cart element", context.getFunctionName(), bizEvent.getId()); return true; @@ -280,7 +280,7 @@ public static boolean isBizEventInvalid(BizEvent bizEvent, ExecutionContext cont } if (intTotalNotice > 1) { - logger.debug("[{}] event with id {} discarded because is part of a payment cart ({} total notice)", + logger.warn("[{}] event with id {} discarded because is part of a payment cart ({} total notice)", context.getFunctionName(), bizEvent.getId(), intTotalNotice); return true;