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
71c287ab2c
commit
304052da92
@ -420,5 +420,89 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
|||||||
return await client.SendRequestWithJsonAsync<Models.ActivateMarketingMemberCardOpenCardCodeResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
return await client.SendRequestWithJsonAsync<Models.ActivateMarketingMemberCardOpenCardCodeResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region Activation
|
||||||
|
/// <summary>
|
||||||
|
/// <para>异步调用 [PATCH] /marketing/membercard-open/cards/{card_id}/rights 接口。</para>
|
||||||
|
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/membercard_open/chapter5_1.shtml </para>
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="client"></param>
|
||||||
|
/// <param name="request"></param>
|
||||||
|
/// <param name="cancellationToken"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static async Task<Models.UpdateMarketingMemberCardOpenCardRightsResponse> ExecuteUpdateMarketingMemberCardOpenCardRightsAsync(this WechatTenpayClient client, Models.UpdateMarketingMemberCardOpenCardRightsRequest 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, "rights");
|
||||||
|
|
||||||
|
return await client.SendRequestWithJsonAsync<Models.UpdateMarketingMemberCardOpenCardRightsResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// <para>异步调用 [PATCH] /marketing/membercard-open/cards/{card_id}/codes/{code}/rights 接口。</para>
|
||||||
|
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/membercard_open/chapter5_2.shtml </para>
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="client"></param>
|
||||||
|
/// <param name="request"></param>
|
||||||
|
/// <param name="cancellationToken"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static async Task<Models.UpdateMarketingMemberCardOpenCardCodeRightsResponse> ExecuteUpdateMarketingMemberCardOpenCardCodeRightsAsync(this WechatTenpayClient client, Models.UpdateMarketingMemberCardOpenCardCodeRightsRequest 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, "codes", request.Code, "rights");
|
||||||
|
|
||||||
|
return await client.SendRequestWithJsonAsync<Models.UpdateMarketingMemberCardOpenCardCodeRightsResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// <para>异步调用 [POST] /marketing/membercard-open/cards/{card_id}/codes/{code}/bonus/prepare 接口。</para>
|
||||||
|
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/membercard_open/chapter10_3.shtml </para>
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="client"></param>
|
||||||
|
/// <param name="request"></param>
|
||||||
|
/// <param name="cancellationToken"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static async Task<Models.PrepareMarketingMemberCardOpenCardCodeBonusResponse> ExecutePrepareMarketingMemberCardOpenCardCodeBonusAsync(this WechatTenpayClient client, Models.PrepareMarketingMemberCardOpenCardCodeBonusRequest request, CancellationToken cancellationToken = default)
|
||||||
|
{
|
||||||
|
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||||
|
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||||
|
|
||||||
|
if (request.MerchantId == null)
|
||||||
|
request.MerchantId = client.Credentials.MerchantId;
|
||||||
|
|
||||||
|
IFlurlRequest flurlReq = client
|
||||||
|
.CreateRequest(request, HttpMethod.Post, "marketing", "membercard-open", "cards", request.CardId, "codes", request.Code, "bonus", "prepare");
|
||||||
|
|
||||||
|
return await client.SendRequestWithJsonAsync<Models.PrepareMarketingMemberCardOpenCardCodeBonusResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// <para>异步调用 [POST] /marketing/membercard-open/cards/{card_id}/codes/{code}/bonus/commit 接口。</para>
|
||||||
|
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/membercard_open/chapter10_2.shtml </para>
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="client"></param>
|
||||||
|
/// <param name="request"></param>
|
||||||
|
/// <param name="cancellationToken"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static async Task<Models.CommitMarketingMemberCardOpenCardCodeBonusResponse> ExecuteCommitMarketingMemberCardOpenCardCodeBonusAsync(this WechatTenpayClient client, Models.CommitMarketingMemberCardOpenCardCodeBonusRequest request, CancellationToken cancellationToken = default)
|
||||||
|
{
|
||||||
|
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||||
|
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||||
|
|
||||||
|
if (request.MerchantId == null)
|
||||||
|
request.MerchantId = client.Credentials.MerchantId;
|
||||||
|
|
||||||
|
IFlurlRequest flurlReq = client
|
||||||
|
.CreateRequest(request, HttpMethod.Post, "marketing", "membercard-open", "cards", request.CardId, "codes", request.Code, "bonus", "commit");
|
||||||
|
|
||||||
|
return await client.SendRequestWithJsonAsync<Models.CommitMarketingMemberCardOpenCardCodeBonusResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -265,7 +265,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[Newtonsoft.Json.JsonProperty("init_level")]
|
[Newtonsoft.Json.JsonProperty("init_level")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("init_level")]
|
[System.Text.Json.Serialization.JsonPropertyName("init_level")]
|
||||||
public string? InitializedLevel { get; set; }
|
public string? InitialLevel { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置商户请求单号。
|
/// 获取或设置商户请求单号。
|
||||||
|
@ -188,7 +188,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[Newtonsoft.Json.JsonProperty("init_bonus")]
|
[Newtonsoft.Json.JsonProperty("init_bonus")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("init_bonus")]
|
[System.Text.Json.Serialization.JsonPropertyName("init_bonus")]
|
||||||
public int InitializedValue { get; set; }
|
public int InitialBonusValue { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置积分值文案。
|
/// 获取或设置积分值文案。
|
||||||
@ -488,7 +488,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[Newtonsoft.Json.JsonProperty("init_level")]
|
[Newtonsoft.Json.JsonProperty("init_level")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("init_level")]
|
[System.Text.Json.Serialization.JsonPropertyName("init_level")]
|
||||||
public string? InitializedLevel { get; set; }
|
public string? InitialLevel { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置商户请求单号。
|
/// 获取或设置商户请求单号。
|
||||||
|
@ -144,7 +144,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[Newtonsoft.Json.JsonProperty("init_level")]
|
[Newtonsoft.Json.JsonProperty("init_level")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("init_level")]
|
[System.Text.Json.Serialization.JsonPropertyName("init_level")]
|
||||||
public string? InitializedLevel { get; set; }
|
public string? InitialLevel { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置商户请求单号。
|
/// 获取或设置商户请求单号。
|
||||||
|
@ -135,7 +135,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[Newtonsoft.Json.JsonProperty("init_level")]
|
[Newtonsoft.Json.JsonProperty("init_level")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("init_level")]
|
[System.Text.Json.Serialization.JsonPropertyName("init_level")]
|
||||||
public string? InitializedLevel { get; set; }
|
public string? InitialLevel { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置储值信息。
|
/// 获取或设置储值信息。
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// <para>表示 [POST] /marketing/membercard-open/cards/{card_id}/codes/{code}/bonus/commit 接口的请求。</para>
|
||||||
|
/// </summary>
|
||||||
|
public class CommitMarketingMemberCardOpenCardCodeBonusRequest : PrepareMarketingMemberCardOpenCardCodeBonusRequest
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,9 @@
|
|||||||
|
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// <para>表示 [POST] /marketing/membercard-open/cards/{card_id}/codes/{code}/bonus/commit 接口的响应。</para>
|
||||||
|
/// </summary>
|
||||||
|
public class CommitMarketingMemberCardOpenCardCodeBonusResponse : WechatTenpayResponse
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,50 @@
|
|||||||
|
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// <para>表示 [POST] /marketing/membercard-open/cards/{card_id}/codes/{code}/bonus/prepare 接口的请求。</para>
|
||||||
|
/// </summary>
|
||||||
|
public class PrepareMarketingMemberCardOpenCardCodeBonusRequest : WechatTenpayRequest
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置会员卡 ID。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonIgnore]
|
||||||
|
[System.Text.Json.Serialization.JsonIgnore]
|
||||||
|
public string CardId { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置会员卡 Code。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonIgnore]
|
||||||
|
[System.Text.Json.Serialization.JsonIgnore]
|
||||||
|
public string Code { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置微信商户号。如果不指定将使用构造 <see cref="WechatTenpayClient"/> 时的 <see cref="WechatTenpayClientOptions.MerchantId"/> 参数。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("mchid")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("mchid")]
|
||||||
|
public string? MerchantId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置子商户号。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("sub_mchid")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("sub_mchid")]
|
||||||
|
public string? SubMerchantId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置商户订单号。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("out_trade_no")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("out_trade_no")]
|
||||||
|
public string OutTradeNumber { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置本次积分变动值的绝对值。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("bonus_value")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("bonus_value")]
|
||||||
|
public int? BonusDiff { get; set; }
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,9 @@
|
|||||||
|
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// <para>表示 [POST] /marketing/membercard-open/cards/{card_id}/codes/{code}/bonus/prepare 接口的响应。</para>
|
||||||
|
/// </summary>
|
||||||
|
public class PrepareMarketingMemberCardOpenCardCodeBonusResponse : WechatTenpayResponse
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,85 @@
|
|||||||
|
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// <para>表示 [PATCH] /marketing/membercard-open/cards/{card_id}/codes/{code}/rights 接口的请求。</para>
|
||||||
|
/// </summary>
|
||||||
|
public class UpdateMarketingMemberCardOpenCardCodeRightsRequest : WechatTenpayRequest
|
||||||
|
{
|
||||||
|
public static class Types
|
||||||
|
{
|
||||||
|
public class Guide : UpdateMarketingMemberCardOpenCardRightsRequest.Types.Guide
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置会员卡 ID。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonIgnore]
|
||||||
|
[System.Text.Json.Serialization.JsonIgnore]
|
||||||
|
public string CardId { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置会员卡 Code。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonIgnore]
|
||||||
|
[System.Text.Json.Serialization.JsonIgnore]
|
||||||
|
public string Code { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置更新前用户积分(单位:分)。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("before_bonus_value")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("before_bonus_value")]
|
||||||
|
public int? BonusValueBefore { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置更新后用户积分(单位:分)。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("bonus_value")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("bonus_value")]
|
||||||
|
public int? BonusValue { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置本次积分变动值。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("add_bonus_value")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("add_bonus_value")]
|
||||||
|
public int? BonusDiff { 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("need_inform_bonus")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("need_inform_bonus")]
|
||||||
|
public bool? RequreInformBonus { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置会员专享价文案。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("member_price_word")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("member_price_word")]
|
||||||
|
public string? MemberPriceWords { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置发票跳转文案。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("fapiao_jump_word")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("fapiao_jump_word")]
|
||||||
|
public string? InvoiceJumpWords { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置客服信息。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("guide")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("guide")]
|
||||||
|
public Types.Guide? Guide { get; set; }
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,9 @@
|
|||||||
|
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// <para>表示 [PATCH] /marketing/membercard-open/cards/{card_id}/codes/{code}/rights 接口的响应。</para>
|
||||||
|
/// </summary>
|
||||||
|
public class UpdateMarketingMemberCardOpenCardCodeRightsResponse : WechatTenpayResponse
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,248 @@
|
|||||||
|
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// <para>表示 [PATCH] /marketing/membercard-open/cards/{card_id}/rights 接口的请求。</para>
|
||||||
|
/// </summary>
|
||||||
|
public class UpdateMarketingMemberCardOpenCardRightsRequest : WechatTenpayRequest
|
||||||
|
{
|
||||||
|
public static class Types
|
||||||
|
{
|
||||||
|
public class Bonus
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置会员初始积分值。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("init_bonus")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("init_bonus")]
|
||||||
|
public int InitialBonusValue { 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; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置会员专享价标题。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("member_price_title")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("member_price_title")]
|
||||||
|
public string? MemberPriceTitle { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置会员优惠栏目名称。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("favor_module_title")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("favor_module_title")]
|
||||||
|
public string? FavorModuleTitle { 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; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置联系人头像媒体文件地址。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("head_image_url")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("head_image_url")]
|
||||||
|
public string? HeadImageMediaUrl { get; set; }
|
||||||
|
|
||||||
|
/// <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.JsonIgnore]
|
||||||
|
[System.Text.Json.Serialization.JsonIgnore]
|
||||||
|
public string CardId { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置是否展示会员积分。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("show_bonus")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("show_bonus")]
|
||||||
|
public bool? RequireShowBonus { 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("show_favor")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("show_favor")]
|
||||||
|
public bool? RequireShowFavor { 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("show_fapiao")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("show_fapiao")]
|
||||||
|
public bool? RequireShowInvoice { 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("show_guide")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("show_guide")]
|
||||||
|
public bool? RequireShowGuide { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置客服信息。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("guide")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("guide")]
|
||||||
|
public Types.Guide? Guide { get; set; }
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,9 @@
|
|||||||
|
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// <para>表示 [PATCH] /marketing/membercard-open/cards/{card_id}/rights 接口的响应。</para>
|
||||||
|
/// </summary>
|
||||||
|
public class UpdateMarketingMemberCardOpenCardRightsResponse : WechatTenpayResponse
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"out_trade_no": "1217752501201407033233368018",
|
||||||
|
"mchid": "1230000109",
|
||||||
|
"sub_mchid": "1900000109",
|
||||||
|
"bonus_value": 30
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
{}
|
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"out_trade_no": "1217752501201407033233368018",
|
||||||
|
"mchid": "1230000109",
|
||||||
|
"sub_mchid": "1900000109",
|
||||||
|
"bonus_value": 30
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
{}
|
@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"before_bonus_value": 500,
|
||||||
|
"bonus_value": 600,
|
||||||
|
"add_bonus_value": 100,
|
||||||
|
"out_request_no": "100002322019090134234sfdf",
|
||||||
|
"need_inform_bonus": true,
|
||||||
|
"member_price_word": "钻石会员尊享8折",
|
||||||
|
"fapiao_jump_word": "3张发票可开",
|
||||||
|
"guide": {
|
||||||
|
"staff_name": "酒店管家-何小明",
|
||||||
|
"head_image_url": "https://wxpaylogo.qpic.cn/wxpaylogo/PiajxSqBRaEIPAeia7Imvtsn7sYGNcEj33YzVvJF88ECQ19LXId8ZL2Q/0",
|
||||||
|
"contact_information_name": "微信号",
|
||||||
|
"contact_information_value": "weixin123",
|
||||||
|
"phone_number": "0755-12345677"
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
{}
|
@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"show_bonus": false,
|
||||||
|
"show_favor": false,
|
||||||
|
"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"
|
||||||
|
},
|
||||||
|
"show_fapiao": false,
|
||||||
|
"fapiao": {
|
||||||
|
"fapiao_jump_word": "查看我的发票",
|
||||||
|
"fapiao_jump_appid": "wxea9c30a90fs8d3fe",
|
||||||
|
"fapiao_jump_path": "pages/fapiao/fapiao"
|
||||||
|
},
|
||||||
|
"show_guide": false,
|
||||||
|
"guide": {
|
||||||
|
"staff_name": "酒店管家-何小明",
|
||||||
|
"head_image_url": "https://wxpaylogo.qpic.cn/wxpaylogo/PiajxSqBRaEIPAeia7Imvtsn7sYGNcEj33YzVvJF88ECQ19LXId8ZL2Q/0",
|
||||||
|
"contact_information_name": "微信号",
|
||||||
|
"contact_information_value": "weixin123",
|
||||||
|
"phone_number": "0755-12345677"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user