You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1022 B
C#

using Myshipping.Application.Entity;
using System.Threading.Tasks;
namespace Myshipping.Application
{
/// <summary>
/// 快递对接接口
/// </summary>
public interface IDeliverySend
{
/// <summary>
/// 快递下单
/// </summary>
/// <param name="expressDeliveryOrder">快递订单记录</param>
/// <returns>快递单号</returns>
Task<string> CreateOrder(ExpressDeliveryOrder expressDeliveryOrder);
/// <summary>
/// 快递消单
/// </summary>
/// <param name="orderId">快递订单记录主键</param>
/// <returns>是否消单成功</returns>
Task<bool> CancelOrder(string orderId);
/// <summary>
/// 下载快递面单
/// </summary>
/// <param name="waybillNo">快递单号</param>
/// <param name="savePath">快递面单保存地址</param>
/// <returns></returns>
Task DownloadWaybillFile(string waybillNo,string savePath);
}
}