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

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

/**
 * 钱包单据.
 * <p>计划使用 WalletReceiptRes 替换</p>
 *
 * @author pengliang on 2021/8/21
 */
@Data
@Deprecated
public class WalletReceiptHistory implements Serializable {

  private static final long serialVersionUID = 1L;

  /**
   * 消费id.
   */
  private Long consumeId;

  /**
   * 余额.
   */
  private BigDecimal balance;

  /**
   * 处理金额.
   */
  private BigDecimal processAmount;

  public WalletReceiptHistory(Long consumeId, BigDecimal balance, BigDecimal processAmount) {
    this.consumeId = consumeId;
    this.balance = balance;
    this.processAmount = processAmount;
  }

  public static WalletReceiptHistory of(Long assetRecordId, BigDecimal balance,
      BigDecimal processAmount) {
    return new WalletReceiptHistory(assetRecordId, balance, processAmount);
  }

}
