package com.jeequan.jeepay.core.model.rqrs.msg;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * TODO
 * 退款权限
 * @author crystal
 * @date 2024/3/20 11:39
 */
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class ChannelRefundLimit {

    /**
     * 已开通
     */
    public static final byte SUCCESS = 1;

    /**
     * 未开通
     */
    public static final byte NO_OPEN = -1;

    /*
     * 平台户
     */
    private Boolean isPlatAccount;

    /**
     * 默认账户
     */
    private Boolean isDefaultAccount;

    /**
     * 绑定状态 -1：未绑定退货账户 1：已绑定退货账户
     */
    private Byte bindStatus;

    public ChannelRefundLimit(Boolean isPlatAccount, Boolean isDefaultAccount,byte bindStatus) {
        this.isPlatAccount = isPlatAccount;
        this.isDefaultAccount = isDefaultAccount;
        this.bindStatus = bindStatus;
    }

    public ChannelRefundLimit(Boolean isPlatAccount, Boolean isDefaultAccount) {
        this(isPlatAccount,isDefaultAccount,SUCCESS);
    }
}
