Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SELC - 3390] feat: removed notEmpty to recipientCode in /onboarding API and added … #44

Merged
merged 2 commits into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import jakarta.ws.rs.core.MediaType;
import lombok.AllArgsConstructor;


//@RolesAllowed("USER")
@Path("/onboarding")
@AllArgsConstructor
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package it.pagopa.selfcare.onboarding.controller.request;

import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

@Data
public class BillingPaRequest {
@NotEmpty(message = "vatNumber is required")
private String vatNumber;
@NotEmpty(message = "recipientCode is required")
private String recipientCode;
private boolean publicServices;
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
public class BillingRequest {
@NotEmpty(message = "vatNumber is required")
private String vatNumber;
@NotEmpty(message = "recipientCode is required")

private String recipientCode;
private boolean publicServices;
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ public class InstitutionBaseRequest {
private String taxCode;
private String subunitCode;
private InstitutionPaSubunitType subunitType;

private String city;
private String country;
private String county;
private String description;
private String digitalAddress;
private String address;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ public class InstitutionResponse {
private String taxCode;
private String subunitCode;
private InstitutionPaSubunitType subunitType;

private String city;
private String country;
private String county;
private String description;
private String digitalAddress;
private String address;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
public class OnboardingResponse {

private InstitutionResponse institution;

private String productId;
private String pricingPlan;
private List<UserResponse> users;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ public class Institution {
private String taxCode;
private String subunitCode;
private InstitutionPaSubunitType subunitType;

private String city;
private String country;
private String county;
private String description;
private String digitalAddress;
private String address;
Expand Down