mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-07-17 10:41:58 +08:00
1436 lines
68 KiB
C#
1436 lines
68 KiB
C#
using System.Collections.Generic;
|
||
|
||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||
{
|
||
/// <summary>
|
||
/// <para>表示 [POST] /card/create 接口的请求。</para>
|
||
/// </summary>
|
||
public class CardCreateRequest : WechatApiRequest, IMapResponse<CardCreateRequest, CardCreateResponse>
|
||
{
|
||
public static class Types
|
||
{
|
||
public class Card
|
||
{
|
||
/// <summary>
|
||
/// 获取或设置卡券类型。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("card_type")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("card_type")]
|
||
public string CardType { get; set; } = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 获取或设置团购券信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("groupon")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("groupon")]
|
||
public GrouponCard? Groupon { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置代金券信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("cash")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("cash")]
|
||
public CashCard? Cash { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置折扣券信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("discount")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("discount")]
|
||
public DiscountCard? Discount { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置兑换券信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("gift")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("gift")]
|
||
public GiftCard? Gift { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置优惠券信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("general_coupon")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("general_coupon")]
|
||
public GeneralCouponCard? GeneralCoupon { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置礼品卡信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("general_card")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("general_card")]
|
||
public GeneralCard? GeneralCard { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置会员卡信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("member_card")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("member_card")]
|
||
public MembershipCard? Membership { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置会议门票信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("meeting_ticket")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("meeting_ticket")]
|
||
public MeetingTicketCard? MeetingTicket { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置景区门票信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("scenic_ticket")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("scenic_ticket")]
|
||
public ScenicTicketCard? ScenicTicket { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置电影票信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("movie_ticket")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("movie_ticket")]
|
||
public MovieTicketCard? MovieTicket { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置飞机票信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("boarding_pass")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("boarding_pass")]
|
||
public BoardingPassCard? BoardingPass { get; set; }
|
||
}
|
||
|
||
public class GrouponCard
|
||
{
|
||
public static class Types
|
||
{
|
||
public class Base
|
||
{
|
||
public static class Types
|
||
{
|
||
public class SubMerchant
|
||
{
|
||
/// <summary>
|
||
/// 获取或设置子商户 ID。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("merchant_id")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("merchant_id")]
|
||
public string SubMerchantId { get; set; } = string.Empty;
|
||
}
|
||
|
||
public class SKU
|
||
{
|
||
/// <summary>
|
||
/// 获取或设置卡券库存的数量。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("quantity")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("quantity")]
|
||
public int Quantity { get; set; } = 100000000;
|
||
}
|
||
|
||
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("begin_timestamp")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("begin_timestamp")]
|
||
public long? BeginTimestamp { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置过期时间戳。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("end_timestamp")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("end_timestamp")]
|
||
public long? EndTimestamp { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置自领取后 N 天内有效。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("fixed_term")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("fixed_term")]
|
||
public int? AvailableDaysAfterReceive { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置自领取后 N 天后生效。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("fixed_begin_term")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("fixed_begin_term")]
|
||
public int? WaitDaysAfterReceive { get; set; }
|
||
}
|
||
}
|
||
|
||
/// <summary>
|
||
/// 获取或设置子商户信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("sub_merchant_info")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("sub_merchant_info")]
|
||
public Types.SubMerchant? SubMerchant { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置商户 Logo URL。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("logo_url")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("logo_url")]
|
||
public string LogoUrl { get; set; } = string.Empty;
|
||
|
||
/// <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("brand_name")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("brand_name")]
|
||
public string BrandName { get; set; } = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 获取或设置卡券名。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("title")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("title")]
|
||
public string Title { get; set; } = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 获取或设置卡券颜色。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("color")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("color")]
|
||
public string Color { get; set; } = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 获取或设置卡券使用提醒。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("notice")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("notice")]
|
||
public string Notice { get; set; } = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 获取或设置卡券使用说明。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("description")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("description")]
|
||
public string Description { get; set; } = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 获取或设置商品信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("sku")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("sku")]
|
||
public Types.SKU SKU { get; set; } = new Types.SKU();
|
||
|
||
/// <summary>
|
||
/// 获取或设置使用日期信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("date_info")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("date_info")]
|
||
public Types.Date Date { get; set; } = new Types.Date();
|
||
|
||
/// <summary>
|
||
/// 获取或设置是否自定义券码。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("use_custom_code")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("use_custom_code")]
|
||
public bool? UseCustomCode { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置自定义券码模式。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("get_custom_code_mode")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("get_custom_code_mode")]
|
||
public string? GetCustomCodeMode { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置是否指定用户领取。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("bind_openid")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("bind_openid")]
|
||
public bool? IsBindOpenId { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置客服电话。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("service_phone")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("service_phone")]
|
||
public string? ServicePhoneNumber { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置门店 Id 列表。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("location_id_list")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("location_id_list")]
|
||
public IList<long>? POIIdList { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置是否支持全部门店。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("use_all_locations")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("use_all_locations")]
|
||
public bool? UseAllPOIs { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置显示在顶部居中的按钮文字。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("center_title")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("center_title")]
|
||
public string? CenterTitle { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置显示在入口下方的提示语。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("center_sub_title")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("center_sub_title")]
|
||
public string? CenterSubTitle { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置顶部居中的 URL。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("center_url")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("center_url")]
|
||
public string? CenterUrl { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置卡券跳转的小程序的原始 ID。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("center_app_brand_user_name")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("center_app_brand_user_name")]
|
||
public string? CenterBrandMiniProgramUsername { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置卡券跳转的小程序的页面路径。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("center_app_brand_pass")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("center_app_brand_pass")]
|
||
public string? CenterBrandMiniProgramPath { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置自定义跳转外链的入口名字。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("custom_url_name")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("custom_url_name")]
|
||
public string? CustomUrlTitle { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置自定义跳转外链的入口右侧提示语。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("custom_url_sub_title")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("custom_url_sub_title")]
|
||
public string? CustomUrlSubTitle { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置自定义跳转外链。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("custom_url")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("custom_url")]
|
||
public string? CustomUrl { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置卡券跳转的小程序的原始 ID。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("custom_app_brand_user_name")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("custom_app_brand_user_name")]
|
||
public string? CustomBrandMiniProgramUsername { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置卡券跳转的小程序的页面路径。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("custom_app_brand_pass")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("custom_app_brand_pass")]
|
||
public string? CustomBrandMiniProgramPath { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置营销场景的入口名称。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("promotion_url_name")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("promotion_url_name")]
|
||
public string? PromotionUrlTitle { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置营销场景的入口右侧的提示语。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("promotion_url_sub_title")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("promotion_url_sub_title")]
|
||
public string? PromotionUrlSubTitle { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置营销场景外链。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("promotion_url")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("promotion_url")]
|
||
public string? PromotionUrl { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置卡券跳转的小程序的原始 ID。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("promotion_app_brand_user_name")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("promotion_app_brand_user_name")]
|
||
public string? PromotionBrandMiniProgramUsername { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置卡券跳转的小程序的页面路径。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("promotion_app_brand_pass")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("promotion_app_brand_pass")]
|
||
public string? PromotionBrandMiniProgramPath { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置每人可领券的数量限制。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("get_limit")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("get_limit")]
|
||
public int? GetLimitPerUser { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置每人可核销的数量限制。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("use_limit")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("use_limit")]
|
||
public int? UseLimitPerUser { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置卡券领取页面是否可分享。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("can_share")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("can_share")]
|
||
public bool? CanShare { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置卡券是否可转赠。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("can_give_friend")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("can_give_friend")]
|
||
public bool? CanTransfer { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置第三方来源名。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("source")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("source")]
|
||
public string? Source { get; set; }
|
||
}
|
||
|
||
public class Advance
|
||
{
|
||
public static class Types
|
||
{
|
||
public class UseCondition
|
||
{
|
||
/// <summary>
|
||
/// 获取或设置可用的商品类目。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("accept_category")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("accept_category")]
|
||
public string? AcceptCategory { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置不可用的商品类目。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("reject_category")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("reject_category")]
|
||
public string? RejectCategory { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置满减门槛(单位:分)。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("least_cost")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("least_cost")]
|
||
public int LeastCost { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置可用类型门槛。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("object_use_for")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("object_use_for")]
|
||
public string? ObjectUseFor { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置是否可与其他类型共享门槛。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("can_use_with_other_discount")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("can_use_with_other_discount")]
|
||
public bool? CanUseWithOtherDiscount { get; set; }
|
||
}
|
||
|
||
public class Abstract
|
||
{
|
||
/// <summary>
|
||
/// 获取或设置封面摘要简介。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("abstract")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("abstract")]
|
||
public string Description { get; set; } = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 获取或设置封面图片 URL 列表。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("icon_url_list")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("icon_url_list")]
|
||
public IList<string>? IconUrlList { get; set; }
|
||
}
|
||
|
||
public class TextImage
|
||
{
|
||
/// <summary>
|
||
/// 获取或设置图片描述。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("text")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("text")]
|
||
public string Text { get; set; } = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 获取或设置封面图片 URL。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("image_url")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("image_url")]
|
||
public string ImageUrl { get; set; } = string.Empty;
|
||
}
|
||
|
||
public class TimeLimit
|
||
{
|
||
/// <summary>
|
||
/// 获取或设置限制类型。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("type")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("type")]
|
||
public string Type { get; set; } = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 获取或设置起始时间小时(格式:H)。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("begin_hour")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("begin_hour")]
|
||
public int? BeginHour { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置起始时间分钟(格式:m)。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("begin_minute")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("begin_minute")]
|
||
public int? BeginMinute { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置结束时间小时(格式:H)。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("end_hour")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("end_hour")]
|
||
public int? EndHour { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置结束时间小时(格式:m)。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("end_minute")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("end_minute")]
|
||
public int? EndMinute { get; set; }
|
||
}
|
||
}
|
||
|
||
/// <summary>
|
||
/// 获取或设置使用门槛信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("use_condition")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("use_condition")]
|
||
public Types.UseCondition? UseCondition { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置封面摘要信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("abstract")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("abstract")]
|
||
public Types.Abstract? Abstract { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置图文列表。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("text_image_list")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("text_image_list")]
|
||
public IList<Types.TextImage>? TextImageList { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置商家服务类型。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("business_service")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("business_service")]
|
||
public IList<string>? BusinessServiceList { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置使用时段限制列表。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("time_limit")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("time_limit")]
|
||
public IList<Types.TimeLimit>? TimeLimitList { get; set; }
|
||
}
|
||
}
|
||
|
||
/// <summary>
|
||
/// 获取或设置卡券基本信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("base_info")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("base_info")]
|
||
public Types.Base Base { get; set; } = new Types.Base();
|
||
|
||
/// <summary>
|
||
/// 获取或设置卡券高级信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("advanced_info")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("advanced_info")]
|
||
public Types.Advance Advance { get; set; } = new Types.Advance();
|
||
|
||
/// <summary>
|
||
/// 获取或设置团购详情。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("deal_detail")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("deal_detail")]
|
||
public string DealDetail { get; set; } = string.Empty;
|
||
}
|
||
|
||
public class CashCard
|
||
{
|
||
public static class Types
|
||
{
|
||
public class Base : GrouponCard.Types.Base
|
||
{
|
||
}
|
||
|
||
public class Advance : GrouponCard.Types.Advance
|
||
{
|
||
}
|
||
}
|
||
|
||
/// <summary>
|
||
/// 获取或设置卡券基本信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("base_info")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("base_info")]
|
||
public Types.Base Base { get; set; } = new Types.Base();
|
||
|
||
/// <summary>
|
||
/// 获取或设置卡券高级信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("advanced_info")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("advanced_info")]
|
||
public Types.Advance Advance { get; set; } = new Types.Advance();
|
||
|
||
/// <summary>
|
||
/// 获取或设置起用金额(单位:分)。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("least_cost")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("least_cost")]
|
||
public int LeastCost { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置减免金额(单位:分)。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("reduce_cost")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("reduce_cost")]
|
||
public int ReduceCost { get; set; }
|
||
}
|
||
|
||
public class DiscountCard
|
||
{
|
||
public static class Types
|
||
{
|
||
public class Base : GrouponCard.Types.Base
|
||
{
|
||
}
|
||
|
||
public class Advance : GrouponCard.Types.Advance
|
||
{
|
||
}
|
||
}
|
||
|
||
/// <summary>
|
||
/// 获取或设置卡券基本信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("base_info")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("base_info")]
|
||
public Types.Base Base { get; set; } = new Types.Base();
|
||
|
||
/// <summary>
|
||
/// 获取或设置卡券高级信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("advanced_info")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("advanced_info")]
|
||
public Types.Advance Advance { get; set; } = new Types.Advance();
|
||
|
||
/// <summary>
|
||
/// 获取或设置打折额度。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("discount")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("discount")]
|
||
public int Discount { get; set; }
|
||
}
|
||
|
||
public class GiftCard
|
||
{
|
||
public static class Types
|
||
{
|
||
public class Base : GrouponCard.Types.Base
|
||
{
|
||
}
|
||
|
||
public class Advance : GrouponCard.Types.Advance
|
||
{
|
||
}
|
||
}
|
||
|
||
/// <summary>
|
||
/// 获取或设置卡券基本信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("base_info")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("base_info")]
|
||
public Types.Base Base { get; set; } = new Types.Base();
|
||
|
||
/// <summary>
|
||
/// 获取或设置卡券高级信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("advanced_info")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("advanced_info")]
|
||
public Types.Advance Advance { get; set; } = new Types.Advance();
|
||
|
||
/// <summary>
|
||
/// 获取或设置兑换内容。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("gift")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("gift")]
|
||
public string GiftDetail { get; set; } = string.Empty;
|
||
}
|
||
|
||
public class GeneralCouponCard
|
||
{
|
||
public static class Types
|
||
{
|
||
public class Base : GrouponCard.Types.Base
|
||
{
|
||
}
|
||
|
||
public class Advance : GrouponCard.Types.Advance
|
||
{
|
||
}
|
||
}
|
||
|
||
/// <summary>
|
||
/// 获取或设置卡券基本信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("base_info")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("base_info")]
|
||
public Types.Base Base { get; set; } = new Types.Base();
|
||
|
||
/// <summary>
|
||
/// 获取或设置卡券高级信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("advanced_info")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("advanced_info")]
|
||
public Types.Advance Advance { get; set; } = new Types.Advance();
|
||
|
||
/// <summary>
|
||
/// 获取或设置优惠详情。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("default_detail")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("default_detail")]
|
||
public string DefaultDetail { get; set; } = string.Empty;
|
||
}
|
||
|
||
public class GeneralCard
|
||
{
|
||
public static class Types
|
||
{
|
||
public class Base : GrouponCard.Types.Base
|
||
{
|
||
public new static class Types
|
||
{
|
||
public class GiftCard
|
||
{
|
||
/// <summary>
|
||
/// 获取或设置礼品卡价格(单位:分)。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("price")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("price")]
|
||
public int Price { get; set; }
|
||
}
|
||
}
|
||
|
||
/// <summary>
|
||
/// 获取或设置礼品卡信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("giftcard_info")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("giftcard_info")]
|
||
public Types.GiftCard GiftCard { get; set; } = new Types.GiftCard();
|
||
|
||
/// <summary>
|
||
/// 获取或设置礼品卡最大可赠送次数。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("max_give_friend_times")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("max_give_friend_times")]
|
||
public int MaxGiveFriendTimes { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置进入礼品卡时是否推送事件。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("need_push_on_view")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("need_push_on_view")]
|
||
public bool? RequirePushOnView { get; set; }
|
||
}
|
||
|
||
public class Advance : GrouponCard.Types.Advance
|
||
{
|
||
}
|
||
|
||
public class CustomField : MembershipCard.Types.CustomField
|
||
{
|
||
}
|
||
}
|
||
|
||
/// <summary>
|
||
/// 获取或设置卡券基本信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("base_info")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("base_info")]
|
||
public Types.Base Base { get; set; } = new Types.Base();
|
||
|
||
/// <summary>
|
||
/// 获取或设置卡券高级信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("advanced_info")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("advanced_info")]
|
||
public Types.Advance Advance { get; set; } = new Types.Advance();
|
||
|
||
/// <summary>
|
||
/// 获取或设置卡类型。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("sub_card_type")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("sub_card_type")]
|
||
public string SubCardType { get; set; } = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 获取或设置礼品卡背景图 URL。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("background_pic_url")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("background_pic_url")]
|
||
public string? BackgrounPictureUrl { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置礼品卡特权说明。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("prerogative")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("prerogative")]
|
||
public string Prerogative { get; set; } = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 获取或设置是否领取后自动激活。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("auto_activate")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("auto_activate")]
|
||
public bool? IsAutoActivate { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置是否支持积分。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("supply_bonus")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("supply_bonus")]
|
||
public bool IsSupplyBonus { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置初始积分。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("init_bonus")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("init_bonus")]
|
||
public int? InitialBonus { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置是否支持余额。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("supply_balance")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("supply_balance")]
|
||
public bool IsSupplyBalance { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置初始余额(单位:分)。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("init_balance")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("init_balance")]
|
||
public int? InitialBalance { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置自定义会员信息类目 1 信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("custom_field1")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("custom_field1")]
|
||
public Types.CustomField? CustomField1 { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置自定义会员信息类目 2 信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("custom_field2")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("custom_field2")]
|
||
public Types.CustomField? CustomField2 { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置自定义会员信息类目 3 信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("custom_field3")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("custom_field3")]
|
||
public Types.CustomField? CustomField3 { get; set; }
|
||
}
|
||
|
||
public class MembershipCard
|
||
{
|
||
public static class Types
|
||
{
|
||
public class Base : GrouponCard.Types.Base
|
||
{
|
||
public new static class Types
|
||
{
|
||
public class Payment
|
||
{
|
||
public static class Types
|
||
{
|
||
public class SwipingCard
|
||
{
|
||
/// <summary>
|
||
/// 获取或设置是否支持微信支付刷卡。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("is_swipe_card")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("is_swipe_card")]
|
||
public bool CanSwipe { get; set; }
|
||
}
|
||
}
|
||
|
||
/// <summary>
|
||
/// 获取或设置是否支持微信支付刷卡。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("swipe_card")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("swipe_card")]
|
||
public Types.SwipingCard? SwipingCard { get; set; }
|
||
}
|
||
}
|
||
|
||
/// <summary>
|
||
/// 获取或设置进入会员卡时是否推送事件。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("need_push_on_view")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("need_push_on_view")]
|
||
public bool? RequirePushOnView { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置微信支付信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("pay_info")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("pay_info")]
|
||
public Types.Payment? Payment { get; set; }
|
||
}
|
||
|
||
public class Advance : GrouponCard.Types.Advance
|
||
{
|
||
}
|
||
|
||
public class CustomField
|
||
{
|
||
/// <summary>
|
||
/// 获取或设置会员信息类目自定义名称类型。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("name_type")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("name_type")]
|
||
public string? NameType { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置会员信息类目自定义名称。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("name")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("name")]
|
||
public string? Name { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置点击类目跳转外链。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("url")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("url")]
|
||
public string? Url { get; set; }
|
||
}
|
||
|
||
public class CustomCell
|
||
{
|
||
/// <summary>
|
||
/// 获取或设置入口名称。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("name")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("name")]
|
||
public string Name { get; set; } = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 获取或设置入口右侧提示语。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("tips")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("tips")]
|
||
public string Tips { get; set; } = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 获取或设置入口跳转链接。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("url")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("url")]
|
||
public string Url { get; set; } = string.Empty;
|
||
}
|
||
|
||
public class BonusRule
|
||
{
|
||
/// <summary>
|
||
/// 获取或设置单次消费金额(单位:分)。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("cost_money_unit")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("cost_money_unit")]
|
||
public int? CostMoneyUnit { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置对应增加的积分。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("increase_bonus")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("increase_bonus")]
|
||
public int? IncreaseBonus { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置单次可获取的积分上限。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("max_increase_bonus")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("max_increase_bonus")]
|
||
public int? MaxIncreaseBonus { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置初始积分。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("init_increase_bonus")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("init_increase_bonus")]
|
||
public int? InitialIncreaseBonus { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置单次消费积分。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("cost_bonus_unit")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("cost_bonus_unit")]
|
||
public int? CostBonusUnit { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置积分抵扣金额(单位:分)。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("reduce_money")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("reduce_money")]
|
||
public int? ReduceMoney { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置积分抵扣门槛(单位:分)。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("least_money_to_use_bonus")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("least_money_to_use_bonus")]
|
||
public int? LeastMoneyToUseBonus { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置单次可使用积分的上限。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("max_reduce_bonus")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("max_reduce_bonus")]
|
||
public int? MaxReduceBonus { get; set; }
|
||
}
|
||
}
|
||
|
||
/// <summary>
|
||
/// 获取或设置卡券基本信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("base_info")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("base_info")]
|
||
public Types.Base Base { get; set; } = new Types.Base();
|
||
|
||
/// <summary>
|
||
/// 获取或设置卡券高级信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("advanced_info")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("advanced_info")]
|
||
public Types.Advance Advance { get; set; } = new Types.Advance();
|
||
|
||
/// <summary>
|
||
/// 获取或设置会员卡背景图 URL。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("background_pic_url")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("background_pic_url")]
|
||
public string? BackgrounPictureUrl { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置会员卡特权说明。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("prerogative")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("prerogative")]
|
||
public string Prerogative { get; set; } = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 获取或设置是否领取后自动激活。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("auto_activate")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("auto_activate")]
|
||
public bool? IsAutoActivate { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置是否支持一键开卡。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("wx_activate")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("wx_activate")]
|
||
public bool? IsWechatActivate { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置是否支持跳转型一键激活。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("wx_activate_after_submit")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("wx_activate_after_submit")]
|
||
public bool? IsWechatActivateAfterSubmit { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置激活会员卡外链。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("activate_url")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("activate_url")]
|
||
public string? ActivateUrl { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置激活会员卡对应的小程序原始 ID。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("activate_app_brand_user_name")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("activate_app_brand_user_name")]
|
||
public string? ActivateBrandMiniProgramUsername { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置激活会员卡对应的小程序页面路径。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("activate_app_brand_pass")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("activate_app_brand_pass")]
|
||
public string? ActivateBrandMiniProgramPath { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置跳转型一键激活的跳转外链。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("wx_activate_after_submit_url")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("wx_activate_after_submit_url")]
|
||
public string? WechatActivateAfterSubmitUrl { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置是否支持积分。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("supply_bonus")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("supply_bonus")]
|
||
public bool IsSupplyBonus { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置查看积分详情外链。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("bonus_url")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("bonus_url")]
|
||
public string? BonusUrl { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置积分清零规则。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("bonus_cleared")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("bonus_cleared")]
|
||
public string? BonusClearedString { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置积分规则。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("bonus_rules")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("bonus_rules")]
|
||
public string? BonusRulesString { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置积分规则。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("bonus_rule")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("bonus_rule")]
|
||
public Types.BonusRule? BonusRule { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置是否支持储值。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("supply_balance")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("supply_balance")]
|
||
public bool IsSupplyBalance { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置查看余额详情外链。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("balance_url")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("balance_url")]
|
||
public string? BalanceUrl { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置储值规则。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("balance_rules")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("balance_rules")]
|
||
public string? BalanceRules { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置自定义会员信息类目 1 信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("custom_field1")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("custom_field1")]
|
||
public Types.CustomField? CustomField1 { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置自定义会员信息类目 2 信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("custom_field2")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("custom_field2")]
|
||
public Types.CustomField? CustomField2 { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置自定义会员信息类目 3 信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("custom_field3")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("custom_field3")]
|
||
public Types.CustomField? CustomField3 { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置自定义会员服务入口 1 信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("custom_cell1")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("custom_cell1")]
|
||
public Types.CustomCell? CustomCell1 { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置自定义会员服务入口 2 信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("custom_cell2")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("custom_cell2")]
|
||
public Types.CustomCell? CustomCell2 { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置自定义会员服务入口 3 信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("custom_cell3")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("custom_cell3")]
|
||
public Types.CustomCell? CustomCell3 { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置折扣优惠。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("discount")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("discount")]
|
||
public int? Discount { get; set; }
|
||
}
|
||
|
||
public class MeetingTicketCard
|
||
{
|
||
public static class Types
|
||
{
|
||
public class Base : GrouponCard.Types.Base
|
||
{
|
||
}
|
||
|
||
public class Advance : GrouponCard.Types.Advance
|
||
{
|
||
}
|
||
}
|
||
|
||
/// <summary>
|
||
/// 获取或设置卡券基本信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("base_info")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("base_info")]
|
||
public Types.Base Base { get; set; } = new Types.Base();
|
||
|
||
/// <summary>
|
||
/// 获取或设置卡券高级信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("advanced_info")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("advanced_info")]
|
||
public Types.Advance Advance { get; set; } = new Types.Advance();
|
||
|
||
/// <summary>
|
||
/// 获取或设置会议详情。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("meeting_detail")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("meeting_detail")]
|
||
public string MeetingDetail { get; set; } = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 获取或设置会场导览图 URL。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("map_url")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("map_url")]
|
||
public string? MapUrl { get; set; }
|
||
}
|
||
|
||
public class ScenicTicketCard
|
||
{
|
||
public static class Types
|
||
{
|
||
public class Base : GrouponCard.Types.Base
|
||
{
|
||
}
|
||
|
||
public class Advance : GrouponCard.Types.Advance
|
||
{
|
||
}
|
||
}
|
||
|
||
/// <summary>
|
||
/// 获取或设置卡券基本信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("base_info")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("base_info")]
|
||
public Types.Base Base { get; set; } = new Types.Base();
|
||
|
||
/// <summary>
|
||
/// 获取或设置卡券高级信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("advanced_info")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("advanced_info")]
|
||
public Types.Advance Advance { get; set; } = new Types.Advance();
|
||
|
||
/// <summary>
|
||
/// 获取或设置票类型。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("ticket_class")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("ticket_class")]
|
||
public string TicketClass { get; set; } = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 获取或设置景区导览图 URL。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("guide_url")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("guide_url")]
|
||
public string? GuideUrl { get; set; }
|
||
}
|
||
|
||
public class MovieTicketCard
|
||
{
|
||
public static class Types
|
||
{
|
||
public class Base : GrouponCard.Types.Base
|
||
{
|
||
}
|
||
|
||
public class Advance : GrouponCard.Types.Advance
|
||
{
|
||
}
|
||
}
|
||
|
||
/// <summary>
|
||
/// 获取或设置卡券基本信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("base_info")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("base_info")]
|
||
public Types.Base Base { get; set; } = new Types.Base();
|
||
|
||
/// <summary>
|
||
/// 获取或设置卡券高级信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("advanced_info")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("advanced_info")]
|
||
public Types.Advance Advance { get; set; } = new Types.Advance();
|
||
|
||
/// <summary>
|
||
/// 获取或设置电影详情。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("detail")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("detail")]
|
||
public string MovieDetail { get; set; } = string.Empty;
|
||
}
|
||
|
||
public class BoardingPassCard
|
||
{
|
||
public static class Types
|
||
{
|
||
public class Base : GrouponCard.Types.Base
|
||
{
|
||
}
|
||
|
||
public class Advance : GrouponCard.Types.Advance
|
||
{
|
||
}
|
||
}
|
||
|
||
/// <summary>
|
||
/// 获取或设置卡券基本信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("base_info")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("base_info")]
|
||
public Types.Base Base { get; set; } = new Types.Base();
|
||
|
||
/// <summary>
|
||
/// 获取或设置卡券高级信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("advanced_info")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("advanced_info")]
|
||
public Types.Advance Advance { get; set; } = new Types.Advance();
|
||
|
||
/// <summary>
|
||
/// 获取或设置起点。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("from")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("from")]
|
||
public string From { get; set; } = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 获取或设置终点。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("to")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("to")]
|
||
public string To { get; set; } = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 获取或设置航班。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("flight")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("flight")]
|
||
public string Flight { get; set; } = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 获取或设置登机口。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("gate")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("gate")]
|
||
public string? Gate { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置在线值机外链。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("check_in_url")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("check_in_url")]
|
||
public string? CheckinUrl { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置机型。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("air_model")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("air_model")]
|
||
public string AirModel { get; set; } = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 获取或设置起飞时间戳。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("departure_time")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("departure_time")]
|
||
public long DepartureTimestamp { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取或设置降落时间戳。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("landing_time")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("landing_time")]
|
||
public long LandingTimestamp { get; set; }
|
||
}
|
||
}
|
||
|
||
/// <summary>
|
||
/// 获取或设置卡券信息。
|
||
/// </summary>
|
||
[Newtonsoft.Json.JsonProperty("card")]
|
||
[System.Text.Json.Serialization.JsonPropertyName("card")]
|
||
public Types.Card Card { get; set; } = new Types.Card();
|
||
}
|
||
}
|