无关风月
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
// 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.PromotionGoodsDetail;
 
import java.util.List;
 
/** PromotionDetail */
public class PromotionDetail {
  /** 券ID 说明:券ID */
  @SerializedName("coupon_id")
  private String couponId;
  /** 优惠名称 说明:优惠名称 */
  @SerializedName("name")
  private String name;
  /** GLOBAL:全场代金券;SINGLE:单品优惠 */
  public enum ScopeEnum {
    @SerializedName("GLOBAL")
    GLOBAL,
 
    @SerializedName("SINGLE")
    SINGLE
  }
 
  @SerializedName("scope")
  private ScopeEnum scope;
  /** CASH:充值;NOCASH:预充值。 */
  public enum TypeEnum {
    @SerializedName("CASH")
    CASH,
 
    @SerializedName("NOCASH")
    NOCASH
  }
 
  @SerializedName("type")
  private TypeEnum type;
  /** 优惠券面额 说明:优惠券面额 */
  @SerializedName("amount")
  private Integer amount;
  /** 活动ID 说明:活动ID,批次ID */
  @SerializedName("stock_id")
  private String stockId;
  /** 微信出资 说明:单位为分 */
  @SerializedName("wechatpay_contribute")
  private Integer wechatpayContribute;
  /** 商户出资 说明:单位为分 */
  @SerializedName("merchant_contribute")
  private Integer merchantContribute;
  /** 其他出资 说明:单位为分 */
  @SerializedName("other_contribute")
  private Integer otherContribute;
  /** 优惠币种 说明:CNY:人民币,境内商户号仅支持人民币。 */
  @SerializedName("currency")
  private String currency;
  /** 单品列表 */
  @SerializedName("goods_detail")
  private List<PromotionGoodsDetail> goodsDetail;
 
  public String getCouponId() {
    return couponId;
  }
 
  public void setCouponId(String couponId) {
    this.couponId = couponId;
  }
 
  public String getName() {
    return name;
  }
 
  public void setName(String name) {
    this.name = name;
  }
 
  public ScopeEnum getScope() {
    return scope;
  }
 
  public void setScope(ScopeEnum scope) {
    this.scope = scope;
  }
 
  public TypeEnum getType() {
    return type;
  }
 
  public void setType(TypeEnum type) {
    this.type = type;
  }
 
  public Integer getAmount() {
    return amount;
  }
 
  public void setAmount(Integer amount) {
    this.amount = amount;
  }
 
  public String getStockId() {
    return stockId;
  }
 
  public void setStockId(String stockId) {
    this.stockId = stockId;
  }
 
  public Integer getWechatpayContribute() {
    return wechatpayContribute;
  }
 
  public void setWechatpayContribute(Integer wechatpayContribute) {
    this.wechatpayContribute = wechatpayContribute;
  }
 
  public Integer getMerchantContribute() {
    return merchantContribute;
  }
 
  public void setMerchantContribute(Integer merchantContribute) {
    this.merchantContribute = merchantContribute;
  }
 
  public Integer getOtherContribute() {
    return otherContribute;
  }
 
  public void setOtherContribute(Integer otherContribute) {
    this.otherContribute = otherContribute;
  }
 
  public String getCurrency() {
    return currency;
  }
 
  public void setCurrency(String currency) {
    this.currency = currency;
  }
 
  public List<PromotionGoodsDetail> getGoodsDetail() {
    return goodsDetail;
  }
 
  public void setGoodsDetail(List<PromotionGoodsDetail> goodsDetail) {
    this.goodsDetail = goodsDetail;
  }
 
  @Override
  public String toString() {
    return GsonUtil.getGson().toJson(this);
  }
}