com.aliyun.dingtalkbizfinance_2_0.Client Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dingtalk Show documentation
Show all versions of dingtalk Show documentation
Alibaba Cloud dingtalk SDK for Java
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.dingtalkbizfinance_2_0;
import com.aliyun.tea.*;
import com.aliyun.dingtalkbizfinance_2_0.models.*;
public class Client extends com.aliyun.teaopenapi.Client {
public Client(com.aliyun.teaopenapi.models.Config config) throws Exception {
super(config);
com.aliyun.gateway.dingtalk.Client gatewayClient = new com.aliyun.gateway.dingtalk.Client();
this._spi = gatewayClient;
this._endpointRule = "";
if (com.aliyun.teautil.Common.empty(_endpoint)) {
this._endpoint = "api.dingtalk.com";
}
}
/**
* summary :
* 银行接入层通用接口
*
* @param request BankGatewayInvokeRequest
* @param headers BankGatewayInvokeHeaders
* @param runtime runtime options for this request RuntimeOptions
* @return BankGatewayInvokeResponse
*/
public BankGatewayInvokeResponse bankGatewayInvokeWithOptions(BankGatewayInvokeRequest request, BankGatewayInvokeHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map body = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.actionType)) {
body.put("actionType", request.actionType);
}
if (!com.aliyun.teautil.Common.isUnset(request.inputData)) {
body.put("inputData", request.inputData);
}
if (!com.aliyun.teautil.Common.isUnset(request.url)) {
body.put("url", request.url);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "BankGatewayInvoke"),
new TeaPair("version", "bizfinance_2.0"),
new TeaPair("protocol", "HTTP"),
new TeaPair("pathname", "/v2.0/bizfinance/bankGateways/invoke"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "ROA"),
new TeaPair("reqBodyType", "none"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.execute(params, req, runtime), new BankGatewayInvokeResponse());
}
/**
* summary :
* 银行接入层通用接口
*
* @param request BankGatewayInvokeRequest
* @return BankGatewayInvokeResponse
*/
public BankGatewayInvokeResponse bankGatewayInvoke(BankGatewayInvokeRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
BankGatewayInvokeHeaders headers = new BankGatewayInvokeHeaders();
return this.bankGatewayInvokeWithOptions(request, headers, runtime);
}
/**
* summary :
* 批量删除智能财务单据
*
* @param request BatchDeleteReceiptRequest
* @param headers BatchDeleteReceiptHeaders
* @param runtime runtime options for this request RuntimeOptions
* @return BatchDeleteReceiptResponse
*/
public BatchDeleteReceiptResponse batchDeleteReceiptWithOptions(BatchDeleteReceiptRequest request, BatchDeleteReceiptHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map body = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.instanceIdList)) {
body.put("instanceIdList", request.instanceIdList);
}
if (!com.aliyun.teautil.Common.isUnset(request.operator)) {
body.put("operator", request.operator);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "BatchDeleteReceipt"),
new TeaPair("version", "bizfinance_2.0"),
new TeaPair("protocol", "HTTP"),
new TeaPair("pathname", "/v2.0/bizfinance/instances/remove"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "ROA"),
new TeaPair("reqBodyType", "none"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.execute(params, req, runtime), new BatchDeleteReceiptResponse());
}
/**
* summary :
* 批量删除智能财务单据
*
* @param request BatchDeleteReceiptRequest
* @return BatchDeleteReceiptResponse
*/
public BatchDeleteReceiptResponse batchDeleteReceipt(BatchDeleteReceiptRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
BatchDeleteReceiptHeaders headers = new BatchDeleteReceiptHeaders();
return this.batchDeleteReceiptWithOptions(request, headers, runtime);
}
/**
* summary :
* 批量同步银行回单
*
* @param request BatchSyncBankReceiptRequest
* @param headers BatchSyncBankReceiptHeaders
* @param runtime runtime options for this request RuntimeOptions
* @return BatchSyncBankReceiptResponse
*/
public BatchSyncBankReceiptResponse batchSyncBankReceiptWithOptions(BatchSyncBankReceiptRequest request, BatchSyncBankReceiptHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("body", com.aliyun.teautil.Common.toArray(request.body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "BatchSyncBankReceipt"),
new TeaPair("version", "bizfinance_2.0"),
new TeaPair("protocol", "HTTP"),
new TeaPair("pathname", "/v2.0/bizfinance/receipts/batchSync"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "ROA"),
new TeaPair("reqBodyType", "none"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.execute(params, req, runtime), new BatchSyncBankReceiptResponse());
}
/**
* summary :
* 批量同步银行回单
*
* @param request BatchSyncBankReceiptRequest
* @return BatchSyncBankReceiptResponse
*/
public BatchSyncBankReceiptResponse batchSyncBankReceipt(BatchSyncBankReceiptRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
BatchSyncBankReceiptHeaders headers = new BatchSyncBankReceiptHeaders();
return this.batchSyncBankReceiptWithOptions(request, headers, runtime);
}
/**
* summary :
* 获取费用类别
*
* @param request GetCategoryRequest
* @param headers GetCategoryHeaders
* @param runtime runtime options for this request RuntimeOptions
* @return GetCategoryResponse
*/
public GetCategoryResponse getCategoryWithOptions(GetCategoryRequest request, GetCategoryHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map query = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.code)) {
query.put("code", request.code);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("query", com.aliyun.openapiutil.Client.query(query))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "GetCategory"),
new TeaPair("version", "bizfinance_2.0"),
new TeaPair("protocol", "HTTP"),
new TeaPair("pathname", "/v2.0/bizfinance/categories"),
new TeaPair("method", "GET"),
new TeaPair("authType", "AK"),
new TeaPair("style", "ROA"),
new TeaPair("reqBodyType", "none"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.execute(params, req, runtime), new GetCategoryResponse());
}
/**
* summary :
* 获取费用类别
*
* @param request GetCategoryRequest
* @return GetCategoryResponse
*/
public GetCategoryResponse getCategory(GetCategoryRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
GetCategoryHeaders headers = new GetCategoryHeaders();
return this.getCategoryWithOptions(request, headers, runtime);
}
/**
* summary :
* 获取企业账户
*
* @param request GetFinanceAccountRequest
* @param headers GetFinanceAccountHeaders
* @param runtime runtime options for this request RuntimeOptions
* @return GetFinanceAccountResponse
*/
public GetFinanceAccountResponse getFinanceAccountWithOptions(GetFinanceAccountRequest request, GetFinanceAccountHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map query = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.accountCode)) {
query.put("accountCode", request.accountCode);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("query", com.aliyun.openapiutil.Client.query(query))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "GetFinanceAccount"),
new TeaPair("version", "bizfinance_2.0"),
new TeaPair("protocol", "HTTP"),
new TeaPair("pathname", "/v2.0/bizfinance/financeAccounts"),
new TeaPair("method", "GET"),
new TeaPair("authType", "AK"),
new TeaPair("style", "ROA"),
new TeaPair("reqBodyType", "none"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.execute(params, req, runtime), new GetFinanceAccountResponse());
}
/**
* summary :
* 获取企业账户
*
* @param request GetFinanceAccountRequest
* @return GetFinanceAccountResponse
*/
public GetFinanceAccountResponse getFinanceAccount(GetFinanceAccountRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
GetFinanceAccountHeaders headers = new GetFinanceAccountHeaders();
return this.getFinanceAccountWithOptions(request, headers, runtime);
}
/**
* summary :
* 获取单条项目
*
* @param request GetProjectRequest
* @param headers GetProjectHeaders
* @param runtime runtime options for this request RuntimeOptions
* @return GetProjectResponse
*/
public GetProjectResponse getProjectWithOptions(GetProjectRequest request, GetProjectHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map query = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.code)) {
query.put("code", request.code);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("query", com.aliyun.openapiutil.Client.query(query))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "GetProject"),
new TeaPair("version", "bizfinance_2.0"),
new TeaPair("protocol", "HTTP"),
new TeaPair("pathname", "/v2.0/bizfinance/projects"),
new TeaPair("method", "GET"),
new TeaPair("authType", "AK"),
new TeaPair("style", "ROA"),
new TeaPair("reqBodyType", "none"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.execute(params, req, runtime), new GetProjectResponse());
}
/**
* summary :
* 获取单条项目
*
* @param request GetProjectRequest
* @return GetProjectResponse
*/
public GetProjectResponse getProject(GetProjectRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
GetProjectHeaders headers = new GetProjectHeaders();
return this.getProjectWithOptions(request, headers, runtime);
}
/**
* summary :
* 获取智能财务单据详情
*
* @param request GetReceiptRequest
* @param headers GetReceiptHeaders
* @param runtime runtime options for this request RuntimeOptions
* @return GetReceiptResponse
*/
public GetReceiptResponse getReceiptWithOptions(GetReceiptRequest request, GetReceiptHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map query = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.code)) {
query.put("code", request.code);
}
if (!com.aliyun.teautil.Common.isUnset(request.modelId)) {
query.put("modelId", request.modelId);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("query", com.aliyun.openapiutil.Client.query(query))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "GetReceipt"),
new TeaPair("version", "bizfinance_2.0"),
new TeaPair("protocol", "HTTP"),
new TeaPair("pathname", "/v2.0/bizfinance/receipts/details"),
new TeaPair("method", "GET"),
new TeaPair("authType", "AK"),
new TeaPair("style", "ROA"),
new TeaPair("reqBodyType", "none"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.execute(params, req, runtime), new GetReceiptResponse());
}
/**
* summary :
* 获取智能财务单据详情
*
* @param request GetReceiptRequest
* @return GetReceiptResponse
*/
public GetReceiptResponse getReceipt(GetReceiptRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
GetReceiptHeaders headers = new GetReceiptHeaders();
return this.getReceiptWithOptions(request, headers, runtime);
}
/**
* summary :
* 获取智能财务应用内维护的供应商信息
*
* @param request GetSupplierRequest
* @param headers GetSupplierHeaders
* @param runtime runtime options for this request RuntimeOptions
* @return GetSupplierResponse
*/
public GetSupplierResponse getSupplierWithOptions(GetSupplierRequest request, GetSupplierHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map query = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.code)) {
query.put("code", request.code);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("query", com.aliyun.openapiutil.Client.query(query))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "GetSupplier"),
new TeaPair("version", "bizfinance_2.0"),
new TeaPair("protocol", "HTTP"),
new TeaPair("pathname", "/v2.0/bizfinance/suppliers/details"),
new TeaPair("method", "GET"),
new TeaPair("authType", "AK"),
new TeaPair("style", "ROA"),
new TeaPair("reqBodyType", "none"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.execute(params, req, runtime), new GetSupplierResponse());
}
/**
* summary :
* 获取智能财务应用内维护的供应商信息
*
* @param request GetSupplierRequest
* @return GetSupplierResponse
*/
public GetSupplierResponse getSupplier(GetSupplierRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
GetSupplierHeaders headers = new GetSupplierHeaders();
return this.getSupplierWithOptions(request, headers, runtime);
}
/**
* summary :
* 根据不同的bizType查询不同的数据
*
* @param request LinkCommonInvokeRequest
* @param headers LinkCommonInvokeHeaders
* @param runtime runtime options for this request RuntimeOptions
* @return LinkCommonInvokeResponse
*/
public LinkCommonInvokeResponse linkCommonInvokeWithOptions(LinkCommonInvokeRequest request, LinkCommonInvokeHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map body = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.bizType)) {
body.put("bizType", request.bizType);
}
if (!com.aliyun.teautil.Common.isUnset(request.data)) {
body.put("data", request.data);
}
if (!com.aliyun.teautil.Common.isUnset(request.invokeId)) {
body.put("invokeId", request.invokeId);
}
if (!com.aliyun.teautil.Common.isUnset(request.userId)) {
body.put("userId", request.userId);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "LinkCommonInvoke"),
new TeaPair("version", "bizfinance_2.0"),
new TeaPair("protocol", "HTTP"),
new TeaPair("pathname", "/v2.0/bizfinance/link/bizTypes/invoke"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "ROA"),
new TeaPair("reqBodyType", "none"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.execute(params, req, runtime), new LinkCommonInvokeResponse());
}
/**
* summary :
* 根据不同的bizType查询不同的数据
*
* @param request LinkCommonInvokeRequest
* @return LinkCommonInvokeResponse
*/
public LinkCommonInvokeResponse linkCommonInvoke(LinkCommonInvokeRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
LinkCommonInvokeHeaders headers = new LinkCommonInvokeHeaders();
return this.linkCommonInvokeWithOptions(request, headers, runtime);
}
/**
* summary :
* 订单开票
*
* @param request OrderBillingRequest
* @param headers OrderBillingHeaders
* @param runtime runtime options for this request RuntimeOptions
* @return OrderBillingResponse
*/
public OrderBillingResponse orderBillingWithOptions(OrderBillingRequest request, OrderBillingHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map body = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.additionInfos)) {
body.put("additionInfos", request.additionInfos);
}
if (!com.aliyun.teautil.Common.isUnset(request.appKey)) {
body.put("appKey", request.appKey);
}
if (!com.aliyun.teautil.Common.isUnset(request.applyPerson)) {
body.put("applyPerson", request.applyPerson);
}
if (!com.aliyun.teautil.Common.isUnset(request.invoiceRemark)) {
body.put("invoiceRemark", request.invoiceRemark);
}
if (!com.aliyun.teautil.Common.isUnset(request.invoiceType)) {
body.put("invoiceType", request.invoiceType);
}
if (!com.aliyun.teautil.Common.isUnset(request.isNaturalPerson)) {
body.put("isNaturalPerson", request.isNaturalPerson);
}
if (!com.aliyun.teautil.Common.isUnset(request.operator)) {
body.put("operator", request.operator);
}
if (!com.aliyun.teautil.Common.isUnset(request.orderId)) {
body.put("orderId", request.orderId);
}
if (!com.aliyun.teautil.Common.isUnset(request.payee)) {
body.put("payee", request.payee);
}
if (!com.aliyun.teautil.Common.isUnset(request.phone)) {
body.put("phone", request.phone);
}
if (!com.aliyun.teautil.Common.isUnset(request.products)) {
body.put("products", request.products);
}
if (!com.aliyun.teautil.Common.isUnset(request.purchaserAddress)) {
body.put("purchaserAddress", request.purchaserAddress);
}
if (!com.aliyun.teautil.Common.isUnset(request.purchaserBankAccount)) {
body.put("purchaserBankAccount", request.purchaserBankAccount);
}
if (!com.aliyun.teautil.Common.isUnset(request.purchaserBankName)) {
body.put("purchaserBankName", request.purchaserBankName);
}
if (!com.aliyun.teautil.Common.isUnset(request.purchaserName)) {
body.put("purchaserName", request.purchaserName);
}
if (!com.aliyun.teautil.Common.isUnset(request.purchaserTaxNo)) {
body.put("purchaserTaxNo", request.purchaserTaxNo);
}
if (!com.aliyun.teautil.Common.isUnset(request.purchaserTel)) {
body.put("purchaserTel", request.purchaserTel);
}
if (!com.aliyun.teautil.Common.isUnset(request.remark)) {
body.put("remark", request.remark);
}
if (!com.aliyun.teautil.Common.isUnset(request.reviewer)) {
body.put("reviewer", request.reviewer);
}
if (!com.aliyun.teautil.Common.isUnset(request.signature)) {
body.put("signature", request.signature);
}
if (!com.aliyun.teautil.Common.isUnset(request.taxSign)) {
body.put("taxSign", request.taxSign);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "OrderBilling"),
new TeaPair("version", "bizfinance_2.0"),
new TeaPair("protocol", "HTTP"),
new TeaPair("pathname", "/v2.0/bizfinance/billings/order"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "ROA"),
new TeaPair("reqBodyType", "none"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.execute(params, req, runtime), new OrderBillingResponse());
}
/**
* summary :
* 订单开票
*
* @param request OrderBillingRequest
* @return OrderBillingResponse
*/
public OrderBillingResponse orderBilling(OrderBillingRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
OrderBillingHeaders headers = new OrderBillingHeaders();
return this.orderBillingWithOptions(request, headers, runtime);
}
/**
* summary :
* 批量获取费用类别
*
* @param request QueryCategoryByPageRequest
* @param headers QueryCategoryByPageHeaders
* @param runtime runtime options for this request RuntimeOptions
* @return QueryCategoryByPageResponse
*/
public QueryCategoryByPageResponse queryCategoryByPageWithOptions(QueryCategoryByPageRequest request, QueryCategoryByPageHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map query = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.pageNumber)) {
query.put("pageNumber", request.pageNumber);
}
if (!com.aliyun.teautil.Common.isUnset(request.pageSize)) {
query.put("pageSize", request.pageSize);
}
if (!com.aliyun.teautil.Common.isUnset(request.type)) {
query.put("type", request.type);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("query", com.aliyun.openapiutil.Client.query(query))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "QueryCategoryByPage"),
new TeaPair("version", "bizfinance_2.0"),
new TeaPair("protocol", "HTTP"),
new TeaPair("pathname", "/v2.0/bizfinance/categories/batch"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "ROA"),
new TeaPair("reqBodyType", "none"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.execute(params, req, runtime), new QueryCategoryByPageResponse());
}
/**
* summary :
* 批量获取费用类别
*
* @param request QueryCategoryByPageRequest
* @return QueryCategoryByPageResponse
*/
public QueryCategoryByPageResponse queryCategoryByPage(QueryCategoryByPageRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
QueryCategoryByPageHeaders headers = new QueryCategoryByPageHeaders();
return this.queryCategoryByPageWithOptions(request, headers, runtime);
}
/**
* summary :
* 分页批量获取智能财务应用内维护的客户信息
*
* @param request QueryCustomerByPageRequest
* @param headers QueryCustomerByPageHeaders
* @param runtime runtime options for this request RuntimeOptions
* @return QueryCustomerByPageResponse
*/
public QueryCustomerByPageResponse queryCustomerByPageWithOptions(QueryCustomerByPageRequest request, QueryCustomerByPageHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map query = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.pageNumber)) {
query.put("pageNumber", request.pageNumber);
}
if (!com.aliyun.teautil.Common.isUnset(request.pageSize)) {
query.put("pageSize", request.pageSize);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("query", com.aliyun.openapiutil.Client.query(query))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "QueryCustomerByPage"),
new TeaPair("version", "bizfinance_2.0"),
new TeaPair("protocol", "HTTP"),
new TeaPair("pathname", "/v2.0/bizfinance/customers/batch"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "ROA"),
new TeaPair("reqBodyType", "none"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.execute(params, req, runtime), new QueryCustomerByPageResponse());
}
/**
* summary :
* 分页批量获取智能财务应用内维护的客户信息
*
* @param request QueryCustomerByPageRequest
* @return QueryCustomerByPageResponse
*/
public QueryCustomerByPageResponse queryCustomerByPage(QueryCustomerByPageRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
QueryCustomerByPageHeaders headers = new QueryCustomerByPageHeaders();
return this.queryCustomerByPageWithOptions(request, headers, runtime);
}
/**
* summary :
* 批量获取企业账户
*
* @param request QueryEnterpriseAccountByPageRequest
* @param headers QueryEnterpriseAccountByPageHeaders
* @param runtime runtime options for this request RuntimeOptions
* @return QueryEnterpriseAccountByPageResponse
*/
public QueryEnterpriseAccountByPageResponse queryEnterpriseAccountByPageWithOptions(QueryEnterpriseAccountByPageRequest request, QueryEnterpriseAccountByPageHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map query = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.pageNumber)) {
query.put("pageNumber", request.pageNumber);
}
if (!com.aliyun.teautil.Common.isUnset(request.pageSize)) {
query.put("pageSize", request.pageSize);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("query", com.aliyun.openapiutil.Client.query(query))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "QueryEnterpriseAccountByPage"),
new TeaPair("version", "bizfinance_2.0"),
new TeaPair("protocol", "HTTP"),
new TeaPair("pathname", "/v2.0/bizfinance/financeAccounts/batch"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "ROA"),
new TeaPair("reqBodyType", "none"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.execute(params, req, runtime), new QueryEnterpriseAccountByPageResponse());
}
/**
* summary :
* 批量获取企业账户
*
* @param request QueryEnterpriseAccountByPageRequest
* @return QueryEnterpriseAccountByPageResponse
*/
public QueryEnterpriseAccountByPageResponse queryEnterpriseAccountByPage(QueryEnterpriseAccountByPageRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
QueryEnterpriseAccountByPageHeaders headers = new QueryEnterpriseAccountByPageHeaders();
return this.queryEnterpriseAccountByPageWithOptions(request, headers, runtime);
}
/**
* summary :
* 查询支付订单详情
*
* @param request QueryInstancePaymentOrderDetailRequest
* @param headers QueryInstancePaymentOrderDetailHeaders
* @param runtime runtime options for this request RuntimeOptions
* @return QueryInstancePaymentOrderDetailResponse
*/
public QueryInstancePaymentOrderDetailResponse queryInstancePaymentOrderDetailWithOptions(String instanceId, QueryInstancePaymentOrderDetailRequest request, QueryInstancePaymentOrderDetailHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map query = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.orderNo)) {
query.put("orderNo", request.orderNo);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("query", com.aliyun.openapiutil.Client.query(query))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "QueryInstancePaymentOrderDetail"),
new TeaPair("version", "bizfinance_2.0"),
new TeaPair("protocol", "HTTP"),
new TeaPair("pathname", "/v2.0/bizfinance/instances/" + instanceId + "/paymentOrders/details"),
new TeaPair("method", "GET"),
new TeaPair("authType", "AK"),
new TeaPair("style", "ROA"),
new TeaPair("reqBodyType", "none"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.execute(params, req, runtime), new QueryInstancePaymentOrderDetailResponse());
}
/**
* summary :
* 查询支付订单详情
*
* @param request QueryInstancePaymentOrderDetailRequest
* @return QueryInstancePaymentOrderDetailResponse
*/
public QueryInstancePaymentOrderDetailResponse queryInstancePaymentOrderDetail(String instanceId, QueryInstancePaymentOrderDetailRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
QueryInstancePaymentOrderDetailHeaders headers = new QueryInstancePaymentOrderDetailHeaders();
return this.queryInstancePaymentOrderDetailWithOptions(instanceId, request, headers, runtime);
}
/**
* summary :
* 批量获取项目信息
*
* @param request QueryProjectByPageRequest
* @param headers QueryProjectByPageHeaders
* @param runtime runtime options for this request RuntimeOptions
* @return QueryProjectByPageResponse
*/
public QueryProjectByPageResponse queryProjectByPageWithOptions(QueryProjectByPageRequest request, QueryProjectByPageHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map query = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.pageNumber)) {
query.put("pageNumber", request.pageNumber);
}
if (!com.aliyun.teautil.Common.isUnset(request.pageSize)) {
query.put("pageSize", request.pageSize);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("query", com.aliyun.openapiutil.Client.query(query))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "QueryProjectByPage"),
new TeaPair("version", "bizfinance_2.0"),
new TeaPair("protocol", "HTTP"),
new TeaPair("pathname", "/v2.0/bizfinance/projects/batch"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "ROA"),
new TeaPair("reqBodyType", "none"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.execute(params, req, runtime), new QueryProjectByPageResponse());
}
/**
* summary :
* 批量获取项目信息
*
* @param request QueryProjectByPageRequest
* @return QueryProjectByPageResponse
*/
public QueryProjectByPageResponse queryProjectByPage(QueryProjectByPageRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
QueryProjectByPageHeaders headers = new QueryProjectByPageHeaders();
return this.queryProjectByPageWithOptions(request, headers, runtime);
}
/**
* summary :
* 分页批量获取智能财务应用内维护的供应商信息
*
* @param request QuerySupplierByPageRequest
* @param headers QuerySupplierByPageHeaders
* @param runtime runtime options for this request RuntimeOptions
* @return QuerySupplierByPageResponse
*/
public QuerySupplierByPageResponse querySupplierByPageWithOptions(QuerySupplierByPageRequest request, QuerySupplierByPageHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map query = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.pageNumber)) {
query.put("pageNumber", request.pageNumber);
}
if (!com.aliyun.teautil.Common.isUnset(request.pageSize)) {
query.put("pageSize", request.pageSize);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("query", com.aliyun.openapiutil.Client.query(query))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "QuerySupplierByPage"),
new TeaPair("version", "bizfinance_2.0"),
new TeaPair("protocol", "HTTP"),
new TeaPair("pathname", "/v2.0/bizfinance/suppliers"),
new TeaPair("method", "GET"),
new TeaPair("authType", "AK"),
new TeaPair("style", "ROA"),
new TeaPair("reqBodyType", "none"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.execute(params, req, runtime), new QuerySupplierByPageResponse());
}
/**
* summary :
* 分页批量获取智能财务应用内维护的供应商信息
*
* @param request QuerySupplierByPageRequest
* @return QuerySupplierByPageResponse
*/
public QuerySupplierByPageResponse querySupplierByPage(QuerySupplierByPageRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
QuerySupplierByPageHeaders headers = new QuerySupplierByPageHeaders();
return this.querySupplierByPageWithOptions(request, headers, runtime);
}
/**
* summary :
* 查询用户角色成员,支持分页,可获取某个企业主体下的角色成员
*
* @param request QueryUserRoleListRequest
* @param headers QueryUserRoleListHeaders
* @param runtime runtime options for this request RuntimeOptions
* @return QueryUserRoleListResponse
*/
public QueryUserRoleListResponse queryUserRoleListWithOptions(QueryUserRoleListRequest request, QueryUserRoleListHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map query = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.companyCode)) {
query.put("companyCode", request.companyCode);
}
if (!com.aliyun.teautil.Common.isUnset(request.userId)) {
query.put("userId", request.userId);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("query", com.aliyun.openapiutil.Client.query(query))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "QueryUserRoleList"),
new TeaPair("version", "bizfinance_2.0"),
new TeaPair("protocol", "HTTP"),
new TeaPair("pathname", "/v2.0/bizfinance/users/roles"),
new TeaPair("method", "GET"),
new TeaPair("authType", "AK"),
new TeaPair("style", "ROA"),
new TeaPair("reqBodyType", "none"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.execute(params, req, runtime), new QueryUserRoleListResponse());
}
/**
* summary :
* 查询用户角色成员,支持分页,可获取某个企业主体下的角色成员
*
* @param request QueryUserRoleListRequest
* @return QueryUserRoleListResponse
*/
public QueryUserRoleListResponse queryUserRoleList(QueryUserRoleListRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
QueryUserRoleListHeaders headers = new QueryUserRoleListHeaders();
return this.queryUserRoleListWithOptions(request, headers, runtime);
}
/**
* summary :
* 签约企业账户
*
* @param request SignEnterpriseAccountRequest
* @param headers SignEnterpriseAccountHeaders
* @param runtime runtime options for this request RuntimeOptions
* @return SignEnterpriseAccountResponse
*/
public SignEnterpriseAccountResponse signEnterpriseAccountWithOptions(SignEnterpriseAccountRequest request, SignEnterpriseAccountHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map query = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.bankCardNo)) {
query.put("bankCardNo", request.bankCardNo);
}
if (!com.aliyun.teautil.Common.isUnset(request.bankOpenId)) {
query.put("bankOpenId", request.bankOpenId);
}
if (!com.aliyun.teautil.Common.isUnset(request.channelType)) {
query.put("channelType", request.channelType);
}
if (!com.aliyun.teautil.Common.isUnset(request.operator)) {
query.put("operator", request.operator);
}
if (!com.aliyun.teautil.Common.isUnset(request.signOperateType)) {
query.put("signOperateType", request.signOperateType);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("query", com.aliyun.openapiutil.Client.query(query))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "SignEnterpriseAccount"),
new TeaPair("version", "bizfinance_2.0"),
new TeaPair("protocol", "HTTP"),
new TeaPair("pathname", "/v2.0/bizfinance/enterpriseAccounts/sign"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "ROA"),
new TeaPair("reqBodyType", "none"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.execute(params, req, runtime), new SignEnterpriseAccountResponse());
}
/**
* summary :
* 签约企业账户
*
* @param request SignEnterpriseAccountRequest
* @return SignEnterpriseAccountResponse
*/
public SignEnterpriseAccountResponse signEnterpriseAccount(SignEnterpriseAccountRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
SignEnterpriseAccountHeaders headers = new SignEnterpriseAccountHeaders();
return this.signEnterpriseAccountWithOptions(request, headers, runtime);
}
/**
* summary :
* 发送银企支付回单文件信息
*
* @param request SyncReceiptRecallRequest
* @param headers SyncReceiptRecallHeaders
* @param runtime runtime options for this request RuntimeOptions
* @return SyncReceiptRecallResponse
*/
public SyncReceiptRecallResponse syncReceiptRecallWithOptions(SyncReceiptRecallRequest request, SyncReceiptRecallHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map query = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.fileDownloadUrl)) {
query.put("fileDownloadUrl", request.fileDownloadUrl);
}
if (!com.aliyun.teautil.Common.isUnset(request.fileName)) {
query.put("fileName", request.fileName);
}
if (!com.aliyun.teautil.Common.isUnset(request.orderNo)) {
query.put("orderNo", request.orderNo);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("query", com.aliyun.openapiutil.Client.query(query))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "SyncReceiptRecall"),
new TeaPair("version", "bizfinance_2.0"),
new TeaPair("protocol", "HTTP"),
new TeaPair("pathname", "/v2.0/bizfinance/receipts/syncRecall"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "ROA"),
new TeaPair("reqBodyType", "none"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.execute(params, req, runtime), new SyncReceiptRecallResponse());
}
/**
* summary :
* 发送银企支付回单文件信息
*
* @param request SyncReceiptRecallRequest
* @return SyncReceiptRecallResponse
*/
public SyncReceiptRecallResponse syncReceiptRecall(SyncReceiptRecallRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
SyncReceiptRecallHeaders headers = new SyncReceiptRecallHeaders();
return this.syncReceiptRecallWithOptions(request, headers, runtime);
}
/**
* summary :
* 更新单据的支付状态
*
* @param tmpReq UpdateInstanceOrderInfoRequest
* @param headers UpdateInstanceOrderInfoHeaders
* @param runtime runtime options for this request RuntimeOptions
* @return UpdateInstanceOrderInfoResponse
*/
public UpdateInstanceOrderInfoResponse updateInstanceOrderInfoWithOptions(String instanceId, UpdateInstanceOrderInfoRequest tmpReq, UpdateInstanceOrderInfoHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(tmpReq);
UpdateInstanceOrderInfoShrinkRequest request = new UpdateInstanceOrderInfoShrinkRequest();
com.aliyun.openapiutil.Client.convert(tmpReq, request);
if (!com.aliyun.teautil.Common.isUnset(tmpReq.payerBank)) {
request.payerBankShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.payerBank, "payerBank", "json");
}
java.util.Map query = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.failReason)) {
query.put("failReason", request.failReason);
}
if (!com.aliyun.teautil.Common.isUnset(request.orderNo)) {
query.put("orderNo", request.orderNo);
}
if (!com.aliyun.teautil.Common.isUnset(request.outOrderNo)) {
query.put("outOrderNo", request.outOrderNo);
}
if (!com.aliyun.teautil.Common.isUnset(request.payerBankShrink)) {
query.put("payerBank", request.payerBankShrink);
}
if (!com.aliyun.teautil.Common.isUnset(request.paymentTime)) {
query.put("paymentTime", request.paymentTime);
}
if (!com.aliyun.teautil.Common.isUnset(request.status)) {
query.put("status", request.status);
}
if (!com.aliyun.teautil.Common.isUnset(request.userId)) {
query.put("userId", request.userId);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("query", com.aliyun.openapiutil.Client.query(query))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "UpdateInstanceOrderInfo"),
new TeaPair("version", "bizfinance_2.0"),
new TeaPair("protocol", "HTTP"),
new TeaPair("pathname", "/v2.0/bizfinance/instances/" + instanceId + "/paymentOrders/states"),
new TeaPair("method", "PUT"),
new TeaPair("authType", "AK"),
new TeaPair("style", "ROA"),
new TeaPair("reqBodyType", "none"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.execute(params, req, runtime), new UpdateInstanceOrderInfoResponse());
}
/**
* summary :
* 更新单据的支付状态
*
* @param request UpdateInstanceOrderInfoRequest
* @return UpdateInstanceOrderInfoResponse
*/
public UpdateInstanceOrderInfoResponse updateInstanceOrderInfo(String instanceId, UpdateInstanceOrderInfoRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
UpdateInstanceOrderInfoHeaders headers = new UpdateInstanceOrderInfoHeaders();
return this.updateInstanceOrderInfoWithOptions(instanceId, request, headers, runtime);
}
}