-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
补齐 WxChannelAfterSaleService 缺失的 9 个官方售后端点(含保障单与工单同步) #4034
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
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| package me.chanjar.weixin.channel.bean.after; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonProperty; | ||
| import lombok.Data; | ||
| import lombok.EqualsAndHashCode; | ||
| import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; | ||
|
|
||
| @Data | ||
| @EqualsAndHashCode(callSuper = true) | ||
| public class AfterSaleCreateResponse extends WxChannelBaseResponse { | ||
| private static final long serialVersionUID = 2680676438284658410L; | ||
|
|
||
| @JsonProperty("aftersale_id") | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When Useful? React with 👍 / 👎. |
||
| private String afterSaleId; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| package me.chanjar.weixin.channel.bean.after; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonInclude; | ||
| import com.fasterxml.jackson.annotation.JsonProperty; | ||
| import lombok.Data; | ||
| import lombok.EqualsAndHashCode; | ||
|
|
||
| @Data | ||
| @EqualsAndHashCode(callSuper = true) | ||
| @JsonInclude(JsonInclude.Include.NON_NULL) | ||
| public class AfterSaleGenAfterSaleOrderParam extends AfterSaleRefundPriceDiffParam { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Severity: medium 🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage. |
||
| private static final long serialVersionUID = -6873909673739068936L; | ||
|
|
||
| @JsonProperty("count") | ||
| private Integer count; | ||
|
|
||
| @JsonProperty("type") | ||
| private String type; | ||
|
|
||
| @JsonProperty("address_id") | ||
| private String addressId; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| package me.chanjar.weixin.channel.bean.after; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonInclude; | ||
| import com.fasterxml.jackson.annotation.JsonProperty; | ||
| import java.util.List; | ||
| import lombok.Data; | ||
| import lombok.EqualsAndHashCode; | ||
|
|
||
| @Data | ||
| @EqualsAndHashCode(callSuper = true) | ||
| @JsonInclude(JsonInclude.Include.NON_NULL) | ||
| public class AfterSaleHandleFastExchangeReceiptParam extends AfterSaleIdParam { | ||
| private static final long serialVersionUID = 5430106715116197677L; | ||
|
|
||
| @JsonProperty("act") | ||
| private Integer act; | ||
|
|
||
| @JsonProperty("reject_reason") | ||
| private String rejectReason; | ||
|
|
||
| @JsonProperty("reject_reason_type") | ||
| private Integer rejectReasonType; | ||
|
|
||
| @JsonProperty("merchant_text") | ||
| private String merchantText; | ||
|
|
||
| @JsonProperty("reject_confirm_exchange") | ||
| private List<Object> rejectConfirmExchange; | ||
|
Comment on lines
+27
to
+28
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Severity: low 🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage. |
||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| package me.chanjar.weixin.channel.bean.after; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonInclude; | ||
| import com.fasterxml.jackson.annotation.JsonProperty; | ||
| import java.io.Serializable; | ||
| import lombok.Data; | ||
|
|
||
| @Data | ||
| @JsonInclude(JsonInclude.Include.NON_NULL) | ||
| public class AfterSaleRefundPriceDiffParam implements Serializable { | ||
| private static final long serialVersionUID = 3875058376021518123L; | ||
|
|
||
| @JsonProperty("request_id") | ||
| private String requestId; | ||
|
|
||
| @JsonProperty("order_id") | ||
| private String orderId; | ||
|
|
||
| @JsonProperty("product_id") | ||
| private String productId; | ||
|
|
||
| @JsonProperty("sku_id") | ||
| private String skuId; | ||
|
|
||
| @JsonProperty("amount") | ||
| private Integer amount; | ||
|
|
||
| @JsonProperty("reason") | ||
| private String reason; | ||
|
|
||
| @JsonProperty("desc") | ||
| private String desc; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| package me.chanjar.weixin.channel.bean.after; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonProperty; | ||
| import lombok.Data; | ||
| import lombok.EqualsAndHashCode; | ||
| import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; | ||
|
|
||
| @Data | ||
| @EqualsAndHashCode(callSuper = true) | ||
| public class AfterSaleVirtualTelNumResponse extends WxChannelBaseResponse { | ||
| private static final long serialVersionUID = -2715343569103426942L; | ||
|
|
||
| @JsonProperty("virtual_tel_number") | ||
| private String virtualTelNumber; | ||
|
|
||
| @JsonProperty("virtual_tel_expire_time") | ||
| private Long virtualTelExpireTime; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| package me.chanjar.weixin.channel.bean.after; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonInclude; | ||
| import com.fasterxml.jackson.annotation.JsonProperty; | ||
| import lombok.Data; | ||
| import lombok.EqualsAndHashCode; | ||
|
|
||
| @Data | ||
| @EqualsAndHashCode(callSuper = true) | ||
| @JsonInclude(JsonInclude.Include.NON_NULL) | ||
| public class GuaranteeMerchantModifyParam extends GuaranteeOrderIdParam { | ||
| private static final long serialVersionUID = 9193536167701367687L; | ||
|
|
||
| @JsonProperty("bad_level") | ||
| private Integer badLevel; | ||
|
|
||
| @JsonProperty("merchant_remark") | ||
| private String merchantRemark; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| package me.chanjar.weixin.channel.bean.after; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonInclude; | ||
| import com.fasterxml.jackson.annotation.JsonProperty; | ||
| import java.util.List; | ||
| import lombok.Data; | ||
| import lombok.EqualsAndHashCode; | ||
|
|
||
| @Data | ||
| @EqualsAndHashCode(callSuper = true) | ||
| @JsonInclude(JsonInclude.Include.NON_NULL) | ||
| public class GuaranteeMerchantProofParam extends GuaranteeOrderIdParam { | ||
| private static final long serialVersionUID = -2365495841866160967L; | ||
|
|
||
| @JsonProperty("content") | ||
| private String content; | ||
|
|
||
| @JsonProperty("pic_list") | ||
| private List<String> picList; | ||
|
Comment on lines
+15
to
+19
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
For merchant proof submissions that include text or images, the endpoint expects the evidence nested under Useful? React with 👍 / 👎. |
||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| package me.chanjar.weixin.channel.bean.after; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonInclude; | ||
| import com.fasterxml.jackson.annotation.JsonProperty; | ||
| import java.io.Serializable; | ||
| import lombok.AllArgsConstructor; | ||
| import lombok.Data; | ||
| import lombok.NoArgsConstructor; | ||
|
|
||
| @Data | ||
| @NoArgsConstructor | ||
| @AllArgsConstructor | ||
| @JsonInclude(JsonInclude.Include.NON_NULL) | ||
| public class GuaranteeOrderIdParam implements Serializable { | ||
| private static final long serialVersionUID = 4325797703077757139L; | ||
|
|
||
| @JsonProperty("guarantee_order_id") | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The guarantee APIs expect the request field to be Useful? React with 👍 / 👎. |
||
| private String guaranteeOrderId; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| package me.chanjar.weixin.channel.bean.after; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonProperty; | ||
| import com.fasterxml.jackson.databind.JsonNode; | ||
| import lombok.Data; | ||
| import lombok.EqualsAndHashCode; | ||
| import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse; | ||
|
|
||
| @Data | ||
| @EqualsAndHashCode(callSuper = true) | ||
| public class GuaranteeOrderResponse extends WxChannelBaseResponse { | ||
| private static final long serialVersionUID = 3977781489692530604L; | ||
|
|
||
| @JsonProperty("guarantee_order") | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
For successful guarantee detail responses, the body field is Useful? React with 👍 / 👎. |
||
| private JsonNode guaranteeOrder; | ||
|
Comment on lines
+14
to
+15
|
||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.
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.
AfterSaleCreateResponsemaps the returned id as@JsonProperty("aftersale_id"), but the official response examples forgenaftersaleorder/refundpricediffshowafter_sale_order_id; if the API actually returnsafter_sale_order_id,afterSaleIdwill always deserialize as null.Severity: medium
🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.