public class AlipayTradeCustomsApi extends Object
| 构造器和说明 |
|---|
AlipayTradeCustomsApi() |
AlipayTradeCustomsApi(ApiClient apiClient) |
| 限定符和类型 | 方法和说明 |
|---|---|
AlipayTradeCustomsDeclareResponseModel |
declare(AlipayTradeCustomsDeclareModel alipayTradeCustomsDeclareModel)
统一收单报关接口
境外商户的商品进口到国内时需要向海关中心报送支付、物流等信息,由海关审核,如果交易是由支付宝支付的话,需要商户可以调用此报关接口来请求支付宝将其指定交易报送支付单给海关。
|
AlipayTradeCustomsDeclareResponseModel |
declare(AlipayTradeCustomsDeclareModel alipayTradeCustomsDeclareModel,
CustomizedParams customizedParams) |
okhttp3.Call |
declareAsync(AlipayTradeCustomsDeclareModel alipayTradeCustomsDeclareModel,
ApiCallback<AlipayTradeCustomsDeclareResponseModel> _callback)
统一收单报关接口 (asynchronously)
境外商户的商品进口到国内时需要向海关中心报送支付、物流等信息,由海关审核,如果交易是由支付宝支付的话,需要商户可以调用此报关接口来请求支付宝将其指定交易报送支付单给海关。
|
okhttp3.Call |
declareAsync(AlipayTradeCustomsDeclareModel alipayTradeCustomsDeclareModel,
ApiCallback<AlipayTradeCustomsDeclareResponseModel> _callback,
CustomizedParams customizedParams) |
okhttp3.Call |
declareCall(AlipayTradeCustomsDeclareModel alipayTradeCustomsDeclareModel,
ApiCallback _callback,
CustomizedParams customizedParams)
Build call for declare
|
ApiResponse<AlipayTradeCustomsDeclareResponseModel> |
declareWithHttpInfo(AlipayTradeCustomsDeclareModel alipayTradeCustomsDeclareModel,
CustomizedParams customizedParams)
统一收单报关接口
境外商户的商品进口到国内时需要向海关中心报送支付、物流等信息,由海关审核,如果交易是由支付宝支付的话,需要商户可以调用此报关接口来请求支付宝将其指定交易报送支付单给海关。
|
ApiClient |
getApiClient() |
String |
getCustomBaseUrl() |
int |
getHostIndex() |
AlipayTradeCustomsQueryResponseModel |
query(String outRequestNos)
查询报关详细信息
境外商户的商品进口到国内时需要向海关中心报送支付、物流等信息,由海关审核,如果交易是由支付宝支付的话,需要商户调用支付宝报关接口来请求支付宝将其指定交易报送支付单给海关。
|
AlipayTradeCustomsQueryResponseModel |
query(String outRequestNos,
CustomizedParams customizedParams) |
okhttp3.Call |
queryAsync(String outRequestNos,
ApiCallback<AlipayTradeCustomsQueryResponseModel> _callback)
查询报关详细信息 (asynchronously)
境外商户的商品进口到国内时需要向海关中心报送支付、物流等信息,由海关审核,如果交易是由支付宝支付的话,需要商户调用支付宝报关接口来请求支付宝将其指定交易报送支付单给海关。
|
okhttp3.Call |
queryAsync(String outRequestNos,
ApiCallback<AlipayTradeCustomsQueryResponseModel> _callback,
CustomizedParams customizedParams) |
okhttp3.Call |
queryCall(String outRequestNos,
ApiCallback _callback,
CustomizedParams customizedParams)
Build call for query
|
ApiResponse<AlipayTradeCustomsQueryResponseModel> |
queryWithHttpInfo(String outRequestNos,
CustomizedParams customizedParams)
查询报关详细信息
境外商户的商品进口到国内时需要向海关中心报送支付、物流等信息,由海关审核,如果交易是由支付宝支付的话,需要商户调用支付宝报关接口来请求支付宝将其指定交易报送支付单给海关。
|
void |
setApiClient(ApiClient apiClient) |
void |
setCustomBaseUrl(String customBaseUrl) |
void |
setHostIndex(int hostIndex) |
public AlipayTradeCustomsApi()
public AlipayTradeCustomsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public int getHostIndex()
public void setHostIndex(int hostIndex)
public String getCustomBaseUrl()
public void setCustomBaseUrl(String customBaseUrl)
public okhttp3.Call declareCall(AlipayTradeCustomsDeclareModel alipayTradeCustomsDeclareModel, ApiCallback _callback, CustomizedParams customizedParams) throws ApiException
alipayTradeCustomsDeclareModel - (optional)_callback - Callback for upload/download progresscustomizedParams - ApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | common response | - |
| 0 | 请求失败 | - |
public AlipayTradeCustomsDeclareResponseModel declare(AlipayTradeCustomsDeclareModel alipayTradeCustomsDeclareModel) throws ApiException
alipayTradeCustomsDeclareModel - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | common response | - |
| 0 | 请求失败 | - |
public AlipayTradeCustomsDeclareResponseModel declare(AlipayTradeCustomsDeclareModel alipayTradeCustomsDeclareModel, CustomizedParams customizedParams) throws ApiException
ApiExceptionpublic ApiResponse<AlipayTradeCustomsDeclareResponseModel> declareWithHttpInfo(AlipayTradeCustomsDeclareModel alipayTradeCustomsDeclareModel, CustomizedParams customizedParams) throws ApiException
alipayTradeCustomsDeclareModel - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | common response | - |
| 0 | 请求失败 | - |
public okhttp3.Call declareAsync(AlipayTradeCustomsDeclareModel alipayTradeCustomsDeclareModel, ApiCallback<AlipayTradeCustomsDeclareResponseModel> _callback) throws ApiException
alipayTradeCustomsDeclareModel - (optional)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | common response | - |
| 0 | 请求失败 | - |
public okhttp3.Call declareAsync(AlipayTradeCustomsDeclareModel alipayTradeCustomsDeclareModel, ApiCallback<AlipayTradeCustomsDeclareResponseModel> _callback, CustomizedParams customizedParams) throws ApiException
ApiExceptionpublic okhttp3.Call queryCall(String outRequestNos, ApiCallback _callback, CustomizedParams customizedParams) throws ApiException
outRequestNos - 报关请求号。需要查询的商户端报关请求号,支持批量查询, 多个值用英文半角逗号分隔,单次请求最多10个; (optional)_callback - Callback for upload/download progresscustomizedParams - ApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | common response | - |
| 0 | 请求失败 | - |
public AlipayTradeCustomsQueryResponseModel query(String outRequestNos) throws ApiException
outRequestNos - 报关请求号。需要查询的商户端报关请求号,支持批量查询, 多个值用英文半角逗号分隔,单次请求最多10个; (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | common response | - |
| 0 | 请求失败 | - |
public AlipayTradeCustomsQueryResponseModel query(String outRequestNos, CustomizedParams customizedParams) throws ApiException
ApiExceptionpublic ApiResponse<AlipayTradeCustomsQueryResponseModel> queryWithHttpInfo(String outRequestNos, CustomizedParams customizedParams) throws ApiException
outRequestNos - 报关请求号。需要查询的商户端报关请求号,支持批量查询, 多个值用英文半角逗号分隔,单次请求最多10个; (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | common response | - |
| 0 | 请求失败 | - |
public okhttp3.Call queryAsync(String outRequestNos, ApiCallback<AlipayTradeCustomsQueryResponseModel> _callback) throws ApiException
outRequestNos - 报关请求号。需要查询的商户端报关请求号,支持批量查询, 多个值用英文半角逗号分隔,单次请求最多10个; (optional)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | common response | - |
| 0 | 请求失败 | - |
public okhttp3.Call queryAsync(String outRequestNos, ApiCallback<AlipayTradeCustomsQueryResponseModel> _callback, CustomizedParams customizedParams) throws ApiException
ApiExceptionCopyright © 2024. All rights reserved.