diff --git a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Extensions/WechatTenpayClientExecuteMarketingGoodsSubsidyActivityExtensions.cs b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Extensions/WechatTenpayClientExecuteMarketingGoodsSubsidyActivityExtensions.cs new file mode 100644 index 00000000..3a49bcd4 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Extensions/WechatTenpayClientExecuteMarketingGoodsSubsidyActivityExtensions.cs @@ -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 + /// + /// 异步调用 [POST] /marketing/goods-subsidy-activity/retail-store-act/{activity_id}/representative 接口。 + /// REF: https://pay.weixin.qq.com/docs/partner/apis/retail-store/retail-stores/add-representative.html + /// + /// + /// + /// + /// + public static async Task 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(flurlReq, data: request, cancellationToken: cancellationToken); + } + + /// + /// 异步调用 [GET] /marketing/goods-subsidy-activity/retail-store-act/{activity_id}/representatives 接口。 + /// REF: https://pay.weixin.qq.com/docs/partner/apis/retail-store/retail-store-act/list-representative.html + /// + /// + /// + /// + /// + public static async Task 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(flurlReq, data: request, cancellationToken: cancellationToken); + } + + /// + /// 异步调用 [DELETE] /marketing/goods-subsidy-activity/retail-store-act/{activity_id}/representative 接口。 + /// REF: https://pay.weixin.qq.com/docs/partner/apis/retail-store/retail-store-act/delete-representative.html + /// + /// + /// + /// + /// + public static async Task 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(flurlReq, data: request, cancellationToken: cancellationToken); + } + #endregion + + #region RetailStore/Material + /// + /// 异步调用 [POST] /marketing/goods-subsidy-activity/retail-store-act/{brand_id}/materials 接口。 + /// REF: https://pay.weixin.qq.com/docs/partner/apis/retail-store/retail-store-act/create-materials.html + /// + /// + /// + /// + /// + public static async Task 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(flurlReq, data: request, cancellationToken: cancellationToken); + } + #endregion + + #region RetailStore/Store + /// + /// 异步调用 [GET] /marketing/goods-subsidy-activity/retail-store-act/{brand_id}/stores 接口。 + /// REF: https://pay.weixin.qq.com/docs/partner/apis/retail-store/retail-store-act/list-store.html + /// + /// + /// + /// + /// + public static async Task 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(flurlReq, data: request, cancellationToken: cancellationToken); + } + + /// + /// 异步调用 [GET] /marketing/goods-subsidy-activity/retail-store-act/{brand_id}/stores/{store_code} 接口。 + /// REF: https://pay.weixin.qq.com/docs/partner/apis/retail-store/retail-store-act/list-store.html + /// + /// + /// + /// + /// + public static async Task 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(flurlReq, data: request, cancellationToken: cancellationToken); + } + + /// + /// 异步调用 [POST] /marketing/goods-subsidy-activity/retail-store-act/{brand_id}/stores 接口。 + /// REF: https://pay.weixin.qq.com/docs/partner/apis/retail-store/retail-store-act/add-stores.html + /// + /// + /// + /// + /// + public static async Task 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(flurlReq, data: request, cancellationToken: cancellationToken); + } + + /// + /// 异步调用 [DELETE] /marketing/goods-subsidy-activity/retail-store-act/{brand_id}/stores 接口。 + /// REF: https://pay.weixin.qq.com/docs/partner/apis/retail-store/retail-store-act/delete-stores.html + /// + /// + /// + /// + /// + public static async Task 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(flurlReq, data: request, cancellationToken: cancellationToken); + } + #endregion + #endregion + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Material/CreateMarketingGoodsSubsidyActivityRetailStoreMaterialRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Material/CreateMarketingGoodsSubsidyActivityRetailStoreMaterialRequest.cs new file mode 100644 index 00000000..8bb0b2e2 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Material/CreateMarketingGoodsSubsidyActivityRetailStoreMaterialRequest.cs @@ -0,0 +1,29 @@ +namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models +{ + /// + /// 表示 [POST] /marketing/goods-subsidy-activity/retail-store-act/{brand_id}/materials 接口的请求。 + /// + public class CreateMarketingGoodsSubsidyActivityRetailStoreMaterialRequest : WechatTenpayRequest + { + /// + /// 获取或设置品牌 ID。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string BrandId { get; set; } = string.Empty; + + /// + /// 获取或设置请求业务单号。 + /// + [Newtonsoft.Json.JsonProperty("out_request_no")] + [System.Text.Json.Serialization.JsonPropertyName("out_request_no")] + public string OutRequestNumber { get; set; } = string.Empty; + + /// + /// 获取或设置生成物料码数量。 + /// + [Newtonsoft.Json.JsonProperty("material_num")] + [System.Text.Json.Serialization.JsonPropertyName("material_num")] + public int MaterialCount { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Material/CreateMarketingGoodsSubsidyActivityRetailStoreMaterialResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Material/CreateMarketingGoodsSubsidyActivityRetailStoreMaterialResponse.cs new file mode 100644 index 00000000..ecb942ac --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Material/CreateMarketingGoodsSubsidyActivityRetailStoreMaterialResponse.cs @@ -0,0 +1,35 @@ +namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models +{ + /// + /// 表示 [POST] /marketing/goods-subsidy-activity/retail-store-act/{brand_id}/materials 接口的响应。 + /// + public class CreateMarketingGoodsSubsidyActivityRetailStoreMaterialResponse : WechatTenpayResponse + { + public static class Types + { + public class Material + { + /// + /// 获取或设置物料码 ID。 + /// + [Newtonsoft.Json.JsonProperty("material_id")] + [System.Text.Json.Serialization.JsonPropertyName("material_id")] + public string MaterialId { get; set; } = default!; + + /// + /// 获取或设置物料码 URL。 + /// + [Newtonsoft.Json.JsonProperty("material_url")] + [System.Text.Json.Serialization.JsonPropertyName("material_url")] + public string MaterialUrl { get; set; } = default!; + } + } + + /// + /// 获取或设置物料码列表。 + /// + [Newtonsoft.Json.JsonProperty("material_list")] + [System.Text.Json.Serialization.JsonPropertyName("material_list")] + public Types.Material[] MaterialList { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Representative/AddMarketingGoodsSubsidyActivityRetailStoreRepresentativeRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Representative/AddMarketingGoodsSubsidyActivityRetailStoreRepresentativeRequest.cs new file mode 100644 index 00000000..0bab2634 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Representative/AddMarketingGoodsSubsidyActivityRetailStoreRepresentativeRequest.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models +{ + /// + /// 表示 [POST] /marketing/goods-subsidy-activity/retail-store-act/{activity_id}/representative 接口的请求。 + /// + public class AddMarketingGoodsSubsidyActivityRetailStoreRepresentativeRequest : WechatTenpayRequest + { + public static class Types + { + public class Representative + { + /// + /// 获取或设置业务代理的 OpenId。 + /// + [Newtonsoft.Json.JsonProperty("openid")] + [System.Text.Json.Serialization.JsonPropertyName("openid")] + public string OpenId { get; set; } = string.Empty; + } + } + + /// + /// 获取或设置零售小店活动 ID。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string ActivityId { get; set; } = string.Empty; + + /// + /// 获取或设置请求业务单号。 + /// + [Newtonsoft.Json.JsonProperty("out_request_no")] + [System.Text.Json.Serialization.JsonPropertyName("out_request_no")] + public string OutRequestNumber { get; set; } = string.Empty; + + /// + /// 获取或设置业务代理列表。 + /// + [Newtonsoft.Json.JsonProperty("representative_info_list")] + [System.Text.Json.Serialization.JsonPropertyName("representative_info_list")] + public IList RepresentativeList { get; set; } = new List(); + + /// + /// 获取或设置添加时间。 + /// + [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; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Representative/AddMarketingGoodsSubsidyActivityRetailStoreRepresentativeResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Representative/AddMarketingGoodsSubsidyActivityRetailStoreRepresentativeResponse.cs new file mode 100644 index 00000000..ec6da5ad --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Representative/AddMarketingGoodsSubsidyActivityRetailStoreRepresentativeResponse.cs @@ -0,0 +1,40 @@ +using System; + +namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models +{ + /// + /// 表示 [POST] /marketing/goods-subsidy-activity/retail-store-act/{activity_id}/representative 接口的响应。 + /// + public class AddMarketingGoodsSubsidyActivityRetailStoreRepresentativeResponse : WechatTenpayResponse + { + public static class Types + { + public class Representative : QueryMarketingGoodsSubsidyActivityRetailStoreRepresentativesResponse.Types.Representative + { + } + } + + /// + /// 获取或设置零售小店活动 ID。 + /// + [Newtonsoft.Json.JsonProperty("activity_id")] + [System.Text.Json.Serialization.JsonPropertyName("activity_id")] + public string ActivityId { get; set; } = default!; + + /// + /// 获取或设置添加失败的业务代理列表。 + /// + [Newtonsoft.Json.JsonProperty("failed_representative_info_list")] + [System.Text.Json.Serialization.JsonPropertyName("failed_representative_info_list")] + public Types.Representative[]? FailedRepresentativeList { get; set; } + + /// + /// 获取或设置添加时间。 + /// + [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; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Representative/DeleteMarketingGoodsSubsidyActivityRetailStoreRepresentativeRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Representative/DeleteMarketingGoodsSubsidyActivityRetailStoreRepresentativeRequest.cs new file mode 100644 index 00000000..3011cf90 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Representative/DeleteMarketingGoodsSubsidyActivityRetailStoreRepresentativeRequest.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models +{ + /// + /// 表示 [DELETE] /marketing/goods-subsidy-activity/retail-store-act/{activity_id}/representative 接口的请求。 + /// + public class DeleteMarketingGoodsSubsidyActivityRetailStoreRepresentativeRequest : WechatTenpayRequest + { + public static class Types + { + public class Representative : AddMarketingGoodsSubsidyActivityRetailStoreRepresentativeRequest.Types.Representative + { + } + } + + /// + /// 获取或设置零售小店活动 ID。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string ActivityId { get; set; } = string.Empty; + + /// + /// 获取或设置请求业务单号。 + /// + [Newtonsoft.Json.JsonProperty("out_request_no")] + [System.Text.Json.Serialization.JsonPropertyName("out_request_no")] + public string OutRequestNumber { get; set; } = string.Empty; + + /// + /// 获取或设置业务代理列表。 + /// + [Newtonsoft.Json.JsonProperty("representative_info_list")] + [System.Text.Json.Serialization.JsonPropertyName("representative_info_list")] + public IList RepresentativeList { get; set; } = new List(); + + /// + /// 获取或设置删除时间。 + /// + [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; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Representative/DeleteMarketingGoodsSubsidyActivityRetailStoreRepresentativeResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Representative/DeleteMarketingGoodsSubsidyActivityRetailStoreRepresentativeResponse.cs new file mode 100644 index 00000000..468cb634 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Representative/DeleteMarketingGoodsSubsidyActivityRetailStoreRepresentativeResponse.cs @@ -0,0 +1,40 @@ +using System; + +namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models +{ + /// + /// 表示 [DELETE] /marketing/goods-subsidy-activity/retail-store-act/{activity_id}/representative 接口的响应。 + /// + public class DeleteMarketingGoodsSubsidyActivityRetailStoreRepresentativeResponse : WechatTenpayResponse + { + public static class Types + { + public class Representative : QueryMarketingGoodsSubsidyActivityRetailStoreRepresentativesResponse.Types.Representative + { + } + } + + /// + /// 获取或设置零售小店活动 ID。 + /// + [Newtonsoft.Json.JsonProperty("activity_id")] + [System.Text.Json.Serialization.JsonPropertyName("activity_id")] + public string ActivityId { get; set; } = default!; + + /// + /// 获取或设置删除失败的业务代理列表。 + /// + [Newtonsoft.Json.JsonProperty("failed_representative_info_list")] + [System.Text.Json.Serialization.JsonPropertyName("failed_representative_info_list")] + public Types.Representative[]? FailedRepresentativeList { get; set; } + + /// + /// 获取或设置删除时间。 + /// + [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; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Representative/QueryMarketingGoodsSubsidyActivityRetailStoreRepresentativesRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Representative/QueryMarketingGoodsSubsidyActivityRetailStoreRepresentativesRequest.cs new file mode 100644 index 00000000..7a626953 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Representative/QueryMarketingGoodsSubsidyActivityRetailStoreRepresentativesRequest.cs @@ -0,0 +1,30 @@ +namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models +{ + /// + /// 表示 [GET] /marketing/goods-subsidy-activity/retail-store-act/{activity_id}/representatives 接口的请求。 + /// + public class QueryMarketingGoodsSubsidyActivityRetailStoreRepresentativesRequest : WechatTenpayRequest + { + /// + /// 获取或设置零售小店活动 ID。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string ActivityId { get; set; } = string.Empty; + + /// + /// 获取或设置分页起始位置。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int Offset { get; set; } + + /// + /// 获取或设置分页每页数量。 + /// 默认值:10 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int Limit { get; set; } = 10; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Representative/QueryMarketingGoodsSubsidyActivityRetailStoreRepresentativesResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Representative/QueryMarketingGoodsSubsidyActivityRetailStoreRepresentativesResponse.cs new file mode 100644 index 00000000..caf6bf7f --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Representative/QueryMarketingGoodsSubsidyActivityRetailStoreRepresentativesResponse.cs @@ -0,0 +1,49 @@ +namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models +{ + /// + /// 表示 [GET] /marketing/goods-subsidy-activity/retail-store-act/{activity_id}/representatives 接口的响应。 + /// + public class QueryMarketingGoodsSubsidyActivityRetailStoreRepresentativesResponse : WechatTenpayResponse + { + public static class Types + { + public class Representative + { + /// + /// 获取或设置业务代理的 OpenId。 + /// + [Newtonsoft.Json.JsonProperty("openid")] + [System.Text.Json.Serialization.JsonPropertyName("openid")] + public string OpenId { get; set; } = default!; + } + } + + /// + /// 获取或设置业务代理列表。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Representative[]? RepresentativeList { get; set; } + + /// + /// 获取或设置总数量。 + /// + [Newtonsoft.Json.JsonProperty("total_count")] + [System.Text.Json.Serialization.JsonPropertyName("total_count")] + public int TotalCount { get; set; } + + /// + /// 获取或设置分页起始位置。 + /// + [Newtonsoft.Json.JsonProperty("offset")] + [System.Text.Json.Serialization.JsonPropertyName("offset")] + public int Offset { get; set; } + + /// + /// 获取或设置分页每页数量。 + /// + [Newtonsoft.Json.JsonProperty("limit")] + [System.Text.Json.Serialization.JsonPropertyName("limit")] + public int Limit { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Store/AddMarketingGoodsSubsidyActivityRetailStoreRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Store/AddMarketingGoodsSubsidyActivityRetailStoreRequest.cs new file mode 100644 index 00000000..b55a7b10 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Store/AddMarketingGoodsSubsidyActivityRetailStoreRequest.cs @@ -0,0 +1,61 @@ +using System; +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models +{ + /// + /// 表示 [POST] /marketing/goods-subsidy-activity/retail-store-act/{brand_id}/stores 接口的请求。 + /// + public class AddMarketingGoodsSubsidyActivityRetailStoreRequest : WechatTenpayRequest + { + public static class Types + { + public class Store + { + /// + /// 获取或设置门店编码。 + /// + [Newtonsoft.Json.JsonProperty("store_code")] + [System.Text.Json.Serialization.JsonPropertyName("store_code")] + public string StoreCode { get; set; } = string.Empty; + + /// + /// 获取或设置门店名称。 + /// + [Newtonsoft.Json.JsonProperty("store_name")] + [System.Text.Json.Serialization.JsonPropertyName("store_name")] + public string StoreName { get; set; } = string.Empty; + } + } + + /// + /// 获取或设置品牌 ID。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string BrandId { get; set; } = string.Empty; + + /// + /// 获取或设置请求业务单号。 + /// + [Newtonsoft.Json.JsonProperty("out_request_no")] + [System.Text.Json.Serialization.JsonPropertyName("out_request_no")] + public string OutRequestNumber { get; set; } = string.Empty; + + /// + /// 获取或设置门店列表。 + /// + [Newtonsoft.Json.JsonProperty("stores")] + [System.Text.Json.Serialization.JsonPropertyName("stores")] + public IList StoreList { get; set; } = new List(); + + /// + /// 获取或设置添加时间。 + /// + [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; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Store/AddMarketingGoodsSubsidyActivityRetailStoreResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Store/AddMarketingGoodsSubsidyActivityRetailStoreResponse.cs new file mode 100644 index 00000000..82edcab0 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Store/AddMarketingGoodsSubsidyActivityRetailStoreResponse.cs @@ -0,0 +1,33 @@ +using System; + +namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models +{ + /// + /// 表示 [POST] /marketing/goods-subsidy-activity/retail-store-act/{brand_id}/stores 接口的响应。 + /// + public class AddMarketingGoodsSubsidyActivityRetailStoreResponse : WechatTenpayResponse + { + public static class Types + { + public class Store : QueryMarketingGoodsSubsidyActivityRetailStoresResponse.Types.Store + { + } + } + + /// + /// 获取或设置添加失败的门店列表。 + /// + [Newtonsoft.Json.JsonProperty("failed_stores")] + [System.Text.Json.Serialization.JsonPropertyName("failed_stores")] + public Types.Store[]? FailedRepresentativeList { get; set; } + + /// + /// 获取或设置添加时间。 + /// + [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; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Store/DeleteMarketingGoodsSubsidyActivityRetailStoreRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Store/DeleteMarketingGoodsSubsidyActivityRetailStoreRequest.cs new file mode 100644 index 00000000..d72e1ea6 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Store/DeleteMarketingGoodsSubsidyActivityRetailStoreRequest.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models +{ + /// + /// 表示 [DELETE] /marketing/goods-subsidy-activity/retail-store-act/{brand_id}/stores 接口的请求。 + /// + public class DeleteMarketingGoodsSubsidyActivityRetailStoreRequest : WechatTenpayRequest + { + public static class Types + { + public class Store : AddMarketingGoodsSubsidyActivityRetailStoreRequest.Types.Store + { + } + } + + /// + /// 获取或设置零售小店活动 ID。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string BrandId { get; set; } = string.Empty; + + /// + /// 获取或设置请求业务单号。 + /// + [Newtonsoft.Json.JsonProperty("out_request_no")] + [System.Text.Json.Serialization.JsonPropertyName("out_request_no")] + public string OutRequestNumber { get; set; } = string.Empty; + + /// + /// 获取或设置门店列表。 + /// + [Newtonsoft.Json.JsonProperty("stores")] + [System.Text.Json.Serialization.JsonPropertyName("stores")] + public IList StoreList { get; set; } = new List(); + + /// + /// 获取或设置删除时间。 + /// + [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; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Store/DeleteMarketingGoodsSubsidyActivityRetailStoreResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Store/DeleteMarketingGoodsSubsidyActivityRetailStoreResponse.cs new file mode 100644 index 00000000..003ea741 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Store/DeleteMarketingGoodsSubsidyActivityRetailStoreResponse.cs @@ -0,0 +1,33 @@ +using System; + +namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models +{ + /// + /// 表示 [DELETE] /marketing/goods-subsidy-activity/retail-store-act/{brand_id}/stores 接口的响应。 + /// + public class DeleteMarketingGoodsSubsidyActivityRetailStoreResponse : WechatTenpayResponse + { + public static class Types + { + public class Store : QueryMarketingGoodsSubsidyActivityRetailStoresResponse.Types.Store + { + } + } + + /// + /// 获取或设置删除失败的门店列表。 + /// + [Newtonsoft.Json.JsonProperty("failed_stores")] + [System.Text.Json.Serialization.JsonPropertyName("failed_stores")] + public Types.Store[]? FailedStoreList { get; set; } + + /// + /// 获取或设置删除时间。 + /// + [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; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Store/GetMarketingGoodsSubsidyActivityRetailStoreByStoreCodeRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Store/GetMarketingGoodsSubsidyActivityRetailStoreByStoreCodeRequest.cs new file mode 100644 index 00000000..d889fb07 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Store/GetMarketingGoodsSubsidyActivityRetailStoreByStoreCodeRequest.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models +{ + /// + /// 表示 [GET] /marketing/goods-subsidy-activity/retail-store-act/{brand_id}/stores/{store_code} 接口的请求。 + /// + public class GetMarketingGoodsSubsidyActivityRetailStoreByStoreCodeRequest : WechatTenpayRequest + { + /// + /// 获取或设置品牌 ID。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string BrandId { get; set; } = string.Empty; + + /// + /// 获取或设置门店编码。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string StoreCode { get; set; } = string.Empty; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Store/GetMarketingGoodsSubsidyActivityRetailStoreByStoreCodeResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Store/GetMarketingGoodsSubsidyActivityRetailStoreByStoreCodeResponse.cs new file mode 100644 index 00000000..fd8f1d37 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Store/GetMarketingGoodsSubsidyActivityRetailStoreByStoreCodeResponse.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models +{ + /// + /// 表示 [GET] /marketing/goods-subsidy-activity/retail-store-act/{brand_id}/stores/{store_code} 接口的响应。 + /// + public class GetMarketingGoodsSubsidyActivityRetailStoreByStoreCodeResponse : WechatTenpayResponse + { + /// + /// 获取或设置门店编码。 + /// + [Newtonsoft.Json.JsonProperty("store_code")] + [System.Text.Json.Serialization.JsonPropertyName("store_code")] + public string StoreCode { get; set; } = default!; + + /// + /// 获取或设置门店名称。 + /// + [Newtonsoft.Json.JsonProperty("store_name")] + [System.Text.Json.Serialization.JsonPropertyName("store_name")] + public string StoreName { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Store/QueryMarketingGoodsSubsidyActivityRetailStoresRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Store/QueryMarketingGoodsSubsidyActivityRetailStoresRequest.cs new file mode 100644 index 00000000..6f9d2926 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Store/QueryMarketingGoodsSubsidyActivityRetailStoresRequest.cs @@ -0,0 +1,30 @@ +namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models +{ + /// + /// 表示 [GET] /marketing/goods-subsidy-activity/retail-store-act/{brand_id}/stores 接口的请求。 + /// + public class QueryMarketingGoodsSubsidyActivityRetailStoresRequest : WechatTenpayRequest + { + /// + /// 获取或设置品牌 ID。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string BrandId { get; set; } = string.Empty; + + /// + /// 获取或设置分页起始位置。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int Offset { get; set; } + + /// + /// 获取或设置分页每页数量。 + /// 默认值:10 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int Limit { get; set; } = 10; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Store/QueryMarketingGoodsSubsidyActivityRetailStoresResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Store/QueryMarketingGoodsSubsidyActivityRetailStoresResponse.cs new file mode 100644 index 00000000..d299a168 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/MarketingGoodsSubsidyActivity/RetailStore/Store/QueryMarketingGoodsSubsidyActivityRetailStoresResponse.cs @@ -0,0 +1,56 @@ +namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models +{ + /// + /// 表示 [GET] /marketing/goods-subsidy-activity/retail-store-act/{brand_id}/stores 接口的响应。 + /// + public class QueryMarketingGoodsSubsidyActivityRetailStoresResponse : WechatTenpayResponse + { + public static class Types + { + public class Store + { + /// + /// 获取或设置门店编码。 + /// + [Newtonsoft.Json.JsonProperty("store_code")] + [System.Text.Json.Serialization.JsonPropertyName("store_code")] + public string StoreCode { get; set; } = default!; + + /// + /// 获取或设置门店名称。 + /// + [Newtonsoft.Json.JsonProperty("store_name")] + [System.Text.Json.Serialization.JsonPropertyName("store_name")] + public string StoreName { get; set; } = default!; + } + } + + /// + /// 获取或设置门店列表。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Store[]? StoreList { get; set; } + + /// + /// 获取或设置总数量。 + /// + [Newtonsoft.Json.JsonProperty("total_count")] + [System.Text.Json.Serialization.JsonPropertyName("total_count")] + public int TotalCount { get; set; } + + /// + /// 获取或设置分页起始位置。 + /// + [Newtonsoft.Json.JsonProperty("offset")] + [System.Text.Json.Serialization.JsonPropertyName("offset")] + public int Offset { get; set; } + + /// + /// 获取或设置分页每页数量。 + /// + [Newtonsoft.Json.JsonProperty("limit")] + [System.Text.Json.Serialization.JsonPropertyName("limit")] + public int Limit { get; set; } + } +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_Partner/MarketingGoodsSubsidyActivity/RetailStore/AddMarketingGoodsSubsidyActivityRetailStoreRepresentativeRequest.json b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_Partner/MarketingGoodsSubsidyActivity/RetailStore/AddMarketingGoodsSubsidyActivityRetailStoreRepresentativeRequest.json new file mode 100644 index 00000000..2bbf46e4 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_Partner/MarketingGoodsSubsidyActivity/RetailStore/AddMarketingGoodsSubsidyActivityRetailStoreRepresentativeRequest.json @@ -0,0 +1,9 @@ +{ + "representative_info_list": [ + { + "openid": "oK7fFt8zzEZ909XH-LE2#" + } + ], + "out_request_no": "1002600620019090123143254436", + "add_time": "2015-05-20T13:29:35+08:00" +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_Partner/MarketingGoodsSubsidyActivity/RetailStore/AddMarketingGoodsSubsidyActivityRetailStoreRepresentativeResponse.json b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_Partner/MarketingGoodsSubsidyActivity/RetailStore/AddMarketingGoodsSubsidyActivityRetailStoreRepresentativeResponse.json new file mode 100644 index 00000000..35da34ef --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_Partner/MarketingGoodsSubsidyActivity/RetailStore/AddMarketingGoodsSubsidyActivityRetailStoreRepresentativeResponse.json @@ -0,0 +1,9 @@ +{ + "activity_id": "3118550000000004", + "failed_representative_info_list": [ + { + "openid": "oK7fFt8zzEZ909XH-LE2#" + } + ], + "add_time": "2015-05-20T13:29:35+08:00" +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_Partner/MarketingGoodsSubsidyActivity/RetailStore/AddMarketingGoodsSubsidyActivityRetailStoreRequest.json b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_Partner/MarketingGoodsSubsidyActivity/RetailStore/AddMarketingGoodsSubsidyActivityRetailStoreRequest.json new file mode 100644 index 00000000..a390eba5 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_Partner/MarketingGoodsSubsidyActivity/RetailStore/AddMarketingGoodsSubsidyActivityRetailStoreRequest.json @@ -0,0 +1,10 @@ +{ + "out_request_no": "1002600620019090123143254436", + "add_time": "2015-05-20T13:29:35+08:00", + "stores": [ + { + "store_code": "abc_001", + "store_name": "幸福小店" + } + ] +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_Partner/MarketingGoodsSubsidyActivity/RetailStore/AddMarketingGoodsSubsidyActivityRetailStoreResponse.json b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_Partner/MarketingGoodsSubsidyActivity/RetailStore/AddMarketingGoodsSubsidyActivityRetailStoreResponse.json new file mode 100644 index 00000000..861d3af7 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_Partner/MarketingGoodsSubsidyActivity/RetailStore/AddMarketingGoodsSubsidyActivityRetailStoreResponse.json @@ -0,0 +1,9 @@ +{ + "add_time": "2015-05-20T13:29:35+08:00", + "failed_stores": [ + { + "store_code": "abc_001", + "store_name": "幸福小店" + } + ] +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_Partner/MarketingGoodsSubsidyActivity/RetailStore/CreateMarketingGoodsSubsidyActivityRetailStoreMaterialRequest.json b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_Partner/MarketingGoodsSubsidyActivity/RetailStore/CreateMarketingGoodsSubsidyActivityRetailStoreMaterialRequest.json new file mode 100644 index 00000000..eeb87217 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_Partner/MarketingGoodsSubsidyActivity/RetailStore/CreateMarketingGoodsSubsidyActivityRetailStoreMaterialRequest.json @@ -0,0 +1,4 @@ +{ + "out_request_no": "1002600620019090123143254436", + "material_num": 100 +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_Partner/MarketingGoodsSubsidyActivity/RetailStore/CreateMarketingGoodsSubsidyActivityRetailStoreMaterialResponse.json b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_Partner/MarketingGoodsSubsidyActivity/RetailStore/CreateMarketingGoodsSubsidyActivityRetailStoreMaterialResponse.json new file mode 100644 index 00000000..9c4c9c27 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_Partner/MarketingGoodsSubsidyActivity/RetailStore/CreateMarketingGoodsSubsidyActivityRetailStoreMaterialResponse.json @@ -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" + } + ] +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_Partner/MarketingGoodsSubsidyActivity/RetailStore/DeleteMarketingGoodsSubsidyActivityRetailStoreRepresentativeRequest.json b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_Partner/MarketingGoodsSubsidyActivity/RetailStore/DeleteMarketingGoodsSubsidyActivityRetailStoreRepresentativeRequest.json new file mode 100644 index 00000000..264fd351 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_Partner/MarketingGoodsSubsidyActivity/RetailStore/DeleteMarketingGoodsSubsidyActivityRetailStoreRepresentativeRequest.json @@ -0,0 +1,9 @@ +{ + "representative_info_list": [ + { + "openid": "oK7fFt8zzEZ909XH-LE2#" + } + ], + "out_request_no": "1002600620019090123143254436", + "delete_time": "2015-05-20T13:29:35.120+08:00" +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_Partner/MarketingGoodsSubsidyActivity/RetailStore/DeleteMarketingGoodsSubsidyActivityRetailStoreRepresentativeResponse.json b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_Partner/MarketingGoodsSubsidyActivity/RetailStore/DeleteMarketingGoodsSubsidyActivityRetailStoreRepresentativeResponse.json new file mode 100644 index 00000000..2e4d1a6e --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_Partner/MarketingGoodsSubsidyActivity/RetailStore/DeleteMarketingGoodsSubsidyActivityRetailStoreRepresentativeResponse.json @@ -0,0 +1,9 @@ +{ + "activity_id": "3118550000000004", + "failed_representative_info_list": [ + { + "openid": "oK7fFt8zzEZ909XH-LE2#" + } + ], + "delete_time": "2015-05-20T13:29:35.120+08:00" +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_Partner/MarketingGoodsSubsidyActivity/RetailStore/DeleteMarketingGoodsSubsidyActivityRetailStoreRequest.json b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_Partner/MarketingGoodsSubsidyActivity/RetailStore/DeleteMarketingGoodsSubsidyActivityRetailStoreRequest.json new file mode 100644 index 00000000..8bd5c2f2 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_Partner/MarketingGoodsSubsidyActivity/RetailStore/DeleteMarketingGoodsSubsidyActivityRetailStoreRequest.json @@ -0,0 +1,10 @@ +{ + "out_request_no": "1002600620019090123143254436", + "delete_time": "2015-05-20T13:29:35+08:00", + "stores": [ + { + "store_code": "abc_001", + "store_name": "幸福小店" + } + ] +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_Partner/MarketingGoodsSubsidyActivity/RetailStore/DeleteMarketingGoodsSubsidyActivityRetailStoreResponse.json b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_Partner/MarketingGoodsSubsidyActivity/RetailStore/DeleteMarketingGoodsSubsidyActivityRetailStoreResponse.json new file mode 100644 index 00000000..36e40bb9 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_Partner/MarketingGoodsSubsidyActivity/RetailStore/DeleteMarketingGoodsSubsidyActivityRetailStoreResponse.json @@ -0,0 +1,9 @@ +{ + "delete_time": "2015-05-20T13:29:35+08:00", + "failed_stores": [ + { + "store_code": "abc_001", + "store_name": "幸福小店" + } + ] +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_Partner/MarketingGoodsSubsidyActivity/RetailStore/GetMarketingGoodsSubsidyActivityRetailStoreByStoreCodeResponse.json b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_Partner/MarketingGoodsSubsidyActivity/RetailStore/GetMarketingGoodsSubsidyActivityRetailStoreByStoreCodeResponse.json new file mode 100644 index 00000000..344e4f34 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_Partner/MarketingGoodsSubsidyActivity/RetailStore/GetMarketingGoodsSubsidyActivityRetailStoreByStoreCodeResponse.json @@ -0,0 +1,4 @@ +{ + "store_code": "abc_001", + "store_name": "幸福小店" +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_Partner/MarketingGoodsSubsidyActivity/RetailStore/QueryMarketingGoodsSubsidyActivityRetailStoreRepresentativesResponse.json b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_Partner/MarketingGoodsSubsidyActivity/RetailStore/QueryMarketingGoodsSubsidyActivityRetailStoreRepresentativesResponse.json new file mode 100644 index 00000000..3048053b --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_Partner/MarketingGoodsSubsidyActivity/RetailStore/QueryMarketingGoodsSubsidyActivityRetailStoreRepresentativesResponse.json @@ -0,0 +1,10 @@ +{ + "total_count": 1000, + "data": [ + { + "openid": "oK7fFt8zzEZ909XH-LE2#" + } + ], + "offset": 0, + "limit": 10 +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_Partner/MarketingGoodsSubsidyActivity/RetailStore/QueryMarketingGoodsSubsidyActivityRetailStoresResponse.json b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_Partner/MarketingGoodsSubsidyActivity/RetailStore/QueryMarketingGoodsSubsidyActivityRetailStoresResponse.json new file mode 100644 index 00000000..4c1536c0 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_Partner/MarketingGoodsSubsidyActivity/RetailStore/QueryMarketingGoodsSubsidyActivityRetailStoresResponse.json @@ -0,0 +1,11 @@ +{ + "total_count": 1000, + "data": [ + { + "store_code": "abc_001", + "store_name": "幸福小店" + } + ], + "offset": 0, + "limit": 10 +}