package org.springblade.yeePay.entity.saas.receipt;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springblade.yeePay.common.YeepayApiConstant;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;

@NoArgsConstructor
@AllArgsConstructor
@Data
@Builder
@ApiModel("资金账单申请入参")
public class FundBillApplyDto {

	@NotBlank
	@ApiModelProperty(value = "开始日期", required = true)
	@DateTimeFormat(pattern = "YYYY-MM-dd")
	private String startDate;

	@NotBlank
	@ApiModelProperty(value = "结束日期；与startDate最大日期间隔为31天", required = true)
	@DateTimeFormat(pattern = "YYYY-MM-dd")
	private String endDate;

	@NotBlank
	@ApiModelProperty(value = "请求方商户编号", required = true)
	private String merchantNo;

	@ApiModelProperty(value = "账户类型")
	private YeepayApiConstant.accountType accountType;

	@ApiModelProperty(value = "接收资金账单生成结果的通知地址（最长200个字符）,资金账单生成结果通知")
	private String notifyUrl;
}
