package com.sckw.payment.model.vo.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 提现
 *
 * @author xucaiqin
 * @date 2023-08-29 09:14:04
 */
@Getter
@Setter
public class CashVo {
    /**
     * 付款方
     */
    @Schema(description = "付款方")
    private Long fromEnt;
    private String fromEntName;

    /**
     * 收款方
     */
    @Schema(description = "收款方")
    private Long toEnt;
    private String toEntName;

    /**
     * 订单号
     */
    @Schema(description = "订单号")
    private String orderNo;

    /**
     * 操作 1-提现 2-预付 3-支付 3-收益
     */
    @Schema(description = "操作 1-提现 2-预付 3-支付 3-收益")
    private Integer action;
    private String actionLabel;

    /**
     * 交易金额
     */
    @Schema(description = "交易金额")
    private BigDecimal amount;

    /**
     * 可提现金额
     */
    @Schema(description = "可提现金额")
    private BigDecimal cashAmount;

    /**
     * 凭证
     */
    @Schema(description = "凭证")
    private String img;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;

    /**
     * 状态 1-成功 2-失败 3-提现中
     */
    @Schema(description = "状态 1-成功 2-失败")
    private Integer status;
    private String statusLabel;
    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
}
