generated from pagopa/pagopa-functions-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SELC - 5148] feat: added new AggregateInstitution Object (#330)
- Loading branch information
1 parent
624791c
commit 3347acd
Showing
12 changed files
with
322 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
95 changes: 95 additions & 0 deletions
95
...ng-functions/src/main/java/it/pagopa/selfcare/onboarding/entity/AggregateInstitution.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
package it.pagopa.selfcare.onboarding.entity; | ||
|
||
|
||
import it.pagopa.selfcare.onboarding.common.Origin; | ||
|
||
|
||
import java.util.List; | ||
|
||
|
||
public class AggregateInstitution { | ||
|
||
private String taxCode; | ||
private String description; | ||
private String subunitCode; | ||
private String subunitType; | ||
private List<GeographicTaxonomy> geographicTaxonomies; | ||
private String address; | ||
private String zipCode; | ||
private String originId; | ||
private Origin origin; | ||
|
||
public String getTaxCode() { | ||
return taxCode; | ||
} | ||
|
||
public void setTaxCode(String taxCode) { | ||
this.taxCode = taxCode; | ||
} | ||
|
||
public String getSubunitCode() { | ||
return subunitCode; | ||
} | ||
|
||
public void setSubunitCode(String subunitCode) { | ||
this.subunitCode = subunitCode; | ||
} | ||
|
||
public String getSubunitType() { | ||
return subunitType; | ||
} | ||
|
||
public void setSubunitType(String subunitType) { | ||
this.subunitType = subunitType; | ||
} | ||
|
||
public String getDescription() { | ||
return description; | ||
} | ||
|
||
public void setDescription(String description) { | ||
this.description = description; | ||
} | ||
|
||
public String getAddress() { | ||
return address; | ||
} | ||
|
||
public void setAddress(String address) { | ||
this.address = address; | ||
} | ||
|
||
public String getZipCode() { | ||
return zipCode; | ||
} | ||
|
||
public void setZipCode(String zipCode) { | ||
this.zipCode = zipCode; | ||
} | ||
|
||
public List<GeographicTaxonomy> getGeographicTaxonomies() { | ||
return geographicTaxonomies; | ||
} | ||
|
||
public void setGeographicTaxonomies(List<GeographicTaxonomy> geographicTaxonomies) { | ||
this.geographicTaxonomies = geographicTaxonomies; | ||
} | ||
|
||
public Origin getOrigin() { | ||
return origin; | ||
} | ||
|
||
public void setOrigin(Origin origin) { | ||
this.origin = origin; | ||
} | ||
|
||
public String getOriginId() { | ||
return originId; | ||
} | ||
|
||
public void setOriginId(String originId) { | ||
this.originId = originId; | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...in/java/it/pagopa/selfcare/onboarding/controller/request/AggregateInstitutionRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package it.pagopa.selfcare.onboarding.controller.request; | ||
|
||
import it.pagopa.selfcare.onboarding.common.Origin; | ||
import it.pagopa.selfcare.onboarding.entity.GeographicTaxonomy; | ||
import jakarta.validation.constraints.NotNull; | ||
import lombok.Data; | ||
|
||
import java.util.List; | ||
|
||
@Data | ||
public class AggregateInstitutionRequest { | ||
@NotNull(message = "taxCode is required") | ||
private String taxCode; | ||
|
||
@NotNull(message = "description is required") | ||
private String description; | ||
|
||
private String subunitCode; | ||
private String subunitType; | ||
private List<GeographicTaxonomy> geographicTaxonomies; | ||
private String address; | ||
private String zipCode; | ||
private String originId; | ||
private Origin origin; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...nboarding-ms/src/main/java/it/pagopa/selfcare/onboarding/entity/AggregateInstitution.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package it.pagopa.selfcare.onboarding.entity; | ||
|
||
import it.pagopa.selfcare.onboarding.common.Origin; | ||
import jakarta.validation.constraints.NotNull; | ||
import lombok.Data; | ||
|
||
import java.util.List; | ||
|
||
@Data | ||
public class AggregateInstitution { | ||
|
||
private String taxCode; | ||
private String description; | ||
private String subunitCode; | ||
private String subunitType; | ||
private List<GeographicTaxonomy> geographicTaxonomies; | ||
private String address; | ||
private String zipCode; | ||
private String originId; | ||
private Origin origin; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.