package com.softwarebr.nunu.domain;

import com.brframework.commoncms.annatotion.column.TextAreaColumn;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 订单支付配置
 *
 * @author xu
 * @date 2019/10/23 9:58
 */
@ApiModel
@Data
public class PayConfig {
    public static final String KEY = "KEY_PAY_CONFIG";

    @ApiModelProperty(value = "支付宝商户id", example = "12453464565")
    String  apPid;
    @ApiModelProperty(value = "支付宝网关", example = "")
    String apServerUrl;
    @ApiModelProperty(value = "信用服务ID", example = "")
    String apServiceId;


    /**------------------ PC支付宝支付 -------------------**/
    @ApiModelProperty(value = "PC支付宝支付回调", example = "http://...")
    String appApPayNotifyUrl;
    @ApiModelProperty(value = "PC支付宝公钥证书", example = "")
    @TextAreaColumn
    String appApAlipayPublicCertContent;
    @ApiModelProperty(value = "PC支付宝根证书", example = "")
    @TextAreaColumn
    String appApRootCertContent;
    @ApiModelProperty(value = "PC支付宝App证书", example = "")
    @TextAreaColumn
    String appApCertContent;
    @ApiModelProperty(value = "PC支付宝AppId", example = "")
    String appApAppId;
    @ApiModelProperty(value = "PC支付宝私钥", example = "")
    @TextAreaColumn
    String appApPrivateKey;

    /**------------------ PC微信支付 -------------------**/
    @ApiModelProperty(value = "微信PC的APPId", example = "4334dfgdfgdfgd")
    String wxAppId;
    @ApiModelProperty(value = "微信PC的AppSecret", example = "4334dfgdfgdfgd")
    String wxAppSecret;
    @ApiModelProperty(value = "微信支付商户号", example = "15053434911")
    String wxMchId;
    @ApiModelProperty(value = "微信支付商户密钥", example = "XeZjSKqy3bgfd345435gwI34OFW")
    String wxMchKey;
    @ApiModelProperty(value = "签名方法", example = "MD5")
    String wxSignType;
    @ApiModelProperty(value = "微信Token", example = "XeZjSKqy3bgfd345435gwI34OFW")
    String wxToken;
    @ApiModelProperty(value = "微信EncodingAESKey", example = "XeZjSKqy3bgfd345435gwI34OFW")
    String wxAesKey;
    @ApiModelProperty(value = "微信PC回调地址", example = "http://...")
    String wxOAuthRedirectUrl;

    @ApiModelProperty(value = "微信公众号的APPId", example = "4334dfgdfgdfgd")
    String wxAppletAppId;
    @ApiModelProperty(value = "微信公众号的AppSecret", example = "4334dfgdfgdfgd")
    String wxAppletAppSecret;
    @ApiModelProperty(value = "微信公众号回调地址", example = "http://...")
    String wxAppletRedirectUrl;
}
