/// <summary> /// 企业打款查询 /// </summary> public void enterprisePayQuery() { EnterprisePayQueryRequest request = new EnterprisePayQueryRequest(); request.order_id = "067442e49f8c8b40ffd9d050e55ec3e0"; //订单Id request.account_no = "6221501111111113900"; //企业银行账户 try { EnterprisePayQueryResponse response = client.Auth.enterprisePayQuery(request); Console.WriteLine("企业打款查询-响应数据:" + JSONUtil.getJsonStringFromObject(response)); } catch (SignApplicationException sae) { // 捕获网关校验数据 Console.WriteLine("企业打款查询-网关异常状态码为:" + sae.return_code); Console.WriteLine("企业打款查询-网关异常信息为:" + sae.return_message); } catch (SignServerException sse) { // 捕获网关校验数据 Console.WriteLine("企业打款查询-业务异常状态码为:" + sse.result_code); Console.WriteLine("企业打款查询-业务异常信息为:" + sse.result_message); } }
/// <summary> /// 企业打款查询 /// </summary> /// <param name="request"></param> /// <returns></returns> public EnterprisePayQueryResponse enterprisePayQuery(EnterprisePayQueryRequest request) { SignRequest signRequest = new SignRequest(request); signRequest.apiUrl = ApiUrlConstant.Auth.enterprisePayQuery; EnterprisePayQueryResponse response = this.Send <EnterprisePayQueryResponse>(signRequest); return(response); }