From 04343b5c0d10cb45b3144d7678c48460eaecc612 Mon Sep 17 00:00:00 2001 From: Giampiero Ferrara Date: Tue, 26 Nov 2024 15:08:03 +0100 Subject: [PATCH] Added GPUData into onboarding-cdc --- .../onboarding/event/entity/BusinessData.java | 10 ++++++++++ .../onboarding/event/entity/GPUData.java | 16 ++++++++++++++++ .../event/entity/PaymentServiceProvider.java | 10 ++++------ 3 files changed, 30 insertions(+), 6 deletions(-) create mode 100644 apps/onboarding-cdc/src/main/java/it/pagopa/selfcare/onboarding/event/entity/BusinessData.java create mode 100644 apps/onboarding-cdc/src/main/java/it/pagopa/selfcare/onboarding/event/entity/GPUData.java diff --git a/apps/onboarding-cdc/src/main/java/it/pagopa/selfcare/onboarding/event/entity/BusinessData.java b/apps/onboarding-cdc/src/main/java/it/pagopa/selfcare/onboarding/event/entity/BusinessData.java new file mode 100644 index 000000000..dcf5a96e5 --- /dev/null +++ b/apps/onboarding-cdc/src/main/java/it/pagopa/selfcare/onboarding/event/entity/BusinessData.java @@ -0,0 +1,10 @@ +package it.pagopa.selfcare.onboarding.event.entity; + +import lombok.Data; + +@Data +public class BusinessData { + private String businessRegisterNumber; + private String legalRegisterNumber; + private String legalRegisterName; +} diff --git a/apps/onboarding-cdc/src/main/java/it/pagopa/selfcare/onboarding/event/entity/GPUData.java b/apps/onboarding-cdc/src/main/java/it/pagopa/selfcare/onboarding/event/entity/GPUData.java new file mode 100644 index 000000000..a39fb295b --- /dev/null +++ b/apps/onboarding-cdc/src/main/java/it/pagopa/selfcare/onboarding/event/entity/GPUData.java @@ -0,0 +1,16 @@ +package it.pagopa.selfcare.onboarding.event.entity; + +import lombok.Data; +import lombok.EqualsAndHashCode; + +@Data +@EqualsAndHashCode(callSuper = true) +public class GPUData extends BusinessData { + + private boolean manager; + private boolean managerAuthorized; + private boolean managerEligible; + private boolean managerProsecution; + private boolean institutionCourtMeasures; + +} diff --git a/apps/onboarding-cdc/src/main/java/it/pagopa/selfcare/onboarding/event/entity/PaymentServiceProvider.java b/apps/onboarding-cdc/src/main/java/it/pagopa/selfcare/onboarding/event/entity/PaymentServiceProvider.java index e9ceb30dc..0d4cc656a 100644 --- a/apps/onboarding-cdc/src/main/java/it/pagopa/selfcare/onboarding/event/entity/PaymentServiceProvider.java +++ b/apps/onboarding-cdc/src/main/java/it/pagopa/selfcare/onboarding/event/entity/PaymentServiceProvider.java @@ -1,15 +1,13 @@ package it.pagopa.selfcare.onboarding.event.entity; -import lombok.Data; - import java.util.List; +import lombok.Data; +import lombok.EqualsAndHashCode; @Data -public class PaymentServiceProvider { +@EqualsAndHashCode(callSuper = true) +public class PaymentServiceProvider extends BusinessData { private String abiCode; - private String businessRegisterNumber; - private String legalRegisterNumber; - private String legalRegisterName; private boolean vatNumberGroup; private String contractType; private String contractId;