35 lines
787 B
Java
35 lines
787 B
Java
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;
|
|
} |