All Downloads are FREE. Search and download functionalities are using the official Maven repository.

me.chanjar.weixin.channel.api.WxChannelOrderService Maven / Gradle / Ivy

package me.chanjar.weixin.channel.api;

import java.util.List;
import me.chanjar.weixin.channel.bean.base.AddressInfo;
import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse;
import me.chanjar.weixin.channel.bean.delivery.DeliveryCompanyResponse;
import me.chanjar.weixin.channel.bean.delivery.DeliveryInfo;
import me.chanjar.weixin.channel.bean.order.ChangeOrderInfo;
import me.chanjar.weixin.channel.bean.order.DeliveryUpdateParam;
import me.chanjar.weixin.channel.bean.order.OrderInfoResponse;
import me.chanjar.weixin.channel.bean.order.OrderListParam;
import me.chanjar.weixin.channel.bean.order.OrderListResponse;
import me.chanjar.weixin.channel.bean.order.OrderSearchParam;
import me.chanjar.weixin.common.error.WxErrorException;

/**
 * 视频号小店 订单服务接口
 *
 * @author Zeyes
 * @link 订单接口文档
 */
public interface WxChannelOrderService {

  /**
   * 获取订单
   *
   * @param orderId 订单id
   * @return 订单详情
   *
   * @throws WxErrorException 异常
   */
  OrderInfoResponse getOrder(String orderId) throws WxErrorException;

  /**
   * 获取订单列表
   *
   * @param param 搜索条件
   * @return 订单列表
   *
   * @throws WxErrorException 异常
   */
  OrderListResponse getOrders(OrderListParam param) throws WxErrorException;

  /**
   * 订单搜索
   *
   * @param param 搜索条件
   * @return 订单列表
   *
   * @throws WxErrorException 异常
   */
  OrderListResponse searchOrder(OrderSearchParam param) throws WxErrorException;

  /**
   * 更改订单价格
   *
   * @param orderId          订单id
   * @param expressFee       运费价格(以分为单位)(不填不改)
   * @param changeOrderInfos 改价列表
   * @return 结果
   *
   * @throws WxErrorException 异常
   */
  WxChannelBaseResponse updatePrice(String orderId, Integer expressFee, List changeOrderInfos)
    throws WxErrorException;

  /**
   * 更改订单备注
   *
   * @param orderId       订单id
   * @param merchantNotes 备注
   * @return BaseResponse
   *
   * @throws WxErrorException 异常
   */
  WxChannelBaseResponse updateRemark(String orderId, String merchantNotes) throws WxErrorException;

  /**
   * 更新订单地址
   *
   * @param orderId     订单id
   * @param userAddress 用户地址
   * @return BaseResponse
   *
   * @throws WxErrorException 异常
   */
  WxChannelBaseResponse updateAddress(String orderId, AddressInfo userAddress) throws WxErrorException;

  /**
   * 修改物流信息 
发货完成的订单可以修改,最多修改1次 拆包发货的订单暂不允许修改物流 虚拟商品订单暂不允许修改物流 * * @param param 物流信息 * @return BaseResponse * * @throws WxErrorException 异常 */ WxChannelBaseResponse updateDelivery(DeliveryUpdateParam param) throws WxErrorException; /** * 同意用户修改收货地址请求 * * @param orderId 订单id * @return BaseResponse * * @throws WxErrorException 异常 */ WxChannelBaseResponse acceptAddressModify(String orderId) throws WxErrorException; /** * 拒接用户修改收货地址请求 * * @param orderId 订单id * @return BaseResponse * * @throws WxErrorException 异常 */ WxChannelBaseResponse rejectAddressModify(String orderId) throws WxErrorException; /** * 关闭订单 (需要订单状态为未付款状态) * * @param orderId 订单id * @return BaseResponse */ WxChannelBaseResponse closeOrder(String orderId); /** * 获取快递公司列表 * * @return 快递公司列表 * * @throws WxErrorException 异常 */ DeliveryCompanyResponse listDeliveryCompany() throws WxErrorException; /** * 订单发货 * * @param orderId 订单id * @param deliveryList 物流信息 * @return BaseResponse * * @throws WxErrorException 异常 */ WxChannelBaseResponse deliveryOrder(String orderId, List deliveryList) throws WxErrorException; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy