mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2026-02-10 17:56:21 +08:00
feat(tenpayv3): 新增摇一摇有优惠品牌门店相关接口
This commit is contained in:
@@ -0,0 +1,145 @@
|
||||
using System;
|
||||
using System.Net.Http;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Flurl;
|
||||
using Flurl.Http;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
{
|
||||
public static class WechatTenpayClientExecuteBrandPartnerStoreExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /brand/partner/store/brandstores 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/doc/v3/partner/4015783183 ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CreateBrandPartnerStoreResponse> ExecuteCreateBrandPartnerStoreAsync(this WechatTenpayClient client, Models.CreateBrandPartnerStoreRequest 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
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "brand", "partner", "store", "brandstores");
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.CreateBrandPartnerStoreResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [GET] /brand/partner/store/brandstores/{store_id} 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/doc/v3/partner/4015783153 ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.GetBrandPartnerStoreByStoreIdResponse> ExecuteGetBrandPartnerStoreByStoreIdAsync(this WechatTenpayClient client, Models.GetBrandPartnerStoreByStoreIdRequest 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
|
||||
.CreateFlurlRequest(request, HttpMethod.Get, "brand", "partner", "store", "brandstores", request.StoreId)
|
||||
.SetQueryParam("brand_id", request.BrandId);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.GetBrandPartnerStoreByStoreIdResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [PATCH] /brand/partner/store/brandstores/{store_id} 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/doc/v3/partner/4015783158 ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ModifyBrandPartnerStoreResponse> ExecuteModifyBrandPartnerStoreAsync(this WechatTenpayClient client, Models.ModifyBrandPartnerStoreRequest 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
|
||||
.CreateFlurlRequest(request, new HttpMethod("PATCH"), "brand", "partner", "store", "brandstores", request.StoreId);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ModifyBrandPartnerStoreResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [DELETE] /brand/partner/store/brandstores/{store_id} 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/doc/v3/partner/4015783113 ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.DeleteBrandPartnerStoreResponse> ExecuteDeleteBrandPartnerStoreAsync(this WechatTenpayClient client, Models.DeleteBrandPartnerStoreRequest 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
|
||||
.CreateFlurlRequest(request, HttpMethod.Delete, "brand", "partner", "store", "brandstores", request.StoreId);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.DeleteBrandPartnerStoreResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /brand/partner/store/brandstores/{store_id}/bindrecipient 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/doc/v3/partner/4015783177 ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.BindBrandPartnerStoreRecipientResponse> ExecuteBindBrandPartnerStoreRecipientAsync(this WechatTenpayClient client, Models.BindBrandPartnerStoreRecipientRequest 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
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "brand", "partner", "store", "brandstores", request.StoreId, "bindrecipient");
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.BindBrandPartnerStoreRecipientResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /brand/partner/store/brandstores/{store_id}/unbindrecipient 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/doc/v3/partner/4015783188 ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.UnbindBrandPartnerStoreRecipientResponse> ExecuteUnbindBrandPartnerStoreRecipientAsync(this WechatTenpayClient client, Models.UnbindBrandPartnerStoreRecipientRequest 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
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "brand", "partner", "store", "brandstores", request.StoreId, "unbindrecipient");
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.UnbindBrandPartnerStoreRecipientResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -11,6 +11,11 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /merchant-store/stores 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/doc/v3/merchant/4014085766 ]]> <br/>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/doc/v3/merchant/4013948546 ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@@ -29,6 +34,11 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [GET] /merchant-store/stores/{store_id} 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/doc/v3/merchant/4014085768 ]]> <br/>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/doc/v3/merchant/4013948551 ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@@ -48,6 +58,11 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [PATCH] /merchant-store/stores/{store_id} 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/doc/v3/merchant/4014085769 ]]> <br/>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/doc/v3/merchant/4013948577 ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@@ -64,9 +79,13 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ModifyMerchantStoreResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
#region
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /merchant-store/stores/{store_id}/recipients/bind 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/doc/v3/merchant/4014085771 ]]> <br/>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/doc/v3/merchant/4013948577 ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@@ -85,6 +104,11 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /merchant-store/stores/{store_id}/recipients/unbind 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/doc/v3/merchant/4014085773 ]]> <br/>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/doc/v3/merchant/4013948580 ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@@ -100,6 +124,5 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.UnbindMerchantStoreRecipientResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /brand/partner/store/brandstores/{store_id}/bindrecipient 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class BindBrandPartnerStoreRecipientRequest : WechatTenpayRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置门店 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string StoreId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置品牌 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("brand_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("brand_id")]
|
||||
public string BrandId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店收款商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("mchid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("mchid")]
|
||||
public string MerchantId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店收款主体。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("company_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("company_name")]
|
||||
public string CompanyName { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /brand/partner/store/brandstores/{store_id}/bindrecipient 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class BindBrandPartnerStoreRecipientResponse : WechatTenpayResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置门店 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("store_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("store_id")]
|
||||
public string StoreId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置品牌 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("brand_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("brand_id")]
|
||||
public string BrandId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店收款商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("mchid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("mchid")]
|
||||
public string MerchantId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店收款主体。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("company_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("company_name")]
|
||||
public string CompanyName { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置收款绑定状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("recipient_state")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("recipient_state")]
|
||||
public string RecipientState { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,111 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /brand/partner/store/brandstores 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CreateBrandPartnerStoreRequest : WechatTenpayRequest
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Basic
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置商家门店编号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("store_reference_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("store_reference_id")]
|
||||
public string? StoreReferenceId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分店名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("branch_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("branch_name")]
|
||||
public string? BranchName { get; set; }
|
||||
}
|
||||
|
||||
public class Address
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置门店省市编码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("address_code")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("address_code")]
|
||||
public string? AddressCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店地址。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("address_detail")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("address_detail")]
|
||||
public string? AddressDetail { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店地址辅助描述。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("address_complements")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("address_complements")]
|
||||
public string? AddressComplements { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店经度。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("longitude")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("longitude")]
|
||||
public string? Longitude { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店纬度。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("latitude")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("latitude")]
|
||||
public string? Latitude { get; set; }
|
||||
}
|
||||
|
||||
public class Business
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置门店服务电话。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("service_phone")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("service_phone")]
|
||||
public string? ServicePhoneNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店经营时间。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("business_hours")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("business_hours")]
|
||||
public string? BusinessHours { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置品牌 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("brand_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("brand_id")]
|
||||
public string BrandId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店基础信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("store_basics")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("store_basics")]
|
||||
public Types.Basic Basic { get; set; } = new Types.Basic();
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店地址信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("store_address")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("store_address")]
|
||||
public Types.Address Address { get; set; } = new Types.Address();
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店经营信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("store_business")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("store_business")]
|
||||
public Types.Business Business { get; set; } = new Types.Business();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /brand/partner/store/brandstores 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CreateBrandPartnerStoreResponse : GetBrandPartnerStoreByStoreIdResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [DELETE] /brand/partner/store/brandstores/{store_id} 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class DeleteBrandPartnerStoreRequest : WechatTenpayRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置门店 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string StoreId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置品牌 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("brand_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("brand_id")]
|
||||
public string BrandId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [DELETE] /brand/partner/store/brandstores/{store_id} 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class DeleteBrandPartnerStoreResponse : WechatTenpayResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /brand/partner/store/brandstores/{store_id} 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class GetBrandPartnerStoreByStoreIdRequest : WechatTenpayRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置门店 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string StoreId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置品牌 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string BrandId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /brand/partner/store/brandstores/{store_id} 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class GetBrandPartnerStoreByStoreIdResponse : WechatTenpayResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Basic : CreateBrandPartnerStoreRequest.Types.Basic
|
||||
{
|
||||
}
|
||||
|
||||
public class Address : CreateBrandPartnerStoreRequest.Types.Address
|
||||
{
|
||||
}
|
||||
|
||||
public class Business : CreateBrandPartnerStoreRequest.Types.Business
|
||||
{
|
||||
}
|
||||
|
||||
public class Recipient
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置门店收款商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("mchid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("mchid")]
|
||||
public string? MerchantId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店收款主体。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("company_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("company_name")]
|
||||
public string? CompanyName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置收款绑定状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("recipient_state")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("recipient_state")]
|
||||
public string? RecipientState { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("store_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("store_id")]
|
||||
public string StoreId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置品牌 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("brand_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("brand_id")]
|
||||
public string BrandId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("store_state")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("store_state")]
|
||||
public string StoreState { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置审核状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("audit_state")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("audit_state")]
|
||||
public string AuditState { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置审核失败原因。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("review_reject_reason")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("review_reject_reason")]
|
||||
public string? ReviewRejectReason { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店基础信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("store_basics")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("store_basics")]
|
||||
public Types.Basic Basic { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店地址信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("store_address")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("store_address")]
|
||||
public Types.Address Address { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店经营信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("store_business")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("store_business")]
|
||||
public Types.Business Business { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店收款信息列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("store_recipient")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("store_recipient")]
|
||||
public Types.Recipient[] RecipientList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [PATCH] /brand/partner/store/brandstores/{store_id} 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ModifyBrandPartnerStoreRequest : WechatTenpayRequest
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Basic : CreateBrandPartnerStoreRequest.Types.Basic
|
||||
{
|
||||
}
|
||||
|
||||
public class Address : CreateBrandPartnerStoreRequest.Types.Address
|
||||
{
|
||||
}
|
||||
|
||||
public class Business : CreateBrandPartnerStoreRequest.Types.Business
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string StoreId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置品牌 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("brand_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("brand_id")]
|
||||
public string BrandId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店基础信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("store_basics")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("store_basics")]
|
||||
public Types.Basic? Basic { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店地址信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("store_address")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("store_address")]
|
||||
public Types.Address? Address { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店经营信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("store_business")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("store_business")]
|
||||
public Types.Business? Business { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [PATCH] /brand/partner/store/brandstores/{store_id} 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ModifyBrandPartnerStoreResponse : GetBrandPartnerStoreByStoreIdResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /brand/partner/store/brandstores/{store_id}/unbindrecipient 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class UnbindBrandPartnerStoreRecipientRequest : WechatTenpayRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置门店 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string StoreId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置品牌 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("brand_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("brand_id")]
|
||||
public string BrandId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店收款商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("mchid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("mchid")]
|
||||
public string MerchantId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /brand/partner/store/brandstores/{store_id}/unbindrecipient 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class UnbindBrandPartnerStoreRecipientResponse : WechatTenpayResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置解绑失败原因。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("failed_reason")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("failed_reason")]
|
||||
public string? FailedReason { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user