This commit is contained in:
ialbert 2022-12-09 12:43:43 +03:00
parent fc42ca0c8f
commit ad84cbd6a6
2 changed files with 12 additions and 12 deletions

View file

@ -20,7 +20,7 @@ import java.util.List;
public class KeyRateNewAction implements IAction<KeyRateNewRequest> {
@ApiModelProperty(value = "Ключевая ставка ЦБ РФ", example = "12.5")
@JsonProperty
public BigDecimal keyRate;
public BigDecimal rate;
@ApiModelProperty(value = "Дата начала действия ключевой ставки", example = "2022-01-20")
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "Europe/Moscow")
@JsonDeserialize(using = LocalDateDeserializer.class)
@ -53,17 +53,17 @@ public class KeyRateNewAction implements IAction<KeyRateNewRequest> {
var req = new KeyRateNewRequest();
req.setStartDate(this.getStartDate());
req.setEndDate(this.getEndDate());
req.setKeyRate(this.getKeyRate());
req.setKeyRate(this.getRate());
req.setDocument(this.getDocument());
return req;
}
public BigDecimal getKeyRate() {
return keyRate;
public BigDecimal getRate() {
return rate;
}
public void setKeyRate(BigDecimal keyRate) {
this.keyRate = keyRate;
public void setRate(BigDecimal rate) {
this.rate = rate;
}
public LocalDate getStartDate() {

View file

@ -18,7 +18,7 @@ public class KeyRateUpdateAction implements IAction<KeyRateUpdateRequest> {
public Long id;
@ApiModelProperty(value = "Ключевая ставка ЦБ РФ", example = "12.5")
@JsonProperty
public BigDecimal keyRate;
public BigDecimal rate;
@ApiModelProperty(value = "Дата начала действия ключевой ставки", example = "2022-01-20")
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "Europe/Moscow")
@JsonDeserialize(using = LocalDateDeserializer.class)
@ -45,17 +45,17 @@ public class KeyRateUpdateAction implements IAction<KeyRateUpdateRequest> {
req.setId(this.getId());
req.setStartDate(this.getStartDate());
req.setEndDate(this.getEndDate());
req.setKeyRate(this.getKeyRate());
req.setKeyRate(this.getRate());
req.setDocument(this.getDocument());
return req;
}
public BigDecimal getKeyRate() {
return keyRate;
public BigDecimal getRate() {
return rate;
}
public void setKeyRate(BigDecimal keyRate) {
this.keyRate = keyRate;
public void setRate(BigDecimal rate) {
this.rate = rate;
}
public LocalDate getStartDate() {