-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
feat(channel): 支持售后保障单接口 #4106
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
feat(channel): 支持售后保障单接口 #4106
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
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
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
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
34 changes: 34 additions & 0 deletions
34
...va-channel/src/main/java/me/chanjar/weixin/channel/bean/after/GuaranteeModifyRequest.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,34 @@ | ||
| package me.chanjar.weixin.channel.bean.after; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonInclude; | ||
| import com.fasterxml.jackson.annotation.JsonInclude.Include; | ||
| import com.fasterxml.jackson.annotation.JsonProperty; | ||
| import lombok.Data; | ||
| import lombok.EqualsAndHashCode; | ||
| import lombok.NoArgsConstructor; | ||
|
|
||
| /** | ||
| * 商家协商保障单请求参数。 | ||
| */ | ||
| @Data | ||
| @NoArgsConstructor | ||
| @EqualsAndHashCode(callSuper = true) | ||
| @JsonInclude(Include.NON_NULL) | ||
| public class GuaranteeModifyRequest extends GuaranteeOrderIdParam { | ||
|
|
||
| private static final long serialVersionUID = 4268864541609439068L; | ||
|
|
||
| /** 商品破损程度。 */ | ||
| @JsonProperty("bad_level") | ||
| private Integer badLevel; | ||
|
|
||
| /** 商家协商备注。 */ | ||
| @JsonProperty("merchant_remark") | ||
| private String merchantRemark; | ||
|
|
||
| public GuaranteeModifyRequest(String guaranteeOrderId, Integer badLevel, String merchantRemark) { | ||
| super(guaranteeOrderId); | ||
| this.badLevel = badLevel; | ||
| this.merchantRemark = merchantRemark; | ||
| } | ||
| } |
25 changes: 25 additions & 0 deletions
25
...ava-channel/src/main/java/me/chanjar/weixin/channel/bean/after/GuaranteeOrderIdParam.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.after; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonInclude; | ||
| import com.fasterxml.jackson.annotation.JsonInclude.Include; | ||
| import com.fasterxml.jackson.annotation.JsonProperty; | ||
| import java.io.Serializable; | ||
| import lombok.AllArgsConstructor; | ||
| import lombok.Data; | ||
| import lombok.NoArgsConstructor; | ||
|
|
||
| /** | ||
| * 保障单号参数。 | ||
| */ | ||
| @Data | ||
| @NoArgsConstructor | ||
| @AllArgsConstructor | ||
| @JsonInclude(Include.NON_NULL) | ||
| public class GuaranteeOrderIdParam implements Serializable { | ||
|
|
||
| private static final long serialVersionUID = -6638498743123537413L; | ||
|
|
||
| /** 保障单号。 */ | ||
| @JsonProperty("guarantee_order_id") | ||
| private String guaranteeOrderId; | ||
| } |
59 changes: 59 additions & 0 deletions
59
...hannel/src/main/java/me/chanjar/weixin/channel/bean/after/GuaranteeOrderInfoResponse.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,59 @@ | ||
| package me.chanjar.weixin.channel.bean.after; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonProperty; | ||
| import java.io.Serializable; | ||
| import lombok.Data; | ||
| import lombok.EqualsAndHashCode; | ||
| import lombok.NoArgsConstructor; | ||
| import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; | ||
|
|
||
| /** | ||
| * 保障单详情响应。 | ||
| */ | ||
| @Data | ||
| @NoArgsConstructor | ||
| @EqualsAndHashCode(callSuper = true) | ||
| public class GuaranteeOrderInfoResponse extends WxChannelBaseResponse { | ||
|
|
||
| private static final long serialVersionUID = 7354122991247317485L; | ||
|
|
||
| /** 保障单详情。 */ | ||
| @JsonProperty("guarantee_order") | ||
| private GuaranteeOrder guaranteeOrder; | ||
|
|
||
| /** | ||
| * 保障单详情。 | ||
| */ | ||
| @Data | ||
| @NoArgsConstructor | ||
| public static class GuaranteeOrder implements Serializable { | ||
|
|
||
| private static final long serialVersionUID = -2398976447575813507L; | ||
|
|
||
| /** 保障单号。 */ | ||
| @JsonProperty("guarantee_order_id") | ||
| private String guaranteeOrderId; | ||
|
|
||
| /** 保障单状态。 */ | ||
| @JsonProperty("status") | ||
| private String status; | ||
|
|
||
| /** 商品信息。 */ | ||
| @JsonProperty("product_info") | ||
| private ProductInfo productInfo; | ||
| } | ||
|
|
||
| /** | ||
| * 详情商品信息。 | ||
| */ | ||
| @Data | ||
| @NoArgsConstructor | ||
| public static class ProductInfo implements Serializable { | ||
|
|
||
| private static final long serialVersionUID = -2455740986246085934L; | ||
|
|
||
| /** 商品 SPU ID。 */ | ||
| @JsonProperty("product_id") | ||
| private String productId; | ||
| } | ||
| } |
44 changes: 44 additions & 0 deletions
44
...a-channel/src/main/java/me/chanjar/weixin/channel/bean/after/GuaranteeOrderListParam.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,44 @@ | ||
| package me.chanjar.weixin.channel.bean.after; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonInclude; | ||
| import com.fasterxml.jackson.annotation.JsonInclude.Include; | ||
| import com.fasterxml.jackson.annotation.JsonProperty; | ||
| import java.io.Serializable; | ||
| import java.util.List; | ||
| import lombok.Data; | ||
| import lombok.NoArgsConstructor; | ||
|
|
||
| /** | ||
| * 保障单列表请求参数。 | ||
| */ | ||
| @Data | ||
| @NoArgsConstructor | ||
| @JsonInclude(Include.NON_NULL) | ||
| public class GuaranteeOrderListParam implements Serializable { | ||
|
|
||
| private static final long serialVersionUID = 1622570776364341988L; | ||
|
|
||
| @JsonProperty("guarantee_order_id_list") | ||
| private List<String> guaranteeOrderIdList; | ||
|
|
||
| @JsonProperty("order_id_list") | ||
| private List<String> orderIdList; | ||
|
|
||
| @JsonProperty("type") | ||
| private Integer type; | ||
|
|
||
| @JsonProperty("begin_time") | ||
| private Long beginTime; | ||
|
|
||
| @JsonProperty("end_time") | ||
| private Long endTime; | ||
|
|
||
| @JsonProperty("status_list") | ||
| private String statusList; | ||
|
|
||
| @JsonProperty("offset") | ||
| private Integer offset; | ||
|
|
||
| @JsonProperty("limit") | ||
| private Integer limit; | ||
| } |
64 changes: 64 additions & 0 deletions
64
...hannel/src/main/java/me/chanjar/weixin/channel/bean/after/GuaranteeOrderListResponse.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,64 @@ | ||
| package me.chanjar.weixin.channel.bean.after; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonProperty; | ||
| import java.io.Serializable; | ||
| import java.util.List; | ||
| import lombok.Data; | ||
| import lombok.EqualsAndHashCode; | ||
| import lombok.NoArgsConstructor; | ||
| import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; | ||
|
|
||
| /** | ||
| * 保障单列表响应。 | ||
| */ | ||
| @Data | ||
| @NoArgsConstructor | ||
| @EqualsAndHashCode(callSuper = true) | ||
| public class GuaranteeOrderListResponse extends WxChannelBaseResponse { | ||
|
|
||
| private static final long serialVersionUID = 9105476087203713187L; | ||
|
|
||
| /** 保障单总数。 */ | ||
| @JsonProperty("total_num") | ||
| private Integer totalNum; | ||
|
|
||
| /** 保障单列表。 */ | ||
| @JsonProperty("guarantee_order_list") | ||
| private List<GuaranteeOrder> guaranteeOrderList; | ||
|
|
||
| /** | ||
| * 保障单列表项。 | ||
| */ | ||
| @Data | ||
| @NoArgsConstructor | ||
| public static class GuaranteeOrder implements Serializable { | ||
|
|
||
| private static final long serialVersionUID = 7151952524213202281L; | ||
|
|
||
| /** 保障单号。 */ | ||
| @JsonProperty("guarantee_order_id") | ||
| private String guaranteeOrderId; | ||
|
|
||
| /** 保障单状态。 */ | ||
| @JsonProperty("status") | ||
| private String status; | ||
|
|
||
| /** 商品信息列表。 */ | ||
| @JsonProperty("product_info") | ||
| private List<ProductInfo> productInfo; | ||
| } | ||
|
|
||
| /** | ||
| * 列表商品信息。 | ||
| */ | ||
| @Data | ||
| @NoArgsConstructor | ||
| public static class ProductInfo implements Serializable { | ||
|
|
||
| private static final long serialVersionUID = -2565763879505631638L; | ||
|
|
||
| /** 商品 SPU ID。 */ | ||
| @JsonProperty("product_id") | ||
| private String productId; | ||
| } | ||
| } | ||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.