2026-02-02 15:00:18 +07:00
|
|
|
package ru.soune.nocopy.dto.tarriff;
|
|
|
|
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
|
|
import jakarta.validation.constraints.Min;
|
|
|
|
|
import jakarta.validation.constraints.NotBlank;
|
|
|
|
|
import jakarta.validation.constraints.NotNull;
|
|
|
|
|
import lombok.AllArgsConstructor;
|
|
|
|
|
import lombok.Data;
|
|
|
|
|
import lombok.NoArgsConstructor;
|
|
|
|
|
|
|
|
|
|
@Data
|
|
|
|
|
@NoArgsConstructor
|
|
|
|
|
@AllArgsConstructor
|
|
|
|
|
public class TariffRequest {
|
|
|
|
|
private Long id;
|
|
|
|
|
|
|
|
|
|
@NotNull
|
|
|
|
|
@NotBlank
|
|
|
|
|
@JsonProperty("type")
|
|
|
|
|
private String type;
|
|
|
|
|
|
|
|
|
|
@NotNull
|
|
|
|
|
@NotBlank
|
|
|
|
|
@JsonProperty("tariff_name")
|
|
|
|
|
private String name;
|
|
|
|
|
|
|
|
|
|
@JsonProperty("tariff_price")
|
2026-05-15 16:06:31 +07:00
|
|
|
private Double price;
|
2026-02-02 15:00:18 +07:00
|
|
|
|
|
|
|
|
@JsonProperty("tariff_tokens")
|
2026-05-15 16:06:31 +07:00
|
|
|
private Integer tokens;
|
2026-02-02 15:00:18 +07:00
|
|
|
|
|
|
|
|
@JsonProperty("max_files")
|
2026-05-15 16:06:31 +07:00
|
|
|
private Integer maxFilesCount;
|
2026-02-02 15:00:18 +07:00
|
|
|
|
|
|
|
|
@JsonProperty("disk_size")
|
2026-05-15 16:06:31 +07:00
|
|
|
private Long diskSize;
|
2026-02-02 15:00:18 +07:00
|
|
|
|
|
|
|
|
@JsonProperty("max_users")
|
2026-05-15 16:06:31 +07:00
|
|
|
private Long maxUsers;
|
2026-02-02 15:00:18 +07:00
|
|
|
|
|
|
|
|
@JsonProperty("action")
|
|
|
|
|
private String action;
|
2026-02-09 17:16:08 +07:00
|
|
|
|
|
|
|
|
@JsonProperty("user_token")
|
|
|
|
|
private String userToken;
|
2026-03-25 12:46:33 +07:00
|
|
|
|
|
|
|
|
@JsonProperty("tariff_term")
|
|
|
|
|
private String tariffTerm;
|
2026-05-15 14:44:54 +07:00
|
|
|
|
|
|
|
|
@JsonProperty("description")
|
|
|
|
|
private String description;
|
2026-02-02 15:00:18 +07:00
|
|
|
}
|