mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-07-15 14:04:32 +08:00
feat(tenpayv3): 新增会员卡模板相关接口相关接口
This commit is contained in:
parent
df656663c7
commit
8fb60ffe75
@ -0,0 +1,157 @@
|
||||
using System;
|
||||
using System.Net.Http;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Flurl.Http;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
{
|
||||
/// <summary>
|
||||
/// 为 <see cref="WechatTenpayClient"/> 提供会员卡开放相关的 API 扩展方法。
|
||||
/// </summary>
|
||||
public static class WechatTenpayClientExecuteMarketingMemberCardOpenExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /marketing/membercard-open/cards 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/membercard_open/chapter3_1.shtml </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CreateMarketingMemberCardOpenCardResponse> ExecuteCreateMarketingMemberCardOpenCardAsync(this WechatTenpayClient client, Models.CreateMarketingMemberCardOpenCardRequest 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", "membercard-open", "cards");
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CreateMarketingMemberCardOpenCardResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /marketing/membercard-open/cards/{card_id}/upgrade 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/membercard_open/chapter3_6.shtml </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.UpgradeMarketingMemberCardOpenCardResponse> ExecuteUpgradeMarketingMemberCardOpenCardAsync(this WechatTenpayClient client, Models.UpgradeMarketingMemberCardOpenCardRequest 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", "membercard-open", "cards", request.CardId, "upgrade");
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.UpgradeMarketingMemberCardOpenCardResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /marketing/membercard-open/cards/{card_id}/codes/deposit 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/membercard_open/chapter3_7.shtml </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.DepositMarketingMemberCardOpenCardCodesResponse> ExecuteDepositMarketingMemberCardOpenCardCodesAsync(this WechatTenpayClient client, Models.DepositMarketingMemberCardOpenCardCodesRequest 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", "membercard-open", "cards", request.CardId, "codes", "deposit");
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.DepositMarketingMemberCardOpenCardCodesResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [GET] /marketing/membercard-open/cards 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/membercard_open/chapter3_3.shtml </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.QueryMarketingMemberCardOpenCardsResponse> ExecuteQueryMarketingMemberCardOpenCardsAsync(this WechatTenpayClient client, Models.QueryMarketingMemberCardOpenCardsRequest 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", "membercard-open", "cards")
|
||||
.SetQueryParam("appid", request.AppId);
|
||||
|
||||
if (request.BrandId != null)
|
||||
flurlReq.SetQueryParam("brand_id", request.BrandId);
|
||||
|
||||
if (request.Limit != null)
|
||||
flurlReq.SetQueryParam("limit", request.Limit.Value.ToString());
|
||||
|
||||
if (request.Offset != null)
|
||||
flurlReq.SetQueryParam("offset", request.Offset.Value.ToString());
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.QueryMarketingMemberCardOpenCardsResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [GET] /marketing/membercard-open/cards/{card_id} 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/membercard_open/chapter3_2.shtml </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.GetMarketingMemberCardOpenCardByCardIdResponse> ExecuteGetMarketingMemberCardOpenCardByCardIdAsync(this WechatTenpayClient client, Models.GetMarketingMemberCardOpenCardByCardIdRequest 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", "membercard-open", "cards", request.CardId);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.GetMarketingMemberCardOpenCardByCardIdResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [PATCH] /marketing/membercard-open/cards/{card_id} 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/membercard_open/chapter3_2.shtml </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.UpdateMarketingMemberCardOpenCardResponse> ExecuteUpdateMarketingMemberCardOpenCardAsync(this WechatTenpayClient client, Models.UpdateMarketingMemberCardOpenCardRequest 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, new HttpMethod("PATCH"), "marketing", "membercard-open", "cards", request.CardId);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.UpdateMarketingMemberCardOpenCardResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [DELETE] /marketing/membercard-open/cards/{card_id} 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/membercard_open/chapter3_11.shtml </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.DeleteMarketingMemberCardOpenCardResponse> ExecuteDeleteMarketingMemberCardOpenCardAsync(this WechatTenpayClient client, Models.DeleteMarketingMemberCardOpenCardRequest 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", "membercard-open", "cards", request.CardId);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.DeleteMarketingMemberCardOpenCardResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,305 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /marketing/membercard-open/cards 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CreateMarketingMemberCardOpenCardRequest : WechatTenpayRequest
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Brand
|
||||
{
|
||||
/// <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("display_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("display_name")]
|
||||
public string DisplayName { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
public class Date
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置有效期类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("type")]
|
||||
public string Type { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置有效期开始时间。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("available_begin_time")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RFC3339NullableDateTimeOffsetConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("available_begin_time")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RFC3339NullableDateTimeOffsetConverter))]
|
||||
public DateTimeOffset? AvailableBeginTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置有效期结束时间。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("available_end_time")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RFC3339NullableDateTimeOffsetConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("available_end_time")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RFC3339NullableDateTimeOffsetConverter))]
|
||||
public DateTimeOffset? AvailableEndTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置领取后 N 天内有效。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("available_day_after_receive")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("available_day_after_receive")]
|
||||
public int? AvailableDaysAfterReceive { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置领取后 N 天后生效。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("wait_days_after_receive")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("wait_days_after_receive")]
|
||||
public int? WaitDaysAfterReceive { get; set; }
|
||||
}
|
||||
|
||||
public class Balance
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置是否支持储值。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("need_balance")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("need_balance")]
|
||||
public bool? RequireBalance { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置储值小程序 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("balance_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("balance_appid")]
|
||||
public string? MiniProgramAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置储值小程序页面路径。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("balance_path")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("balance_path")]
|
||||
public string? MiniProgramPath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置储值 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("balance_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("balance_url")]
|
||||
public string? Url { get; set; }
|
||||
}
|
||||
|
||||
public class UserForm
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class CustomField
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置字段类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("type")]
|
||||
public string Type { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置字段名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("name")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置字段值。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("values")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("values")]
|
||||
public IList<string>? Values { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置平台提供的通用开卡信息字段列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("common_field_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("common_field_list")]
|
||||
public IList<string>? CommonFieldList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商户自定义的开卡信息字段列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("custom_field_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("custom_field_list")]
|
||||
public IList<Types.CustomField>? CustomFieldList { get; set; }
|
||||
}
|
||||
|
||||
public class AdditionalStatement
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置标题。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("title")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("title")]
|
||||
public string? Title { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public string? MiniProgramAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序页面路径。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("path")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("path")]
|
||||
public string? MiniProgramPath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("url")]
|
||||
public string? Url { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置公众号 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public string AppId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会员卡 Logo 媒体文件地址。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("logo_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("logo_url")]
|
||||
public string LogoMediaUrl { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置品牌信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("brand")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("brand")]
|
||||
public Types.Brand Brand { get; set; } = new Types.Brand();
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置卡名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("title")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("title")]
|
||||
public string Title { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置背景图片媒体文件地址。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("background_picture_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("background_picture_url")]
|
||||
public string BackgroundPictureMediaUrl { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置使用须知。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("description")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("description")]
|
||||
public string? Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置客服电话。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("service_phone")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("service_phone")]
|
||||
public string? ServicePhone { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会员码型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("code_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("code_type")]
|
||||
public string CodeType { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会员卡总库存。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("total_quantity")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("total_quantity")]
|
||||
public int? TotalQuantity { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置有效期。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("date_information")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("date_information")]
|
||||
public Types.Date Date { get; set; } = new Types.Date();
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会员卡 Code 分配类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("code_mode")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("code_mode")]
|
||||
public string? CodeMode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否展示会员等级。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("need_display_level")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("need_display_level")]
|
||||
public bool? RequireDisplayLevel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会员初始等级。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("init_level")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("init_level")]
|
||||
public string? InitializedLevel { get; set; }
|
||||
|
||||
/// <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("balance_information")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("balance_information")]
|
||||
public Types.Balance? Balance { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置开卡信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("user_information_form")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("user_information_form")]
|
||||
public Types.UserForm? UserForm { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置补充说明信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("additional_statement")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("additional_statement")]
|
||||
public Types.AdditionalStatement? AdditionalStatement { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否启用动态码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("need_dynamic_code")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("need_dynamic_code")]
|
||||
public bool? RequireDynamicCode { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /marketing/membercard-open/cards 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CreateMarketingMemberCardOpenCardResponse : GetMarketingMemberCardOpenCardByCardIdResponse
|
||||
{
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [DELETE] /marketing/membercard-open/cards/{card_id} 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class DeleteMarketingMemberCardOpenCardRequest : WechatTenpayRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置会员卡 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string CardId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [DELETE] /marketing/membercard-open/cards/{card_id} 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class DeleteMarketingMemberCardOpenCardResponse : WechatTenpayResponse
|
||||
{
|
||||
}
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /marketing/membercard-open/cards/{card_id}/codes/deposit 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class DepositMarketingMemberCardOpenCardCodesRequest : WechatTenpayRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置会员卡 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string CardId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会员卡 Code 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("code")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("code")]
|
||||
public IList<string> CodeList { get; set; } = new List<string>();
|
||||
}
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /marketing/membercard-open/cards/{card_id}/codes/deposit 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class DepositMarketingMemberCardOpenCardCodesResponse : WechatTenpayResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Result
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置会员卡 Code。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("code")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("code")]
|
||||
public string Code { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置错误信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("result")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("result")]
|
||||
public string ErrorMessage { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置结果列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("data")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("data")]
|
||||
public Types.Result[] ResultList { get; set; } = default!;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /marketing/membercard-open/cards/{card_id} 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class GetMarketingMemberCardOpenCardByCardIdRequest : WechatTenpayRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置会员卡 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string CardId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
@ -0,0 +1,581 @@
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /marketing/membercard-open/cards/{card_id} 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class GetMarketingMemberCardOpenCardByCardIdResponse : WechatTenpayResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Brand
|
||||
{
|
||||
/// <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("display_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("display_name")]
|
||||
public string DisplayName { get; set; } = default!;
|
||||
}
|
||||
|
||||
public class Date
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置有效期类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("type")]
|
||||
public string Type { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置有效期开始时间。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("available_begin_time")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RFC3339NullableDateTimeOffsetConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("available_begin_time")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RFC3339NullableDateTimeOffsetConverter))]
|
||||
public DateTimeOffset? AvailableBeginTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置有效期结束时间。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("available_end_time")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RFC3339NullableDateTimeOffsetConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("available_end_time")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RFC3339NullableDateTimeOffsetConverter))]
|
||||
public DateTimeOffset? AvailableEndTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置领取后 N 天内有效。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("available_day_after_receive")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("available_day_after_receive")]
|
||||
public int? AvailableDaysAfterReceive { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置领取后 N 天后生效。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("wait_days_after_receive")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("wait_days_after_receive")]
|
||||
public int? WaitDaysAfterReceive { get; set; }
|
||||
}
|
||||
|
||||
public class Balance
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置是否支持储值。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("need_balance")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("need_balance")]
|
||||
public bool? RequireBalance { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置储值小程序 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("balance_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("balance_appid")]
|
||||
public string? MiniProgramAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置储值小程序页面路径。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("balance_path")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("balance_path")]
|
||||
public string? MiniProgramPath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置储值 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("balance_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("balance_url")]
|
||||
public string? Url { get; set; }
|
||||
}
|
||||
|
||||
public class UserForm
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class CustomField
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置字段类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("type")]
|
||||
public string Type { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置字段名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("name")]
|
||||
public string Name { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置字段值。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("values")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("values")]
|
||||
public string[]? Values { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否允许修改。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("can_modify_after_activate")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("can_modify_after_activate")]
|
||||
public bool? CanModifyAfterActivate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置平台提供的通用开卡信息字段列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("common_field_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("common_field_list")]
|
||||
public string[]? CommonFieldList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商户自定义的开卡信息字段列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("custom_field_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("custom_field_list")]
|
||||
public Types.CustomField[]? CustomFieldList { get; set; }
|
||||
}
|
||||
|
||||
public class AdditionalStatement
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置标题。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("title")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("title")]
|
||||
public string? Title { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public string? MiniProgramAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序页面路径。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("path")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("path")]
|
||||
public string? MiniProgramPath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("url")]
|
||||
public string? Url { get; set; }
|
||||
}
|
||||
|
||||
public class Bonus
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置会员初始积分值。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("init_bonus")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("init_bonus")]
|
||||
public int InitializedValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置积分值文案。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("bonus_value_word")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("bonus_value_word")]
|
||||
public string? ValueWords { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置积分价值项标题。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("bonus_cost_title")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("bonus_cost_title")]
|
||||
public string? CostTitle { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置积分价值项文案。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("bonus_cost_word")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("bonus_cost_word")]
|
||||
public string? CostWords { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置跳转文案。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("bonus_jump_word")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("bonus_jump_word")]
|
||||
public string? JumpWords { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("bonus_jump_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("bonus_jump_appid")]
|
||||
public string? MiniProgramAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序页面路径。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("bonus_jump_path")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("bonus_jump_path")]
|
||||
public string? MiniProgramPath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置自助小程序 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("bonus_support_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("bonus_support_appid")]
|
||||
public string? SupportMiniProgramAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置自助小程序页面路径。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("bonus_support_path")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("bonus_support_path")]
|
||||
public string? SupportMiniProgramPath { get; set; }
|
||||
}
|
||||
|
||||
public class Favor
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置是否展示优惠券。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("show_coupon")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("show_coupon")]
|
||||
public bool RequireShowCoupon { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会员专享价文案。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("member_price_word")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("member_price_word")]
|
||||
public string? MemberPriceWords { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("member_price_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("member_price_appid")]
|
||||
public string? MiniProgramAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序页面路径。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("member_price_path")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("member_price_path")]
|
||||
public string? MiniProgramPath { get; set; }
|
||||
}
|
||||
|
||||
public class ServiceModule
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class MiniProgram
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置小程序 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public string AppId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序页面路径。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("path")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("path")]
|
||||
public string Path { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会员服务项 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("service_module_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("service_module_id")]
|
||||
public string ServiceModuleId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置跳转小程序信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("jump_miniprogram")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("jump_miniprogram")]
|
||||
public Types.MiniProgram? MiniProgram { get; set; }
|
||||
}
|
||||
|
||||
public class Invoice
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置跳转文案。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("fapiao_jump_word")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("fapiao_jump_word")]
|
||||
public string? JumpWords { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("fapiao_jump_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("fapiao_jump_appid")]
|
||||
public string? MiniProgramAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序页面路径。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("fapiao_jump_path")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("fapiao_jump_path")]
|
||||
public string? MiniProgramPath { get; set; }
|
||||
}
|
||||
|
||||
public class Guide
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置联系人名字。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("staff_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("staff_name")]
|
||||
public string StaffName { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置联系人头像媒体文件地址。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("head_image_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("head_image_url")]
|
||||
public string HeadImageMediaUrl { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置联系方式。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("contact_information_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("contact_information_name")]
|
||||
public string? ContactInformationName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置联系信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("contact_information_value")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("contact_information_value")]
|
||||
public string? ContactInformationValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置联系电话。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("phone_number")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("phone_number")]
|
||||
public string? PhoneNumber { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会员卡 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("card_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("card_id")]
|
||||
public string CardId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会员卡状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||
public string Status { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置公众号 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public string AppId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会员卡 Logo 媒体文件地址。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("logo_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("logo_url")]
|
||||
public string LogoMediaUrl { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置品牌信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("brand")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("brand")]
|
||||
public Types.Brand Brand { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置卡名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("title")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("title")]
|
||||
public string Title { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置背景图片媒体文件地址。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("background_picture_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("background_picture_url")]
|
||||
public string BackgroundPictureMediaUrl { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置使用须知。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("description")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("description")]
|
||||
public string? Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置客服电话。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("service_phone")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("service_phone")]
|
||||
public string? ServicePhone { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会员码型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("code_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("code_type")]
|
||||
public string CodeType { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会员卡总库存。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("total_quantity")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("total_quantity")]
|
||||
public int TotalQuantity { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置剩余库存。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("remain_quantity")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("remain_quantity")]
|
||||
public int? RemainQuantity { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置有效期。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("date_information")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("date_information")]
|
||||
public Types.Date Date { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会员卡 Code 分配类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("code_mode")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("code_mode")]
|
||||
public string? CodeMode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否展示会员等级。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("need_display_level")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("need_display_level")]
|
||||
public bool? RequireDisplayLevel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会员初始等级。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("init_level")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("init_level")]
|
||||
public string? InitializedLevel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商户请求单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("out_request_no")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("out_request_no")]
|
||||
public string OutRequestNumber { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置储值信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("balance_information")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("balance_information")]
|
||||
public Types.Balance? Balance { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置开卡信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("user_information_form")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("user_information_form")]
|
||||
public Types.UserForm? UserForm { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置补充说明信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("additional_statement")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("additional_statement")]
|
||||
public Types.AdditionalStatement? AdditionalStatement { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会员积分信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("bonus")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("bonus")]
|
||||
public Types.Bonus? Bonus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会员优惠信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("favor")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("favor")]
|
||||
public Types.Favor? Favor { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会员服务项列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("service_modules")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("service_modules")]
|
||||
public Types.ServiceModule[]? ServiceModuleList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会员发票信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("fapiao")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("fapiao")]
|
||||
public Types.Invoice? Invoice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置客服信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("guide")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("guide")]
|
||||
public Types.Guide? Guide { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否启用动态码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("need_dynamic_code")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("need_dynamic_code")]
|
||||
public bool? RequireDynamicCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置创建时间。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("create_time")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RFC3339DateTimeOffsetConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("create_time")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RFC3339DateTimeOffsetConverter))]
|
||||
public DateTimeOffset CreateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置更新时间。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("update_time")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RFC3339DateTimeOffsetConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("update_time")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RFC3339DateTimeOffsetConverter))]
|
||||
public DateTimeOffset UpdateTime { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /marketing/membercard-open/cards 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class QueryMarketingMemberCardOpenCardsRequest : WechatTenpayRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置品牌 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string? BrandId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置公众号 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string AppId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页大小。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public int? Limit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页开始位置。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public int? Offset { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,239 @@
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /marketing/membercard-open/cards 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class QueryMarketingMemberCardOpenCardsResponse : WechatTenpayResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Card
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Brand : GetMarketingMemberCardOpenCardByCardIdResponse.Types.Brand
|
||||
{
|
||||
}
|
||||
|
||||
public class Date : GetMarketingMemberCardOpenCardByCardIdResponse.Types.Date
|
||||
{
|
||||
}
|
||||
|
||||
public class Balance : GetMarketingMemberCardOpenCardByCardIdResponse.Types.Balance
|
||||
{
|
||||
}
|
||||
|
||||
public class UserForm : GetMarketingMemberCardOpenCardByCardIdResponse.Types.UserForm
|
||||
{
|
||||
}
|
||||
|
||||
public class AdditionalStatement: GetMarketingMemberCardOpenCardByCardIdResponse.Types.AdditionalStatement
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会员卡 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("card_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("card_id")]
|
||||
public string CardId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会员卡状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||
public string Status { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置公众号 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public string AppId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会员卡 Logo 媒体文件地址。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("logo_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("logo_url")]
|
||||
public string LogoMediaUrl { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置品牌信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("brand")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("brand")]
|
||||
public Types.Brand Brand { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置卡名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("title")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("title")]
|
||||
public string Title { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置背景图片媒体文件地址。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("background_picture_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("background_picture_url")]
|
||||
public string BackgroundPictureMediaUrl { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置使用须知。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("description")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("description")]
|
||||
public string? Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置客服电话。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("service_phone")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("service_phone")]
|
||||
public string? ServicePhone { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会员码型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("code_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("code_type")]
|
||||
public string CodeType { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会员卡总库存。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("total_quantity")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("total_quantity")]
|
||||
public int TotalQuantity { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置剩余库存。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("remain_quantity")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("remain_quantity")]
|
||||
public int? RemainQuantity { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置有效期。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("date_information")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("date_information")]
|
||||
public Types.Date Date { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会员卡 Code 分配类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("code_mode")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("code_mode")]
|
||||
public string? CodeMode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否展示会员等级。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("need_display_level")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("need_display_level")]
|
||||
public bool? RequireDisplayLevel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会员初始等级。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("init_level")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("init_level")]
|
||||
public string? InitializedLevel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商户请求单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("out_request_no")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("out_request_no")]
|
||||
public string OutRequestNumber { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置储值信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("balance_information")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("balance_information")]
|
||||
public Types.Balance? Balance { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置开卡信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("user_information_form")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("user_information_form")]
|
||||
public Types.UserForm? UserForm { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置补充说明信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("additional_statement")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("additional_statement")]
|
||||
public Types.AdditionalStatement? AdditionalStatement { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否启用动态码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("need_dynamic_code")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("need_dynamic_code")]
|
||||
public bool? RequireDynamicCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置创建时间。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("create_time")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RFC3339DateTimeOffsetConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("create_time")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RFC3339DateTimeOffsetConverter))]
|
||||
public DateTimeOffset CreateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置更新时间。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("update_time")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RFC3339DateTimeOffsetConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("update_time")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RFC3339DateTimeOffsetConverter))]
|
||||
public DateTimeOffset UpdateTime { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会员卡列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("data")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("data")]
|
||||
public Types.Card[] CardList { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否启用动态码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("need_dynamic_code")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("need_dynamic_code")]
|
||||
public bool? RequireDynamicCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页大小。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("limit")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("limit")]
|
||||
public int Limit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页开始位置。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("offset")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("offset")]
|
||||
public int Offset { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置活动总数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("total_count")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("total_count")]
|
||||
public int TotalCount { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,168 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [PATCH] /marketing/membercard-open/cards/{card_id} 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class UpdateMarketingMemberCardOpenCardRequest : WechatTenpayRequest
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Date : CreateMarketingMemberCardOpenCardRequest.Types.Date
|
||||
{
|
||||
}
|
||||
|
||||
public class Balance : CreateMarketingMemberCardOpenCardRequest.Types.Balance
|
||||
{
|
||||
}
|
||||
|
||||
public class UserForm
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class CustomField : CreateMarketingMemberCardOpenCardRequest.Types.UserForm.Types.CustomField
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否允许修改。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("can_modify_after_activate")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("can_modify_after_activate")]
|
||||
public bool? CanModifyAfterActivate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置平台提供的通用开卡信息字段列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("common_field_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("common_field_list")]
|
||||
public IList<string>? CommonFieldList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商户自定义的开卡信息字段列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("custom_field_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("custom_field_list")]
|
||||
public IList<Types.CustomField>? CustomFieldList { get; set; }
|
||||
}
|
||||
|
||||
public class AdditionalStatement : CreateMarketingMemberCardOpenCardRequest.Types.AdditionalStatement
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会员卡 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string CardId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置公众号 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public string? AppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会员卡 Logo 媒体文件地址。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("logo_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("logo_url")]
|
||||
public string? LogoMediaUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置卡名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("title")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("title")]
|
||||
public string? Title { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置背景图片媒体文件地址。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("background_picture_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("background_picture_url")]
|
||||
public string? BackgroundPictureMediaUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置使用须知。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("description")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("description")]
|
||||
public string? Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置客服电话。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("service_phone")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("service_phone")]
|
||||
public string? ServicePhone { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会员卡总库存。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("total_quantity")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("total_quantity")]
|
||||
public int? TotalQuantity { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置有效期。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("date_information")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("date_information")]
|
||||
public Types.Date? Date { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会员卡 Code 分配类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("code_mode")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("code_mode")]
|
||||
public int? CodeMode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否展示会员等级。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("need_display_level")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("need_display_level")]
|
||||
public bool? RequireDisplayLevel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会员初始等级。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("init_level")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("init_level")]
|
||||
public string? InitializedLevel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置储值信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("balance_information")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("balance_information")]
|
||||
public Types.Balance? Balance { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置开卡信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("user_information_form")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("user_information_form")]
|
||||
public Types.UserForm? UserForm { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置补充说明信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("additional_statement")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("additional_statement")]
|
||||
public Types.AdditionalStatement? AdditionalStatement { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否启用动态码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("need_dynamic_code")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("need_dynamic_code")]
|
||||
public bool? RequireDynamicCode { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [PATCH] /marketing/membercard-open/cards/{card_id} 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class UpdateMarketingMemberCardOpenCardResponse : WechatTenpayResponse
|
||||
{
|
||||
}
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /marketing/membercard-open/cards/{card_id}/upgrade 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class UpgradeMarketingMemberCardOpenCardRequest : WechatTenpayRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置会员卡 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string CardId { 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>
|
||||
/// 获取或设置公众号 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public string AppId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /marketing/membercard-open/cards/{card_id}/upgrade 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class UpgradeMarketingMemberCardOpenCardResponse : WechatTenpayResponse
|
||||
{
|
||||
}
|
||||
}
|
@ -4,6 +4,7 @@ using System.Linq;
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Net.Http.Headers;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Flurl.Http;
|
||||
@ -148,12 +149,13 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
private async Task<T> GetResposneAsync<T>(IFlurlResponse flurlResponse)
|
||||
where T : WechatTenpayResponse, new()
|
||||
{
|
||||
string contentType = flurlResponse.Headers.GetAll("Content-Type").FirstOrDefault() ?? string.Empty;
|
||||
bool contentTypeIsNotJson =
|
||||
(flurlResponse.StatusCode == (int)HttpStatusCode.NoContent) ||
|
||||
(flurlResponse.StatusCode == (int)HttpStatusCode.OK && !contentType.StartsWith("application/json") && !contentType.StartsWith("text/json"));
|
||||
string mediaType = flurlResponse.Headers.GetAll("Content-Type").FirstOrDefault() ?? "application/octet-stream";
|
||||
bool jsonable = (flurlResponse.StatusCode != (int)HttpStatusCode.NoContent) &&
|
||||
(mediaType.StartsWith("application/json") || !mediaType.StartsWith("text/json"));
|
||||
|
||||
byte[] bytes = await flurlResponse.GetBytesAsync().ConfigureAwait(false);
|
||||
T result = jsonable ? JsonSerializer.Deserialize<T>(Encoding.UTF8.GetString(bytes)) : new T();
|
||||
|
||||
T result = contentTypeIsNotJson ? new T() : await flurlResponse.GetJsonAsync<T>().ConfigureAwait(false);
|
||||
result.RawStatus = flurlResponse.StatusCode;
|
||||
result.RawHeaders = new ReadOnlyDictionary<string, string>(
|
||||
flurlResponse.Headers
|
||||
@ -163,7 +165,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
v => string.Join(", ", v.Select(e => e.Value))
|
||||
)
|
||||
);
|
||||
result.RawBytes = await flurlResponse.ResponseMessage.Content.ReadAsByteArrayAsync().ConfigureAwait(false);
|
||||
result.RawBytes = bytes;
|
||||
result.WechatpayRequestId = flurlResponse.Headers.GetAll("Request-ID").FirstOrDefault() ?? string.Empty;
|
||||
result.WechatpayNonce = flurlResponse.Headers.GetAll("Wechatpay-Nonce").FirstOrDefault() ?? string.Empty;
|
||||
result.WechatpayTimestamp = flurlResponse.Headers.GetAll("Wechatpay-Timestamp").FirstOrDefault() ?? string.Empty;
|
||||
|
@ -0,0 +1,48 @@
|
||||
{
|
||||
"appid": "wxea9c30890f48d5ae",
|
||||
"logo_url": "https://wxpaylogo.qpic.cn/wxpaylogo/PiajxSqBRaEIPAeia7Imvtsn7sYGNcEj33YzVvJF88ECQ19LXId8ZL2Q/0",
|
||||
"brand": {
|
||||
"brand_id": "1004",
|
||||
"display_name": "微信支付"
|
||||
},
|
||||
"title": "微信支付测试卡",
|
||||
"background_picture_url": "https://wxpaylogo.qpic.cn/wxpaylogo/PiajxSqBRaEIPAeia7Imvtsn7sYGNcEj33YzVvJF88ECQ19LXId8ZL2Q/0",
|
||||
"description": "使用本会员卡表示你同意xxx公司的协议",
|
||||
"service_phone": "010-8877xxxx",
|
||||
"code_type": "BAR_CODE",
|
||||
"total_quantity": 5000000,
|
||||
"date_information": {
|
||||
"type": "FIX_TIME_RANGE",
|
||||
"available_begin_time": "2020-05-20T13:29:35.120+08:00",
|
||||
"available_end_time": "2030-05-20T13:29:35.120+08:00",
|
||||
"available_day_after_receive": 200,
|
||||
"wait_days_after_receive": 1
|
||||
},
|
||||
"code_mode": "SYSTEM_ALLOCATE",
|
||||
"need_display_level": true,
|
||||
"init_level": "白银会员",
|
||||
"out_request_no": "100002322019090134234sfdf",
|
||||
"balance_information": {
|
||||
"need_balance": false,
|
||||
"balance_appid": "wxea9c30890f48d5ae",
|
||||
"balance_path": "pages/balance/balance",
|
||||
"balance_url": "https://xxx.com"
|
||||
},
|
||||
"user_information_form": {
|
||||
"common_field_list": ["USER_FORM_FLAG_MOBILE", "USER_FORM_FLAG_SEX", "USER_FORM_FLAG_NAME", "USER_FORM_FLAG_BIRTHDAY"],
|
||||
"custom_field_list": [
|
||||
{
|
||||
"type": "TEXT",
|
||||
"name": "喜欢的运动",
|
||||
"values": ["篮球", "足球", "羽毛球"]
|
||||
}
|
||||
]
|
||||
},
|
||||
"additional_statement": {
|
||||
"title": "xxx会员卡使用须知",
|
||||
"url": "https://xxx.111.com",
|
||||
"appid": "wxea9c30890f48d5ae",
|
||||
"path": "pages/statement/statement"
|
||||
},
|
||||
"need_dynamic_code": false
|
||||
}
|
@ -0,0 +1,53 @@
|
||||
{
|
||||
"card_id": "pbLatjvWOibDc5-TBnbUk1pD12o0",
|
||||
"create_time": "2020-05-20T13:29:35.120+08:00",
|
||||
"update_time": "2020-05-20T13:29:35.120+08:00",
|
||||
"remain_quantity": 1004,
|
||||
"status": "NOT_APPROVE",
|
||||
"brand": {
|
||||
"brand_id": "1004",
|
||||
"display_name": "微信支付"
|
||||
},
|
||||
"appid": "wxea9c30890f48d5ae",
|
||||
"logo_url": "https://wxpaylogo.qpic.cn/wxpaylogo/PiajxSqBRaEIPAeia7Imvtsn7sYGNcEj33YzVvJF88ECQ19LXId8ZL2Q/0",
|
||||
"title": "微信支付测试卡",
|
||||
"background_picture_url": "https://wxpaylogo.qpic.cn/wxpaylogo/PiajxSqBRaEIPAeia7Imvtsn7sYGNcEj33YzVvJF88ECQ19LXId8ZL2Q/0",
|
||||
"description": "使用本会员卡表示你同意xxx公司的协议",
|
||||
"service_phone": "010-8877xxxx",
|
||||
"code_type": "BAR_CODE",
|
||||
"total_quantity": 5000000,
|
||||
"date_information": {
|
||||
"type": "FIX_TIME_RANGE",
|
||||
"available_begin_time": "2020-05-20T13:29:35.120+08:00",
|
||||
"available_end_time": "2030-05-20T13:29:35.120+08:00",
|
||||
"available_day_after_receive": 200,
|
||||
"wait_days_after_receive": 1
|
||||
},
|
||||
"code_mode": "SYSTEM_ALLOCATE",
|
||||
"need_display_level": true,
|
||||
"init_level": "白银会员",
|
||||
"out_request_no": "100002322019090134234sfdf",
|
||||
"balance_information": {
|
||||
"need_balance": false,
|
||||
"balance_appid": "wxea9c30890f48d5ae",
|
||||
"balance_path": "pages/balance/balance",
|
||||
"balance_url": "https://xxx.com"
|
||||
},
|
||||
"user_information_form": {
|
||||
"common_field_list": ["USER_FORM_FLAG_MOBILE", "USER_FORM_FLAG_SEX", "USER_FORM_FLAG_NAME", "USER_FORM_FLAG_BIRTHDAY"],
|
||||
"custom_field_list": [
|
||||
{
|
||||
"type": "TEXT",
|
||||
"name": "喜欢的运动",
|
||||
"values": ["篮球", "足球", "羽毛球"]
|
||||
}
|
||||
]
|
||||
},
|
||||
"additional_statement": {
|
||||
"title": "xxx会员卡使用须知",
|
||||
"url": "https://xxx.111.com",
|
||||
"appid": "wxea9c30890f48d5ae",
|
||||
"path": "pages/statement/statement"
|
||||
},
|
||||
"need_dynamic_code": false
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
{
|
||||
"code": ["478515832665"]
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"code": "478515832665",
|
||||
"result": "SUCCESS"
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1 @@
|
||||
{}
|
@ -0,0 +1,92 @@
|
||||
{
|
||||
"card_id": "pbLatjvWOibDc5-TBnbUk1pD12o0",
|
||||
"create_time": "2020-05-20T13:29:35.120+08:00",
|
||||
"update_time": "2020-05-20T13:29:35.120+08:00",
|
||||
"remain_quantity": 20,
|
||||
"status": "NOT_APPROVE",
|
||||
"brand": {
|
||||
"brand_id": "1004",
|
||||
"display_name": "微信支付"
|
||||
},
|
||||
"appid": "wxea9c30890f48d5ae",
|
||||
"logo_url": "https://wxpaylogo.qpic.cn/wxpaylogo/PiajxSqBRaEIPAeia7Imvtsn7sYGNcEj33YzVvJF88ECQ19LXId8ZL2Q/0",
|
||||
"title": "微信支付测试卡",
|
||||
"background_picture_url": "https://wxpaylogo.qpic.cn/wxpaylogo/PiajxSqBRaEIPAeia7Imvtsn7sYGNcEj33YzVvJF88ECQ19LXId8ZL2Q/0",
|
||||
"description": "使用本会员卡表示你同意xxx公司的协议",
|
||||
"service_phone": "010-8877xxxx",
|
||||
"code_type": "BAR_CODE",
|
||||
"total_quantity": 5000000,
|
||||
"date_information": {
|
||||
"type": "FIX_TIME_RANGE",
|
||||
"available_begin_time": "2020-05-20T13:29:35.120+08:00",
|
||||
"available_end_time": "2030-05-20T13:29:35.120+08:00",
|
||||
"available_day_after_receive": 200,
|
||||
"wait_days_after_receive": 2
|
||||
},
|
||||
"code_mode": "SYSTEM_ALLOCATE",
|
||||
"need_display_level": true,
|
||||
"init_level": "白银会员",
|
||||
"out_request_no": "100002322019090134234sfdf",
|
||||
"balance_information": {
|
||||
"need_balance": false,
|
||||
"balance_appid": "wxea9c30890f48d5ae",
|
||||
"balance_path": "pages/balance/balance",
|
||||
"balance_url": "https://xxx.com"
|
||||
},
|
||||
"user_information_form": {
|
||||
"can_modify_after_activate": false,
|
||||
"common_field_list": ["USER_FORM_FLAG_MOBILE", "USER_FORM_FLAG_SEX", "USER_FORM_FLAG_NAME", "USER_FORM_FLAG_BIRTHDAY"],
|
||||
"custom_field_list": [
|
||||
{
|
||||
"type": "TEXT",
|
||||
"name": "喜欢的运动",
|
||||
"values": ["篮球", "足球", "羽毛球"]
|
||||
}
|
||||
]
|
||||
},
|
||||
"additional_statement": {
|
||||
"title": "xxx会员卡使用须知",
|
||||
"url": "https://xxx.111.com",
|
||||
"appid": "wxea9c30890f48d5ae",
|
||||
"path": "pages/statement/statement"
|
||||
},
|
||||
"bonus": {
|
||||
"init_bonus": 100,
|
||||
"bonus_value_word": "我的积分",
|
||||
"bonus_cost_title": "积分兑换",
|
||||
"bonus_cost_word": "500积分=2小时免费停车券",
|
||||
"bonus_jump_word": "更多礼品",
|
||||
"bonus_jump_appid": "wxea9c30a90fs8d3fe",
|
||||
"bonus_jump_path": "/pages/bonus/bonus",
|
||||
"bonus_support_appid": "wxea9c30a90fs8d3fe",
|
||||
"bonus_support_path": "pages/selfbonus/selfbonus"
|
||||
},
|
||||
"favor": {
|
||||
"show_coupon": true,
|
||||
"member_price_word": "周二会员全场八折",
|
||||
"member_price_appid": "wxea9c30a90fs8d3fe",
|
||||
"member_price_path": "pages/favor/favor"
|
||||
},
|
||||
"service_modules": [
|
||||
{
|
||||
"service_module_id": "666",
|
||||
"jump_miniprogram": {
|
||||
"appid": "wx37178d097a6851d8",
|
||||
"path": "pages/index/index"
|
||||
}
|
||||
}
|
||||
],
|
||||
"fapiao": {
|
||||
"fapiao_jump_word": "查看我的发票",
|
||||
"fapiao_jump_appid": "wxea9c30a90fs8d3fe",
|
||||
"fapiao_jump_path": "pages/fapiao/fapiao"
|
||||
},
|
||||
"guide": {
|
||||
"staff_name": "酒店管家-何小明",
|
||||
"head_image_url": "https://wxpaylogo.qpic.cn/wxpaylogo/PiajxSqBRaEIPAeia7Imvtsn7sYGNcEj33YzVvJF88ECQ19LXId8ZL2Q/0",
|
||||
"contact_information_name": "微信号",
|
||||
"contact_information_value": "weixin123",
|
||||
"phone_number": "0755-12345677"
|
||||
},
|
||||
"need_dynamic_code": false
|
||||
}
|
@ -0,0 +1 @@
|
||||
{}
|
@ -0,0 +1,61 @@
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"card_id": "pbLatjvWOibDc5-TBnbUk1pD12o0",
|
||||
"create_time": "2020-05-20T13:29:35.120+08:00",
|
||||
"update_time": "2020-05-20T13:29:35.120+08:00",
|
||||
"remain_quantity": 20,
|
||||
"status": "NOT_APPROVE",
|
||||
"brand": {
|
||||
"brand_id": "1004",
|
||||
"display_name": "微信支付"
|
||||
},
|
||||
"appid": "wxea9c30890f48d5ae",
|
||||
"logo_url": "https://wxpaylogo.qpic.cn/wxpaylogo/PiajxSqBRaEIPAeia7Imvtsn7sYGNcEj33YzVvJF88ECQ19LXId8ZL2Q/0",
|
||||
"title": "微信支付测试卡",
|
||||
"background_picture_url": "https://wxpaylogo.qpic.cn/wxpaylogo/PiajxSqBRaEIPAeia7Imvtsn7sYGNcEj33YzVvJF88ECQ19LXId8ZL2Q/0",
|
||||
"description": "使用本会员卡表示你同意xxx公司的协议,解释权归xxx公司所有",
|
||||
"service_phone": "010-8877xxxx",
|
||||
"code_type": "BAR_CODE",
|
||||
"total_quantity": 5000000,
|
||||
"date_information": {
|
||||
"type": "FIX_TIME_RANGE",
|
||||
"available_begin_time": "2020-05-20T13:29:35.120+08:00",
|
||||
"available_end_time": "2030-05-20T13:29:35.120+08:00",
|
||||
"available_day_after_receive": 200,
|
||||
"wait_days_after_receive": 2
|
||||
},
|
||||
"code_mode": "SYSTEM_ALLOCATE",
|
||||
"need_display_level": true,
|
||||
"init_level": "白银会员",
|
||||
"out_request_no": "100002322019090134234sfdf",
|
||||
"balance_information": {
|
||||
"need_balance": false,
|
||||
"balance_appid": "wxea9c30890f48d5ae",
|
||||
"balance_path": "pages/balance/balance",
|
||||
"balance_url": "https://xxx.com"
|
||||
},
|
||||
"user_information_form": {
|
||||
"can_modify_after_activate": false,
|
||||
"common_field_list": ["USER_FORM_FLAG_MOBILE", "USER_FORM_FLAG_SEX", "USER_FORM_FLAG_NAME", "USER_FORM_FLAG_BIRTHDAY"],
|
||||
"custom_field_list": [
|
||||
{
|
||||
"type": "TEXT",
|
||||
"name": "喜欢的运动",
|
||||
"values": ["篮球", "足球", "羽毛球"]
|
||||
}
|
||||
]
|
||||
},
|
||||
"additional_statement": {
|
||||
"title": "xxx会员卡使用须知",
|
||||
"url": "https://xxx.111.com",
|
||||
"appid": "wxea9c30890f48d5ae",
|
||||
"path": "pages/statement/statement"
|
||||
}
|
||||
}
|
||||
],
|
||||
"need_dynamic_code": false,
|
||||
"total_count": 20,
|
||||
"offset": 1,
|
||||
"limit": 20
|
||||
}
|
@ -0,0 +1,41 @@
|
||||
{
|
||||
"appid": "wxea9c30890f48d5ae",
|
||||
"logo_url": "https://wxpaylogo.qpic.cn/wxpaylogo/PiajxSqBRaEIPAeia7Imvtsn7sYGNcEj33YzVvJF88ECQ19LXId8ZL2Q/0",
|
||||
"title": "微信支付测试卡",
|
||||
"background_picture_url": "https://wxpaylogo.qpic.cn/wxpaylogo/PiajxSqBRaEIPAeia7Imvtsn7sYGNcEj33YzVvJF88ECQ19LXId8ZL2Q/0",
|
||||
"description": "使用本会员卡表示你同意xxx公司的协议",
|
||||
"service_phone": "010-8877xxxx",
|
||||
"total_quantity": 5000000,
|
||||
"date_information": {
|
||||
"type": "FIX_TIME_RANGE",
|
||||
"available_end_time": "2030-05-20T13:29:35.120+08:00",
|
||||
"available_day_after_receive": 200,
|
||||
"wait_days_after_receive": 2
|
||||
},
|
||||
"need_display_level": false,
|
||||
"init_level": "白银会员",
|
||||
"balance_information": {
|
||||
"need_balance": false,
|
||||
"balance_appid": "wxea9c30890f48d5ae",
|
||||
"balance_path": "pages/balance/balance",
|
||||
"balance_url": "https://xxx.com"
|
||||
},
|
||||
"user_information_form": {
|
||||
"can_modify_after_activate": false,
|
||||
"common_field_list": ["USER_FORM_FLAG_MOBILE", "USER_FORM_FLAG_SEX"],
|
||||
"custom_field_list": [
|
||||
{
|
||||
"type": "TEXT",
|
||||
"name": "喜欢的运动",
|
||||
"values": ["篮球", "足球", "羽毛球"]
|
||||
}
|
||||
]
|
||||
},
|
||||
"additional_statement": {
|
||||
"title": "xxx会员卡使用须知",
|
||||
"url": "https://xxx.111.com",
|
||||
"appid": "wxea9c30890f48d5ae",
|
||||
"path": "pages/statement/statement"
|
||||
},
|
||||
"need_dynamic_code": false
|
||||
}
|
@ -0,0 +1 @@
|
||||
{}
|
@ -0,0 +1,4 @@
|
||||
{
|
||||
"brand_id": "1001622624",
|
||||
"appid": "wxea9c30890f48d5ae"
|
||||
}
|
Loading…
Reference in New Issue
Block a user