Skip to content

Commit

Permalink
[SELC-5641] feat: Added GPUData
Browse files Browse the repository at this point in the history
  • Loading branch information
giampieroferrara authored Nov 29, 2024
1 parent 101ede4 commit 67c5b7f
Show file tree
Hide file tree
Showing 8 changed files with 97 additions and 4 deletions.
32 changes: 32 additions & 0 deletions src/main/docs/openapi/api-selfcare-onboarding-docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2461,6 +2461,9 @@
},
"additionalInformations": {
"$ref": "#/components/schemas/AdditionalInformationsDto"
},
"gpuData" : {
"$ref" : "#/components/schemas/GPUData"
}
}
},
Expand Down Expand Up @@ -2945,6 +2948,35 @@
}
}
},
"GPUData" : {
"type" : "object",
"properties" : {
"businessRegisterNumber" : {
"type" : "string"
},
"legalRegisterNumber" : {
"type" : "string"
},
"legalRegisterName" : {
"type" : "string"
},
"manager" : {
"type" : "boolean"
},
"managerAuthorized" : {
"type" : "boolean"
},
"managerEligible" : {
"type" : "boolean"
},
"managerProsecution" : {
"type" : "boolean"
},
"institutionCourtMeasures" : {
"type" : "boolean"
}
}
},
"ReasonRequest": {
"type": "object",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public interface OnboardingResourceMapper {
@Mapping(source = "billingData.registeredOffice", target = "institutionUpdate.address")
@Mapping(source = "pspData", target = "institutionUpdate.paymentServiceProvider")
@Mapping(source = "pspData.dpoData", target = "institutionUpdate.dataProtectionOfficer")
@Mapping(source = "gpuData", target = "institutionUpdate.gpuData")
@Mapping(source = "geographicTaxonomies", target = "institutionUpdate.geographicTaxonomies")
@Mapping(source = "companyInformations.rea", target = "institutionUpdate.rea")
@Mapping(source = "companyInformations.shareCapital", target = "institutionUpdate.shareCapital")
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package it.pagopa.selfcare.external_api.model.institution;

import lombok.Data;

@Data
public class GPUData {
private String businessRegisterNumber;
private String legalRegisterNumber;
private String legalRegisterName;
private boolean manager;
private boolean managerAuthorized;
private boolean managerEligible;
private boolean managerProsecution;
private boolean institutionCourtMeasures;
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public class Institution {
private List<Attribute> attributes;
private PaymentServiceProvider paymentServiceProvider;
private DataProtectionOfficer dataProtectionOfficer;
private GPUData gpuData;
private String rea;
private String shareCapital;
private String businessRegisterPlace;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package it.pagopa.selfcare.external_api.model.onboarding;

import it.pagopa.selfcare.external_api.model.institution.GPUData;
import it.pagopa.selfcare.onboarding.common.InstitutionType;
import it.pagopa.selfcare.external_api.model.institution.GeographicTaxonomy;
import lombok.Data;
Expand All @@ -20,6 +21,7 @@ public class InstitutionUpdate {
private String zipCode;
private PaymentServiceProvider paymentServiceProvider;
private DataProtectionOfficer dataProtectionOfficer;
private GPUData gpuData;
private List<GeographicTaxonomy> geographicTaxonomies;
private String rea;
private String shareCapital;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package it.pagopa.selfcare.external_api.model.onboarding;

import io.swagger.annotations.ApiModelProperty;
import it.pagopa.selfcare.onboarding.common.InstitutionType;
import it.pagopa.selfcare.external_api.model.institution.GPUData;
import it.pagopa.selfcare.external_api.model.institution.InstitutionLocationDataDto;
import it.pagopa.selfcare.external_api.model.user.UserDto;
import lombok.Data;

import it.pagopa.selfcare.onboarding.common.InstitutionType;
import java.util.List;
import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;
import lombok.Data;

@Data
public class OnboardingProductDto {
Expand Down Expand Up @@ -43,6 +43,10 @@ public class OnboardingProductDto {
@Valid
private PspDataDto pspData;

@ApiModelProperty(value = "${swagger.external_api.institutions.model.gpuData}")
@Valid
private GPUData gpuData;

@ApiModelProperty(value = "${swagger.external_api.institutions.model.geographicTaxonomies}", required = true)
@NotNull
@Valid
Expand Down
37 changes: 37 additions & 0 deletions src/main/resources/swagger/api-docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -1471,6 +1471,36 @@
}
}
},
"GPUData" : {
"title" : "GPUData",
"type" : "object",
"properties" : {
"businessRegisterNumber" : {
"type" : "string"
},
"institutionCourtMeasures" : {
"type" : "boolean"
},
"legalRegisterName" : {
"type" : "string"
},
"legalRegisterNumber" : {
"type" : "string"
},
"manager" : {
"type" : "boolean"
},
"managerAuthorized" : {
"type" : "boolean"
},
"managerEligible" : {
"type" : "boolean"
},
"managerProsecution" : {
"type" : "boolean"
}
}
},
"GeographicTaxonomy" : {
"title" : "GeographicTaxonomy",
"type" : "object",
Expand Down Expand Up @@ -1686,6 +1716,9 @@
"$ref" : "#/components/schemas/GeographicTaxonomy"
}
},
"gpuData" : {
"$ref" : "#/components/schemas/GPUData"
},
"imported" : {
"type" : "boolean"
},
Expand Down Expand Up @@ -2052,6 +2085,10 @@
"$ref" : "#/components/schemas/GeographicTaxonomyDto"
}
},
"gpuData" : {
"description" : "GPU specific data",
"$ref" : "#/components/schemas/GPUData"
},
"institutionLocationData" : {
"description" : "Institution's location Data",
"$ref" : "#/components/schemas/InstitutionLocationDataDto"
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/swagger/swagger_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ swagger.external_api.institutions.model.supportEmail=Institution's support email
swagger.external_api.institutions.model.supportPhone=Institution's support phone contact
swagger.external_api.institutions.model.imported=True if institution is stored from batch api
swagger.external_api.institutions.model.pspData=Payment Service Provider (PSP) specific data
swagger.external_api.institutions.model.gpuData=GPU specific data
swagger.external_api.institutions.model.companyInformations=GPS, SCP, PT optional data
swagger.external_api.institutions.model.assistance=Institution's assistance contacts
swagger.external_api.institutions.model.onboardingDate=Institution's old onboarding date in the format 2007-12-03T10:15:30+01:00 (YYYY-MM-DD-T-HH:mm:ss+UTC)
Expand Down

0 comments on commit 67c5b7f

Please sign in to comment.