Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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;

}
Original file line number Diff line number Diff line change
@@ -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;
Copy link

Copilot AI Nov 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

serialVersionUID 值与其他类重复。此值 -4562618835611282016L 已被 OrderInfo.javaMainProductInfo.javaFreeGiftInfo.java 使用。每个实现 Serializable 的类都应该有唯一的 serialVersionUID 以确保正确的序列化和反序列化。建议为此类生成一个新的唯一值。

Suggested change
private static final long serialVersionUID = -4562618835611282016L;
private static final long serialVersionUID = 8723456789012345678L;

Copilot uses AI. Check for mistakes.

/**
* 代发单号
*/
@JsonProperty("ds_order_id")
private Long dsOrderId;

}
Original file line number Diff line number Diff line change
@@ -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;

}
Original file line number Diff line number Diff line change
@@ -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;

}
Original file line number Diff line number Diff line change
Expand Up @@ -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;

}
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,34 @@ public class OrderPriceInfo implements Serializable {
@JsonProperty("finder_discounted_price")
private Integer finderDiscountedPrice;

/**
* 订单维度会员权益优惠金额
Copy link

Copilot AI Nov 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

优惠金额字段的注释应包含单位信息。建议将注释改为:"订单维度会员权益优惠金额,单位为分",与同文件中其他金额字段的注释风格保持一致(如第 20、86、99、105 行)。

Suggested change
* 订单维度会员权益优惠金额
* 订单维度会员权益优惠金额单位为分

Copilot uses AI. Check for mistakes.
*/
@JsonProperty("vip_discounted_price")
private Integer vipDiscountedPrice;

/**
* 订单维度一起买优惠金额,单位为分
*/
@JsonProperty("bulkbuy_discounted_price")
private Integer bulkbuyDiscountedPrice;

/**
* 订单维度国补优惠金额
Copy link

Copilot AI Nov 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

优惠金额字段的注释应包含单位信息。建议将注释改为:"订单维度国补优惠金额,单位为分",与同文件中其他金额字段的注释风格保持一致。

Suggested change
* 订单维度国补优惠金额
* 订单维度国补优惠金额单位为分

Copilot uses AI. Check for mistakes.
*/
@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;

}
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public class OrderProductInfo implements Serializable {
private Integer merchantDiscountedPrice;

/**
* 商家优惠金额,单位为分
* 达人优惠金额,单位为分
*/
@JsonProperty("finder_discounted_price")
private Integer finderDiscountedPrice;
Expand All @@ -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;

}