diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 9ca9abe..4eed34b 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -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 e417060..a239b29 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -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 54b1bdf..5f28c26 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -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/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..bd628fd 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.error("[{}] 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.error("[{}] 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.error("[{}] 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.error("[{}] 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.error("[{}] 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.error("[{}] event with id {} discarded because is part of a payment cart ({} total notice)", context.getFunctionName(), bizEvent.getId(), intTotalNotice); return true;