mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-12-19 19:47:06 +08:00
feat(tenpayv3): 新增境外商户委托代扣相关接口
This commit is contained in:
@@ -75,6 +75,7 @@
|
||||
| √ | 其他能力:优惠费率活动 | 服务商 | |
|
||||
| √ | 境外支付:子商户进件 | 服务商 | |
|
||||
| √ | 境外支付:融合钱包 | 服务商 | |
|
||||
| √ | 境外支付:委托代扣 | 直连商户 & 服务商 | |
|
||||
| √ | 境外支付:报关 | 服务商 | |
|
||||
|
||||
</details>
|
||||
@@ -269,7 +270,7 @@
|
||||
|
||||
- 扣款服务
|
||||
|
||||
- 预扣费通知:`NotifyPAPPayContracts`
|
||||
- 预扣费通知:`NotifyPAPPayContract`
|
||||
|
||||
- 行业方案
|
||||
|
||||
@@ -717,7 +718,7 @@
|
||||
|
||||
- 扣款服务
|
||||
|
||||
- 预扣费通知:`NotifyPartnerPAPPayContracts`
|
||||
- 预扣费通知:`NotifyPartnerPAPPayContract`
|
||||
|
||||
- 行业方案
|
||||
|
||||
@@ -1055,7 +1056,7 @@
|
||||
|
||||
- 微工卡用户核身份:
|
||||
|
||||
- 微工卡核身预下单:`PreOrderWithAuthPayrollCardAuthentication`
|
||||
- 微工卡核身预下单:`PreorderWithAuthPayrollCardAuthentication`
|
||||
|
||||
- 获取核身结果:`GetPayrollCardAuthenticationByAuthenticateNumber`
|
||||
|
||||
@@ -1175,17 +1176,7 @@
|
||||
|
||||
<summary>[展开查看]</summary>
|
||||
|
||||
- Onboarding Sub Merchant
|
||||
|
||||
- Onboarding Sub Merchant (For HK)
|
||||
|
||||
- Onboarding Sub-merchant:`AddSubMerchant`
|
||||
|
||||
- Query Sub-merchant:`GetSubMerchant`
|
||||
|
||||
- Sub Merchant Modifying:`ModifySubMerchant`
|
||||
|
||||
- Multi-Wallet (For HK)
|
||||
- Payments
|
||||
|
||||
- Quick Pay
|
||||
|
||||
@@ -1197,6 +1188,8 @@
|
||||
|
||||
- Query Single Refund:`GetHKRefundByOutRefundNumber` / `GetHKRefundById` / `GetHKPartnerRefundByOutRefundNumber` / `GetHKPartnerRefundById`
|
||||
|
||||
- Query All Refunds: `QueryHKRefunds` / `QueryHKPartnerRefunds`
|
||||
|
||||
- Downloading Reconciliation:`DownloadHKStatements`
|
||||
|
||||
- Revoke Order:`ReverseHKTransaction` / `ReverseHKPartnerTransaction`
|
||||
@@ -1205,7 +1198,7 @@
|
||||
|
||||
- Query Fund Settlement Details:`QueryHKSettlements`
|
||||
|
||||
- QR Code Payment
|
||||
- Native Payment
|
||||
|
||||
- Order Placement:`CreateHKTransactionMicroPay` / `CreateHKPartnerTransactionMicroPay`
|
||||
|
||||
@@ -1215,6 +1208,8 @@
|
||||
|
||||
- Query Single Refund:`GetHKRefundByOutRefundNumber` / `GetHKRefundById` / `GetHKPartnerRefundByOutRefundNumber` / `GetHKPartnerRefundById`
|
||||
|
||||
- Query All Refunds: `QueryHKRefunds` / `QueryHKPartnerRefunds`
|
||||
|
||||
- Downloading Reconciliation:`DownloadHKStatements`
|
||||
|
||||
- Close Order:`CloseHKTransaction` / `CloseHKPartnerTransaction`
|
||||
@@ -1223,7 +1218,7 @@
|
||||
|
||||
- Query Fund Settlement Details:`QueryHKSettlements`
|
||||
|
||||
- Mini-Program Payment
|
||||
- JSAPI Payment
|
||||
|
||||
- Order Placement:`CreateHKTransactionMicroPay` / `CreateHKPartnerTransactionMicroPay`
|
||||
|
||||
@@ -1233,23 +1228,7 @@
|
||||
|
||||
- Query Single Refund:`GetHKRefundByOutRefundNumber` / `GetHKRefundById` / `GetHKPartnerRefundByOutRefundNumber` / `GetHKPartnerRefundById`
|
||||
|
||||
- Downloading Reconciliation:`DownloadHKStatements`
|
||||
|
||||
- Close Order:`CloseHKTransaction` / `CloseHKPartnerTransaction`
|
||||
|
||||
- Downloading Platform Certificate:`QueryCertificates`
|
||||
|
||||
- Query Fund Settlement Details:`QueryHKSettlements`
|
||||
|
||||
- Official Account Payment
|
||||
|
||||
- Order Placement:`CreateHKTransactionMicroPay` / `CreateHKPartnerTransactionMicroPay`
|
||||
|
||||
- Query Order:`GetHKTransactionByOutTradeNumber` / `GetHKTransactionById` / `GetHKPartnerTransactionByOutTradeNumber` / `GetHKPartnerTransactionById`
|
||||
|
||||
- Refund Application:`CreateHKRefund` / `CreateHKPartnerRefund`
|
||||
|
||||
- Query Single Refund:`GetHKRefundByOutRefundNumber` / `GetHKRefundById` / `GetHKPartnerRefundByOutRefundNumber` / `GetHKPartnerRefundById`
|
||||
- Query All Refunds: `QueryHKRefunds` / `QueryHKPartnerRefunds`
|
||||
|
||||
- Downloading Reconciliation:`DownloadHKStatements`
|
||||
|
||||
@@ -1269,6 +1248,28 @@
|
||||
|
||||
- Query Single Refund:`GetHKRefundByOutRefundNumber` / `GetHKRefundById` / `GetHKPartnerRefundByOutRefundNumber` / `GetHKPartnerRefundById`
|
||||
|
||||
- Query All Refunds: `QueryHKRefunds` / `QueryHKPartnerRefunds`
|
||||
|
||||
- Downloading Reconciliation:`DownloadHKStatements`
|
||||
|
||||
- Close Order:`CloseHKTransaction` / `CloseHKPartnerTransaction`
|
||||
|
||||
- Downloading Platform Certificate:`QueryCertificates`
|
||||
|
||||
- Query Fund Settlement Details:`QueryHKSettlements`
|
||||
|
||||
- Mini-Program Payment
|
||||
|
||||
- Order Placement:`CreateHKTransactionMicroPay` / `CreateHKPartnerTransactionMicroPay`
|
||||
|
||||
- Query Order:`GetHKTransactionByOutTradeNumber` / `GetHKTransactionById` / `GetHKPartnerTransactionByOutTradeNumber` / `GetHKPartnerTransactionById`
|
||||
|
||||
- Refund Application:`CreateHKRefund` / `CreateHKPartnerRefund`
|
||||
|
||||
- Query Single Refund:`GetHKRefundByOutRefundNumber` / `GetHKRefundById` / `GetHKPartnerRefundByOutRefundNumber` / `GetHKPartnerRefundById`
|
||||
|
||||
- Query All Refunds: `QueryHKRefunds` / `QueryHKPartnerRefunds`
|
||||
|
||||
- Downloading Reconciliation:`DownloadHKStatements`
|
||||
|
||||
- Close Order:`CloseHKTransaction` / `CloseHKPartnerTransaction`
|
||||
@@ -1283,6 +1284,8 @@
|
||||
|
||||
- Query Order:`GetHKTransactionByOutTradeNumber` / `GetHKTransactionById` / `GetHKPartnerTransactionByOutTradeNumber` / `GetHKPartnerTransactionById`
|
||||
|
||||
- Query All Refunds: `QueryHKRefunds` / `QueryHKPartnerRefunds`
|
||||
|
||||
- Refund Application:`CreateHKRefund` / `CreateHKPartnerRefund`
|
||||
|
||||
- Query Single Refund:`GetHKRefundByOutRefundNumber` / `GetHKRefundById` / `GetHKPartnerRefundByOutRefundNumber` / `GetHKPartnerRefundById`
|
||||
@@ -1295,18 +1298,54 @@
|
||||
|
||||
- Query Fund Settlement Details:`QueryHKSettlements`
|
||||
|
||||
- Customs Declaration
|
||||
- Auto-Debit Payment
|
||||
|
||||
- Customs Declaration:`CreateCustomsOrder`
|
||||
- Mini Program Signing: `PresignHKPAPPayContractEntrustMiniProgram` / `PresignHKPartnerPAPPayContractEntrustMiniProgram`
|
||||
|
||||
- Identity Information Verification:`VerifyCustomsCertificate`
|
||||
- H5 Signing: `PresignHKPAPPayContractEntrustH5` / `PresignHKPartnerPAPPayContractEntrustH5`
|
||||
|
||||
- Query Customs Declaration:`QueryCustomsOrders`
|
||||
- JSAPI Signing: `PresignHKPAPPayContractEntrustJsapi` / `PresignHKPartnerPAPPayContractEntrustJsapi`
|
||||
|
||||
- Repush Customs Declaration:`RedeclareCustomsOrder`
|
||||
- PC WEB Signing: `PresignHKPAPPayContractEntrustJsapi` / `PresignHKPartnerPAPPayContractEntrustJsapi`
|
||||
|
||||
- Modify Customs Declaration Info:`ModifyCustomsOrder`
|
||||
- APP Signing: `PresignHKPAPPayContractEntrustApp` / `PresignHKPartnerPAPPayContractEntrustApp`
|
||||
|
||||
- Functional APIs
|
||||
- Querying Signing Status: `GetHKPAPPayContractByOutContractCode` / `GetHKPAPPayContractByContractId` / `GetHKPartnerPAPPayContractByOutContractCode` / `GetHKPartnerPAPPayContractByContractId`
|
||||
|
||||
- Uploading Image API (For HK):`UploadMerchantMediaImage`
|
||||
- Applying for Termination: `TerminateHKPAPPayContract` / `TerminateHKPartnerPAPPayContract`
|
||||
|
||||
- Deduction: `CreateHKPAPPayTransaction` / `CreateHKPartnerPAPPayTransaction`
|
||||
|
||||
- Order Query: `GetHKPAPPayTransactionByOutTradeNumber` / `GetHKPAPPayTransactionById` / `GetHKPartnerPAPPayTransactionByOutTradeNumber` / `GetHKPartnerPAPPayTransactionById`
|
||||
|
||||
- Order Reversing: `ReverseHKPAPPayTransaction` / `ReverseHKPartnerPAPPayTransaction`
|
||||
|
||||
- Submit Refund: `CreateHKRefund` / `CreateHKPartnerRefund`
|
||||
|
||||
- Query Single Refund: `GetHKRefundByOutRefundNumber` / `GetHKRefundById` / `GetHKPartnerRefundByOutRefundNumber` / `GetHKPartnerRefundById`
|
||||
|
||||
- Query All Refunds: `QueryHKRefunds` / `QueryHKPartnerRefunds`
|
||||
|
||||
- Other
|
||||
|
||||
- Merchant Onboarding
|
||||
|
||||
- Onboarding Sub-merchant:`AddSubMerchant`
|
||||
|
||||
- Query Sub-merchant:`GetSubMerchant`
|
||||
|
||||
- Sub Merchant Modifying:`ModifySubMerchant`
|
||||
|
||||
- Upload Image:`UploadMerchantMediaImage`
|
||||
|
||||
- Customs Declaration
|
||||
|
||||
- Customs Declaration:`CreateCustomsOrder`
|
||||
|
||||
- Identity Information Verification:`VerifyCustomsCertificate`
|
||||
|
||||
- Query Customs Declaration:`QueryCustomsOrders`
|
||||
|
||||
- Repush Customs Declaration:`RedeclareCustomsOrder`
|
||||
|
||||
- Modify Customs Declaration Info:`ModifyCustomsOrder`
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /customs/orders 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/declarecustom/chapter3_1.shtml </para>
|
||||
/// <para><i>(请注意调用此接口需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@@ -37,7 +37,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
/// <summary>
|
||||
/// <para>异步调用 [GET] /customs/orders 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/declarecustom/chapter3_1.shtml </para>
|
||||
/// <para><i>(请注意调用此接口需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@@ -71,7 +71,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /customs/redeclare 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/declarecustom/chapter3_4.shtml </para>
|
||||
/// <para><i>(请注意调用此接口需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@@ -94,7 +94,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
/// <summary>
|
||||
/// <para>异步调用 [PATCH] /customs/orders 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/declarecustom/chapter3_5.shtml </para>
|
||||
/// <para><i>(请注意调用此接口需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@@ -117,7 +117,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /customs/verify-certificate 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/declarecustom/chapter3_2.shtml </para>
|
||||
/// <para><i>(请注意调用此接口需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /merchants 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/Onborading_Sub_Merchant/chapter3_1.shtml </para>
|
||||
/// <para><i>(请注意调用此接口需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@@ -38,7 +38,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
/// <summary>
|
||||
/// <para>异步调用 [GET] /merchants/{sub_mchid} 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/Onborading%20Sub%20Merchant/chapter3_2.shtml </para>
|
||||
/// <para><i>(请注意调用此接口需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@@ -63,7 +63,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
/// <summary>
|
||||
/// <para>异步调用 [PUT] /merchants 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/Onborading_Sub_Merchant/chapter3_3.shtml </para>
|
||||
/// <para><i>(请注意调用此接口需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
|
||||
@@ -0,0 +1,257 @@
|
||||
using System;
|
||||
using System.Net.Http;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Flurl.Http;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
{
|
||||
/// <summary>
|
||||
/// 为 <see cref="WechatTenpayClient"/> 提供境外支付委托代扣(直连商户)相关的 API 扩展方法。
|
||||
/// </summary>
|
||||
public static class WechatTenpayClientExecuteHKPAPPayExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /papay/contracts/app-pre-entrust-sign 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api_external/en/apis/chapter5_1_17.shtml </para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.PresignHKPAPPayContractEntrustAppResponse> ExecutePresignHKPAPPayContractEntrustAppAsync(this WechatTenpayClient client, Models.PresignHKPAPPayContractEntrustAppRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "papay", "contracts", "app-pre-entrust-sign");
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.PresignHKPAPPayContractEntrustAppResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /papay/contracts/jsapi-pre-entrust-sign 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api_external/en/apis/chapter5_1_15.shtml </para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.PresignHKPAPPayContractEntrustJsapiResponse> ExecutePresignHKPAPPayContractEntrustJsapiAsync(this WechatTenpayClient client, Models.PresignHKPAPPayContractEntrustJsapiRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "papay", "contracts", "jsapi-pre-entrust-sign");
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.PresignHKPAPPayContractEntrustJsapiResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /papay/contracts/miniprogram-pre-entrust-sign 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api_external/en/apis/chapter5_1_1.shtml </para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.PresignHKPAPPayContractEntrustMiniProgramResponse> ExecutePresignHKPAPPayContractEntrustMiniProgramAsync(this WechatTenpayClient client, Models.PresignHKPAPPayContractEntrustMiniProgramRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "papay", "contracts", "miniprogram-pre-entrust-sign");
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.PresignHKPAPPayContractEntrustMiniProgramResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /papay/contracts/h5-pre-entrust-sign 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api_external/en/apis/chapter5_1_14.shtml </para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.PresignHKPAPPayContractEntrustH5Response> ExecutePresignHKPAPPayContractEntrustH5Async(this WechatTenpayClient client, Models.PresignHKPAPPayContractEntrustH5Request request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "papay", "contracts", "h5-pre-entrust-sign");
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.PresignHKPAPPayContractEntrustH5Response>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /papay/contracts/web-pre-entrust-sign 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api_external/en/apis/chapter5_1_16.shtml </para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.PresignHKPAPPayContractEntrustWebResponse> ExecutePresignHKPAPPayContractEntrustWebAsync(this WechatTenpayClient client, Models.PresignHKPAPPayContractEntrustWebRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "papay", "contracts", "web-pre-entrust-sign");
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.PresignHKPAPPayContractEntrustWebResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [GET] /papay/contracts/out-contract-code/{out_contract_code} 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api_external/en/apis/chapter5_1_3.shtml </para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.GetHKPAPPayContractByOutContractCodeResponse> ExecuteGetHKPAPPayContractByOutContractCodeAsync(this WechatTenpayClient client, Models.GetHKPAPPayContractByOutContractCodeRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Get, "papay", "contracts", "out-contract-code", request.OutContractCode)
|
||||
.SetQueryParam("appid", request.AppId)
|
||||
.SetQueryParam("plan_id", request.PlanId);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.GetHKPAPPayContractByOutContractCodeResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [GET] /papay/contracts/{contract_id} 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api_external/en/apis/chapter5_1_2.shtml </para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.GetHKPAPPayContractByContractIdResponse> ExecuteGetHKPAPPayContractByContractIdAsync(this WechatTenpayClient client, Models.GetHKPAPPayContractByContractIdRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Get, "papay", "contracts", request.ContractId)
|
||||
.SetQueryParam("appid", request.AppId);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.GetHKPAPPayContractByContractIdResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /papay/contracts/{contract_id}/terminate 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api_external/en/apis/chapter5_1_4.shtml </para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.TerminateHKPAPPayContractResponse> ExecuteTerminateHKPAPPayContractAsync(this WechatTenpayClient client, Models.TerminateHKPAPPayContractRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "papay", "contracts", request.ContractId, "terminate");
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.TerminateHKPAPPayContractResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /papay/transactions 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api_external/en/apis/chapter5_1_6.shtml </para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CreateHKPAPPayTransactionResponse> ExecuteCreateHKPAPPayTransactionAsync(this WechatTenpayClient client, Models.CreateHKPAPPayTransactionRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "papay", "transactions");
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CreateHKPAPPayTransactionResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [GET] /papay/transactions/out-trade-no/{out_trade_no} 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api_external/en/apis/chapter5_1_8.shtml </para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.GetHKPAPPayTransactionByOutTradeNumberResponse> ExecuteGetHKPAPPayTransactionByOutTradeNumberAsync(this WechatTenpayClient client, Models.GetHKPAPPayTransactionByOutTradeNumberRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Get, "papay", "transactions", "out-trade-no", request.OutTradeNumber);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.GetHKPAPPayTransactionByOutTradeNumberResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [GET] /papay/transactions/{transaction_id} 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api_external/en/apis/chapter5_1_8.shtml </para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.GetHKPAPPayTransactionByIdResponse> ExecuteGetHKPAPPayTransactionByIdAsync(this WechatTenpayClient client, Models.GetHKPAPPayTransactionByIdRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Get, "papay", "transactions", request.TransactionId);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.GetHKPAPPayTransactionByIdResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /papay/transactions/out-trade-no/{out_trade_no}/reverse 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api_external/en/apis/chapter5_1_10.shtml </para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ReverseHKPAPPayTransactionResponse> ExecuteReverseHKPAPPayTransactionAsync(this WechatTenpayClient client, Models.ReverseHKPAPPayTransactionRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "papay", "transactions", "out-trade-no", request.OutTradeNumber, "reverse");
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.ReverseHKPAPPayTransactionResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,263 @@
|
||||
using System;
|
||||
using System.Net.Http;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Flurl.Http;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
{
|
||||
/// <summary>
|
||||
/// 为 <see cref="WechatTenpayClient"/> 提供境外支付委托代扣(服务商)相关的 API 扩展方法。
|
||||
/// </summary>
|
||||
public static class WechatTenpayClientExecuteHKPartnerPAPPayExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /papay/contracts/app-pre-entrust-sign 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api_external/en/apis/chapter5_1_17.shtml </para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.PresignHKPartnerPAPPayContractEntrustAppResponse> ExecutePresignHKPartnerPAPPayContractEntrustAppAsync(this WechatTenpayClient client, Models.PresignHKPartnerPAPPayContractEntrustAppRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "papay", "contracts", "app-pre-entrust-sign");
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.PresignHKPartnerPAPPayContractEntrustAppResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /papay/contracts/jsapi-pre-entrust-sign 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api_external/en/apis/chapter5_1_15.shtml </para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.PresignHKPartnerPAPPayContractEntrustJsapiResponse> ExecutePresignHKPartnerPAPPayContractEntrustJsapiAsync(this WechatTenpayClient client, Models.PresignHKPartnerPAPPayContractEntrustJsapiRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "papay", "contracts", "jsapi-pre-entrust-sign");
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.PresignHKPartnerPAPPayContractEntrustJsapiResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /papay/contracts/miniprogram-pre-entrust-sign 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api_external/en/apis/chapter5_1_1.shtml </para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.PresignHKPartnerPAPPayContractEntrustMiniProgramResponse> ExecutePresignHKPartnerPAPPayContractEntrustMiniProgramAsync(this WechatTenpayClient client, Models.PresignHKPartnerPAPPayContractEntrustMiniProgramRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "papay", "contracts", "miniprogram-pre-entrust-sign");
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.PresignHKPartnerPAPPayContractEntrustMiniProgramResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /papay/contracts/h5-pre-entrust-sign 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api_external/en/apis/chapter5_1_14.shtml </para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.PresignHKPartnerPAPPayContractEntrustH5Response> ExecutePresignHKPartnerPAPPayContractEntrustH5Async(this WechatTenpayClient client, Models.PresignHKPartnerPAPPayContractEntrustH5Request request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "papay", "contracts", "h5-pre-entrust-sign");
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.PresignHKPartnerPAPPayContractEntrustH5Response>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /papay/contracts/web-pre-entrust-sign 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api_external/en/apis/chapter5_1_14.shtml </para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.PresignHKPartnerPAPPayContractEntrustWebResponse> ExecutePresignHKPartnerPAPPayContractEntrustWebAsync(this WechatTenpayClient client, Models.PresignHKPartnerPAPPayContractEntrustWebRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "papay", "contracts", "web-pre-entrust-sign");
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.PresignHKPartnerPAPPayContractEntrustWebResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [GET] /papay/contracts/out-contract-code/{out_contract_code} 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api_external/en/apis/chapter5_1_3.shtml </para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.GetHKPartnerPAPPayContractByOutContractCodeResponse> ExecuteGetHKPartnerPAPPayContractByOutContractCodeAsync(this WechatTenpayClient client, Models.GetHKPartnerPAPPayContractByOutContractCodeRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Get, "papay", "contracts", "out-contract-code", request.OutContractCode)
|
||||
.SetQueryParam("sp_appid", request.AppId)
|
||||
.SetQueryParam("sub_mchid", request.SubMerchantId)
|
||||
.SetQueryParam("sub_appid", request.SubAppId)
|
||||
.SetQueryParam("plan_id", request.PlanId);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.GetHKPartnerPAPPayContractByOutContractCodeResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [GET] /papay/contracts/{contract_id} 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api_external/en/apis/chapter5_1_2.shtml </para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.GetHKPartnerPAPPayContractByContractIdResponse> ExecuteGetHKPartnerPAPPayContractByContractIdAsync(this WechatTenpayClient client, Models.GetHKPartnerPAPPayContractByContractIdRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Get, "papay", "contracts", request.ContractId)
|
||||
.SetQueryParam("sp_appid", request.AppId)
|
||||
.SetQueryParam("sub_mchid", request.SubMerchantId)
|
||||
.SetQueryParam("sub_appid", request.SubAppId);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.GetHKPartnerPAPPayContractByContractIdResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /papay/contracts/{contract_id}/terminate 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api_external/en/apis/chapter5_1_4.shtml </para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.TerminateHKPartnerPAPPayContractResponse> ExecuteTerminateHKPartnerPAPPayContractAsync(this WechatTenpayClient client, Models.TerminateHKPartnerPAPPayContractRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "papay", "contracts", request.ContractId, "terminate");
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.TerminateHKPartnerPAPPayContractResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /papay/transactions 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api_external/en/apis/chapter5_1_6.shtml </para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CreateHKPartnerPAPPayTransactionResponse> ExecuteCreateHKPartnerPAPPayTransactionAsync(this WechatTenpayClient client, Models.CreateHKPartnerPAPPayTransactionRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "papay", "transactions");
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CreateHKPartnerPAPPayTransactionResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [GET] /papay/transactions/out-trade-no/{out_trade_no} 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api_external/en/apis/chapter5_1_8.shtml </para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.GetHKPartnerPAPPayTransactionByOutTradeNumberResponse> ExecuteGetHKPartnerPAPPayTransactionByOutTradeNumberAsync(this WechatTenpayClient client, Models.GetHKPartnerPAPPayTransactionByOutTradeNumberRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Get, "papay", "transactions", "out-trade-no", request.OutTradeNumber)
|
||||
.SetQueryParam("sub_mchid", request.SubMerchantId);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.GetHKPartnerPAPPayTransactionByOutTradeNumberResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [GET] /papay/transactions/{transaction_id} 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api_external/en/apis/chapter5_1_8.shtml </para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.GetHKPartnerPAPPayTransactionByIdResponse> ExecuteGetHKPartnerPAPPayTransactionByIdAsync(this WechatTenpayClient client, Models.GetHKPartnerPAPPayTransactionByIdRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Get, "papay", "transactions", request.TransactionId)
|
||||
.SetQueryParam("sub_mchid", request.SubMerchantId);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.GetHKPartnerPAPPayTransactionByIdResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /papay/transactions/out-trade-no/{out_trade_no}/reverse 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api_external/en/apis/chapter5_1_10.shtml </para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ReverseHKPartnerPAPPayTransactionResponse> ExecuteReverseHKPartnerPAPPayTransactionAsync(this WechatTenpayClient client, Models.ReverseHKPartnerPAPPayTransactionRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "papay", "transactions", "out-trade-no", request.OutTradeNumber, "reverse");
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.ReverseHKPartnerPAPPayTransactionResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Net.Http;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
@@ -20,7 +20,8 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/MiniProgramPay/chapter8_2.shtml </para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/NativePay/chapter8_2.shtml </para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/QuickPay/chapter8_2.shtml </para>
|
||||
/// <para><i>(请注意调用此接口需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api_external/en/apis/chapter5_1_11.shtml </para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@@ -48,7 +49,8 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/MiniProgramPay/chapter8_3.shtml </para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/NativePay/chapter8_3.shtml </para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/QuickPay/chapter8_3.shtml </para>
|
||||
/// <para><i>(请注意调用此接口需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api_external/en/apis/chapter5_1_12.shtml </para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@@ -78,7 +80,8 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/MiniProgramPay/chapter8_3.shtml </para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/NativePay/chapter8_3.shtml </para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/QuickPay/chapter8_3.shtml </para>
|
||||
/// <para><i>(请注意调用此接口需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api_external/en/apis/chapter5_1_12.shtml </para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@@ -99,5 +102,40 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.GetHKPartnerRefundByIdResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [GET] /refunds 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/In-AppPay/chapter8_4.shtml </para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/H5Payment/chapter8_4.shtml </para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/OfficialPayMent/chapter8_4.shtml </para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/MiniProgramPay/chapter8_4.shtml </para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/NativePay/chapter8_4.shtml </para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/QuickPay/chapter8_4.shtml </para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api_external/en/apis/chapter5_1_13.shtml </para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.QueryHKPartnerRefundsResponse> ExecuteQueryHKPartnerRefundsAsync(this WechatTenpayClient client, Models.QueryHKPartnerRefundsRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
if (request.MerchantId == null)
|
||||
request.MerchantId = client.Credentials.MerchantId;
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Get, "refunds")
|
||||
.SetQueryParam("sp_mchid", request.MerchantId)
|
||||
.SetQueryParam("sub_mchid", request.SubMerchantId)
|
||||
.SetQueryParam("out_trade_no", request.OutTradeNumber)
|
||||
.SetQueryParam("transaction_id", request.TransactionId)
|
||||
.SetQueryParam("offset", request.Offset)
|
||||
.SetQueryParam("count", request.Limit);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.QueryHKPartnerRefundsResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /transactions/app 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/In-AppPay/chapter6_3.shtml </para>
|
||||
/// <para><i>(请注意调用此接口需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@@ -37,7 +37,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /transactions/mweb 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/H5Payment/chapter3_3.shtml </para>
|
||||
/// <para><i>(请注意调用此接口需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@@ -61,7 +61,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
/// <para>异步调用 [POST] /transactions/jsapi 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/OfficialPayMent/chapter5_4.shtml </para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/MiniProgramPay/chapter7_3.shtml </para>
|
||||
/// <para><i>(请注意调用此接口需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@@ -84,7 +84,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /transactions/native 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/NativePay/chapter4_3.shtml </para>
|
||||
/// <para><i>(请注意调用此接口需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@@ -112,7 +112,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/MiniProgramPay/chapter8_1.shtml </para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/NativePay/chapter8_1.shtml </para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/QuickPay/chapter8_1.shtml </para>
|
||||
/// <para><i>(请注意调用此接口需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@@ -142,7 +142,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/MiniProgramPay/chapter8_1.shtml </para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/NativePay/chapter8_1.shtml </para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/QuickPay/chapter8_1.shtml </para>
|
||||
/// <para><i>(请注意调用此接口需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@@ -171,7 +171,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/OfficialPayMent/chapter8_6.shtml </para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/MiniProgramPay/chapter8_6.shtml </para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/NativePay/chapter8_6.shtml </para>
|
||||
/// <para><i>(请注意调用此接口需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@@ -194,7 +194,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /transactions/out-trade-no/{out_trade_no}/reverse 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/QuickPay/chapter3_4.shtml </para>
|
||||
/// <para><i>(请注意调用此接口需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@@ -224,7 +224,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/MiniProgramPay/chapter8_5.shtml </para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/NativePay/chapter8_5.shtml </para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/QuickPay/chapter8_5.shtml </para>
|
||||
/// <para><i>(请注意调用此接口需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@@ -253,7 +253,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/MiniProgramPay/chapter8_12.shtml </para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/NativePay/chapter8_12.shtml </para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/QuickPay/chapter8_12.shtml </para>
|
||||
/// <para><i>(请注意调用此接口需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Net.Http;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
@@ -20,7 +20,8 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/MiniProgramPay/chapter8_2.shtml </para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/NativePay/chapter8_2.shtml </para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/QuickPay/chapter8_2.shtml </para>
|
||||
/// <para><i>(请注意调用此接口需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api_external/en/apis/chapter5_1_11.shtml </para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@@ -48,7 +49,8 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/MiniProgramPay/chapter8_3.shtml </para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/NativePay/chapter8_3.shtml </para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/QuickPay/chapter8_3.shtml </para>
|
||||
/// <para><i>(请注意调用此接口需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api_external/en/apis/chapter5_1_12.shtml </para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@@ -77,7 +79,8 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/MiniProgramPay/chapter8_3.shtml </para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/NativePay/chapter8_3.shtml </para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/QuickPay/chapter8_3.shtml </para>
|
||||
/// <para><i>(请注意调用此接口需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api_external/en/apis/chapter5_1_12.shtml </para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@@ -97,5 +100,39 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.GetHKRefundByIdResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [GET] /refunds 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/In-AppPay/chapter8_4.shtml </para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/H5Payment/chapter8_4.shtml </para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/OfficialPayMent/chapter8_4.shtml </para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/MiniProgramPay/chapter8_4.shtml </para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/NativePay/chapter8_4.shtml </para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/QuickPay/chapter8_4.shtml </para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api_external/en/apis/chapter5_1_13.shtml </para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.QueryHKRefundsResponse> ExecuteQueryHKRefundsAsync(this WechatTenpayClient client, Models.QueryHKRefundsRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
if (request.MerchantId == null)
|
||||
request.MerchantId = client.Credentials.MerchantId;
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Get, "refunds")
|
||||
.SetQueryParam("mchid", request.MerchantId)
|
||||
.SetQueryParam("out_trade_no", request.OutTradeNumber)
|
||||
.SetQueryParam("transaction_id", request.TransactionId)
|
||||
.SetQueryParam("offset", request.Offset)
|
||||
.SetQueryParam("count", request.Limit);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.QueryHKRefundsResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /transactions/app 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/In-AppPay/chapter6_3.shtml </para>
|
||||
/// <para><i>(请注意调用此接口需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@@ -37,7 +37,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /transactions/mweb 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/H5Payment/chapter3_3.shtml </para>
|
||||
/// <para><i>(请注意调用此接口需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@@ -61,7 +61,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
/// <para>异步调用 [POST] /transactions/jsapi 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/OfficialPayMent/chapter5_4.shtml </para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/MiniProgramPay/chapter7_3.shtml </para>
|
||||
/// <para><i>(请注意调用此接口需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@@ -84,7 +84,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /transactions/native 接口。</para>
|
||||
/// <para>REF: https://https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/NativePay/chapter4_3.shtml </para>
|
||||
/// <para><i>(请注意调用此接口需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@@ -112,7 +112,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/MiniProgramPay/chapter8_1.shtml </para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/NativePay/chapter8_1.shtml </para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/QuickPay/chapter8_1.shtml </para>
|
||||
/// <para><i>(请注意调用此接口需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@@ -141,7 +141,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/MiniProgramPay/chapter8_1.shtml </para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/NativePay/chapter8_1.shtml </para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/QuickPay/chapter8_1.shtml </para>
|
||||
/// <para><i>(请注意调用此接口需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@@ -169,7 +169,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/OfficialPayMent/chapter8_6.shtml </para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/MiniProgramPay/chapter8_6.shtml </para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/NativePay/chapter8_6.shtml </para>
|
||||
/// <para><i>(请注意调用此接口需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@@ -192,7 +192,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /transactions/out-trade-no/{out_trade_no}/reverse 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/wxpay/en/fusion_wallet/QuickPay/chapter3_4.shtml </para>
|
||||
/// <para><i>(请注意调用此接口需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// <para><i>(请注意此接口专为境外支付设计,调用时需在构造 <see cref="WechatTenpayClient" /> 时指定单独的 <see cref="WechatTenpayClientOptions.Endpoint"/>。)</i></para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Net.Http;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
@@ -19,7 +19,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.NotifyPAPPayContractsResponse> ExecuteNotifyPAPPayContractsAsync(this WechatTenpayClient client, Models.NotifyPAPPayContractsRequest request, CancellationToken cancellationToken = default)
|
||||
public static async Task<Models.NotifyPAPPayContractResponse> ExecuteNotifyPAPPayContractAsync(this WechatTenpayClient client, Models.NotifyPAPPayContractRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
@@ -30,7 +30,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "papay", "contracts", request.ContractId, "notify");
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.NotifyPAPPayContractsResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
return await client.SendRequestWithJsonAsync<Models.NotifyPAPPayContractResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Net.Http;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
@@ -19,7 +19,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.NotifyPartnerPAPPayContractsResponse> ExecuteNotifyPartnerPAPPayContractsAsync(this WechatTenpayClient client, Models.NotifyPartnerPAPPayContractsRequest request, CancellationToken cancellationToken = default)
|
||||
public static async Task<Models.NotifyPartnerPAPPayContractResponse> ExecuteNotifyPartnerPAPPayContractAsync(this WechatTenpayClient client, Models.NotifyPartnerPAPPayContractRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
@@ -30,7 +30,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "partner-papay", "contracts", request.ContractId, "notify");
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.NotifyPartnerPAPPayContractsResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
return await client.SendRequestWithJsonAsync<Models.NotifyPartnerPAPPayContractResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Net.Http;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
@@ -67,7 +67,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.PreOrderWithAuthPayrollCardAuthenticationResponse> ExecutePreOrderWithAuthPayrollCardAuthenticationAsync(this WechatTenpayClient client, Models.PreOrderWithAuthPayrollCardAuthenticationRequest request, CancellationToken cancellationToken = default)
|
||||
public static async Task<Models.PreorderPayrollCardAuthenticationResponse> ExecutePreorderPayrollCardAuthenticationAsync(this WechatTenpayClient client, Models.PreorderPayrollCardAuthenticationRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
@@ -75,7 +75,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "payroll-card", "authentications", "pre-order-with-auth");
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.PreOrderWithAuthPayrollCardAuthenticationResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
return await client.SendRequestWithJsonAsync<Models.PreorderPayrollCardAuthenticationResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -0,0 +1,116 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /papay/transactions 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CreateHKPAPPayTransactionRequest : WechatTenpayRequest
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Amount
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置总金额(单位:指定货币的最小单位)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("total")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("total")]
|
||||
public int Total { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置币种。
|
||||
/// <para>默认值:HKD</para>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("currency")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("currency")]
|
||||
public string Currency { get; set; } = "HKD";
|
||||
}
|
||||
|
||||
public class Scene
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置商户端设备号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("device_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("device_id")]
|
||||
public string? DeviceId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商户端设备 IP。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("device_ip")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("device_ip")]
|
||||
public string? DeviceIp { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public virtual string AppId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置委托代扣协议 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("contract_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("contract_id")]
|
||||
public string ContractId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品描述。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("description")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("description")]
|
||||
public string Description { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商户订单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("out_trade_no")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("out_trade_no")]
|
||||
public string OutTradeNumber { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置附加数据。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("attach")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("attach")]
|
||||
public string? Attachment { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置回调通知地址。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("notify_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("notify_url")]
|
||||
public string? NotifyUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单优惠标记。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("goods_tag")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("goods_tag")]
|
||||
public string? GoodsTag { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置金额信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("amount")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("amount")]
|
||||
public Types.Amount Amount { get; set; } = new Types.Amount();
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置场景信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("scene_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("scene_info")]
|
||||
public Types.Scene? Scene { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商户行业编码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("merchant_category_code")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("merchant_category_code")]
|
||||
public string MerchantCategoryCode { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /papay/transactions 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CreateHKPAPPayTransactionResponse : GetHKPAPPayTransactionByOutTradeNumberResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /papay/contracts/{contract_id} 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class GetHKPAPPayContractByContractIdRequest : WechatTenpayRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置微信 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public virtual string AppId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置委托代扣协议 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string ContractId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /papay/contracts/{contract_id} 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class GetHKPAPPayContractByContractIdResponse : GetHKPAPPayContractByOutContractCodeResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /papay/contracts/out-contract-code/{out_contract_code} 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class GetHKPAPPayContractByOutContractCodeRequest : WechatTenpayRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置微信 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public virtual string AppId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置模板 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public int PlanId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商户侧签约协议号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string OutContractCode { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /papay/contracts/out-contract-code/{out_contract_code} 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class GetHKPAPPayContractByOutContractCodeResponse : WechatTenpayResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置微信商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("mchid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("mchid")]
|
||||
public virtual string MerchantId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public virtual string AppId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置模板 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("plan_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("plan_id")]
|
||||
public int PlanId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商户侧签约协议号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("out_contract_code")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("out_contract_code")]
|
||||
public string OutContractCode { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置委托代扣协议 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("contract_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("contract_id")]
|
||||
public string ContractId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置用户账户展示名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("user_display_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("user_display_name")]
|
||||
public string UserDiaplayName { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置用户唯一标识。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("openid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("openid")]
|
||||
public string OpenId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置协议状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("state")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("state")]
|
||||
public string State { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置签署时间。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("signed_time")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RFC3339NullableDateTimeOffsetConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("signed_time")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RFC3339NullableDateTimeOffsetConverter))]
|
||||
public DateTimeOffset? SignTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置解约时间。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("terminated_time")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RFC3339NullableDateTimeOffsetConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("terminated_time")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RFC3339NullableDateTimeOffsetConverter))]
|
||||
public DateTimeOffset? TerminateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置解约方式。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("termination_mode")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("termination_mode")]
|
||||
public string? TerminationMode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置解约备注。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("termination_note")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("termination_note")]
|
||||
public string? TerminationNotes { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /papay/transactions/{transaction_id} 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class GetHKPAPPayTransactionByIdRequest : WechatTenpayRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置微信支付订单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string TransactionId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /papay/transactions/{transaction_id} 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class GetHKPAPPayTransactionByIdResponse : GetHKPAPPayTransactionByOutTradeNumberResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /papay/transactions/out-trade-no/{out_trade_no} 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class GetHKPAPPayTransactionByOutTradeNumberRequest : WechatTenpayRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置商户订单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string OutTradeNumber { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,182 @@
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /papay/transactions/out-trade-no/{out_trade_no} 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class GetHKPAPPayTransactionByOutTradeNumberResponse : WechatTenpayResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Payer : GetHKTransactionByOutTradeNumberResponse.Types.Payer
|
||||
{
|
||||
}
|
||||
|
||||
public class Amount : GetHKTransactionByOutTradeNumberResponse.Types.Amount
|
||||
{
|
||||
public static new class Types
|
||||
{
|
||||
public class ExchangeRate : GetHKTransactionByOutTradeNumberResponse.Types.Amount.Types.ExchangeRate
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置汇率信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("exchange_rate")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("exchange_rate")]
|
||||
public new Types.ExchangeRate? ExchangeRate { get; set; }
|
||||
}
|
||||
|
||||
public class Scene
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置商户端设备号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("device_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("device_id")]
|
||||
public string? DeviceId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商户端设备 IP。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("device_ip")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("device_ip")]
|
||||
public string? DeviceIp { get; set; }
|
||||
}
|
||||
|
||||
public class Promotion : GetHKTransactionByOutTradeNumberResponse.Types.Promotion
|
||||
{
|
||||
public static new class Types
|
||||
{
|
||||
public class GoodsDetail : GetHKTransactionByOutTradeNumberResponse.Types.Promotion.Types.GoodsDetail
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信出资(单位:指定货币的最小单位)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("wxpay_contribute_amount")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("wxpay_contribute_amount")]
|
||||
public new int? WechatpayContribute { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置单品列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("goods_detail")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("goods_detail")]
|
||||
public new Types.GoodsDetail[]? GoodsList { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("mchid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("mchid")]
|
||||
public virtual string MerchantId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public virtual string AppId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商户订单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("out_trade_no")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("out_trade_no")]
|
||||
public string OutTradeNumber { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信支付订单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("transaction_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("transaction_id")]
|
||||
public string? TransactionId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置交易类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("trade_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("trade_type")]
|
||||
public string TradeType { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置交易状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("trade_state")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("trade_state")]
|
||||
public string TradeState { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置交易状态描述。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("trade_state_desc")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("trade_state_desc")]
|
||||
public string TradeStateDescription { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置付款银行类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("bank_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("bank_type")]
|
||||
public string? BankType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置附加数据。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("attach")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("attach")]
|
||||
public string? Attachment { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置支付完成时间。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("success_time")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RFC3339NullableDateTimeOffsetConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("success_time")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RFC3339NullableDateTimeOffsetConverter))]
|
||||
public DateTimeOffset? SuccessTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置支付者信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("payer")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("payer")]
|
||||
public Types.Payer? Payer { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置金额信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("amount")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("amount")]
|
||||
public Types.Amount Amount { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置场景信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("scene_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("scene_info")]
|
||||
public Types.Scene? Scene { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置优惠信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("promotion_detail")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("promotion_detail")]
|
||||
public Types.Promotion[]? PromotionList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商户行业编码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("merchant_category_code")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("merchant_category_code")]
|
||||
public string MerchantCategoryCode { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /papay/contracts/app-pre-entrust-sign 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class PresignHKPAPPayContractEntrustAppRequest : WechatTenpayRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置微信 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public virtual string AppId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置模板 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("plan_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("plan_id")]
|
||||
public int PlanId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商户侧签约协议号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("out_contract_code")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("out_contract_code")]
|
||||
public string OutContractCode { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置用户账户展示名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("user_display_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("user_display_name")]
|
||||
public string UserDiaplayName { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置回调通知地址。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("success_notify_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("success_notify_url")]
|
||||
public string NotifyUrl { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置用户唯一标识。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("openid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("openid")]
|
||||
public string OpenId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置用户终端 IP。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("user_client_ip")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("user_client_ip")]
|
||||
public string? ClientIp { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置过期时间。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("expired_time")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RFC3339NullableDateTimeOffsetConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("expired_time")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RFC3339NullableDateTimeOffsetConverter))]
|
||||
public DateTimeOffset? ExpireTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置签约后跳转地址。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("return_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("return_url")]
|
||||
public string? ReturnUrl { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /papay/contracts/app-pre-entrust-sign 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class PresignHKPAPPayContractEntrustAppResponse : WechatTenpayResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置委托代扣签约会话 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("session_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("session_id")]
|
||||
public string SessionId { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /papay/contracts/h5-pre-entrust-sign 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class PresignHKPAPPayContractEntrustH5Request : PresignHKPAPPayContractEntrustAppRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置签约后跳转 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("return_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("return_appid")]
|
||||
public string? ReturnAppId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /papay/contracts/h5-pre-entrust-sign 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class PresignHKPAPPayContractEntrustH5Response : WechatTenpayResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置委托代扣签约 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sign_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sign_url")]
|
||||
public string SignUrl { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /papay/contracts/jsapi-pre-entrust-sign 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class PresignHKPAPPayContractEntrustJsapiRequest : PresignHKPAPPayContractEntrustAppRequest
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /papay/contracts/jsapi-pre-entrust-sign 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class PresignHKPAPPayContractEntrustJsapiResponse : WechatTenpayResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置委托代扣签约 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sign_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sign_url")]
|
||||
public string SignUrl { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /papay/contracts/miniprogram-pre-entrust-sign 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class PresignHKPAPPayContractEntrustMiniProgramRequest : PresignHKPAPPayContractEntrustAppRequest
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /papay/contracts/miniprogram-pre-entrust-sign 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class PresignHKPAPPayContractEntrustMiniProgramResponse : WechatTenpayResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置委托代扣会话 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("session_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("session_id")]
|
||||
public string SessionId { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /papay/contracts/web-pre-entrust-sign 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class PresignHKPAPPayContractEntrustWebRequest : PresignHKPAPPayContractEntrustAppRequest
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /papay/contracts/web-pre-entrust-sign 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class PresignHKPAPPayContractEntrustWebResponse : WechatTenpayResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置委托代扣签约 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sign_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sign_url")]
|
||||
public string SignUrl { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /papay/transactions/out-trade-no/{out_trade_no}/reverse 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ReverseHKPAPPayTransactionRequest : WechatTenpayRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置商户订单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string OutTradeNumber { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /papay/transactions/out-trade-no/{out_trade_no}/reverse 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ReverseHKPAPPayTransactionResponse : WechatTenpayResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /papay/contracts/{contract_id}/terminate 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class TerminateHKPAPPayContractRequest : WechatTenpayRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置微信 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public virtual string AppId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置委托代扣协议 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string ContractId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置解约备注。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("termination_note")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("termination_note")]
|
||||
public string? TerminationNotes { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /papay/contracts/{contract_id}/terminate 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class TerminateHKPAPPayContractResponse : WechatTenpayResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /papay/transactions 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CreateHKPartnerPAPPayTransactionRequest : CreateHKPAPPayTransactionRequest
|
||||
{
|
||||
public static new class Types
|
||||
{
|
||||
public class Amount : CreateHKPAPPayTransactionRequest.Types.Amount
|
||||
{
|
||||
}
|
||||
|
||||
public class Scene : CreateHKPAPPayTransactionRequest.Types.Scene
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sp_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sp_appid")]
|
||||
public override string AppId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置子商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sub_mchid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sub_mchid")]
|
||||
public string SubMerchantId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置子商户 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sub_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sub_appid")]
|
||||
public string? SubAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置金额信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("amount")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("amount")]
|
||||
public new Types.Amount Amount { get; set; } = new Types.Amount();
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置场景信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("scene_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("scene_info")]
|
||||
public new Types.Scene? Scene { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /papay/transactions 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CreateHKPartnerPAPPayTransactionResponse : GetHKPartnerPAPPayTransactionByOutTradeNumberResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /papay/contracts/{contract_id} 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class GetHKPartnerPAPPayContractByContractIdRequest : GetHKPAPPayContractByContractIdRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置子商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string SubMerchantId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置子商户 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string? SubAppId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /papay/contracts/{contract_id} 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class GetHKPartnerPAPPayContractByContractIdResponse : GetHKPAPPayContractByContractIdResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// <inheritdoc/>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sp_mchid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sp_mchid")]
|
||||
public override string MerchantId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// <inheritdoc/>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sp_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sp_appid")]
|
||||
public override string AppId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置子商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sub_mchid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sub_mchid")]
|
||||
public string SubMerchantId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置子商户 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sub_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sub_appid")]
|
||||
public string? SubAppId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /papay/contracts/out-contract-code/{out_contract_code} 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class GetHKPartnerPAPPayContractByOutContractCodeRequest : GetHKPAPPayContractByOutContractCodeRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置子商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string SubMerchantId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置子商户 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string? SubAppId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /papay/contracts/out-contract-code/{out_contract_code} 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class GetHKPartnerPAPPayContractByOutContractCodeResponse : GetHKPAPPayContractByOutContractCodeResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// <inheritdoc/>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sp_mchid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sp_mchid")]
|
||||
public override string MerchantId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// <inheritdoc/>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sp_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sp_appid")]
|
||||
public override string AppId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置子商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sub_mchid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sub_mchid")]
|
||||
public string SubMerchantId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置子商户 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sub_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sub_appid")]
|
||||
public string? SubAppId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /papay/transactions/{transaction_id} 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class GetHKPartnerPAPPayTransactionByIdRequest : GetHKPAPPayTransactionByIdRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置子商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string SubMerchantId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /papay/transactions/{transaction_id} 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class GetHKPartnerPAPPayTransactionByIdResponse : GetHKPartnerPAPPayTransactionByOutTradeNumberResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /papay/transactions/out-trade-no/{out_trade_no} 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class GetHKPartnerPAPPayTransactionByOutTradeNumberRequest : GetHKPAPPayTransactionByOutTradeNumberRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置子商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string SubMerchantId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,129 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /papay/transactions/out-trade-no/{out_trade_no} 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class GetHKPartnerPAPPayTransactionByOutTradeNumberResponse : GetHKPAPPayTransactionByOutTradeNumberResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Payer : GetHKPartnerTransactionByOutTradeNumberResponse.Types.Payer
|
||||
{
|
||||
}
|
||||
|
||||
public class Amount : GetHKPartnerTransactionByOutTradeNumberResponse.Types.Amount
|
||||
{
|
||||
public static new class Types
|
||||
{
|
||||
public class ExchangeRate : GetHKPartnerTransactionByOutTradeNumberResponse.Types.Amount.Types.ExchangeRate
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置汇率信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("exchange_rate")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("exchange_rate")]
|
||||
public new Types.ExchangeRate? ExchangeRate { get; set; }
|
||||
}
|
||||
|
||||
public class Scene
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置商户端设备号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("device_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("device_id")]
|
||||
public string? DeviceId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商户端设备 IP。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("device_ip")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("device_ip")]
|
||||
public string? DeviceIp { get; set; }
|
||||
}
|
||||
|
||||
public class Promotion : GetHKPartnerTransactionByOutTradeNumberResponse.Types.Promotion
|
||||
{
|
||||
public static new class Types
|
||||
{
|
||||
public class GoodsDetail : GetHKPartnerTransactionByOutTradeNumberResponse.Types.Promotion.Types.GoodsDetail
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信出资(单位:指定货币的最小单位)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("wxpay_contribute_amount")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("wxpay_contribute_amount")]
|
||||
public new int? WechatpayContribute { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置单品列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("goods_detail")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("goods_detail")]
|
||||
public new Types.GoodsDetail[]? GoodsList { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sp_mchid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sp_mchid")]
|
||||
public override string MerchantId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sp_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sp_appid")]
|
||||
public override string AppId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置子商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sub_mchid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sub_mchid")]
|
||||
public string SubMerchantId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置子商户 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sub_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sub_appid")]
|
||||
public string? SubAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置支付者信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("payer")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("payer")]
|
||||
public new Types.Payer? Payer { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置金额信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("amount")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("amount")]
|
||||
public new Types.Amount Amount { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置场景信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("scene_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("scene_info")]
|
||||
public new Types.Scene? Scene { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置优惠信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("promotion_detail")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("promotion_detail")]
|
||||
public new Types.Promotion[]? PromotionList { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /papay/contracts/app-pre-entrust-sign 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class PresignHKPartnerPAPPayContractEntrustAppRequest : PresignHKPAPPayContractEntrustAppRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// <inheritdoc/>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sp_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sp_appid")]
|
||||
public override string AppId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置子商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sub_mchid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sub_mchid")]
|
||||
public string SubMerchantId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置子商户 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sub_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sub_appid")]
|
||||
public string? SubAppId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /papay/contracts/app-pre-entrust-sign 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class PresignHKPartnerPAPPayContractEntrustAppResponse : PresignHKPAPPayContractEntrustAppResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /papay/contracts/h5-pre-entrust-sign 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class PresignHKPartnerPAPPayContractEntrustH5Request : PresignHKPAPPayContractEntrustH5Request
|
||||
{
|
||||
/// <summary>
|
||||
/// <inheritdoc/>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sp_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sp_appid")]
|
||||
public override string AppId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置子商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sub_mchid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sub_mchid")]
|
||||
public string SubMerchantId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置子商户 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sub_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sub_appid")]
|
||||
public string? SubAppId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /papay/contracts/h5-pre-entrust-sign 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class PresignHKPartnerPAPPayContractEntrustH5Response : PresignHKPAPPayContractEntrustH5Response
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /papay/contracts/jsapi-pre-entrust-sign 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class PresignHKPartnerPAPPayContractEntrustJsapiRequest : PresignHKPAPPayContractEntrustJsapiRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// <inheritdoc/>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sp_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sp_appid")]
|
||||
public override string AppId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置子商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sub_mchid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sub_mchid")]
|
||||
public string SubMerchantId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置子商户 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sub_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sub_appid")]
|
||||
public string? SubAppId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /papay/contracts/jsapi-pre-entrust-sign 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class PresignHKPartnerPAPPayContractEntrustJsapiResponse : PresignHKPAPPayContractEntrustJsapiResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /papay/contracts/miniprogram-pre-entrust-sign 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class PresignHKPartnerPAPPayContractEntrustMiniProgramRequest : PresignHKPAPPayContractEntrustMiniProgramRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// <inheritdoc/>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sp_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sp_appid")]
|
||||
public override string AppId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置子商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sub_mchid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sub_mchid")]
|
||||
public string SubMerchantId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置子商户 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sub_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sub_appid")]
|
||||
public string? SubAppId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /papay/contracts/miniprogram-pre-entrust-sign 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class PresignHKPartnerPAPPayContractEntrustMiniProgramResponse : PresignHKPAPPayContractEntrustMiniProgramResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /papay/contracts/web-pre-entrust-sign 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class PresignHKPartnerPAPPayContractEntrustWebRequest : PresignHKPAPPayContractEntrustWebRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// <inheritdoc/>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sp_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sp_appid")]
|
||||
public override string AppId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置子商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sub_mchid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sub_mchid")]
|
||||
public string SubMerchantId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置子商户 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sub_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sub_appid")]
|
||||
public string? SubAppId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /papay/contracts/web-pre-entrust-sign 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class PresignHKPartnerPAPPayContractEntrustWebResponse : PresignHKPAPPayContractEntrustWebResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /papay/transactions/out-trade-no/{out_trade_no}/reverse 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ReverseHKPartnerPAPPayTransactionRequest : ReverseHKPAPPayTransactionRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置子商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sub_mchid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sub_mchid")]
|
||||
public string SubMerchantId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /papay/transactions/out-trade-no/{out_trade_no}/reverse 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ReverseHKPartnerPAPPayTransactionResponse : ReverseHKPAPPayTransactionResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /papay/contracts/{contract_id}/terminate 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class TerminateHKPartnerPAPPayContractRequest : TerminateHKPAPPayContractRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// <inheritdoc/>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sp_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sp_appid")]
|
||||
public override string AppId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置子商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sub_mchid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sub_mchid")]
|
||||
public string SubMerchantId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置子商户 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sub_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sub_appid")]
|
||||
public string? SubAppId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /papay/contracts/{contract_id}/terminate 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class TerminateHKPartnerPAPPayContractResponse : TerminateHKPAPPayContractResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -1,29 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /refunds/id/{refund_id} 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class GetHKPartnerRefundByIdRequest : WechatTenpayRequest
|
||||
public class GetHKPartnerRefundByIdRequest : GetHKRefundByIdRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置微信商户号。如果不指定将使用构造 <see cref="WechatTenpayClient"/> 时的 <see cref="WechatTenpayClientOptions.MerchantId"/> 参数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string? MerchantId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置子商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string SubMerchantId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信支付退款单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string RefundId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,29 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /refunds/out-refund-no/{out_refund_no} 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class GetHKPartnerRefundByOutRefundNumberRequest : WechatTenpayRequest
|
||||
public class GetHKPartnerRefundByOutRefundNumberRequest : GetHKRefundByOutRefundNumberRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置微信商户号。如果不指定将使用构造 <see cref="WechatTenpayClient"/> 时的 <see cref="WechatTenpayClientOptions.MerchantId"/> 参数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string? MerchantId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置子商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string SubMerchantId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信支付订单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string OutRefundNumber { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /refunds 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class QueryHKPartnerRefundsRequest : QueryHKRefundsRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置子商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string SubMerchantId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /refunds 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class QueryHKPartnerRefundsResponse : QueryHKRefundsResponse
|
||||
{
|
||||
public static new class Types
|
||||
{
|
||||
public class Amount : QueryHKRefundsResponse.Types.Amount
|
||||
{
|
||||
}
|
||||
|
||||
public class Refund : QueryHKRefundsResponse.Types.Refund
|
||||
{
|
||||
public static new class Types
|
||||
{
|
||||
public class Amount : QueryHKRefundsResponse.Types.Refund.Types.Amount
|
||||
{
|
||||
public static new class Types
|
||||
{
|
||||
public class ExchangeRate : QueryHKRefundsResponse.Types.Refund.Types.Amount.Types.ExchangeRate
|
||||
{
|
||||
}
|
||||
|
||||
public class From : QueryHKRefundsResponse.Types.Refund.Types.Amount.Types.From
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置汇率信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("exchange_rate")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("exchange_rate")]
|
||||
public new Types.ExchangeRate? ExchangeRate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退款出资账户及金额列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("from")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("from")]
|
||||
public new Types.From[]? FromList { get; set; }
|
||||
}
|
||||
|
||||
public class Promotion : QueryHKRefundsResponse.Types.Refund.Types.Promotion
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退款金额信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("amount")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("amount")]
|
||||
public new Types.Amount Amount { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置优惠退款信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("refund_detail")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("refund_detail")]
|
||||
public new Types.Promotion Promotion { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <inheritdoc/>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sp_mchid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sp_mchid")]
|
||||
public override string MerchantId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置子商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sub_mchid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sub_mchid")]
|
||||
public string SubMerchantId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置金额信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("amount")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("amount")]
|
||||
public new Types.Amount Amount { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退款单列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("data")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("data")]
|
||||
public new Types.Refund[] RefundList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
@@ -28,10 +28,36 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
|
||||
public class Amount : GetHKTransactionByOutTradeNumberResponse.Types.Amount
|
||||
{
|
||||
public static new class Types
|
||||
{
|
||||
public class ExchangeRate : GetHKTransactionByOutTradeNumberResponse.Types.Amount.Types.ExchangeRate
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置汇率信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("exchange_rate")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("exchange_rate")]
|
||||
public new Types.ExchangeRate? ExchangeRate { get; set; }
|
||||
}
|
||||
|
||||
public class Promotion : GetHKTransactionByOutTradeNumberResponse.Types.Promotion
|
||||
{
|
||||
public static new class Types
|
||||
{
|
||||
public class GoodsDetail : GetHKTransactionByOutTradeNumberResponse.Types.Promotion.Types.GoodsDetail
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置单品列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("goods_detail")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("goods_detail")]
|
||||
public new Types.GoodsDetail[]? GoodsList { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /refunds/id/{refund_id} 接口的请求。</para>
|
||||
@@ -10,7 +10,7 @@
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string? MerchantId { get; set; }
|
||||
public virtual string? MerchantId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信支付退款单号。
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /refunds/out-refund-no/{out_refund_no} 接口的请求。</para>
|
||||
@@ -10,7 +10,7 @@
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string? MerchantId { get; set; }
|
||||
public virtual string? MerchantId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信支付订单号。
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /refunds 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class QueryHKRefundsRequest : WechatTenpayRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置微信商户号。如果不指定将使用构造 <see cref="WechatTenpayClient"/> 时的 <see cref="WechatTenpayClientOptions.MerchantId"/> 参数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public virtual string? MerchantId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商户订单号。与字段 <see cref="TransactionId"/> 二选一。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string? OutTradeNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信支付订单号。与字段 <see cref="OutTradeNumber"/> 二选一。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string? TransactionId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页大小。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public int Limit { get; set; } = 10;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页开始位置。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public int Offset { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,287 @@
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /refunds 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class QueryHKRefundsResponse : WechatTenpayResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Amount
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置原订单金额(单位:指定货币的最小单位)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("total")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("total")]
|
||||
public int Total { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退款币种。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("currency")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("currency")]
|
||||
public string? Currency { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置用户支付金额(单位:指定货币的最小单位)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("payer_total")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("payer_total")]
|
||||
public int PayerTotal { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置用户支付币种。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("payer_currency")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("payer_currency")]
|
||||
public string PayerCurrency { get; set; } = default!;
|
||||
}
|
||||
|
||||
public class Refund
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Amount
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class ExchangeRate : GetHKRefundByOutRefundNumberResponse.Types.Amount.Types.ExchangeRate
|
||||
{
|
||||
}
|
||||
|
||||
public class From
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置出资金额 (单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("amount")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("amount")]
|
||||
public int Amount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置出资来源。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("fund_source")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("fund_source")]
|
||||
public string FundSource { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退款金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("refund")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("refund")]
|
||||
public int Refund { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退款币种。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("currency")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("currency")]
|
||||
public string Currency { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置用户退款金额(单位:指定货币的最小单位)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("payer_refund")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("payer_refund")]
|
||||
public int PayerRefund { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置用户支付币种。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("payer_currency")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("payer_currency")]
|
||||
public string PayerCurrency { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置汇率信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("exchange_rate")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("exchange_rate")]
|
||||
public Types.ExchangeRate? ExchangeRate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退款出资账户及金额列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("from")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("from")]
|
||||
public Types.From[]? FromList { get; set; }
|
||||
}
|
||||
|
||||
public class Promotion
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置券 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("promotion_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("promotion_id")]
|
||||
public string PromotionId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置优惠范围。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("scope")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("scope")]
|
||||
public string Scope { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置优惠类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("type")]
|
||||
public string Type { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置优惠券面额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("amount")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("amount")]
|
||||
public int Amount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置优惠退款金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("refund_amount")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("refund_amount")]
|
||||
public int RefundAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退款币种。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("currency")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("currency")]
|
||||
public string Currency { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信支付退款单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("id")]
|
||||
public string RefundId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商户退款单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("out_refund_no")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("out_refund_no")]
|
||||
public string OutRefundNumber { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退款渠道。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("channel")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("channel")]
|
||||
public string Channel { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退款资金来源。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("fund_source")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("fund_source")]
|
||||
public string FundSource { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退款入账账户。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("recv_account")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("recv_account")]
|
||||
public string ReceiveAccount { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退款状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||
public string Status { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退款成功时间。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("success_time")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RFC3339NullableDateTimeOffsetConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("success_time")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RFC3339NullableDateTimeOffsetConverter))]
|
||||
public DateTimeOffset? SuccessTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退款创建时间。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("create_time")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RFC3339DateTimeOffsetConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("create_time")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RFC3339DateTimeOffsetConverter))]
|
||||
public DateTimeOffset CreateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退款金额信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("amount")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("amount")]
|
||||
public Types.Amount Amount { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置优惠退款信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("refund_detail")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("refund_detail")]
|
||||
public Types.Promotion Promotion { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("mchid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("mchid")]
|
||||
public virtual string MerchantId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信支付订单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("id")]
|
||||
public string TransactionId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商户订单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("out_trade_no")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("out_trade_no")]
|
||||
public string OutTradeNumber { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置金额信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("amount")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("amount")]
|
||||
public Types.Amount Amount { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退款单列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("data")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("data")]
|
||||
public Types.Refund[] RefundList { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单总退款次数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("total_num")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("total_num")]
|
||||
public int TotalRefundCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置本次返回退款单数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("current_total_num")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("current_total_num")]
|
||||
public int CurrentRefundCount { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /papay/contracts/{contract_id}/notify 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class NotifyPAPPayContractsRequest : WechatTenpayRequest
|
||||
public class NotifyPAPPayContractRequest : WechatTenpayRequest
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
@@ -1,9 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /papay/contracts/{contract_id}/notify 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class NotifyPAPPayContractsResponse : WechatTenpayResponse
|
||||
public class NotifyPAPPayContractResponse : WechatTenpayResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -1,13 +1,13 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /partner-papay/contracts/{contract_id}/notify 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class NotifyPartnerPAPPayContractsRequest : WechatTenpayRequest
|
||||
public class NotifyPartnerPAPPayContractRequest : WechatTenpayRequest
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Amount : NotifyPAPPayContractsRequest.Types.Amount
|
||||
public class Amount : NotifyPAPPayContractRequest.Types.Amount
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /partner-papay/contracts/{contract_id}/notify 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class NotifyPartnerPAPPayContractsResponse : WechatTenpayResponse
|
||||
public class NotifyPartnerPAPPayContractResponse : WechatTenpayResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -1,17 +1,10 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /pay/partner/transactions/id/{transaction_id} 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class GetPayPartnerTransactionByIdRequest : GetPayTransactionByIdRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置服务商商户号。如果不指定将使用构造 <see cref="WechatTenpayClient"/> 时的 <see cref="WechatTenpayClientOptions.MerchantId"/> 参数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public override string? MerchantId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置子商户号。
|
||||
/// </summary>
|
||||
|
||||
@@ -1,17 +1,10 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /pay/partner/transactions/out-trade-no/{out_trade_no} 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class GetPayPartnerTransactionByOutTradeNumberRequest : GetPayTransactionByOutTradeNumberRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置服务商商户号。如果不指定将使用构造 <see cref="WechatTenpayClient"/> 时的 <see cref="WechatTenpayClientOptions.MerchantId"/> 参数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public override string? MerchantId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置子商户号。
|
||||
/// </summary>
|
||||
|
||||
@@ -5,39 +5,5 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
/// </summary>
|
||||
public class SetPayScorePartnerServiceOrderPayResponse : SetPayScoreServiceOrderPayResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置微信 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public string AppId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("mchid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("mchid")]
|
||||
public string MerchantId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置服务 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("service_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("service_id")]
|
||||
public string ServiceId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商户服务订单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("out_order_no")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("out_order_no")]
|
||||
public string OutOrderNumber { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信支付服务订单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
|
||||
public string OrderId { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /pay/transactions/id/{transaction_id} 接口的请求。</para>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /pay/transactions/out-trade-no/{out_trade_no} 接口的请求。</para>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
@@ -187,14 +187,14 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("mchid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("mchid")]
|
||||
public string MerchantId { get; set; } = default!;
|
||||
public virtual string MerchantId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public string AppId { get; set; } = default!;
|
||||
public virtual string AppId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商户订单号。
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
/// <para>表示 [POST] /payroll-card/authentications/pre-order-with-auth 接口的请求。</para>
|
||||
/// </summary>
|
||||
[WechatTenpaySensitive]
|
||||
public class PreOrderWithAuthPayrollCardAuthenticationRequest : WechatTenpayRequest
|
||||
public class PreorderPayrollCardAuthenticationRequest : WechatTenpayRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置子商户号。
|
||||
@@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /payroll-card/authentications/pre-order-with-auth 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class PreOrderWithAuthPayrollCardAuthenticationResponse : WechatTenpayResponse
|
||||
public class PreorderPayrollCardAuthenticationResponse : WechatTenpayResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置微信商户号。
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
{
|
||||
/// <summary>
|
||||
/// 微信支付 API 接口域名。
|
||||
@@ -21,9 +21,9 @@
|
||||
public const string REGION_HONGKONG = "https://api.mch.weixin.qq.com/hk/v3";
|
||||
|
||||
/// <summary>
|
||||
/// 全球域名。
|
||||
/// 香港全球域名。
|
||||
/// </summary>
|
||||
public const string REGION_HONGKONG_GLOBAL = "https://apihk.mch.weixin.qq.com/global/v3";
|
||||
public const string REGION_HONGKONG_GLOBAL = "https://apihk.mch.weixin.qq.com/v3/global";
|
||||
|
||||
/// <summary>
|
||||
/// 沙箱域名。
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"appid": "wxcbda96de0b165486",
|
||||
"description": "PAPAuto-debit支付测试",
|
||||
"attach": "支付测试",
|
||||
"notify_url": "https://wxpay.wxutil.com/pub_v2/pay/notify.v2.php",
|
||||
"out_trade_no": "1217752501201407033233368018",
|
||||
"goods_tag": "WXG",
|
||||
"merchant_category_code": "1011",
|
||||
"contract_id": "Wx15463511252015071056489715",
|
||||
"amount": {
|
||||
"total": 10000,
|
||||
"currency": "HKD"
|
||||
},
|
||||
"scene_info": {
|
||||
"device_ip": "59.37.125.32",
|
||||
"device_id": "013467007045764"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"amount": {
|
||||
"currency": "HKD",
|
||||
"payer_currency": "CNY",
|
||||
"payer_total": 8,
|
||||
"total": 10
|
||||
},
|
||||
"appid": "wx7bc98d929da735fe",
|
||||
"attach": "testruoyu",
|
||||
"bank_type": "CFT",
|
||||
"mchid": "132012662",
|
||||
"merchant_category_code": "0",
|
||||
"out_trade_no": "autotest_20210608201410_9263565",
|
||||
"payer": {
|
||||
"openid": "of8YZ6A_ySrPYzjX7joXo_h2CI44"
|
||||
},
|
||||
"promotion_detail": [
|
||||
{
|
||||
"promotion_id": "109519",
|
||||
"name": "单品惠-6",
|
||||
"scope": "SINGLE",
|
||||
"type": "COUPON",
|
||||
"amount": 5,
|
||||
"currency": "HKD",
|
||||
"activity_id": "931386",
|
||||
"wxpay_contribute_amount": 100,
|
||||
"merchant_contribute_amount": 100,
|
||||
"other_contribute_amount": 5,
|
||||
"goods_detail": [
|
||||
{
|
||||
"goods_id": "124512",
|
||||
"goods_remark": "1001",
|
||||
"discount_amount": 100,
|
||||
"quantity": 1,
|
||||
"price": 528800
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"success_time": "2021-12-09T10:56:27+08:00",
|
||||
"trade_state": "SUCCESS",
|
||||
"trade_state_desc": "支付成功",
|
||||
"trade_type": "AUTH",
|
||||
"transaction_id": "4200001136202112092809736426"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"mchid": "10000100",
|
||||
"appid": " wx426b3015555b46be ",
|
||||
"contract_id": "203",
|
||||
"plan_id": 66,
|
||||
"openid": " oHZx6uMbIG46UXQ3SKxVYEgw1LZs ",
|
||||
"out_contract_code": " 1005 ",
|
||||
"user_display_name": " test ",
|
||||
"state": "TERMINATED",
|
||||
"signed_time": "2015-07-01T10:00:00+08:00",
|
||||
"terminated_time": "2015-09-01T10:00:00+08:00",
|
||||
"termination_mode": "USER",
|
||||
"termination_note": " delete ...."
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"mchid": "10000100",
|
||||
"appid": " wx426b3015555b46be ",
|
||||
"contract_id": "203",
|
||||
"plan_id": 66,
|
||||
"openid": " oHZx6uMbIG46UXQ3SKxVYEgw1LZs ",
|
||||
"out_contract_code": " 1005 ",
|
||||
"user_display_name": " test ",
|
||||
"state": "TERMINATED",
|
||||
"signed_time": "2015-07-01T10:00:00+08:00",
|
||||
"terminated_time": "2015-09-01T10:00:00+08:00",
|
||||
"termination_mode": "USER",
|
||||
"termination_note": " delete ...."
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"appid": "wxcbda96de0b165486",
|
||||
"expired_time": "2021-11-20T13:29:35+08:00",
|
||||
"openid": "ouFhd5X9s9WteC3eWRjXV3lea123",
|
||||
"out_contract_code": "100001256",
|
||||
"plan_id": 123,
|
||||
"success_notify_url": "https://yoursite.com",
|
||||
"user_client_ip": "119.145.83.6",
|
||||
"user_display_name": "张三"
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"session_id": "201710180325670965"
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"appid": "wxcbda96de0b165486",
|
||||
"expired_time": "2021-11-20T13:29:35+08:00",
|
||||
"out_contract_code": "100001256",
|
||||
"plan_id": 123,
|
||||
"return_appid": "wxcbda96de0b165486",
|
||||
"return_url": "https://yoursite.com",
|
||||
"success_notify_url": "https://yoursite.com",
|
||||
"user_client_ip": "119.145.83.6",
|
||||
"user_display_name": "张三"
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"sign_url": "https://apihk.mch.weixin.qq.com/global/papay/contracts/login?os_session_id=2021120910391616228#wechat_redirect"
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"appid": "wxcbda96de0b165486",
|
||||
"expired_time": "2021-11-20T13:29:35+08:00",
|
||||
"openid": "ouFhd5X9s9WteC3eWRjXV3lea123",
|
||||
"out_contract_code": "100001256",
|
||||
"plan_id": 123,
|
||||
"return_url": "https://yoursite.com",
|
||||
"success_notify_url": "https://yoursite.com",
|
||||
"user_display_name": "张三"
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"sign_url": "https://apihk.mch.weixin.qq.com/global/papay/contracts/login?os_session_id=2021120910391616228#wechat_redirect"
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"appid": "wxcbda96de0b165486",
|
||||
"expired_time": "2021-11-20T13:29:35+08:00",
|
||||
"openid": "ouFhd5X9s9WteC3eWRjXV3lea123",
|
||||
"out_contract_code": "100001256",
|
||||
"plan_id": 123,
|
||||
"success_notify_url": "https://yoursite.com",
|
||||
"user_client_ip": "119.145.83.6",
|
||||
"user_display_name": "张三"
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"session_id": "201710180325670965"
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"appid": "wxcbda96de0b165486",
|
||||
"expired_time": "2021-11-20T13:29:35+08:00",
|
||||
"out_contract_code": "100001256",
|
||||
"plan_id": 123,
|
||||
"success_notify_url": "https://yoursite.com",
|
||||
"user_display_name": "张三"
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"sign_url": "https://apihk.mch.weixin.qq.com/global/papay/contracts/login?os_session_id=2021120910391616228#wechat_redirect"
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"appid": "wxcbda96de0b165486",
|
||||
"termination_note": "Cause of termination"
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"sp_appid": "wxcbda96de0b165486",
|
||||
"sub_mchid": "10000097",
|
||||
"sub_appid": "wxcbda96de0b165484",
|
||||
"description": "PAPAuto-debit支付测试",
|
||||
"attach": "支付测试",
|
||||
"notify_url": "https://wxpay.wxutil.com/pub_v2/pay/notify.v2.php",
|
||||
"out_trade_no": "1217752501201407033233368018",
|
||||
"goods_tag": "WXG",
|
||||
"merchant_category_code": "1011",
|
||||
"contract_id": "Wx15463511252015071056489715",
|
||||
"amount": {
|
||||
"total": 10000,
|
||||
"currency": "HKD"
|
||||
},
|
||||
"scene_info": {
|
||||
"device_ip": "59.37.125.32",
|
||||
"device_id": "013467007045764"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"amount": {
|
||||
"currency": "HKD",
|
||||
"payer_currency": "CNY",
|
||||
"payer_total": 8,
|
||||
"total": 10
|
||||
},
|
||||
"sp_appid": "wx7bc98d929da735fe",
|
||||
"sub_appid": "wxcbda96de0b165484",
|
||||
"attach": "testruoyu",
|
||||
"bank_type": "CFT",
|
||||
"sp_mchid": "132012662",
|
||||
"sub_mchid": "10000097",
|
||||
"merchant_category_code": "0",
|
||||
"out_trade_no": "autotest_20210608201410_9263565",
|
||||
"payer": {
|
||||
"sp_openid": "of8YZ6A_ySrPYzjX7joXo_h2CI44",
|
||||
"sub_openid": "oUpF8uMuAJO_M2pxb1Q9zNjWeS6o"
|
||||
},
|
||||
"promotion_detail": [
|
||||
{
|
||||
"promotion_id": "109519",
|
||||
"name": "单品惠-6",
|
||||
"scope": "SINGLE",
|
||||
"type": "COUPON",
|
||||
"amount": 5,
|
||||
"currency": "HKD",
|
||||
"activity_id": "931386",
|
||||
"wxpay_contribute_amount": 100,
|
||||
"merchant_contribute_amount": 100,
|
||||
"other_contribute_amount": 5,
|
||||
"goods_detail": [
|
||||
{
|
||||
"goods_id": "124512",
|
||||
"goods_remark": "1001",
|
||||
"discount_amount": 100,
|
||||
"quantity": 1,
|
||||
"price": 528800
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"success_time": "2021-12-09T10:56:27+08:00",
|
||||
"trade_state": "SUCCESS",
|
||||
"trade_state_desc": "支付成功",
|
||||
"trade_type": "AUTH",
|
||||
"transaction_id": "4200001136202112092809736426"
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"sp_mchid": "10000100",
|
||||
"sub_mchid": " 1900000109",
|
||||
"sp_appid": " wx426b3015555b46be ",
|
||||
"contract_id": "203",
|
||||
"plan_id": 66,
|
||||
"openid": " oHZx6uMbIG46UXQ3SKxVYEgw1LZs ",
|
||||
"out_contract_code": " 1005 ",
|
||||
"user_display_name": " test ",
|
||||
"state": "TERMINATED",
|
||||
"signed_time": "2015-07-01T10:00:00+08:00",
|
||||
"terminated_time": "2015-09-01T10:00:00+08:00",
|
||||
"termination_mode": "EXPIRED",
|
||||
"termination_note": " delete .... "
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user