无关风月
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
// Copyright 2021 Tencent Inc. All rights reserved.
//
// 境内普通商户退款API
//
// 境内普通商户退款功能涉及的API文档
//
// API version: 1.2.0
 
// Code generated by WechatPay APIv3 Generator based on [OpenAPI
// Generator](https://openapi-generator.tech); DO NOT EDIT.
 
package com.jilongda.common.wxPay.refund.model;
 
import static com.wechat.pay.java.core.util.StringUtil.toIndentedString;
 
import com.google.gson.annotations.SerializedName;
import com.wechat.pay.java.service.refund.model.GoodsDetail;
import com.wechat.pay.java.service.refund.model.Scope;
import com.wechat.pay.java.service.refund.model.Type;
 
import java.util.List;
 
/** Promotion */
public class Promotion {
  /** 券ID 说明:券或者立减优惠id */
  @SerializedName("promotion_id")
  private String promotionId;
  /** 优惠券面额 说明:用户享受优惠的金额(优惠券面额=微信出资金额+商家出资金额+其他出资方金额 ),单位为分 */
  @SerializedName("amount")
  private Long amount;
  /** 优惠退款金额 说明:优惠退款金额<=退款金额,退款金额-代金券或立减优惠退款金额为用户支付的现金,说明详见代金券或立减优惠,单位为分 */
  @SerializedName("refund_amount")
  private Long refundAmount;
  /** 商品列表 说明:优惠商品发生退款时返回商品信息 */
  @SerializedName("goods_detail")
  private List<GoodsDetail> goodsDetail;
  /** 优惠范围 说明:枚举值: - GLOBAL- 全场代金券 - SINGLE- 单品优惠 */
  @SerializedName("scope")
  private com.wechat.pay.java.service.refund.model.Scope scope;
  /** 优惠类型 说明:枚举值: - COUPON- 代金券,需要走结算资金的充值型代金券 - DISCOUNT- 优惠券,不走结算资金的免充值型优惠券 */
  @SerializedName("type")
  private com.wechat.pay.java.service.refund.model.Type type;
 
  public String getPromotionId() {
    return promotionId;
  }
 
  public void setPromotionId(String promotionId) {
    this.promotionId = promotionId;
  }
 
  public Long getAmount() {
    return amount;
  }
 
  public void setAmount(Long amount) {
    this.amount = amount;
  }
 
  public Long getRefundAmount() {
    return refundAmount;
  }
 
  public void setRefundAmount(Long refundAmount) {
    this.refundAmount = refundAmount;
  }
 
  public List<GoodsDetail> getGoodsDetail() {
    return goodsDetail;
  }
 
  public void setGoodsDetail(List<GoodsDetail> goodsDetail) {
    this.goodsDetail = goodsDetail;
  }
 
  public com.wechat.pay.java.service.refund.model.Scope getScope() {
    return scope;
  }
 
  public void setScope(Scope scope) {
    this.scope = scope;
  }
 
  public com.wechat.pay.java.service.refund.model.Type getType() {
    return type;
  }
 
  public void setType(Type type) {
    this.type = type;
  }
 
  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Promotion {\n");
    sb.append("    promotionId: ").append(toIndentedString(promotionId)).append("\n");
    sb.append("    amount: ").append(toIndentedString(amount)).append("\n");
    sb.append("    refundAmount: ").append(toIndentedString(refundAmount)).append("\n");
    sb.append("    goodsDetail: ").append(toIndentedString(goodsDetail)).append("\n");
    sb.append("    scope: ").append(toIndentedString(scope)).append("\n");
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
    sb.append("}");
    return sb.toString();
  }
}