KeyRate GET rate -> keyRate

This commit is contained in:
ialbert 2022-10-20 15:27:36 +03:00
parent 2a725b6f37
commit 7cf44f3879
2 changed files with 6 additions and 6 deletions

View file

@ -42,7 +42,7 @@ public class KeyRateBackendGetAll extends BasicSpcexResponse {
for (var keyRate : keyRates) { for (var keyRate : keyRates) {
var singleItem = new KeyRateBackendGetFields(); var singleItem = new KeyRateBackendGetFields();
singleItem.setId(keyRate.getId()); singleItem.setId(keyRate.getId());
singleItem.setRate(keyRate.getRate()); singleItem.setKeyRate(keyRate.getRate());
singleItem.setStartDate(keyRate.getStartDate()); singleItem.setStartDate(keyRate.getStartDate());
singleItem.setEndDate(keyRate.getEndDate()); singleItem.setEndDate(keyRate.getEndDate());
singleItem.setDocument(keyRate.getDocument()); singleItem.setDocument(keyRate.getDocument());

View file

@ -11,7 +11,7 @@ public class KeyRateBackendGetFields {
@JsonProperty @JsonProperty
private Long id; private Long id;
@JsonProperty @JsonProperty
private BigDecimal rate; private BigDecimal keyRate;
@JsonSerialize(using = LocalDateSerializer.class) @JsonSerialize(using = LocalDateSerializer.class)
@JsonProperty @JsonProperty
private LocalDate startDate; private LocalDate startDate;
@ -31,12 +31,12 @@ public class KeyRateBackendGetFields {
this.id = id; this.id = id;
} }
public BigDecimal getRate() { public BigDecimal getKeyRate() {
return rate; return keyRate;
} }
public void setRate(BigDecimal rate) { public void setKeyRate(BigDecimal keyRate) {
this.rate = rate; this.keyRate = keyRate;
} }
public LocalDate getStartDate() { public LocalDate getStartDate() {