com.fasc.open.api.v5_1.client.VoucherClient Maven / Gradle / Ivy
package com.fasc.open.api.v5_1.client;
import com.fasc.open.api.bean.base.BaseRes;
import com.fasc.open.api.constants.OpenApiUrlConstants;
import com.fasc.open.api.exception.ApiException;
import com.fasc.open.api.v5_1.req.voucher.*;
import com.fasc.open.api.v5_1.res.voucher.*;
public class VoucherClient {
private OpenApiClient openApiClient;
public VoucherClient(OpenApiClient openApiClient) {
this.openApiClient = openApiClient;
}
/**
* 单据创建
**/
public BaseRes voucherTaskCreate(VoucherSignTaskCreateReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.VOUCHER_TASK_CREATE, VoucherSignTaskCreateRes.class);
}
/**
* 单据详情
**/
public BaseRes getVoucherTaskDetail(GetVoucherTaskDetailReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.VOUCHER_TASK_DETAIL, GetVoucherTaskDetailRes.class);
}
/**
* 单据列表
**/
public BaseRes getVoucherTaskList(GetVoucherTaskListReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.VOUCHER_TASK_LIST, VoucherPageRes.class);
}
/**
* 单据文件下载
**/
public BaseRes getVoucherTaskDownloadURL(VoucherTaskDownloadUrlReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.VOUCHER_TASK_DOWNLOAD, VoucherTaskDownloadUrlRes.class);
}
/**
* 单据撤销
**/
public BaseRes voucherTaskCancel(VoucherCancelReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.VOUCHER_TASK_CANCEL, Void.class);
}
/**
* 单据签署链接
**/
public BaseRes voucherTaskActorGetUrl(VoucherGetURLInfoReq req) throws ApiException {
return openApiClient.invokeApi(req, OpenApiUrlConstants.VOUCHER_TASK_ACTOR_GET_URL, VoucherGetURLInfoRes.class);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy