Skip to content

Commit 7fcd1ed

Browse files
authored
🎨 #3767 【视频号】微信小店订单详情接口新增会员权益等优惠金额字段
1 parent 21d5f2f commit 7fcd1ed

File tree

7 files changed

+239
-1
lines changed

7 files changed

+239
-1
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
package me.chanjar.weixin.channel.bean.order;
2+
3+
import com.fasterxml.jackson.annotation.JsonProperty;
4+
import lombok.Data;
5+
import lombok.NoArgsConstructor;
6+
7+
import java.io.Serializable;
8+
9+
/**
10+
* 更换sku信息
11+
*/
12+
@Data
13+
@NoArgsConstructor
14+
public class ChangeSkuInfo implements Serializable {
15+
16+
private static final long serialVersionUID = 8783442929429377519L;
17+
18+
/**
19+
* 发货前更换sku状态。3:等待商家处理,4:商家审核通过,5:商家拒绝,6:用户主动取消,7:超时默认拒绝
20+
*/
21+
@JsonProperty("preshipment_change_sku_state")
22+
private Integer preshipmentChangeSkuState;
23+
24+
/**
25+
* 原sku_id
26+
*/
27+
@JsonProperty("old_sku_id")
28+
private String oldSkuId;
29+
30+
/**
31+
* 用户申请更换的sku_id
32+
*/
33+
@JsonProperty("new_sku_id")
34+
private String newSkuId;
35+
36+
/**
37+
* 商家处理请求的最后时间,只有当前换款请求处于"等待商家处理"才有值
38+
*/
39+
@JsonProperty("ddl_time_stamp")
40+
private Integer deadlineTimeStamp;
41+
42+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package me.chanjar.weixin.channel.bean.order;
2+
3+
import com.fasterxml.jackson.annotation.JsonProperty;
4+
import lombok.Data;
5+
import lombok.NoArgsConstructor;
6+
7+
import java.io.Serializable;
8+
9+
/**
10+
* 代发相关信息
11+
*/
12+
@Data
13+
@NoArgsConstructor
14+
public class DropshipInfo implements Serializable {
15+
16+
private static final long serialVersionUID = -4562618835611282016L;
17+
18+
/**
19+
* 代发单号
20+
*/
21+
@JsonProperty("ds_order_id")
22+
private Long dsOrderId;
23+
24+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
package me.chanjar.weixin.channel.bean.order;
2+
3+
import com.fasterxml.jackson.annotation.JsonProperty;
4+
import lombok.Data;
5+
import lombok.NoArgsConstructor;
6+
7+
import java.io.Serializable;
8+
import java.util.List;
9+
10+
/**
11+
* 赠品信息
12+
*/
13+
@Data
14+
@NoArgsConstructor
15+
public class FreeGiftInfo implements Serializable {
16+
17+
private static final long serialVersionUID = 2024061212345678901L;
18+
19+
/**
20+
* 赠品对应的主品信息
21+
*/
22+
@JsonProperty("main_product_list")
23+
private List<MainProductInfo> mainProductList;
24+
25+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
package me.chanjar.weixin.channel.bean.order;
2+
3+
import com.fasterxml.jackson.annotation.JsonProperty;
4+
import lombok.Data;
5+
import lombok.NoArgsConstructor;
6+
7+
import java.io.Serializable;
8+
9+
/**
10+
* 赠品对应的主品信息
11+
*/
12+
@Data
13+
@NoArgsConstructor
14+
public class MainProductInfo implements Serializable {
15+
16+
private static final long serialVersionUID = 2024061212345678901L;
17+
18+
/**
19+
* 赠品数量
20+
*/
21+
@JsonProperty("gift_cnt")
22+
private Integer giftCnt;
23+
24+
/**
25+
* 活动id
26+
*/
27+
@JsonProperty("task_id")
28+
private Integer taskId;
29+
30+
/**
31+
* 商品id
32+
*/
33+
@JsonProperty("product_id")
34+
private Integer productId;
35+
36+
/**
37+
* 主品sku_id
38+
*/
39+
@JsonProperty("sku_id")
40+
private Integer skuId;
41+
42+
}

weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/order/OrderCouponInfo.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,24 @@ public class OrderCouponInfo implements Serializable {
1818
/** 用户优惠券id */
1919
@JsonProperty("user_coupon_id")
2020
private String userCouponId;
21+
22+
/**
23+
* 优惠券类型
24+
* 1 商家优惠
25+
* 2 达人优惠
26+
* 3 平台优惠
27+
* 4 国家补贴
28+
* 5 地方补贴
29+
*/
30+
@JsonProperty("coupon_type")
31+
private Integer couponType;
32+
33+
/** 优惠金额,单位为分,该张优惠券、抵扣该商品的金额 */
34+
@JsonProperty("discounted_price")
35+
private Integer discountedPrice;
36+
37+
/** 优惠券id */
38+
@JsonProperty("coupon_id")
39+
private String couponId;
40+
2141
}

weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/order/OrderPriceInfo.java

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,34 @@ public class OrderPriceInfo implements Serializable {
107107
@JsonProperty("finder_discounted_price")
108108
private Integer finderDiscountedPrice;
109109

110+
/**
111+
* 订单维度会员权益优惠金额
112+
*/
113+
@JsonProperty("vip_discounted_price")
114+
private Integer vipDiscountedPrice;
115+
116+
/**
117+
* 订单维度一起买优惠金额,单位为分
118+
*/
119+
@JsonProperty("bulkbuy_discounted_price")
120+
private Integer bulkbuyDiscountedPrice;
121+
122+
/**
123+
* 订单维度国补优惠金额
124+
*/
125+
@JsonProperty("national_subsidy_discounted_price")
126+
private Integer nationalSubsidyDiscountedPrice;
127+
128+
/**
129+
* 订单维度平台券优惠金额,单位为分
130+
*/
131+
@JsonProperty("cash_coupon_discounted_price")
132+
private Integer cashCouponDiscountedPrice;
133+
134+
/**
135+
* 订单维度地方补贴优惠金额(商家出资),单位为分
136+
*/
137+
@JsonProperty("national_subsidy_merchant_discounted_price")
138+
private Integer nationalSubsidyMerchantDiscountedPrice;
139+
110140
}

weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/order/OrderProductInfo.java

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public class OrderProductInfo implements Serializable {
176176
private Integer merchantDiscountedPrice;
177177

178178
/**
179-
* 商家优惠金额,单位为分
179+
* 达人优惠金额,单位为分
180180
*/
181181
@JsonProperty("finder_discounted_price")
182182
private Integer finderDiscountedPrice;
@@ -186,4 +186,59 @@ public class OrderProductInfo implements Serializable {
186186
*/
187187
@JsonProperty("is_free_gift")
188188
private Boolean freeGift;
189+
190+
/**
191+
* 订单内商品维度会员权益优惠金额,单位为分
192+
*/
193+
@JsonProperty("vip_discounted_price")
194+
private Integer vipDiscountedPrice;
195+
196+
/**
197+
* 商品常量编号,订单内商品唯一标识,下单后不会发生变化
198+
*/
199+
@JsonProperty("product_unique_id")
200+
private String productUniqueId;
201+
202+
/**
203+
* 更换sku信息
204+
*/
205+
@JsonProperty("change_sku_info")
206+
private ChangeSkuInfo changeSkuInfo;
207+
208+
/**
209+
* 赠品信息
210+
*/
211+
@JsonProperty("free_gift_info")
212+
private FreeGiftInfo freeGiftInfo;
213+
214+
/**
215+
* 订单内商品维度一起买优惠金额,单位为分
216+
*/
217+
@JsonProperty("bulkbuy_discounted_price")
218+
private Integer bulkbuyDiscountedPrice;
219+
220+
/**
221+
* 订单内商品维度国补优惠金额,单位为分
222+
*/
223+
@JsonProperty("national_subsidy_discounted_price")
224+
private Integer nationalSubsidyDiscountedPrice;
225+
226+
/**
227+
* 代发相关信息
228+
*/
229+
@JsonProperty("dropship_info")
230+
private DropshipInfo dropshipInfo;
231+
232+
/**
233+
* 是否闪购商品
234+
*/
235+
@JsonProperty("is_flash_sale")
236+
private Boolean flashSale;
237+
238+
/**
239+
* 订单内商品维度地方补贴优惠金额(商家出资),单位为分
240+
*/
241+
@JsonProperty("national_subsidy_merchant_discounted_price")
242+
private Integer nationalSubsidyMerchantDiscountedPrice;
243+
189244
}

0 commit comments

Comments
 (0)