update 记录支付信息

(cherry picked from commit e40db7e32b)
This commit is contained in:
2023-04-23 11:22:28 +08:00
parent d3ba89aeb4
commit 1dbc645d63
3 changed files with 33 additions and 19 deletions

View File

@@ -2,6 +2,8 @@ package com.jsowell.wxpay.response;
import lombok.Data;
import java.util.List;
@Data
public class WechatPayNotifyResource {
@@ -79,6 +81,11 @@ public class WechatPayNotifyResource {
*/
private Amount amount;
/**
* 优惠功能,享受优惠时返回该字段。
*/
private List<Promotion> promotion_detail;
@Data
public static class Payer {
/**
@@ -109,4 +116,28 @@ public class WechatPayNotifyResource {
*/
private String payer_currency;
}
@Data
public static class Promotion{
// 券ID
private String coupon_id;
// 优惠名称
private String name;
// 优惠范围 GLOBAL全场代金券 SINGLE单品优惠
private String scope;
//优惠类型 CASH充值型代金券 NOCASH免充值型代金券
private String type;
// 优惠券面额
private String amount;
// 活动ID
private String stock_id;
// 微信出资
private String wechatpay_contribute;
// 商户出资
private String merchant_contribute;
// 其他出资
private String other_contribute;
// 优惠币种
private String currency;
}
}