package cn.axzo.msg.center.service.pending.request;

import cn.axzo.msg.center.service.enums.CardBizState;
import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author yanglin
 */
@Setter
@Getter
public class SetActionPerformedRequest extends CardUpdateRequest {

    /**
     * 需要设置失效的按钮编辑
     */
    @NotBlank(message = "按钮编码不能为空")
    private String buttonCode;

    @NotNull(message = "卡片业务状态不能为空")
    private CardBizState cardBizState = CardBizState.COMPLETED;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }

}