🎨 #3767 【视频号】微信小店订单详情接口新增会员权益等优惠金额字段
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
package me.chanjar.weixin.channel.bean.order;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 更换sku信息
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public class ChangeSkuInfo implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 8783442929429377519L;
|
||||
|
||||
/**
|
||||
* 发货前更换sku状态。3:等待商家处理,4:商家审核通过,5:商家拒绝,6:用户主动取消,7:超时默认拒绝
|
||||
*/
|
||||
@JsonProperty("preshipment_change_sku_state")
|
||||
private Integer preshipmentChangeSkuState;
|
||||
|
||||
/**
|
||||
* 原sku_id
|
||||
*/
|
||||
@JsonProperty("old_sku_id")
|
||||
private String oldSkuId;
|
||||
|
||||
/**
|
||||
* 用户申请更换的sku_id
|
||||
*/
|
||||
@JsonProperty("new_sku_id")
|
||||
private String newSkuId;
|
||||
|
||||
/**
|
||||
* 商家处理请求的最后时间,只有当前换款请求处于"等待商家处理"才有值
|
||||
*/
|
||||
@JsonProperty("ddl_time_stamp")
|
||||
private Integer deadlineTimeStamp;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package me.chanjar.weixin.channel.bean.order;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 代发相关信息
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public class DropshipInfo implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -4562618835611282016L;
|
||||
|
||||
/**
|
||||
* 代发单号
|
||||
*/
|
||||
@JsonProperty("ds_order_id")
|
||||
private Long dsOrderId;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package me.chanjar.weixin.channel.bean.order;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 赠品信息
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public class FreeGiftInfo implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 2024061212345678901L;
|
||||
|
||||
/**
|
||||
* 赠品对应的主品信息
|
||||
*/
|
||||
@JsonProperty("main_product_list")
|
||||
private List<MainProductInfo> mainProductList;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package me.chanjar.weixin.channel.bean.order;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 赠品对应的主品信息
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public class MainProductInfo implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 2024061212345678901L;
|
||||
|
||||
/**
|
||||
* 赠品数量
|
||||
*/
|
||||
@JsonProperty("gift_cnt")
|
||||
private Integer giftCnt;
|
||||
|
||||
/**
|
||||
* 活动id
|
||||
*/
|
||||
@JsonProperty("task_id")
|
||||
private Integer taskId;
|
||||
|
||||
/**
|
||||
* 商品id
|
||||
*/
|
||||
@JsonProperty("product_id")
|
||||
private Integer productId;
|
||||
|
||||
/**
|
||||
* 主品sku_id
|
||||
*/
|
||||
@JsonProperty("sku_id")
|
||||
private Integer skuId;
|
||||
|
||||
}
|
||||
@@ -18,4 +18,24 @@ public class OrderCouponInfo implements Serializable {
|
||||
/** 用户优惠券id */
|
||||
@JsonProperty("user_coupon_id")
|
||||
private String userCouponId;
|
||||
|
||||
/**
|
||||
* 优惠券类型
|
||||
* 1 商家优惠
|
||||
* 2 达人优惠
|
||||
* 3 平台优惠
|
||||
* 4 国家补贴
|
||||
* 5 地方补贴
|
||||
*/
|
||||
@JsonProperty("coupon_type")
|
||||
private Integer couponType;
|
||||
|
||||
/** 优惠金额,单位为分,该张优惠券、抵扣该商品的金额 */
|
||||
@JsonProperty("discounted_price")
|
||||
private Integer discountedPrice;
|
||||
|
||||
/** 优惠券id */
|
||||
@JsonProperty("coupon_id")
|
||||
private String couponId;
|
||||
|
||||
}
|
||||
|
||||
@@ -107,4 +107,34 @@ public class OrderPriceInfo implements Serializable {
|
||||
@JsonProperty("finder_discounted_price")
|
||||
private Integer finderDiscountedPrice;
|
||||
|
||||
/**
|
||||
* 订单维度会员权益优惠金额
|
||||
*/
|
||||
@JsonProperty("vip_discounted_price")
|
||||
private Integer vipDiscountedPrice;
|
||||
|
||||
/**
|
||||
* 订单维度一起买优惠金额,单位为分
|
||||
*/
|
||||
@JsonProperty("bulkbuy_discounted_price")
|
||||
private Integer bulkbuyDiscountedPrice;
|
||||
|
||||
/**
|
||||
* 订单维度国补优惠金额
|
||||
*/
|
||||
@JsonProperty("national_subsidy_discounted_price")
|
||||
private Integer nationalSubsidyDiscountedPrice;
|
||||
|
||||
/**
|
||||
* 订单维度平台券优惠金额,单位为分
|
||||
*/
|
||||
@JsonProperty("cash_coupon_discounted_price")
|
||||
private Integer cashCouponDiscountedPrice;
|
||||
|
||||
/**
|
||||
* 订单维度地方补贴优惠金额(商家出资),单位为分
|
||||
*/
|
||||
@JsonProperty("national_subsidy_merchant_discounted_price")
|
||||
private Integer nationalSubsidyMerchantDiscountedPrice;
|
||||
|
||||
}
|
||||
|
||||
@@ -176,7 +176,7 @@ public class OrderProductInfo implements Serializable {
|
||||
private Integer merchantDiscountedPrice;
|
||||
|
||||
/**
|
||||
* 商家优惠金额,单位为分
|
||||
* 达人优惠金额,单位为分
|
||||
*/
|
||||
@JsonProperty("finder_discounted_price")
|
||||
private Integer finderDiscountedPrice;
|
||||
@@ -186,4 +186,59 @@ public class OrderProductInfo implements Serializable {
|
||||
*/
|
||||
@JsonProperty("is_free_gift")
|
||||
private Boolean freeGift;
|
||||
|
||||
/**
|
||||
* 订单内商品维度会员权益优惠金额,单位为分
|
||||
*/
|
||||
@JsonProperty("vip_discounted_price")
|
||||
private Integer vipDiscountedPrice;
|
||||
|
||||
/**
|
||||
* 商品常量编号,订单内商品唯一标识,下单后不会发生变化
|
||||
*/
|
||||
@JsonProperty("product_unique_id")
|
||||
private String productUniqueId;
|
||||
|
||||
/**
|
||||
* 更换sku信息
|
||||
*/
|
||||
@JsonProperty("change_sku_info")
|
||||
private ChangeSkuInfo changeSkuInfo;
|
||||
|
||||
/**
|
||||
* 赠品信息
|
||||
*/
|
||||
@JsonProperty("free_gift_info")
|
||||
private FreeGiftInfo freeGiftInfo;
|
||||
|
||||
/**
|
||||
* 订单内商品维度一起买优惠金额,单位为分
|
||||
*/
|
||||
@JsonProperty("bulkbuy_discounted_price")
|
||||
private Integer bulkbuyDiscountedPrice;
|
||||
|
||||
/**
|
||||
* 订单内商品维度国补优惠金额,单位为分
|
||||
*/
|
||||
@JsonProperty("national_subsidy_discounted_price")
|
||||
private Integer nationalSubsidyDiscountedPrice;
|
||||
|
||||
/**
|
||||
* 代发相关信息
|
||||
*/
|
||||
@JsonProperty("dropship_info")
|
||||
private DropshipInfo dropshipInfo;
|
||||
|
||||
/**
|
||||
* 是否闪购商品
|
||||
*/
|
||||
@JsonProperty("is_flash_sale")
|
||||
private Boolean flashSale;
|
||||
|
||||
/**
|
||||
* 订单内商品维度地方补贴优惠金额(商家出资),单位为分
|
||||
*/
|
||||
@JsonProperty("national_subsidy_merchant_discounted_price")
|
||||
private Integer nationalSubsidyMerchantDiscountedPrice;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user