package com.zhongshu.card.client.openApi.params;

import com.github.microservice.types.payment.PaymentType;
import com.zhongshu.card.client.model.pay.SatInfoModel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

@Data
public class PayParam {

    @Schema(description = "项目oid")
    @NotNull(message = "projectOid不能为null")
    private String projectOid;

    @Schema(description = "机构oid")
    @NotNull(message = "oid不能为null")
    private String oid;

    @Schema(description = "用户userId")
    @NotNull(message = "userId不能为null")
    private String userId;

    @Schema(description = "金额")
    private BigDecimal total;

    @Schema(description = "订单号")
    @NotNull(message = "orderNo不能为null")
    private String orderNo;

    @Schema(description = "支付方式")
    private PaymentType paymentType;

    @Schema(description = "分账信息")
    private List<SatInfoModel> satInfo;

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