🎨 【视频号】视频号小店获取订单详情接口增加部分字段 !113

This commit is contained in:
北鹤 2023-11-13 03:08:47 +00:00 committed by Binary Wang
parent f1d790c710
commit 473d2c14c3
6 changed files with 129 additions and 0 deletions

View File

@ -52,4 +52,8 @@ public class OrderDetailInfo implements Serializable {
@JsonProperty("settle_info")
private OrderSettleInfo settleInfo;
/** 分享员信息 */
@JsonProperty("sku_sharer_infos")
private List<OrderSkuShareInfo> skuSharerInfos;
}

View File

@ -55,4 +55,12 @@ public class OrderPriceInfo implements Serializable {
@JsonProperty("is_change_freight")
private Boolean changeFreighted;
/** 是否使用了会员积分抵扣 */
@JsonProperty("use_deduction")
private Boolean useDeduction;
/** 会员积分抵扣金额,单位为分 */
@JsonProperty("deduction_price")
private Integer deductionPrice;
}

View File

@ -0,0 +1,28 @@
package me.chanjar.weixin.channel.bean.order;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
/**
* 商品额外服务信息
*
* @author <a href="https://github.com/qrpcode">北鹤M</a>
*/
@Data
@NoArgsConstructor
public class OrderProductExtraService implements Serializable {
private static final long serialVersionUID = -8752053507170277156L;
/** 7天无理由0不支持1支持 */
@JsonProperty("seven_day_return")
private Integer sevenDayReturn;
/** 商家运费险0不支持1支持 */
@JsonProperty("freight_insurance")
private Integer freightInsurance;
}

View File

@ -92,4 +92,21 @@ public class OrderProductInfo implements Serializable {
/** 区域库存id */
@JsonProperty("out_warehouse_id")
private String outWarehouseId;
/** 商品发货信息 */
@JsonProperty("sku_deliver_info")
private OrderSkuDeliverInfo skuDeliverInfo;
/** 商品额外服务信息 */
@JsonProperty("extra_service")
private OrderProductExtraService extraService;
/** 是否使用了会员积分抵扣 */
@JsonProperty("use_deduction")
private Boolean useDeduction;
/** 会员积分抵扣金额,单位为分 */
@JsonProperty("deduction_price")
private Integer deductionPrice;
}

View File

@ -0,0 +1,28 @@
package me.chanjar.weixin.channel.bean.order;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
/**
* 商品发货信息
*
* @author <a href="https://github.com/qrpcode">北鹤M</a>
*/
@Data
@NoArgsConstructor
public class OrderSkuDeliverInfo implements Serializable {
private static final long serialVersionUID = 4075897806362929800L;
/** 商品发货类型0现货1全款预售 */
@JsonProperty("stock_type")
private Integer stockType;
/** 预计发货时间(stock_type=1时返回该字段) */
@JsonProperty("predict_delivery_time")
private String predictDeliveryTime;
}

View File

@ -0,0 +1,44 @@
package me.chanjar.weixin.channel.bean.order;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
/**
* Sku层分享信息
*
* @author <a href="https://github.com/qrpcode">北鹤M</a>
*/
@Data
@NoArgsConstructor
public class OrderSkuShareInfo implements Serializable {
private static final long serialVersionUID = 705312408112124476L;
/** 分享员openid */
@JsonProperty("sharer_openid")
private String sharerOpenid;
/** 分享员unionid */
@JsonProperty("sharer_unionid")
private String sharerUnionid;
/** 分享员类型0普通分享员1店铺分享员 */
@JsonProperty("sharer_type")
private Integer sharerType;
/** 分享场景 {@link me.chanjar.weixin.channel.enums.ShareScene} */
@JsonProperty("share_scene")
private Integer shareScene;
/** 商品skuid */
@JsonProperty("sku_id")
private String skuId;
/** 是否来自企微分享 */
@JsonProperty("from_wecom")
private Boolean fromWecom;
}