package com.sinata.core.model;
|
|
import lombok.Data;
|
|
/**
|
* 微信配置
|
*
|
* @author: KingKong
|
* @create: 2019-01-03 18:23
|
**/
|
|
@Data
|
public class WxPay {
|
/**
|
* 支付类型:1小程序
|
*/
|
private String payType;
|
private String appId;
|
private String mchId;
|
private String body;
|
private String openId;
|
/**
|
* 订单号
|
*/
|
private String outTradeNo;
|
/**
|
* 支付金额,微信(分)
|
*/
|
private String totalFee;
|
private String notifyUrl;
|
private String key;
|
/**
|
* 三方交易号
|
*/
|
private String transactionId;
|
/**
|
* 退款金额,微信(分)
|
*/
|
private String refundFee;
|
/**
|
* 退款订单号
|
*/
|
private String outRefundNo;
|
|
public WxPay() {
|
}
|
|
/**
|
* 小程序支付
|
*
|
* @param payType
|
* @param appId
|
* @param mchId
|
* @param body
|
* @param openId
|
* @param outTradeNo
|
* @param totalFee
|
* @param notifyUrl
|
* @param key
|
*/
|
public WxPay(String payType, String appId, String mchId, String body, String openId, String outTradeNo, String totalFee, String notifyUrl, String key) {
|
this.payType = payType;
|
this.appId = appId;
|
this.mchId = mchId;
|
this.body = body;
|
this.openId = openId;
|
this.outTradeNo = outTradeNo;
|
this.totalFee = totalFee;
|
this.notifyUrl = notifyUrl;
|
this.key = key;
|
}
|
|
/**
|
* 小程序退款
|
*
|
* @param appId
|
* @param mchId
|
* @param outTradeNo
|
* @param totalFee
|
* @param transactionId
|
* @param refundFee
|
* @param outRefundNo
|
*/
|
public WxPay(String appId, String mchId, String outTradeNo, String totalFee, String transactionId, String refundFee, String outRefundNo, String key) {
|
this.appId = appId;
|
this.mchId = mchId;
|
this.outTradeNo = outTradeNo;
|
this.totalFee = totalFee;
|
this.transactionId = transactionId;
|
this.refundFee = refundFee;
|
this.outRefundNo = outRefundNo;
|
this.key = key;
|
}
|
}
|