Package com.foxinmy.weixin4j.pay.api
Class CustomsApi
- java.lang.Object
-
- com.foxinmy.weixin4j.api.BaseApi
-
- com.foxinmy.weixin4j.pay.api.MchApi
-
- com.foxinmy.weixin4j.pay.api.CustomsApi
-
public class CustomsApi extends MchApi
报关接口- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
-
-
Field Summary
-
Fields inherited from class com.foxinmy.weixin4j.pay.api.MchApi
weixinAccount, weixinSignature
-
Fields inherited from class com.foxinmy.weixin4j.api.BaseApi
weixinExecutor
-
-
Constructor Summary
Constructors Constructor Description CustomsApi(WeixinPayAccount weixinAccount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomsOrderResult
declareCustomsOrder(CustomsOrder customsOrder)
订单附加信息提交CustomsOrderRecord
queryCustomsOrder(IdQuery idQuery, CustomsCity customsCity)
订单附加信息查询-
Methods inherited from class com.foxinmy.weixin4j.pay.api.MchApi
createBaseRequestMap, declareMerchant, getWeixinSignature, getWeixinSSLExecutor, weixinBundle
-
Methods inherited from class com.foxinmy.weixin4j.api.BaseApi
getRequestUri
-
-
-
-
Constructor Detail
-
CustomsApi
public CustomsApi(WeixinPayAccount weixinAccount)
-
-
Method Detail
-
declareCustomsOrder
public CustomsOrderResult declareCustomsOrder(CustomsOrder customsOrder) throws WeixinException
订单附加信息提交- Parameters:
customsOrder
- 附加订单信息- Returns:
- 报关结果
- Throws:
WeixinException
- See Also:
CustomsOrder
,CustomsOrderResult
, 附加订单信息提交接口
-
queryCustomsOrder
public CustomsOrderRecord queryCustomsOrder(IdQuery idQuery, CustomsCity customsCity) throws WeixinException
订单附加信息查询- Parameters:
idQuery
- out_trade_no,transaction_id,sub_order_no,sub_order_id四选一customsCity
- 海关- Returns:
- 报关记录
- Throws:
WeixinException
- See Also:
CustomsOrderRecord
, 附加订单信息查询接口
-
-