C# Class Senparc.Weixin.MP.AdvancedAPIs.MerChant.OrderApi

微小店订单接口
显示文件 Open project: JeffreySu/WeiXinMPSDK

Public Methods

Method Description
CloseOrder ( string accessToken, string orderId ) : WxJsonResult

关闭订单

CloseOrderAsync ( string accessToken, string orderId ) : Task

【异步方法】关闭订单

GetByFilterOrder ( string accessToken, int status, System.DateTime beginTime, System.DateTime endTime ) : GetByFilterResult

根据订单状态/创建时间获取订单详情

GetByFilterOrderAsync ( string accessToken, int status, System.DateTime beginTime, System.DateTime endTime ) : Task

【异步方法】根据订单状态/创建时间获取订单详情

GetByIdOrder ( string accessToken, string orderId ) : GetByIdOrderResult

根据订单ID获取订单详情

GetByIdOrderAsync ( string accessToken, string orderId ) : Task

【异步方法】根据订单ID获取订单详情

SetdeliveryOrder ( string accessToken, string orderId, string deliveryCompany, string deliveryTrackNo, int needDelivery = 1, int isOthers ) : WxJsonResult

设置订单发货信息

SetdeliveryOrderAsync ( string accessToken, string orderId, string deliveryCompany, string deliveryTrackNo, int needDelivery = 1, int isOthers ) : Task

【异步方法】设置订单发货信息

Method Details

CloseOrder() public static method

关闭订单
public static CloseOrder ( string accessToken, string orderId ) : WxJsonResult
accessToken string
orderId string 订单ID
return Senparc.Weixin.Entities.WxJsonResult

CloseOrderAsync() public static method

【异步方法】关闭订单
public static CloseOrderAsync ( string accessToken, string orderId ) : Task
accessToken string
orderId string 订单ID
return Task

GetByFilterOrder() public static method

根据订单状态/创建时间获取订单详情
public static GetByFilterOrder ( string accessToken, int status, System.DateTime beginTime, System.DateTime endTime ) : GetByFilterResult
accessToken string
status int 订单状态(不带该字段-全部状态, 2-待发货, 3-已发货, 5-已完成, 8-维权中, )
beginTime System.DateTime 订单创建时间起始时间(不带该字段则不按照时间做筛选)
endTime System.DateTime 订单创建时间终止时间(不带该字段则不按照时间做筛选)
return GetByFilterResult

GetByFilterOrderAsync() public static method

【异步方法】根据订单状态/创建时间获取订单详情
public static GetByFilterOrderAsync ( string accessToken, int status, System.DateTime beginTime, System.DateTime endTime ) : Task
accessToken string
status int 订单状态(不带该字段-全部状态, 2-待发货, 3-已发货, 5-已完成, 8-维权中, )
beginTime System.DateTime 订单创建时间起始时间(不带该字段则不按照时间做筛选)
endTime System.DateTime 订单创建时间终止时间(不带该字段则不按照时间做筛选)
return Task

GetByIdOrder() public static method

根据订单ID获取订单详情
public static GetByIdOrder ( string accessToken, string orderId ) : GetByIdOrderResult
accessToken string
orderId string 订单Id
return GetByIdOrderResult

GetByIdOrderAsync() public static method

【异步方法】根据订单ID获取订单详情
public static GetByIdOrderAsync ( string accessToken, string orderId ) : Task
accessToken string
orderId string 订单Id
return Task

SetdeliveryOrder() public static method

设置订单发货信息
public static SetdeliveryOrder ( string accessToken, string orderId, string deliveryCompany, string deliveryTrackNo, int needDelivery = 1, int isOthers ) : WxJsonResult
accessToken string
orderId string 订单ID
deliveryCompany string 物流公司ID(参考《物流公司ID》;当need_delivery为0时,可不填本字段;当need_delivery为1时,该字段不能为空;当need_delivery为1且is_others为1时,本字段填写其它物流公司名称)
deliveryTrackNo string 运单ID(当need_delivery为0时,可不填本字段;当need_delivery为1时,该字段不能为空;)
needDelivery int 商品是否需要物流(0-不需要,1-需要,无该字段默认为需要物流)
isOthers int 是否为其它物流公司(0-否,1-是,无该字段默认为不是其它物流公司)
return Senparc.Weixin.Entities.WxJsonResult

SetdeliveryOrderAsync() public static method

【异步方法】设置订单发货信息
public static SetdeliveryOrderAsync ( string accessToken, string orderId, string deliveryCompany, string deliveryTrackNo, int needDelivery = 1, int isOthers ) : Task
accessToken string
orderId string 订单ID
deliveryCompany string 物流公司ID(参考《物流公司ID》;当need_delivery为0时,可不填本字段;当need_delivery为1时,该字段不能为空;当need_delivery为1且is_others为1时,本字段填写其它物流公司名称)
deliveryTrackNo string 运单ID(当need_delivery为0时,可不填本字段;当need_delivery为1时,该字段不能为空;)
needDelivery int 商品是否需要物流(0-不需要,1-需要,无该字段默认为需要物流)
isOthers int 是否为其它物流公司(0-否,1-是,无该字段默认为不是其它物流公司)
return Task