package com.m2pool.lease.dto;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * <p>
 * 支付回调结果返回对象
 * </p>
 *
 * @author yyb
 * @since 2025-07-23
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "支付回调结果返回对象",value = "PaymentCallbackDto")
public class PaymentCallbackDto {

    @ApiModelProperty(value = "本次支付是否支付完成 ---- 支付状态0支付失败 1支付成功--全部货款已支付 2待支付 5支付已超时 10支付成功--已支付部分货款 ")
    private int isPayAll;

    @ApiModelProperty(value = "剩余未支付的金额")
    private BigDecimal noPayAmount;

    @ApiModelProperty(value = "需要支付的总金额 = payAmount + noPayAmount")
    private BigDecimal totalAmount;

    @ApiModelProperty(value = "已支付的金额(从卖方钱包交易记录中获取的)")
    private BigDecimal payAmount;

    @ApiModelProperty(value = "卖方二维码图片(如果支付状态为 1 则不再返回该字段)")
    private String img;
}
