
com.alipay.api.domain.AlipayMarketingCashlessvoucherTemplateCreateModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alipay-sdk Show documentation
Show all versions of alipay-sdk Show documentation
baidu push client api with maven
The newest version!
package com.alipay.api.domain;
import java.util.Date;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 商户券模板创建接口
*
* @author auto create
* @since 1.0, 2017-06-19 11:26:36
*/
public class AlipayMarketingCashlessvoucherTemplateCreateModel extends AlipayObject {
private static final long serialVersionUID = 5893944339877245455L;
/**
* 面额。每张代金券可以抵扣的金额。币种为人民币,单位为元。该数值不能小于0,小数点以后最多保留两位。代金券必填,兑换券不能填
*/
@ApiField("amount")
private String amount;
/**
* 品牌名。用于拼接券名称,长度不能超过12个字符,voucher_type值为代金券时:券名称=券面额+’元代金券’,voucher_type值为兑换券时:券名称=品牌名+“兑换券”组成 ,券名称最终用于卡包展示
*/
@ApiField("brand_name")
private String brandName;
/**
* 扩展信息,暂为启用
*/
@ApiField("extension_info")
private String extensionInfo;
/**
* 最低额度。设置券使用门槛,只有订单金额大于等于最低额度时券才能使用。币种为人民币,单位为元。该数值不能小于0,小数点以后最多保留两位。 代金券必填,兑换券不能填
*/
@ApiField("floor_amount")
private String floorAmount;
/**
* 券变动异步通知地址
*/
@ApiField("notify_uri")
private String notifyUri;
/**
* 外部业务单号。用作幂等控制。同一个pid下相同的外部业务单号作唯一键
*/
@ApiField("out_biz_no")
private String outBizNo;
/**
* 发放结束时间,晚于该时间不能发券。券的发放结束时间和发放开始时间跨度不能大于90天。发放结束时间必须晚于发放开始时间。格式为:yyyy-MM-dd HH:mm:ss
*/
@ApiField("publish_end_time")
private Date publishEndTime;
/**
* 发放开始时间,早于该时间不能发券。发放开始时间不能大于当前时间15天。格式为:yyyy-MM-dd HH:mm:ss
*/
@ApiField("publish_start_time")
private Date publishStartTime;
/**
* 规则配置,JSON字符串,{"PID": "2088512417841101,2088512417841102", "STORE": "123456,678901"},其中PID表示可以核销该券的pid列表,多个值用英文逗号隔开,PID为必传且需与接口调用PID同属一个商家,STORE表示可以核销该券的内部门店ID,多个值用英文逗号隔开 , 兑换券不能指定规则配置
*/
@ApiField("rule_conf")
private String ruleConf;
/**
* 券可用时段,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点券可用。 仅支持代金券
*/
@ApiField("voucher_available_time")
private String voucherAvailableTime;
/**
* 券使用说明。JSON数组字符串,最多可以有10条,每条最多50字。如果没有券使用说明则传入空数组即[]
*/
@ApiField("voucher_description")
private String voucherDescription;
/**
* 拟发行券的数量。单位为张。该数值必须是大于0的整数。
*/
@ApiField("voucher_quantity")
private Long voucherQuantity;
/**
* 券类型,取值范围 代金券:CASHLESS_FIX_VOUCHER;兑换券(暂不支持):EXCHANGE_VOUCHER;
*/
@ApiField("voucher_type")
private String voucherType;
/**
* 券有效期。有两种类型:绝对时间和相对时间。使用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)后失效。
*/
@ApiField("voucher_valid_period")
private String voucherValidPeriod;
public String getAmount() {
return this.amount;
}
public void setAmount(String amount) {
this.amount = amount;
}
public String getBrandName() {
return this.brandName;
}
public void setBrandName(String brandName) {
this.brandName = brandName;
}
public String getExtensionInfo() {
return this.extensionInfo;
}
public void setExtensionInfo(String extensionInfo) {
this.extensionInfo = extensionInfo;
}
public String getFloorAmount() {
return this.floorAmount;
}
public void setFloorAmount(String floorAmount) {
this.floorAmount = floorAmount;
}
public String getNotifyUri() {
return this.notifyUri;
}
public void setNotifyUri(String notifyUri) {
this.notifyUri = notifyUri;
}
public String getOutBizNo() {
return this.outBizNo;
}
public void setOutBizNo(String outBizNo) {
this.outBizNo = outBizNo;
}
public Date getPublishEndTime() {
return this.publishEndTime;
}
public void setPublishEndTime(Date publishEndTime) {
this.publishEndTime = publishEndTime;
}
public Date getPublishStartTime() {
return this.publishStartTime;
}
public void setPublishStartTime(Date publishStartTime) {
this.publishStartTime = publishStartTime;
}
public String getRuleConf() {
return this.ruleConf;
}
public void setRuleConf(String ruleConf) {
this.ruleConf = ruleConf;
}
public String getVoucherAvailableTime() {
return this.voucherAvailableTime;
}
public void setVoucherAvailableTime(String voucherAvailableTime) {
this.voucherAvailableTime = voucherAvailableTime;
}
public String getVoucherDescription() {
return this.voucherDescription;
}
public void setVoucherDescription(String voucherDescription) {
this.voucherDescription = voucherDescription;
}
public Long getVoucherQuantity() {
return this.voucherQuantity;
}
public void setVoucherQuantity(Long voucherQuantity) {
this.voucherQuantity = voucherQuantity;
}
public String getVoucherType() {
return this.voucherType;
}
public void setVoucherType(String voucherType) {
this.voucherType = voucherType;
}
public String getVoucherValidPeriod() {
return this.voucherValidPeriod;
}
public void setVoucherValidPeriod(String voucherValidPeriod) {
this.voucherValidPeriod = voucherValidPeriod;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy