-
-
Notifications
You must be signed in to change notification settings - Fork 9k
微信小店订单详情接口新增会员权益等优惠金额字段 #3767
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
微信小店订单详情接口新增会员权益等优惠金额字段 #3767
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
41d19b2
feat:微信小店订单详情接口新增会员权益等优惠金额字段
a82e871
Update weixin-java-channel/src/main/java/me/chanjar/weixin/channel/be…
binarywang 4c84add
Update weixin-java-channel/src/main/java/me/chanjar/weixin/channel/be…
binarywang 5cd011d
Update weixin-java-channel/src/main/java/me/chanjar/weixin/channel/be…
binarywang d33a9cc
Update weixin-java-channel/src/main/java/me/chanjar/weixin/channel/be…
binarywang b954207
Update weixin-java-channel/src/main/java/me/chanjar/weixin/channel/be…
binarywang a75d62d
Update weixin-java-channel/src/main/java/me/chanjar/weixin/channel/be…
binarywang c229c30
Update weixin-java-channel/src/main/java/me/chanjar/weixin/channel/be…
binarywang d84176e
Update weixin-java-channel/src/main/java/me/chanjar/weixin/channel/be…
binarywang e4e55ff
Update weixin-java-channel/src/main/java/me/chanjar/weixin/channel/be…
binarywang 0943a0e
Update weixin-java-channel/src/main/java/me/chanjar/weixin/channel/be…
binarywang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/order/ChangeSkuInfo.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; | ||
|
|
||
| } |
24 changes: 24 additions & 0 deletions
24
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/order/DropshipInfo.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; | ||
|
|
||
| /** | ||
| * 代发单号 | ||
| */ | ||
| @JsonProperty("ds_order_id") | ||
| private Long dsOrderId; | ||
|
|
||
| } | ||
25 changes: 25 additions & 0 deletions
25
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/order/FreeGiftInfo.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; | ||
|
|
||
| } |
42 changes: 42 additions & 0 deletions
42
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/order/MainProductInfo.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; | ||
binarywang marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -107,4 +107,34 @@ public class OrderPriceInfo implements Serializable { | |||||
| @JsonProperty("finder_discounted_price") | ||||||
| private Integer finderDiscountedPrice; | ||||||
|
|
||||||
| /** | ||||||
| * 订单维度会员权益优惠金额 | ||||||
|
||||||
| * 订单维度会员权益优惠金额 | |
| * 订单维度会员权益优惠金额,单位为分 |
Copilot
AI
Nov 27, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
优惠金额字段的注释应包含单位信息。建议将注释改为:"订单维度国补优惠金额,单位为分",与同文件中其他金额字段的注释风格保持一致。
Suggested change
| * 订单维度国补优惠金额 | |
| * 订单维度国补优惠金额,单位为分 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
serialVersionUID值与其他类重复。此值-4562618835611282016L已被OrderInfo.java、MainProductInfo.java和FreeGiftInfo.java使用。每个实现Serializable的类都应该有唯一的serialVersionUID以确保正确的序列化和反序列化。建议为此类生成一个新的唯一值。