package com.bonus.canteen.core.account.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.math.BigDecimal;

@Data
public class WalletBalanceVO {
   @ApiModelProperty("个人钱包余额/分")
   private BigDecimal walletBal;
   @ApiModelProperty("补贴钱包余额/分")
   private BigDecimal subsidyBal;
   @ApiModelProperty("红包余额")
   private BigDecimal redEnvelope;
   @ApiModelProperty("个人钱包冻结金额")
   private BigDecimal walletFreezeBal;
   @ApiModelProperty("补贴钱包冻结金额")
   private BigDecimal subFreezeBal;
   @ApiModelProperty("冻结金额")
   private BigDecimal accFreezeBalTotal;
   @ApiModelProperty("账户总余额(包含冻结金额)")
   private BigDecimal accAllBal;
   @ApiModelProperty("账户可用余额总余额(不包括冻结金额)")
   private BigDecimal accBalTotal;
   @ApiModelProperty("账户状态 1正常  2冻结  3销户 4过期")
   private Integer accStatus;


   public static WalletBalanceVO of(AccInfoVo accInfoVo) {
      WalletBalanceVO walletBalanceVO = new WalletBalanceVO();
      //walletBalanceVO.setAccBalTotal(accInfoVo.getAccBalTotal());
      walletBalanceVO.setAccAllBal(accInfoVo.getAccAllBal());
      walletBalanceVO.setWalletBal(accInfoVo.getWalletBal());
      walletBalanceVO.setSubsidyBal(accInfoVo.getSubsidyBal());
      //walletBalanceVO.setRedEnvelope(accInfoVo.getRedEnvelope());
      //walletBalanceVO.setWalletFreezeBal(accInfoVo.getWalletFreezeBal());
      //walletBalanceVO.setSubFreezeBal(accInfoVo.getSubFreezeBal());
      //walletBalanceVO.setAccFreezeBalTotal(accInfoVo.getAccFreezeBalTotal());
      walletBalanceVO.setAccStatus(accInfoVo.getAccStatus());
      return walletBalanceVO;
   }
}
