package com.red.circle.wallet.domain.wallet;

import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;

/**
 * 钱包单据.
 *
 * @author pengshigang on 2021/8/21
 */
@Data
public class WalletGameReceipt implements Serializable {

  private static final long serialVersionUID = 1L;

  /**
   * 金币余额.
   */
  private BigDecimal goldBalance;

  /**
   * 游戏券余额.
   */
  private BigDecimal gameCouponBalance;

  public WalletGameReceipt(BigDecimal goldBalance, BigDecimal gameCouponBalance) {
    this.goldBalance = goldBalance;
    this.gameCouponBalance = gameCouponBalance;
  }

  public static WalletGameReceipt of(BigDecimal goldBalance, BigDecimal gameCouponBalance) {
    return new WalletGameReceipt(goldBalance, gameCouponBalance);
  }

}
