103 lines
6.1 KiB
C#
103 lines
6.1 KiB
C#
using System;
|
||
using System.Xml.Serialization;
|
||
|
||
namespace Aop.Api.Domain
|
||
{
|
||
/// <summary>
|
||
/// AlipayMarketingCashlessvoucherTemplateCreateModel Data Structure.
|
||
/// </summary>
|
||
[Serializable]
|
||
public class AlipayMarketingCashlessvoucherTemplateCreateModel : AopObject
|
||
{
|
||
/// <summary>
|
||
/// 面额。每张代金券可以抵扣的金额。币种为人民币,单位为元。该数值有效范围为1~999,小数点以后最多保留两位。代金券必填,兑换券不能填
|
||
/// </summary>
|
||
[XmlElement("amount")]
|
||
public string Amount { get; set; }
|
||
|
||
/// <summary>
|
||
/// 品牌名。用于在卡包中展示,长度不能超过12个字符,voucher_type值为代金券时:券名称=券面额+’元代金券’ ,券名称最终用于卡包展示
|
||
/// </summary>
|
||
[XmlElement("brand_name")]
|
||
public string BrandName { get; set; }
|
||
|
||
/// <summary>
|
||
/// 扩展字段,JSON字符串。
|
||
/// </summary>
|
||
[XmlElement("extension_info")]
|
||
public string ExtensionInfo { get; set; }
|
||
|
||
/// <summary>
|
||
/// 最低额度。设置券使用门槛,只有订单金额大于等于最低额度时券才能使用。币种为人民币,单位为元。该数值不能小于0,小数点以后最多保留两位。 代金券必填,兑换券不能填
|
||
/// </summary>
|
||
[XmlElement("floor_amount")]
|
||
public string FloorAmount { get; set; }
|
||
|
||
/// <summary>
|
||
/// 券变动异步通知地址
|
||
/// </summary>
|
||
[XmlElement("notify_uri")]
|
||
public string NotifyUri { get; set; }
|
||
|
||
/// <summary>
|
||
/// 外部业务单号。用作幂等控制。同一个pid下相同的外部业务单号作唯一键
|
||
/// </summary>
|
||
[XmlElement("out_biz_no")]
|
||
public string OutBizNo { get; set; }
|
||
|
||
/// <summary>
|
||
/// 发放结束时间,晚于该时间不能发券。券的发放结束时间和发放开始时间跨度不能大于90天。发放结束时间必须晚于发放开始时间。格式为:yyyy-MM-dd HH:mm:ss
|
||
/// </summary>
|
||
[XmlElement("publish_end_time")]
|
||
public string PublishEndTime { get; set; }
|
||
|
||
/// <summary>
|
||
/// 发放开始时间,早于该时间不能发券。发放开始时间不能大于当前时间15天。格式为:yyyy-MM-dd HH:mm:ss
|
||
/// </summary>
|
||
[XmlElement("publish_start_time")]
|
||
public string PublishStartTime { get; set; }
|
||
|
||
/// <summary>
|
||
/// 规则配置,JSON字符串,{"PID": "2088512417841101,2088512417841102", "STORE": "123456,678901"},其中PID表示可以核销该券的pid列表,多个值用英文逗号隔开,PID为必传且需与接口调用PID同属一个商家,STORE表示可以核销该券的内部门店ID,多个值用英文逗号隔开 , 兑换券不能指定规则配置
|
||
/// </summary>
|
||
[XmlElement("rule_conf")]
|
||
public string RuleConf { get; set; }
|
||
|
||
/// <summary>
|
||
/// 券总金额(仅用于不定额券)。币种为人民币,单位为元。该数值需大于等于1,小于等于10,000,000,小数点以后最多保留两位。voucher_type为CASHLESS_RANDOM_VOUCHER时必填。
|
||
/// </summary>
|
||
[XmlElement("total_amount")]
|
||
public string TotalAmount { get; set; }
|
||
|
||
/// <summary>
|
||
/// 券可用时段,JSON数组字符串,空数组即[],表示不限制,指定每周时间段示例:[{"day_rule": "1,2,3,4,5", "time_begin": "09:00:00", "time_end": "22:00:00"}, {"day_rule": "6,7", "time_begin": "08:00:00", "time_end": "23:00:00"}],数组中每个元素都包含三个key:day_rule, time_begin, time_end,其中day_rule表示周几,取值范围[1, 2, 3, 4, 5, 6, 7](周7表示星期日),多个值使用英文逗号隔开;time_begin和time_end分别表示生效起始时间和结束时间,格式为HH:mm:ss。另外,数组中各个时间规则是或关系。例如,[{"day_rule": "1,2,3,4,5", "time_begin": "09:00:00", "time_end": "22:00:00"}, {"day_rule": "6,7", "time_begin": "08:00:00", "time_end": "23:00:00"}]表示在每周的一,二,三,四,五的早上9点到晚上10点券可用或者每周的星期六和星期日的早上8点到晚上11点券可用。 仅支持代金券
|
||
/// </summary>
|
||
[XmlElement("voucher_available_time")]
|
||
public string VoucherAvailableTime { get; set; }
|
||
|
||
/// <summary>
|
||
/// 券使用说明。JSON数组字符串,最多可以有10条,每条最多50字。不采用时输入"[]"
|
||
/// </summary>
|
||
[XmlElement("voucher_description")]
|
||
public string VoucherDescription { get; set; }
|
||
|
||
/// <summary>
|
||
/// 拟发行券的数量。单位为张。该数值必须是大于0的整数。voucher_type为CASHLESS_FIX_VOUCHER时必填。
|
||
/// </summary>
|
||
[XmlElement("voucher_quantity")]
|
||
public long VoucherQuantity { get; set; }
|
||
|
||
/// <summary>
|
||
/// 券类型,取值范围为: 1. 定额代金券:CASHLESS_FIX_VOUCHER; 2. 不定额代金券 CASHLESS_RANDOM_VOUCHER;
|
||
/// </summary>
|
||
[XmlElement("voucher_type")]
|
||
public string VoucherType { get; set; }
|
||
|
||
/// <summary>
|
||
/// 券有效期。有两种类型:绝对时间和相对时间。使用JSON字符串表示。绝对时间有3个key:type、start、end,type取值固定为"ABSOLUTE",start和end分别表示券生效时间和失效时间,格式为yyyy-MM-dd HH:mm:ss。绝对时间示例:{"type": "ABSOLUTE", "start": "2017-01-10 00:00:00", "end": "2017-01-13 23:59:59"}。相对时间有3个key:type、duration、unit,type取值固定为"RELATIVE",duration表示从发券时间开始到往后推duration个单位时间为止作为券的使用有效期,unit表示有效时间单位,有效时间单位可枚举:MINUTE, HOUR, DAY。示例:{"type": "RELATIVE", "duration": 1 , "unit": "DAY" },如果此刻发券,那么该券从现在开始生效1(duration)天(unit)后失效。
|
||
/// </summary>
|
||
[XmlElement("voucher_valid_period")]
|
||
public string VoucherValidPeriod { get; set; }
|
||
}
|
||
}
|