Commit 412679ea authored by Enriko Käsper's avatar Enriko Käsper
Browse files

Merge branch 'hotfix/TEIS-1088' into 'master'

Release: merge 'hotfix-teis-1088' into 'master' created by Enriko Käsper

See merge request teis/common-api-gateway!90
parents e09119e3 ee7579c4
Pipeline #1094 failed
......@@ -22,10 +22,10 @@ public class IndividualPersonDto implements SensitiveType {
@Size(max = 25)
private String idCode;
@NotBlank
@Size(max = 100)
@Size(max = 500)
private String firstName;
@NotBlank
@Size(max = 100)
@Size(max = 500)
private String lastName;
private LocalDate dateOfBirth;
private Boolean unidentified;
......
......@@ -7,7 +7,6 @@ import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.validation.constraints.Size;
import java.time.LocalDate;
import java.util.UUID;
......@@ -18,15 +17,12 @@ import java.util.UUID;
public class ProceedingPublicDto {
private UUID id;
@Size(max = 25)
private String proceedingNumber;
private OfficialUserPublicDto officialUser;
private LocalDate startDate;
private LocalDate endDate;
private UUID legalPersonId;
@Size(max = 25)
private String legalPersonRegCode;
@Size(max = 100)
private String legalPersonName;
private ClassifierItemLightDto status;
private ObjectStatus objectStatus;
......
......@@ -34,7 +34,7 @@ public class LegalPersonController extends TeisBaseController {
@ApiOperation(value = "${teis.api.messages.get-legal-person}", response = PersonDto.class)
@GetMapping(produces = MediaType.APPLICATION_JSON_VALUE)
public PersonDto getLegalPerson(@RequestParam(name = "regCode") @Min(1) @Max(999999999) BigInteger regCode,
@RequestParam(name = "name", required = false) @Size(min = 2) @Size(max = 100) String name,
@RequestParam(name = "name", required = false) @Size(min = 2) String name,
@ApiIgnore RequestMetaDTO requestMetaDTO) {
GetOrCreatePersonRequest request = new GetOrCreatePersonRequest();
request.setPayload(new GetOrCreatePersonRequest.Parameters(String.valueOf(regCode), name), requestMetaDTO);
......
......@@ -49,7 +49,7 @@ public class XroadArController extends TeisBaseController {
@ApiOperation(value = "Ärireigistrist päritakse x-tee teenusega ettevõtte lihtandmed.")
@GetMapping(value = "company", produces = MediaType.APPLICATION_JSON_VALUE)
public String getCompanyFromAR(@RequestParam(required = false) @Size(min = 2) @Size(max = 100) String name,
public String getCompanyFromAR(@RequestParam(required = false) @Size(min = 2) String name,
@RequestParam(required = false) @Min(1) @Max(999999999) BigInteger regCode,
@ApiIgnore RequestMetaDTO requestMetaDTO) {
ArCompanyXroadRequest request = new ArCompanyXroadRequest();
......
theGroup=ee.sm.ti.teis
//commonApiGatewayVersion=forSearch ^commonApiGatewayVersion=.*?-SNAPSHOT
theVersion=1.0.0
theVersion=1.0.1
commonsVersion=1.1.0
pluginVersion=1.0.0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment