Commit c798133a by 陶然

init

parent a2dec19c
......@@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Njzj.Bocoms.Openapis
namespace Com.Bocom.OpenApi
{
internal static class Configs
{
......@@ -43,5 +43,20 @@ namespace Njzj.Bocoms.Openapis
/// </summary>
internal static string QueryContractOrderRequestV2 = "/api/iifssmartbooking/queryContractOrder/v2";
/// <summary>
/// 1.4 新增账单
/// </summary>
internal static string AddContractOrderRequestV2 = "/api/iifssmartbooking/addContractOrder/v2";
/// <summary>
/// 1.10 删除账单
/// </summary>
internal static string DelContractOrderRequestV1 = "/api/iifssmartbooking/delContractOrder/v1";
/// <summary>
/// 1.9 取消核销
/// </summary>
internal static string UnWriteOffRequestV1 = "/api/iifssmartbooking/unWriteOff/v1";
}
}
using Com.Bocom.OpenApi.Utils;
using Kivii;
using Kivii.Finances.Entities;
using Kivii.Text;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static Com.Bocom.OpenApi.AddContractOrderRequestV2.AddContractOrderRequestV2Biz;
namespace Com.Bocom.OpenApi
{
public static class Extension
{
public static AddContractOrderResponseV2 RequestAddContractOrderV2(Settlement settlement,out string err)
{
if (settlement == null)
{
err = string.Empty;
return null;
}
DefaultBocomClient client = new DefaultBocomClient(Configs.APP_ID, Configs.MY_PRIVATE_KEY, Configs.APIGW_PUBLIC_KEY, BocomConstants.ENCRYPT_TYPE_RSA_AND_AES);
/**
* 测试环境可以忽略SSL证书告警,生产环境不可忽略
*/
client.IgnoreSslHostnameVerifier();
var bizKvid = settlement.Kvid.ToString();
var request = new AddContractOrderRequestV2();
request.SetServiceUrl(Configs.APIGW_URL_ADDRESS + Configs.AddContractOrderRequestV2);
var bizContent = new AddContractOrderRequestV2.AddContractOrderRequestV2Biz();
bizContent.org_id = Configs.ORG_ID;
bizContent.bat_id = bizKvid;
bizContent.cont_order_list = new List<ContOrder>();
var contorder = new ContOrder();
contorder.cont_id = bizKvid;
contorder.org_id = bizContent.org_id;
contorder.ori_payer = settlement.PayerName;
//contorder.ori_ac = "";
//contorder.ori_addr = "仅记录";
//contorder.ori_tel_no = "仅记录";
//contorder.ori_other_info1 = "仅记录";
//contorder.ori_other_info2 = "仅记录";
//contorder.ori_other_info3 = "仅记录";
contorder.ori_itm_nme = settlement.BizId;
contorder.ori_amt = settlement.AmountPlan.ToString();
contorder.ori_offset_amt = (settlement.AmountPlan - settlement.Amount).ToString();
contorder.ori_act_amt = settlement.Amount.ToString();
//contorder.attach_code = "";
contorder.remark = settlement.Remark;
//contorder.offset_remark = "测试2";
contorder.payment_period = $"{DateTime.Now.AddMonths(-2).ToString("yyyy-MM-dd")}~{DateTime.Now.AddMonths(7).ToString("yyyy-MM-dd")}";
contorder.agreement_type = "-1";
bizContent.cont_order_list.Add(contorder);
request.SetBizContent(bizContent);
var response = client.Execute(request, Guid.NewGuid().ToString().Replace("-", ""));
Console.WriteLine("--------------------------------62----------------------------------");
var rtns = new AddContractOrderResponseV2();
if (response.IsSuccess())
{
rtns = response as AddContractOrderResponseV2;
err=string.Empty;
return rtns;
}
else
{
err = response.GetRspMsg();
return null;
}
}
}
}
......@@ -43,6 +43,9 @@
<HintPath>..\..\k5-njzj\packages\Kivii.Core.5.6.2023.4140\lib\net45\Kivii.Core.V4.5.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Kivii.Linq.V4.5, Version=5.6.2023.4200, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\k5-njzj\packages\Kivii.Linq.5.6.2023.4200\lib\net45\Kivii.Linq.V4.5.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Runtime.Serialization" />
......@@ -55,7 +58,9 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="BocomFeature.cs" />
<Compile Include="Configs.cs" />
<Compile Include="Extension.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Sdk\BizContent.cs" />
<Compile Include="Sdk\BocomApiException.cs" />
......@@ -71,22 +76,28 @@
<Compile Include="Sdk\DefaultBocomClient.cs" />
<Compile Include="Sdk\request\AddContractOrderRequestV2.cs" />
<Compile Include="Sdk\request\BJPTBlCustAccountQueryRequestV1.cs" />
<Compile Include="Sdk\request\DelContractOrderRequestV1.cs" />
<Compile Include="Sdk\request\FileUploadRequestV1.cs" />
<Compile Include="Sdk\request\HmdLoanStatusListFileDownloadRequestV1.cs" />
<Compile Include="Sdk\request\IntegralExchangeCheckRequestV1.cs" />
<Compile Include="Sdk\request\IntegralExchangeCreateUrlRequestV1.cs" />
<Compile Include="Sdk\request\MPNG210001RequestV1.cs" />
<Compile Include="Sdk\request\QueryContractOrderRequestV2.cs" />
<Compile Include="Sdk\request\ScfCreateUrlRequestV1.cs" />
<Compile Include="Sdk\request\UnWriteOffRequestV1.cs" />
<Compile Include="Sdk\request\WriteOffResultRequestV2.cs" />
<Compile Include="Sdk\response\AddContractOrderResponseV2.cs" />
<Compile Include="Sdk\response\BJPTBlCustAccountQueryResponseV1.cs" />
<Compile Include="Sdk\response\DelContractOrderResponseV1.cs" />
<Compile Include="Sdk\response\FileDownloadResponseV1.cs" />
<Compile Include="Sdk\response\FileUploadResponseV1.cs" />
<Compile Include="Sdk\response\IntegralExchangeCheckResponseV1.cs" />
<Compile Include="Sdk\response\IntegralExchangeCreateUrlResponseV1.cs" />
<Compile Include="Sdk\response\IntegralExchangeNotifyResponseV1.cs" />
<Compile Include="Sdk\response\MPNG210001ResponseV1.cs" />
<Compile Include="Sdk\response\QueryContractOrderResponseV2.cs" />
<Compile Include="Sdk\response\ScfCreateUrlResponseV1.cs" />
<Compile Include="Sdk\response\UnWriteOffResponseV1.cs" />
<Compile Include="Sdk\response\WriteOffResultResponseV2.cs" />
<Compile Include="Sdk\security\crypt\AESCryptor.cs" />
<Compile Include="Sdk\security\crypt\RSACryptor.cs" />
......@@ -112,9 +123,17 @@
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
<Compile Include="Transforms\Request.Injection.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="Sdk\Dll\BouncyCastle.Crypto.dll" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Kivii.K5\Kivii.Biz.Finances.V2.0\Src\Kivii.Biz.Finances.V2.0.csproj">
<Project>{8d9479e9-5c4f-4d96-8bc1-c771be0d91b1}</Project>
<Name>Kivii.Biz.Finances.V2.0</Name>
<Private>False</Private>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
\ No newline at end of file
using System;
using Com.Bocom.OpenApi;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
namespace Njzj.Bocoms.Openapis.Sdk.request
namespace Com.Bocom.OpenApi
{
internal class AddContractOrderRequestV2
/// <summary>
/// 1.4 新增账单
/// 1.4.1 功能描述:
/// 智慧记账产品新增账单接口,支持常规账单和框架性协议账单创建。
/// </summary>
public class AddContractOrderRequestV2 : BocomRequest<AddContractOrderResponseV2>
{
public override Type GetResponseClass()
{
return typeof(AddContractOrderResponseV2);
}
public override bool IsNeedEncrypt()
{
return false;
}
public override string GetMethod()
{
return "POST";
}
public override Type GetBizContentClass()
{
return typeof(AddContractOrderRequestV2Biz);
}
[DataContract]
public class AddContractOrderRequestV2Biz : BizContent
{
/// <summary>
/// 机构编号 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("org_id") private String orgId;
//internal string orgId;
[DataMember]
public string org_id { get; set; }
/// <summary>
/// 批次号 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("bat_id") private String batId;
//internal string batId;
[DataMember]
public string bat_id { get; set; }
/// <summary>
/// "" </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("cont_order_list") private java.util.List<ContOrder> contOrderList;
//internal List<ContOrder> contOrderList;
[DataMember]
public List<ContOrder> cont_order_list { get; set; }
public class ContOrder
{
/// <summary>
/// 合同号 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("cont_id") private String contId;
//internal string contId;
public string cont_id { get; set; }
/// <summary>
/// 机构编号 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("org_id") private String orgId;
//internal string orgId;
public string org_id { get; set; }
/// <summary>
/// 应付款人 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("ori_payer") private String oriPayer;
//internal string oriPayer;
public string ori_payer { get; set; }
/// <summary>
/// 应付款人账号 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("ori_ac") private String oriAc;
//internal string oriAc;
public string ori_ac { get; set; }
/// <summary>
/// 应付款人地址 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("ori_addr") private String oriAddr;
//internal string oriAddr;
public string ori_addr { get; set; }
/// <summary>
/// 应付款人联系电话 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("ori_tel_no") private String oriTelNo;
//internal string oriTelNo;
public string ori_tel_no { get; set; }
/// <summary>
/// 应付款人其他信息1 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("ori_other_info1") private String oriOtherInfo1;
//internal string oriOtherInfo1;
public string ori_other_info1 { get; set; }
/// <summary>
/// 应付款人其他信息2 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("ori_other_info2") private String oriOtherInfo2;
//internal string oriOtherInfo2;
public string ori_other_info2 { get; set; }
/// <summary>
/// 应付款人其他信息3 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("ori_other_info3") private String oriOtherInfo3;
//internal string oriOtherInfo3;
public string ori_other_info3 { get; set; }
/// <summary>
/// 费项名称 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("ori_itm_nme") private String oriItmNme;
//internal string oriItmNme;
public string ori_itm_nme { get; set; }
/// <summary>
/// 应付金额 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("ori_amt") private String oriAmt;
//internal string oriAmt;
public string ori_amt { get; set; }
/// <summary>
/// 减免金额 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("ori_offset_amt") private String oriOffsetAmt;
//internal string oriOffsetAmt;
public string ori_offset_amt { get; set; }
/// <summary>
/// 实际应付金额 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("ori_act_amt") private String oriActAmt;
//internal string oriActAmt;
public string ori_act_amt { get; set; }
/// <summary>
/// 附言码 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("attach_code") private String attachCode;
//internal string attachCode;
public string attach_code { get; set; }
/// <summary>
/// 备注 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("remark") private String remark;
//internal string remark;
public string remark { get; set; }
/// <summary>
/// 减免金额备注 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("offset_remark") private String offsetRemark;
//internal string offsetRemark;
public string offset_remark { get; set; }
/// <summary>
/// 部门名称 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("dept") private String dept;
//internal string dept;
public string dept { get; set; }
/// <summary>
/// 账期 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("payment_period") private String paymentPeriod;
//internal string paymentPeriod;
public string payment_period { get; set; }
/// <summary>
/// 核销提醒手机号 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("phone_num") private String phoneNum;
internal string phoneNum;
public string phone_num { get; set; }
/// <summary>
/// 框架性协议类型
/// -1: 非框架性协议;
/// 1: 非足额自动部分核销协议
/// </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("agreement_type") private String agreementType;
//internal string agreementType;
public string agreement_type { get; set; }
}
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System;
using Com.Bocom.OpenApi;
using System.Runtime.Serialization;
namespace Com.Bocom.OpenApi
{
/// <summary>
/// 1.10 删除账单
/// </summary>
public class DelContractOrderRequestV1 : BocomRequest<DelContractOrderResponseV1>
{
public override Type GetResponseClass()
{
return typeof(DelContractOrderResponseV1);
}
public override bool IsNeedEncrypt()
{
return false;
}
public override string GetMethod()
{
return "POST";
}
public override Type GetBizContentClass()
{
return typeof(DelContractOrderRequestV1Biz);
}
[DataContract]
public class DelContractOrderRequestV1Biz : BizContent
{
/// <summary>
/// 机构编号 </summary>
[DataMember]
public string org_id { get; set; }
/// <summary>
/// 账单编号 </summary>
[DataMember]
public string bill_id { get; set; }
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
namespace Com.Bocom.OpenApi
{
public class MPNG210001RequestV1 : BocomRequest<MPNG210001ResponseV1>
{
public override Type GetResponseClass()
{
return typeof(MPNG210001ResponseV1);
}
public override bool IsNeedEncrypt()
{
return false;
}
public override string GetMethod()
{
return "POST";
}
public override Type GetBizContentClass()
{
return typeof(MPNG210001RequestV1Biz);
}
[DataContract]
public class MPNG210001RequestV1Biz : BizContent
{
[DataMember]
public ReqHead req_head { get; set; }
[DataMember]
public ReqBody req_body { get; set; }
public class ReqHead
{
/// <summary>
/// 交易时间 yyyymmddhhmmss </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("trans_time") private String transTime;
//internal string transTime;
public string trans_time { get; set; }
/// <summary>
/// 版本信息 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("version") private String version;
public string version { get; set; }
}
public class ReqBody
{
/// <summary>
/// "商户分账信息" </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("royalty_info") private java.util.List<RoyaltyInfo> royaltyInfo;
public List<RoyaltyInfo> royalty_info { get; set; }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("valid_period") private String validPeriod;
public string valid_period { get; set; }
/// <summary>
/// 交易场景 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("tran_scene") private String tranScene;
public string tran_scene { get; set; }
/// <summary>
/// 终端号 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("terminal_info") private String terminalInfo;
public string terminal_info { get; set; }
/// <summary>
/// 商户编号 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("mer_ptc_id") private String merPtcId;
public string mer_ptc_id { get; set; }
/// <summary>
/// 商户侧交易时间 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("mer_trade_time") private String merTradeTime;
public string mer_trade_time { get; set; }
/// <summary>
/// 后台通知地址 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("notify_url") private String notifyUrl;
public string notify_url { get; set; }
/// <summary>
/// 经纬度信息 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("location_id") private String locationId;
public string location_id { get; set; }
/// <summary>
/// 商户侧交易日期 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("mer_trade_date") private String merTradeDate;
public string mer_trade_date { get; set; }
/// <summary>
/// 门店编号 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("shop_id") private String shopId;
public string shop_id { get; set; }
/// <summary>
/// "服务商分润信息" </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("fee_split_info") private FeeSplitInfo feeSplitInfo;
public FeeSplitInfo fee_split_info { get; set; }
//* 服务商编号
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("partner_id") private String partnerId;
public string partner_id { get; set; }
/// <summary>
/// 商户交易编号 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("pay_mer_tran_no") private String payMerTranNo;
public string pay_mer_tran_no { get; set; }
/// <summary>
/// 不带报文的前台跳转地址 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("jump_url") private String jumpUrl;
public string jump_url { get; set; }
/// <summary>
/// 商户内部备注 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("mer_memo") private String merMemo;
public string mer_memo { get; set; }
/// <summary>
/// 商户订单总金额 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("total_amount") private String totalAmount;
public string total_amount { get; set; }
/// <summary>
/// "额外返回的属性" </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("require_fields") private java.util.List<RequireFields> requireFields;
public List<RequireFields> require_fields { get; set; }
//* 线上或线下
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("location") private String location;
public string location { get; set; }
/// <summary>
/// 币种 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("currency") private String currency;
public string currency { get; set; }
/// <summary>
/// 交易内容 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("tran_content") private String tranContent;
public string tran_content { get; set; }
public class RoyaltyInfo
{
/// <summary>
/// 分账金额 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("amount") private String amount;
public string amount { get; set; }
/// <summary>
/// 分账的序号 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("serial_no") private String serialNo;
public string serial_no { get; set; }
}
public class FeeSplitInfo
{
/// <summary>
/// 服务商分润金额 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("partner_amount") private String partnerAmount;
public string partner_amount { get; set; }
/// <summary>
/// 商户结算金额 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("mer_amount") private String merAmount;
public string mer_amount { get; set; }
}
public class RequireFields
{
/// <summary>
/// 额外返回的属性 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("require_field") private String requireField;
public string require_field { get; set; }
}
}
}
}
}
......@@ -11,6 +11,10 @@ using System.Threading.Tasks;
namespace Com.Bocom.OpenApi
{
/// <summary>
/// 1.2 账单查询
/// 智慧记账产品查询账单接口,支持常规账单和框架性协议账单查询。
/// </summary>
public class QueryContractOrderRequestV2 : BocomRequest<QueryContractOrderResponseV2>
{
/// <summary>
......
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
namespace Com.Bocom.OpenApi
{
/// <summary>
/// 1.9 取消核销
/// </summary>
public class UnWriteOffRequestV1 : BocomRequest<UnWriteOffResponseV1>
{
public override Type GetResponseClass()
{
return typeof(UnWriteOffResponseV1);
}
public override bool IsNeedEncrypt()
{
return false;
}
public override string GetMethod()
{
return "POST";
}
public override Type GetBizContentClass()
{
return typeof(UnWriteOffRequestV1Biz);
}
[DataContract]
public class UnWriteOffRequestV1Biz : BizContent
{
/// <summary>
/// 机构编号 </summary>
[DataMember]
public string org_id { get; set; }
/// <summary>
/// 账单编号 </summary>
[DataMember]
public string bill_id { get; set; }
}
}
}
......@@ -3,12 +3,19 @@ using Kivii.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
using static Com.Bocom.OpenApi.QueryContractOrderRequestV2;
namespace Com.Bocom.OpenApi
{
/// <summary>
/// 1.1 账单核销结果查询
/// 1.1.1 功能描述:
/// 智慧记账产品账单核销结果查询接口,获取账单和流水的核销结果。
/// </summary>
public class WriteOffResultRequestV2 : BocomRequest<WriteOffResultResponseV2>
{
......@@ -44,6 +51,7 @@ namespace Com.Bocom.OpenApi
return typeof(WriteOffResultRequestV2Biz);
}
[DataContract]
public class WriteOffResultRequestV2Biz : BizContent
{
......@@ -51,44 +59,44 @@ namespace Com.Bocom.OpenApi
/// 机构编号 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("org_id") private String orgId;
[Alias("org_id")]
public string orgId { get; set; }
[DataMember]
public string org_id { get; set; }
/// <summary>
/// 子机构编号 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("sub_org_id") private String subOrgId;
//internal string subOrgId;
[Alias("sub_org_id")]
public string subOrgId { get; set; }
[DataMember]
public string sub_org_id { get; set; }
/// <summary>
/// 核销日期 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("write_off_dte") private String writeOffDte;
//internal string writeOffDte;
[Alias("write_off_dte")]
public string writeOffDte { get; set; }
[DataMember]
public string write_off_dte { get; set; }
/// <summary>
/// 核销编号 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("write_off_no") private String writeOffNo;
//internal string writeOffNo;
[Alias("write_off_no")]
public string writeOffNo { get; set; }
[DataMember]
public string write_off_no { get; set; }
/// <summary>
/// 页数 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("pageablerequest_pagenum") private String pageablerequestPagenum;
//internal string pageablerequestPagenum;
[Alias("pageablerequest_pagenum")]
public string pageablerequestPagenum { get; set; }
[DataMember]
public string pageablerequest_pagenum { get; set; }
/// <summary>
/// 每页显示数据数 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("pageablerequest_pagesize") private String pageablerequestPagesize;
//internal string pageablerequestPagesize;
[Alias("pageablerequest_pagesize")]
public string pageablerequestPagesize { get; set; }
[DataMember]
public string pageablerequest_pagesize { get; set; }
}
}
......
using System;
using Com.Bocom.OpenApi;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Njzj.Bocoms.Openapis.Sdk.response
namespace Com.Bocom.OpenApi
{
internal class AddContractOrderResponseV2
public class AddContractOrderResponseV2 : BocomResponse
{
/// <summary>
/// "" </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("cont_order_detail_list") private java.util.List<ContOrderDetail> contOrderDetailList;
public List<ContOrderDetail> cont_order_detail_list { get; set; }
public class ContOrderDetail
{
/// <summary>
/// 账单编号 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("bill_id") private String billId;
//internal string billId;
public string bill_id { get; set; }
/// <summary>
/// 批次号 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("bat_id") private String batId;
//internal string batId;
public string bat_id { get; set; }
/// <summary>
/// 合同号 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("cont_id") private String contId;
//internal string contId;
public string cont_id { get; set; }
/// <summary>
/// 机构编号 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("org_id") private String orgId;
//internal string orgId;
public string org_id { get; set; }
/// <summary>
/// 应付款人 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("ori_payer") private String oriPayer;
//internal string oriPayer;
public string ori_payer { get; set; }
/// <summary>
/// 应付款人账号 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("ori_ac") private String oriAc;
//internal string oriAc;
public string ori_ac { get; set; }
/// <summary>
/// 应付款人地址 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("ori_addr") private String oriAddr;
//internal string oriAddr;
public string ori_addr { get; set; }
/// <summary>
/// 应付款人联系电话 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("ori_tel_no") private String oriTelNo;
//internal string oriTelNo;
public string ori_tel_no { get; set; }
/// <summary>
/// 应付款人其他信息1 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("ori_other_info1") private String oriOtherInfo1;
//internal string oriOtherInfo1;
public string ori_other_info1 { get; set; }
/// <summary>
/// 应付款人其他信息2 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("ori_other_info2") private String oriOtherInfo2;
//internal string oriOtherInfo2;
public string ori_other_info2 { get; set; }
/// <summary>
/// 应付款人其他信息3 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("ori_other_info3") private String oriOtherInfo3;
//internal string oriOtherInfo3;
public string ori_other_info3 { get; set; }
/// <summary>
/// 费项名称 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("ori_itm_nme") private String oriItmNme;
//internal string oriItmNme;
public string ori_itm_nme { get; set; }
/// <summary>
/// 应付金额 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("ori_amt") private String oriAmt;
//internal string oriAmt;
public string ori_amt { get; set; }
/// <summary>
/// 减免金额 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("ori_offset_amt") private String oriOffsetAmt;
//internal string oriOffsetAmt;
public string ori_offset_amt { get; set; }
/// <summary>
/// 实际应付金额 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("ori_act_amt") private String oriActAmt;
//internal string oriActAmt;
public string ori_act_amt { get; set; }
/// <summary>
/// 已付金额 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("paid_amt") private String paidAmt;
//internal string paidAmt;
public string paid_amt { get; set; }
/// <summary>
/// 附言码 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("attach_code") private String attachCode;
//internal string attachCode;
public string attach_code { get; set; }
/// <summary>
/// 创建日期 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("cre_dte") private String creDte;
//internal string creDte;
public string cre_dte { get; set; }
/// <summary>
/// 备注 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("remark") private String remark;
//internal string remark;
public string remark { get; set; }
/// <summary>
/// 减免金额备注 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("offset_remark") private String offsetRemark;
//internal string offsetRemark;
public string offset_remark { get; set; }
/// <summary>
/// 部门名称 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("dept") private String dept;
//internal string dept;
public string dept { get; set; }
/// <summary>
/// 核销状态
/// 01-已核销;
/// 02-核销待确认
/// </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("write_off_state") private String writeOffState;
//internal string writeOffState;
public string write_off_state { get; set; }
/// <summary>
/// 核销金额 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("write_off_amt") private String writeOffAmt;
//internal string writeOffAmt;
public string write_off_amt { get; set; }
/// <summary>
/// 账期 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("payment_period") private String paymentPeriod;
//internal string paymentPeriod;
public string payment_period { get; set; }
/// <summary>
/// 核销提醒手机号 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("phone_num") private String phoneNum;
//internal string phoneNum;
public string phone_num { get; set; }
/// <summary>
/// 框架性协议类型
/// -1: 非框架性协议;
/// 1: 非足额自动部分核销协议
/// </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("agreement_type") private String agreementType;
//internal string agreementType;
public string agreement_type { get; set; }
/// <summary>
/// 账单核销状态
/// 01-未核销;
/// 02-部分核销;
/// 03-全额核销;
/// 04-失效
/// </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("bill_wo_state") private String billWoState;
//internal string billWoState;
public string bill_wo_state { get; set; }
/// <summary>
/// 操作结果
/// F-失败;
/// S-成功
/// </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("opr_result") private String oprResult;
//internal string oprResult;
public string opr_result { get; set; }
/// <summary>
/// 失败原因 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("fail_reason") private String failReason;
//internal string failReason;
public string fail_reason { get; set; }
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Com.Bocom.OpenApi
{
public class DelContractOrderResponseV1: BocomResponse
{
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Com.Bocom.OpenApi
{
public class MPNG210001ResponseV1 : BocomResponse
{
/// <summary>
/// "rsp_body" </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("rsp_body") private RspBody rspBody;
public RspBody rsp_body { get; set; }
//* "rsp_head"
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("rsp_head") private RspHead rspHead;
public RspHead rsp_head { get; set; }
public class RspHead
{
/// <summary>
/// 交易标识 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("trans_code") private String transCode;
public string trans_code { get; set; }
/// <summary>
/// 返回码 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("response_code") private String responseCode;
public string response_code { get; set; }
/// <summary>
/// 交易状态 P-处理中 F-失败 S-成功 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("response_status") private String responseStatus;
public string response_status { get; set; }
/// <summary>
/// 响应时间 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("response_time") private String responseTime;
public string response_time { get; set; }
/// <summary>
/// 返回码描述 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("response_msg") private String responseMsg;
public string response_msg { get; set; }
}
public class RspBody
{
/// <summary>
/// 门店识别号 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("shop_id") private String shopId;
public string shop_id { get; set; }
/// <summary>
/// 商户交易编号 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("pay_mer_tran_no") private String payMerTranNo;
public string pay_mer_tran_no { get; set; }
/// <summary>
/// 收款二维码文本 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("display_code_text") private String displayCodeText;
public string display_code_text { get; set; }
}
}
}
......@@ -6,138 +6,75 @@ namespace Com.Bocom.OpenApi
{
/// <summary>
/// 账单编号 </summary>
[Alias("contorderdetaillist_billid")]
public string contorderdetaillist_billid { get; set; }
/// <summary>
/// 批次号 </summary>
[Alias("contorderdetaillist_batid")]
public string contorderdetaillist_batid { get; set; }
/// <summary>
/// 合同号 </summary>
[Alias("contorderdetaillist_contid")]
public string contorderdetaillist_contid;
public string contorderdetaillist_contid { get; set; }
/// <summary>
/// 机构编号 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("contorderdetaillist_orgid") private String contorderdetaillistOrgid;
//private string contorderdetaillistOrgid;
[Alias("contorderdetaillist_orgid")]
public string contorderdetaillist_orgid;
public string contorderdetaillist_orgid { get; set; }
/// <summary>
/// 应付款人 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("contorderdetaillist_oripayer") private String contorderdetaillistOripayer;
//private string contorderdetaillistOripayer;
[Alias("contorderdetaillist_oripayer")]
public string contorderdetaillist_oripayer;
public string contorderdetaillist_oripayer { get; set; }
/// <summary>
/// 应付款人账号 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("contorderdetaillist_oriac") private String contorderdetaillistOriac;
//private string contorderdetaillistOriac;
[Alias("contorderdetaillist_oriac")]
public string contorderdetaillist_oriac;
public string contorderdetaillist_oriac { get; set; }
/// <summary>
/// 应付款人地址 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("contorderdetaillist_oriaddr") private String contorderdetaillistOriaddr;
//private string contorderdetaillistOriaddr;
[Alias("contorderdetaillist_oriaddr")]
public string contorderdetaillist_oriaddr;
public string contorderdetaillist_oriaddr { get; set; }
/// <summary>
/// 应付款人联系电话 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("contorderdetaillist_oritelno") private String contorderdetaillistOritelno;
//private string contorderdetaillistOritelno;
[Alias("contorderdetaillist_oritelno")]
public string contorderdetaillist_oritelno;
public string contorderdetaillist_oritelno { get; set; }
/// <summary>
/// 应付款人其他信息1 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("contorderdetaillist_oriotherinfo1") private String contorderdetaillistOriotherinfo1;
//private string contorderdetaillistOriotherinfo1;
[Alias("contorderdetaillist_oriotherinfo1")]
public string contorderdetaillist_oriotherinfo1;
public string contorderdetaillist_oriotherinfo1 { get; set; }
/// <summary>
/// 应付款人其他信息2 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("contorderdetaillist_oriotherinfo2") private String contorderdetaillistOriotherinfo2;
//private string contorderdetaillistOriotherinfo2;
[Alias("contorderdetaillist_oriotherinfo2")]
public string contorderdetaillist_oriotherinfo2;
public string contorderdetaillist_oriotherinfo2 { get; set; }
/// <summary>
/// 应付款人其他信息3 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("contorderdetaillist_oriotherinfo3") private String contorderdetaillistOriotherinfo3;
//private string contorderdetaillistOriotherinfo3;
[Alias("contorderdetaillist_oriotherinfo3")]
public string contorderdetaillist_oriotherinfo3;
public string contorderdetaillist_oriotherinfo3 { get; set; }
/// <summary>
/// 费项名称 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("contorderdetaillist_oriitmnme") private String contorderdetaillistOriitmnme;
//private string contorderdetaillistOriitmnme;
[Alias("contorderdetaillist_oriitmnme")]
public string contorderdetaillist_oriitmnme;
public string contorderdetaillist_oriitmnme { get; set; }
/// <summary>
/// 费项类型 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("contorderdetaillist_oriitmtype") private String contorderdetaillistOriitmtype;
//private string contorderdetaillistOriitmtype;
[Alias("contorderdetaillist_oriitmtype")]
public string contorderdetaillist_oriitmtype;
public string contorderdetaillist_oriitmtype { get; set; }
/// <summary>
/// 应付金额 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("contorderdetaillist_oriamt") private String contorderdetaillistOriamt;
//private string contorderdetaillistOriamt;
[Alias("contorderdetaillist_oriamt")]
public string contorderdetaillist_oriamt;
public string contorderdetaillist_oriamt { get; set; }
/// <summary>
/// 减免金额 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("contorderdetaillist_orioffsetamt") private String contorderdetaillistOrioffsetamt;
//private string contorderdetaillistOrioffsetamt;
[Alias("contorderdetaillist_orioffsetamt")]
public string contorderdetaillist_orioffsetamt;
public string contorderdetaillist_orioffsetamt { get; set; }
/// <summary>
/// 实际应付金额 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("contorderdetaillist_oriactamt") private String contorderdetaillistOriactamt;
//private string contorderdetaillistOriactamt;
[Alias("contorderdetaillist_oriactamt")]
public string contorderdetaillist_oriactamt;
public string contorderdetaillist_oriactamt { get; set; }
/// <summary>
/// 已付金额 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("contorderdetaillist_paidamt") private String contorderdetaillistPaidamt;
//private string contorderdetaillistPaidamt;
[Alias("contorderdetaillist_paidamt")]
public string contorderdetaillist_paidamt;
public string contorderdetaillist_paidamt { get; set; }
/// <summary>
/// 附言码 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("contorderdetaillist_attachcode") private String contorderdetaillistAttachcode;
//private string contorderdetaillistAttachcode;
[Alias("contorderdetaillist_attachcode")]
public string contorderdetaillist_attachcode;
public string contorderdetaillist_attachcode { get; set; }
/// <summary>
/// 补录方式
......@@ -150,86 +87,46 @@ namespace Com.Bocom.OpenApi
/// 07-商承;
/// 08-其他
/// </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("contorderdetaillist_addttype") private String contorderdetaillistAddttype;
//private string contorderdetaillistAddttype;
[Alias("contorderdetaillist_addttype")]
public string contorderdetaillist_addttype;
public string contorderdetaillist_addttype { get; set; }
/// <summary>
/// 补录金额 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("contorderdetaillist_addtamt") private String contorderdetaillistAddtamt;
//private string contorderdetaillistAddtamt;
[Alias("contorderdetaillist_addtamt")]
public string contorderdetaillist_addtamt;
public string contorderdetaillist_addtamt { get; set; }
/// <summary>
/// 补录日期 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("contorderdetaillist_addtdat") private String contorderdetaillistAddtdat;
//private string contorderdetaillistAddtdat;
[Alias("contorderdetaillist_addtdat")]
public string contorderdetaillist_addtdat;
public string contorderdetaillist_addtdat { get; set; }
/// <summary>
/// 补录人 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("contorderdetaillist_addtstaff") private String contorderdetaillistAddtstaff;
//private string contorderdetaillistAddtstaff;
[Alias("contorderdetaillist_addtstaff")]
public string contorderdetaillist_addtstaff;
public string contorderdetaillist_addtstaff { get; set; }
/// <summary>
/// 创建日期 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("contorderdetaillist_credte") private String contorderdetaillistCredte;
//private string contorderdetaillistCredte;
[Alias("contorderdetaillist_credte")]
public string contorderdetaillist_credte;
public string contorderdetaillist_credte { get; set; }
/// <summary>
/// 创建人 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("contorderdetaillist_creusr") private String contorderdetaillistCreusr;
//private string contorderdetaillistCreusr;
[Alias("contorderdetaillist_creusr")]
public string contorderdetaillist_creusr;
public string contorderdetaillist_creusr { get; set; }
/// <summary>
/// 备注 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("contorderdetaillist_remark") private String contorderdetaillistRemark;
//private string contorderdetaillistRemark;
[Alias("contorderdetaillist_remark")]
public string contorderdetaillist_remark;
public string contorderdetaillist_remark { get; set; }
/// <summary>
/// 减免金额备注 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("contorderdetaillist_offsetremark") private String contorderdetaillistOffsetremark;
//private string contorderdetaillistOffsetremark;
[Alias("contorderdetaillist_offsetremark")]
public string contorderdetaillist_offsetremark;
public string contorderdetaillist_offsetremark { get; set; }
/// <summary>
/// 部门名称 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("contorderdetaillist_dept") private String contorderdetaillistDept;
//private string contorderdetaillistDept;
[Alias("contorderdetaillist_dept")]
public string contorderdetaillist_dept;
public string contorderdetaillist_dept { get; set; }
/// <summary>
/// 核销状态
/// 01-已核销;
/// 02-核销待确认
/// </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("contorderdetaillist_writeoffstate") private String contorderdetaillistWriteoffstate;
//private string contorderdetaillistWriteoffstate;
[Alias("contorderdetaillist_writeoffstate")]
public string contorderdetaillist_writeoffstate;
public string contorderdetaillist_writeoffstate { get; set; }
/// <summary>
/// 核销方式
......@@ -242,54 +139,31 @@ namespace Com.Bocom.OpenApi
/// 07-商承;
/// 08-其他
/// </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("contorderdetaillist_writeofftype") private String contorderdetaillistWriteofftype;
//private string contorderdetaillistWriteofftype;
[Alias("contorderdetaillist_writeofftype")]
public string contorderdetaillist_writeofftype;
public string contorderdetaillist_writeofftype { get; set; }
/// <summary>
/// 核销日期 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("contorderdetaillist_writeoffdte") private String contorderdetaillistWriteoffdte;
//private string contorderdetaillistWriteoffdte;
[Alias("contorderdetaillist_writeoffdte")]
public string contorderdetaillist_writeoffdte;
public string contorderdetaillist_writeoffdte { get; set; }
/// <summary>
/// 核销金额 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("contorderdetaillist_writeoffamt") private String contorderdetaillistWriteoffamt;
//private string contorderdetaillistWriteoffamt;
[Alias("contorderdetaillist_writeoffamt")]
public string contorderdetaillist_writeoffamt;
public string contorderdetaillist_writeoffamt { get; set; }
/// <summary>
/// 账期 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("contorderdetaillist_paymentperiod") private String contorderdetaillistPaymentperiod;
//private string contorderdetaillistPaymentperiod;
[Alias("contorderdetaillist_paymentperiod")]
public string contorderdetaillist_paymentperiod;
public string contorderdetaillist_paymentperiod { get; set; }
/// <summary>
/// 核销提醒手机号 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("contorderdetaillist_phonenum") private String contorderdetaillistPhonenum;
//private string contorderdetaillistPhonenum;
[Alias("contorderdetaillist_phonenum")]
public string contorderdetaillist_phonenum;
/// 核销提醒手机号
/// </summary>
public string contorderdetaillist_phonenum { get; set; }
/// <summary>
/// 框架性协议类型
/// -1: 非框架性协议;
/// 1: 非足额自动部分核销协议
/// </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("contorderdetaillist_agreementtype") private String contorderdetaillistAgreementtype;
//private string contorderdetaillistAgreementtype;
[Alias("contorderdetaillist_agreementtype")]
public string contorderdetaillist_agreementtype;
public string contorderdetaillist_agreementtype { get; set; }
/// <summary>
/// 账单核销状态
......@@ -298,30 +172,18 @@ namespace Com.Bocom.OpenApi
/// 03-全额核销;
/// 04-失效
/// </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("contorderdetaillist_billwostate") private String contorderdetaillistBillwostate;
//private string contorderdetaillistBillwostate;
[Alias("contorderdetaillist_billwostate")]
public string contorderdetaillist_billwostate;
public string contorderdetaillist_billwostate { get; set; }
/// <summary>
/// 操作结果
/// F-失败;
/// S-成功
/// </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("contorderdetaillist_oprresult") private String contorderdetaillistOprresult;
//private string contorderdetaillistOprresult;
[Alias("contorderdetaillist_oprresult")]
public string contorderdetaillist_oprresult;
public string contorderdetaillist_oprresult { get; set; }
/// <summary>
/// 失败原因 </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @JsonProperty("contorderdetaillist_failreason") private String contorderdetaillistFailreason;
//private string contorderdetaillistFailreason;
[Alias("contorderdetaillist_failreason")]
public string contorderdetaillist_failreason;
public string contorderdetaillist_failreason { get; set; }
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Com.Bocom.OpenApi
{
public class UnWriteOffResponseV1 : BocomResponse
{
}
}
......@@ -8,11 +8,13 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static Com.Bocom.OpenApi.AddContractOrderRequestV2.AddContractOrderRequestV2Biz;
namespace Njzj.Bocoms.Openapis.Transforms
{
public class QueryContractOrderResponseV2Test : RestfulExecution<QueryContractOrderResponseV2>
{
public string BillId { get; set; }
public override object OnExecution(IRequest req, IResponse res)
{
DefaultBocomClient client = new DefaultBocomClient(Configs.APP_ID, Configs.MY_PRIVATE_KEY, Configs.APIGW_PUBLIC_KEY, BocomConstants.ENCRYPT_TYPE_RSA_AND_AES);
......@@ -26,23 +28,21 @@ namespace Njzj.Bocoms.Openapis.Transforms
var bizContent = new QueryContractOrderRequestV2.QueryContractOrderRequestV2Biz();
bizContent.setOrgId(Configs.ORG_ID);
bizContent.setBillId("1354000420220402000000001792");
bizContent.setBillId(BillId);
request.SetBizContent(bizContent);
var json = JsonSerializer.SerializeToString(request);
var response = client.Execute(request, Guid.NewGuid().ToString().Replace("-", ""));
var rtns = new RestfulExecutionResponse<string>();
rtns.Results = new List<string>();
var rtns = new RestfulExecutionResponse<QueryContractOrderResponseV2>();
rtns.Results = new List<QueryContractOrderResponseV2>();
if (response.IsSuccess())
{
rtns.Results.Add("success");
rtns.Results.Add($"ReturnCode:{response.GetRspCode()}{Environment.NewLine}ReturnMsg:{response.GetRspMsg()}");
rtns.Results.Add(response.ToString());
var resp = response as QueryContractOrderResponseV2;
rtns.Results.Add(resp);
}
else
{
rtns.Results.Add("failed");
rtns.Results.Add($"ReturnCode:{response.GetRspCode()}{Environment.NewLine}ReturnMsg:{response.GetRspMsg()}");
throw new Exception($"ReturnCode:{response.GetRspCode()}{Environment.NewLine}ReturnMsg:{response.GetRspMsg()}");
}
return rtns;
......@@ -61,28 +61,151 @@ namespace Njzj.Bocoms.Openapis.Transforms
WriteOffResultRequestV2 request = new WriteOffResultRequestV2();
request.SetServiceUrl(Configs.APIGW_URL_ADDRESS + Configs.WriteOffResultRequestV2);
WriteOffResultRequestV2.WriteOffResultRequestV2Biz bizContent = new WriteOffResultRequestV2.WriteOffResultRequestV2Biz();
bizContent.orgId = Configs.ORG_ID;
bizContent.subOrgId = Configs.SUB_ORG_ID;
bizContent.writeOffDte = "2022-05-03";
bizContent.writeOffNo = "2022050500004";
bizContent.pageablerequestPagenum = "1";
bizContent.pageablerequestPagesize = "10";
bizContent.org_id = Configs.ORG_ID;
//bizContent.subOrgId = Configs.SUB_ORG_ID;
//bizContent.writeOffDte = "2022-05-03";
//bizContent.writeOffNo = "2022050500004";
bizContent.pageablerequest_pagenum = "1";
bizContent.pageablerequest_pagesize = "10";
request.SetBizContent(bizContent);
var response = client.Execute(request, Guid.NewGuid().ToString().Replace("-", ""));
var rtns = new RestfulExecutionResponse<string>();
rtns.Results = new List<string>();
var rtns = new RestfulExecutionResponse<WriteOffResultResponseV2>();
rtns.Results = new List<WriteOffResultResponseV2>();
if (response.IsSuccess())
{
rtns.Results.Add("success");
rtns.Results.Add($"ReturnCode:{response.GetRspCode()}{Environment.NewLine}ReturnMsg:{response.GetRspMsg()}");
rtns.Results.Add(response.ToString());
var resp = response as WriteOffResultResponseV2;
rtns.Results.Add(resp);
}
else
{
rtns.Results.Add("failed");
rtns.Results.Add($"ReturnCode:{response.GetRspCode()}{Environment.NewLine}ReturnMsg:{response.GetRspMsg()}");
throw new Exception($"ReturnCode:{response.GetRspCode()}{Environment.NewLine}ReturnMsg:{response.GetRspMsg()}");
}
return rtns;
}
}
public class AddContractOrderResponseV2Test : RestfulExecution<AddContractOrderResponseV2>
{
public override object OnExecution(IRequest req, IResponse res)
{
DefaultBocomClient client = new DefaultBocomClient(Configs.APP_ID, Configs.MY_PRIVATE_KEY, Configs.APIGW_PUBLIC_KEY, BocomConstants.ENCRYPT_TYPE_RSA_AND_AES);
/**
* 测试环境可以忽略SSL证书告警,生产环境不可忽略
*/
client.IgnoreSslHostnameVerifier();
var request = new AddContractOrderRequestV2();
request.SetServiceUrl(Configs.APIGW_URL_ADDRESS + Configs.AddContractOrderRequestV2);
var bizId = Guid.NewGuid().ToString();
var bizContent = new AddContractOrderRequestV2.AddContractOrderRequestV2Biz();
bizContent.org_id = Configs.ORG_ID;
bizContent.bat_id = bizId;
bizContent.cont_order_list = new List<ContOrder>();
var contorder=new ContOrder();
contorder.cont_id = bizId;
contorder.org_id = bizContent.org_id;
contorder.ori_payer = "业务测试公司";
contorder.ori_ac = "仅记录";
contorder.ori_addr = "仅记录";
contorder.ori_tel_no = "仅记录";
contorder.ori_other_info1 = "仅记录";
contorder.ori_other_info2 = "仅记录";
contorder.ori_other_info3 = "仅记录";
contorder.ori_itm_nme = "仅记录";
contorder.ori_amt = "5210.48";
contorder.ori_offset_amt = "210.48";
contorder.ori_act_amt = "5000";
contorder.attach_code = "";
contorder.remark = "测试";
contorder.offset_remark = "测试2";
contorder.payment_period = $"{DateTime.Now.AddMonths(-2).ToString("yyyy-MM-dd")}~{DateTime.Now.AddMonths(2).ToString("yyyy-MM-dd")}";
contorder.agreement_type = "-1";
bizContent.cont_order_list.Add(contorder);
request.SetBizContent(bizContent);
var json = JsonSerializer.SerializeToString(request);
var response = client.Execute(request, Guid.NewGuid().ToString().Replace("-", ""));
var rtns = new RestfulExecutionResponse<AddContractOrderResponseV2>();
rtns.Results = new List<AddContractOrderResponseV2>();
if (response.IsSuccess())
{
var resp = response as AddContractOrderResponseV2;
rtns.Results.Add(resp);
}
else
{
throw new Exception($"ReturnCode:{response.GetRspCode()}{Environment.NewLine}ReturnMsg:{response.GetRspMsg()}");
}
return rtns;
}
}
public class DelContractOrderResponseV1Test : RestfulExecution<DelContractOrderResponseV1>
{
public string BillId { get; set; }
public override object OnExecution(IRequest req, IResponse res)
{
DefaultBocomClient client = new DefaultBocomClient(Configs.APP_ID, Configs.MY_PRIVATE_KEY, Configs.APIGW_PUBLIC_KEY, BocomConstants.ENCRYPT_TYPE_RSA_AND_AES);
/**
* 测试环境可以忽略SSL证书告警,生产环境不可忽略
*/
client.IgnoreSslHostnameVerifier();
var request = new DelContractOrderRequestV1();
request.SetServiceUrl(Configs.APIGW_URL_ADDRESS + Configs.DelContractOrderRequestV1);
var bizContent = new DelContractOrderRequestV1.DelContractOrderRequestV1Biz();
bizContent.org_id = Configs.ORG_ID;
bizContent.bill_id = BillId;
request.SetBizContent(bizContent);
var response = client.Execute(request, Guid.NewGuid().ToString().Replace("-", ""));
var rtns = new RestfulExecutionResponse<DelContractOrderResponseV1>();
rtns.Results = new List<DelContractOrderResponseV1>();
if (response.IsSuccess())
{
var resp = response as DelContractOrderResponseV1;
rtns.Results.Add(resp);
}
else
{
throw new Exception($"ReturnCode:{response.GetRspCode()}{Environment.NewLine}ReturnMsg:{response.GetRspMsg()}");
}
return rtns;
}
}
public class UnWriteOffResponseV1Test : RestfulExecution<UnWriteOffResponseV1>
{
public string BillId { get; set; }
public override object OnExecution(IRequest req, IResponse res)
{
DefaultBocomClient client = new DefaultBocomClient(Configs.APP_ID, Configs.MY_PRIVATE_KEY, Configs.APIGW_PUBLIC_KEY, BocomConstants.ENCRYPT_TYPE_RSA_AND_AES);
/**
* 测试环境可以忽略SSL证书告警,生产环境不可忽略
*/
client.IgnoreSslHostnameVerifier();
var request = new UnWriteOffRequestV1();
request.SetServiceUrl(Configs.APIGW_URL_ADDRESS + Configs.DelContractOrderRequestV1);
var bizContent = new UnWriteOffRequestV1.UnWriteOffRequestV1Biz();
bizContent.org_id = Configs.ORG_ID;
bizContent.bill_id = BillId;
request.SetBizContent(bizContent);
var response = client.Execute(request, Guid.NewGuid().ToString().Replace("-", ""));
var rtns = new RestfulExecutionResponse<UnWriteOffResponseV1>();
rtns.Results = new List<UnWriteOffResponseV1>();
if (response.IsSuccess())
{
var resp = response as UnWriteOffResponseV1;
rtns.Results.Add(resp);
}
else
{
throw new Exception($"ReturnCode:{response.GetRspCode()}{Environment.NewLine}ReturnMsg:{response.GetRspMsg()}");
}
return rtns;
}
......
......@@ -2,4 +2,5 @@
<packages>
<package id="Kivii.Common" version="5.6.2023.4000" targetFramework="net45" />
<package id="Kivii.Core" version="5.6.2023.4140" targetFramework="net45" />
<package id="Kivii.Linq" version="5.6.2023.4200" targetFramework="net45" />
</packages>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment