Skip to content

Commit f994a17

Browse files
authored
🆕 #4103 【视频号】补齐售后服务代发起售后、退差价、虚拟号、极速换货、保障单和工单同步等接口方法
1 parent 4e2fbf7 commit f994a17

13 files changed

Lines changed: 316 additions & 0 deletions
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package me.chanjar.weixin.channel.bean.after;
2+
3+
import com.fasterxml.jackson.annotation.JsonProperty;
4+
import lombok.Data;
5+
import lombok.EqualsAndHashCode;
6+
import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse;
7+
8+
@Data
9+
@EqualsAndHashCode(callSuper = true)
10+
public class AfterSaleCreateResponse extends WxChannelBaseResponse {
11+
private static final long serialVersionUID = 2680676438284658410L;
12+
13+
@JsonProperty("after_sale_order_id")
14+
private String afterSaleOrderId;
15+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
package me.chanjar.weixin.channel.bean.after;
2+
3+
import com.fasterxml.jackson.annotation.JsonInclude;
4+
import com.fasterxml.jackson.annotation.JsonProperty;
5+
import lombok.Data;
6+
import lombok.EqualsAndHashCode;
7+
8+
@Data
9+
@EqualsAndHashCode(callSuper = true)
10+
@JsonInclude(JsonInclude.Include.NON_NULL)
11+
public class AfterSaleGenAfterSaleOrderParam extends AfterSaleRefundPriceDiffParam {
12+
private static final long serialVersionUID = -6873909673739068936L;
13+
14+
@JsonProperty("count")
15+
private Integer count;
16+
17+
@JsonProperty("type")
18+
private String type;
19+
20+
@JsonProperty("address_id")
21+
private String addressId;
22+
23+
@JsonProperty("exchange_sku_info")
24+
private ExchangeSkuInfo exchangeSkuInfo;
25+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
package me.chanjar.weixin.channel.bean.after;
2+
3+
import com.fasterxml.jackson.annotation.JsonInclude;
4+
import com.fasterxml.jackson.annotation.JsonProperty;
5+
import java.util.List;
6+
import lombok.Data;
7+
import lombok.EqualsAndHashCode;
8+
9+
@Data
10+
@EqualsAndHashCode(callSuper = true)
11+
@JsonInclude(JsonInclude.Include.NON_NULL)
12+
public class AfterSaleHandleFastExchangeReceiptParam extends AfterSaleIdParam {
13+
private static final long serialVersionUID = 5430106715116197677L;
14+
15+
@JsonProperty("act")
16+
private Integer act;
17+
18+
@JsonProperty("reject_reason")
19+
private String rejectReason;
20+
21+
@JsonProperty("reject_reason_type")
22+
private Integer rejectReasonType;
23+
24+
@JsonProperty("merchant_text")
25+
private String merchantText;
26+
27+
@JsonProperty("reject_confirm_exchange")
28+
private List<String> rejectConfirmExchange;
29+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
package me.chanjar.weixin.channel.bean.after;
2+
3+
import com.fasterxml.jackson.annotation.JsonInclude;
4+
import com.fasterxml.jackson.annotation.JsonProperty;
5+
import java.io.Serializable;
6+
import lombok.Data;
7+
8+
@Data
9+
@JsonInclude(JsonInclude.Include.NON_NULL)
10+
public class AfterSaleRefundPriceDiffParam implements Serializable {
11+
private static final long serialVersionUID = 3875058376021518123L;
12+
13+
@JsonProperty("request_id")
14+
private String requestId;
15+
16+
@JsonProperty("order_id")
17+
private String orderId;
18+
19+
@JsonProperty("product_id")
20+
private String productId;
21+
22+
@JsonProperty("sku_id")
23+
private String skuId;
24+
25+
@JsonProperty("amount")
26+
private Integer amount;
27+
28+
@JsonProperty("reason")
29+
private String reason;
30+
31+
@JsonProperty("desc")
32+
private String desc;
33+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package me.chanjar.weixin.channel.bean.after;
2+
3+
import com.fasterxml.jackson.annotation.JsonProperty;
4+
import lombok.Data;
5+
import lombok.EqualsAndHashCode;
6+
import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse;
7+
8+
@Data
9+
@EqualsAndHashCode(callSuper = true)
10+
public class AfterSaleVirtualTelNumResponse extends WxChannelBaseResponse {
11+
private static final long serialVersionUID = -2715343569103426942L;
12+
13+
@JsonProperty("virtual_tel_number")
14+
private String virtualTelNumber;
15+
16+
@JsonProperty("virtual_tel_expire_time")
17+
private Long virtualTelExpireTime;
18+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package me.chanjar.weixin.channel.bean.after;
2+
3+
import com.fasterxml.jackson.annotation.JsonInclude;
4+
import com.fasterxml.jackson.annotation.JsonProperty;
5+
import java.io.Serializable;
6+
import lombok.Data;
7+
8+
@Data
9+
@JsonInclude(JsonInclude.Include.NON_NULL)
10+
public class ExchangeSkuInfo implements Serializable {
11+
private static final long serialVersionUID = 1L;
12+
@JsonProperty("new_sku_id")
13+
private String newSkuId;
14+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package me.chanjar.weixin.channel.bean.after;
2+
3+
import com.fasterxml.jackson.annotation.JsonInclude;
4+
import com.fasterxml.jackson.annotation.JsonProperty;
5+
import lombok.Data;
6+
import lombok.EqualsAndHashCode;
7+
8+
@Data
9+
@EqualsAndHashCode(callSuper = true)
10+
@JsonInclude(JsonInclude.Include.NON_NULL)
11+
public class GuaranteeMerchantModifyParam extends GuaranteeOrderIdParam {
12+
private static final long serialVersionUID = 9193536167701367687L;
13+
14+
@JsonProperty("bad_level")
15+
private Integer badLevel;
16+
17+
@JsonProperty("merchant_remark")
18+
private String merchantRemark;
19+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package me.chanjar.weixin.channel.bean.after;
2+
3+
import com.fasterxml.jackson.annotation.JsonInclude;
4+
import com.fasterxml.jackson.annotation.JsonProperty;
5+
import lombok.Data;
6+
import lombok.EqualsAndHashCode;
7+
8+
@Data
9+
@EqualsAndHashCode(callSuper = true)
10+
@JsonInclude(JsonInclude.Include.NON_NULL)
11+
public class GuaranteeMerchantProofParam extends GuaranteeOrderIdParam {
12+
private static final long serialVersionUID = -2365495841866160967L;
13+
14+
@JsonProperty("content")
15+
private String content;
16+
17+
@JsonProperty("pic_list")
18+
private java.util.List<String> picList;
19+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package me.chanjar.weixin.channel.bean.after;
2+
3+
import com.fasterxml.jackson.annotation.JsonProperty;
4+
import com.fasterxml.jackson.databind.JsonNode;
5+
import lombok.Data;
6+
import lombok.EqualsAndHashCode;
7+
import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse;
8+
9+
@Data
10+
@EqualsAndHashCode(callSuper = true)
11+
public class GuaranteeOrderResponse extends WxChannelBaseResponse {
12+
private static final long serialVersionUID = 3977781489692530604L;
13+
14+
@JsonProperty("guarantee_order")
15+
private JsonNode guaranteeOrder;
16+
}
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
package me.chanjar.weixin.channel.bean.after;
2+
3+
import com.fasterxml.jackson.annotation.JsonInclude;
4+
import com.fasterxml.jackson.annotation.JsonProperty;
5+
import java.io.Serializable;
6+
import java.util.List;
7+
import lombok.Data;
8+
9+
@Data
10+
@JsonInclude(JsonInclude.Include.NON_NULL)
11+
public class SyncWorkOrderParam implements Serializable {
12+
private static final long serialVersionUID = -7336088606071452113L;
13+
14+
@JsonProperty("complaint_id")
15+
private String complaintId;
16+
17+
@JsonProperty("work_order_info")
18+
private WorkOrderInfo workOrderInfo;
19+
20+
@Data
21+
@JsonInclude(JsonInclude.Include.NON_NULL)
22+
public static class WorkOrderInfo implements Serializable {
23+
private static final long serialVersionUID = 8573016851280130766L;
24+
25+
@JsonProperty("version")
26+
private Integer version;
27+
28+
@JsonProperty("items")
29+
private List<WorkOrderItem> items;
30+
31+
@JsonProperty("work_order_id")
32+
private String workOrderId;
33+
}
34+
35+
@Data
36+
@JsonInclude(JsonInclude.Include.NON_NULL)
37+
public static class WorkOrderItem implements Serializable {
38+
private static final long serialVersionUID = 6925580701152256736L;
39+
40+
@JsonProperty("status")
41+
private Integer status;
42+
43+
@JsonProperty("desc")
44+
private String desc;
45+
46+
@JsonProperty("update_time")
47+
private Long updateTime;
48+
49+
@JsonProperty("result_type")
50+
private Integer resultType;
51+
52+
@JsonProperty("refund_amount")
53+
private Integer refundAmount;
54+
55+
@JsonProperty("media_list")
56+
private List<WorkOrderMedia> mediaList;
57+
}
58+
59+
@Data
60+
@JsonInclude(JsonInclude.Include.NON_NULL)
61+
public static class WorkOrderMedia implements Serializable {
62+
private static final long serialVersionUID = 2258990333977395631L;
63+
64+
@JsonProperty("type")
65+
private Integer type;
66+
67+
@JsonProperty("picture")
68+
private WorkOrderPicture picture;
69+
}
70+
71+
@Data
72+
@JsonInclude(JsonInclude.Include.NON_NULL)
73+
public static class WorkOrderPicture implements Serializable {
74+
private static final long serialVersionUID = -3339842364541603289L;
75+
76+
@JsonProperty("tmp_media_id")
77+
private String tmpMediaId;
78+
}
79+
}

0 commit comments

Comments
 (0)