package com.yc.ship.module.trade.controller.admin.order.vo.order;

import com.yc.ship.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

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

import static com.yc.ship.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;


@Schema(description = "管理后台 - 订单支付信息分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class OrderPayPageReqVO extends PageParam {

    @Schema(description = "订单ID", example = "4078")
    private Long orderId;

    @Schema(description = "支付流水号")
    private String paymentNo;

    @Schema(description = "支付方式", example = "2")
    private Integer paymentType;

    @Schema(description = "支付金额")
    private BigDecimal payAmount;

    @Schema(description = "商户号")
    private String merchantNo;

    @Schema(description = "支付渠道", example = "27223")
    private String channelId;

    @Schema(description = "pos机号")
    private String posNo;

    @Schema(description = "pos机输出")
    private String posOut;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "支付状态", example = "2")
    private Integer payStatus;

    @Schema(description = "销售渠道")
    private Integer sellMethod;

    @Schema(description = "支付时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] paymentDate;

    @Schema(description = "已退款金额")
    private BigDecimal refundAmount;

    @Schema(description = "微信或支付宝平台的用户openId", example = "10338")
    private String openId;

    @Schema(description = "支付平台返回的支付参数")
    private String payParams;

    @Schema(description = "请求参数")
    private String reqParams;

}