🆕 #2758 【小程序】增加微信小商店标准版相关接口

This commit is contained in:
Boris
2022-07-26 21:45:32 +08:00
committed by GitHub
parent b550806956
commit 1747190674
44 changed files with 1965 additions and 60 deletions

View File

@@ -0,0 +1,95 @@
package cn.binarywang.wx.miniapp.bean.product;
import com.google.gson.annotations.SerializedName;
import java.util.List;
import lombok.Data;
/**
* @author leiin
* @date 2022/7/11 20:33
*/
@Data
public class WxMiniAfterSaleOrder {
@SerializedName("order_id")
private Long orderId;
@SerializedName("status")
private String status;
@SerializedName("openid")
private String openid;
@SerializedName("original_order_id")
private Long originalOrderId;
@SerializedName("product_info")
private AfterSaleProductInfo productInfo;
private AfterSaleDetails details;
@SerializedName("refund_info")
private RefundInfo refundInfo;
@SerializedName("return_info")
private ReturnInfo returnInfo;
@SerializedName("merchant_upload_info")
private MerchantUploadInfo merchantUploadInfo;
@SerializedName("create_time")
private Long createTime;
@SerializedName("update_time")
private Long updateTime;
@SerializedName("reason")
private String reason;
@SerializedName("refund_resp")
private RefundResp refundResp;
private String type;
@Data
public static class AfterSaleProductInfo {
@SerializedName("product_id")
private Long productId;
@SerializedName("sku_id")
private Long skuId;
@SerializedName("count")
private Integer count;
}
@Data
public static class AfterSaleDetails {
@SerializedName("num")
private Integer num;
@SerializedName("desc")
private String desc;
@SerializedName("cancel_time")
private Long cancelTime;
@SerializedName("prove_imgs")
private List<String> proveImgs;
@SerializedName("tel_number")
private String telNumber;
}
@Data
public static class RefundInfo {
private Long amount;
}
@Data
public static class ReturnInfo {
@SerializedName("delivery_id")
private String deliveryId;
@SerializedName("waybill_id")
private String waybillId;
@SerializedName("delivery_name")
private String deliveryName;
}
@Data
public static class MerchantUploadInfo {
@SerializedName("reject_reason")
private String rejectReason;
@SerializedName("refund_certificates")
private List<String> refundCertificates;
}
@Data
public static class RefundResp {
private String code;
private Integer ret;
private String message;
}
}

View File

@@ -0,0 +1,16 @@
package cn.binarywang.wx.miniapp.bean.product;
import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopBaseResponse;
import com.google.gson.annotations.SerializedName;
import java.util.List;
import lombok.Data;
/**
* @author leiin
* @date 2022/7/11 20:59
*/
@Data
public class WxMiniBatchGetAfterSaleOrderResponse extends WxMaShopBaseResponse {
@SerializedName("after_sale_order_list")
private List<WxMiniAfterSaleOrder> afterSaleOrderList;
}

View File

@@ -0,0 +1,15 @@
package cn.binarywang.wx.miniapp.bean.product;
import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopBaseResponse;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
/**
* @author leiin
* @date 2022/7/11 20:58
*/
@Data
public class WxMiniGetAfterSaleOrderResponse extends WxMaShopBaseResponse {
@SerializedName("after_sale_order")
private WxMiniAfterSaleOrder afterSaleOrder;
}

View File

@@ -0,0 +1,24 @@
package cn.binarywang.wx.miniapp.bean.product;
import com.google.gson.annotations.SerializedName;
import java.util.List;
import lombok.Data;
/**
* @author leiin
* @date 2022/6/20 7:16 下午
*/
@Data
public class WxMiniOrderAfterSaleDetail {
@SerializedName("aftersale_order_list")
private List<AfterSaleOrder> aftersaleOrderList;
@SerializedName("on_aftersale_order_cnt")
private Integer onAftersaleOrderCnt;
@Data
public static class AfterSaleOrder {
@SerializedName("aftersale_order_id")
private Long aftersaleOrderId;
private Integer status;
}
}

View File

@@ -0,0 +1,41 @@
package cn.binarywang.wx.miniapp.bean.product;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
import java.util.List;
import lombok.Data;
/**
* @author leiin
* @date 2022/7/14 19:05
*/
@Data
public class WxMiniOrderDeliveryRequest {
@SerializedName("order_id")
private Long orderId;
@SerializedName("delivery_list")
private List<DeliveryListBean> deliveryList;
@Data
public static class DeliveryListBean implements Serializable {
@SerializedName("delivery_id")
private String deliveryId;
@SerializedName("is_all_product")
private Boolean isAllProduct;
@SerializedName("waybill_id")
private String waybillId;
@SerializedName("product_infos")
private List<ProductInfosBean> productInfoList;
}
@Data
public static class ProductInfosBean implements Serializable {
@SerializedName("product_id")
private String productId;
@SerializedName("sku_id")
private String skuId;
@SerializedName("product_cnt")
private Integer productCnt;
}
}

View File

@@ -16,7 +16,7 @@ public class WxMinishopAddressInfo {
@SerializedName("province_name")
private String provinceName;
@SerializedName("city_name")
private String cityame;
private String cityName;
@SerializedName("county_name")
private String countyName;
@SerializedName("detail_info")

View File

@@ -17,7 +17,7 @@ public class WxMinishopDeliveryInfo {
@SerializedName("delivery_product_info")
private List<DeliveryProductInfo> deliveryProductInfo;
@SerializedName("ship_done_time")
private Long ship_done_time;
private Long shipDoneTime;
@SerializedName("insurance_info")
private InsuranceInfo insuranceInfo;
@SerializedName("deliver_type")
@@ -53,10 +53,10 @@ public class WxMinishopDeliveryInfo {
@Data
public static class ProductInfo {
@SerializedName("product_id")
private Long product_id;
private Long productId;
@SerializedName("sku_id")
private Long sku_id;
private Long skuId;
@SerializedName("product_cnt")
private Long product_cnt;
private Long productCnt;
}
}

View File

@@ -0,0 +1,35 @@
package cn.binarywang.wx.miniapp.bean.product;
import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopBaseResponse;
import com.google.gson.annotations.SerializedName;
import java.util.List;
import lombok.Data;
/**
* @author leiin
* @date 2022/7/8 3:46 下午
*/
@Data
public class WxMinishopGetBrandResponse extends WxMaShopBaseResponse {
private List<MinishopBrandItem> brands;
@Data
public static class MinishopBrandItem {
@SerializedName("first_cat_id")
private Integer firstCatId;
@SerializedName("second_cat_id")
private Integer secondCatId;
@SerializedName("third_cat_id")
private Integer thirdCatId;
@SerializedName("brand_info")
private MinishopBrandInfo brandInfo;
}
@Data
public static class MinishopBrandInfo {
@SerializedName("brand_id")
private Long brandId;
@SerializedName("brand_name")
private String brandName;
}
}

View File

@@ -0,0 +1,30 @@
package cn.binarywang.wx.miniapp.bean.product;
import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopBaseResponse;
import com.google.gson.annotations.SerializedName;
import java.util.List;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* @author leiin
* @date 2022/7/8 3:39 下午
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class WxMinishopGetCategoryResponse extends WxMaShopBaseResponse {
@SerializedName("cat_list")
private List<MinishopCatItem> catList;
@Data
public static class MinishopCatItem {
@SerializedName("cat_id")
private Integer catId;
@SerializedName("f_cat_id")
private Integer fCatId;
private String name;
}
}

View File

@@ -0,0 +1,26 @@
package cn.binarywang.wx.miniapp.bean.product;
import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopBaseResponse;
import com.google.gson.annotations.SerializedName;
import java.util.List;
import lombok.Data;
/**
* @author leiin
* @date 2022/7/8 3:46 下午
*/
@Data
public class WxMinishopGetFrightTemplateResponse extends WxMaShopBaseResponse {
@SerializedName("template_list")
private List<MinishopFeightTemplateItem> templateList;
@Data
public static class MinishopFeightTemplateItem {
@SerializedName("template_id")
private Long templateId;
private String name;
@SerializedName("valuation_type")
private Integer valuationType;
}
}

View File

@@ -0,0 +1,19 @@
package cn.binarywang.wx.miniapp.bean.product;
import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopBaseResponse;
import lombok.Data;
/**
* 获取订单详情 回包结构
*
* @author leiin
* @date 2022/6/20 7:09 下午
*/
@Data
public class WxMinishopOrderDetailResponse extends WxMaShopBaseResponse {
/**
* 订单结构
*/
private WxMinishopOrderResult order;
}

View File

@@ -1,6 +1,5 @@
package cn.binarywang.wx.miniapp.bean.product;
import cn.binarywang.wx.miniapp.bean.shop.WxMaShopOrderDetail;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
import lombok.Data;
@@ -37,7 +36,7 @@ public class WxMinishopOrderResult implements Serializable {
private WxMinishopOrderDetail orderDetail;
@SerializedName("aftersale_detail")
private WxMiniAfterSaleDetail afterSaleDetail;
private WxMiniOrderAfterSaleDetail afterSaleDetail;
/**
* 商家小程序该订单的用户id

View File

@@ -18,11 +18,17 @@ public class WxMinishopProductInfo implements Serializable {
@SerializedName("product_id")
private Integer productId;
@SerializedName("out_product_id")
private String outProductId;
/**
* 交易组件平台内部skuID可填0如果这个product_id下没有sku
*/
@SerializedName("sku_id")
private Integer skuId;
@SerializedName("out_sku_id")
private String outSkuId;
/**
* 购买的数量
* <pre>

View File

@@ -18,6 +18,9 @@ public class WxMinishopSku implements Serializable {
@SerializedName("out_sku_id")
private String outSkuId;
@SerializedName("sku_id")
private Long skuId;
@SerializedName("thumb_img")
private String thumbImg;

View File

@@ -0,0 +1,14 @@
package cn.binarywang.wx.miniapp.bean.product;
import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopBaseResponse;
import java.util.List;
import lombok.Data;
/**
* @author leiin
* @date 2022/7/13 20:00
*/
@Data
public class WxMinishopSkuListResponse extends WxMaShopBaseResponse {
private List<WxMinishopSku> skus;
}

View File

@@ -0,0 +1,319 @@
package cn.binarywang.wx.miniapp.bean.shop;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @author leiin
* @date 2022/7/1 2:57 下午
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WxMaShopCouponInfo implements Serializable {
private static final long serialVersionUID = 5807154725645642700L;
/**
* 是否必填:是
* 说明商家侧优惠券ID
*/
@SerializedName("out_coupon_id")
private String outCouponId;
/**
* 是否必填:是
* 说明:优惠券类型
*/
@SerializedName("type")
private Integer type;
/**
* 是否必填:是
* 说明:优惠券推广类型
*/
@SerializedName("promote_type")
private Integer promoteType;
@SerializedName("coupon_info")
private CouponInfo couponInfo;
// 返回参数
/**
* 优惠券状态
*/
@SerializedName("status")
private Integer status;
/**
* 创建时间
*/
@SerializedName("create_time")
private Long createTime;
/**
* 更新时间
*/
@SerializedName("update_time")
private Long updateTime;
@SerializedName("coupon_stock")
private CouponStock couponStock;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public static class CouponInfo implements Serializable {
private static final long serialVersionUID = -7913225774910831745L;
/**
* 是否必填:是
* 说明:优惠券名
*/
private String name;
@SerializedName("promote_info")
private PromoteInfo promoteInfo;
@SerializedName("discount_info")
private DiscountInfo discountInfo;
@SerializedName("receive_info")
private ReceiveInfo receiveInfo;
@SerializedName("valid_info")
private ValidInfo validInfo;
}
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public static class PromoteInfo {
@SerializedName("promote_type")
private Integer promoteType;
private PromoteFinder finder;
@Data
public static class PromoteFinder {
private String nickname;
}
}
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public static class DiscountInfo {
/**
* 是否必填: 否
* 说明:折扣数,比如5.1折,则填5100,折扣券必需
*/
@SerializedName("discount_num")
private Integer discountNum;
/**
* 是否必填: 否
* 说明:减金额,单位为分,直减券、满减券必需
*/
@SerializedName("discount_fee")
private Long discountFee;
@SerializedName("discount_condition")
private DiscountCondition discountCondition;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public static class DiscountCondition {
/**
* 是否必填: 否
* 说明:优惠条件所需的商品数
*/
@SerializedName("product_cnt")
private Integer productCnt;
/**
* 是否必填: 否
* 说明:优惠条件所需满足的金额
*/
@SerializedName("product_price")
private Long productPrice;
/**
* 是否必填: 否
* 说明指定商品商家侧ID商品券必需最多128个
*/
@SerializedName("out_product_ids")
private List<String> outProductIds;
@SerializedName("tradein_info")
private TradeinInfo tradeinInfo;
@SerializedName("buyget_info")
private BuygetInfo buyget_info;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public static class TradeinInfo {
/**
* 是否必填:否
* 说明换购商品商家侧ID换购券必需
*/
@SerializedName("out_product_id")
private String outProductId;
/**
* 是否必填:否
* 说明:需要支付的金额,单位分,换购券必需
*/
@SerializedName("price")
private Long price;
}
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public static class BuygetInfo {
/**
* 是否必填:否
* 说明购买商品商家侧ID买赠券必需
*/
@SerializedName("buy_out_product_id")
private String buyOutProductId;
/**
* 是否必填:否
* 说明:购买商品数,买赠券必需
*/
@SerializedName("buy_product_cnt")
private Integer buyProductCnt;
/**
* 是否必填:否
* 说明赠送商品商家侧ID买赠券必需
*/
@SerializedName("get_out_product_id")
private String getOutProductId;
/**
* 是否必填:否
* 说明:赠送商品数,买赠券必需
*/
@SerializedName("get_product_cnt")
private Integer getProductCnt;
}
}
}
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public static class ReceiveInfo {
/**
* 是否必填:是
* 说明:领取开始时间 (秒级时间戳)
*/
@SerializedName("start_time")
private Long startTime;
/**
* 是否必填:是
* 说明:领取结束时间 (秒级时间戳)
*/
@SerializedName("end_time")
private Long endTime;
/**
* 是否必填:是
* 说明:个人限领张数,只做展示,领券回调时接入方判断有无超领。
*/
@SerializedName("limit_num_one_person")
private Integer limitNumOnePerson;
/**
* 是否必填:是
* 说明:总发放量,即初始库存数,只做展示,领券回调时接入方判断有无超领。
*/
@SerializedName("total_num")
private Integer totalNum;
}
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public static class ValidInfo {
/**
* 是否必填:是
* 说明:有效期类型,1:商品指定时间区间,2:生效天数,3:生效秒数
*/
@SerializedName("valid_type")
private Integer validType;
/**
* 是否必填:否
* 说明生效天数有效期类型为2时必需
*/
@SerializedName("valid_day_num")
private Integer validDayNum;
/**
* 是否必填:否
* 说明生效秒数有效期类型为3时必需
*/
@SerializedName("valid_second")
private Long validSecond;
/**
* 是否必填:否
* 说明生效开始时间有效期类型为1时必需
*/
@SerializedName("start_time")
private Long startTime;
/**
* 是否必填:否
* 说明生效结束时间有效期类型为1时必需
*/
@SerializedName("end_time")
private Long endTime;
}
@Data
public static class CouponStock {
/**
* 商家侧优惠券ID
*/
@SerializedName("out_coupon_id")
private String outCouponId;
/**
* 创建时间
*/
@SerializedName("create_time")
private Long createTime;
/**
* 更新时间
*/
@SerializedName("update_time")
private Long updateTime;
@SerializedName("stock_info")
private StockInfo stockInfo;
@Data
public static class StockInfo {
/**
* 优惠券库存剩余量
*/
@SerializedName("issued_num")
private Integer issuedNum;
/**
* 优惠卷发放量
*/
@SerializedName("receive_num")
private Integer receiveNum;
}
}
}

View File

@@ -84,4 +84,53 @@ public class WxMaShopOrderInfo implements Serializable {
@SerializedName("address_info")
private WxMaShopAddressInfo addressInfo;
/**
* 订单类型0普通单1二级商户单
* <pre>
* 是否必填:是
* </pre>
*/
@SerializedName("fund_type")
private Integer fundType; // 订单类型0普通单1二级商户单
/**
* unix秒级时间戳订单超时时间取值[15min, 1d]
* <pre>
* 是否必填:是
* </pre>
*/
@SerializedName("expire_time")
private Long expireTime; // unix秒级时间戳订单超时时间取值[15min, 1d]
/**
* 取值范围,[73 * 365],单位:天
* <pre>
* 是否必填:选填
* </pre>
*/
@SerializedName("aftersale_duration")
private Integer aftersaleDuration; // 取值范围,[73 * 365],单位:天
/**
* 会影响主播归因、分享员归因等,从下单前置检查获取
* <pre>
* 是否必填:是
* </pre>
*/
@SerializedName("trace_id")
private String traceId; // 会影响主播归因、分享员归因等,从下单前置检查获取
/**
* 默认退货地址,退货售后超时时,会让用户将货物寄往此地址
* <pre>
* 是否必填:选填
* </pre>œ
*/
@SerializedName("default_receiving_address")
private WxMaShopAddressInfo defaultReceivingAddress; // 默认退货地址,退货售后超时时,会让用户将货物寄往此地址
/**
* 生成的order_id以字符串形式返回
* <pre>
* 是否必填:选填
* </pre>
*/
@SerializedName("stringify_64bits_number")
private Boolean stringify64bitsNumber; // 生成的order_id以字符串形式返回
}

View File

@@ -0,0 +1,43 @@
package cn.binarywang.wx.miniapp.bean.shop.request;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @author leiin
* @date 2022/6/28 11:39 上午
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WxMaShopAcceptReturnRequest implements Serializable {
@SerializedName("out_aftersale_id")
private String outAftersaleId;
@SerializedName("aftersale_id")
private Long aftersaleId;
@SerializedName("address_info")
private RefundAddressInfo addressInfo;
@Data
public static class RefundAddressInfo {
@SerializedName("receiver_name")
private String receiverName;
@SerializedName("detailed_address")
private String detailedAddress;
@SerializedName("tel_number")
private String telNumber;
@SerializedName("country")
private String country;
@SerializedName("province")
private String province;
@SerializedName("city")
private String city;
@SerializedName("town")
private String town;
}
}

View File

@@ -33,6 +33,8 @@ public class WxMaShopAfterSaleAddRequest implements Serializable {
* product_infos : [{"out_product_id":"234245","out_sku_id":"23424","product_cnt":5}]
*/
@SerializedName("order_id")
private Long orderId;
@SerializedName("out_order_id")
private String outOrderId;
@SerializedName("out_aftersale_id")
@@ -41,8 +43,14 @@ public class WxMaShopAfterSaleAddRequest implements Serializable {
private String openid;
@SerializedName("type")
private Integer type;
@SerializedName("create_time")
private String createTime;
@SerializedName("product_info")
private ProductInfosBean productInfo;
@SerializedName("orderamt")
private Long orderamt;
@SerializedName("refund_reason")
private String refundReason;
@SerializedName("refund_reason_type")
private Integer refundReasonType;
@SerializedName("status")
private Integer status;
@SerializedName("finish_all_aftersale")
@@ -51,8 +59,8 @@ public class WxMaShopAfterSaleAddRequest implements Serializable {
private String path;
@SerializedName("refund")
private Long refund;
@SerializedName("product_infos")
private List<ProductInfosBean> productInfos;
@SerializedName("media_list")
private UploadMediaList mediaList;
@Data
@Builder
@@ -72,4 +80,12 @@ public class WxMaShopAfterSaleAddRequest implements Serializable {
@SerializedName("product_cnt")
private Integer productCnt;
}
@Data
public static class UploadMediaList {
private Integer type;
private String url;
@SerializedName("thumb_url")
private String thumbUrl;
}
}

View File

@@ -0,0 +1,36 @@
package cn.binarywang.wx.miniapp.bean.shop.request;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @author leiin
* @date 2022/6/28 11:39 上午
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WxMaShopAfterSaleListRequest implements Serializable {
@SerializedName("status")
private Integer status; //售后单状态,见 AfterSalesState
@SerializedName("out_order_id")
private String outOrderId; //售后单关联的外部订单号
@SerializedName("order_id")
private Long orderId; //售后单关联的微信侧订单号
@SerializedName("openid")
private String openid; //买家openid
@SerializedName("begin_create_time")
private Long beginCreateTime; //申请时间(单位毫秒)起始
@SerializedName("end_create_time")
private Long endCreateTime; //申请时间(单位毫秒)结束
@SerializedName("offset")
private Long offset; //本次拉取的起始位置从0开始
@SerializedName("limit")
private Integer limit; //本次拉取的大小最大50
}

View File

@@ -1,5 +1,6 @@
package cn.binarywang.wx.miniapp.bean.shop.request;
import cn.binarywang.wx.miniapp.bean.shop.request.WxMaShopAfterSaleAddRequest.UploadMediaList;
import com.google.gson.annotations.SerializedName;
import lombok.AllArgsConstructor;
import lombok.Builder;
@@ -33,6 +34,16 @@ public class WxMaShopAfterSaleUpdateRequest implements Serializable {
private String openid;
@SerializedName("out_aftersale_id")
private String outAftersaleId;
@SerializedName("type")
private Integer type;
@SerializedName("orderamt")
private Long orderamt;
@SerializedName("refund_reason")
private String refundReason;
@SerializedName("refund_reason_type")
private Integer refundReasonType;
@SerializedName("media_list")
private UploadMediaList mediaList;
@SerializedName("status")
private Integer status;
@SerializedName("finish_all_aftersale")

View File

@@ -0,0 +1,31 @@
package cn.binarywang.wx.miniapp.bean.shop.request;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @author leiin
* @date 2022/6/28 11:39 上午
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WxMaShopAfterSaleUploadReturnInfoRequest implements Serializable {
@SerializedName("out_aftersale_id")
private String outAftersaleId;
@SerializedName("aftersale_id")
private Long aftersaleId;
@SerializedName("openid")
private String openid;
@SerializedName("delivery_id")
private String deliveryId;
@SerializedName("waybill_id")
private String waybillId;
@SerializedName("delivery_name")
private String deliveryName;
}

View File

@@ -0,0 +1,28 @@
package cn.binarywang.wx.miniapp.bean.shop.request;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @author leiin
* @date 2022/6/28 11:39 上午
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WxMaShopUploadCerficatesRequest implements Serializable {
@SerializedName("out_aftersale_id")
private String outAftersaleId;
@SerializedName("aftersale_id")
private Long aftersaleId;
@SerializedName("refund_desc")
private String refundDesc;
@SerializedName("certificates")
private List<String> certificates;
}

View File

@@ -0,0 +1,15 @@
package cn.binarywang.wx.miniapp.bean.shop.response;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
import lombok.Data;
/**
* @author leiin
* @date 2022/6/28 11:29 上午
*/
@Data
public class WxMaShopAfterSaleAddResponse extends WxMaShopBaseResponse implements Serializable {
@SerializedName("aftersale_id")
private String aftersaleId;
}

View File

@@ -1,5 +1,6 @@
package cn.binarywang.wx.miniapp.bean.shop.response;
import cn.binarywang.wx.miniapp.bean.shop.request.WxMaShopAfterSaleAddRequest.UploadMediaList;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.EqualsAndHashCode;
@@ -29,24 +30,43 @@ public class WxMaShopAfterSaleGetResponse extends WxMaShopBaseResponse implement
* product_infos : [{"out_product_id":"234245","out_sku_id":"23424","product_cnt":5}]
*/
@SerializedName("out_order_id")
private String outOrderId;
@SerializedName("aftersale_id")
private Long aftersaleId;
@SerializedName("out_aftersale_id")
private String outAftersaleId;
@SerializedName("openid")
private String openid;
@SerializedName("out_order_id")
private String outOrderId;
@SerializedName("order_id")
private Long orderId;
@SerializedName("product_info")
private List<ProductInfosBean> productInfo;
@SerializedName("type")
private Integer type;
@SerializedName("create_time")
private String createTime;
@SerializedName("path")
private String path;
@SerializedName("return_info")
private ReturnInfo returnInfo;
@SerializedName("orderamt")
private Long orderamt;
@SerializedName("refund_reason")
private String refundReason;
@SerializedName("refund_reason_type")
private Integer refundReasonType;
@SerializedName("media_list")
private UploadMediaList mediaList;
@SerializedName("status")
private Integer status;
@SerializedName("refund")
private Long refund;
@SerializedName("product_infos")
private List<ProductInfosBean> productInfos;
@SerializedName("create_time")
private String createTime;
@SerializedName("update_time")
private String updateTime;
@SerializedName("openid")
private String openid;
@SerializedName("refund_pay_detail")
private RefundPayDetail refund_pay_detail;
@SerializedName("return_id")
private String returnId;
@SerializedName("complaint_order_id_list")
private List<Long> complaintOrderIdList;
@Data
public static class ProductInfosBean implements Serializable {
@@ -58,10 +78,32 @@ public class WxMaShopAfterSaleGetResponse extends WxMaShopBaseResponse implement
@SerializedName("out_product_id")
private String outProductId;
@SerializedName("product_id")
private Long productId;
@SerializedName("out_sku_id")
private String outSkuId;
@SerializedName("sku_id")
private Long skuId;
@SerializedName("product_cnt")
private Integer productCnt;
}
@Data
public static class ReturnInfo {
@SerializedName("order_return_time")
private Long orderReturnTime;
@SerializedName("delivery_id")
private String deliveryId;
@SerializedName("waybill_id")
private String waybillId;
@SerializedName("delivery_name")
private String deliveryName;
}
@Data
public static class RefundPayDetail {
@SerializedName("refund_id")
private String refundId;
}
}
}

View File

@@ -0,0 +1,25 @@
package cn.binarywang.wx.miniapp.bean.shop.response;
import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopAfterSaleGetResponse.AftersaleInfosBean;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @author leiin
* @date 2022/6/28 11:39 上午
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WxMaShopAfterSaleListResponse extends WxMaShopBaseResponse implements Serializable {
@SerializedName("has_more")
private Boolean hasMore;
@SerializedName("after_sales_orders")
private List<AftersaleInfosBean> afterSalesOrders;
}

View File

@@ -21,7 +21,7 @@ public class WxMaShopBaseResponse implements Serializable {
* </pre>
*/
@SerializedName("errcode")
private Integer errcode;
private Integer errCode;
/**
* 错误信息
@@ -30,5 +30,5 @@ public class WxMaShopBaseResponse implements Serializable {
* </pre>
*/
@SerializedName("errmsg")
private String errmsg;
private String errMsg;
}

View File

@@ -0,0 +1,23 @@
package cn.binarywang.wx.miniapp.bean.shop.response;
import cn.binarywang.wx.miniapp.bean.shop.WxMaShopCouponInfo;
import com.google.gson.annotations.SerializedName;
import java.util.List;
import lombok.Data;
/**
* @author leiin
* @date 2022/7/1 3:34 下午
*/
@Data
public class WxMaShopCouponListResponse extends WxMaShopBaseResponse {
@SerializedName("total_num")
private Long totalNum;
@SerializedName("result_list")
private List<ResponseCouponResult> resultList;
@Data
public static class ResponseCouponResult {
private WxMaShopCouponInfo coupon;
}
}

View File

@@ -0,0 +1,18 @@
package cn.binarywang.wx.miniapp.bean.shop.response;
import cn.binarywang.wx.miniapp.bean.shop.WxMaShopCouponInfo;
import lombok.Data;
/**
* @author leiin
* @date 2022/7/1 3:34 下午
*/
@Data
public class WxMaShopCouponResponse extends WxMaShopBaseResponse {
private ResponseCouponResult result;
@Data
public static class ResponseCouponResult {
private WxMaShopCouponInfo coupon;
}
}

View File

@@ -0,0 +1,76 @@
package cn.binarywang.wx.miniapp.bean.shop.response;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
import java.util.List;
import lombok.Data;
/**
* @author leiin
* @date 2022/7/1 3:59 下午
*/
@Data
public class WxMaShopUserCouponListResponse extends WxMaShopBaseResponse implements Serializable {
private static final long serialVersionUID = 3264119403757388410L;
@SerializedName("total_num")
private Long totalNum;
@SerializedName("result_list")
private List<UserCouponResultItem> resultList;
@Data
public static class UserCouponResultItem {
/**
* 商家侧用户优惠券ID
*/
@SerializedName("out_user_coupon_id")
private String outUserCouponId;
/**
* openid
*/
@SerializedName("openid")
private String openid;
/**
* 商家侧优惠券ID
*/
@SerializedName("out_coupon_id")
private String outCouponId;
/**
* 用户优惠券状态
*/
@SerializedName("status")
private Integer status;
/**
* 用户优惠券创建时间
*/
@SerializedName("create_time")
private Long createTime;
/**
* 用户优惠券更新时间
*/
@SerializedName("update_time")
private Long updateTime;
/**
* 用户优惠券有效开始时间
*/
@SerializedName("start_time")
private Long startTime;
/**
* 用户优惠券有效结束时间
*/
@SerializedName("end_time")
private Long endTime;
@SerializedName("ext_info")
private UserCouponExtInfo extInfo;
@Data
public static class UserCouponExtInfo {
@SerializedName("use_time")
private Long useTime;
}
}
}