无关风月
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
215
216
// Copyright 2021 Tencent Inc. All rights reserved.
//
// H5支付
//
// H5支付API
//
// 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.h5.model;
 
import static com.wechat.pay.java.core.util.StringUtil.toIndentedString;
 
import com.google.gson.annotations.SerializedName;
import com.wechat.pay.java.service.payments.h5.model.Amount;
import com.wechat.pay.java.service.payments.h5.model.Detail;
import com.wechat.pay.java.service.payments.h5.model.SceneInfo;
import com.wechat.pay.java.service.payments.h5.model.SettleInfo;
 
import java.util.List;
 
/** PrepayRequest */
public class PrepayRequest {
  /** 公众号ID 说明:公众号ID */
  @SerializedName("appid")
  private String appid;
  /** 直连商户号 说明:直连商户号 */
  @SerializedName("mchid")
  private String mchid;
  /** 商品描述 说明:商品描述 */
  @SerializedName("description")
  private String description;
  /** 商户订单号 说明:商户订单号 */
  @SerializedName("out_trade_no")
  private String outTradeNo;
  /** 交易结束时间 说明:订单失效时间,格式为rfc3339格式 */
  @SerializedName("time_expire")
  private String timeExpire;
  /** 附加数据 说明:附加数据 */
  @SerializedName("attach")
  private String attach;
  /** 通知地址 说明:有效性:1. HTTPS;2. 不允许携带查询串。 */
  @SerializedName("notify_url")
  private String notifyUrl;
  /** 订单优惠标记 说明:商品标记,代金券或立减优惠功能的参数。 */
  @SerializedName("goods_tag")
  private String goodsTag;
  /** limitPay */
  public enum LimitPayEnum {
    @SerializedName("no_balance")
    NO_BALANCE,
 
    @SerializedName("no_credit")
    NO_CREDIT,
 
    @SerializedName("no_debit")
    NO_DEBIT,
 
    @SerializedName("balance_only")
    BALANCE_ONLY
  }
 
  @SerializedName("limit_pay")
  private List<LimitPayEnum> limitPay;
  /** 电子发票入口开放标识 说明:传入true时,支付成功消息和支付详情页将出现开票入口。需要在微信支付商户平台或微信公众平台开通电子发票功能,传此字段才可生效。 */
  @SerializedName("support_fapiao")
  private Boolean supportFapiao;
  /** amount */
  @SerializedName("amount")
  private com.wechat.pay.java.service.payments.h5.model.Amount amount;
  /** detail */
  @SerializedName("detail")
  private com.wechat.pay.java.service.payments.h5.model.Detail detail;
  /** sceneInfo */
  @SerializedName("scene_info")
  private com.wechat.pay.java.service.payments.h5.model.SceneInfo sceneInfo;
  /** settleInfo */
  @SerializedName("settle_info")
  private com.wechat.pay.java.service.payments.h5.model.SettleInfo settleInfo;
 
  public String getAppid() {
    return appid;
  }
 
  public void setAppid(String appid) {
    this.appid = appid;
  }
 
  public String getMchid() {
    return mchid;
  }
 
  public void setMchid(String mchid) {
    this.mchid = mchid;
  }
 
  public String getDescription() {
    return description;
  }
 
  public void setDescription(String description) {
    this.description = description;
  }
 
  public String getOutTradeNo() {
    return outTradeNo;
  }
 
  public void setOutTradeNo(String outTradeNo) {
    this.outTradeNo = outTradeNo;
  }
 
  public String getTimeExpire() {
    return timeExpire;
  }
 
  public void setTimeExpire(String timeExpire) {
    this.timeExpire = timeExpire;
  }
 
  public String getAttach() {
    return attach;
  }
 
  public void setAttach(String attach) {
    this.attach = attach;
  }
 
  public String getNotifyUrl() {
    return notifyUrl;
  }
 
  public void setNotifyUrl(String notifyUrl) {
    this.notifyUrl = notifyUrl;
  }
 
  public String getGoodsTag() {
    return goodsTag;
  }
 
  public void setGoodsTag(String goodsTag) {
    this.goodsTag = goodsTag;
  }
 
  public List<LimitPayEnum> getLimitPay() {
    return limitPay;
  }
 
  public void setLimitPay(List<LimitPayEnum> limitPay) {
    this.limitPay = limitPay;
  }
 
  public Boolean getSupportFapiao() {
    return supportFapiao;
  }
 
  public void setSupportFapiao(Boolean supportFapiao) {
    this.supportFapiao = supportFapiao;
  }
 
  public com.wechat.pay.java.service.payments.h5.model.Amount getAmount() {
    return amount;
  }
 
  public void setAmount(Amount amount) {
    this.amount = amount;
  }
 
  public com.wechat.pay.java.service.payments.h5.model.Detail getDetail() {
    return detail;
  }
 
  public void setDetail(Detail detail) {
    this.detail = detail;
  }
 
  public com.wechat.pay.java.service.payments.h5.model.SceneInfo getSceneInfo() {
    return sceneInfo;
  }
 
  public void setSceneInfo(SceneInfo sceneInfo) {
    this.sceneInfo = sceneInfo;
  }
 
  public com.wechat.pay.java.service.payments.h5.model.SettleInfo getSettleInfo() {
    return settleInfo;
  }
 
  public void setSettleInfo(SettleInfo settleInfo) {
    this.settleInfo = settleInfo;
  }
 
  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class PrepayRequest {\n");
    sb.append("    appid: ").append(toIndentedString(appid)).append("\n");
    sb.append("    mchid: ").append(toIndentedString(mchid)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    outTradeNo: ").append(toIndentedString(outTradeNo)).append("\n");
    sb.append("    timeExpire: ").append(toIndentedString(timeExpire)).append("\n");
    sb.append("    attach: ").append(toIndentedString(attach)).append("\n");
    sb.append("    notifyUrl: ").append(toIndentedString(notifyUrl)).append("\n");
    sb.append("    goodsTag: ").append(toIndentedString(goodsTag)).append("\n");
    sb.append("    limitPay: ").append(toIndentedString(limitPay)).append("\n");
    sb.append("    supportFapiao: ").append(toIndentedString(supportFapiao)).append("\n");
    sb.append("    amount: ").append(toIndentedString(amount)).append("\n");
    sb.append("    detail: ").append(toIndentedString(detail)).append("\n");
    sb.append("    sceneInfo: ").append(toIndentedString(sceneInfo)).append("\n");
    sb.append("    settleInfo: ").append(toIndentedString(settleInfo)).append("\n");
    sb.append("}");
    return sb.toString();
  }
}