Bläddra i källkod

同步 支付宝 alipay-sdk-NET-3.2.2 更新 #27

Roc 6 år sedan
förälder
incheckning
4c80dcec00
100 ändrade filer med 2508 tillägg och 495 borttagningar
  1. 48 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AOIinfo.cs
  2. 1 18
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AccDetailModel.cs
  3. 1 4
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AccPayeeInfo.cs
  4. 1 12
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AccTransDetail.cs
  5. 1 8
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AccessOrdersFeedBack.cs
  6. 1 8
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AccessOrdersFeedBackResult.cs
  7. 1 3
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AccessParams.cs
  8. 1 11
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AccessProduceOrder.cs
  9. 1 6
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AccessProduceQrcode.cs
  10. 1 21
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AccessPurchaseOrder.cs
  11. 1 12
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AccessPurchaseOrderSend.cs
  12. 1 9
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AccessPurchaseOrderSendResult.cs
  13. 1 6
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AccessReturnQrcode.cs
  14. 1 9
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AccessReturnQrcodeResult.cs
  15. 1 6
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/Account.cs
  16. 1 5
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AccountFreeze.cs
  17. 1 13
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AccountRecord.cs
  18. 103 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/Activity.cs
  19. 1 8
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/ActivityAuditDTO.cs
  20. 1 8
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/ActivityOrderDTO.cs
  21. 102 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/ActivityParticipation.cs
  22. 1 15
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/ActivityPlanInfo.cs
  23. 30 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/ActivityQueryInfo.cs
  24. 30 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/ActivityQueryResult.cs
  25. 42 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/ActivityRuleDetail.cs
  26. 42 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/ActivityShop.cs
  27. 54 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/ActivityStat.cs
  28. 37 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AdCreative.cs
  29. 55 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AdCreativeResult.cs
  30. 55 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AdGroup.cs
  31. 54 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AdMaterial.cs
  32. 54 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AdMaterialResultDTO.cs
  33. 60 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AdPlan.cs
  34. 84 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AdUser.cs
  35. 55 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AdUserQualification.cs
  36. 25 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AddPlanGroupResult.cs
  37. 7 9
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AddressInfo.cs
  38. 54 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AddressInfoKt.cs
  39. 85 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/Addresscomponent.cs
  40. 115 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AdvanceOrder.cs
  41. 1 5
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/Advert.cs
  42. 1 4
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AdvertItem.cs
  43. 1 35
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AdviceVO.cs
  44. 30 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AftAifinFireeyeOcrImageQueryModel.cs
  45. 24 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AftFinsecureRiskplusSecurityPolicyQueryModel.cs
  46. 30 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AgentOrganization.cs
  47. 24 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/Agreement.cs
  48. 1 5
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AgreementParams.cs
  49. 1 11
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AgreementSignParams.cs
  50. 1 11
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AiOcrTableContext.cs
  51. 1 4
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AiOcrTableRow.cs
  52. 1 8
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AliTrustAlipayCert.cs
  53. 1 7
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AliTrustCert.cs
  54. 1 6
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AliTrustRiskIdentify.cs
  55. 1 3
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AliTrustScore.cs
  56. 1 6
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAccount.cs
  57. 1 3
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAccountExrateAdviceAcceptModel.cs
  58. 1 4
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAccountExrateAllclientrateQueryModel.cs
  59. 1 3
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAccountExrateCollectcoreDataSendModel.cs
  60. 1 8
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAccountExratePricingNotifyModel.cs
  61. 1 3
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAccountExrateRatequeryModel.cs
  62. 1 3
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAccountExrateSentimentDataSendModel.cs
  63. 48 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAccountExrateSourcerateQueryModel.cs
  64. 1 3
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAccountExrateTraderequestCreateModel.cs
  65. 42 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAccountFinriskCompanyVerifyCreateModel.cs
  66. 42 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAccountFinriskCompanyVerifyGetModel.cs
  67. 42 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAccountFinriskGiriskrequestCreateModel.cs
  68. 1 3
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAccountFinriskInstriskmonitorKeywordsBatchqueryModel.cs
  69. 18 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAccountFinriskMarkriskDatafactorQueryModel.cs
  70. 78 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAssetCardDisburseModel.cs
  71. 1 18
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAssetCardNewtemplateCreateModel.cs
  72. 1 18
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAssetCardReturnRefundModel.cs
  73. 72 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAssetCardTransferModel.cs
  74. 1 12
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAssetPointAccountlogQueryModel.cs
  75. 1 8
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAssetPointOrderCreateModel.cs
  76. 1 3
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAssetPointOrderQueryModel.cs
  77. 1 14
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAssetVoucherprodChargeSendModel.cs
  78. 1 5
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBossBaseProcessInstanceCancelModel.cs
  79. 1 15
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBossBaseProcessInstanceCreateModel.cs
  80. 1 3
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBossBaseProcessInstanceQueryModel.cs
  81. 1 4
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBossBaseProcessSignVerifyModel.cs
  82. 1 12
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBossBaseProcessTaskProcessModel.cs
  83. 1 14
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBossCsChannelQueryModel.cs
  84. 1 3
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBossCsCssocialYqmessageQueryModel.cs
  85. 1 3
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBossCsDatacollectSendModel.cs
  86. 61 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBossFncInvoiceApplyModel.cs
  87. 163 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBossFncInvoiceBatchqueryModel.cs
  88. 18 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBossFncInvoiceQueryModel.cs
  89. 25 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBossFncInvoicereceiptBatchqueryModel.cs
  90. 42 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBossFncInvoicereceiptCreateModel.cs
  91. 145 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBossFncUserinvoiceinfoCreateModel.cs
  92. 133 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBossFncUserinvoiceinfoModifyModel.cs
  93. 18 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBossFncUserinvoiceinfoQueryModel.cs
  94. 30 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBossOrderApplyModel.cs
  95. 54 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBossOrderDiagnosisGetModel.cs
  96. 1 19
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBossProdSubmerchantCreateModel.cs
  97. 1 14
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBossProdSubmerchantModifyModel.cs
  98. 1 4
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBossProdSubmerchantQueryModel.cs
  99. 97 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBusinessItemExternalSyncModel.cs
  100. 25 0
      src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBusinessItemInventoryExternalSyncModel.cs

+ 48 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AOIinfo.cs

@@ -0,0 +1,48 @@
+using System;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// AOIinfo Data Structure.
+    /// </summary>
+    [Serializable]
+    public class AOIinfo : AlipayObject
+    {
+        /// <summary>
+        /// 所属AOI所在区域编码
+        /// </summary>
+        [JsonProperty("adcode")]
+        public string Adcode { get; set; }
+
+        /// <summary>
+        /// 所属AOI点面积,单位是平方米
+        /// </summary>
+        [JsonProperty("area")]
+        public string Area { get; set; }
+
+        /// <summary>
+        /// 输入经纬度是否在aoi面之中,取值为0时表示在AOI内,其他值表示距离AOI的距离
+        /// </summary>
+        [JsonProperty("distance")]
+        public string Distance { get; set; }
+
+        /// <summary>
+        /// 所属AOI的id
+        /// </summary>
+        [JsonProperty("id")]
+        public string Id { get; set; }
+
+        /// <summary>
+        /// 所属AOI的中心点坐标
+        /// </summary>
+        [JsonProperty("location")]
+        public string Location { get; set; }
+
+        /// <summary>
+        /// 所属AOI名称
+        /// </summary>
+        [JsonProperty("name")]
+        public string Name { get; set; }
+    }
+}

+ 1 - 18
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AccDetailModel.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,112 +13,96 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 支付宝订单号
         /// </summary>
         [JsonProperty("alipay_order_no")]
-        [XmlElement("alipay_order_no")]
         public string AlipayOrderNo { get; set; }
 
         /// <summary>
         /// 收款方身份认证信息。biz_scene=LOCAL时忽略该参数。
         /// </summary>
         [JsonProperty("cert_info")]
-        [XmlElement("cert_info")]
         public CertInfo CertInfo { get; set; }
 
         /// <summary>
         /// 明细流水号
         /// </summary>
         [JsonProperty("detail_no")]
-        [XmlElement("detail_no")]
         public string DetailNo { get; set; }
 
         /// <summary>
         /// 明细失败错误码
         /// </summary>
         [JsonProperty("error_code")]
-        [XmlElement("error_code")]
         public string ErrorCode { get; set; }
 
         /// <summary>
         /// 明细失败错误原因
         /// </summary>
         [JsonProperty("error_msg")]
-        [XmlElement("error_msg")]
         public string ErrorMsg { get; set; }
 
         /// <summary>
         /// 转账币种兑换的汇率信息。biz_scene是LOCAL场景下,该参数返回空。
         /// </summary>
         [JsonProperty("exchange_rate")]
-        [XmlElement("exchange_rate")]
         public ExchangeRate ExchangeRate { get; set; }
 
         /// <summary>
         /// 是否需要通过alipay_order_no原单据重试.  T: 需要;  F或为空: 不需要.
         /// </summary>
         [JsonProperty("need_retry")]
-        [XmlElement("need_retry")]
         public string NeedRetry { get; set; }
 
         /// <summary>
         /// 收款方信息。
         /// </summary>
         [JsonProperty("payee_info")]
-        [XmlElement("payee_info")]
         public AccPayeeInfo PayeeInfo { get; set; }
 
         /// <summary>
         /// 应付金额. 付款方应付金额.  LOCAL场景下为空.
         /// </summary>
         [JsonProperty("payment_amount")]
-        [XmlElement("payment_amount")]
         public string PaymentAmount { get; set; }
 
         /// <summary>
         /// 支付币种.付款方应付的币种, 与批次请求时的payment_currency相同.
         /// </summary>
         [JsonProperty("payment_currency")]
-        [XmlElement("payment_currency")]
         public string PaymentCurrency { get; set; }
 
         /// <summary>
         /// 备注
         /// </summary>
         [JsonProperty("remark")]
-        [XmlElement("remark")]
         public string Remark { get; set; }
 
         /// <summary>
         /// 结算金额。  收款方实际收到的金额.  biz_scene是LOCAL场景下,该参数返回空。
         /// </summary>
         [JsonProperty("settlement_amount")]
-        [XmlElement("settlement_amount")]
         public string SettlementAmount { get; set; }
 
         /// <summary>
         /// 结算币种.收款方收到的币种. LOCAL场景下为空.
         /// </summary>
         [JsonProperty("settlement_currency")]
-        [XmlElement("settlement_currency")]
         public string SettlementCurrency { get; set; }
 
         /// <summary>
         /// INIT:初始  APPLIED:已下单  DEALED:处理中  SUCCESS:处理成功  DISUSE:已废除  FAIL:处理失败  UNKNOWN:未知状态
         /// </summary>
         [JsonProperty("status")]
-        [XmlElement("status")]
         public string Status { get; set; }
 
         /// <summary>
         /// 转账金额。代发请求中指定的trans_amount.
         /// </summary>
         [JsonProperty("trans_amount")]
-        [XmlElement("trans_amount")]
         public string TransAmount { get; set; }
 
         /// <summary>
         /// 转账币种
         /// </summary>
         [JsonProperty("trans_currency")]
-        [XmlElement("trans_currency")]
         public string TransCurrency { get; set; }
     }
 }

+ 1 - 4
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AccPayeeInfo.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,14 +13,12 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 收款方电子钱包账号。
         /// </summary>
         [JsonProperty("payee_account")]
-        [XmlElement("payee_account")]
         public string PayeeAccount { get; set; }
 
         /// <summary>
         /// 收款方电子钱包持有者姓名。
         /// </summary>
         [JsonProperty("payee_name")]
-        [XmlElement("payee_name")]
         public string PayeeName { get; set; }
     }
 }

+ 1 - 12
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AccTransDetail.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,70 +13,60 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 支付宝订单号。仅付汇失败后,商户重试时填写。首次批次请求时设置为空,否则会失败。    biz_scene=LOCAL时忽略该参数。
         /// </summary>
         [JsonProperty("alipay_order_no")]
-        [XmlElement("alipay_order_no")]
         public string AlipayOrderNo { get; set; }
 
         /// <summary>
         /// 收款方身份认证信息。biz_scene=LOCAL时忽略该参数。
         /// </summary>
         [JsonProperty("cert_info")]
-        [XmlElement("cert_info")]
         public CertInfo CertInfo { get; set; }
 
         /// <summary>
         /// 明细流水号
         /// </summary>
         [JsonProperty("detail_no")]
-        [XmlElement("detail_no")]
         public string DetailNo { get; set; }
 
         /// <summary>
         /// 代发明细原始交易信息
         /// </summary>
         [JsonProperty("ori_txn_info")]
-        [XmlElement("ori_txn_info")]
         public OriTxnInfo OriTxnInfo { get; set; }
 
         /// <summary>
         /// 收款方信息
         /// </summary>
         [JsonProperty("payee_info")]
-        [XmlElement("payee_info")]
         public AccPayeeInfo PayeeInfo { get; set; }
 
         /// <summary>
         /// 资金到账时效。biz_scene=LOCAL时忽略该参数。
         /// </summary>
         [JsonProperty("reach_time")]
-        [XmlElement("reach_time")]
         public string ReachTime { get; set; }
 
         /// <summary>
         /// 转账明细备注。
         /// </summary>
         [JsonProperty("remark")]
-        [XmlElement("remark")]
         public string Remark { get; set; }
 
         /// <summary>
         /// 结算金额。biz_scene=LOCAL时忽略该参数。
         /// </summary>
         [JsonProperty("settlement_currency")]
-        [XmlElement("settlement_currency")]
         public string SettlementCurrency { get; set; }
 
         /// <summary>
         /// 转账金额
         /// </summary>
         [JsonProperty("trans_amount")]
-        [XmlElement("trans_amount")]
         public string TransAmount { get; set; }
 
         /// <summary>
         /// 转账币种, 用来修饰转账金额 trans_amount. biz_scene=LOCAL时忽略该参数。
         /// </summary>
         [JsonProperty("trans_currency")]
-        [XmlElement("trans_currency")]
         public string TransCurrency { get; set; }
     }
 }

+ 1 - 8
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AccessOrdersFeedBack.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,42 +13,36 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 错误码
         /// </summary>
         [JsonProperty("error_code")]
-        [XmlElement("error_code")]
         public string ErrorCode { get; set; }
 
         /// <summary>
         /// 错误描述
         /// </summary>
         [JsonProperty("error_desc")]
-        [XmlElement("error_desc")]
         public string ErrorDesc { get; set; }
 
         /// <summary>
         /// 反馈主键ID(生产单ID或者采购单ID或者码token)
         /// </summary>
         [JsonProperty("feedback_id")]
-        [XmlElement("feedback_id")]
         public string FeedbackId { get; set; }
 
         /// <summary>
         /// 生产单:PRODUCE_ORDER  采购单:PURCHASE_ORDER  二维码:QRCODE
         /// </summary>
         [JsonProperty("order_type")]
-        [XmlElement("order_type")]
         public string OrderType { get; set; }
 
         /// <summary>
         /// 外部单据号
         /// </summary>
         [JsonProperty("out_biz_no")]
-        [XmlElement("out_biz_no")]
         public string OutBizNo { get; set; }
 
         /// <summary>
         /// 每条记录处理结果
         /// </summary>
         [JsonProperty("success")]
-        [XmlElement("success")]
         public bool Success { get; set; }
     }
 }

+ 1 - 8
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AccessOrdersFeedBackResult.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,42 +13,36 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 错误码
         /// </summary>
         [JsonProperty("error_code")]
-        [XmlElement("error_code")]
         public string ErrorCode { get; set; }
 
         /// <summary>
         /// 错误描述
         /// </summary>
         [JsonProperty("error_desc")]
-        [XmlElement("error_desc")]
         public string ErrorDesc { get; set; }
 
         /// <summary>
         /// 反馈主键ID(生产单ID或者采购单ID或者码token)
         /// </summary>
         [JsonProperty("feedback_id")]
-        [XmlElement("feedback_id")]
         public string FeedbackId { get; set; }
 
         /// <summary>
         /// 生产单:PRODUCE_ORDER  采购单:PURCHASE_ORDER  二维码:QRCODE
         /// </summary>
         [JsonProperty("order_type")]
-        [XmlElement("order_type")]
         public string OrderType { get; set; }
 
         /// <summary>
         /// 外部单据号
         /// </summary>
         [JsonProperty("out_biz_no")]
-        [XmlElement("out_biz_no")]
         public string OutBizNo { get; set; }
 
         /// <summary>
         /// 每条记录处理结果
         /// </summary>
         [JsonProperty("success")]
-        [XmlElement("success")]
         public bool Success { get; set; }
     }
 }

+ 1 - 3
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AccessParams.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,7 +13,6 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 目前支持以下值:  1. ALIPAYAPP  (钱包h5页面签约)  2. QRCODE(扫码签约)  3. QRCODEORSMS(扫码签约或者短信签约)
         /// </summary>
         [JsonProperty("channel")]
-        [XmlElement("channel")]
         public string Channel { get; set; }
     }
 }

+ 1 - 11
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AccessProduceOrder.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,63 +13,54 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 口碑码批次号
         /// </summary>
         [JsonProperty("batch_id")]
-        [XmlElement("batch_id")]
         public string BatchId { get; set; }
 
         /// <summary>
         /// 生产单标识
         /// </summary>
         [JsonProperty("produce_order_id")]
-        [XmlElement("produce_order_id")]
         public string ProduceOrderId { get; set; }
 
         /// <summary>
         /// 生产数量
         /// </summary>
         [JsonProperty("produce_quantity")]
-        [XmlElement("produce_quantity")]
         public long ProduceQuantity { get; set; }
 
         /// <summary>
         /// 物料属性名称
         /// </summary>
         [JsonProperty("stuff_attr_name")]
-        [XmlElement("stuff_attr_name")]
         public string StuffAttrName { get; set; }
 
         /// <summary>
         /// 物料材质
         /// </summary>
         [JsonProperty("stuff_material")]
-        [XmlElement("stuff_material")]
         public string StuffMaterial { get; set; }
 
         /// <summary>
         /// 物料尺寸
         /// </summary>
         [JsonProperty("stuff_size")]
-        [XmlElement("stuff_size")]
         public string StuffSize { get; set; }
 
         /// <summary>
         /// 物料类型
         /// </summary>
         [JsonProperty("stuff_type")]
-        [XmlElement("stuff_type")]
         public string StuffType { get; set; }
 
         /// <summary>
         /// 模板唯一标识
         /// </summary>
         [JsonProperty("template_id")]
-        [XmlElement("template_id")]
         public string TemplateId { get; set; }
 
         /// <summary>
         /// 模板名称
         /// </summary>
         [JsonProperty("template_name")]
-        [XmlElement("template_name")]
         public string TemplateName { get; set; }
     }
 }

+ 1 - 6
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AccessProduceQrcode.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,28 +13,24 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 口碑码批次号
         /// </summary>
         [JsonProperty("batch_id")]
-        [XmlElement("batch_id")]
         public string BatchId { get; set; }
 
         /// <summary>
         /// 码url
         /// </summary>
         [JsonProperty("core_url")]
-        [XmlElement("core_url")]
         public string CoreUrl { get; set; }
 
         /// <summary>
         /// 生产单号
         /// </summary>
         [JsonProperty("produce_order_id")]
-        [XmlElement("produce_order_id")]
         public string ProduceOrderId { get; set; }
 
         /// <summary>
         /// 二维码编码
         /// </summary>
         [JsonProperty("qrcode")]
-        [XmlElement("qrcode")]
         public string Qrcode { get; set; }
     }
 }

+ 1 - 21
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AccessPurchaseOrder.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,133 +13,114 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 申请日期, 格式:  yyyy-MM-dd HH:mm:ss
         /// </summary>
         [JsonProperty("apply_date")]
-        [XmlElement("apply_date")]
         public string ApplyDate { get; set; }
 
         /// <summary>
         /// 申请订单明细号
         /// </summary>
         [JsonProperty("asset_item_id")]
-        [XmlElement("asset_item_id")]
         public string AssetItemId { get; set; }
 
         /// <summary>
         /// 申请订单号
         /// </summary>
         [JsonProperty("asset_order_id")]
-        [XmlElement("asset_order_id")]
         public string AssetOrderId { get; set; }
 
         /// <summary>
         /// 采购单号(订单汇总表ID)
         /// </summary>
         [JsonProperty("asset_purchase_id")]
-        [XmlElement("asset_purchase_id")]
         public string AssetPurchaseId { get; set; }
 
         /// <summary>
         /// 市
         /// </summary>
         [JsonProperty("city")]
-        [XmlElement("city")]
         public string City { get; set; }
 
         /// <summary>
         /// 数量
         /// </summary>
         [JsonProperty("count")]
-        [XmlElement("count")]
         public string Count { get; set; }
 
         /// <summary>
         /// 订单创建日期, 格式: yyyy-MM-dd HH:mm:ss
         /// </summary>
         [JsonProperty("create_date")]
-        [XmlElement("create_date")]
         public string CreateDate { get; set; }
 
         /// <summary>
         /// 区
         /// </summary>
         [JsonProperty("district")]
-        [XmlElement("district")]
         public string District { get; set; }
 
         /// <summary>
         /// 是否需要生产
         /// </summary>
         [JsonProperty("is_produce")]
-        [XmlElement("is_produce")]
         public string IsProduce { get; set; }
 
         /// <summary>
         /// 省
         /// </summary>
         [JsonProperty("province")]
-        [XmlElement("province")]
         public string Province { get; set; }
 
         /// <summary>
         /// 收货人地址
         /// </summary>
         [JsonProperty("receiver_address")]
-        [XmlElement("receiver_address")]
         public string ReceiverAddress { get; set; }
 
         /// <summary>
         /// 联系人电话
         /// </summary>
         [JsonProperty("receiver_mobile")]
-        [XmlElement("receiver_mobile")]
         public string ReceiverMobile { get; set; }
 
         /// <summary>
         /// 收货人姓名
         /// </summary>
         [JsonProperty("receiver_name")]
-        [XmlElement("receiver_name")]
         public string ReceiverName { get; set; }
 
         /// <summary>
         /// 物料类型
         /// </summary>
         [JsonProperty("stuff_attr_name")]
-        [XmlElement("stuff_attr_name")]
         public string StuffAttrName { get; set; }
 
         /// <summary>
         /// 物料材质
         /// </summary>
         [JsonProperty("stuff_material")]
-        [XmlElement("stuff_material")]
         public string StuffMaterial { get; set; }
 
         /// <summary>
         /// 物料尺寸
         /// </summary>
         [JsonProperty("stuff_size")]
-        [XmlElement("stuff_size")]
         public string StuffSize { get; set; }
 
         /// <summary>
         /// 物料属性
         /// </summary>
         [JsonProperty("stuff_type")]
-        [XmlElement("stuff_type")]
         public string StuffType { get; set; }
 
         /// <summary>
         /// 模板ID
         /// </summary>
         [JsonProperty("template_id")]
-        [XmlElement("template_id")]
         public string TemplateId { get; set; }
 
         /// <summary>
         /// 模板名称,线下约定的物料名
         /// </summary>
         [JsonProperty("template_name")]
-        [XmlElement("template_name")]
         public string TemplateName { get; set; }
     }
 }

+ 1 - 12
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AccessPurchaseOrderSend.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,70 +13,60 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 申请单明细号
         /// </summary>
         [JsonProperty("asset_item_id")]
-        [XmlElement("asset_item_id")]
         public string AssetItemId { get; set; }
 
         /// <summary>
         /// 申请单号
         /// </summary>
         [JsonProperty("asset_order_id")]
-        [XmlElement("asset_order_id")]
         public string AssetOrderId { get; set; }
 
         /// <summary>
         /// 采购单ID
         /// </summary>
         [JsonProperty("asset_purchase_id")]
-        [XmlElement("asset_purchase_id")]
         public string AssetPurchaseId { get; set; }
 
         /// <summary>
         /// 物流公司code
         /// </summary>
         [JsonProperty("express_code")]
-        [XmlElement("express_code")]
         public string ExpressCode { get; set; }
 
         /// <summary>
         /// 物流公司名称
         /// </summary>
         [JsonProperty("express_name")]
-        [XmlElement("express_name")]
         public string ExpressName { get; set; }
 
         /// <summary>
         /// 物流单号
         /// </summary>
         [JsonProperty("express_no")]
-        [XmlElement("express_no")]
         public string ExpressNo { get; set; }
 
         /// <summary>
         /// 外部单号(供应商主键标识)
         /// </summary>
         [JsonProperty("out_biz_no")]
-        [XmlElement("out_biz_no")]
         public string OutBizNo { get; set; }
 
         /// <summary>
         /// PO单号
         /// </summary>
         [JsonProperty("po_no")]
-        [XmlElement("po_no")]
         public string PoNo { get; set; }
 
         /// <summary>
         /// 回传码值数量1000(不是码物料时为0)
         /// </summary>
         [JsonProperty("return_qrcode_count")]
-        [XmlElement("return_qrcode_count")]
         public string ReturnQrcodeCount { get; set; }
 
         /// <summary>
         /// 本次发货数量
         /// </summary>
         [JsonProperty("ship_count")]
-        [XmlElement("ship_count")]
         public string ShipCount { get; set; }
     }
 }

+ 1 - 9
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AccessPurchaseOrderSendResult.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,49 +13,42 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 申请单明细号
         /// </summary>
         [JsonProperty("asset_item_id")]
-        [XmlElement("asset_item_id")]
         public string AssetItemId { get; set; }
 
         /// <summary>
         /// 申请单号
         /// </summary>
         [JsonProperty("asset_order_id")]
-        [XmlElement("asset_order_id")]
         public string AssetOrderId { get; set; }
 
         /// <summary>
         /// 采购单ID
         /// </summary>
         [JsonProperty("asset_purchase_id")]
-        [XmlElement("asset_purchase_id")]
         public string AssetPurchaseId { get; set; }
 
         /// <summary>
         /// 错误CODE
         /// </summary>
         [JsonProperty("error_code")]
-        [XmlElement("error_code")]
         public string ErrorCode { get; set; }
 
         /// <summary>
         /// 错误描述
         /// </summary>
         [JsonProperty("error_desc")]
-        [XmlElement("error_desc")]
         public string ErrorDesc { get; set; }
 
         /// <summary>
         /// 外部单号(调用方业务主键标识)
         /// </summary>
         [JsonProperty("out_biz_no")]
-        [XmlElement("out_biz_no")]
         public string OutBizNo { get; set; }
 
         /// <summary>
         /// 处理是否成功
         /// </summary>
         [JsonProperty("success")]
-        [XmlElement("success")]
         public bool Success { get; set; }
     }
 }

+ 1 - 6
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AccessReturnQrcode.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,28 +13,24 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 采购单ID
         /// </summary>
         [JsonProperty("asset_purchase_id")]
-        [XmlElement("asset_purchase_id")]
         public string AssetPurchaseId { get; set; }
 
         /// <summary>
         /// 物流单号
         /// </summary>
         [JsonProperty("express_no")]
-        [XmlElement("express_no")]
         public string ExpressNo { get; set; }
 
         /// <summary>
         /// 外部单号(调用方业务主键)
         /// </summary>
         [JsonProperty("out_biz_no")]
-        [XmlElement("out_biz_no")]
         public string OutBizNo { get; set; }
 
         /// <summary>
         /// 二维码token值
         /// </summary>
         [JsonProperty("qrcode")]
-        [XmlElement("qrcode")]
         public string Qrcode { get; set; }
     }
 }

+ 1 - 9
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AccessReturnQrcodeResult.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,49 +13,42 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 采购单ID
         /// </summary>
         [JsonProperty("asset_purchase_id")]
-        [XmlElement("asset_purchase_id")]
         public string AssetPurchaseId { get; set; }
 
         /// <summary>
         /// 错误码
         /// </summary>
         [JsonProperty("error_code")]
-        [XmlElement("error_code")]
         public string ErrorCode { get; set; }
 
         /// <summary>
         /// 错误描述
         /// </summary>
         [JsonProperty("error_desc")]
-        [XmlElement("error_desc")]
         public string ErrorDesc { get; set; }
 
         /// <summary>
         /// 物流单号
         /// </summary>
         [JsonProperty("express_no")]
-        [XmlElement("express_no")]
         public string ExpressNo { get; set; }
 
         /// <summary>
         /// 外部单号(调用方业务主键)
         /// </summary>
         [JsonProperty("out_biz_no")]
-        [XmlElement("out_biz_no")]
         public string OutBizNo { get; set; }
 
         /// <summary>
         /// 二维码token值
         /// </summary>
         [JsonProperty("qrcode")]
-        [XmlElement("qrcode")]
         public string Qrcode { get; set; }
 
         /// <summary>
         /// 处理结果(成功或失败)
         /// </summary>
         [JsonProperty("success")]
-        [XmlElement("success")]
         public bool Success { get; set; }
     }
 }

+ 1 - 6
src/Essensoft.AspNetCore.Payment.Alipay/Domain/Account.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,28 +13,24 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// json字符串,扩展信息,支付宝:alipayId,外部银行卡:银行机构名称、银行机构号(总行、支行)、对公/对私等
         /// </summary>
         [JsonProperty("account_ext")]
-        [XmlElement("account_ext")]
         public string AccountExt { get; set; }
 
         /// <summary>
         /// 账户名称,如银行账户名,支付宝手机号、email
         /// </summary>
         [JsonProperty("account_name")]
-        [XmlElement("account_name")]
         public string AccountName { get; set; }
 
         /// <summary>
         /// 资金账号,支付宝2088开头或银行卡号
         /// </summary>
         [JsonProperty("account_no")]
-        [XmlElement("account_no")]
         public string AccountNo { get; set; }
 
         /// <summary>
         /// 账户类型,ALIPAY(“ALIPAY”, “Alipay”, “支付宝账号”, “支付宝账号”),CURRENT(“CURRENT”, “MayiBank”, “网商银行账号”, “网商银行账号”),OUT_BANK(“OUT_BANK”, “OutBank”, “外部银行账号”, “外部银行账号”)
         /// </summary>
         [JsonProperty("account_type")]
-        [XmlElement("account_type")]
         public string AccountType { get; set; }
     }
 }

+ 1 - 5
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AccountFreeze.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,21 +13,18 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 冻结金额
         /// </summary>
         [JsonProperty("freeze_amount")]
-        [XmlElement("freeze_amount")]
         public string FreezeAmount { get; set; }
 
         /// <summary>
         /// 冻结类型名称
         /// </summary>
         [JsonProperty("freeze_name")]
-        [XmlElement("freeze_name")]
         public string FreezeName { get; set; }
 
         /// <summary>
         /// 冻结类型值
         /// </summary>
         [JsonProperty("freeze_type")]
-        [XmlElement("freeze_type")]
         public string FreezeType { get; set; }
     }
 }

+ 1 - 13
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AccountRecord.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,77 +13,66 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 支付宝订单号
         /// </summary>
         [JsonProperty("alipay_order_no")]
-        [XmlElement("alipay_order_no")]
         public string AlipayOrderNo { get; set; }
 
         /// <summary>
         /// 当时账户的余额
         /// </summary>
         [JsonProperty("balance")]
-        [XmlElement("balance")]
         public string Balance { get; set; }
 
         /// <summary>
         /// 业务类型
         /// </summary>
         [JsonProperty("business_type")]
-        [XmlElement("business_type")]
         public string BusinessType { get; set; }
 
         /// <summary>
         /// 创建时间
         /// </summary>
         [JsonProperty("create_time")]
-        [XmlElement("create_time")]
         public string CreateTime { get; set; }
 
         /// <summary>
         /// 收入金额
         /// </summary>
         [JsonProperty("in_amount")]
-        [XmlElement("in_amount")]
         public string InAmount { get; set; }
 
         /// <summary>
         /// 账务备注说明
         /// </summary>
         [JsonProperty("memo")]
-        [XmlElement("memo")]
         public string Memo { get; set; }
 
         /// <summary>
         /// 商户订单号
         /// </summary>
         [JsonProperty("merchant_order_no")]
-        [XmlElement("merchant_order_no")]
         public string MerchantOrderNo { get; set; }
 
         /// <summary>
         /// 对方支付宝账户ID
         /// </summary>
         [JsonProperty("opt_user_id")]
-        [XmlElement("opt_user_id")]
         public string OptUserId { get; set; }
 
         /// <summary>
         /// 支出金额
         /// </summary>
         [JsonProperty("out_amount")]
-        [XmlElement("out_amount")]
         public string OutAmount { get; set; }
 
         /// <summary>
         /// 本方支付宝账户ID
         /// </summary>
         [JsonProperty("self_user_id")]
-        [XmlElement("self_user_id")]
         public string SelfUserId { get; set; }
 
         /// <summary>
         /// 账务类型
         /// </summary>
         [JsonProperty("type")]
-        [XmlElement("type")]
         public string Type { get; set; }
     }
 }

+ 103 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/Activity.cs

@@ -0,0 +1,103 @@
+using System;
+using System.Collections.Generic;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// Activity Data Structure.
+    /// </summary>
+    [Serializable]
+    public class Activity : AlipayObject
+    {
+        /// <summary>
+        /// 活动名称,用于展示和区分活动,可重名
+        /// </summary>
+        [JsonProperty("activity_name")]
+        public string ActivityName { get; set; }
+
+        /// <summary>
+        /// 活动号
+        /// </summary>
+        [JsonProperty("activity_no")]
+        public string ActivityNo { get; set; }
+
+        /// <summary>
+        /// 芝麻信用承诺消费活动规则详情, 商户创建的活动规则, 无需脱敏。
+        /// </summary>
+        [JsonProperty("activity_rule_detail")]
+        public ActivityRuleDetail ActivityRuleDetail { get; set; }
+
+        /// <summary>
+        /// 活动门店列表信息
+        /// </summary>
+        [JsonProperty("activity_shop_list")]
+        public List<ActivityShop> ActivityShopList { get; set; }
+
+        /// <summary>
+        /// 活动统计信息, 查询如果打开开关就会有统计值
+        /// </summary>
+        [JsonProperty("activity_stat")]
+        public ActivityStat ActivityStat { get; set; }
+
+        /// <summary>
+        /// 活动状态, 一定在下列枚举中:  NOT_STARTED - 未开始  AVAILABLE - 活动中  END - 活动结束
+        /// </summary>
+        [JsonProperty("activity_status")]
+        public string ActivityStatus { get; set; }
+
+        /// <summary>
+        /// 活动品牌名称
+        /// </summary>
+        [JsonProperty("brand_name")]
+        public string BrandName { get; set; }
+
+        /// <summary>
+        /// 活动结束时间,标准时间格式:yyyy-MM-dd HH:mm:ss.
+        /// </summary>
+        [JsonProperty("end_time")]
+        public string EndTime { get; set; }
+
+        /// <summary>
+        /// 消费维度,用于核销判断,必须在如下枚举中:  MERCHANT - 商户维度  SHOP - 门店维度
+        /// </summary>
+        [JsonProperty("fulfil_dimension")]
+        public string FulfilDimension { get; set; }
+
+        /// <summary>
+        /// 开放平台接口调用者appId
+        /// </summary>
+        [JsonProperty("invoke_app_id")]
+        public string InvokeAppId { get; set; }
+
+        /// <summary>
+        /// 商户外部活动号。需确保同一个商户Id下外部活动号唯一。
+        /// </summary>
+        [JsonProperty("out_activity_no")]
+        public string OutActivityNo { get; set; }
+
+        /// <summary>
+        /// 商户Id
+        /// </summary>
+        [JsonProperty("partner_id")]
+        public string PartnerId { get; set; }
+
+        /// <summary>
+        /// 活动规则类型,在如下枚内:  CONSUME_AMOUNT -- 消费金额;  CONSUME_TIMES -- 消费次数。
+        /// </summary>
+        [JsonProperty("rule_type")]
+        public string RuleType { get; set; }
+
+        /// <summary>
+        /// 活动规则类型描述,在如下枚内:  CONSUME_AMOUNT为"消费金额";  CONSUME_TIMES为"消费次数"。
+        /// </summary>
+        [JsonProperty("rule_type_desc")]
+        public string RuleTypeDesc { get; set; }
+
+        /// <summary>
+        /// 活动开始时间,请用标准时间格式:yyyy-MM-dd HH:mm:ss
+        /// </summary>
+        [JsonProperty("start_time")]
+        public string StartTime { get; set; }
+    }
+}

+ 1 - 8
src/Essensoft.AspNetCore.Payment.Alipay/Domain/ActivityAuditDTO.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,42 +13,36 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 审核id
         /// </summary>
         [JsonProperty("audit_id")]
-        [XmlElement("audit_id")]
         public string AuditId { get; set; }
 
         /// <summary>
         /// INIT:初始化;AUDITING:审核中;REJECT:审核驳回;PASS:审核通过;CANCEL:审核撤销;FAIL:审核失败
         /// </summary>
         [JsonProperty("audit_status")]
-        [XmlElement("audit_status")]
         public string AuditStatus { get; set; }
 
         /// <summary>
         /// 操作人id
         /// </summary>
         [JsonProperty("creator_id")]
-        [XmlElement("creator_id")]
         public string CreatorId { get; set; }
 
         /// <summary>
         /// SALES:口碑内部小二;PROVIDER:外部服务商;PROVIDER_STAFF:外部服务商员工
         /// </summary>
         [JsonProperty("creator_type")]
-        [XmlElement("creator_type")]
         public string CreatorType { get; set; }
 
         /// <summary>
         /// 操作时间
         /// </summary>
         [JsonProperty("operation_time")]
-        [XmlElement("operation_time")]
         public string OperationTime { get; set; }
 
         /// <summary>
         /// 审核通过或者审核驳回的原因
         /// </summary>
         [JsonProperty("reason")]
-        [XmlElement("reason")]
         public string Reason { get; set; }
     }
 }

+ 1 - 8
src/Essensoft.AspNetCore.Payment.Alipay/Domain/ActivityOrderDTO.cs

@@ -1,6 +1,5 @@
-using System;
+using System;
 using System.Collections.Generic;
-using System.Xml.Serialization;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -15,36 +14,30 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 工单中的审核信息
         /// </summary>
         [JsonProperty("activity_audit_list")]
-        [XmlArray("activity_audit_list")]
-        [XmlArrayItem("activity_audit_d_t_o")]
         public List<ActivityAuditDTO> ActivityAuditList { get; set; }
 
         /// <summary>
         /// INIT:初始化;AUDITING:审核中;REJECT:审核驳回;PASS:审核通过;CANCEL:审核撤销;FAIL:审核失败
         /// </summary>
         [JsonProperty("audit_status")]
-        [XmlElement("audit_status")]
         public string AuditStatus { get; set; }
 
         /// <summary>
         /// 订单号
         /// </summary>
         [JsonProperty("order_id")]
-        [XmlElement("order_id")]
         public string OrderId { get; set; }
 
         /// <summary>
         /// INIT:初始化;DOING:处理中;SUCCESS:成功;FAIL:失败
         /// </summary>
         [JsonProperty("order_status")]
-        [XmlElement("order_status")]
         public string OrderStatus { get; set; }
 
         /// <summary>
         /// CAMPAIGN_CREATE_ORDER:创建工单;CAMPAIGN_ENABLE_ORDER:生效工单;CAMPAIGN_START_ORDER:启动工单;CAMPAIGN_CLOSE_ORDER:关闭工单;CAMPAIGN_FINISH_ORDER:结束工单;CAMPAIGN_DELETE_ORDER:删除工单;CAMPAIGN_MODIFY_ORDER:修改工单
         /// </summary>
         [JsonProperty("order_type")]
-        [XmlElement("order_type")]
         public string OrderType { get; set; }
     }
 }

+ 102 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/ActivityParticipation.cs

@@ -0,0 +1,102 @@
+using System;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// ActivityParticipation Data Structure.
+    /// </summary>
+    [Serializable]
+    public class ActivityParticipation : AlipayObject
+    {
+        /// <summary>
+        /// 承诺消费活动模型
+        /// </summary>
+        [JsonProperty("activity")]
+        public Activity Activity { get; set; }
+
+        /// <summary>
+        /// 商户是否可以免除用户退回优惠
+        /// </summary>
+        [JsonProperty("can_dispense")]
+        public bool CanDispense { get; set; }
+
+        /// <summary>
+        /// 合约已支付金额,只支持两位小数点的正数
+        /// </summary>
+        [JsonProperty("consumed_amount")]
+        public string ConsumedAmount { get; set; }
+
+        /// <summary>
+        /// 合约已消费次数,单位次
+        /// </summary>
+        [JsonProperty("consumed_times")]
+        public long ConsumedTimes { get; set; }
+
+        /// <summary>
+        /// 承诺合约号
+        /// </summary>
+        [JsonProperty("contract_no")]
+        public string ContractNo { get; set; }
+
+        /// <summary>
+        /// 合约状态,在下列值中:  ACT_EFFECTIVE - 生效中  ACT_PENDING_PAY - 到期未完成待支付  ACT_CANCELLED_PENDING_PAY - 用户取消合约等待支付  ACT_FINISH_NOT_EXPIRE - 已守约未到期  ACT_OVERDUE - 到期未完成已逾期  E_UNFINISH_PAID - 到期未完成已支付  E_FINISHED - 已守约  E_CANCELLED - 未到期取消
+        /// </summary>
+        [JsonProperty("contract_status")]
+        public string ContractStatus { get; set; }
+
+        /// <summary>
+        /// 合约状态描述  生效中 - ACT_EFFECTIVE  到期未完成待支付 - ACT_PENDING_PAY  用户取消合约等待支付 - ACT_CANCELLED_PENDING_PAY  已守约未到期 - ACT_FINISH_NOT_EXPIRE  到期未完成已逾期 - ACT_OVERDUE  到期未完成已支付 - E_UNFINISH_PAID  已守约 - E_FINISHED  未到期取消 - E_CANCELLED
+        /// </summary>
+        [JsonProperty("contract_status_desc")]
+        public string ContractStatusDesc { get; set; }
+
+        /// <summary>
+        /// 合约状态标签,用于展示
+        /// </summary>
+        [JsonProperty("contract_status_tag")]
+        public ContractStatusTag ContractStatusTag { get; set; }
+
+        /// <summary>
+        /// 合约已优惠总金额,只支持两位小数点的正数
+        /// </summary>
+        [JsonProperty("discount_amount")]
+        public string DiscountAmount { get; set; }
+
+        /// <summary>
+        /// 用户参加活动,即合约生效时间,标准格式:2018-12-12 00:00:00
+        /// </summary>
+        [JsonProperty("effective_time")]
+        public string EffectiveTime { get; set; }
+
+        /// <summary>
+        /// 用户参加活动逾期时间, 标准格式yyyy-MM-dd HH:mm:ss
+        /// </summary>
+        [JsonProperty("expire_time")]
+        public string ExpireTime { get; set; }
+
+        /// <summary>
+        /// 用户是否参加活动
+        /// </summary>
+        [JsonProperty("participated")]
+        public bool Participated { get; set; }
+
+        /// <summary>
+        /// 支付宝用户uid
+        /// </summary>
+        [JsonProperty("user_id")]
+        public string UserId { get; set; }
+
+        /// <summary>
+        /// 合约违约金额
+        /// </summary>
+        [JsonProperty("violation_amount")]
+        public string ViolationAmount { get; set; }
+
+        /// <summary>
+        /// 内部资产平台券是否可用
+        /// </summary>
+        [JsonProperty("voucher_available")]
+        public bool VoucherAvailable { get; set; }
+    }
+}

+ 1 - 15
src/Essensoft.AspNetCore.Payment.Alipay/Domain/ActivityPlanInfo.cs

@@ -1,6 +1,5 @@
-using System;
+using System;
 using System.Collections.Generic;
-using System.Xml.Serialization;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -15,85 +14,72 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 平台活动结束时间
         /// </summary>
         [JsonProperty("activity_end_time")]
-        [XmlElement("activity_end_time")]
         public string ActivityEndTime { get; set; }
 
         /// <summary>
         /// 平台活动开始时间
         /// </summary>
         [JsonProperty("activity_start_time")]
-        [XmlElement("activity_start_time")]
         public string ActivityStartTime { get; set; }
 
         /// <summary>
         /// 招商结束时间
         /// </summary>
         [JsonProperty("confirm_end_time")]
-        [XmlElement("confirm_end_time")]
         public string ConfirmEndTime { get; set; }
 
         /// <summary>
         /// 平台活动邀约工单号(需要在第三方活动中回传)
         /// </summary>
         [JsonProperty("invite_order_id")]
-        [XmlElement("invite_order_id")]
         public string InviteOrderId { get; set; }
 
         /// <summary>
         /// 规则描述
         /// </summary>
         [JsonProperty("plan_rule_list")]
-        [XmlArray("plan_rule_list")]
-        [XmlArrayItem("plan_rule")]
         public List<PlanRule> PlanRuleList { get; set; }
 
         /// <summary>
         /// 是个链接地址,下载后是pdf文件
         /// </summary>
         [JsonProperty("plat_activity_agreement")]
-        [XmlElement("plat_activity_agreement")]
         public string PlatActivityAgreement { get; set; }
 
         /// <summary>
         /// 平台活动id(需要在第三方方活动中回传)
         /// </summary>
         [JsonProperty("plat_activity_id")]
-        [XmlElement("plat_activity_id")]
         public string PlatActivityId { get; set; }
 
         /// <summary>
         /// 平台活动标签类型
         /// </summary>
         [JsonProperty("plat_activity_label_type")]
-        [XmlElement("plat_activity_label_type")]
         public string PlatActivityLabelType { get; set; }
 
         /// <summary>
         /// 平台活动名称
         /// </summary>
         [JsonProperty("plat_activity_name")]
-        [XmlElement("plat_activity_name")]
         public string PlatActivityName { get; set; }
 
         /// <summary>
         /// 活动规则描述
         /// </summary>
         [JsonProperty("plat_activity_rule_desc")]
-        [XmlElement("plat_activity_rule_desc")]
         public string PlatActivityRuleDesc { get; set; }
 
         /// <summary>
         /// 平台活动状态,GOING/FINISH,GOING表示招商中,FINISH表示招商已经结束(再报名活动也无法成功),只有GOING状态可以报名
         /// </summary>
         [JsonProperty("plat_activity_status")]
-        [XmlElement("plat_activity_status")]
         public string PlatActivityStatus { get; set; }
 
         /// <summary>
         /// 其他说明
         /// </summary>
         [JsonProperty("plat_other_desc")]
-        [XmlElement("plat_other_desc")]
         public string PlatOtherDesc { get; set; }
     }
 }

+ 30 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/ActivityQueryInfo.cs

@@ -0,0 +1,30 @@
+using System;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// ActivityQueryInfo Data Structure.
+    /// </summary>
+    [Serializable]
+    public class ActivityQueryInfo : AlipayObject
+    {
+        /// <summary>
+        /// 新用户活动模版
+        /// </summary>
+        [JsonProperty("new_user_template")]
+        public string NewUserTemplate { get; set; }
+
+        /// <summary>
+        /// 老用户活动模版
+        /// </summary>
+        [JsonProperty("old_user_template")]
+        public string OldUserTemplate { get; set; }
+
+        /// <summary>
+        /// 查询的小程序id
+        /// </summary>
+        [JsonProperty("query_app_id")]
+        public string QueryAppId { get; set; }
+    }
+}

+ 30 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/ActivityQueryResult.cs

@@ -0,0 +1,30 @@
+using System;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// ActivityQueryResult Data Structure.
+    /// </summary>
+    [Serializable]
+    public class ActivityQueryResult : AlipayObject
+    {
+        /// <summary>
+        /// 查询返回结果的code  biz_code与biz_msg的对应关系见下:  biz_code:OK, biz_msg:正常  biz_code:BENEFITED, biz_msg:您已领取过收藏有礼券  biz_code:BENEFITED_COUPON, biz_msg:您已领取收藏有礼券  biz_code:KEEP_OLD_USER_NO_COUPON, biz_msg:您已收藏该小程序  biz_code:CANCEL_KEEP_OLD_USER_NO_COUPON, biz_msg:您近期已收藏过该小程序  biz_code:ACTIVITY_NOT_EXIST, biz_msg:活动异常,链接失效  biz_code:NOT_START, biz_msg:活动未开始  biz_code:PAUSE, biz_msg:活动已暂停  biz_code:END, biz_msg:活动已结束  biz_code:TIMEOUT, biz_msg:活动已过期  biz_code:NO_COUPON, biz_msg:券无余量  biz_code:UNKNOWN_ERROR, biz_msg:未知异常
+        /// </summary>
+        [JsonProperty("biz_code")]
+        public string BizCode { get; set; }
+
+        /// <summary>
+        /// 对应code的中文描述
+        /// </summary>
+        [JsonProperty("biz_msg")]
+        public string BizMsg { get; set; }
+
+        /// <summary>
+        /// 查询的小程序id
+        /// </summary>
+        [JsonProperty("query_app_id")]
+        public string QueryAppId { get; set; }
+    }
+}

+ 42 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/ActivityRuleDetail.cs

@@ -0,0 +1,42 @@
+using System;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// ActivityRuleDetail Data Structure.
+    /// </summary>
+    [Serializable]
+    public class ActivityRuleDetail : AlipayObject
+    {
+        /// <summary>
+        /// 活动规则中用户承诺消费的金额,当consume_type为CONSUME_AMOUNT时启用,单位为元
+        /// </summary>
+        [JsonProperty("rule_amount")]
+        public long RuleAmount { get; set; }
+
+        /// <summary>
+        /// 活动规则中用户满足承诺可享受的优惠,单位百分,值为1-100之间,如88折传88,7折传70
+        /// </summary>
+        [JsonProperty("rule_discount")]
+        public long RuleDiscount { get; set; }
+
+        /// <summary>
+        /// 承诺消费活动规则周期,单位默认为天,如果传rule_period_unit则和unit组合。
+        /// </summary>
+        [JsonProperty("rule_period")]
+        public long RulePeriod { get; set; }
+
+        /// <summary>
+        /// YEAR - 年  MONTH - 月  WEEK - 星期  DAY - 天
+        /// </summary>
+        [JsonProperty("rule_period_unit")]
+        public string RulePeriodUnit { get; set; }
+
+        /// <summary>
+        /// 活动规则中用户承诺消费次数,当rule_type为CONSUME_TIMES时启用,单位为次。
+        /// </summary>
+        [JsonProperty("rule_times")]
+        public long RuleTimes { get; set; }
+    }
+}

+ 42 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/ActivityShop.cs

@@ -0,0 +1,42 @@
+using System;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// ActivityShop Data Structure.
+    /// </summary>
+    [Serializable]
+    public class ActivityShop : AlipayObject
+    {
+        /// <summary>
+        /// 承诺消费活动门店地址
+        /// </summary>
+        [JsonProperty("shop_address")]
+        public string ShopAddress { get; set; }
+
+        /// <summary>
+        /// 承诺消费活动门店ID
+        /// </summary>
+        [JsonProperty("shop_id")]
+        public string ShopId { get; set; }
+
+        /// <summary>
+        /// 承诺消费门店纬度
+        /// </summary>
+        [JsonProperty("shop_latitude")]
+        public string ShopLatitude { get; set; }
+
+        /// <summary>
+        /// 承诺消费门店经度信息
+        /// </summary>
+        [JsonProperty("shop_longitude")]
+        public string ShopLongitude { get; set; }
+
+        /// <summary>
+        /// 承诺消费活动门店名称
+        /// </summary>
+        [JsonProperty("shop_name")]
+        public string ShopName { get; set; }
+    }
+}

+ 54 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/ActivityStat.cs

@@ -0,0 +1,54 @@
+using System;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// ActivityStat Data Structure.
+    /// </summary>
+    [Serializable]
+    public class ActivityStat : AlipayObject
+    {
+        /// <summary>
+        /// 活动总参与人次, 即活动总共签署合约数
+        /// </summary>
+        [JsonProperty("contract_count")]
+        public long ContractCount { get; set; }
+
+        /// <summary>
+        /// 已完成的合约数(人次)
+        /// </summary>
+        [JsonProperty("finished_count")]
+        public long FinishedCount { get; set; }
+
+        /// <summary>
+        /// 已失效的合约数(人次)
+        /// </summary>
+        [JsonProperty("lose_efficacy_count")]
+        public long LoseEfficacyCount { get; set; }
+
+        /// <summary>
+        /// 活动总参与人数
+        /// </summary>
+        [JsonProperty("participator_count")]
+        public long ParticipatorCount { get; set; }
+
+        /// <summary>
+        /// 待守约的合约数(人次)
+        /// </summary>
+        [JsonProperty("promising_count")]
+        public long PromisingCount { get; set; }
+
+        /// <summary>
+        /// 活动总履约数, 即总核销次数
+        /// </summary>
+        [JsonProperty("trade_count")]
+        public long TradeCount { get; set; }
+
+        /// <summary>
+        /// 已逾期的合约数(人次)
+        /// </summary>
+        [JsonProperty("violated_count")]
+        public long ViolatedCount { get; set; }
+    }
+}

+ 37 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AdCreative.cs

@@ -0,0 +1,37 @@
+using System;
+using System.Collections.Generic;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// AdCreative Data Structure.
+    /// </summary>
+    [Serializable]
+    public class AdCreative : AlipayObject
+    {
+        /// <summary>
+        /// 广告物料包含的物料列表
+        /// </summary>
+        [JsonProperty("ad_material_list")]
+        public List<AdMaterial> AdMaterialList { get; set; }
+
+        /// <summary>
+        /// 创意名称
+        /// </summary>
+        [JsonProperty("ad_name")]
+        public string AdName { get; set; }
+
+        /// <summary>
+        /// 所属广告单元ID
+        /// </summary>
+        [JsonProperty("group_id")]
+        public long GroupId { get; set; }
+
+        /// <summary>
+        /// 创意使用模板ID
+        /// </summary>
+        [JsonProperty("template_id")]
+        public long TemplateId { get; set; }
+    }
+}

+ 55 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AdCreativeResult.cs

@@ -0,0 +1,55 @@
+using System;
+using System.Collections.Generic;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// AdCreativeResult Data Structure.
+    /// </summary>
+    [Serializable]
+    public class AdCreativeResult : AlipayObject
+    {
+        /// <summary>
+        /// 广告创意ID
+        /// </summary>
+        [JsonProperty("ad_id")]
+        public long AdId { get; set; }
+
+        /// <summary>
+        /// 创意包含的物料列表
+        /// </summary>
+        [JsonProperty("ad_material_list")]
+        public List<AdMaterialResultDTO> AdMaterialList { get; set; }
+
+        /// <summary>
+        /// 创意名称
+        /// </summary>
+        [JsonProperty("ad_name")]
+        public string AdName { get; set; }
+
+        /// <summary>
+        /// 创意审核状态,PASS:审核通过;TO_BE_AUDTI:待审核;OP_AUDIT:运营审核中;MEDIA_AUDIT:媒体审核中;REFUSED:审核拒绝
+        /// </summary>
+        [JsonProperty("audit_status")]
+        public string AuditStatus { get; set; }
+
+        /// <summary>
+        /// 所属广告单元ID
+        /// </summary>
+        [JsonProperty("group_id")]
+        public long GroupId { get; set; }
+
+        /// <summary>
+        /// 创意状态,ENABLE:生效;DISABLE:失效
+        /// </summary>
+        [JsonProperty("status")]
+        public string Status { get; set; }
+
+        /// <summary>
+        /// 创意使用模板名称
+        /// </summary>
+        [JsonProperty("template_name")]
+        public string TemplateName { get; set; }
+    }
+}

+ 55 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AdGroup.cs

@@ -0,0 +1,55 @@
+using System;
+using System.Collections.Generic;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// AdGroup Data Structure.
+    /// </summary>
+    [Serializable]
+    public class AdGroup : AlipayObject
+    {
+        /// <summary>
+        /// 广告系统ID
+        /// </summary>
+        [JsonProperty("ad_user_id")]
+        public long AdUserId { get; set; }
+
+        /// <summary>
+        /// 人群定向(优化)配置串
+        /// </summary>
+        [JsonProperty("crowd_condition")]
+        public string CrowdCondition { get; set; }
+
+        /// <summary>
+        /// 广告单元ID,新建时留空
+        /// </summary>
+        [JsonProperty("group_id")]
+        public long GroupId { get; set; }
+
+        /// <summary>
+        /// 广告单元名称
+        /// </summary>
+        [JsonProperty("group_name")]
+        public string GroupName { get; set; }
+
+        /// <summary>
+        /// 单元所属计划ID
+        /// </summary>
+        [JsonProperty("plan_id")]
+        public long PlanId { get; set; }
+
+        /// <summary>
+        /// 区域定向
+        /// </summary>
+        [JsonProperty("position_condition")]
+        public List<Position> PositionCondition { get; set; }
+
+        /// <summary>
+        /// 单元保量数值
+        /// </summary>
+        [JsonProperty("quantity")]
+        public long Quantity { get; set; }
+    }
+}

+ 54 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AdMaterial.cs

@@ -0,0 +1,54 @@
+using System;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// AdMaterial Data Structure.
+    /// </summary>
+    [Serializable]
+    public class AdMaterial : AlipayObject
+    {
+        /// <summary>
+        /// 物料宽度
+        /// </summary>
+        [JsonProperty("height")]
+        public string Height { get; set; }
+
+        /// <summary>
+        /// 物料模板位置编号,编号从0开始
+        /// </summary>
+        [JsonProperty("index")]
+        public long Index { get; set; }
+
+        /// <summary>
+        /// 物料类型,IMG:图片;VIDEO:视频;H5:H5
+        /// </summary>
+        [JsonProperty("material_type")]
+        public string MaterialType { get; set; }
+
+        /// <summary>
+        /// 物料文件签名,天猫业务签名使用MD5算法,使用base64编码,用于物料转储校验
+        /// </summary>
+        [JsonProperty("mt_signature")]
+        public string MtSignature { get; set; }
+
+        /// <summary>
+        /// 物料播放时长,单位:毫秒
+        /// </summary>
+        [JsonProperty("play_time")]
+        public string PlayTime { get; set; }
+
+        /// <summary>
+        /// 物料存储URL地址
+        /// </summary>
+        [JsonProperty("url")]
+        public string Url { get; set; }
+
+        /// <summary>
+        /// 物料宽度
+        /// </summary>
+        [JsonProperty("width")]
+        public string Width { get; set; }
+    }
+}

+ 54 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AdMaterialResultDTO.cs

@@ -0,0 +1,54 @@
+using System;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// AdMaterialResultDTO Data Structure.
+    /// </summary>
+    [Serializable]
+    public class AdMaterialResultDTO : AlipayObject
+    {
+        /// <summary>
+        /// 物料宽度
+        /// </summary>
+        [JsonProperty("height")]
+        public long Height { get; set; }
+
+        /// <summary>
+        /// 物料模板位置编号,编号从0开始
+        /// </summary>
+        [JsonProperty("index")]
+        public long Index { get; set; }
+
+        /// <summary>
+        /// 物料类型,IMG:图片;VIDEO:视频;H5:H5
+        /// </summary>
+        [JsonProperty("material_type")]
+        public string MaterialType { get; set; }
+
+        /// <summary>
+        /// 物料文件签名,天猫业务签名使用MD5算法,使用base64编码,用于物料转储校验
+        /// </summary>
+        [JsonProperty("mt_signature")]
+        public string MtSignature { get; set; }
+
+        /// <summary>
+        /// 物料播放时长,单位:毫秒
+        /// </summary>
+        [JsonProperty("play_time")]
+        public long PlayTime { get; set; }
+
+        /// <summary>
+        /// 物料存储URL地址
+        /// </summary>
+        [JsonProperty("url")]
+        public string Url { get; set; }
+
+        /// <summary>
+        /// 物料宽度
+        /// </summary>
+        [JsonProperty("width")]
+        public long Width { get; set; }
+    }
+}

+ 60 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AdPlan.cs

@@ -0,0 +1,60 @@
+using System;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// AdPlan Data Structure.
+    /// </summary>
+    [Serializable]
+    public class AdPlan : AlipayObject
+    {
+        /// <summary>
+        /// 注册用户返回的用户ID
+        /// </summary>
+        [JsonProperty("ad_user_id")]
+        public long AdUserId { get; set; }
+
+        /// <summary>
+        /// 广告投放预算,单位:分
+        /// </summary>
+        [JsonProperty("budget")]
+        public long Budget { get; set; }
+
+        /// <summary>
+        /// 投放计划结束时间
+        /// </summary>
+        [JsonProperty("end_date")]
+        public string EndDate { get; set; }
+
+        /// <summary>
+        /// 计划中所属单元列表
+        /// </summary>
+        [JsonProperty("group_list")]
+        public AdGroup GroupList { get; set; }
+
+        /// <summary>
+        /// 广告计划ID
+        /// </summary>
+        [JsonProperty("plan_id")]
+        public long PlanId { get; set; }
+
+        /// <summary>
+        /// 广告计划名称
+        /// </summary>
+        [JsonProperty("plan_name")]
+        public string PlanName { get; set; }
+
+        /// <summary>
+        /// 计划保量
+        /// </summary>
+        [JsonProperty("quantity")]
+        public long Quantity { get; set; }
+
+        /// <summary>
+        /// 投放计划开始时间
+        /// </summary>
+        [JsonProperty("start_date")]
+        public string StartDate { get; set; }
+    }
+}

+ 84 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AdUser.cs

@@ -0,0 +1,84 @@
+using System;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// AdUser Data Structure.
+    /// </summary>
+    [Serializable]
+    public class AdUser : AlipayObject
+    {
+        /// <summary>
+        /// 广告主营业执照url
+        /// </summary>
+        [JsonProperty("company_license")]
+        public string CompanyLicense { get; set; }
+
+        /// <summary>
+        /// 广告主所属公司
+        /// </summary>
+        [JsonProperty("company_name")]
+        public string CompanyName { get; set; }
+
+        /// <summary>
+        /// 公司行业信息
+        /// </summary>
+        [JsonProperty("company_trade")]
+        public string CompanyTrade { get; set; }
+
+        /// <summary>
+        /// 1级行业ID
+        /// </summary>
+        [JsonProperty("first_trade_id")]
+        public string FirstTradeId { get; set; }
+
+        /// <summary>
+        /// ICP营业执照编码
+        /// </summary>
+        [JsonProperty("icp_license")]
+        public string IcpLicense { get; set; }
+
+        /// <summary>
+        /// 营业执照图片url
+        /// </summary>
+        [JsonProperty("icp_license_url")]
+        public string IcpLicenseUrl { get; set; }
+
+        /// <summary>
+        /// 广告主公司地址
+        /// </summary>
+        [JsonProperty("register_place")]
+        public string RegisterPlace { get; set; }
+
+        /// <summary>
+        /// 2级行业ID
+        /// </summary>
+        [JsonProperty("second_trade_id")]
+        public string SecondTradeId { get; set; }
+
+        /// <summary>
+        /// 广告主电话
+        /// </summary>
+        [JsonProperty("telephone")]
+        public string Telephone { get; set; }
+
+        /// <summary>
+        /// 第三方平台用户ID
+        /// </summary>
+        [JsonProperty("third_user_id")]
+        public string ThirdUserId { get; set; }
+
+        /// <summary>
+        /// 广告主邮箱
+        /// </summary>
+        [JsonProperty("user_mail")]
+        public string UserMail { get; set; }
+
+        /// <summary>
+        /// 广告系统用户
+        /// </summary>
+        [JsonProperty("user_name")]
+        public string UserName { get; set; }
+    }
+}

+ 55 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AdUserQualification.cs

@@ -0,0 +1,55 @@
+using System;
+using System.Collections.Generic;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// AdUserQualification Data Structure.
+    /// </summary>
+    [Serializable]
+    public class AdUserQualification : AlipayObject
+    {
+        /// <summary>
+        /// 审核人员id
+        /// </summary>
+        [JsonProperty("approver")]
+        public string Approver { get; set; }
+
+        /// <summary>
+        /// 审核原因
+        /// </summary>
+        [JsonProperty("audit_reason")]
+        public string AuditReason { get; set; }
+
+        /// <summary>
+        /// 审核状态:0 审核通过、1 库存校验中、2运营审核中、3 审核拒绝
+        /// </summary>
+        [JsonProperty("audit_status")]
+        public long AuditStatus { get; set; }
+
+        /// <summary>
+        /// 审核日期
+        /// </summary>
+        [JsonProperty("audit_time")]
+        public long AuditTime { get; set; }
+
+        /// <summary>
+        /// 资质文件列表
+        /// </summary>
+        [JsonProperty("file_url")]
+        public List<string> FileUrl { get; set; }
+
+        /// <summary>
+        /// 资质id
+        /// </summary>
+        [JsonProperty("id")]
+        public long Id { get; set; }
+
+        /// <summary>
+        /// 资质名称
+        /// </summary>
+        [JsonProperty("qualification_name")]
+        public string QualificationName { get; set; }
+    }
+}

+ 25 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AddPlanGroupResult.cs

@@ -0,0 +1,25 @@
+using System;
+using System.Collections.Generic;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// AddPlanGroupResult Data Structure.
+    /// </summary>
+    [Serializable]
+    public class AddPlanGroupResult : AlipayObject
+    {
+        /// <summary>
+        /// 新增计划下单元后,返回的单元ID列表
+        /// </summary>
+        [JsonProperty("group_id_list")]
+        public List<long> GroupIdList { get; set; }
+
+        /// <summary>
+        /// 新增计划后计划ID
+        /// </summary>
+        [JsonProperty("plan_id")]
+        public long PlanId { get; set; }
+    }
+}

+ 7 - 9
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AddressInfo.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,49 +13,48 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 地址。商户详细经营地址或人员所在地点
         /// </summary>
         [JsonProperty("address")]
-        [XmlElement("address")]
         public string Address { get; set; }
 
         /// <summary>
         /// 城市编码,城市编码是与国家统计局一致,请查询:  http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/  国标省市区号下载:http://aopsdkdownload.cn-hangzhou.alipay-pub.aliyun-inc.com/doc/2016.xls?spm=a219a.7629140.0.0.qRW4KQ&file=2016.xls
         /// </summary>
         [JsonProperty("city_code")]
-        [XmlElement("city_code")]
         public string CityCode { get; set; }
 
         /// <summary>
         /// 区县编码,区县编码是与国家统计局一致,请查询: http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/ 国标省市区号下载:http://aopsdkdownload.cn-hangzhou.alipay-pub.aliyun-inc.com/doc/2016.xls?spm=a219a.7629140.0.0.qRW4KQ&file=2016.xls
         /// </summary>
         [JsonProperty("district_code")]
-        [XmlElement("district_code")]
         public string DistrictCode { get; set; }
 
         /// <summary>
         /// 纬度,浮点型,小数点后最多保留6位  如需要录入经纬度,请以高德坐标系为准,录入时请确保经纬度参数准确。高德经纬度查询:http://lbs.amap.com/console/show/picker
         /// </summary>
         [JsonProperty("latitude")]
-        [XmlElement("latitude")]
         public string Latitude { get; set; }
 
         /// <summary>
         /// 经度,浮点型, 小数点后最多保留6位。  如需要录入经纬度,请以高德坐标系为准,录入时请确保经纬度参数准确。高德经纬度查询:http://lbs.amap.com/console/show/picker
         /// </summary>
         [JsonProperty("longitude")]
-        [XmlElement("longitude")]
         public string Longitude { get; set; }
 
+        /// <summary>
+        /// 高德poiid
+        /// </summary>
+        [JsonProperty("poiid")]
+        public string Poiid { get; set; }
+
         /// <summary>
         /// 省份编码,  省份编码是与国家统计局一致,请查询:  http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/  国标省市区号下载:http://aopsdkdownload.cn-hangzhou.alipay-pub.aliyun-inc.com/doc/2016.xls?spm=a219a.7629140.0.0.qRW4KQ&file=2016.xls
         /// </summary>
         [JsonProperty("province_code")]
-        [XmlElement("province_code")]
         public string ProvinceCode { get; set; }
 
         /// <summary>
         /// 地址类型。取值范围:BUSINESS_ADDRESS:经营地址(默认)
         /// </summary>
         [JsonProperty("type")]
-        [XmlElement("type")]
         public string Type { get; set; }
     }
 }

+ 54 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AddressInfoKt.cs

@@ -0,0 +1,54 @@
+using System;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// AddressInfoKt Data Structure.
+    /// </summary>
+    [Serializable]
+    public class AddressInfoKt : AlipayObject
+    {
+        /// <summary>
+        /// 地址。商户详细经营地址或人员所在地点
+        /// </summary>
+        [JsonProperty("address")]
+        public string Address { get; set; }
+
+        /// <summary>
+        /// 城市编码,城市编码是与国家统计局一致,请查询:  http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/  国标省市区号下载:http://aopsdkdownload.cn-hangzhou.alipay-pub.aliyun-inc.com/doc/2016.xls?spm=a219a.7629140.0.0.qRW4KQ&file=2016.xls
+        /// </summary>
+        [JsonProperty("city_code")]
+        public string CityCode { get; set; }
+
+        /// <summary>
+        /// 区县编码,区县编码是与国家统计局一致,请查询: http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/ 国标省市区号下载:http://aopsdkdownload.cn-hangzhou.alipay-pub.aliyun-inc.com/doc/2016.xls?spm=a219a.7629140.0.0.qRW4KQ&file=2016.xls
+        /// </summary>
+        [JsonProperty("district_code")]
+        public string DistrictCode { get; set; }
+
+        /// <summary>
+        /// 纬度,浮点型,小数点后最多保留6位  如需要录入经纬度,请以高德坐标系为准,录入时请确保经纬度参数准确。高德经纬度查询:http://lbs.amap.com/console/show/picker
+        /// </summary>
+        [JsonProperty("latitude")]
+        public string Latitude { get; set; }
+
+        /// <summary>
+        /// 经度,浮点型, 小数点后最多保留6位。  如需要录入经纬度,请以高德坐标系为准,录入时请确保经纬度参数准确。高德经纬度查询:http://lbs.amap.com/console/show/picker
+        /// </summary>
+        [JsonProperty("longitude")]
+        public string Longitude { get; set; }
+
+        /// <summary>
+        /// 省份编码,  省份编码是与国家统计局一致,请查询:  http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/  国标省市区号下载:http://aopsdkdownload.cn-hangzhou.alipay-pub.aliyun-inc.com/doc/2016.xls?spm=a219a.7629140.0.0.qRW4KQ&file=2016.xls
+        /// </summary>
+        [JsonProperty("province_code")]
+        public string ProvinceCode { get; set; }
+
+        /// <summary>
+        /// 地址类型。取值范围:BUSINESS_ADDRESS:经营地址(默认)
+        /// </summary>
+        [JsonProperty("type")]
+        public string Type { get; set; }
+    }
+}

+ 85 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/Addresscomponent.cs

@@ -0,0 +1,85 @@
+using System;
+using System.Collections.Generic;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// Addresscomponent Data Structure.
+    /// </summary>
+    [Serializable]
+    public class Addresscomponent : AlipayObject
+    {
+        /// <summary>
+        /// 行政区编码
+        /// </summary>
+        [JsonProperty("adcode")]
+        public string Adcode { get; set; }
+
+        /// <summary>
+        /// 建筑信息
+        /// </summary>
+        [JsonProperty("building")]
+        public Building Building { get; set; }
+
+        /// <summary>
+        /// 商圈信息列表
+        /// </summary>
+        [JsonProperty("business_areas")]
+        public List<Businessarea> BusinessAreas { get; set; }
+
+        /// <summary>
+        /// 当所在城市为北京、上海、天津、重庆四个直辖市时,该字段返回为空。当所在城市属于县级市的时候,此字段为空。
+        /// </summary>
+        [JsonProperty("city")]
+        public string City { get; set; }
+
+        /// <summary>
+        /// 城市编码
+        /// </summary>
+        [JsonProperty("citycode")]
+        public string Citycode { get; set; }
+
+        /// <summary>
+        /// 国内默认返回中国
+        /// </summary>
+        [JsonProperty("country")]
+        public string Country { get; set; }
+
+        /// <summary>
+        /// 坐标点所在区
+        /// </summary>
+        [JsonProperty("district")]
+        public string District { get; set; }
+
+        /// <summary>
+        /// 社区信息
+        /// </summary>
+        [JsonProperty("neighborhood")]
+        public Neighborhood Neighborhood { get; set; }
+
+        /// <summary>
+        /// 坐标点所在省名称
+        /// </summary>
+        [JsonProperty("province")]
+        public string Province { get; set; }
+
+        /// <summary>
+        /// 门牌信息
+        /// </summary>
+        [JsonProperty("street_number")]
+        public Streetnumber StreetNumber { get; set; }
+
+        /// <summary>
+        /// 乡镇街道编码
+        /// </summary>
+        [JsonProperty("towncode")]
+        public string Towncode { get; set; }
+
+        /// <summary>
+        /// 坐标点所在乡镇/街道(此街道为社区街道,不是道路信息)
+        /// </summary>
+        [JsonProperty("township")]
+        public string Township { get; set; }
+    }
+}

+ 115 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AdvanceOrder.cs

@@ -0,0 +1,115 @@
+using System;
+using System.Collections.Generic;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// AdvanceOrder Data Structure.
+    /// </summary>
+    [Serializable]
+    public class AdvanceOrder : AlipayObject
+    {
+        /// <summary>
+        /// 预订单编号
+        /// </summary>
+        [JsonProperty("advance_order_id")]
+        public string AdvanceOrderId { get; set; }
+
+        /// <summary>
+        /// 业务场景码,分类:SCAN_PURCHASE(扫码购场景)
+        /// </summary>
+        [JsonProperty("biz_scene")]
+        public string BizScene { get; set; }
+
+        /// <summary>
+        /// 订单描述
+        /// </summary>
+        [JsonProperty("body")]
+        public string Body { get; set; }
+
+        /// <summary>
+        /// 订单创建渠道,商户自行定义用于区分商户的数据来源。
+        /// </summary>
+        [JsonProperty("channel")]
+        public string Channel { get; set; }
+
+        /// <summary>
+        /// 扩展字段,json格式。
+        /// </summary>
+        [JsonProperty("ext_info")]
+        public string ExtInfo { get; set; }
+
+        /// <summary>
+        /// 订单包含的商品列表信息,json格式,其它说明详见商品明细说明
+        /// </summary>
+        [JsonProperty("goods_details")]
+        public List<MallGoodsDetail> GoodsDetails { get; set; }
+
+        /// <summary>
+        /// 商圈ID
+        /// </summary>
+        [JsonProperty("mall_id")]
+        public string MallId { get; set; }
+
+        /// <summary>
+        /// 商户操作员(业务员)编号
+        /// </summary>
+        [JsonProperty("operator_id")]
+        public string OperatorId { get; set; }
+
+        /// <summary>
+        /// 商户订单号,64个字符以内、可包含字母、数字、下划线;需保证在商户端不重复
+        /// </summary>
+        [JsonProperty("out_order_no")]
+        public string OutOrderNo { get; set; }
+
+        /// <summary>
+        /// 卖家的支付宝用户ID
+        /// </summary>
+        [JsonProperty("seller_user_id")]
+        public string SellerUserId { get; set; }
+
+        /// <summary>
+        /// 口碑店铺ID
+        /// </summary>
+        [JsonProperty("shop_id")]
+        public string ShopId { get; set; }
+
+        /// <summary>
+        /// 预订单状态,状态包含:(初始化:INIT,待付款:WAIT_PAY,  关闭状态:CLOSE)
+        /// </summary>
+        [JsonProperty("status")]
+        public string Status { get; set; }
+
+        /// <summary>
+        /// 商户门店编号
+        /// </summary>
+        [JsonProperty("store_id")]
+        public string StoreId { get; set; }
+
+        /// <summary>
+        /// 店铺名称
+        /// </summary>
+        [JsonProperty("store_name")]
+        public string StoreName { get; set; }
+
+        /// <summary>
+        /// 订单标题
+        /// </summary>
+        [JsonProperty("subject")]
+        public string Subject { get; set; }
+
+        /// <summary>
+        /// 商户机具终端编号
+        /// </summary>
+        [JsonProperty("terminal_id")]
+        public string TerminalId { get; set; }
+
+        /// <summary>
+        /// 订单未优惠的总金额,单位为元,精确到小数点后两位,取值范围[0.01,100000000]
+        /// </summary>
+        [JsonProperty("total_amount")]
+        public string TotalAmount { get; set; }
+    }
+}

+ 1 - 5
src/Essensoft.AspNetCore.Payment.Alipay/Domain/Advert.cs

@@ -1,6 +1,5 @@
-using System;
+using System;
 using System.Collections.Generic;
-using System.Xml.Serialization;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -15,15 +14,12 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 广告位id
         /// </summary>
         [JsonProperty("advert_id")]
-        [XmlElement("advert_id")]
         public string AdvertId { get; set; }
 
         /// <summary>
         /// 广告位轮播内容列表
         /// </summary>
         [JsonProperty("advert_items")]
-        [XmlArray("advert_items")]
-        [XmlArrayItem("advert_item")]
         public List<AdvertItem> AdvertItems { get; set; }
     }
 }

+ 1 - 4
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AdvertItem.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,14 +13,12 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 广告图片url, 尺寸为996*240,最大不超过5M,支持格式:.jpg、.png ,请先调用<a href="https://docs.open.alipay.com/api_3/alipay.offline.material.image.upload"> 图片上传接口</a>获得图片url
         /// </summary>
         [JsonProperty("img_url")]
-        [XmlElement("img_url")]
         public string ImgUrl { get; set; }
 
         /// <summary>
         /// 跳转链接,点击广告图片跳到的链接url
         /// </summary>
         [JsonProperty("link_url")]
-        [XmlElement("link_url")]
         public string LinkUrl { get; set; }
     }
 }

+ 1 - 35
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AdviceVO.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,231 +13,198 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 兑换请求发起时间
         /// </summary>
         [JsonProperty("client_advice_timestamp")]
-        [XmlElement("client_advice_timestamp")]
         public string ClientAdviceTimestamp { get; set; }
 
         /// <summary>
         /// 客户号:用于定义FX交易的客户,由外汇交易中心统一分配
         /// </summary>
         [JsonProperty("client_id")]
-        [XmlElement("client_id")]
         public string ClientId { get; set; }
 
         /// <summary>
         /// 客户请求序号:  客户侧的流水号,由客户上送
         /// </summary>
         [JsonProperty("client_ref")]
-        [XmlElement("client_ref")]
         public string ClientRef { get; set; }
 
         /// <summary>
         /// 对应金额,选输项
         /// </summary>
         [JsonProperty("contra_amount")]
-        [XmlElement("contra_amount")]
         public string ContraAmount { get; set; }
 
         /// <summary>
         /// 对应币种
         /// </summary>
         [JsonProperty("contra_ccy")]
-        [XmlElement("contra_ccy")]
         public string ContraCcy { get; set; }
 
         /// <summary>
         /// 端对端流水号  原TransactionID,用于标识全局唯一序号
         /// </summary>
         [JsonProperty("end_to_end_id")]
-        [XmlElement("end_to_end_id")]
         public string EndToEndId { get; set; }
 
         /// <summary>
         /// 请求类型:H - HedgeAdvise , T - TradeAdvise。锁价模式下先发送Hedge,在发送对应的Trade。非锁价模式下,可直接发送Trade
         /// </summary>
         [JsonProperty("msg_type")]
-        [XmlElement("msg_type")]
         public string MsgType { get; set; }
 
         /// <summary>
         /// 是否部分成交:Y,N。是否可部分成交  默认为不可部分成交
         /// </summary>
         [JsonProperty("partial_trade")]
-        [XmlElement("partial_trade")]
         public string PartialTrade { get; set; }
 
         /// <summary>
         /// 支付渠道:  上送收单业务中的支付渠道,须提前约定。
         /// </summary>
         [JsonProperty("payment_provider")]
-        [XmlElement("payment_provider")]
         public string PaymentProvider { get; set; }
 
         /// <summary>
         /// 支付类型, 默认为DEFAULT
         /// </summary>
         [JsonProperty("payment_type")]
-        [XmlElement("payment_type")]
         public string PaymentType { get; set; }
 
         /// <summary>
         /// 客户协议扩展号,用于支持同一客户在不同场景下所需的汇率
         /// </summary>
         [JsonProperty("profile_id")]
-        [XmlElement("profile_id")]
         public string ProfileId { get; set; }
 
         /// <summary>
         /// 汇率的唯一编码
         /// </summary>
         [JsonProperty("rate_ref")]
-        [XmlElement("rate_ref")]
         public string RateRef { get; set; }
 
         /// <summary>
         /// 汇率请求模式 :  TA时必输,仅在TA时有效。  字典:REQ - 按客户请求(含滑点)成交,若该价格失效,则交易失败;ACP - 汇率失效或请求中不带汇率,接受该客户协议的最新汇率,实际成交汇率以GlobalFX为准;"
         /// </summary>
         [JsonProperty("rate_request_mode")]
-        [XmlElement("rate_request_mode")]
         public string RateRequestMode { get; set; }
 
         /// <summary>
         /// 汇率类型:SPOT,FORWARD。送RateRef的情况下,以RateRef关联的汇率为准。
         /// </summary>
         [JsonProperty("rate_type")]
-        [XmlElement("rate_type")]
         public string RateType { get; set; }
 
         /// <summary>
         /// 备用字段1
         /// </summary>
         [JsonProperty("reference_field1")]
-        [XmlElement("reference_field1")]
         public string ReferenceField1 { get; set; }
 
         /// <summary>
         /// 备用字段2
         /// </summary>
         [JsonProperty("reference_field2")]
-        [XmlElement("reference_field2")]
         public string ReferenceField2 { get; set; }
 
         /// <summary>
         /// 备用字段3
         /// </summary>
         [JsonProperty("reference_field3")]
-        [XmlElement("reference_field3")]
         public string ReferenceField3 { get; set; }
 
         /// <summary>
         /// 关联交易请求号: "本次交易请求关联的原交易号。填写规范:  1)正向交易的TA,填写HA MessageId  2)REFUND,添加原SALE的TA MessageId  3)CHARGEBACK,填写原SALE的TA MessageId  4)CHARGEBACK_REVERSE,填写原CHARGEBACK的TA MessageId  5)CANCELLATION,填写被Cancel交易的TA MessageId"
         /// </summary>
         [JsonProperty("related_message_id")]
-        [XmlElement("related_message_id")]
         public string RelatedMessageId { get; set; }
 
         /// <summary>
         /// 交易请求号
         /// </summary>
         [JsonProperty("request_message_id")]
-        [XmlElement("request_message_id")]
         public string RequestMessageId { get; set; }
 
         /// <summary>
         /// 客户请求的汇率,送RateRef的情况下,以RateRef关联的汇率为准。
         /// </summary>
         [JsonProperty("requested_rate")]
-        [XmlElement("requested_rate")]
         public string RequestedRate { get; set; }
 
         /// <summary>
         /// NDF交割下,实际交割币种的金额
         /// </summary>
         [JsonProperty("settlement_amount")]
-        [XmlElement("settlement_amount")]
         public string SettlementAmount { get; set; }
 
         /// <summary>
         /// NDF交割下,实际交割的币种
         /// </summary>
         [JsonProperty("settlement_ccy")]
-        [XmlElement("settlement_ccy")]
         public string SettlementCcy { get; set; }
 
         /// <summary>
         /// 买卖方向:BUY,SELL。客户视角对交易货币的操作。该字段为必填,与原TransactionType的对应关系如下:  SALE - SELL  REFUND - BUY  CHARGEBACK - BUY  CHARGEBACK_RESEVSE - SELL  CANCELLATION - 使用原交易的side"
         /// </summary>
         [JsonProperty("side")]
-        [XmlElement("side")]
         public string Side { get; set; }
 
         /// <summary>
         /// 汇率上浮滑点 : BP单位,即汇率单位的万分之一。仅在“请求汇率模式”为REQ时有效,在请求汇率/汇率编码对应的汇率的基础上,Side为BUY时上浮滑点,Side为SELL时下浮滑点
         /// </summary>
         [JsonProperty("slip_point")]
-        [XmlElement("slip_point")]
         public long SlipPoint { get; set; }
 
         /// <summary>
         /// 调用方事件码
         /// </summary>
         [JsonProperty("source_event_code")]
-        [XmlElement("source_event_code")]
         public string SourceEventCode { get; set; }
 
         /// <summary>
         /// 调用方产品码
         /// </summary>
         [JsonProperty("source_product_code")]
-        [XmlElement("source_product_code")]
         public string SourceProductCode { get; set; }
 
         /// <summary>
         /// 时间所在时区
         /// </summary>
         [JsonProperty("time_zone")]
-        [XmlElement("time_zone")]
         public string TimeZone { get; set; }
 
         /// <summary>
         /// 上层业务发起时间
         /// </summary>
         [JsonProperty("trade_timestamp")]
-        [XmlElement("trade_timestamp")]
         public string TradeTimestamp { get; set; }
 
         /// <summary>
         /// 交易金额
         /// </summary>
         [JsonProperty("transaction_amount")]
-        [XmlElement("transaction_amount")]
         public string TransactionAmount { get; set; }
 
         /// <summary>
         /// 交易币种: 客户视角的交易买卖币种
         /// </summary>
         [JsonProperty("transaction_ccy")]
-        [XmlElement("transaction_ccy")]
         public string TransactionCcy { get; set; }
 
         /// <summary>
         /// 交易币种交割方式:DELIV,NDF。当Client的实际交割货币与交易币种不一致时,送NDF。
         /// </summary>
         [JsonProperty("transaction_ccy_type")]
-        [XmlElement("transaction_ccy_type")]
         public string TransactionCcyType { get; set; }
 
         /// <summary>
         /// 交易类型:   兼容收单业务兑换使用。字典:SALE,REFUND,CHARGEBACK,CHARGEBACK_REVERSE,CANCELLATION
         /// </summary>
         [JsonProperty("transaction_type")]
-        [XmlElement("transaction_type")]
         public string TransactionType { get; set; }
 
         /// <summary>
         /// 起息日期 :  YYYYMMDD,客户期望的资金交割日期
         /// </summary>
         [JsonProperty("value_date")]
-        [XmlElement("value_date")]
         public string ValueDate { get; set; }
     }
 }

+ 30 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AftAifinFireeyeOcrImageQueryModel.cs

@@ -0,0 +1,30 @@
+using System;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// AftAifinFireeyeOcrImageQueryModel Data Structure.
+    /// </summary>
+    [Serializable]
+    public class AftAifinFireeyeOcrImageQueryModel : AlipayObject
+    {
+        /// <summary>
+        /// 用于ocr识别请求图片的BASE64编码
+        /// </summary>
+        [JsonProperty("image")]
+        public string Image { get; set; }
+
+        /// <summary>
+        /// ocr服务类型,例如银行卡bankcard, 营业执照businesslicense, 车架号carvin, 驾驶证driverlicense, 行驶证vehiclelicense, 身份证idcard, 车牌号vehicleplate, 发票inference等
+        /// </summary>
+        [JsonProperty("ocr_type")]
+        public string OcrType { get; set; }
+
+        /// <summary>
+        /// 产品集群ID,默认填写示例值
+        /// </summary>
+        [JsonProperty("product_instance_id")]
+        public string ProductInstanceId { get; set; }
+    }
+}

+ 24 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AftFinsecureRiskplusSecurityPolicyQueryModel.cs

@@ -0,0 +1,24 @@
+using System;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// AftFinsecureRiskplusSecurityPolicyQueryModel Data Structure.
+    /// </summary>
+    [Serializable]
+    public class AftFinsecureRiskplusSecurityPolicyQueryModel : AlipayObject
+    {
+        /// <summary>
+        /// 蚁盾事件信息
+        /// </summary>
+        [JsonProperty("event_info")]
+        public EventInfo EventInfo { get; set; }
+
+        /// <summary>
+        /// 产品集群ID,默认填写示例值
+        /// </summary>
+        [JsonProperty("product_instance_id")]
+        public string ProductInstanceId { get; set; }
+    }
+}

+ 30 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AgentOrganization.cs

@@ -0,0 +1,30 @@
+using System;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// AgentOrganization Data Structure.
+    /// </summary>
+    [Serializable]
+    public class AgentOrganization : AlipayObject
+    {
+        /// <summary>
+        /// 经代下面二级商户id
+        /// </summary>
+        [JsonProperty("agent_merchant_id")]
+        public string AgentMerchantId { get; set; }
+
+        /// <summary>
+        /// 代理机构(ISV)蚂蚁编码,组织入驻蚂蚁生成的cid
+        /// </summary>
+        [JsonProperty("cid")]
+        public string Cid { get; set; }
+
+        /// <summary>
+        /// 代理机构(ISV)蚂蚁全称,组织入驻蚂蚂蚁的全称
+        /// </summary>
+        [JsonProperty("cid_name")]
+        public string CidName { get; set; }
+    }
+}

+ 24 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/Agreement.cs

@@ -0,0 +1,24 @@
+using System;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// Agreement Data Structure.
+    /// </summary>
+    [Serializable]
+    public class Agreement : AlipayObject
+    {
+        /// <summary>
+        /// 协议地址
+        /// </summary>
+        [JsonProperty("link")]
+        public string Link { get; set; }
+
+        /// <summary>
+        /// 协议名称
+        /// </summary>
+        [JsonProperty("name")]
+        public string Name { get; set; }
+    }
+}

+ 1 - 5
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AgreementParams.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,21 +13,18 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 支付宝系统中用以唯一标识用户签约记录的编号(用户签约成功后的协议号 )
         /// </summary>
         [JsonProperty("agreement_no")]
-        [XmlElement("agreement_no")]
         public string AgreementNo { get; set; }
 
         /// <summary>
         /// 鉴权申请token,其格式和内容,由支付宝定义。在需要做支付鉴权校验时,该参数不能为空。
         /// </summary>
         [JsonProperty("apply_token")]
-        [XmlElement("apply_token")]
         public string ApplyToken { get; set; }
 
         /// <summary>
         /// 鉴权确认码,在需要做支付鉴权校验时,该参数不能为空
         /// </summary>
         [JsonProperty("auth_confirm_no")]
-        [XmlElement("auth_confirm_no")]
         public string AuthConfirmNo { get; set; }
     }
 }

+ 1 - 11
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AgreementSignParams.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,63 +13,54 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 商户在芝麻端申请的appId
         /// </summary>
         [JsonProperty("buckle_app_id")]
-        [XmlElement("buckle_app_id")]
         public string BuckleAppId { get; set; }
 
         /// <summary>
         /// 商户在芝麻端申请的merchantId
         /// </summary>
         [JsonProperty("buckle_merchant_id")]
-        [XmlElement("buckle_merchant_id")]
         public string BuckleMerchantId { get; set; }
 
         /// <summary>
         /// 商户签约号,代扣协议中标示用户的唯一签约号(确保在商户系统中唯一)。  格式规则:支持大写小写字母和数字,最长32位。  商户系统按需传入,如果同一用户在同一产品码、同一签约场景下,签订了多份代扣协议,那么需要指定并传入该值。
         /// </summary>
         [JsonProperty("external_agreement_no")]
-        [XmlElement("external_agreement_no")]
         public string ExternalAgreementNo { get; set; }
 
         /// <summary>
         /// 用户在商户网站的登录账号,用于在签约页面展示,如果为空,则不展示
         /// </summary>
         [JsonProperty("external_logon_id")]
-        [XmlElement("external_logon_id")]
         public string ExternalLogonId { get; set; }
 
         /// <summary>
         /// 个人签约产品码,商户和支付宝签约时确定。
         /// </summary>
         [JsonProperty("personal_product_code")]
-        [XmlElement("personal_product_code")]
         public string PersonalProductCode { get; set; }
 
         /// <summary>
         /// 签约营销参数,此值为json格式;具体的key需与营销约定
         /// </summary>
         [JsonProperty("promo_params")]
-        [XmlElement("promo_params")]
         public string PromoParams { get; set; }
 
         /// <summary>
         /// 协议签约场景,商户和支付宝签约时确定。  当传入商户签约号external_agreement_no时,场景不能为默认值DEFAULT|DEFAULT。
         /// </summary>
         [JsonProperty("sign_scene")]
-        [XmlElement("sign_scene")]
         public string SignScene { get; set; }
 
         /// <summary>
         /// 当前用户签约请求的协议有效周期。  整形数字加上时间单位的协议有效期,从发起签约请求的时间开始算起。  目前支持的时间单位:  1. d:天  2. m:月  如果未传入,默认为长期有效。
         /// </summary>
         [JsonProperty("sign_validity_period")]
-        [XmlElement("sign_validity_period")]
         public string SignValidityPeriod { get; set; }
 
         /// <summary>
         /// 签约第三方主体类型。对于三方协议,表示当前用户和哪一类的第三方主体进行签约。  取值范围:  1. PARTNER(平台商户);  2. MERCHANT(集团商户),集团下子商户可共享用户签约内容;  默认为PARTNER。
         /// </summary>
         [JsonProperty("third_party_type")]
-        [XmlElement("third_party_type")]
         public string ThirdPartyType { get; set; }
     }
 }

+ 1 - 11
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AiOcrTableContext.cs

@@ -1,6 +1,5 @@
-using System;
+using System;
 using System.Collections.Generic;
-using System.Xml.Serialization;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -15,57 +14,48 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// one past end column index(单元格所占的列数(colspan)为ex - sx)
         /// </summary>
         [JsonProperty("ex")]
-        [XmlElement("ex")]
         public long Ex { get; set; }
 
         /// <summary>
         /// one past end row index(单元格所占的行数(rowspan)为ey - sy)
         /// </summary>
         [JsonProperty("ey")]
-        [XmlElement("ey")]
         public long Ey { get; set; }
 
         /// <summary>
         /// cell height,图片上单元格的高度
         /// </summary>
         [JsonProperty("height")]
-        [XmlElement("height")]
         public long Height { get; set; }
 
         /// <summary>
         /// start from column(单元格的起始列id)
         /// </summary>
         [JsonProperty("sx")]
-        [XmlElement("sx")]
         public long Sx { get; set; }
 
         /// <summary>
         /// start row(单元格的起始行id)
         /// </summary>
         [JsonProperty("sy")]
-        [XmlElement("sy")]
         public long Sy { get; set; }
 
         /// <summary>
         /// 表格文字内容
         /// </summary>
         [JsonProperty("text")]
-        [XmlArray("text")]
-        [XmlArrayItem("string")]
         public List<string> Text { get; set; }
 
         /// <summary>
         /// 类型
         /// </summary>
         [JsonProperty("type")]
-        [XmlElement("type")]
         public string Type { get; set; }
 
         /// <summary>
         /// cell width,图片上单元格的宽度
         /// </summary>
         [JsonProperty("width")]
-        [XmlElement("width")]
         public long Width { get; set; }
     }
 }

+ 1 - 4
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AiOcrTableRow.cs

@@ -1,6 +1,5 @@
-using System;
+using System;
 using System.Collections.Generic;
-using System.Xml.Serialization;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -15,8 +14,6 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// table一行的内容
         /// </summary>
         [JsonProperty("row")]
-        [XmlArray("row")]
-        [XmlArrayItem("ai_ocr_table_context")]
         public List<AiOcrTableContext> Row { get; set; }
     }
 }

+ 1 - 8
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AliTrustAlipayCert.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,42 +13,36 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 用户出生日期
         /// </summary>
         [JsonProperty("birthday")]
-        [XmlElement("birthday")]
         public string Birthday { get; set; }
 
         /// <summary>
         /// 点击支付宝实名认证图标之后的跳转链接
         /// </summary>
         [JsonProperty("forward_url")]
-        [XmlElement("forward_url")]
         public string ForwardUrl { get; set; }
 
         /// <summary>
         /// 用户性别(M/F)
         /// </summary>
         [JsonProperty("gender")]
-        [XmlElement("gender")]
         public string Gender { get; set; }
 
         /// <summary>
         /// 支付宝实名认证图标的链接地址
         /// </summary>
         [JsonProperty("icon_url")]
-        [XmlElement("icon_url")]
         public string IconUrl { get; set; }
 
         /// <summary>
         /// 当账户为支付宝实名认证时,取值为"T";否则为"F".
         /// </summary>
         [JsonProperty("is_certified")]
-        [XmlElement("is_certified")]
         public string IsCertified { get; set; }
 
         /// <summary>
         /// 用户姓名
         /// </summary>
         [JsonProperty("name")]
-        [XmlElement("name")]
         public string Name { get; set; }
     }
 }

+ 1 - 7
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AliTrustCert.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,35 +13,30 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 点击信用认证图标之后的跳转链接
         /// </summary>
         [JsonProperty("forward_url")]
-        [XmlElement("forward_url")]
         public string ForwardUrl { get; set; }
 
         /// <summary>
         /// 通过信用认证的图标链接
         /// </summary>
         [JsonProperty("icon_url")]
-        [XmlElement("icon_url")]
         public string IconUrl { get; set; }
 
         /// <summary>
         /// 当通过信用认证时,取值为"T";否则为"F".
         /// </summary>
         [JsonProperty("is_certified")]
-        [XmlElement("is_certified")]
         public string IsCertified { get; set; }
 
         /// <summary>
         /// 芝麻认证等级,取值为1,2,3
         /// </summary>
         [JsonProperty("level")]
-        [XmlElement("level")]
         public string Level { get; set; }
 
         /// <summary>
         /// 当用户未通过芝麻认证时给出的原因提示
         /// </summary>
         [JsonProperty("message")]
-        [XmlElement("message")]
         public string Message { get; set; }
     }
 }

+ 1 - 6
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AliTrustRiskIdentify.cs

@@ -1,6 +1,5 @@
-using System;
+using System;
 using System.Collections.Generic;
-using System.Xml.Serialization;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -15,22 +14,18 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 芝麻信用风险名单详情列表
         /// </summary>
         [JsonProperty("details")]
-        [XmlArray("details")]
-        [XmlArrayItem("zhima_risk_detail")]
         public List<ZhimaRiskDetail> Details { get; set; }
 
         /// <summary>
         /// 当有风险时,为"T";无风险识别是为"F"
         /// </summary>
         [JsonProperty("is_risk")]
-        [XmlElement("is_risk")]
         public string IsRisk { get; set; }
 
         /// <summary>
         /// 已废弃
         /// </summary>
         [JsonProperty("risk_tag")]
-        [XmlElement("risk_tag")]
         public string RiskTag { get; set; }
     }
 }

+ 1 - 3
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AliTrustScore.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,7 +13,6 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 芝麻分
         /// </summary>
         [JsonProperty("score")]
-        [XmlElement("score")]
         public long Score { get; set; }
     }
 }

+ 1 - 6
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAccount.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,28 +13,24 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 支付宝用户ID
         /// </summary>
         [JsonProperty("alipay_user_id")]
-        [XmlElement("alipay_user_id")]
         public string AlipayUserId { get; set; }
 
         /// <summary>
         /// 可用余额
         /// </summary>
         [JsonProperty("available_amount")]
-        [XmlElement("available_amount")]
         public string AvailableAmount { get; set; }
 
         /// <summary>
         /// 不可用余额
         /// </summary>
         [JsonProperty("freeze_amount")]
-        [XmlElement("freeze_amount")]
         public string FreezeAmount { get; set; }
 
         /// <summary>
         /// 余额总额
         /// </summary>
         [JsonProperty("total_amount")]
-        [XmlElement("total_amount")]
         public string TotalAmount { get; set; }
     }
 }

+ 1 - 3
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAccountExrateAdviceAcceptModel.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,7 +13,6 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 交易请求对象内容
         /// </summary>
         [JsonProperty("advice")]
-        [XmlElement("advice")]
         public AdviceVO Advice { get; set; }
     }
 }

+ 1 - 4
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAccountExrateAllclientrateQueryModel.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,14 +13,12 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 客户id,客户和报价中心签约时约定的信息
         /// </summary>
         [JsonProperty("client_id")]
-        [XmlElement("client_id")]
         public string ClientId { get; set; }
 
         /// <summary>
         /// 子协议扩展号,同一个客户不同业务场景下需要不同的客户报价,通过profile_id区分。正常情况下可能每个客户只有一个默认的profile_id
         /// </summary>
         [JsonProperty("profile_id")]
-        [XmlElement("profile_id")]
         public string ProfileId { get; set; }
     }
 }

+ 1 - 3
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAccountExrateCollectcoreDataSendModel.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,7 +13,6 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 上数提交数据内容
         /// </summary>
         [JsonProperty("content")]
-        [XmlElement("content")]
         public string Content { get; set; }
     }
 }

+ 1 - 8
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAccountExratePricingNotifyModel.cs

@@ -1,6 +1,5 @@
-using System;
+using System;
 using System.Collections.Generic;
-using System.Xml.Serialization;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -15,36 +14,30 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 标识该汇率提供给哪个客户使用
         /// </summary>
         [JsonProperty("client_id")]
-        [XmlElement("client_id")]
         public string ClientId { get; set; }
 
         /// <summary>
         /// 源汇率机构
         /// </summary>
         [JsonProperty("inst")]
-        [XmlElement("inst")]
         public string Inst { get; set; }
 
         /// <summary>
         /// 源汇率数据
         /// </summary>
         [JsonProperty("pricing_list")]
-        [XmlArray("pricing_list")]
-        [XmlArrayItem("pricing_v_o")]
         public List<PricingVO> PricingList { get; set; }
 
         /// <summary>
         /// 该汇率的使用场景
         /// </summary>
         [JsonProperty("segment_id")]
-        [XmlElement("segment_id")]
         public string SegmentId { get; set; }
 
         /// <summary>
         /// 所在时区,所有的时间都是该时区的时间  支持 GMT+8 UTC+0 Europe/London 的格式
         /// </summary>
         [JsonProperty("time_zone")]
-        [XmlElement("time_zone")]
         public string TimeZone { get; set; }
     }
 }

+ 1 - 3
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAccountExrateRatequeryModel.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,7 +13,6 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 需要查询汇率的货币对,如果为空则返回当前支持的所有货币对的汇率
         /// </summary>
         [JsonProperty("currency_pair")]
-        [XmlElement("currency_pair")]
         public string CurrencyPair { get; set; }
     }
 }

+ 1 - 3
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAccountExrateSentimentDataSendModel.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,7 +13,6 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 国家制裁提交数据内容
         /// </summary>
         [JsonProperty("content")]
-        [XmlElement("content")]
         public string Content { get; set; }
     }
 }

+ 48 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAccountExrateSourcerateQueryModel.cs

@@ -0,0 +1,48 @@
+using System;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// AlipayAccountExrateSourcerateQueryModel Data Structure.
+    /// </summary>
+    [Serializable]
+    public class AlipayAccountExrateSourcerateQueryModel : AlipayObject
+    {
+        /// <summary>
+        /// 查询截止报价生成时间
+        /// </summary>
+        [JsonProperty("end_time")]
+        public string EndTime { get; set; }
+
+        /// <summary>
+        /// 报价生成日期。查询结果为大于该报价生成日期的源汇率记录
+        /// </summary>
+        [JsonProperty("generate_date")]
+        public string GenerateDate { get; set; }
+
+        /// <summary>
+        /// 报价是否异常。枚举值:Y、N,除此之外都为非法值
+        /// </summary>
+        [JsonProperty("is_exception")]
+        public string IsException { get; set; }
+
+        /// <summary>
+        /// 源汇率编码
+        /// </summary>
+        [JsonProperty("rate_source_code")]
+        public string RateSourceCode { get; set; }
+
+        /// <summary>
+        /// 查询记录行数。大于0的整数值,最大长度超长则异常
+        /// </summary>
+        [JsonProperty("size")]
+        public long Size { get; set; }
+
+        /// <summary>
+        /// 查询起始报价生成时间
+        /// </summary>
+        [JsonProperty("start_time")]
+        public string StartTime { get; set; }
+    }
+}

+ 1 - 3
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAccountExrateTraderequestCreateModel.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,7 +13,6 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 交易请求对象内容
         /// </summary>
         [JsonProperty("trade_request")]
-        [XmlElement("trade_request")]
         public TradeRequestVO TradeRequest { get; set; }
     }
 }

+ 42 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAccountFinriskCompanyVerifyCreateModel.cs

@@ -0,0 +1,42 @@
+using System;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// AlipayAccountFinriskCompanyVerifyCreateModel Data Structure.
+    /// </summary>
+    [Serializable]
+    public class AlipayAccountFinriskCompanyVerifyCreateModel : AlipayObject
+    {
+        /// <summary>
+        /// 请求系统
+        /// </summary>
+        [JsonProperty("app")]
+        public string App { get; set; }
+
+        /// <summary>
+        /// 业务参数列表
+        /// </summary>
+        [JsonProperty("param")]
+        public string Param { get; set; }
+
+        /// <summary>
+        /// 外部请求唯一标识
+        /// </summary>
+        [JsonProperty("request_id")]
+        public string RequestId { get; set; }
+
+        /// <summary>
+        /// 防伪场景编码
+        /// </summary>
+        [JsonProperty("scene_id")]
+        public string SceneId { get; set; }
+
+        /// <summary>
+        /// 租户ID
+        /// </summary>
+        [JsonProperty("tnt_inst_id")]
+        public string TntInstId { get; set; }
+    }
+}

+ 42 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAccountFinriskCompanyVerifyGetModel.cs

@@ -0,0 +1,42 @@
+using System;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// AlipayAccountFinriskCompanyVerifyGetModel Data Structure.
+    /// </summary>
+    [Serializable]
+    public class AlipayAccountFinriskCompanyVerifyGetModel : AlipayObject
+    {
+        /// <summary>
+        /// 请求系统
+        /// </summary>
+        [JsonProperty("app")]
+        public string App { get; set; }
+
+        /// <summary>
+        /// 业务参数列表
+        /// </summary>
+        [JsonProperty("param")]
+        public string Param { get; set; }
+
+        /// <summary>
+        /// 外部请求唯一标识
+        /// </summary>
+        [JsonProperty("request_id")]
+        public string RequestId { get; set; }
+
+        /// <summary>
+        /// 防伪场景编码
+        /// </summary>
+        [JsonProperty("scene_id")]
+        public string SceneId { get; set; }
+
+        /// <summary>
+        /// 租户ID
+        /// </summary>
+        [JsonProperty("tnt_inst_id")]
+        public string TntInstId { get; set; }
+    }
+}

+ 42 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAccountFinriskGiriskrequestCreateModel.cs

@@ -0,0 +1,42 @@
+using System;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// AlipayAccountFinriskGiriskrequestCreateModel Data Structure.
+    /// </summary>
+    [Serializable]
+    public class AlipayAccountFinriskGiriskrequestCreateModel : AlipayObject
+    {
+        /// <summary>
+        /// 请求系统
+        /// </summary>
+        [JsonProperty("app")]
+        public string App { get; set; }
+
+        /// <summary>
+        /// 业务参数
+        /// </summary>
+        [JsonProperty("param")]
+        public string Param { get; set; }
+
+        /// <summary>
+        /// 外部请求唯一标识
+        /// </summary>
+        [JsonProperty("request_id")]
+        public string RequestId { get; set; }
+
+        /// <summary>
+        /// 风险场景编码
+        /// </summary>
+        [JsonProperty("scene_id")]
+        public string SceneId { get; set; }
+
+        /// <summary>
+        /// 租户ID
+        /// </summary>
+        [JsonProperty("tnt_inst_id")]
+        public string TntInstId { get; set; }
+    }
+}

+ 1 - 3
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAccountFinriskInstriskmonitorKeywordsBatchqueryModel.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,7 +13,6 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 查询机构关键词
         /// </summary>
         [JsonProperty("content")]
-        [XmlElement("content")]
         public string Content { get; set; }
     }
 }

+ 18 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAccountFinriskMarkriskDatafactorQueryModel.cs

@@ -0,0 +1,18 @@
+using System;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// AlipayAccountFinriskMarkriskDatafactorQueryModel Data Structure.
+    /// </summary>
+    [Serializable]
+    public class AlipayAccountFinriskMarkriskDatafactorQueryModel : AlipayObject
+    {
+        /// <summary>
+        /// Json格式表示市场风险损益计算入参
+        /// </summary>
+        [JsonProperty("data_factor_build_req")]
+        public string DataFactorBuildReq { get; set; }
+    }
+}

+ 78 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAssetCardDisburseModel.cs

@@ -0,0 +1,78 @@
+using System;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// AlipayAssetCardDisburseModel Data Structure.
+    /// </summary>
+    [Serializable]
+    public class AlipayAssetCardDisburseModel : AlipayObject
+    {
+        /// <summary>
+        /// 打款金额
+        /// </summary>
+        [JsonProperty("amount")]
+        public string Amount { get; set; }
+
+        /// <summary>
+        /// 支付宝资产id,跟模板id二选一
+        /// </summary>
+        [JsonProperty("asset_id")]
+        public string AssetId { get; set; }
+
+        /// <summary>
+        /// 资产平台类型卡/券
+        /// </summary>
+        [JsonProperty("asset_type")]
+        public string AssetType { get; set; }
+
+        /// <summary>
+        /// 业务时间
+        /// </summary>
+        [JsonProperty("biz_dt")]
+        public string BizDt { get; set; }
+
+        /// <summary>
+        /// 业务订单号,幂等用
+        /// </summary>
+        [JsonProperty("biz_no")]
+        public string BizNo { get; set; }
+
+        /// <summary>
+        /// 扩展信息  账单信息key:merchantBillInfo
+        /// </summary>
+        [JsonProperty("extend_info")]
+        public string ExtendInfo { get; set; }
+
+        /// <summary>
+        /// 资金流场景
+        /// </summary>
+        [JsonProperty("fund_scence")]
+        public string FundScence { get; set; }
+
+        /// <summary>
+        /// 收款方支付宝用户id
+        /// </summary>
+        [JsonProperty("payee_user_id")]
+        public string PayeeUserId { get; set; }
+
+        /// <summary>
+        /// 付款方支付宝用户id
+        /// </summary>
+        [JsonProperty("payer_user_id")]
+        public string PayerUserId { get; set; }
+
+        /// <summary>
+        /// 支付宝模板id,跟资产id二选一
+        /// </summary>
+        [JsonProperty("template_id")]
+        public string TemplateId { get; set; }
+
+        /// <summary>
+        /// 支付宝用户id
+        /// </summary>
+        [JsonProperty("user_id")]
+        public string UserId { get; set; }
+    }
+}

+ 1 - 18
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAssetCardNewtemplateCreateModel.cs

@@ -1,6 +1,5 @@
-using System;
+using System;
 using System.Collections.Generic;
-using System.Xml.Serialization;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -15,106 +14,90 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 账户模式:借记/贷记/借贷合一账户模式
         /// </summary>
         [JsonProperty("account_model")]
-        [XmlElement("account_model")]
         public string AccountModel { get; set; }
 
         /// <summary>
         /// 按照资金产品维度定义的资产类型
         /// </summary>
         [JsonProperty("assets_code")]
-        [XmlElement("assets_code")]
         public string AssetsCode { get; set; }
 
         /// <summary>
         /// 业务来源
         /// </summary>
         [JsonProperty("biz_from")]
-        [XmlElement("biz_from")]
         public string BizFrom { get; set; }
 
         /// <summary>
         /// 资金信息列表[{"fundType":"HUA_BEI"}]
         /// </summary>
         [JsonProperty("card_fund_infos")]
-        [XmlArray("card_fund_infos")]
-        [XmlArrayItem("card_fund_info")]
         public List<CardFundInfo> CardFundInfos { get; set; }
 
         /// <summary>
         /// 卡模式:单卡/多卡模式
         /// </summary>
         [JsonProperty("card_model")]
-        [XmlElement("card_model")]
         public string CardModel { get; set; }
 
         /// <summary>
         /// 卡名称
         /// </summary>
         [JsonProperty("card_name")]
-        [XmlElement("card_name")]
         public string CardName { get; set; }
 
         /// <summary>
         /// 创建人userId
         /// </summary>
         [JsonProperty("creator")]
-        [XmlElement("creator")]
         public string Creator { get; set; }
 
         /// <summary>
         /// 贷记信息{"allowOverPay":false,"creditQuota":"0"}
         /// </summary>
         [JsonProperty("credit_info")]
-        [XmlElement("credit_info")]
         public CardCreditInfo CreditInfo { get; set; }
 
         /// <summary>
         /// 扩展信息
         /// </summary>
         [JsonProperty("extend_info")]
-        [XmlElement("extend_info")]
         public string ExtendInfo { get; set; }
 
         /// <summary>
         /// 操作人userId
         /// </summary>
         [JsonProperty("operator")]
-        [XmlElement("operator")]
         public string Operator { get; set; }
 
         /// <summary>
         /// 比如某种业务标准外部订单号,比如交易外部订单号,代表商户端自己订单号
         /// </summary>
         [JsonProperty("out_biz_no")]
-        [XmlElement("out_biz_no")]
         public string OutBizNo { get; set; }
 
         /// <summary>
         /// 商户和支付宝交互时,用于代表支付宝分配给商户ID
         /// </summary>
         [JsonProperty("partner_id")]
-        [XmlElement("partner_id")]
         public string PartnerId { get; set; }
 
         /// <summary>
         /// 卡账户生命周期类型:长期卡/月卡
         /// </summary>
         [JsonProperty("period_type")]
-        [XmlElement("period_type")]
         public string PeriodType { get; set; }
 
         /// <summary>
         /// 按照业务资产维度定义的产品编码
         /// </summary>
         [JsonProperty("product_code")]
-        [XmlElement("product_code")]
         public string ProductCode { get; set; }
 
         /// <summary>
         /// 模板结算商户id,后续商户资金流入的指定账户
         /// </summary>
         [JsonProperty("settle_user_id")]
-        [XmlElement("settle_user_id")]
         public string SettleUserId { get; set; }
     }
 }

+ 1 - 18
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAssetCardReturnRefundModel.cs

@@ -1,6 +1,5 @@
-using System;
+using System;
 using System.Collections.Generic;
-using System.Xml.Serialization;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -15,106 +14,90 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 资产id
         /// </summary>
         [JsonProperty("asset_id")]
-        [XmlElement("asset_id")]
         public string AssetId { get; set; }
 
         /// <summary>
         /// 资产id类型
         /// </summary>
         [JsonProperty("asset_id_type")]
-        [XmlElement("asset_id_type")]
         public string AssetIdType { get; set; }
 
         /// <summary>
         /// 业务发生时间
         /// </summary>
         [JsonProperty("biz_dt")]
-        [XmlElement("biz_dt")]
         public string BizDt { get; set; }
 
         /// <summary>
         /// 业务来源
         /// </summary>
         [JsonProperty("biz_from")]
-        [XmlElement("biz_from")]
         public string BizFrom { get; set; }
 
         /// <summary>
         /// 扩展信息
         /// </summary>
         [JsonProperty("extend_info")]
-        [XmlElement("extend_info")]
         public string ExtendInfo { get; set; }
 
         /// <summary>
         /// 退卡资金场景
         /// </summary>
         [JsonProperty("fund_scence")]
-        [XmlElement("fund_scence")]
         public string FundScence { get; set; }
 
         /// <summary>
         /// 是否销卡,true为销卡,false不销卡,只退余额
         /// </summary>
         [JsonProperty("is_cancel")]
-        [XmlElement("is_cancel")]
         public string IsCancel { get; set; }
 
         /// <summary>
         /// 操作人id
         /// </summary>
         [JsonProperty("operator")]
-        [XmlElement("operator")]
         public string Operator { get; set; }
 
         /// <summary>
         /// 比如某种业务标准外部订单号,比如交易外部订单号,代表商户端自己订单号
         /// </summary>
         [JsonProperty("out_biz_no")]
-        [XmlElement("out_biz_no")]
         public string OutBizNo { get; set; }
 
         /// <summary>
         /// 订单明细
         /// </summary>
         [JsonProperty("recharge_details")]
-        [XmlArray("recharge_details")]
-        [XmlArrayItem("recharge_detail")]
         public List<RechargeDetail> RechargeDetails { get; set; }
 
         /// <summary>
         /// 退卡真实资金,单位元,包含手续费
         /// </summary>
         [JsonProperty("return_amount")]
-        [XmlElement("return_amount")]
         public string ReturnAmount { get; set; }
 
         /// <summary>
         /// 退卡面额,单位元,包含手续费
         /// </summary>
         [JsonProperty("return_asset_amount")]
-        [XmlElement("return_asset_amount")]
         public string ReturnAssetAmount { get; set; }
 
         /// <summary>
         /// 退卡手续费真实资金,单位元,没有放0
         /// </summary>
         [JsonProperty("return_fee_amount")]
-        [XmlElement("return_fee_amount")]
         public string ReturnFeeAmount { get; set; }
 
         /// <summary>
         /// 退卡手续费面额,单位元,没有放0
         /// </summary>
         [JsonProperty("return_fee_asset_amount")]
-        [XmlElement("return_fee_asset_amount")]
         public string ReturnFeeAssetAmount { get; set; }
 
         /// <summary>
         /// 蚂蚁统一会员ID
         /// </summary>
         [JsonProperty("user_id")]
-        [XmlElement("user_id")]
         public string UserId { get; set; }
     }
 }

+ 72 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAssetCardTransferModel.cs

@@ -0,0 +1,72 @@
+using System;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// AlipayAssetCardTransferModel Data Structure.
+    /// </summary>
+    [Serializable]
+    public class AlipayAssetCardTransferModel : AlipayObject
+    {
+        /// <summary>
+        /// 转移金额,单位元
+        /// </summary>
+        [JsonProperty("amount")]
+        public string Amount { get; set; }
+
+        /// <summary>
+        /// 模板实例,资产id
+        /// </summary>
+        [JsonProperty("asset_id")]
+        public string AssetId { get; set; }
+
+        /// <summary>
+        /// 资产平台类型卡/券
+        /// </summary>
+        [JsonProperty("asset_type")]
+        public string AssetType { get; set; }
+
+        /// <summary>
+        /// 业务发生时间
+        /// </summary>
+        [JsonProperty("biz_dt")]
+        public string BizDt { get; set; }
+
+        /// <summary>
+        /// 业务订单号,幂等字段
+        /// </summary>
+        [JsonProperty("biz_no")]
+        public string BizNo { get; set; }
+
+        /// <summary>
+        /// 扩展信息
+        /// </summary>
+        [JsonProperty("extend_info")]
+        public string ExtendInfo { get; set; }
+
+        /// <summary>
+        /// 资金流场景
+        /// </summary>
+        [JsonProperty("fund_scence")]
+        public string FundScence { get; set; }
+
+        /// <summary>
+        /// 接收方支付宝用户id
+        /// </summary>
+        [JsonProperty("receive_user_id")]
+        public string ReceiveUserId { get; set; }
+
+        /// <summary>
+        /// 模板id
+        /// </summary>
+        [JsonProperty("template_id")]
+        public string TemplateId { get; set; }
+
+        /// <summary>
+        /// 支付宝用户userId
+        /// </summary>
+        [JsonProperty("user_id")]
+        public string UserId { get; set; }
+    }
+}

+ 1 - 12
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAssetPointAccountlogQueryModel.cs

@@ -1,6 +1,5 @@
-using System;
+using System;
 using System.Collections.Generic;
-using System.Xml.Serialization;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -15,58 +14,48 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 用户流水查询起始时间
         /// </summary>
         [JsonProperty("account_date_begin")]
-        [XmlElement("account_date_begin")]
         public string AccountDateBegin { get; set; }
 
         /// <summary>
         /// 用户流水查询结束时间
         /// </summary>
         [JsonProperty("account_date_end")]
-        [XmlElement("account_date_end")]
         public string AccountDateEnd { get; set; }
 
         /// <summary>
         /// 分页查询的当前页号,从1开始
         /// </summary>
         [JsonProperty("page_number")]
-        [XmlElement("page_number")]
         public long PageNumber { get; set; }
 
         /// <summary>
         /// 分页查询的单页大小
         /// </summary>
         [JsonProperty("page_size")]
-        [XmlElement("page_size")]
         public long PageSize { get; set; }
 
         /// <summary>
         /// 子交易代码,标记大业务下的子业务,例如充值-外部商户发放,可选参数可以不传
         /// </summary>
         [JsonProperty("sub_trans_code")]
-        [XmlArray("sub_trans_code")]
-        [XmlArrayItem("string")]
         public List<string> SubTransCode { get; set; }
 
         /// <summary>
         /// 主交易代码,例如支付、充值等,标记业务大类,可选参数可以不传
         /// </summary>
         [JsonProperty("trans_code")]
-        [XmlArray("trans_code")]
-        [XmlArrayItem("string")]
         public List<string> TransCode { get; set; }
 
         /// <summary>
         /// 用户标识符,用于指定集分宝发放的用户,和user_symbol_type一起使用,确定一个唯一的支付宝用户
         /// </summary>
         [JsonProperty("user_symbol")]
-        [XmlElement("user_symbol")]
         public string UserSymbol { get; set; }
 
         /// <summary>
         /// 用户标识符类型,  现在支持ALIPAY_USER_ID:表示支付宝用户ID,  ALIPAY_LOGON_ID:表示支付宝登陆号,
         /// </summary>
         [JsonProperty("user_symbol_type")]
-        [XmlElement("user_symbol_type")]
         public string UserSymbolType { get; set; }
     }
 }

+ 1 - 8
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAssetPointOrderCreateModel.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,42 +13,36 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 向用户展示集分宝发放备注
         /// </summary>
         [JsonProperty("memo")]
-        [XmlElement("memo")]
         public string Memo { get; set; }
 
         /// <summary>
         /// isv提供的发放订单号,由数字和字母组成,最大长度为32位,需要保证每笔订单发放的唯一性,支付宝对该参数做唯一性校验。如果订单号已存在,支付宝将返回订单号已经存在的错误
         /// </summary>
         [JsonProperty("merchant_order_no")]
-        [XmlElement("merchant_order_no")]
         public string MerchantOrderNo { get; set; }
 
         /// <summary>
         /// 发放集分宝时间
         /// </summary>
         [JsonProperty("order_time")]
-        [XmlElement("order_time")]
         public string OrderTime { get; set; }
 
         /// <summary>
         /// 发放集分宝的数量
         /// </summary>
         [JsonProperty("point_count")]
-        [XmlElement("point_count")]
         public long PointCount { get; set; }
 
         /// <summary>
         /// 用户标识符,用于指定集分宝发放的用户,和user_symbol_type一起使用,确定一个唯一的支付宝用户
         /// </summary>
         [JsonProperty("user_symbol")]
-        [XmlElement("user_symbol")]
         public string UserSymbol { get; set; }
 
         /// <summary>
         /// 用户标识符类型,  现在支持ALIPAY_USER_ID:表示支付宝用户ID,  ALIPAY_LOGON_ID:表示支付宝登陆号,  TAOBAO_NICK:淘宝昵称
         /// </summary>
         [JsonProperty("user_symbol_type")]
-        [XmlElement("user_symbol_type")]
         public string UserSymbolType { get; set; }
     }
 }

+ 1 - 3
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAssetPointOrderQueryModel.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,7 +13,6 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// isv提供的发放号订单号,由数字和字母组成,最大长度为32为,需要保证每笔发放的唯一性,集分宝系统会对该参数做唯一性控制。调用接口后集分宝系统会根据这个外部订单号查询发放的订单详情。
         /// </summary>
         [JsonProperty("merchant_order_no")]
-        [XmlElement("merchant_order_no")]
         public string MerchantOrderNo { get; set; }
     }
 }

+ 1 - 14
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayAssetVoucherprodChargeSendModel.cs

@@ -1,6 +1,5 @@
-using System;
+using System;
 using System.Collections.Generic;
-using System.Xml.Serialization;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -15,78 +14,66 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 卡资金总金额,单位元
         /// </summary>
         [JsonProperty("amount")]
-        [XmlElement("amount")]
         public string Amount { get; set; }
 
         /// <summary>
         /// 资产总面额,单位元
         /// </summary>
         [JsonProperty("asset_amount")]
-        [XmlElement("asset_amount")]
         public string AssetAmount { get; set; }
 
         /// <summary>
         /// 资产详情
         /// </summary>
         [JsonProperty("asset_details")]
-        [XmlArray("asset_details")]
-        [XmlArrayItem("vcp_asset_detail")]
         public List<VcpAssetDetail> AssetDetails { get; set; }
 
         /// <summary>
         /// 资产id
         /// </summary>
         [JsonProperty("asset_id")]
-        [XmlElement("asset_id")]
         public string AssetId { get; set; }
 
         /// <summary>
         /// 资产id类型 模板/资产id实例 ASSET_INSTANCE(实例)/ASSET_TEMPLATE(模板)
         /// </summary>
         [JsonProperty("asset_id_type")]
-        [XmlElement("asset_id_type")]
         public string AssetIdType { get; set; }
 
         /// <summary>
         /// 资产平台类型卡/券
         /// </summary>
         [JsonProperty("asset_type")]
-        [XmlElement("asset_type")]
         public string AssetType { get; set; }
 
         /// <summary>
         /// 业务发生时间
         /// </summary>
         [JsonProperty("biz_dt")]
-        [XmlElement("biz_dt")]
         public string BizDt { get; set; }
 
         /// <summary>
         /// 扩展信息
         /// </summary>
         [JsonProperty("extend_info")]
-        [XmlElement("extend_info")]
         public string ExtendInfo { get; set; }
 
         /// <summary>
         /// 资金流场景
         /// </summary>
         [JsonProperty("fund_scence")]
-        [XmlElement("fund_scence")]
         public string FundScence { get; set; }
 
         /// <summary>
         /// 比如某种业务标准外部订单号,比如交易外部订单号,代表商户端自己订单号
         /// </summary>
         [JsonProperty("out_biz_no")]
-        [XmlElement("out_biz_no")]
         public string OutBizNo { get; set; }
 
         /// <summary>
         /// 用户userId
         /// </summary>
         [JsonProperty("publisher_user_id")]
-        [XmlElement("publisher_user_id")]
         public string PublisherUserId { get; set; }
     }
 }

+ 1 - 5
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBossBaseProcessInstanceCancelModel.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,21 +13,18 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 备注
         /// </summary>
         [JsonProperty("memo")]
-        [XmlElement("memo")]
         public string Memo { get; set; }
 
         /// <summary>
         /// 处理人域账号
         /// </summary>
         [JsonProperty("operator")]
-        [XmlElement("operator")]
         public string Operator { get; set; }
 
         /// <summary>
         /// 流程全局唯一ID
         /// </summary>
         [JsonProperty("puid")]
-        [XmlElement("puid")]
         public string Puid { get; set; }
     }
 }

+ 1 - 15
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBossBaseProcessInstanceCreateModel.cs

@@ -1,6 +1,5 @@
-using System;
+using System;
 using System.Collections.Generic;
-using System.Xml.Serialization;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -15,79 +14,66 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 加签内容
         /// </summary>
         [JsonProperty("add_sign_content")]
-        [XmlArray("add_sign_content")]
-        [XmlArrayItem("b_p_open_api_add_sign_content")]
         public List<BPOpenApiAddSignContent> AddSignContent { get; set; }
 
         /// <summary>
         /// 业务上下文,JSON格式
         /// </summary>
         [JsonProperty("context")]
-        [XmlElement("context")]
         public string Context { get; set; }
 
         /// <summary>
         /// 创建人的域账号
         /// </summary>
         [JsonProperty("creator")]
-        [XmlElement("creator")]
         public string Creator { get; set; }
 
         /// <summary>
         /// 描述信息
         /// </summary>
         [JsonProperty("description")]
-        [XmlElement("description")]
         public string Description { get; set; }
 
         /// <summary>
         /// 2088账号
         /// </summary>
         [JsonProperty("ip_role_id")]
-        [XmlElement("ip_role_id")]
         public string IpRoleId { get; set; }
 
         /// <summary>
         /// 流程配置名称。需要先在流程平台配置流程
         /// </summary>
         [JsonProperty("name")]
-        [XmlElement("name")]
         public string Name { get; set; }
 
         /// <summary>
         /// 优先级,数字越大优先级越高,最大不超过29
         /// </summary>
         [JsonProperty("priority")]
-        [XmlElement("priority")]
         public long Priority { get; set; }
 
         /// <summary>
         /// 流程全局唯一ID,和业务一一对应
         /// </summary>
         [JsonProperty("puid")]
-        [XmlElement("puid")]
         public BPOpenApiPUID Puid { get; set; }
 
         /// <summary>
         /// 前置流程从哪个节点发起的本流程
         /// </summary>
         [JsonProperty("source_node_name")]
-        [XmlElement("source_node_name")]
         public string SourceNodeName { get; set; }
 
         /// <summary>
         /// 前置流程的PUID。用于串连起两个流程
         /// </summary>
         [JsonProperty("source_puid")]
-        [XmlElement("source_puid")]
         public string SourcePuid { get; set; }
 
         /// <summary>
         /// 子流程的上下文。每一个上下文都使用JSON格式
         /// </summary>
         [JsonProperty("sub_contexts")]
-        [XmlArray("sub_contexts")]
-        [XmlArrayItem("string")]
         public List<string> SubContexts { get; set; }
     }
 }

+ 1 - 3
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBossBaseProcessInstanceQueryModel.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,7 +13,6 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 流程全局唯一ID
         /// </summary>
         [JsonProperty("puid")]
-        [XmlElement("puid")]
         public string Puid { get; set; }
     }
 }

+ 1 - 4
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBossBaseProcessSignVerifyModel.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,14 +13,12 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 流程唯一ID
         /// </summary>
         [JsonProperty("puid")]
-        [XmlElement("puid")]
         public string Puid { get; set; }
 
         /// <summary>
         /// mnotify签名直接回传
         /// </summary>
         [JsonProperty("sign_content")]
-        [XmlElement("sign_content")]
         public string SignContent { get; set; }
     }
 }

+ 1 - 12
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBossBaseProcessTaskProcessModel.cs

@@ -1,6 +1,5 @@
-using System;
+using System;
 using System.Collections.Generic;
-using System.Xml.Serialization;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -15,64 +14,54 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 更新的业务上下文。和原有业务上下文同key覆盖,新增key新增。
         /// </summary>
         [JsonProperty("context")]
-        [XmlElement("context")]
         public string Context { get; set; }
 
         /// <summary>
         /// 处理幂等值,特别注意这个值的使用,不能依赖于流程中的任何值。
         /// </summary>
         [JsonProperty("idempotent_id")]
-        [XmlElement("idempotent_id")]
         public string IdempotentId { get; set; }
 
         /// <summary>
         /// 处理备注
         /// </summary>
         [JsonProperty("memo")]
-        [XmlElement("memo")]
         public string Memo { get; set; }
 
         /// <summary>
         /// 当前需要推进的节点
         /// </summary>
         [JsonProperty("node")]
-        [XmlElement("node")]
         public string Node { get; set; }
 
         /// <summary>
         /// 操作名称
         /// </summary>
         [JsonProperty("operate")]
-        [XmlElement("operate")]
         public string Operate { get; set; }
 
         /// <summary>
         /// 当前处理人域账号
         /// </summary>
         [JsonProperty("operator")]
-        [XmlElement("operator")]
         public string Operator { get; set; }
 
         /// <summary>
         /// 更新的优先级。填写0则不更新,使用原值
         /// </summary>
         [JsonProperty("priority")]
-        [XmlElement("priority")]
         public long Priority { get; set; }
 
         /// <summary>
         /// 流程全局唯一ID
         /// </summary>
         [JsonProperty("puid")]
-        [XmlElement("puid")]
         public string Puid { get; set; }
 
         /// <summary>
         /// 更新的子流程上下文。完全覆盖原值。若不需要覆盖,则传null
         /// </summary>
         [JsonProperty("sub_contexts")]
-        [XmlArray("sub_contexts")]
-        [XmlArrayItem("string")]
         public List<string> SubContexts { get; set; }
     }
 }

+ 1 - 14
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBossCsChannelQueryModel.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,84 +13,72 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 平均通话时长的qualifier
         /// </summary>
         [JsonProperty("att")]
-        [XmlElement("att")]
         public string Att { get; set; }
 
         /// <summary>
         /// 总接通率的qualifier
         /// </summary>
         [JsonProperty("connectionrate")]
-        [XmlElement("connectionrate")]
         public string Connectionrate { get; set; }
 
         /// <summary>
         /// 在线小二人数的qualifier
         /// </summary>
         [JsonProperty("curragentsloggedin")]
-        [XmlElement("curragentsloggedin")]
         public string Curragentsloggedin { get; set; }
 
         /// <summary>
         /// 通话中人数的qualifier
         /// </summary>
         [JsonProperty("curragenttalking")]
-        [XmlElement("curragenttalking")]
         public string Curragenttalking { get; set; }
 
         /// <summary>
         /// 小休人数的qualifier
         /// </summary>
         [JsonProperty("currentnotreadyagents")]
-        [XmlElement("currentnotreadyagents")]
         public string Currentnotreadyagents { get; set; }
 
         /// <summary>
         /// 等待人数的qualifier
         /// </summary>
         [JsonProperty("currentreadyagents")]
-        [XmlElement("currentreadyagents")]
         public string Currentreadyagents { get; set; }
 
         /// <summary>
         /// 总排队数的Qualifier
         /// </summary>
         [JsonProperty("currnumberwaitingcalls")]
-        [XmlElement("currnumberwaitingcalls")]
         public string Currnumberwaitingcalls { get; set; }
 
         /// <summary>
         /// 查询hbase的rowkey
         /// </summary>
         [JsonProperty("endkey")]
-        [XmlElement("endkey")]
         public string Endkey { get; set; }
 
         /// <summary>
         /// 查询hbase的rowkey
         /// </summary>
         [JsonProperty("startkey")]
-        [XmlElement("startkey")]
         public string Startkey { get; set; }
 
         /// <summary>
         /// 总流入量的qualifier
         /// </summary>
         [JsonProperty("visitorinflow")]
-        [XmlElement("visitorinflow")]
         public string Visitorinflow { get; set; }
 
         /// <summary>
         /// 总应答量的qualifier
         /// </summary>
         [JsonProperty("visitorresponse")]
-        [XmlElement("visitorresponse")]
         public string Visitorresponse { get; set; }
 
         /// <summary>
         /// 应答量[转接] 的qualifier
         /// </summary>
         [JsonProperty("visitorresponsetransfer")]
-        [XmlElement("visitorresponsetransfer")]
         public string Visitorresponsetransfer { get; set; }
     }
 }

+ 1 - 3
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBossCsCssocialYqmessageQueryModel.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,7 +13,6 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 搜索条件字符串:搜索请求的JSON字符串,JSON字符串中:  posKeyword: 正向关键词  associationKeyword:搭配关键词  negKeyword:排除关键词(负向关键词)
         /// </summary>
         [JsonProperty("search_criteria")]
-        [XmlElement("search_criteria")]
         public string SearchCriteria { get; set; }
     }
 }

+ 1 - 3
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBossCsDatacollectSendModel.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,7 +13,6 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 上数提交数据内容
         /// </summary>
         [JsonProperty("content")]
-        [XmlElement("content")]
         public string Content { get; set; }
     }
 }

+ 61 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBossFncInvoiceApplyModel.cs

@@ -0,0 +1,61 @@
+using System;
+using System.Collections.Generic;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// AlipayBossFncInvoiceApplyModel Data Structure.
+    /// </summary>
+    [Serializable]
+    public class AlipayBossFncInvoiceApplyModel : AlipayObject
+    {
+        /// <summary>
+        /// 调用方身份识别标记(应用名称) 与业务单据号联合唯一
+        /// </summary>
+        [JsonProperty("biz_id")]
+        public string BizId { get; set; }
+
+        /// <summary>
+        /// 业务单据号,业务流水号
+        /// </summary>
+        [JsonProperty("biz_no")]
+        public string BizNo { get; set; }
+
+        /// <summary>
+        /// 开票总金额,开票金额不能为空,开票金额不能小于等于0
+        /// </summary>
+        [JsonProperty("invoice_amt")]
+        public MultiCurrencyMoneyOpenApi InvoiceAmt { get; set; }
+
+        /// <summary>
+        /// 申请开票类型,01:专票;02:普票
+        /// </summary>
+        [JsonProperty("invoice_type")]
+        public string InvoiceType { get; set; }
+
+        /// <summary>
+        /// 备注
+        /// </summary>
+        [JsonProperty("memo")]
+        public string Memo { get; set; }
+
+        /// <summary>
+        /// 需开票的应收月账单号
+        /// </summary>
+        [JsonProperty("mthtly_bill_nos")]
+        public List<string> MthtlyBillNos { get; set; }
+
+        /// <summary>
+        /// 申请人的uid号
+        /// </summary>
+        [JsonProperty("operator")]
+        public string Operator { get; set; }
+
+        /// <summary>
+        /// 01主站,02芝麻,03金融云
+        /// </summary>
+        [JsonProperty("out_biz_type")]
+        public string OutBizType { get; set; }
+    }
+}

+ 163 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBossFncInvoiceBatchqueryModel.cs

@@ -0,0 +1,163 @@
+using System;
+using System.Collections.Generic;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// AlipayBossFncInvoiceBatchqueryModel Data Structure.
+    /// </summary>
+    [Serializable]
+    public class AlipayBossFncInvoiceBatchqueryModel : AlipayObject
+    {
+        /// <summary>
+        /// 开票申请ID,唯一标识开票申请表的ID
+        /// </summary>
+        [JsonProperty("apply_order_id")]
+        public string ApplyOrderId { get; set; }
+
+        /// <summary>
+        /// 买方发票抬头,用于打印在发票上
+        /// </summary>
+        [JsonProperty("buyer_invoice_title")]
+        public string BuyerInvoiceTitle { get; set; }
+
+        /// <summary>
+        /// 对应发票商户的ipId,在主站标示mid,在其他环境标示ip_id。
+        /// </summary>
+        [JsonProperty("buyer_ipid")]
+        public string BuyerIpid { get; set; }
+
+        /// <summary>
+        /// 购方商户ID集合
+        /// </summary>
+        [JsonProperty("buyer_ipids")]
+        public List<string> BuyerIpids { get; set; }
+
+        /// <summary>
+        /// 商户结算的ipRoleId,表示商户的结算对象,在主站表示pid。
+        /// </summary>
+        [JsonProperty("buyer_iprole_id")]
+        public string BuyerIproleId { get; set; }
+
+        /// <summary>
+        /// 购方PID集合
+        /// </summary>
+        [JsonProperty("buyer_iprole_ids")]
+        public List<string> BuyerIproleIds { get; set; }
+
+        /// <summary>
+        /// 对应发票所在OU的id,用于标示该发票所述的OU。
+        /// </summary>
+        [JsonProperty("inst_id")]
+        public string InstId { get; set; }
+
+        /// <summary>
+        /// 开票渠道 01 线上;02 线下
+        /// </summary>
+        [JsonProperty("invoice_channel")]
+        public string InvoiceChannel { get; set; }
+
+        /// <summary>
+        /// 发票代码,税务部门给予发票的编码
+        /// </summary>
+        [JsonProperty("invoice_code")]
+        public string InvoiceCode { get; set; }
+
+        /// <summary>
+        /// 发票创建日期【起始日期,格式yyyyMMdd】
+        /// </summary>
+        [JsonProperty("invoice_create_date_begin")]
+        public string InvoiceCreateDateBegin { get; set; }
+
+        /// <summary>
+        /// 发票创建日期【结束日期,格式yyyyMMdd】
+        /// </summary>
+        [JsonProperty("invoice_create_date_end")]
+        public string InvoiceCreateDateEnd { get; set; }
+
+        /// <summary>
+        /// 发票ID集合,发票ID,唯一标示一张发票的ID
+        /// </summary>
+        [JsonProperty("invoice_ids")]
+        public List<string> InvoiceIds { get; set; }
+
+        /// <summary>
+        /// 开票介质 01电子 02纸质
+        /// </summary>
+        [JsonProperty("invoice_material")]
+        public string InvoiceMaterial { get; set; }
+
+        /// <summary>
+        /// 发票号码,税务部门给予发票的编码
+        /// </summary>
+        [JsonProperty("invoice_no")]
+        public string InvoiceNo { get; set; }
+
+        /// <summary>
+        /// 发票开票日期【起始日期,格式yyyyMMdd】
+        /// </summary>
+        [JsonProperty("invoice_open_date_begin")]
+        public string InvoiceOpenDateBegin { get; set; }
+
+        /// <summary>
+        /// 发票开票日期【结束日期,格式yyyyMMdd】
+        /// </summary>
+        [JsonProperty("invoice_open_date_end")]
+        public string InvoiceOpenDateEnd { get; set; }
+
+        /// <summary>
+        /// 发票状态:用于标示发票当前的状态,状态类型以及相关含义:01 待开票;02 开票中;03 已开票;04 作废中;05 已作废;06 红冲中;07 已红冲;08 部分红冲;09 无效
+        /// </summary>
+        [JsonProperty("invoice_status")]
+        public List<string> InvoiceStatus { get; set; }
+
+        /// <summary>
+        /// 发票类型,01专票 02普票 03营业税发票 04国际形式发票 05其它发票
+        /// </summary>
+        [JsonProperty("invoice_types")]
+        public List<string> InvoiceTypes { get; set; }
+
+        /// <summary>
+        /// 是否能在线开票 Y能 N不能
+        /// </summary>
+        [JsonProperty("is_online")]
+        public string IsOnline { get; set; }
+
+        /// <summary>
+        /// 是否红字 Y红字 N蓝字
+        /// </summary>
+        [JsonProperty("is_red")]
+        public string IsRed { get; set; }
+
+        /// <summary>
+        /// 邮寄状态 01 待邮寄;02 已邮寄;03 退回中;04 已退回
+        /// </summary>
+        [JsonProperty("mail_status")]
+        public List<string> MailStatus { get; set; }
+
+        /// <summary>
+        /// 月账单号
+        /// </summary>
+        [JsonProperty("monthly_bill_no")]
+        public string MonthlyBillNo { get; set; }
+
+        /// <summary>
+        /// 起始页,分页时必须提供
+        /// </summary>
+        [JsonProperty("page_no")]
+        public long PageNo { get; set; }
+
+        /// <summary>
+        /// 每页显示数,分页时必须提供
+        /// </summary>
+        [JsonProperty("page_size")]
+        public long PageSize { get; set; }
+
+        /// <summary>
+        /// 快递单号
+        /// </summary>
+        [JsonProperty("tracking_no")]
+        public string TrackingNo { get; set; }
+    }
+}

+ 18 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBossFncInvoiceQueryModel.cs

@@ -0,0 +1,18 @@
+using System;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// AlipayBossFncInvoiceQueryModel Data Structure.
+    /// </summary>
+    [Serializable]
+    public class AlipayBossFncInvoiceQueryModel : AlipayObject
+    {
+        /// <summary>
+        /// 查询ID:用于标示一张发票,通过发票综合查询可以查询到该ID。
+        /// </summary>
+        [JsonProperty("invoice_id")]
+        public string InvoiceId { get; set; }
+    }
+}

+ 25 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBossFncInvoicereceiptBatchqueryModel.cs

@@ -0,0 +1,25 @@
+using System;
+using System.Collections.Generic;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// AlipayBossFncInvoicereceiptBatchqueryModel Data Structure.
+    /// </summary>
+    [Serializable]
+    public class AlipayBossFncInvoicereceiptBatchqueryModel : AlipayObject
+    {
+        /// <summary>
+        /// 月账单号集合,唯一性ID集合,月账单表唯一主键ID集合
+        /// </summary>
+        [JsonProperty("bill_nos")]
+        public List<string> BillNos { get; set; }
+
+        /// <summary>
+        /// 来源类型,01:主站;02:芝麻;03:金融云;04:微贷
+        /// </summary>
+        [JsonProperty("out_biz_type")]
+        public string OutBizType { get; set; }
+    }
+}

+ 42 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBossFncInvoicereceiptCreateModel.cs

@@ -0,0 +1,42 @@
+using System;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// AlipayBossFncInvoicereceiptCreateModel Data Structure.
+    /// </summary>
+    [Serializable]
+    public class AlipayBossFncInvoicereceiptCreateModel : AlipayObject
+    {
+        /// <summary>
+        /// 账单金额变更消息事件码  AR_MTHLY_BILL_CREATE:应收账单创建,  AR_MTHLY_BILL_CHANGE:应收金额更新
+        /// </summary>
+        [JsonProperty("event_code")]
+        public string EventCode { get; set; }
+
+        /// <summary>
+        /// 账单金额变更消息事件类型  CREATE:创建事件,UPDATE:更新事件
+        /// </summary>
+        [JsonProperty("event_type")]
+        public string EventType { get; set; }
+
+        /// <summary>
+        /// 月帐单信息
+        /// </summary>
+        [JsonProperty("monthly_bill")]
+        public ArMonthlyBillDTO MonthlyBill { get; set; }
+
+        /// <summary>
+        /// 事件全局id,可以使用uuid
+        /// </summary>
+        [JsonProperty("msg_id")]
+        public string MsgId { get; set; }
+
+        /// <summary>
+        /// 消息来源 01:主站,02:芝麻,03:金融云,04:微贷
+        /// </summary>
+        [JsonProperty("out_biz_type")]
+        public string OutBizType { get; set; }
+    }
+}

+ 145 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBossFncUserinvoiceinfoCreateModel.cs

@@ -0,0 +1,145 @@
+using System;
+using System.Collections.Generic;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// AlipayBossFncUserinvoiceinfoCreateModel Data Structure.
+    /// </summary>
+    [Serializable]
+    public class AlipayBossFncUserinvoiceinfoCreateModel : AlipayObject
+    {
+        /// <summary>
+        /// 是否接受电子票 true:是,false:否
+        /// </summary>
+        [JsonProperty("accept_electronic")]
+        public bool AcceptElectronic { get; set; }
+
+        /// <summary>
+        /// 公司注册地址,公司营业执照上登记的住址,一般纳税人必须填写,小规模纳税人无需填写
+        /// </summary>
+        [JsonProperty("address")]
+        public string Address { get; set; }
+
+        /// <summary>
+        /// 开票资料pid寻址方式 true:pid寻址mid,优先以mid维度保存开票资料,若无mid则以pid维度保存开票资料 false:不寻址mid,以pid维度保存开票资料;非主站商户体系都是以pid(ipRoleId)维度保存开票资料,该值直接填为false
+        /// </summary>
+        [JsonProperty("addressing")]
+        public bool Addressing { get; set; }
+
+        /// <summary>
+        /// 是否自动申请开票 true:是,false:否
+        /// </summary>
+        [JsonProperty("auto")]
+        public bool Auto { get; set; }
+
+        /// <summary>
+        /// 银行账户,公司银行账号  一般纳税人必须填写,小规模纳税人无需填写
+        /// </summary>
+        [JsonProperty("bank_account")]
+        public string BankAccount { get; set; }
+
+        /// <summary>
+        /// 开户行,办理银行开户手续的营业网点  一般纳税人必须填写,小规模纳税人无需填写
+        /// </summary>
+        [JsonProperty("bank_name")]
+        public string BankName { get; set; }
+
+        /// <summary>
+        /// 营业执照地址,营业执照上传oss上的地址
+        /// </summary>
+        [JsonProperty("business_licence_url")]
+        public string BusinessLicenceUrl { get; set; }
+
+        /// <summary>
+        /// 是否暂停开票,商户添加的开票资料就是不暂停开票,如果后续要暂停开票,只能去结算中台处理。
+        /// </summary>
+        [JsonProperty("hold")]
+        public bool Hold { get; set; }
+
+        /// <summary>
+        /// 商户的pid(ipRoleId)
+        /// </summary>
+        [JsonProperty("ip_role_id")]
+        public string IpRoleId { get; set; }
+
+        /// <summary>
+        /// 银行开户许可证附件,银行开户许可证上传oss上的地址
+        /// </summary>
+        [JsonProperty("open_account_permit_url")]
+        public string OpenAccountPermitUrl { get; set; }
+
+        /// <summary>
+        /// 当前操作人
+        /// </summary>
+        [JsonProperty("operator")]
+        public string Operator { get; set; }
+
+        /// <summary>
+        /// 当前操作人类型,01:商户 02:管理员(小二)
+        /// </summary>
+        [JsonProperty("operator_type")]
+        public string OperatorType { get; set; }
+
+        /// <summary>
+        /// 其它资质证明地址,其他资质证明附件上传oss上的地址
+        /// </summary>
+        [JsonProperty("other_qualification_url")]
+        public string OtherQualificationUrl { get; set; }
+
+        /// <summary>
+        /// 外部只允许添加商户开票资料,该值填写为false
+        /// </summary>
+        [JsonProperty("ou")]
+        public bool Ou { get; set; }
+
+        /// <summary>
+        /// 纳税人识别号,税务登记证上的号码。一般纳税人必须填写,小规模纳税人如果是商户也必须填写,个人无需填写
+        /// </summary>
+        [JsonProperty("tax_no")]
+        public string TaxNo { get; set; }
+
+        /// <summary>
+        /// 纳税人资格开始时间 (格式:时间戳)  一般纳税人必须填写,小规模纳税人无需填写
+        /// </summary>
+        [JsonProperty("tax_payer_quali_valid")]
+        public string TaxPayerQualiValid { get; set; }
+
+        /// <summary>
+        /// 纳税人资格种类,01:一般纳税人;02:小规模纳税人;03:国际商户
+        /// </summary>
+        [JsonProperty("tax_payer_qualification")]
+        public string TaxPayerQualification { get; set; }
+
+        /// <summary>
+        /// 一般纳税人资格证书地址,一般纳税人资格证书上传oss上的地址
+        /// </summary>
+        [JsonProperty("tax_qualification_url")]
+        public string TaxQualificationUrl { get; set; }
+
+        /// <summary>
+        /// 税务登记证地址,税务登记证上传oss上的地址
+        /// </summary>
+        [JsonProperty("tax_reg_cert_url")]
+        public string TaxRegCertUrl { get; set; }
+
+        /// <summary>
+        /// 公司注册电话(手机号和座机均可)  一般纳税人必须填写,小规模纳税人无需填写
+        /// </summary>
+        [JsonProperty("telephone")]
+        public string Telephone { get; set; }
+
+        /// <summary>
+        /// 发票抬头,票面信息上的抬头信息
+        /// </summary>
+        [JsonProperty("title")]
+        public string Title { get; set; }
+
+        /// <summary>
+        /// 收件人列表,若不修改此项可以不填  选择非电子票时,邮寄信息必填,且保证邮寄信息的ipRoleId和开票资料的ipRoleId相等
+        /// </summary>
+        [JsonProperty("user_mail_info_order_list")]
+        public List<UserMailInfoOrder> UserMailInfoOrderList { get; set; }
+    }
+}

+ 133 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBossFncUserinvoiceinfoModifyModel.cs

@@ -0,0 +1,133 @@
+using System;
+using System.Collections.Generic;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// AlipayBossFncUserinvoiceinfoModifyModel Data Structure.
+    /// </summary>
+    [Serializable]
+    public class AlipayBossFncUserinvoiceinfoModifyModel : AlipayObject
+    {
+        /// <summary>
+        /// 是否接受电子票 true:是,false:否
+        /// </summary>
+        [JsonProperty("accept_electronic")]
+        public bool AcceptElectronic { get; set; }
+
+        /// <summary>
+        /// 公司注册地址,公司营业执照上登记的住址,一般纳税人必须填写,小规模纳税人无需填写
+        /// </summary>
+        [JsonProperty("address")]
+        public string Address { get; set; }
+
+        /// <summary>
+        /// 是否自动申请开票 true:是;false:否
+        /// </summary>
+        [JsonProperty("auto")]
+        public bool Auto { get; set; }
+
+        /// <summary>
+        /// 银行账户,公司银行账号  一般纳税人必须填写,小规模纳税人无需填写
+        /// </summary>
+        [JsonProperty("bank_account")]
+        public string BankAccount { get; set; }
+
+        /// <summary>
+        /// 开户行,办理银行开户手续的营业网点  一般纳税人必须填写,小规模纳税人无需填写
+        /// </summary>
+        [JsonProperty("bank_name")]
+        public string BankName { get; set; }
+
+        /// <summary>
+        /// 营业执照地址,营业执照上传oss上的地址
+        /// </summary>
+        [JsonProperty("business_licence_url")]
+        public string BusinessLicenceUrl { get; set; }
+
+        /// <summary>
+        /// 是否暂停开票,商户修改无效,如果要暂停开票,只能去结算中台处理。
+        /// </summary>
+        [JsonProperty("hold")]
+        public bool Hold { get; set; }
+
+        /// <summary>
+        /// 开票资料ID
+        /// </summary>
+        [JsonProperty("id")]
+        public string Id { get; set; }
+
+        /// <summary>
+        /// 银行开户许可证附件,银行开户许可证上传oss上的地址
+        /// </summary>
+        [JsonProperty("open_account_permit_url")]
+        public string OpenAccountPermitUrl { get; set; }
+
+        /// <summary>
+        /// 当前操作人
+        /// </summary>
+        [JsonProperty("operator")]
+        public string Operator { get; set; }
+
+        /// <summary>
+        /// 当前操作人类型,01:商户;02:管理员(小二)
+        /// </summary>
+        [JsonProperty("operator_type")]
+        public string OperatorType { get; set; }
+
+        /// <summary>
+        /// 其它资质证明地址,其他资质证明附件上传oss上的地址
+        /// </summary>
+        [JsonProperty("other_qualification_url")]
+        public string OtherQualificationUrl { get; set; }
+
+        /// <summary>
+        /// 纳税人识别号,税务登记证上的号码。一般纳税人必须填写,小规模纳税人如果是商户也必须填写,个人无需填写
+        /// </summary>
+        [JsonProperty("tax_no")]
+        public string TaxNo { get; set; }
+
+        /// <summary>
+        /// 纳税人资格开始时间 (格式:时间戳)  一般纳税人必须填写,小规模纳税人无需填写
+        /// </summary>
+        [JsonProperty("tax_payer_quali_valid")]
+        public string TaxPayerQualiValid { get; set; }
+
+        /// <summary>
+        /// 纳税人资格种类,01:一般纳税人;02:小规模纳税人;03:国际商户
+        /// </summary>
+        [JsonProperty("tax_payer_qualification")]
+        public string TaxPayerQualification { get; set; }
+
+        /// <summary>
+        /// 一般纳税人资格证书地址,一般纳税人资格证书上传oss上的地址
+        /// </summary>
+        [JsonProperty("tax_qualification_url")]
+        public string TaxQualificationUrl { get; set; }
+
+        /// <summary>
+        /// 税务登记证地址,税务登记证上传oss上的地址
+        /// </summary>
+        [JsonProperty("tax_reg_cert_url")]
+        public string TaxRegCertUrl { get; set; }
+
+        /// <summary>
+        /// 公司注册电话  一般纳税人必须填写,小规模纳税人无需填写
+        /// </summary>
+        [JsonProperty("telephone")]
+        public string Telephone { get; set; }
+
+        /// <summary>
+        /// 发票抬头,票面信息上的抬头信息
+        /// </summary>
+        [JsonProperty("title")]
+        public string Title { get; set; }
+
+        /// <summary>
+        /// 收件人列表,若不修改此项可以不填  选择非电子票时,邮寄信息必填,且保证邮寄信息的ipRoleId和开票资料的ipRoleId相等
+        /// </summary>
+        [JsonProperty("user_mail_info_order_list")]
+        public List<UserMailInfoOrder> UserMailInfoOrderList { get; set; }
+    }
+}

+ 18 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBossFncUserinvoiceinfoQueryModel.cs

@@ -0,0 +1,18 @@
+using System;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// AlipayBossFncUserinvoiceinfoQueryModel Data Structure.
+    /// </summary>
+    [Serializable]
+    public class AlipayBossFncUserinvoiceinfoQueryModel : AlipayObject
+    {
+        /// <summary>
+        /// 开票pid/mid/ou,唯一标识商户信息/集团用户信息的ID
+        /// </summary>
+        [JsonProperty("pid")]
+        public string Pid { get; set; }
+    }
+}

+ 30 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBossOrderApplyModel.cs

@@ -0,0 +1,30 @@
+using System;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// AlipayBossOrderApplyModel Data Structure.
+    /// </summary>
+    [Serializable]
+    public class AlipayBossOrderApplyModel : AlipayObject
+    {
+        /// <summary>
+        /// synchronize
+        /// </summary>
+        [JsonProperty("operation_type")]
+        public string OperationType { get; set; }
+
+        /// <summary>
+        /// 订单号
+        /// </summary>
+        [JsonProperty("order_no")]
+        public string OrderNo { get; set; }
+
+        /// <summary>
+        /// 订单类型
+        /// </summary>
+        [JsonProperty("order_type")]
+        public string OrderType { get; set; }
+    }
+}

+ 54 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBossOrderDiagnosisGetModel.cs

@@ -0,0 +1,54 @@
+using System;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// AlipayBossOrderDiagnosisGetModel Data Structure.
+    /// </summary>
+    [Serializable]
+    public class AlipayBossOrderDiagnosisGetModel : AlipayObject
+    {
+        /// <summary>
+        /// 返回的具体的结果信息,选填
+        /// </summary>
+        [JsonProperty("code")]
+        public string Code { get; set; }
+
+        /// <summary>
+        /// 结束时间,按照yyyy-MM-dd HH:mm:ss
+        /// </summary>
+        [JsonProperty("end_time")]
+        public string EndTime { get; set; }
+
+        /// <summary>
+        /// 发现人,用于表示详细的问题发现者的类别  PFUNDDTS:资金治理服务平台  TIANWEN:淘宝天问平台  TRADEBRAIN:交易大脑  BCP:淘宝业务实时校验平台  DEVELOPER:开发  CUSTOMER_SERVICE:客服
+        /// </summary>
+        [JsonProperty("find_operator")]
+        public string FindOperator { get; set; }
+
+        /// <summary>
+        /// 订单号,订单号和外部订单号两者不能同时为空
+        /// </summary>
+        [JsonProperty("order_no")]
+        public string OrderNo { get; set; }
+
+        /// <summary>
+        /// 外部订单号,例如,淘宝订单号;  订单号和外部订单号两者不能同时为空
+        /// </summary>
+        [JsonProperty("out_order_no")]
+        public string OutOrderNo { get; set; }
+
+        /// <summary>
+        /// 问题发现的来源,有以下几类  OUTSIDE_AUTOMATIC,外部自动发现  INSIDE_AUTOMATIC,内部自动发现  MANUAL_CONSULT,人工咨询
+        /// </summary>
+        [JsonProperty("source")]
+        public string Source { get; set; }
+
+        /// <summary>
+        /// 开始时间,按照yyyy-MM-dd HH:mm:ss
+        /// </summary>
+        [JsonProperty("start_time")]
+        public string StartTime { get; set; }
+    }
+}

+ 1 - 19
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBossProdSubmerchantCreateModel.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,119 +13,102 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 受理商户详细经营地址
         /// </summary>
         [JsonProperty("address")]
-        [XmlElement("address")]
         public string Address { get; set; }
 
         /// <summary>
         /// 受理商户简称
         /// </summary>
         [JsonProperty("alias_name")]
-        [XmlElement("alias_name")]
         public string AliasName { get; set; }
 
         /// <summary>
         /// 受理商户营业执照编号
         /// </summary>
         [JsonProperty("business_license")]
-        [XmlElement("business_license")]
         public string BusinessLicense { get; set; }
 
         /// <summary>
         /// 受理商户经营类目,参考开放平台口碑开放行业入驻要求
         /// </summary>
         [JsonProperty("category_id")]
-        [XmlElement("category_id")]
         public string CategoryId { get; set; }
 
         /// <summary>
         /// 受理商户所在城市编码
         /// </summary>
         [JsonProperty("city_code")]
-        [XmlElement("city_code")]
         public string CityCode { get; set; }
 
         /// <summary>
         /// 受理商户联系人邮箱
         /// </summary>
         [JsonProperty("contact_email")]
-        [XmlElement("contact_email")]
         public string ContactEmail { get; set; }
 
         /// <summary>
         /// 受理商户联系人手机号
         /// </summary>
         [JsonProperty("contact_mobile")]
-        [XmlElement("contact_mobile")]
         public string ContactMobile { get; set; }
 
         /// <summary>
         /// 受理商户联系人名称
         /// </summary>
         [JsonProperty("contact_name")]
-        [XmlElement("contact_name")]
         public string ContactName { get; set; }
 
         /// <summary>
         /// 受理商户联系人电话
         /// </summary>
         [JsonProperty("contact_phone")]
-        [XmlElement("contact_phone")]
         public string ContactPhone { get; set; }
 
         /// <summary>
         /// 受理商户所在区县编码
         /// </summary>
         [JsonProperty("district_code")]
-        [XmlElement("district_code")]
         public string DistrictCode { get; set; }
 
         /// <summary>
         /// 受理商户编号,由受理机构定义,需要保证在受理机构下唯一
         /// </summary>
         [JsonProperty("external_id")]
-        [XmlElement("external_id")]
         public string ExternalId { get; set; }
 
         /// <summary>
         /// 受理商户身份证编号
         /// </summary>
         [JsonProperty("id_card")]
-        [XmlElement("id_card")]
         public string IdCard { get; set; }
 
         /// <summary>
         /// 受理商户备注信息,可填写额外信息
         /// </summary>
         [JsonProperty("memo")]
-        [XmlElement("memo")]
         public string Memo { get; set; }
 
         /// <summary>
         /// 受理商户名称
         /// </summary>
         [JsonProperty("name")]
-        [XmlElement("name")]
         public string Name { get; set; }
 
         /// <summary>
         /// 受理商户所在省份编码
         /// </summary>
         [JsonProperty("province_code")]
-        [XmlElement("province_code")]
         public string ProvinceCode { get; set; }
 
         /// <summary>
         /// 受理商户客服电话
         /// </summary>
         [JsonProperty("service_phone")]
-        [XmlElement("service_phone")]
         public string ServicePhone { get; set; }
 
         /// <summary>
         /// 受理商户来源机构标识,填写受理机构在支付宝的pid
         /// </summary>
         [JsonProperty("source")]
-        [XmlElement("source")]
         public string Source { get; set; }
     }
 }

+ 1 - 14
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBossProdSubmerchantModifyModel.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,84 +13,72 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 受理商户详细经营地址
         /// </summary>
         [JsonProperty("address")]
-        [XmlElement("address")]
         public string Address { get; set; }
 
         /// <summary>
         /// 受理商户简称
         /// </summary>
         [JsonProperty("alias_name")]
-        [XmlElement("alias_name")]
         public string AliasName { get; set; }
 
         /// <summary>
         /// 受理商户营业执照编号
         /// </summary>
         [JsonProperty("business_license")]
-        [XmlElement("business_license")]
         public string BusinessLicense { get; set; }
 
         /// <summary>
         /// 受理商户城市编码
         /// </summary>
         [JsonProperty("city_code")]
-        [XmlElement("city_code")]
         public string CityCode { get; set; }
 
         /// <summary>
         /// 受理商户联系人名称
         /// </summary>
         [JsonProperty("contact_name")]
-        [XmlElement("contact_name")]
         public string ContactName { get; set; }
 
         /// <summary>
         /// 受理商户区县编码
         /// </summary>
         [JsonProperty("district_code")]
-        [XmlElement("district_code")]
         public string DistrictCode { get; set; }
 
         /// <summary>
         /// 受理商户编号,与sub_merchant_id二选一必传
         /// </summary>
         [JsonProperty("external_id")]
-        [XmlElement("external_id")]
         public string ExternalId { get; set; }
 
         /// <summary>
         /// 受理商户身份证编号
         /// </summary>
         [JsonProperty("id_card")]
-        [XmlElement("id_card")]
         public string IdCard { get; set; }
 
         /// <summary>
         /// 受理商户省份编码
         /// </summary>
         [JsonProperty("province_code")]
-        [XmlElement("province_code")]
         public string ProvinceCode { get; set; }
 
         /// <summary>
         /// 受理商户客服电话
         /// </summary>
         [JsonProperty("service_phone")]
-        [XmlElement("service_phone")]
         public string ServicePhone { get; set; }
 
         /// <summary>
         /// 受理商户来源机构标识,填写受理机构在支付宝的pid
         /// </summary>
         [JsonProperty("source")]
-        [XmlElement("source")]
         public string Source { get; set; }
 
         /// <summary>
         /// 本次修改受理商户的支付宝识别号,同请求传入的sub_merchant_id字段,与external_id二选一必传
         /// </summary>
         [JsonProperty("sub_merchant_id")]
-        [XmlElement("sub_merchant_id")]
         public string SubMerchantId { get; set; }
     }
 }

+ 1 - 4
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBossProdSubmerchantQueryModel.cs

@@ -1,5 +1,4 @@
-using System;
-using System.Xml.Serialization;
+using System;
 using Newtonsoft.Json;
 
 namespace Essensoft.AspNetCore.Payment.Alipay.Domain
@@ -14,14 +13,12 @@ namespace Essensoft.AspNetCore.Payment.Alipay.Domain
         /// 受理商户在受理机构下的唯一标识,与sub_merchant_id二选一必传
         /// </summary>
         [JsonProperty("external_id")]
-        [XmlElement("external_id")]
         public string ExternalId { get; set; }
 
         /// <summary>
         /// 受理商户在支付宝入驻后的识别号,商户入驻后由支付宝返回,与external_id二选一必传
         /// </summary>
         [JsonProperty("sub_merchant_id")]
-        [XmlElement("sub_merchant_id")]
         public string SubMerchantId { get; set; }
     }
 }

+ 97 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBusinessItemExternalSyncModel.cs

@@ -0,0 +1,97 @@
+using System;
+using System.Collections.Generic;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// AlipayBusinessItemExternalSyncModel Data Structure.
+    /// </summary>
+    [Serializable]
+    public class AlipayBusinessItemExternalSyncModel : AlipayObject
+    {
+        /// <summary>
+        /// 商品失效时间
+        /// </summary>
+        [JsonProperty("end_date")]
+        public string EndDate { get; set; }
+
+        /// <summary>
+        /// 商品扩展金额
+        /// </summary>
+        [JsonProperty("ext_price_info")]
+        public List<PriceInfo> ExtPriceInfo { get; set; }
+
+        /// <summary>
+        /// 商品扩展属性
+        /// </summary>
+        [JsonProperty("ext_prop")]
+        public string ExtProp { get; set; }
+
+        /// <summary>
+        /// 商品外部类目信息
+        /// </summary>
+        [JsonProperty("external_category_info")]
+        public ItemCategoryInfo ExternalCategoryInfo { get; set; }
+
+        /// <summary>
+        /// 外部商品id
+        /// </summary>
+        [JsonProperty("external_item_id")]
+        public string ExternalItemId { get; set; }
+
+        /// <summary>
+        /// 商品库存数量
+        /// </summary>
+        [JsonProperty("inventory")]
+        public long Inventory { get; set; }
+
+        /// <summary>
+        /// 商品类型:  COMMON_ITEM 普通商品
+        /// </summary>
+        [JsonProperty("item_type")]
+        public string ItemType { get; set; }
+
+        /// <summary>
+        /// 商品金额,单位为元,精确到小数点后两位
+        /// </summary>
+        [JsonProperty("original_price")]
+        public string OriginalPrice { get; set; }
+
+        /// <summary>
+        /// 商品图片信息
+        /// </summary>
+        [JsonProperty("picture_info")]
+        public string PictureInfo { get; set; }
+
+        /// <summary>
+        /// 商品活动类型  GROUP_BUYING 拼团  FLASH_SALE 秒杀  DISCOUNT_SEVEN 七折抢新  NINE_BY_NINE 九块九
+        /// </summary>
+        [JsonProperty("promotion_type")]
+        public string PromotionType { get; set; }
+
+        /// <summary>
+        /// 请求ID,支持英文字母和数字,由调用者自行定义(不允许重复)
+        /// </summary>
+        [JsonProperty("request_id")]
+        public string RequestId { get; set; }
+
+        /// <summary>
+        /// 商品生效时间
+        /// </summary>
+        [JsonProperty("start_date")]
+        public string StartDate { get; set; }
+
+        /// <summary>
+        /// 商品状态  EFFECTIVE 上架  INVALID 下架
+        /// </summary>
+        [JsonProperty("status")]
+        public string Status { get; set; }
+
+        /// <summary>
+        /// 商品标题
+        /// </summary>
+        [JsonProperty("subject")]
+        public string Subject { get; set; }
+    }
+}

+ 25 - 0
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayBusinessItemInventoryExternalSyncModel.cs

@@ -0,0 +1,25 @@
+using System;
+using System.Collections.Generic;
+using Newtonsoft.Json;
+
+namespace Essensoft.AspNetCore.Payment.Alipay.Domain
+{
+    /// <summary>
+    /// AlipayBusinessItemInventoryExternalSyncModel Data Structure.
+    /// </summary>
+    [Serializable]
+    public class AlipayBusinessItemInventoryExternalSyncModel : AlipayObject
+    {
+        /// <summary>
+        /// 商品库存信息列表
+        /// </summary>
+        [JsonProperty("inventories")]
+        public List<ItemInventory> Inventories { get; set; }
+
+        /// <summary>
+        /// 请求ID,支持英文字母和数字,由调用者自行定义(不允许重复)
+        /// </summary>
+        [JsonProperty("request_id")]
+        public string RequestId { get; set; }
+    }
+}

Vissa filer visades inte eftersom för många filer har ändrats