package com.sckw.payment.api.model.dto;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 钱包清单
 */
@Data
public class WalletDto implements Serializable {
    /**
     * 钱包名称
     */
    private String name;
    /**
     * uid对应的企业名称
     */
    @JSONField(name = "member_name")
    private String memberName;

    private String uid;
    /**
     * 渠道 huifu
     */
    private String channel;

    @JSONField(name = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    private String filter;
    /**
     * 冻结金额(分)
     * note:冻结金额为预付金额
     */
    private Long freeze;
    /**
     * 预付金额(分)
     */
    @JSONField(name = "ap_money")
    private Long apMoney;
    /**
     * 总金额(分)
     */
    @JSONField(name = "total_money")
    private Long totalMoney;
    /**
     * 线上可用余额(分)
     */
    private Long money;
    /**
     * 充值中金额
     */
    @JSONField(name = "charging_money")
    private Long chargingMoney;
    /**
     * 提现中金额
     */
    @JSONField(name = "withdrawing_money")
    private Long withdrawingMoney;
}
