This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
package ru.soune.nocopy.dto.tarriff;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class TariffInfoRequest {
|
||||
private String id;
|
||||
|
||||
@NotNull(message = "Action is required")
|
||||
@JsonProperty("action")
|
||||
private String action;
|
||||
|
||||
@JsonProperty("status")
|
||||
private String status;
|
||||
|
||||
@JsonProperty("start_tariff")
|
||||
private LocalDateTime startTariff;
|
||||
|
||||
@JsonProperty("end_tariff")
|
||||
private LocalDateTime endTariff;
|
||||
|
||||
@JsonProperty("tariff_id")
|
||||
private Long tariffId;
|
||||
|
||||
@JsonProperty("tariff_type")
|
||||
private String tariffType;
|
||||
}
|
||||
Reference in New Issue
Block a user