mitao
2024-07-08 022a7ff7abf82cd2546e18071ade5228b4e2339f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
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;
    }
}