mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-20 02:29:40 +08:00
feat(tenpayv3): 新增品牌小店营销相关接口
This commit is contained in:
@@ -0,0 +1,175 @@
|
|||||||
|
using System;
|
||||||
|
using System.Net.Http;
|
||||||
|
using System.Threading;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using Flurl.Http;
|
||||||
|
|
||||||
|
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||||
|
{
|
||||||
|
public static class WechatTenpayClientExecuteMarketingGoodsSubsidyActivityExtensions
|
||||||
|
{
|
||||||
|
#region RetailStore
|
||||||
|
#region RetailStore/Representative
|
||||||
|
/// <summary>
|
||||||
|
/// <para>异步调用 [POST] /marketing/goods-subsidy-activity/retail-store-act/{activity_id}/representative 接口。</para>
|
||||||
|
/// <para>REF: https://pay.weixin.qq.com/docs/partner/apis/retail-store/retail-stores/add-representative.html </para>
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="client"></param>
|
||||||
|
/// <param name="request"></param>
|
||||||
|
/// <param name="cancellationToken"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static async Task<Models.AddMarketingGoodsSubsidyActivityRetailStoreRepresentativeResponse> ExecuteAddMarketingGoodsSubsidyActivityRetailStoreRepresentativeAsync(this WechatTenpayClient client, Models.AddMarketingGoodsSubsidyActivityRetailStoreRepresentativeRequest 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, "marketing", "goods-subsidy-activity", "retail-store-act", request.ActivityId, "representative");
|
||||||
|
|
||||||
|
return await client.SendRequestWithJsonAsync<Models.AddMarketingGoodsSubsidyActivityRetailStoreRepresentativeResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// <para>异步调用 [GET] /marketing/goods-subsidy-activity/retail-store-act/{activity_id}/representatives 接口。</para>
|
||||||
|
/// <para>REF: https://pay.weixin.qq.com/docs/partner/apis/retail-store/retail-store-act/list-representative.html </para>
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="client"></param>
|
||||||
|
/// <param name="request"></param>
|
||||||
|
/// <param name="cancellationToken"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static async Task<Models.QueryMarketingGoodsSubsidyActivityRetailStoreRepresentativesResponse> ExecuteQueryMarketingGoodsSubsidyActivityRetailStoreRepresentativesAsync(this WechatTenpayClient client, Models.QueryMarketingGoodsSubsidyActivityRetailStoreRepresentativesRequest 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, "marketing", "goods-subsidy-activity", "retail-store-act", request.ActivityId, "representatives")
|
||||||
|
.SetQueryParam("offset", request.Offset)
|
||||||
|
.SetQueryParam("limit", request.Limit);
|
||||||
|
|
||||||
|
return await client.SendRequestWithJsonAsync<Models.QueryMarketingGoodsSubsidyActivityRetailStoreRepresentativesResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// <para>异步调用 [DELETE] /marketing/goods-subsidy-activity/retail-store-act/{activity_id}/representative 接口。</para>
|
||||||
|
/// <para>REF: https://pay.weixin.qq.com/docs/partner/apis/retail-store/retail-store-act/delete-representative.html </para>
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="client"></param>
|
||||||
|
/// <param name="request"></param>
|
||||||
|
/// <param name="cancellationToken"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static async Task<Models.DeleteMarketingGoodsSubsidyActivityRetailStoreRepresentativeResponse> ExecuteDeleteMarketingGoodsSubsidyActivityRetailStoreRepresentativeAsync(this WechatTenpayClient client, Models.DeleteMarketingGoodsSubsidyActivityRetailStoreRepresentativeRequest 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.Delete, "marketing", "goods-subsidy-activity", "retail-store-act", request.ActivityId, "representative");
|
||||||
|
|
||||||
|
return await client.SendRequestWithJsonAsync<Models.DeleteMarketingGoodsSubsidyActivityRetailStoreRepresentativeResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region RetailStore/Material
|
||||||
|
/// <summary>
|
||||||
|
/// <para>异步调用 [POST] /marketing/goods-subsidy-activity/retail-store-act/{brand_id}/materials 接口。</para>
|
||||||
|
/// <para>REF: https://pay.weixin.qq.com/docs/partner/apis/retail-store/retail-store-act/create-materials.html </para>
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="client"></param>
|
||||||
|
/// <param name="request"></param>
|
||||||
|
/// <param name="cancellationToken"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static async Task<Models.CreateMarketingGoodsSubsidyActivityRetailStoreMaterialResponse> ExecuteCreateMarketingGoodsSubsidyActivityRetailStoreMaterialAsync(this WechatTenpayClient client, Models.CreateMarketingGoodsSubsidyActivityRetailStoreMaterialRequest 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, "marketing", "goods-subsidy-activity", "retail-store-act", request.BrandId, "materials");
|
||||||
|
|
||||||
|
return await client.SendRequestWithJsonAsync<Models.CreateMarketingGoodsSubsidyActivityRetailStoreMaterialResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region RetailStore/Store
|
||||||
|
/// <summary>
|
||||||
|
/// <para>异步调用 [GET] /marketing/goods-subsidy-activity/retail-store-act/{brand_id}/stores 接口。</para>
|
||||||
|
/// <para>REF: https://pay.weixin.qq.com/docs/partner/apis/retail-store/retail-store-act/list-store.html </para>
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="client"></param>
|
||||||
|
/// <param name="request"></param>
|
||||||
|
/// <param name="cancellationToken"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static async Task<Models.QueryMarketingGoodsSubsidyActivityRetailStoresResponse> ExecuteQueryMarketingGoodsSubsidyActivityRetailStoresAsync(this WechatTenpayClient client, Models.QueryMarketingGoodsSubsidyActivityRetailStoresRequest 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, "marketing", "goods-subsidy-activity", "retail-store-act", request.BrandId, "stores")
|
||||||
|
.SetQueryParam("offset", request.Offset)
|
||||||
|
.SetQueryParam("limit", request.Limit);
|
||||||
|
|
||||||
|
return await client.SendRequestWithJsonAsync<Models.QueryMarketingGoodsSubsidyActivityRetailStoresResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// <para>异步调用 [GET] /marketing/goods-subsidy-activity/retail-store-act/{brand_id}/stores/{store_code} 接口。</para>
|
||||||
|
/// <para>REF: https://pay.weixin.qq.com/docs/partner/apis/retail-store/retail-store-act/list-store.html </para>
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="client"></param>
|
||||||
|
/// <param name="request"></param>
|
||||||
|
/// <param name="cancellationToken"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static async Task<Models.GetMarketingGoodsSubsidyActivityRetailStoreByStoreCodeResponse> ExecuteGetMarketingGoodsSubsidyActivityRetailStoreByStoreCodeAsync(this WechatTenpayClient client, Models.GetMarketingGoodsSubsidyActivityRetailStoreByStoreCodeRequest 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, "marketing", "goods-subsidy-activity", "retail-store-act", request.BrandId, "stores", request.StoreCode);
|
||||||
|
|
||||||
|
return await client.SendRequestWithJsonAsync<Models.GetMarketingGoodsSubsidyActivityRetailStoreByStoreCodeResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// <para>异步调用 [POST] /marketing/goods-subsidy-activity/retail-store-act/{brand_id}/stores 接口。</para>
|
||||||
|
/// <para>REF: https://pay.weixin.qq.com/docs/partner/apis/retail-store/retail-store-act/add-stores.html </para>
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="client"></param>
|
||||||
|
/// <param name="request"></param>
|
||||||
|
/// <param name="cancellationToken"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static async Task<Models.AddMarketingGoodsSubsidyActivityRetailStoreResponse> ExecuteAddMarketingGoodsSubsidyActivityRetailStoreAsync(this WechatTenpayClient client, Models.AddMarketingGoodsSubsidyActivityRetailStoreRequest 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, "marketing", "goods-subsidy-activity", "retail-store-act", request.BrandId, "stores");
|
||||||
|
|
||||||
|
return await client.SendRequestWithJsonAsync<Models.AddMarketingGoodsSubsidyActivityRetailStoreResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// <para>异步调用 [DELETE] /marketing/goods-subsidy-activity/retail-store-act/{brand_id}/stores 接口。</para>
|
||||||
|
/// <para>REF: https://pay.weixin.qq.com/docs/partner/apis/retail-store/retail-store-act/delete-stores.html </para>
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="client"></param>
|
||||||
|
/// <param name="request"></param>
|
||||||
|
/// <param name="cancellationToken"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static async Task<Models.DeleteMarketingGoodsSubsidyActivityRetailStoreResponse> ExecuteDeleteMarketingGoodsSubsidyActivityRetailStoreAsync(this WechatTenpayClient client, Models.DeleteMarketingGoodsSubsidyActivityRetailStoreRequest 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.Delete, "marketing", "goods-subsidy-activity", "retail-store-act", request.BrandId, "stores");
|
||||||
|
|
||||||
|
return await client.SendRequestWithJsonAsync<Models.DeleteMarketingGoodsSubsidyActivityRetailStoreResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,29 @@
|
|||||||
|
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// <para>表示 [POST] /marketing/goods-subsidy-activity/retail-store-act/{brand_id}/materials 接口的请求。</para>
|
||||||
|
/// </summary>
|
||||||
|
public class CreateMarketingGoodsSubsidyActivityRetailStoreMaterialRequest : WechatTenpayRequest
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置品牌 ID。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonIgnore]
|
||||||
|
[System.Text.Json.Serialization.JsonIgnore]
|
||||||
|
public string BrandId { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置请求业务单号。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("out_request_no")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("out_request_no")]
|
||||||
|
public string OutRequestNumber { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置生成物料码数量。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("material_num")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("material_num")]
|
||||||
|
public int MaterialCount { get; set; }
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,35 @@
|
|||||||
|
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// <para>表示 [POST] /marketing/goods-subsidy-activity/retail-store-act/{brand_id}/materials 接口的响应。</para>
|
||||||
|
/// </summary>
|
||||||
|
public class CreateMarketingGoodsSubsidyActivityRetailStoreMaterialResponse : WechatTenpayResponse
|
||||||
|
{
|
||||||
|
public static class Types
|
||||||
|
{
|
||||||
|
public class Material
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置物料码 ID。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("material_id")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("material_id")]
|
||||||
|
public string MaterialId { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置物料码 URL。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("material_url")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("material_url")]
|
||||||
|
public string MaterialUrl { get; set; } = default!;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置物料码列表。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("material_list")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("material_list")]
|
||||||
|
public Types.Material[] MaterialList { get; set; } = default!;
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,54 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// <para>表示 [POST] /marketing/goods-subsidy-activity/retail-store-act/{activity_id}/representative 接口的请求。</para>
|
||||||
|
/// </summary>
|
||||||
|
public class AddMarketingGoodsSubsidyActivityRetailStoreRepresentativeRequest : WechatTenpayRequest
|
||||||
|
{
|
||||||
|
public static class Types
|
||||||
|
{
|
||||||
|
public class Representative
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置业务代理的 OpenId。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("openid")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("openid")]
|
||||||
|
public string OpenId { get; set; } = string.Empty;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置零售小店活动 ID。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonIgnore]
|
||||||
|
[System.Text.Json.Serialization.JsonIgnore]
|
||||||
|
public string ActivityId { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置请求业务单号。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("out_request_no")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("out_request_no")]
|
||||||
|
public string OutRequestNumber { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置业务代理列表。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("representative_info_list")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("representative_info_list")]
|
||||||
|
public IList<Types.Representative> RepresentativeList { get; set; } = new List<Types.Representative>();
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置添加时间。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("add_time")]
|
||||||
|
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RFC3339NullableDateTimeOffsetConverter))]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("add_time")]
|
||||||
|
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RFC3339NullableDateTimeOffsetConverter))]
|
||||||
|
public DateTimeOffset? AddTime { get; set; }
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,40 @@
|
|||||||
|
using System;
|
||||||
|
|
||||||
|
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// <para>表示 [POST] /marketing/goods-subsidy-activity/retail-store-act/{activity_id}/representative 接口的响应。</para>
|
||||||
|
/// </summary>
|
||||||
|
public class AddMarketingGoodsSubsidyActivityRetailStoreRepresentativeResponse : WechatTenpayResponse
|
||||||
|
{
|
||||||
|
public static class Types
|
||||||
|
{
|
||||||
|
public class Representative : QueryMarketingGoodsSubsidyActivityRetailStoreRepresentativesResponse.Types.Representative
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置零售小店活动 ID。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("activity_id")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("activity_id")]
|
||||||
|
public string ActivityId { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置添加失败的业务代理列表。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("failed_representative_info_list")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("failed_representative_info_list")]
|
||||||
|
public Types.Representative[]? FailedRepresentativeList { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置添加时间。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("add_time")]
|
||||||
|
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RFC3339DateTimeOffsetConverter))]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("add_time")]
|
||||||
|
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RFC3339DateTimeOffsetConverter))]
|
||||||
|
public DateTimeOffset AddTime { get; set; }
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,48 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// <para>表示 [DELETE] /marketing/goods-subsidy-activity/retail-store-act/{activity_id}/representative 接口的请求。</para>
|
||||||
|
/// </summary>
|
||||||
|
public class DeleteMarketingGoodsSubsidyActivityRetailStoreRepresentativeRequest : WechatTenpayRequest
|
||||||
|
{
|
||||||
|
public static class Types
|
||||||
|
{
|
||||||
|
public class Representative : AddMarketingGoodsSubsidyActivityRetailStoreRepresentativeRequest.Types.Representative
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置零售小店活动 ID。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonIgnore]
|
||||||
|
[System.Text.Json.Serialization.JsonIgnore]
|
||||||
|
public string ActivityId { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置请求业务单号。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("out_request_no")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("out_request_no")]
|
||||||
|
public string OutRequestNumber { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置业务代理列表。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("representative_info_list")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("representative_info_list")]
|
||||||
|
public IList<Types.Representative> RepresentativeList { get; set; } = new List<Types.Representative>();
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置删除时间。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("delete_time")]
|
||||||
|
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RFC3339NullableDateTimeOffsetConverter))]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("delete_time")]
|
||||||
|
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RFC3339NullableDateTimeOffsetConverter))]
|
||||||
|
public DateTimeOffset? DeleteTime { get; set; }
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,40 @@
|
|||||||
|
using System;
|
||||||
|
|
||||||
|
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// <para>表示 [DELETE] /marketing/goods-subsidy-activity/retail-store-act/{activity_id}/representative 接口的响应。</para>
|
||||||
|
/// </summary>
|
||||||
|
public class DeleteMarketingGoodsSubsidyActivityRetailStoreRepresentativeResponse : WechatTenpayResponse
|
||||||
|
{
|
||||||
|
public static class Types
|
||||||
|
{
|
||||||
|
public class Representative : QueryMarketingGoodsSubsidyActivityRetailStoreRepresentativesResponse.Types.Representative
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置零售小店活动 ID。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("activity_id")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("activity_id")]
|
||||||
|
public string ActivityId { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置删除失败的业务代理列表。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("failed_representative_info_list")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("failed_representative_info_list")]
|
||||||
|
public Types.Representative[]? FailedRepresentativeList { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置删除时间。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("delete_time")]
|
||||||
|
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RFC3339DateTimeOffsetConverter))]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("delete_time")]
|
||||||
|
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RFC3339DateTimeOffsetConverter))]
|
||||||
|
public DateTimeOffset DeleteTime { get; set; }
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,30 @@
|
|||||||
|
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// <para>表示 [GET] /marketing/goods-subsidy-activity/retail-store-act/{activity_id}/representatives 接口的请求。</para>
|
||||||
|
/// </summary>
|
||||||
|
public class QueryMarketingGoodsSubsidyActivityRetailStoreRepresentativesRequest : WechatTenpayRequest
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置零售小店活动 ID。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonIgnore]
|
||||||
|
[System.Text.Json.Serialization.JsonIgnore]
|
||||||
|
public string ActivityId { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置分页起始位置。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonIgnore]
|
||||||
|
[System.Text.Json.Serialization.JsonIgnore]
|
||||||
|
public int Offset { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置分页每页数量。
|
||||||
|
/// <para>默认值:10</para>
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonIgnore]
|
||||||
|
[System.Text.Json.Serialization.JsonIgnore]
|
||||||
|
public int Limit { get; set; } = 10;
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,49 @@
|
|||||||
|
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// <para>表示 [GET] /marketing/goods-subsidy-activity/retail-store-act/{activity_id}/representatives 接口的响应。</para>
|
||||||
|
/// </summary>
|
||||||
|
public class QueryMarketingGoodsSubsidyActivityRetailStoreRepresentativesResponse : WechatTenpayResponse
|
||||||
|
{
|
||||||
|
public static class Types
|
||||||
|
{
|
||||||
|
public class Representative
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置业务代理的 OpenId。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("openid")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("openid")]
|
||||||
|
public string OpenId { get; set; } = default!;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置业务代理列表。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("data")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("data")]
|
||||||
|
public Types.Representative[]? RepresentativeList { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置总数量。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("total_count")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("total_count")]
|
||||||
|
public int TotalCount { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置分页起始位置。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("offset")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("offset")]
|
||||||
|
public int Offset { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置分页每页数量。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("limit")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("limit")]
|
||||||
|
public int Limit { get; set; }
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,61 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// <para>表示 [POST] /marketing/goods-subsidy-activity/retail-store-act/{brand_id}/stores 接口的请求。</para>
|
||||||
|
/// </summary>
|
||||||
|
public class AddMarketingGoodsSubsidyActivityRetailStoreRequest : WechatTenpayRequest
|
||||||
|
{
|
||||||
|
public static class Types
|
||||||
|
{
|
||||||
|
public class Store
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置门店编码。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("store_code")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("store_code")]
|
||||||
|
public string StoreCode { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置门店名称。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("store_name")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("store_name")]
|
||||||
|
public string StoreName { get; set; } = string.Empty;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置品牌 ID。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonIgnore]
|
||||||
|
[System.Text.Json.Serialization.JsonIgnore]
|
||||||
|
public string BrandId { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置请求业务单号。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("out_request_no")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("out_request_no")]
|
||||||
|
public string OutRequestNumber { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置门店列表。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("stores")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("stores")]
|
||||||
|
public IList<Types.Store> StoreList { get; set; } = new List<Types.Store>();
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置添加时间。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("add_time")]
|
||||||
|
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RFC3339NullableDateTimeOffsetConverter))]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("add_time")]
|
||||||
|
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RFC3339NullableDateTimeOffsetConverter))]
|
||||||
|
public DateTimeOffset? AddTime { get; set; }
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,33 @@
|
|||||||
|
using System;
|
||||||
|
|
||||||
|
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// <para>表示 [POST] /marketing/goods-subsidy-activity/retail-store-act/{brand_id}/stores 接口的响应。</para>
|
||||||
|
/// </summary>
|
||||||
|
public class AddMarketingGoodsSubsidyActivityRetailStoreResponse : WechatTenpayResponse
|
||||||
|
{
|
||||||
|
public static class Types
|
||||||
|
{
|
||||||
|
public class Store : QueryMarketingGoodsSubsidyActivityRetailStoresResponse.Types.Store
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置添加失败的门店列表。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("failed_stores")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("failed_stores")]
|
||||||
|
public Types.Store[]? FailedRepresentativeList { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置添加时间。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("add_time")]
|
||||||
|
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RFC3339DateTimeOffsetConverter))]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("add_time")]
|
||||||
|
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RFC3339DateTimeOffsetConverter))]
|
||||||
|
public DateTimeOffset AddTime { get; set; }
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,48 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// <para>表示 [DELETE] /marketing/goods-subsidy-activity/retail-store-act/{brand_id}/stores 接口的请求。</para>
|
||||||
|
/// </summary>
|
||||||
|
public class DeleteMarketingGoodsSubsidyActivityRetailStoreRequest : WechatTenpayRequest
|
||||||
|
{
|
||||||
|
public static class Types
|
||||||
|
{
|
||||||
|
public class Store : AddMarketingGoodsSubsidyActivityRetailStoreRequest.Types.Store
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置零售小店活动 ID。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonIgnore]
|
||||||
|
[System.Text.Json.Serialization.JsonIgnore]
|
||||||
|
public string BrandId { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置请求业务单号。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("out_request_no")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("out_request_no")]
|
||||||
|
public string OutRequestNumber { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置门店列表。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("stores")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("stores")]
|
||||||
|
public IList<Types.Store> StoreList { get; set; } = new List<Types.Store>();
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置删除时间。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("delete_time")]
|
||||||
|
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RFC3339NullableDateTimeOffsetConverter))]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("delete_time")]
|
||||||
|
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RFC3339NullableDateTimeOffsetConverter))]
|
||||||
|
public DateTimeOffset? DeleteTime { get; set; }
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,33 @@
|
|||||||
|
using System;
|
||||||
|
|
||||||
|
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// <para>表示 [DELETE] /marketing/goods-subsidy-activity/retail-store-act/{brand_id}/stores 接口的响应。</para>
|
||||||
|
/// </summary>
|
||||||
|
public class DeleteMarketingGoodsSubsidyActivityRetailStoreResponse : WechatTenpayResponse
|
||||||
|
{
|
||||||
|
public static class Types
|
||||||
|
{
|
||||||
|
public class Store : QueryMarketingGoodsSubsidyActivityRetailStoresResponse.Types.Store
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置删除失败的门店列表。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("failed_stores")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("failed_stores")]
|
||||||
|
public Types.Store[]? FailedStoreList { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置删除时间。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("delete_time")]
|
||||||
|
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RFC3339DateTimeOffsetConverter))]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("delete_time")]
|
||||||
|
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RFC3339DateTimeOffsetConverter))]
|
||||||
|
public DateTimeOffset DeleteTime { get; set; }
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,22 @@
|
|||||||
|
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// <para>表示 [GET] /marketing/goods-subsidy-activity/retail-store-act/{brand_id}/stores/{store_code} 接口的请求。</para>
|
||||||
|
/// </summary>
|
||||||
|
public class GetMarketingGoodsSubsidyActivityRetailStoreByStoreCodeRequest : WechatTenpayRequest
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置品牌 ID。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonIgnore]
|
||||||
|
[System.Text.Json.Serialization.JsonIgnore]
|
||||||
|
public string BrandId { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置门店编码。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonIgnore]
|
||||||
|
[System.Text.Json.Serialization.JsonIgnore]
|
||||||
|
public string StoreCode { get; set; } = string.Empty;
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,22 @@
|
|||||||
|
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// <para>表示 [GET] /marketing/goods-subsidy-activity/retail-store-act/{brand_id}/stores/{store_code} 接口的响应。</para>
|
||||||
|
/// </summary>
|
||||||
|
public class GetMarketingGoodsSubsidyActivityRetailStoreByStoreCodeResponse : WechatTenpayResponse
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置门店编码。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("store_code")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("store_code")]
|
||||||
|
public string StoreCode { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置门店名称。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("store_name")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("store_name")]
|
||||||
|
public string StoreName { get; set; } = default!;
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,30 @@
|
|||||||
|
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// <para>表示 [GET] /marketing/goods-subsidy-activity/retail-store-act/{brand_id}/stores 接口的请求。</para>
|
||||||
|
/// </summary>
|
||||||
|
public class QueryMarketingGoodsSubsidyActivityRetailStoresRequest : WechatTenpayRequest
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置品牌 ID。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonIgnore]
|
||||||
|
[System.Text.Json.Serialization.JsonIgnore]
|
||||||
|
public string BrandId { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置分页起始位置。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonIgnore]
|
||||||
|
[System.Text.Json.Serialization.JsonIgnore]
|
||||||
|
public int Offset { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置分页每页数量。
|
||||||
|
/// <para>默认值:10</para>
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonIgnore]
|
||||||
|
[System.Text.Json.Serialization.JsonIgnore]
|
||||||
|
public int Limit { get; set; } = 10;
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,56 @@
|
|||||||
|
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// <para>表示 [GET] /marketing/goods-subsidy-activity/retail-store-act/{brand_id}/stores 接口的响应。</para>
|
||||||
|
/// </summary>
|
||||||
|
public class QueryMarketingGoodsSubsidyActivityRetailStoresResponse : WechatTenpayResponse
|
||||||
|
{
|
||||||
|
public static class Types
|
||||||
|
{
|
||||||
|
public class Store
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置门店编码。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("store_code")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("store_code")]
|
||||||
|
public string StoreCode { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置门店名称。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("store_name")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("store_name")]
|
||||||
|
public string StoreName { get; set; } = default!;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置门店列表。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("data")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("data")]
|
||||||
|
public Types.Store[]? StoreList { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置总数量。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("total_count")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("total_count")]
|
||||||
|
public int TotalCount { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置分页起始位置。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("offset")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("offset")]
|
||||||
|
public int Offset { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置分页每页数量。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("limit")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("limit")]
|
||||||
|
public int Limit { get; set; }
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"representative_info_list": [
|
||||||
|
{
|
||||||
|
"openid": "oK7fFt8zzEZ909XH-LE2#"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"out_request_no": "1002600620019090123143254436",
|
||||||
|
"add_time": "2015-05-20T13:29:35+08:00"
|
||||||
|
}
|
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"activity_id": "3118550000000004",
|
||||||
|
"failed_representative_info_list": [
|
||||||
|
{
|
||||||
|
"openid": "oK7fFt8zzEZ909XH-LE2#"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"add_time": "2015-05-20T13:29:35+08:00"
|
||||||
|
}
|
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"out_request_no": "1002600620019090123143254436",
|
||||||
|
"add_time": "2015-05-20T13:29:35+08:00",
|
||||||
|
"stores": [
|
||||||
|
{
|
||||||
|
"store_code": "abc_001",
|
||||||
|
"store_name": "幸福小店"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"add_time": "2015-05-20T13:29:35+08:00",
|
||||||
|
"failed_stores": [
|
||||||
|
{
|
||||||
|
"store_code": "abc_001",
|
||||||
|
"store_name": "幸福小店"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"out_request_no": "1002600620019090123143254436",
|
||||||
|
"material_num": 100
|
||||||
|
}
|
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"material_list": [
|
||||||
|
{
|
||||||
|
"material_id": "1001_123456",
|
||||||
|
"material_url": "https://action.weixin.qq.com/fmcg/details?brand_id=1001&material_id=1001_123456"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"representative_info_list": [
|
||||||
|
{
|
||||||
|
"openid": "oK7fFt8zzEZ909XH-LE2#"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"out_request_no": "1002600620019090123143254436",
|
||||||
|
"delete_time": "2015-05-20T13:29:35.120+08:00"
|
||||||
|
}
|
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"activity_id": "3118550000000004",
|
||||||
|
"failed_representative_info_list": [
|
||||||
|
{
|
||||||
|
"openid": "oK7fFt8zzEZ909XH-LE2#"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"delete_time": "2015-05-20T13:29:35.120+08:00"
|
||||||
|
}
|
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"out_request_no": "1002600620019090123143254436",
|
||||||
|
"delete_time": "2015-05-20T13:29:35+08:00",
|
||||||
|
"stores": [
|
||||||
|
{
|
||||||
|
"store_code": "abc_001",
|
||||||
|
"store_name": "幸福小店"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"delete_time": "2015-05-20T13:29:35+08:00",
|
||||||
|
"failed_stores": [
|
||||||
|
{
|
||||||
|
"store_code": "abc_001",
|
||||||
|
"store_name": "幸福小店"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"store_code": "abc_001",
|
||||||
|
"store_name": "幸福小店"
|
||||||
|
}
|
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"total_count": 1000,
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"openid": "oK7fFt8zzEZ909XH-LE2#"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"offset": 0,
|
||||||
|
"limit": 10
|
||||||
|
}
|
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"total_count": 1000,
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"store_code": "abc_001",
|
||||||
|
"store_name": "幸福小店"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"offset": 0,
|
||||||
|
"limit": 10
|
||||||
|
}
|
Reference in New Issue
Block a user