backend-api update meta поправил поле в ChangeRefundDateActionNew.java в соответствии с метой
This commit is contained in:
parent
49b920c6e9
commit
e053ff652d
2 changed files with 26 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import ru.spcex.clearing.backendapi.domain.actions.IAction;
|
||||
import ru.spcex.clearing.backendapi.errors.BackEndError;
|
||||
import ru.spcex.clearing.platform.messaging.domain.ActionType;
|
||||
|
|
@ -22,6 +23,8 @@ public class ChangeRefundDateActionNew implements IAction<RegistryChangeRefundDa
|
|||
|
||||
@JsonIgnore
|
||||
public Long groupId;
|
||||
@JsonIgnore
|
||||
public String contract;
|
||||
@JsonProperty
|
||||
@JsonSerialize(using = LocalDateSerializer.class)
|
||||
@JsonDeserialize(using = LocalDateDeserializer.class)
|
||||
|
|
@ -31,6 +34,7 @@ public class ChangeRefundDateActionNew implements IAction<RegistryChangeRefundDa
|
|||
public RegistryChangeRefundDateRequest toRequest() {
|
||||
var req = new RegistryChangeRefundDateRequest();
|
||||
req.setGroupId(groupId);
|
||||
req.setContract(contract);
|
||||
req.setRefundDate(refundDate);
|
||||
return req;
|
||||
}
|
||||
|
|
@ -41,6 +45,9 @@ public class ChangeRefundDateActionNew implements IAction<RegistryChangeRefundDa
|
|||
if (groupId == null) {
|
||||
errors.add(new EnumMessage(BackEndError.ValidationError, "url parameter 'groupId'"));
|
||||
}
|
||||
if (StringUtils.isEmpty(contract)) {
|
||||
errors.add(new EnumMessage(BackEndError.ValidationError, "contract"));
|
||||
}
|
||||
if (refundDate == null) {
|
||||
errors.add(new EnumMessage(BackEndError.ValidationError, "refundDate"));
|
||||
}
|
||||
|
|
@ -61,6 +68,14 @@ public class ChangeRefundDateActionNew implements IAction<RegistryChangeRefundDa
|
|||
this.groupId = groupId;
|
||||
}
|
||||
|
||||
public String getContract() {
|
||||
return contract;
|
||||
}
|
||||
|
||||
public void setContract(String contract) {
|
||||
this.contract = contract;
|
||||
}
|
||||
|
||||
public LocalDate getRefundDate() {
|
||||
return refundDate;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
package ru.spcex.clearing.platform.messaging.domain.cud.registry;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
|
|
@ -11,6 +12,8 @@ import java.time.LocalDate;
|
|||
public class RegistryChangeRefundDateRequest {
|
||||
@JsonProperty
|
||||
private Long groupId;
|
||||
@JsonIgnore
|
||||
public String contract;
|
||||
@JsonProperty
|
||||
@JsonSerialize(using = LocalDateSerializer.class)
|
||||
@JsonDeserialize(using = LocalDateDeserializer.class)
|
||||
|
|
@ -24,6 +27,14 @@ public class RegistryChangeRefundDateRequest {
|
|||
this.groupId = groupId;
|
||||
}
|
||||
|
||||
public String getContract() {
|
||||
return contract;
|
||||
}
|
||||
|
||||
public void setContract(String contract) {
|
||||
this.contract = contract;
|
||||
}
|
||||
|
||||
public LocalDate getRefundDate() {
|
||||
return refundDate;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue