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

import com.xxfc.platform.vehicle.pojo.dto.order.VMCalendarPriceCostDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
public class RentVehiclePriceVO extends OrderPriceVO{
    @ApiModelProperty(value = "车辆价格")
    BigDecimal vehicleAmount = BigDecimal.ZERO;
    @ApiModelProperty(value = "司机价格")
    BigDecimal driverAmount = BigDecimal.ZERO;
    @ApiModelProperty(value = "免赔付价格")
    BigDecimal damageSafeAmount = BigDecimal.ZERO;
    @ApiModelProperty(value = "押金价格")
    BigDecimal deposit = BigDecimal.ZERO;
    @ApiModelProperty(value = "总天数")
    Integer dayNum = 0;
    @ApiModelProperty(value = "扣除免费天数后的车辆天数")
    Integer vehicleDayNum = 0;
    @ApiModelProperty(value = "总小时数")
    Integer hourNum = 0;
    @ApiModelProperty(value = "扣除免费小时后车辆小时数（暂时没有免费小时概念，保留）")
    Integer vehicleHourNum = 0;
    @ApiModelProperty(value = "车辆个数")
    Integer vehicleNum = 0;
    @ApiModelProperty(value = "司机个数")
    Integer driverNum = 0;
    @ApiModelProperty(value = "车型名称")
    String modelName = "";
    @ApiModelProperty(value = "车型价格")
    BigDecimal modelAmount = BigDecimal.ZERO;
    @ApiModelProperty(value = "司机单价")
    BigDecimal driverPrice = BigDecimal.ZERO;
    @ApiModelProperty(value = "免赔付单价")
    BigDecimal damageSafePrice = BigDecimal.ZERO;
    @ApiModelProperty(value = "费用详情")
    private String costDetail = "";
    @ApiModelProperty(value = "价格类型：1-按天；2-按小时")
    private Integer priceType;
    /**
     * 订单标记 1--普通订单；2--需求预定申请订单；3--特惠租车订单
     */
    private Integer orderSign = 1;


//    /**
//     * 原租车天数
//     */
//    private Integer originDayNum;

    /**
     * 消耗的免费天数
     */
    private Integer freeDayNum = 0;

    /**
     * 消耗的免费小时数 （暂时没有免费小时概念，保留）
     */
    private Integer freeHourNum = 0;

    /**
     * 扣减天数
     */
    private Integer cutDayNum = 0;

    /**
     * 免费价格
     */
    private BigDecimal freeAmount = BigDecimal.ZERO;

    /**
     * 购买的租车金额
     */
    private BigDecimal buyVehicleAmount = BigDecimal.ZERO;

    /**
     * 最后的租车金额
     */
    private BigDecimal realVehicleAmount = BigDecimal.ZERO;

    /**
     * 优惠描述
     */
    private String couponDesc = "";

    /**
     * 使用（消耗）详情列表
     */
    List<VMCalendarPriceCostDTO> useAmountList;

    //标记是否单价一样
    private Integer sameUnitPrice = 1;

    //是否买人身保险
    private Integer needPersonInsurance = 0;

    //保险个数
    private Integer personInsureNum = 0;

    //保险单价
    private BigDecimal personInsurePrice = BigDecimal.ZERO;

    //保险总价
    private BigDecimal personInsureAmount = BigDecimal.ZERO;

}
