package com.xxfc.platform.order.pojo.price;

import cn.hutool.json.JSONUtil;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class CostDetailExtend {

    public static final int CANCEL_NO_START = 1;
    public static final int CANCEL_STARTED = 2;
    public static final int FINLISH_ADVANCE = 3;
    public static final int FINLISH_DELAY = 4;
    public static final int FINLISH_ONTIME = 5;

    private String costDetail = "";

    /**
     * type：1--取消违约金；2--取消费用明细；3--提前还车费用明细；4--延期还车费用明细
     */
    protected Integer type;

    /**
     * 违约金描述
     */
    private String violateDesc;

    /**
     * 违约金金额
     */
    private BigDecimal violateAmount = BigDecimal.ZERO;

    /**
     * 参数json
     */
    public String paramJson = "";

    public void initParamJson() {
        paramJson = JSONUtil.toJsonStr(this);
    }

}
