
package com.tmerclub.cloud.common.order.vo;

import com.tmerclub.cloud.common.vo.BaseVO;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * 运费模板VO
 *
 * @author tmerclub
 * @date 2020-12-07 15:10:01
 */
public class TransportVO extends BaseVO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    @Schema(description = "运费模板id")
    private Long transportId;

    @Schema(description = "运费模板名称")
    private String transName;

    @Schema(description = "店铺id")
    private Long shopId;

    @Schema(description = "收费方式（0 按件数,1 按重量 2 按体积）")
    private Integer chargeType;

    @Schema(description = "是否包邮 0:不包邮 1:包邮")
    private Integer isFreeFee;

    @Schema(description = "是否含有包邮条件 0 否 1是")
    private Integer hasFreeCondition;

    @Schema(description = "指定条件包邮项")
    private List<TransfeeFreeVO> transFeeFrees;

    @Schema(description = "运费项")
    private List<TransfeeVO> transFees;

    public List<TransfeeFreeVO> getTransFeeFrees() {
        return transFeeFrees;
    }

    public void setTransFeeFrees(List<TransfeeFreeVO> transFeeFrees) {
        this.transFeeFrees = transFeeFrees;
    }

    public List<TransfeeVO> getTransFees() {
        return transFees;
    }

    public void setTransFees(List<TransfeeVO> transFees) {
        this.transFees = transFees;
    }

    public Long getTransportId() {
        return transportId;
    }

    public void setTransportId(Long transportId) {
        this.transportId = transportId;
    }

    public String getTransName() {
        return transName;
    }

    public void setTransName(String transName) {
        this.transName = transName;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public Integer getChargeType() {
        return chargeType;
    }

    public void setChargeType(Integer chargeType) {
        this.chargeType = chargeType;
    }

    public Integer getIsFreeFee() {
        return isFreeFee;
    }

    public void setIsFreeFee(Integer isFreeFee) {
        this.isFreeFee = isFreeFee;
    }

    public Integer getHasFreeCondition() {
        return hasFreeCondition;
    }

    public void setHasFreeCondition(Integer hasFreeCondition) {
        this.hasFreeCondition = hasFreeCondition;
    }

    @Override
    public String toString() {
        return "TransportVO{" +
                "transportId=" + transportId +
                ", transName='" + transName + '\'' +
                ", shopId=" + shopId +
                ", chargeType=" + chargeType +
                ", isFreeFee=" + isFreeFee +
                ", hasFreeCondition=" + hasFreeCondition +
                ", transFeeFrees=" + transFeeFrees +
                ", transFees=" + transFees +
                '}';
    }
}
