package com.ruoyi.bst.order.domain.vo;

import java.math.BigDecimal;

import com.ruoyi.common.utils.MathUtils;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class OrderCalcRideFeeVO {

    @ApiModelProperty("原价")
    private BigDecimal originalAmount;
    
    @ApiModelProperty("应付骑行费")
    private BigDecimal rideFee;

    @ApiModelProperty("应付调度费")
    private BigDecimal dispatchFee;

    @ApiModelProperty("应付管理费")
    private BigDecimal manageFee;

    @ApiModelProperty("应付车损费")
    private BigDecimal deductionFee;

    @ApiModelProperty("骑行费优惠")
    private BigDecimal rideFeeDiscount;

    @ApiModelProperty("应付总金额")
    public BigDecimal getPayAmount() {
        return MathUtils.addDecimal(
            this.rideFee,
            this.dispatchFee,
            this.manageFee,
            this.deductionFee
        );
    }

    @ApiModelProperty("优惠总金额")
    public BigDecimal getDiscountAmount() {
        return this.rideFeeDiscount;
    }
}
