178 lines
5.4 KiB
C#
178 lines
5.4 KiB
C#
using System;
|
||
using System.Collections.Generic;
|
||
using Newtonsoft.Json;
|
||
|
||
namespace Alipay.AopSdk.Core.Domain
|
||
{
|
||
/// <summary>
|
||
/// Voucher Data Structure.
|
||
/// </summary>
|
||
[Serializable]
|
||
public class Voucher : AopObject
|
||
{
|
||
/// <summary>
|
||
/// 券副标题
|
||
/// </summary>
|
||
[JsonProperty("brand_name")]
|
||
public string BrandName { get; set; }
|
||
|
||
/// <summary>
|
||
/// 券的说明条款
|
||
/// </summary>
|
||
[JsonProperty("clause_terms")]
|
||
|
||
public List<ClauseTerm> ClauseTerms { get; set; }
|
||
|
||
/// <summary>
|
||
/// 延迟生效信息
|
||
/// </summary>
|
||
[JsonProperty("delay_info")]
|
||
public DelayInfo DelayInfo { get; set; }
|
||
|
||
/// <summary>
|
||
/// 券详细说明 最多包含500个字符
|
||
/// </summary>
|
||
[JsonProperty("desc")]
|
||
public string Desc { get; set; }
|
||
|
||
/// <summary>
|
||
/// 券使用说明描述列表
|
||
/// </summary>
|
||
[JsonProperty("desc_detail_list")]
|
||
|
||
public List<VoucherDescDetail> DescDetailList { get; set; }
|
||
|
||
/// <summary>
|
||
/// 券的展示信息
|
||
/// </summary>
|
||
[JsonProperty("display_config")]
|
||
public DisplayConfig DisplayConfig { get; set; }
|
||
|
||
/// <summary>
|
||
/// 券是否可转赠,默认为可转赠
|
||
/// </summary>
|
||
[JsonProperty("donate_flag")]
|
||
public string DonateFlag { get; set; }
|
||
|
||
/// <summary>
|
||
/// 券生效的方式,目前支持以下方式 立即生效:IMMEDIATELY 延迟生效:DELAY 仅在券有效期类型为相对有效期时生效
|
||
/// </summary>
|
||
[JsonProperty("effect_type")]
|
||
public string EffectType { get; set; }
|
||
|
||
/// <summary>
|
||
/// 券有效期的结束时间 仅在券有效期类型为绝对有效期时生效 必须晚于活动结束时间
|
||
/// </summary>
|
||
[JsonProperty("end_time")]
|
||
public string EndTime { get; set; }
|
||
|
||
/// <summary>
|
||
/// 券的扩展信息
|
||
/// </summary>
|
||
[JsonProperty("ext_info")]
|
||
public string ExtInfo { get; set; }
|
||
|
||
/// <summary>
|
||
/// 单品信息 兑换券不允许设置单品信息 减至券必须设置单品信息 其他类型券可按需设置
|
||
/// </summary>
|
||
[JsonProperty("item_info")]
|
||
public ItemInfo ItemInfo { get; set; }
|
||
|
||
/// <summary>
|
||
/// 券LOGO文件ID,调用图片上传接口alipay.offline.material.image.upload获得
|
||
/// </summary>
|
||
[JsonProperty("logo")]
|
||
public string Logo { get; set; }
|
||
|
||
/// <summary>
|
||
/// 最高优惠金额,单位元 必须为合法金额类型字符串 仅当券类型为DISOUNT有效
|
||
/// </summary>
|
||
[JsonProperty("max_amount")]
|
||
public string MaxAmount { get; set; }
|
||
|
||
/// <summary>
|
||
/// 券核销叠加标识
|
||
/// </summary>
|
||
[JsonProperty("merge_verify_config")]
|
||
public MergeVerifyConfig MergeVerifyConfig { get; set; }
|
||
|
||
/// <summary>
|
||
/// 券叠加的属性,NO_MULTI:不可叠加;MULTI_USE_WITH_SINGLE:全场优惠和单品优惠的叠加;MULTI_USE_WITH_OTHERS:全场和其他所有优惠都可以叠加
|
||
/// </summary>
|
||
[JsonProperty("multi_use_mode")]
|
||
public string MultiUseMode { get; set; }
|
||
|
||
/// <summary>
|
||
/// 名称
|
||
/// </summary>
|
||
[JsonProperty("name")]
|
||
public string Name { get; set; }
|
||
|
||
/// <summary>
|
||
/// 折扣率 仅当券类型为折扣券时有效 有效折扣率取值范围0.11-0.99 仅允许保留小数点后两位
|
||
/// </summary>
|
||
[JsonProperty("rate")]
|
||
public string Rate { get; set; }
|
||
|
||
/// <summary>
|
||
/// 券相对有效期,单位天 仅在券有效期类型为相对有效期时生效 如,设5表示领券领取后5日内有效
|
||
/// </summary>
|
||
[JsonProperty("relative_time")]
|
||
public string RelativeTime { get; set; }
|
||
|
||
/// <summary>
|
||
/// 券有效期的开始时间 仅在券有效期类型为绝对有效期时生效
|
||
/// </summary>
|
||
[JsonProperty("start_time")]
|
||
public string StartTime { get; set; }
|
||
|
||
/// <summary>
|
||
/// 券类型,目前支持以下类型: EXCHANGE:兑换券 MONEY:代金券 REDUCETO:减至券 RATE:折扣券
|
||
/// </summary>
|
||
[JsonProperty("type")]
|
||
public string Type { get; set; }
|
||
|
||
/// <summary>
|
||
/// 券的使用说明 使用须知最多6条,且每条最多100字
|
||
/// </summary>
|
||
[JsonProperty("use_instructions")]
|
||
|
||
public List<string> UseInstructions { get; set; }
|
||
|
||
/// <summary>
|
||
/// 券的使用规则信息
|
||
/// </summary>
|
||
[JsonProperty("use_rule")]
|
||
public UseRule UseRule { get; set; }
|
||
|
||
/// <summary>
|
||
/// 券有效期类型,目前支持以下类型: RELATIVE:相对有效期 FIXED:绝对有效期
|
||
/// </summary>
|
||
[JsonProperty("validate_type")]
|
||
public string ValidateType { get; set; }
|
||
|
||
/// <summary>
|
||
/// 该字段仅在兑换券条件下(即券类型为EXCHANGE),用于设置兑换券的核销方式 USER_CLICK:用户自己点击券上的按钮核销 MERCHANT_SCAN:商户通过APP扫码核销 其他情况下此字段为空
|
||
/// </summary>
|
||
[JsonProperty("verify_mode")]
|
||
public string VerifyMode { get; set; }
|
||
|
||
/// <summary>
|
||
/// 券图片文件ID,调用上传图片接口alipay.offline.material.image.upload获得
|
||
/// </summary>
|
||
[JsonProperty("voucher_img")]
|
||
public string VoucherImg { get; set; }
|
||
|
||
/// <summary>
|
||
/// 券的备注
|
||
/// </summary>
|
||
[JsonProperty("voucher_note")]
|
||
public string VoucherNote { get; set; }
|
||
|
||
/// <summary>
|
||
/// 券面额,单位元 必须为合法金额类型字符串 券类型为代金券、减至券时,券面额必须设置 单品减至券的券面额必须低于单品原价
|
||
/// </summary>
|
||
[JsonProperty("worth_value")]
|
||
public string WorthValue { get; set; }
|
||
}
|
||
} |