package com.jeequan.jeepay.model;

import lombok.Data;

import java.util.List;

/**
 * 规则条件
 * @author crystal
 * @date 2024/4/19 14:18
 */
@Data
public class Condition {

    public static final String STORE_STATE = "STORE_STATE";

    public static final String SEND_NOTIFY = "SEND_NOTIFY";

    public static final String NUM = "NUM";

    public static final String AMOUNT = "AMOUNT";

    public static final String FAIL_NUM = "FAIL_NUM";

    public static final String RATE = "RATE";

    public static final String OPEN = "open";

    public static final String CLOSE = "close";

    public static final String EXCLUDE = "exclude";

    /**
     * 条件值
     */
    private Integer timeVal;

    /**
     * 类型
     * NUM：交易笔数
     * AMOUNT：交易金额
     * FAIL_NUM：联系失败笔数
     * RATE：付款率
     */
    private String type;

    /**
     * 条件
     * 1：表示大于等于
     * 2：表示小于等于
     * 3：介于
     */
    private Byte condition;

    /**
     * 触发值
     */
    private List<String> value;

    /**
     * 类型
     * STORE_STATE:门店状态
     * SEND_NOTIFY:发送通知
     * NUM / AMOUNT / RATE
     */
    private String opType;

    /**
     * 操作方式
     * day: 每天每个门店
     * up: 提高
     * down:降低
     * adjust：调整
     *
     * open 启用门店
     * close 关闭门店
     * exclude 排除门店
     *
     */
    private String method;

    /**
     * 操作值
     */
    private String optValue;


    private String contentText;

}
