无关风月
2024-12-09 2053b8fe0e98d4b4449bc756a93ced78f42277c4
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
// Copyright 2021 Tencent Inc. All rights reserved.
 
// API version: 1.2.3
 
// Code generated by WechatPay APIv3 Generator based on [OpenAPI
// Generator](https://openapi-generator.tech); DO NOT EDIT.
 
package com.jilongda.common.wxPay.payments.model;
 
import com.google.gson.annotations.SerializedName;
import com.wechat.pay.java.core.util.GsonUtil;
import com.wechat.pay.java.service.payments.model.PromotionDetail;
import com.wechat.pay.java.service.payments.model.TransactionAmount;
import com.wechat.pay.java.service.payments.model.TransactionPayer;
 
import java.util.List;
 
/** Transaction */
public class Transaction {
  /** amount */
  @SerializedName("amount")
  private TransactionAmount amount;
  /** appid */
  @SerializedName("appid")
  private String appid;
  /** attach */
  @SerializedName("attach")
  private String attach;
  /** bankType */
  @SerializedName("bank_type")
  private String bankType;
  /** mchid */
  @SerializedName("mchid")
  private String mchid;
  /** outTradeNo */
  @SerializedName("out_trade_no")
  private String outTradeNo;
  /** payer */
  @SerializedName("payer")
  private TransactionPayer payer;
  /** promotionDetail */
  @SerializedName("promotion_detail")
  private List<PromotionDetail> promotionDetail;
  /** successTime */
  @SerializedName("success_time")
  private String successTime;
  /** tradeState */
  public enum TradeStateEnum {
    @SerializedName("SUCCESS")
    SUCCESS,
 
    @SerializedName("REFUND")
    REFUND,
 
    @SerializedName("NOTPAY")
    NOTPAY,
 
    @SerializedName("CLOSED")
    CLOSED,
 
    @SerializedName("REVOKED")
    REVOKED,
 
    @SerializedName("USERPAYING")
    USERPAYING,
 
    @SerializedName("PAYERROR")
    PAYERROR,
 
    @SerializedName("ACCEPT")
    ACCEPT
  }
 
  @SerializedName("trade_state")
  private TradeStateEnum tradeState;
  /** tradeStateDesc */
  @SerializedName("trade_state_desc")
  private String tradeStateDesc;
  /** tradeType */
  public enum TradeTypeEnum {
    @SerializedName("JSAPI")
    JSAPI,
 
    @SerializedName("NATIVE")
    NATIVE,
 
    @SerializedName("APP")
    APP,
 
    @SerializedName("MICROPAY")
    MICROPAY,
 
    @SerializedName("MWEB")
    MWEB,
 
    @SerializedName("FACEPAY")
    FACEPAY
  }
 
  @SerializedName("trade_type")
  private TradeTypeEnum tradeType;
  /** transactionId */
  @SerializedName("transaction_id")
  private String transactionId;
 
  public TransactionAmount getAmount() {
    return amount;
  }
 
  public void setAmount(TransactionAmount amount) {
    this.amount = amount;
  }
 
  public String getAppid() {
    return appid;
  }
 
  public void setAppid(String appid) {
    this.appid = appid;
  }
 
  public String getAttach() {
    return attach;
  }
 
  public void setAttach(String attach) {
    this.attach = attach;
  }
 
  public String getBankType() {
    return bankType;
  }
 
  public void setBankType(String bankType) {
    this.bankType = bankType;
  }
 
  public String getMchid() {
    return mchid;
  }
 
  public void setMchid(String mchid) {
    this.mchid = mchid;
  }
 
  public String getOutTradeNo() {
    return outTradeNo;
  }
 
  public void setOutTradeNo(String outTradeNo) {
    this.outTradeNo = outTradeNo;
  }
 
  public TransactionPayer getPayer() {
    return payer;
  }
 
  public void setPayer(TransactionPayer payer) {
    this.payer = payer;
  }
 
  public List<PromotionDetail> getPromotionDetail() {
    return promotionDetail;
  }
 
  public void setPromotionDetail(List<PromotionDetail> promotionDetail) {
    this.promotionDetail = promotionDetail;
  }
 
  public String getSuccessTime() {
    return successTime;
  }
 
  public void setSuccessTime(String successTime) {
    this.successTime = successTime;
  }
 
  public TradeStateEnum getTradeState() {
    return tradeState;
  }
 
  public void setTradeState(TradeStateEnum tradeState) {
    this.tradeState = tradeState;
  }
 
  public String getTradeStateDesc() {
    return tradeStateDesc;
  }
 
  public void setTradeStateDesc(String tradeStateDesc) {
    this.tradeStateDesc = tradeStateDesc;
  }
 
  public TradeTypeEnum getTradeType() {
    return tradeType;
  }
 
  public void setTradeType(TradeTypeEnum tradeType) {
    this.tradeType = tradeType;
  }
 
  public String getTransactionId() {
    return transactionId;
  }
 
  public void setTransactionId(String transactionId) {
    this.transactionId = transactionId;
  }
 
  @Override
  public String toString() {
    return GsonUtil.getGson().toJson(this);
  }
}