package org.springblade.yeePay.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@Builder
@ApiModel("代付-下单")
public class PayToCardDto {

    /**
     * 精确到两位小数
     */
    @NotNull
    @ApiModelProperty(value = "提现金额，单位：元（RMB）",required = true)
    Double orderAmount;

    @NotBlank
    @ApiModelProperty(value = "收款银行卡账号",required = true)
    String receiverAccountNo;

    @NotBlank
    @ApiModelProperty(value = "收款方开户名",required = true)
    String receiverAccountName;

    @NotBlank
    @ApiModelProperty(value = "银行卡所在开户行编号",required = true)
    String receiverBankCode;

    @ApiModelProperty(value = "支行编码",required = false)
    String branchBankCode;

    /**
     * DEBIT_CARD:借记卡
     * CREDIT_CARD:贷记卡
     * QUASI_CREDIT_CARD:准贷卡
     * PASSBOOK:存折
     * UNIT_SETTLE_CARD:单位结算卡
     * PUBLIC_CARD:对公卡
     */
    @NotBlank
    @ApiModelProperty(value = "账户类型",required = true)
    String bankAccountType;


    @NotBlank
    @ApiModelProperty(value = "商户提供的订单号",required = true)
    String bussinessOrderId;

    @NotBlank
    @ApiModelProperty(value = "商户API密钥",required = true)
    String secret;

    @ApiModelProperty(value = "商户提供的订单号",required = false)
    String notifyUrl;


}
