package com.bonus.canteen.core.order.mobile.dto;

import com.bonus.common.houqin.constant.LeConstants;
import com.fasterxml.jackson.databind.JsonNode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@ApiModel("移动端根据订单号支付DTO")
@Data
public class StagePayMobileDTO extends OrderPayMobileDTO{
   @ApiModelProperty("支付金额")
   private @NotNull(message = "支付金额不能为空") @Min(value = 0L, message = "金额不能小于0") BigDecimal amount;

   @ApiModelProperty("openid")
   private String openid;

   @ApiModelProperty("sourceType")
   private Integer sourceType;
   @ApiModelProperty("设备sn")
   private String merchant;
}
