mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-04-05 17:37:54 +08:00
feat(tenpayv3): 新增从业机构微信支付分相关接口
This commit is contained in:
parent
770ee8d590
commit
6e1aeb0798
@ -17,7 +17,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV2
|
||||
public static WechatTenpayEvent DeserializeEvent(this WechatTenpayClient client, string callbackXml)
|
||||
{
|
||||
if (client == null) throw new ArgumentNullException(nameof(client));
|
||||
if (string.IsNullOrEmpty(callbackXml)) throw new ArgumentNullException(callbackXml);
|
||||
if (callbackXml == null) throw new ArgumentNullException(callbackXml);
|
||||
|
||||
string callbackJson = Utilities.XmlUtility.ConvertToJson(callbackXml);
|
||||
return client.JsonSerializer.Deserialize<WechatTenpayEvent>(callbackJson);
|
||||
|
@ -1,10 +1,10 @@
|
||||
using System;
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 PAYSCORE.USER_OPEN_SERVICE 通知的数据。</para>
|
||||
/// <para>表示 PAYSCORE.USER_CLOSE_SERVICE 通知的数据。</para>
|
||||
/// <para>表示 PAYSCORE.USER_OPEN_SERVICE(针对直连商户)通知的数据。</para>
|
||||
/// <para>表示 PAYSCORE.USER_CLOSE_SERVICE(针对直连商户)通知的数据。</para>
|
||||
/// </summary>
|
||||
public class PayScorePermissionsResource : WechatTenpayEvent.Types.IDecryptedResource
|
||||
{
|
@ -1,10 +1,10 @@
|
||||
using System;
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 PAYSCORE.USER_CONFIRM 通知的数据。</para>
|
||||
/// <para>表示 PAYSCORE.USER_PAID 通知的数据。</para>
|
||||
/// <para>表示 PAYSCORE.USER_CONFIRM(针对直连商户)通知的数据。</para>
|
||||
/// <para>表示 PAYSCORE.USER_PAID(针对直连商户)通知的数据。</para>
|
||||
/// </summary>
|
||||
public class PayScoreServiceOrderResource : WechatTenpayEvent.Types.IDecryptedResource
|
||||
{
|
@ -0,0 +1,90 @@
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 PAYSCORE.USER_OPEN_SERVICE(针对从业机构)通知的数据。</para>
|
||||
/// <para>表示 PAYSCORE.USER_CLOSE_SERVICE(针对从业机构)通知的数据。</para>
|
||||
/// </summary>
|
||||
public class PayScoreAcquiringBankPermissionsResource : WechatTenpayEvent.Types.IDecryptedResource
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置服务商商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("mch_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("mch_id")]
|
||||
public string MerchantId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置子商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sub_mch_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sub_mch_id")]
|
||||
public string SubMerchantId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置服务商 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public string AppId { 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("channel_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("channel_id")]
|
||||
public string? ChannelId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置授权协议号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("authorization_code")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("authorization_code")]
|
||||
public string? AuthorizationCode { get; set; }
|
||||
|
||||
/// <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("openid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("openid")]
|
||||
public string? OpenId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置用户在子商户下唯一标识。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sub_openid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sub_openid")]
|
||||
public string? SubOpenId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置回调状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("user_service_status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("user_service_status")]
|
||||
public string? UserServiceStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置服务开启或解除授权时间。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("openorclose_time")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.PureDigitalTextNullableDateTimeOffsetConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("openorclose_time")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.PureDigitalTextNullableDateTimeOffsetConverter))]
|
||||
public DateTimeOffset? OpenOrCloseTime { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,190 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 PAYSCORE.USER_CONFIRM(针对从业机构)通知的数据。</para>
|
||||
/// <para>表示 PAYSCORE.USER_PAID(针对从业机构)通知的数据。</para>
|
||||
/// </summary>
|
||||
public class PayScoreAcquiringBankServiceOrderResource : WechatTenpayEvent.Types.IDecryptedResource
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Payment : PayScorePartnerServiceOrderResource.Types.Payment
|
||||
{
|
||||
}
|
||||
|
||||
public class Discount : PayScorePartnerServiceOrderResource.Types.Discount
|
||||
{
|
||||
}
|
||||
|
||||
public class TimeRange : PayScorePartnerServiceOrderResource.Types.TimeRange
|
||||
{
|
||||
}
|
||||
|
||||
public class Location : PayScorePartnerServiceOrderResource.Types.Location
|
||||
{
|
||||
}
|
||||
|
||||
public class RiskFund : PayScorePartnerServiceOrderResource.Types.RiskFund
|
||||
{
|
||||
}
|
||||
|
||||
public class Collection : PayScorePartnerServiceOrderResource.Types.Collection
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置服务商商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("mchid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("mchid")]
|
||||
public 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>
|
||||
/// 获取或设置服务商 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public string AppId { 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("channel_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("channel_id")]
|
||||
public string? ChannelId { get; set; }
|
||||
|
||||
/// <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; }
|
||||
|
||||
/// <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("service_introduction")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("service_introduction")]
|
||||
public string ServiceIntroduction { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置用户在服务商下唯一标识。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("openid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("openid")]
|
||||
public string? OpenId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置用户在子商户下唯一标识。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sub_openid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sub_openid")]
|
||||
public string? SubOpenId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置服务订单状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("state")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("state")]
|
||||
public string State { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置服务订单状态说明。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("state_description")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("state_description")]
|
||||
public string? StateDescription { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商户收款总金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("total_amount")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("total_amount")]
|
||||
public int? TotalAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置附加数据。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("attach")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("attach")]
|
||||
public string? Attachment { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置付费项目列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("post_payments")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("post_payments")]
|
||||
public Types.Payment[]? PostPaymentList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商户优惠列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("post_discounts")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("post_discounts")]
|
||||
public Types.Discount[]? PostDiscountList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置服务时间段信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("time_range")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("time_range")]
|
||||
public Types.TimeRange? TimeRange { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置服务位置信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("location")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("location")]
|
||||
public Types.Location? Location { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单风险金信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("risk_fund")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("risk_fund")]
|
||||
public Types.RiskFund? RiskFund { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否需要收款。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("need_collection")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("need_collection")]
|
||||
public bool? RequireCollection { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置收款信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("collection")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("collection")]
|
||||
public Types.Collection? Collection { get; set; }
|
||||
}
|
||||
}
|
@ -1,10 +1,10 @@
|
||||
using System;
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 PAYSCORE.USER_OPEN_SERVICE 通知的数据。</para>
|
||||
/// <para>表示 PAYSCORE.USER_CLOSE_SERVICE 通知的数据。</para>
|
||||
/// <para>表示 PAYSCORE.USER_OPEN_SERVICE(针对服务商)通知的数据。</para>
|
||||
/// <para>表示 PAYSCORE.USER_CLOSE_SERVICE(针对服务商)通知的数据。</para>
|
||||
/// </summary>
|
||||
public class PayScorePartnerPermissionsResource : WechatTenpayEvent.Types.IDecryptedResource
|
||||
{
|
@ -1,8 +1,8 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Events
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 PAYSCORE.USER_CONFIRM 通知的数据。</para>
|
||||
/// <para>表示 PAYSCORE.USER_PAID 通知的数据。</para>
|
||||
/// <para>表示 PAYSCORE.USER_CONFIRM(针对服务商)通知的数据。</para>
|
||||
/// <para>表示 PAYSCORE.USER_PAID(针对服务商)通知的数据。</para>
|
||||
/// </summary>
|
||||
public class PayScorePartnerServiceOrderResource : WechatTenpayEvent.Types.IDecryptedResource
|
||||
{
|
@ -0,0 +1,225 @@
|
||||
using System;
|
||||
using System.Net.Http;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Flurl;
|
||||
using Flurl.Http;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
{
|
||||
/// <summary>
|
||||
/// 为 <see cref="WechatTenpayClient"/> 提供微信支付分从业机构相关的 API 扩展方法。
|
||||
/// </summary>
|
||||
public static class WechatTenpayClientExecutePayScoreAcquiringBankExtensions
|
||||
{
|
||||
#region Permissions
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /payscore/acquiringbank/permissions 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/docs/acquiringbank/apis/acquiringbank-institution-weixin-pay-score/acquiring-bank-service-auth/apply-acquiring-bank-permissions.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ApplyPayScoreAcquiringBankPermissionsResponse> ExecuteApplyPayScoreAcquiringBankPermissionsAsync(this WechatTenpayClient client, Models.ApplyPayScoreAcquiringBankPermissionsRequest 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, "payscore", "acquiringbank", "permissions");
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.ApplyPayScoreAcquiringBankPermissionsResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [GET] /payscore/acquiringbank/permissions/authorization-code/{authorization_code} 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/docs/acquiringbank/apis/acquiringbank-institution-weixin-pay-score/acquiring-bank-service-auth/get-acquiring-bank-permissions-by-code.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.GetPayScoreAcquiringBankPermissionsByAuthorizationCodeResponse> ExecuteGetPayScoreAcquiringBankPermissionsByAuthorizationCodeAsync(this WechatTenpayClient client, Models.GetPayScoreAcquiringBankPermissionsByAuthorizationCodeRequest 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, "payscore", "acquiringbank", "permissions", "authorization-code", request.AuthorizationCode)
|
||||
.SetQueryParam("service_id", request.ServiceId)
|
||||
.SetQueryParam("sub_mchid", request.SubMerchantId);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.GetPayScoreAcquiringBankPermissionsByAuthorizationCodeResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /payscore/acquiringbank/permissions/authorization-code/{authorization_code}/terminate 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/docs/acquiringbank/apis/acquiringbank-institution-weixin-pay-score/acquiring-bank-service-auth/terminate-acquiring-bank-permissions-by-code.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.TerminatePayScoreAcquiringBankPermissionsByAuthorizationCodeResponse> ExecuteTerminatePayScoreAcquiringBankPermissionsByAuthorizationCodeAsync(this WechatTenpayClient client, Models.TerminatePayScoreAcquiringBankPermissionsByAuthorizationCodeRequest 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, "payscore", "acquiringbank", "permissions", "authorization-code", request.AuthorizationCode, "terminate");
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.TerminatePayScoreAcquiringBankPermissionsByAuthorizationCodeResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region ServiceOrder
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /payscore/acquiringbank/serviceorder 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/docs/acquiringbank/apis/acquiringbank-institution-weixin-pay-score/acquiring-bank-service-order/create-acquiring-bank-service-order.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CreatePayScoreAcquiringBankServiceOrderResponse> ExecuteCreatePayScoreAcquiringBankServiceOrderAsync(this WechatTenpayClient client, Models.CreatePayScoreAcquiringBankServiceOrderRequest 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, "payscore", "acquiringbank", "serviceorder");
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CreatePayScoreAcquiringBankServiceOrderResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [GET] /payscore/acquiringbank/serviceorder 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/payscore_acquiringbank/chapter3_2.shtml </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.GetPayScoreAcquiringBankServiceOrderByOutOrderNumberResponse> ExecuteGetPayScoreAcquiringBankServiceOrderByOutOrderNumberAsync(this WechatTenpayClient client, Models.GetPayScoreAcquiringBankServiceOrderByOutOrderNumberRequest 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, "payscore", "acquiringbank", "serviceorder")
|
||||
.SetQueryParam("out_order_no", request.OutOrderNumber)
|
||||
.SetQueryParam("service_id", request.ServiceId)
|
||||
.SetQueryParam("sub_mchid", request.SubMerchantId)
|
||||
.SetQueryParam("channel_id", request.ChannelId);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.GetPayScoreAcquiringBankServiceOrderByOutOrderNumberResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [GET] /payscore/acquiringbank/serviceorder 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/docs/acquiringbank/apis/acquiringbank-institution-weixin-pay-score/acquiring-bank-service-order/get-acquiring-bank-service-order.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.GetPayScoreAcquiringBankServiceOrderByQueryIdResponse> ExecuteGetPayScoreAcquiringBankServiceOrderByQueryIdAsync(this WechatTenpayClient client, Models.GetPayScoreAcquiringBankServiceOrderByQueryIdRequest 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, "payscore", "acquiringbank", "serviceorder")
|
||||
.SetQueryParam("query_id", request.QueryId)
|
||||
.SetQueryParam("service_id", request.ServiceId)
|
||||
.SetQueryParam("sub_mchid", request.SubMerchantId)
|
||||
.SetQueryParam("channel_id", request.ChannelId);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.GetPayScoreAcquiringBankServiceOrderByQueryIdResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /payscore/acquiringbank/serviceorder/{out_order_no}/cancel 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/docs/partner/apis/partner-institution-weixin-pay-score/acquiring-bank-service-order/cancel-acquiring-bank-service-order.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CancelPayScoreAcquiringBankServiceOrderResponse> ExecuteCancelPayScoreAcquiringBankServiceOrderAsync(this WechatTenpayClient client, Models.CancelPayScoreAcquiringBankServiceOrderRequest 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, "payscore", "acquiringbank", "serviceorder", request.OutOrderNumber, "cancel");
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CancelPayScoreAcquiringBankServiceOrderResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /payscore/acquiringbank/serviceorder/{out_order_no}/complete 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/payscore_acquiringbank/chapter3_5.shtml </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.SetPayScoreAcquiringBankServiceOrderCompleteResponse> ExecuteSetPayScoreAcquiringBankServiceOrderCompleteAsync(this WechatTenpayClient client, Models.SetPayScoreAcquiringBankServiceOrderCompleteRequest 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, "payscore", "acquiringbank", "serviceorder", request.OutOrderNumber, "complete");
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.SetPayScoreAcquiringBankServiceOrderCompleteResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /payscore/acquiringbank/serviceorder/{out_order_no}/registerdeductinfo 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/docs/partner/apis/partner-institution-weixin-pay-score/acquiring-bank-service-order/register-deduct-info.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.RegisterPayScoreAcquiringBankServiceOrderDeductionResponse> ExecuteRegisterPayScoreAcquiringBankServiceOrderDeductionAsync(this WechatTenpayClient client, Models.RegisterPayScoreAcquiringBankServiceOrderDeductionRequest 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, "payscore", "acquiringbank", "serviceorder", request.OutOrderNumber, "registerdeductinfo");
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.RegisterPayScoreAcquiringBankServiceOrderDeductionResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [GET] /payscore/acquiringbank/serviceorder/deduction 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/docs/partner/apis/partner-institution-weixin-pay-score/acquiring-bank-service-order/get-acquiring-bank-deduct-info.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.GetPayScoreAcquiringBankServiceOrderDeductionResponse> ExecuteGetPayScoreAcquiringBankServiceOrderDeductionAsync(this WechatTenpayClient client, Models.GetPayScoreAcquiringBankServiceOrderDeductionRequest 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, "payscore", "acquiringbank", "serviceorder", "deduction")
|
||||
.SetQueryParam("out_order_no", request.OutOrderNumber)
|
||||
.SetQueryParam("service_id", request.ServiceId)
|
||||
.SetQueryParam("appid", request.AppId)
|
||||
.SetQueryParam("sub_mchid", request.SubMerchantId)
|
||||
.SetQueryParam("sub_appid", request.SubAppId)
|
||||
.SetQueryParam("channel_id", request.ChannelId);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.GetPayScoreAcquiringBankServiceOrderDeductionResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
@ -149,6 +149,13 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
public class CollectionDetail
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Promotion : GetPayTransactionByOutTradeNumberResponse.Types.Promotion
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置收款序号。
|
||||
/// </summary>
|
||||
@ -185,6 +192,13 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
[Newtonsoft.Json.JsonProperty("transaction_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("transaction_id")]
|
||||
public string? TransactionId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置优惠信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("promotion_detail")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("promotion_detail")]
|
||||
public Types.Promotion[]? PromotionList { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /payscore/acquiringbank/permissions 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ApplyPayScoreAcquiringBankPermissionsRequest : ApplyPayScorePartnerPermissionsRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置渠道商商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("channel_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("channel_id")]
|
||||
public string ChannelId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /payscore/acquiringbank/permissions 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ApplyPayScoreAcquiringBankPermissionsResponse : ApplyPayScorePartnerPermissionsResponse
|
||||
{
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /payscore/acquiringbank/permissions/authorization-code/{authorization_code} 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class GetPayScoreAcquiringBankPermissionsByAuthorizationCodeRequest : GetPayScorePartnerPermissionsByAuthorizationCodeRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置渠道商商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string ChannelId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /payscore/acquiringbank/permissions/authorization-code/{authorization_code} 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class GetPayScoreAcquiringBankPermissionsByAuthorizationCodeResponse : GetPayScorePartnerPermissionsByAuthorizationCodeResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置渠道商商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("channel_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("channel_id")]
|
||||
public string? ChannelId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置用户标签。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("user_label")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("user_label")]
|
||||
public string? UserLabel { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /payscore/acquiringbank/permissions/authorization-code/{authorization_code}/terminate 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class TerminatePayScoreAcquiringBankPermissionsByAuthorizationCodeRequest : TerminatePayScorePartnerPermissionsByAuthorizationCodeRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置渠道商商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("channel_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("channel_id")]
|
||||
public string ChannelId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /payscore/acquiringbank/permissions/authorization-code/{authorization_code}/terminate 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class TerminatePayScoreAcquiringBankPermissionsByAuthorizationCodeResponse : TerminatePayScorePartnerPermissionsByAuthorizationCodeResponse
|
||||
{
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /payscore/acquiringbank/serviceorder/{out_order_no}/cancel 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CancelPayScoreAcquiringBankServiceOrderRequest : CancelPayScorePartnerServiceOrderRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置渠道商商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("channel_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("channel_id")]
|
||||
public string ChannelId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /payscore/acquiringbank/serviceorder/{out_order_no}/cancel 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CancelPayScoreAcquiringBankServiceOrderResponse : CancelPayScorePartnerServiceOrderResponse
|
||||
{
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /payscore/acquiringbank/serviceorder 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CreatePayScoreAcquiringBankServiceOrderRequest : CreatePayScorePartnerServiceOrderRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置渠道商商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("channel_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("channel_id")]
|
||||
public string ChannelId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /payscore/acquiringbank/serviceorder 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CreatePayScoreAcquiringBankServiceOrderResponse : GetPayScoreAcquiringBankServiceOrderByOutOrderNumberResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置跳转微信侧小程序订单数据。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("package")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("package")]
|
||||
public string Package { get; set; } = default!;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /payscore/acquiringbank/serviceorder 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class GetPayScoreAcquiringBankServiceOrderByOutOrderNumberRequest : GetPayScorePartnerServiceOrderByOutOrderNumberRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置渠道商商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string ChannelId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /payscore/acquiringbank/serviceorder 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class GetPayScoreAcquiringBankServiceOrderByOutOrderNumberResponse : GetPayScorePartnerServiceOrderByOutOrderNumberResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置渠道商商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("channel_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("channel_id")]
|
||||
public string ChannelId { get; set; } = default!;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /payscore/acquiringbank/serviceorder 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class GetPayScoreAcquiringBankServiceOrderByQueryIdRequest : GetPayScorePartnerServiceOrderByQueryIdRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置渠道商商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string ChannelId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /payscore/acquiringbank/serviceorder 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class GetPayScoreAcquiringBankServiceOrderByQueryIdResponse : GetPayScorePartnerServiceOrderByQueryIdResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置渠道商商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("channel_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("channel_id")]
|
||||
public string ChannelId { get; set; } = default!;
|
||||
}
|
||||
}
|
@ -0,0 +1,50 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /payscore/acquiringbank/serviceorder/deduction 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class GetPayScoreAcquiringBankServiceOrderDeductionRequest : WechatTenpayRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置商户服务订单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string OutOrderNumber { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public string AppId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置服务 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("service_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("service_id")]
|
||||
public string ServiceId { 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("channel_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("channel_id")]
|
||||
public string ChannelId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /payscore/acquiringbank/serviceorder/deduction 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class GetPayScoreAcquiringBankServiceOrderDeductionResponse : WechatTenpayResponse
|
||||
{
|
||||
/// <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("description")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("description")]
|
||||
public string Description { get; set; } = default!;
|
||||
}
|
||||
}
|
@ -0,0 +1,57 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /payscore/acquiringbank/serviceorder/{out_order_no}/registerdeductinfo 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class RegisterPayScoreAcquiringBankServiceOrderDeductionRequest : WechatTenpayRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置商户服务订单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string OutOrderNumber { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public string AppId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置服务 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("service_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("service_id")]
|
||||
public string ServiceId { 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("channel_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("channel_id")]
|
||||
public string ChannelId { 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;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /payscore/acquiringbank/serviceorder/{out_order_no}/registerdeductinfo 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class RegisterPayScoreAcquiringBankServiceOrderDeductionResponse : WechatTenpayResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置商品描述。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("description")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("description")]
|
||||
public string Description { get; set; } = default!;
|
||||
}
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /payscore/acquiringbank/serviceorder/{out_order_no}/complete 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class SetPayScoreAcquiringBankServiceOrderCompleteRequest : SetPayScorePartnerServiceOrderCompleteRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置渠道商商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("channel_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("channel_id")]
|
||||
public string ChannelId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /payscore/acquiringbank/serviceorder/{out_order_no}/complete 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class SetPayScoreAcquiringBankServiceOrderCompleteResponse : SetPayScorePartnerServiceOrderCompleteResponse
|
||||
{
|
||||
}
|
||||
}
|
@ -1,9 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /payscore/partner/serviceorder/{out_order_no}/cancel 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CancelPayScorePartnerServiceOrderResponse : WechatTenpayResponse
|
||||
public class CancelPayScorePartnerServiceOrderResponse : CancelPayScoreServiceOrderResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /payscore/partner/serviceorder 接口的响应。</para>
|
||||
|
@ -1,9 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /payscore/partner/serviceorder/{out_order_no}/modify 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ModifyPayScorePartnerServiceOrderResponse : WechatTenpayResponse
|
||||
public class ModifyPayScorePartnerServiceOrderResponse : ModifyPayScoreServiceOrderResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -1,9 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /payscore/partner/serviceorder/{out_order_no}/complete 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class SetPayScorePartnerServiceOrderCompleteResponse : WechatTenpayResponse
|
||||
public class SetPayScorePartnerServiceOrderCompleteResponse : SetPayScoreServiceOrderCompleteResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -1,9 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /payscore/partner/serviceorder/{out_order_no}/pay 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class SetPayScorePartnerServiceOrderPayResponse : WechatTenpayResponse
|
||||
public class SetPayScorePartnerServiceOrderPayResponse : SetPayScoreServiceOrderPayResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置微信 AppId。
|
||||
|
@ -1,9 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /payscore/partner/serviceorder/{out_order_no}/sync 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class SetPayScorePartnerServiceOrderSyncResponse : WechatTenpayResponse
|
||||
public class SetPayScorePartnerServiceOrderSyncResponse : SetPayScoreServiceOrderSyncResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,11 @@
|
||||
{
|
||||
"appid": "wxd678efh567hg6787",
|
||||
"mch_id": "1230000109",
|
||||
"sub_appid": "wxd678efh567hg6786",
|
||||
"sub_mch_id": "1230000109",
|
||||
"service_id": "500001",
|
||||
"sub_openid": "oUpF8uMuAJO_M2pxb1Q9zNjWeS6o",
|
||||
"user_service_status": "USER_CLOSE_SERVICE",
|
||||
"openorclose_time": "20180225112233",
|
||||
"authorization_code": "4534323JKHDFE1243252"
|
||||
}
|
@ -0,0 +1,45 @@
|
||||
{
|
||||
"service_id": "500001",
|
||||
"appid": "wxd678efh567hg6787",
|
||||
"mchid": "1230000109",
|
||||
"sub_appid": "wxd678efh567hg6999",
|
||||
"sub_mchid": "1900000109",
|
||||
"out_order_no": "1234323JKHDFE1243252",
|
||||
"sub_openid": "oUpF8uMuAJO_M2pxb1Q9zNjWeS6o",
|
||||
"state": "DOING",
|
||||
"state_description": "USER_CONFIRM",
|
||||
"service_introduction": "嗨客餐厅用餐",
|
||||
"total_amount": "40000",
|
||||
"post_payments": [
|
||||
{
|
||||
"name": "服务费",
|
||||
"amount": 40000,
|
||||
"description": "每分钟1元"
|
||||
}
|
||||
],
|
||||
"post_discounts": [
|
||||
{
|
||||
"name": "满20减1元",
|
||||
"amount": 1,
|
||||
"description": "不与其他优惠叠加"
|
||||
}
|
||||
],
|
||||
"risk_fund": {
|
||||
"name": "预估订单费用",
|
||||
"amount": 10000,
|
||||
"description": "就餐的预估费用"
|
||||
},
|
||||
"time_range": {
|
||||
"start_time": "20091225091010",
|
||||
"start_time_remark": "xxx",
|
||||
"end_time": "20091225091210",
|
||||
"end_time_remark": "xxx"
|
||||
},
|
||||
"location": {
|
||||
"start_location": "嗨客时尚主题展餐厅",
|
||||
"end_location": "嗨客时尚主题展餐厅"
|
||||
},
|
||||
"attach": "attach",
|
||||
"order_id": "165461131",
|
||||
"need_collection": true
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
{
|
||||
"service_id": "service_id",
|
||||
"channel_id": "1230000109",
|
||||
"appid": "wxd678efh567hg6787",
|
||||
"sub_appid": "wxd678efh567hg6787",
|
||||
"sub_mchid": "1230000109",
|
||||
"authorization_code": "1234323JKHDFE1243252",
|
||||
"notify_url": "http://www.qq.com"
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
{
|
||||
"apply_permissions_token": "apply_permissions_token"
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
{
|
||||
"service_id": "2002000000000558128851361561536",
|
||||
"appid": "wxd678efh567hg6787",
|
||||
"mchid": "1230000109",
|
||||
"openid": "oUpF8uMuAJO_M2pxb1Q9zNjWeS6o",
|
||||
"authorization_code": "1275342195190894594",
|
||||
"authorization_state": "UNAVAILABLE",
|
||||
"notify_url": "https://www.weixin.com",
|
||||
"cancel_authorization_time": "2015-05-20T13:29:35+08:00",
|
||||
"authorization_success_time": "2015-05-20T13:29:35+08:00",
|
||||
"sub_mchid": "1230000109",
|
||||
"sub_appid": "wxd678efh567hg6787",
|
||||
"sub_openid": "oUpF8uMuAJO_M2pxb1Q9zNjWeS6o",
|
||||
"user_label": "A",
|
||||
"channel_id": "1230000109"
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
{
|
||||
"service_id": "500001",
|
||||
"channel_id": "1230000109",
|
||||
"sub_mchid": "1230000109",
|
||||
"reason": "撤销原因"
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
{
|
||||
"service_id": "2002000000000558128851361561536",
|
||||
"sub_mchid": "1900000109",
|
||||
"channel_id": "1230000109",
|
||||
"reason": "用户投诉"
|
||||
}
|
@ -0,0 +1,45 @@
|
||||
{
|
||||
"service_id": "2002000000000558128851361561536",
|
||||
"appid": "wxd678efh567hg6787",
|
||||
"sub_mchid": "1900000109",
|
||||
"sub_appid": "wxd678efh567hg6999",
|
||||
"channel_id": "1230000109",
|
||||
"out_order_no": "1234323JKHDFE1243252",
|
||||
"service_introduction": "XX充电宝",
|
||||
"post_payments": [
|
||||
{
|
||||
"name": "就餐费用",
|
||||
"amount": 40000,
|
||||
"description": "就餐人均100元",
|
||||
"count": 4
|
||||
}
|
||||
],
|
||||
"post_discounts": [
|
||||
{
|
||||
"name": "满20减1元",
|
||||
"description": "不与其他优惠叠加",
|
||||
"amount": 100,
|
||||
"count": 2
|
||||
}
|
||||
],
|
||||
"risk_fund": {
|
||||
"name": "DEPOSIT",
|
||||
"amount": 10000,
|
||||
"description": "就餐的预估费用"
|
||||
},
|
||||
"time_range": {
|
||||
"start_time": "20091225091010",
|
||||
"end_time": "20091225121010",
|
||||
"start_time_remark": "备注1",
|
||||
"end_time_remark": "备注2"
|
||||
},
|
||||
"location": {
|
||||
"start_location": "嗨客时尚主题展餐厅",
|
||||
"end_location": "嗨客时尚主题展餐厅"
|
||||
},
|
||||
"openid": "oUpF8uMuAJO_M2pxb1Q9zNjWeS6o",
|
||||
"sub_openid": "oUpF8uMuAJO_M2pxb1Q9zNjWeS6o",
|
||||
"need_user_confirm": false,
|
||||
"notify_url": "https://api.test.com",
|
||||
"attach": "Easdfowealsdkjfnlaksjdlfkwqoi&wl3l2sald"
|
||||
}
|
@ -0,0 +1,47 @@
|
||||
{
|
||||
"out_order_no": "1234323JKHDFE1243252",
|
||||
"service_id": "2002000000000558128851361561536",
|
||||
"appid": "wxd678efh567hg6787",
|
||||
"mchid": "1230000109",
|
||||
"sub_appid": "wxd678efh567hg6999",
|
||||
"sub_mchid": "1900000109",
|
||||
"channel_id": "1230000109",
|
||||
"service_introduction": "XX充电宝",
|
||||
"state": "CREATED",
|
||||
"state_description": "MCH_COMPLETE",
|
||||
"post_payments": [
|
||||
{
|
||||
"name": "就餐费用",
|
||||
"amount": 40000,
|
||||
"description": "就餐人均100元",
|
||||
"count": 4
|
||||
}
|
||||
],
|
||||
"post_discounts": [
|
||||
{
|
||||
"name": "满20减1元",
|
||||
"description": "不与其他优惠叠加",
|
||||
"amount": 100,
|
||||
"count": 2
|
||||
}
|
||||
],
|
||||
"risk_fund": {
|
||||
"name": "DEPOSIT",
|
||||
"amount": 10000,
|
||||
"description": "就餐的预估费用"
|
||||
},
|
||||
"time_range": {
|
||||
"start_time": "20091225091010",
|
||||
"end_time": "20091225121010",
|
||||
"start_time_remark": "备注1",
|
||||
"end_time_remark": "备注2"
|
||||
},
|
||||
"location": {
|
||||
"start_location": "嗨客时尚主题展餐厅",
|
||||
"end_location": "嗨客时尚主题展餐厅"
|
||||
},
|
||||
"attach": "Easdfowealsdkjfnlaksjdlfkwqoi&wl3l2sald",
|
||||
"notify_url": "https://api.test.com",
|
||||
"order_id": "0000300001201908301055157220022",
|
||||
"package": "DJIOSQPYWDxsjdldeuwhdodwxasd_dDiodnwjh9we"
|
||||
}
|
@ -0,0 +1,88 @@
|
||||
{
|
||||
"out_order_no": "1234323JKHDFE1243252",
|
||||
"service_id": "2002000000000558128851361561536",
|
||||
"appid": "wxd678efh567hg6787",
|
||||
"mchid": "1230000109",
|
||||
"sub_appid": "wxd678efh567hg6999",
|
||||
"sub_mchid": "1900000109",
|
||||
"service_introduction": "XX充电宝",
|
||||
"state": "CREATED",
|
||||
"state_description": "MCH_COMPLETE",
|
||||
"post_payments": [
|
||||
{
|
||||
"name": "就餐费用",
|
||||
"amount": 40000,
|
||||
"description": "就餐人均100元",
|
||||
"count": 4
|
||||
}
|
||||
],
|
||||
"post_discounts": [
|
||||
{
|
||||
"name": "满20减1元",
|
||||
"description": "不与其他优惠叠加",
|
||||
"amount": 100,
|
||||
"count": 2
|
||||
}
|
||||
],
|
||||
"risk_fund": {
|
||||
"name": "DEPOSIT",
|
||||
"amount": 10000,
|
||||
"description": "就餐的预估费用"
|
||||
},
|
||||
"total_amount": 40000,
|
||||
"need_collection": true,
|
||||
"collection": {
|
||||
"state": "USER_PAID",
|
||||
"total_amount": 50000,
|
||||
"paying_amount": 40000,
|
||||
"paid_amount": 10000,
|
||||
"details": [
|
||||
{
|
||||
"seq": 1,
|
||||
"amount": 10000,
|
||||
"paid_type": "NEWTON",
|
||||
"paid_time": "20091225091210",
|
||||
"transaction_id": "15646546545165651651",
|
||||
"promotion_detail": [
|
||||
{
|
||||
"coupon_id": "123456",
|
||||
"name": "单品优惠-6",
|
||||
"scope": "GLOBAL",
|
||||
"type": "CASH",
|
||||
"amount": 100,
|
||||
"stock_id": "activity_id",
|
||||
"wechatpay_contribute": 100,
|
||||
"merchant_contribute": 100,
|
||||
"other_contribute": 100,
|
||||
"currency": "CNY",
|
||||
"goods_detail": [
|
||||
{
|
||||
"goods_id": "M1006",
|
||||
"quantity": 1,
|
||||
"unit_price": 1,
|
||||
"discount_amount": 100,
|
||||
"goods_remark": "商品备注信息"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"time_range": {
|
||||
"start_time": "20091225091010",
|
||||
"end_time": "20091225121010",
|
||||
"start_time_remark": "备注1",
|
||||
"end_time_remark": "备注2"
|
||||
},
|
||||
"location": {
|
||||
"start_location": "嗨客时尚主题展餐厅",
|
||||
"end_location": "嗨客时尚主题展餐厅"
|
||||
},
|
||||
"attach": "Easdfowealsdkjfnlaksjdlfkwqoi&wl3l2sald",
|
||||
"notify_url": "https://api.test.com",
|
||||
"openid": "oUpF8uMuAJO_M2pxb1Q9zNjWeS6o",
|
||||
"sub_openid": "oUpF8uMuAJO_M2pxb1Q9zNjWeS6o",
|
||||
"order_id": "0000300001201908301055157220022",
|
||||
"channel_id": "1230000109"
|
||||
}
|
@ -0,0 +1,88 @@
|
||||
{
|
||||
"out_order_no": "1234323JKHDFE1243252",
|
||||
"service_id": "2002000000000558128851361561536",
|
||||
"appid": "wxd678efh567hg6787",
|
||||
"mchid": "1230000109",
|
||||
"sub_appid": "wxd678efh567hg6999",
|
||||
"sub_mchid": "1900000109",
|
||||
"service_introduction": "XX充电宝",
|
||||
"state": "CREATED",
|
||||
"state_description": "MCH_COMPLETE",
|
||||
"post_payments": [
|
||||
{
|
||||
"name": "就餐费用",
|
||||
"amount": 40000,
|
||||
"description": "就餐人均100元",
|
||||
"count": 4
|
||||
}
|
||||
],
|
||||
"post_discounts": [
|
||||
{
|
||||
"name": "满20减1元",
|
||||
"description": "不与其他优惠叠加",
|
||||
"amount": 100,
|
||||
"count": 2
|
||||
}
|
||||
],
|
||||
"risk_fund": {
|
||||
"name": "DEPOSIT",
|
||||
"amount": 10000,
|
||||
"description": "就餐的预估费用"
|
||||
},
|
||||
"total_amount": 40000,
|
||||
"need_collection": true,
|
||||
"collection": {
|
||||
"state": "USER_PAID",
|
||||
"total_amount": 50000,
|
||||
"paying_amount": 40000,
|
||||
"paid_amount": 10000,
|
||||
"details": [
|
||||
{
|
||||
"seq": 1,
|
||||
"amount": 10000,
|
||||
"paid_type": "NEWTON",
|
||||
"paid_time": "20091225091210",
|
||||
"transaction_id": "15646546545165651651",
|
||||
"promotion_detail": [
|
||||
{
|
||||
"coupon_id": "123456",
|
||||
"name": "单品优惠-6",
|
||||
"scope": "GLOBAL",
|
||||
"type": "CASH",
|
||||
"amount": 100,
|
||||
"stock_id": "activity_id",
|
||||
"wechatpay_contribute": 100,
|
||||
"merchant_contribute": 100,
|
||||
"other_contribute": 100,
|
||||
"currency": "CNY",
|
||||
"goods_detail": [
|
||||
{
|
||||
"goods_id": "M1006",
|
||||
"quantity": 1,
|
||||
"unit_price": 1,
|
||||
"discount_amount": 100,
|
||||
"goods_remark": "商品备注信息"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"time_range": {
|
||||
"start_time": "20091225091010",
|
||||
"end_time": "20091225121010",
|
||||
"start_time_remark": "备注1",
|
||||
"end_time_remark": "备注2"
|
||||
},
|
||||
"location": {
|
||||
"start_location": "嗨客时尚主题展餐厅",
|
||||
"end_location": "嗨客时尚主题展餐厅"
|
||||
},
|
||||
"attach": "Easdfowealsdkjfnlaksjdlfkwqoi&wl3l2sald",
|
||||
"notify_url": "https://api.test.com",
|
||||
"openid": "oUpF8uMuAJO_M2pxb1Q9zNjWeS6o",
|
||||
"sub_openid": "oUpF8uMuAJO_M2pxb1Q9zNjWeS6o",
|
||||
"order_id": "0000300001201908301055157220022",
|
||||
"channel_id": "1230000109"
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
{
|
||||
"description": "QQ充电宝服务",
|
||||
"out_trade_no": "1234323JKHDFE1243252"
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
{
|
||||
"service_id": "2002000000000558128851361561536",
|
||||
"appid": "wxd678efh567hg6787",
|
||||
"sub_mchid": "1900000109",
|
||||
"sub_appid": "wxd678efh567hg6999",
|
||||
"channel_id": "1230000109",
|
||||
"out_trade_no": "1234323JKHDFE1243252"
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
{
|
||||
"description": "QQ充电宝服务"
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
{
|
||||
"service_id": "2002000000000558128851361561536",
|
||||
"sub_mchid": "1900000109",
|
||||
"channel_id": "1230000109",
|
||||
"post_payments": [
|
||||
{
|
||||
"name": "就餐费用",
|
||||
"amount": 40000,
|
||||
"description": "就餐人均100元",
|
||||
"count": 4
|
||||
}
|
||||
],
|
||||
"post_discounts": [
|
||||
{
|
||||
"name": "满20减1元",
|
||||
"description": "不与其他优惠叠加",
|
||||
"amount": 100,
|
||||
"count": 2
|
||||
}
|
||||
],
|
||||
"total_amount": 50000,
|
||||
"time_range": {
|
||||
"start_time": "20091225091010",
|
||||
"end_time": "20091225121010",
|
||||
"start_time_remark": "备注1",
|
||||
"end_time_remark": "备注2"
|
||||
},
|
||||
"location": {
|
||||
"start_location": "嗨客时尚主题展餐厅",
|
||||
"end_location": "嗨客时尚主题展餐厅"
|
||||
},
|
||||
"complete_time": "2019-11-11T16:24:05+08:00"
|
||||
}
|
Loading…
Reference in New Issue
Block a user