package com.eactive.eai.rms.onl.apim.approval.apprequest;

import com.eactive.apim.portal.apprequest.entity.AppRequestType;
import com.eactive.apim.portal.approval.entity.ApprovalStatus;
import com.eactive.eai.data.converter.LocalDateTimeFormatters;
import com.eactive.eai.rms.onl.apim.portalorg.PortalOrgUI;
import com.eactive.eai.rms.onl.transaction.apim.ui.ApiSpecInfoUI;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
import lombok.Data;

@Data
public class AppRequestUI {

    private String id;

    private PortalOrgUI org;

    private ApprovalStatus status;

    private AppRequestType type;  // 신규(NEW), 변경(MODIFY)

    private List<ApiSpecInfoUI> apiList = new ArrayList<>();

    private String apiGroupList = ""; //comma separated api group id list

    private String clientId;  //for modifying existing app

    private String clientName;

    private String reason;

    @JsonFormat(pattern = LocalDateTimeFormatters.FORMAT_YYYY_MM_DD_HH_MM_SS_19)
    private LocalDateTime createdDate;

    private String refClient;
}
