mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-20 02:29:40 +08:00
style(tenpayv3): clean code
This commit is contained in:
@@ -171,7 +171,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
|||||||
/// <param name="request"></param>
|
/// <param name="request"></param>
|
||||||
/// <param name="cancellationToken"></param>
|
/// <param name="cancellationToken"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static async Task<Models.GetBrandProfitBrandConfigsResponse> ExecuteGetBrandProfitBrandConfigsAsync(this WechatTenpayClient client, Models.GetBrandProfitBrandConfigsRequest request, CancellationToken cancellationToken = default)
|
public static async Task<Models.GetBrandProfitSharingBrandConfigsResponse> ExecuteGetBrandProfitSharingBrandConfigsAsync(this WechatTenpayClient client, Models.GetBrandProfitSharingBrandConfigsRequest request, CancellationToken cancellationToken = default)
|
||||||
{
|
{
|
||||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||||
@@ -180,7 +180,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
|||||||
.CreateRequest(HttpMethod.Get, "brand", "profitsharing", "brand-configs", request.BrandMerchantId)
|
.CreateRequest(HttpMethod.Get, "brand", "profitsharing", "brand-configs", request.BrandMerchantId)
|
||||||
.SetOptions(request);
|
.SetOptions(request);
|
||||||
|
|
||||||
return await client.SendRequestAsync<Models.GetBrandProfitBrandConfigsResponse>(flurlReq, cancellationToken: cancellationToken);
|
return await client.SendRequestAsync<Models.GetBrandProfitSharingBrandConfigsResponse>(flurlReq, cancellationToken: cancellationToken);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>表示 [GET] /brand/profitsharing/brand-configs/{brand_mchid} 接口的请求。</para>
|
/// <para>表示 [GET] /brand/profitsharing/brand-configs/{brand_mchid} 接口的请求。</para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class GetBrandProfitBrandConfigsRequest : WechatTenpayRequest
|
public class GetBrandProfitSharingBrandConfigsRequest : WechatTenpayRequest
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置品牌主商户号。
|
/// 获取或设置品牌主商户号。
|
@@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>表示 [GET] /brand/profitsharing/brand-configs/{brand_mchid} 接口的响应。</para>
|
/// <para>表示 [GET] /brand/profitsharing/brand-configs/{brand_mchid} 接口的响应。</para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class GetBrandProfitBrandConfigsResponse : WechatTenpayResponse
|
public class GetBrandProfitSharingBrandConfigsResponse : WechatTenpayResponse
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置品牌主商户号。
|
/// 获取或设置品牌主商户号。
|
@@ -16,7 +16,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
|||||||
public string BrandMerchantId { get; set; } = default!;
|
public string BrandMerchantId { get; set; } = default!;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置二级商户号。
|
/// 获取或设置微信子商户号。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Newtonsoft.Json.JsonProperty("sub_mchid")]
|
[Newtonsoft.Json.JsonProperty("sub_mchid")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("sub_mchid")]
|
[System.Text.Json.Serialization.JsonPropertyName("sub_mchid")]
|
||||||
|
@@ -9,7 +9,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
|||||||
public class SetBrandProfitSharingOrderFinishResponse : WechatTenpayResponse
|
public class SetBrandProfitSharingOrderFinishResponse : WechatTenpayResponse
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置二级商户号。
|
/// 获取或设置微信子商户号。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Newtonsoft.Json.JsonProperty("sub_mchid")]
|
[Newtonsoft.Json.JsonProperty("sub_mchid")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("sub_mchid")]
|
[System.Text.Json.Serialization.JsonPropertyName("sub_mchid")]
|
||||||
|
@@ -9,7 +9,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
|||||||
public class CreateEcommerceProfitSharingOrderResponse : WechatTenpayResponse
|
public class CreateEcommerceProfitSharingOrderResponse : WechatTenpayResponse
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置二级商户号。
|
/// 获取或设置微信子商户号。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Newtonsoft.Json.JsonProperty("sub_mchid")]
|
[Newtonsoft.Json.JsonProperty("sub_mchid")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("sub_mchid")]
|
[System.Text.Json.Serialization.JsonPropertyName("sub_mchid")]
|
||||||
|
@@ -9,7 +9,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
|||||||
public class GetEcommerceProfitSharingOrderByOutOrderNumberRequest : WechatTenpayRequest
|
public class GetEcommerceProfitSharingOrderByOutOrderNumberRequest : WechatTenpayRequest
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置二级商户号。
|
/// 获取或设置微信子商户号。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Newtonsoft.Json.JsonIgnore]
|
[Newtonsoft.Json.JsonIgnore]
|
||||||
[System.Text.Json.Serialization.JsonIgnore]
|
[System.Text.Json.Serialization.JsonIgnore]
|
||||||
|
@@ -9,7 +9,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
|||||||
public class GetEcommerceProfitSharingReturnOrderByOrderIdRequest : WechatTenpayRequest
|
public class GetEcommerceProfitSharingReturnOrderByOrderIdRequest : WechatTenpayRequest
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置二级商户号。
|
/// 获取或设置微信子商户号。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Newtonsoft.Json.JsonIgnore]
|
[Newtonsoft.Json.JsonIgnore]
|
||||||
[System.Text.Json.Serialization.JsonIgnore]
|
[System.Text.Json.Serialization.JsonIgnore]
|
||||||
|
@@ -9,7 +9,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
|||||||
public class GetEcommerceProfitSharingReturnOrderByOutOrderNumberRequest : WechatTenpayRequest
|
public class GetEcommerceProfitSharingReturnOrderByOutOrderNumberRequest : WechatTenpayRequest
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置二级商户号。
|
/// 获取或设置微信子商户号。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Newtonsoft.Json.JsonIgnore]
|
[Newtonsoft.Json.JsonIgnore]
|
||||||
[System.Text.Json.Serialization.JsonIgnore]
|
[System.Text.Json.Serialization.JsonIgnore]
|
||||||
|
@@ -9,7 +9,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
|||||||
public class SetEcommerceProfitSharingOrderFinishResponse : WechatTenpayResponse
|
public class SetEcommerceProfitSharingOrderFinishResponse : WechatTenpayResponse
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置二级商户号。
|
/// 获取或设置微信二级商户号。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Newtonsoft.Json.JsonProperty("sub_mchid")]
|
[Newtonsoft.Json.JsonProperty("sub_mchid")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("sub_mchid")]
|
[System.Text.Json.Serialization.JsonPropertyName("sub_mchid")]
|
||||||
|
Reference in New Issue
Block a user