-
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-5075] Feat: Added isAggregator and aggregates fields in Onboard…
…ingProductDto (#316)
- Loading branch information
1 parent
6855391
commit 0c68553
Showing
6 changed files
with
154 additions
and
0 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
27 changes: 27 additions & 0 deletions
27
web/src/main/java/it/pagopa/selfcare/onboarding/web/model/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,27 @@ | ||
package it.pagopa.selfcare.onboarding.web.model; | ||
|
||
import it.pagopa.selfcare.onboarding.common.Origin; | ||
import it.pagopa.selfcare.onboarding.connector.model.onboarding.GeographicTaxonomy; | ||
import lombok.Data; | ||
|
||
import javax.validation.constraints.NotNull; | ||
import java.util.List; | ||
|
||
@Data | ||
public class AggregateInstitution { | ||
|
||
@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
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
37 changes: 37 additions & 0 deletions
37
web/src/test/resources/stubs/onboardingProductsDtoWithAggregates.json
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,37 @@ | ||
{ | ||
"billingData": { | ||
"businessName": "string", | ||
"digitalAddress": "string", | ||
"publicServices": false, | ||
"recipientCode": "string", | ||
"registeredOffice": "string", | ||
"taxCode": "string", | ||
"vatNumber": "string", | ||
"zipCode": "string" | ||
}, | ||
"institutionType": "PA", | ||
"origin": "string", | ||
"pricingPlan": "string", | ||
"taxCode": "string", | ||
"subunitCode": "string", | ||
"subunitType": "AOO", | ||
"productId": "prod-io", | ||
"users": [ | ||
{ | ||
"email": "email@example.com", | ||
"name": "string", | ||
"role": "DELEGATE", | ||
"surname": "string", | ||
"taxCode": "string" | ||
} | ||
], | ||
"isAggregate": true, | ||
"aggregates": [ | ||
{ | ||
"taxCode": "taxCode", | ||
"subunitCode": "152652", | ||
"subunitType": "AOO", | ||
"description": "description" | ||
} | ||
] | ||
} |