|
@@ -0,0 +1,188 @@
|
|
|
|
|
+package com.fs.jhmApi.model.response;
|
|
|
|
|
+
|
|
|
|
|
+import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
|
|
+import lombok.Data;
|
|
|
|
|
+import java.util.List;
|
|
|
|
|
+
|
|
|
|
|
+/**
|
|
|
|
|
+ * 订单详情(对应推送示例中的订单对象)
|
|
|
|
|
+ * 字段与推送数据中的订单主体一致,但无 app_key 和 action
|
|
|
|
|
+ */
|
|
|
|
|
+@Data
|
|
|
|
|
+public class JHMOrderDetail {
|
|
|
|
|
+
|
|
|
|
|
+ @JsonProperty("union_id")
|
|
|
|
|
+ private String unionId;
|
|
|
|
|
+
|
|
|
|
|
+ @JsonProperty("order_num")
|
|
|
|
|
+ private String orderNum;
|
|
|
|
|
+
|
|
|
|
|
+ /** 订单主状态:-1取消,1待支付,2待发货,3待收货,4已完成 */
|
|
|
|
|
+ private Integer status;
|
|
|
|
|
+
|
|
|
|
|
+ /** 售后状态:1待处理,2待退货,3待收货,6退款完成,7关闭,8退款中,9极速退款,12失败,13用户取消 */
|
|
|
|
|
+ @JsonProperty("after_status")
|
|
|
|
|
+ private Integer afterStatus;
|
|
|
|
|
+
|
|
|
|
|
+ @JsonProperty("after_status_remark")
|
|
|
|
|
+ private String afterStatusRemark;
|
|
|
|
|
+
|
|
|
|
|
+ @JsonProperty("cancel_type")
|
|
|
|
|
+ private Integer cancelType;
|
|
|
|
|
+
|
|
|
|
|
+ @JsonProperty("total_money")
|
|
|
|
|
+ private Integer totalMoney;
|
|
|
|
|
+
|
|
|
|
|
+ private Integer money;
|
|
|
|
|
+ private Integer discount;
|
|
|
|
|
+
|
|
|
|
|
+ @JsonProperty("freight_money")
|
|
|
|
|
+ private Integer freightMoney;
|
|
|
|
|
+
|
|
|
|
|
+ @JsonProperty("order_source")
|
|
|
|
|
+ private Integer orderSource;
|
|
|
|
|
+
|
|
|
|
|
+ @JsonProperty("pay_mode")
|
|
|
|
|
+ private Integer payMode;
|
|
|
|
|
+
|
|
|
|
|
+ @JsonProperty("pay_sn")
|
|
|
|
|
+ private String paySn;
|
|
|
|
|
+
|
|
|
|
|
+ @JsonProperty("pay_time")
|
|
|
|
|
+ private Long payTime;
|
|
|
|
|
+
|
|
|
|
|
+ @JsonProperty("pay_money")
|
|
|
|
|
+ private Integer payMoney;
|
|
|
|
|
+
|
|
|
|
|
+ @JsonProperty("pay_state_desc")
|
|
|
|
|
+ private String payStateDesc;
|
|
|
|
|
+
|
|
|
|
|
+ @JsonProperty("transaction_id")
|
|
|
|
|
+ private String transactionId;
|
|
|
|
|
+
|
|
|
|
|
+ @JsonProperty("complete_time")
|
|
|
|
|
+ private Long completeTime;
|
|
|
|
|
+
|
|
|
|
|
+ @JsonProperty("receipt_time")
|
|
|
|
|
+ private Long receiptTime;
|
|
|
|
|
+
|
|
|
|
|
+ @JsonProperty("deliver_time")
|
|
|
|
|
+ private Long deliverTime;
|
|
|
|
|
+
|
|
|
|
|
+ @JsonProperty("ad_account_id")
|
|
|
|
|
+ private Long adAccountId;
|
|
|
|
|
+
|
|
|
|
|
+ @JsonProperty("shop_remark")
|
|
|
|
|
+ private String shopRemark;
|
|
|
|
|
+
|
|
|
|
|
+ @JsonProperty("user_remark")
|
|
|
|
|
+ private String userRemark;
|
|
|
|
|
+
|
|
|
|
|
+ @JsonProperty("updated_at")
|
|
|
|
|
+ private Long updatedAt;
|
|
|
|
|
+
|
|
|
|
|
+ @JsonProperty("created_at")
|
|
|
|
|
+ private Long createdAt;
|
|
|
|
|
+
|
|
|
|
|
+ /** 商品信息 */
|
|
|
|
|
+ private Goods goods;
|
|
|
|
|
+
|
|
|
|
|
+ /** 买家/收货信息 */
|
|
|
|
|
+ private Buyer buyer;
|
|
|
|
|
+
|
|
|
|
|
+ /** 售后单列表(可能有多个) */
|
|
|
|
|
+ @JsonProperty("after_sales")
|
|
|
|
|
+ private List<AfterSale> afterSales;
|
|
|
|
|
+
|
|
|
|
|
+ // ---------- 内部类 ----------
|
|
|
|
|
+ @Data
|
|
|
|
|
+ public static class Goods {
|
|
|
|
|
+ @JsonProperty("product_id")
|
|
|
|
|
+ private String productId;
|
|
|
|
|
+ @JsonProperty("product_code")
|
|
|
|
|
+ private String productCode; // 商家商品编码
|
|
|
|
|
+ @JsonProperty("sku_id")
|
|
|
|
|
+ private Integer skuId; // 0表示无规格
|
|
|
|
|
+ @JsonProperty("sku_code")
|
|
|
|
|
+ private String skuCode; // SKU编码
|
|
|
|
|
+ private Integer price;
|
|
|
|
|
+ private Integer num;
|
|
|
|
|
+ private String image;
|
|
|
|
|
+ private String name;
|
|
|
|
|
+ @JsonProperty("sku_name")
|
|
|
|
|
+ private String skuName;
|
|
|
|
|
+ @JsonProperty("created_at")
|
|
|
|
|
+ private Long createdAt;
|
|
|
|
|
+ @JsonProperty("updated_at")
|
|
|
|
|
+ private Long updatedAt;
|
|
|
|
|
+ @JsonProperty("after_num")
|
|
|
|
|
+ private Integer afterNum;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @Data
|
|
|
|
|
+ public static class Buyer {
|
|
|
|
|
+ private String express;
|
|
|
|
|
+ @JsonProperty("express_number")
|
|
|
|
|
+ private String expressNumber;
|
|
|
|
|
+ private String consignee;
|
|
|
|
|
+ @JsonProperty("receive_phone")
|
|
|
|
|
+ private String receivePhone;
|
|
|
|
|
+ private String address;
|
|
|
|
|
+ private String province;
|
|
|
|
|
+ private String city;
|
|
|
|
|
+ private String area;
|
|
|
|
|
+ @JsonProperty("address_detail")
|
|
|
|
|
+ private String addressDetail;
|
|
|
|
|
+ @JsonProperty("area_id")
|
|
|
|
|
+ private Integer areaId;
|
|
|
|
|
+ @JsonProperty("area_ids")
|
|
|
|
|
+ private String areaIds;
|
|
|
|
|
+ @JsonProperty("edit_address_code")
|
|
|
|
|
+ private Integer editAddressCode;
|
|
|
|
|
+ @JsonProperty("is_update")
|
|
|
|
|
+ private Integer isUpdate;
|
|
|
|
|
+ @JsonProperty("express_update_time")
|
|
|
|
|
+ private Long expressUpdateTime;
|
|
|
|
|
+ @JsonProperty("created_at")
|
|
|
|
|
+ private Long createdAt;
|
|
|
|
|
+ @JsonProperty("updated_at")
|
|
|
|
|
+ private Long updatedAt;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @Data
|
|
|
|
|
+ public static class AfterSale {
|
|
|
|
|
+ @JsonProperty("refund_sn")
|
|
|
|
|
+ private String refundSn;
|
|
|
|
|
+ @JsonProperty("after_sale_status")
|
|
|
|
|
+ private Integer afterSaleStatus;
|
|
|
|
|
+ @JsonProperty("after_sale_type")
|
|
|
|
|
+ private Integer afterSaleType;
|
|
|
|
|
+ private String reason;
|
|
|
|
|
+ private Integer number;
|
|
|
|
|
+ private Integer price;
|
|
|
|
|
+ @JsonProperty("refund_money")
|
|
|
|
|
+ private Integer refundMoney;
|
|
|
|
|
+ @JsonProperty("refuse_reason")
|
|
|
|
|
+ private String refuseReason;
|
|
|
|
|
+ @JsonProperty("refuse_fail")
|
|
|
|
|
+ private String refuseFail;
|
|
|
|
|
+ @JsonProperty("apply_at")
|
|
|
|
|
+ private Long applyAt;
|
|
|
|
|
+ @JsonProperty("confirm_at")
|
|
|
|
|
+ private Long confirmAt;
|
|
|
|
|
+ @JsonProperty("audit_at")
|
|
|
|
|
+ private Long auditAt;
|
|
|
|
|
+ @JsonProperty("cancel_at")
|
|
|
|
|
+ private Long cancelAt;
|
|
|
|
|
+ @JsonProperty("updated_at")
|
|
|
|
|
+ private Long updatedAt;
|
|
|
|
|
+ @JsonProperty("success_at")
|
|
|
|
|
+ private Long successAt;
|
|
|
|
|
+ @JsonProperty("refuse_at")
|
|
|
|
|
+ private Long refuseAt;
|
|
|
|
|
+ @JsonProperty("after_sale")
|
|
|
|
|
+ private Integer afterSale;
|
|
|
|
|
+ @JsonProperty("after_status_remark")
|
|
|
|
|
+ private String afterStatusRemark;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|