add
yj
2024-12-05 b9900893177c78fc559223521fe839aa21000017
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
package com.dobbinsoft.fw.pay.model.notify;
 
import lombok.Data;
import lombok.NoArgsConstructor;
import me.chanjar.weixin.common.util.json.WxGsonBuilder;
 
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
 
/**
 * 支付异步通知代金券详细.
 *
 * @author aimilin
 */
@Data
@NoArgsConstructor
public class MatrixPayOrderNotifyCoupon implements Serializable {
  private static final long serialVersionUID = -4165343733538156097L;
 
  private String couponId;
  private String couponType;
  private Integer couponFee;
 
  /**
   * To map map.
   *
   * @param index the index
   * @return the map
   */
  public Map<String, String> toMap(int index) {
    Map<String, String> map = new HashMap<>();
    map.put("coupon_id_" + index, this.getCouponId());
    map.put("coupon_type_" + index, this.getCouponType());
    map.put("coupon_fee_" + index, this.getCouponFee() + "");
    return map;
  }
 
  @Override
  public String toString() {
    return WxGsonBuilder.create().toJson(this);
  }
}