From 02894eda6c64c73eb99a90c2ad5f1869ddf86ae1 Mon Sep 17 00:00:00 2001 From: Giampiero Ferrara Date: Wed, 27 Nov 2024 12:34:01 +0100 Subject: [PATCH] Added gpuData into OnboardingResourceMapper --- .../selfcare/onboarding/web/model/OnboardingProductDto.java | 4 ++++ .../onboarding/web/model/mapper/OnboardingResourceMapper.java | 1 + web/src/main/resources/swagger/swagger_en.properties | 1 + 3 files changed, 6 insertions(+) diff --git a/web/src/main/java/it/pagopa/selfcare/onboarding/web/model/OnboardingProductDto.java b/web/src/main/java/it/pagopa/selfcare/onboarding/web/model/OnboardingProductDto.java index 05fe4466..351d2b7f 100644 --- a/web/src/main/java/it/pagopa/selfcare/onboarding/web/model/OnboardingProductDto.java +++ b/web/src/main/java/it/pagopa/selfcare/onboarding/web/model/OnboardingProductDto.java @@ -2,6 +2,7 @@ import io.swagger.annotations.ApiModelProperty; import it.pagopa.selfcare.onboarding.common.InstitutionType; +import it.pagopa.selfcare.onboarding.connector.model.onboarding.GPUData; import lombok.Data; import javax.validation.Valid; @@ -74,4 +75,7 @@ public class OnboardingProductDto { @ApiModelProperty(value = "${swagger.onboarding.institutions.model.aggregates}") private List aggregates; + + @ApiModelProperty(value = "${swagger.onboarding.institutions.model.gpuData}") + private GPUData gpuData; } diff --git a/web/src/main/java/it/pagopa/selfcare/onboarding/web/model/mapper/OnboardingResourceMapper.java b/web/src/main/java/it/pagopa/selfcare/onboarding/web/model/mapper/OnboardingResourceMapper.java index 079f32f6..4fbe1700 100644 --- a/web/src/main/java/it/pagopa/selfcare/onboarding/web/model/mapper/OnboardingResourceMapper.java +++ b/web/src/main/java/it/pagopa/selfcare/onboarding/web/model/mapper/OnboardingResourceMapper.java @@ -34,6 +34,7 @@ public interface OnboardingResourceMapper { @Mapping(source = "assistanceContacts.supportEmail", target = "institutionUpdate.supportEmail") @Mapping(source = "assistanceContacts.supportPhone", target = "institutionUpdate.supportPhone") @Mapping(source = "additionalInformations", target = "institutionUpdate.additionalInformations") + @Mapping(source = "gpuData", target = "institutionUpdate.gpuData") @Mapping(source = "originId", target = "originId") OnboardingData toEntity(OnboardingProductDto dto); diff --git a/web/src/main/resources/swagger/swagger_en.properties b/web/src/main/resources/swagger/swagger_en.properties index d9242d12..5e7cb8a3 100644 --- a/web/src/main/resources/swagger/swagger_en.properties +++ b/web/src/main/resources/swagger/swagger_en.properties @@ -46,6 +46,7 @@ swagger.onboarding.institutions.model.vatNumber=Institution's VAT number swagger.onboarding.institutions.model.publicServices=Institution's service type swagger.onboarding.institutions.model.pricingPlan=Product's pricing plan swagger.onboarding.institutions.model.origin=Institution data origin +swagger.onboarding.institutions.model.gpuData=Institution's GPU data swagger.onboarding.institutions.model.institutionType=Institution's type swagger.onboarding.institutions.model.userRole=Logged user's role swagger.onboarding.institutions.model.pspData=Payment Service Provider (PSP) specific data