package com.yuchen.saas.park.api.vo.property;

import com.thinkunion.park.service.common.utils.AmtUtil;
import com.yuchen.saas.park.api.entity.property.PropertyDeposit;
import com.yuchen.saas.park.api.entity.property.PropertyRefundInfo;
import lombok.Data;

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

@Data
public class PropertyDepositDetailVo extends PropertyDeposit {

    /**
     * 房源信息
     */
    private List<PropertyDepositHouseListVo> houseInfoList;

    /**
     * 押金金额
     */
    public BigDecimal getDepositAmt() {
        return AmtUtil.fenToYuan(super.getDepositAmtFen());
    }

    /**
     * 退款金额
     */
    public BigDecimal getRefundAmt() {
        return AmtUtil.fenToYuan(super.getRefundAmtFen());
    }

    /**
     * 退款信息
     */
    private PropertyRefundInfo refundInfo;


}
