package cokr.xit.ens.modules.common.ctgy.nicedici.support.rest.model.conf;

import com.fasterxml.jackson.annotation.JsonAlias;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.SuperBuilder;

@Getter
@ToString
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Schema(name = "DataBodyGenerateTokenResp")
public class DataBodyGenerateTokenResp {

    @JsonAlias({"access_token"})
    @Schema(required = true, title = "엑세스토큰", example = " ")
    private String accessToken;

    @JsonAlias({"expires_in"})
    @Schema(required = true, title = "엑세스토큰 만료 절대시간(sec)", example = " ")
    private Integer expiresIn;

    @JsonAlias({"token_type"})
    @Schema(required = true, title = "토큰타입", example = " ")
    private String tokenType;

    @JsonAlias({"scope"})
    @Schema(required = true, title = "요청한 scope값", example = " ")
    private String scope;

    @Setter
    @Schema(required = true, title = "access token 만료시간(yyyyMmddHHmmss)", example = " ")
    private String expiredDt;
}
