@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen") public class VoucherPackageSalesInfo extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
VoucherPackageSalesInfo.CustomTypeAdapterFactory |
| 限定符和类型 | 字段和说明 |
|---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_BUDGET |
static String |
SERIALIZED_NAME_PAY_CHANNEL |
static String |
SERIALIZED_NAME_PURCHASE_URL |
static String |
SERIALIZED_NAME_SALE_COUNT_LIMIT_IN_PERIOD |
static String |
SERIALIZED_NAME_SALE_PERIOD_LIMIT |
static String |
SERIALIZED_NAME_SALE_PRICE |
| 构造器和说明 |
|---|
VoucherPackageSalesInfo() |
| 限定符和类型 | 方法和说明 |
|---|---|
VoucherPackageSalesInfo |
budget(Integer budget) |
boolean |
equals(Object o) |
static VoucherPackageSalesInfo |
fromJson(String jsonString)
Create an instance of VoucherPackageSalesInfo given an JSON string
|
Map<String,Object> |
getAdditionalProperties()
Return the additional (undeclared) property.
|
Object |
getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.
|
Integer |
getBudget()
券包售卖预算,单位是份数
|
String |
getPayChannel()
券包购买支付渠道 pcredit:花呗 creditCard:信用卡 credit_group:花呗与信用卡 为空则不限渠道
|
String |
getPurchaseUrl()
券包购买链接
|
Integer |
getSaleCountLimitInPeriod()
券包售卖期限内最大购买次数
|
String |
getSalePeriodLimit()
券包购买期限类型 NO:不限制 ALL:售卖时间内 DAY:天 WEEK:周 MONTH:月
|
String |
getSalePrice()
券包售卖价格,单位是元
|
int |
hashCode() |
VoucherPackageSalesInfo |
payChannel(String payChannel) |
VoucherPackageSalesInfo |
purchaseUrl(String purchaseUrl) |
VoucherPackageSalesInfo |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
VoucherPackageSalesInfo |
saleCountLimitInPeriod(Integer saleCountLimitInPeriod) |
VoucherPackageSalesInfo |
salePeriodLimit(String salePeriodLimit) |
VoucherPackageSalesInfo |
salePrice(String salePrice) |
void |
setBudget(Integer budget) |
void |
setPayChannel(String payChannel) |
void |
setPurchaseUrl(String purchaseUrl) |
void |
setSaleCountLimitInPeriod(Integer saleCountLimitInPeriod) |
void |
setSalePeriodLimit(String salePeriodLimit) |
void |
setSalePrice(String salePrice) |
String |
toJson()
Convert an instance of VoucherPackageSalesInfo to an JSON string
|
String |
toString() |
static void |
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
|
public static final String SERIALIZED_NAME_SALE_COUNT_LIMIT_IN_PERIOD
public static final String SERIALIZED_NAME_SALE_PERIOD_LIMIT
public VoucherPackageSalesInfo budget(Integer budget)
public void setBudget(Integer budget)
public VoucherPackageSalesInfo payChannel(String payChannel)
@Nullable public String getPayChannel()
public void setPayChannel(String payChannel)
public VoucherPackageSalesInfo purchaseUrl(String purchaseUrl)
public void setPurchaseUrl(String purchaseUrl)
public VoucherPackageSalesInfo saleCountLimitInPeriod(Integer saleCountLimitInPeriod)
@Nullable public Integer getSaleCountLimitInPeriod()
public void setSaleCountLimitInPeriod(Integer saleCountLimitInPeriod)
public VoucherPackageSalesInfo salePeriodLimit(String salePeriodLimit)
@Nullable public String getSalePeriodLimit()
public void setSalePeriodLimit(String salePeriodLimit)
public VoucherPackageSalesInfo salePrice(String salePrice)
public void setSalePrice(String salePrice)
public VoucherPackageSalesInfo putAdditionalProperty(String key, Object value)
key - name of the propertyvalue - value of the propertypublic Map<String,Object> getAdditionalProperties()
public Object getAdditionalProperty(String key)
key - name of the propertypublic static void validateJsonObject(com.google.gson.JsonObject jsonObj)
throws IOException
jsonObj - JSON ObjectIOException - if the JSON Object is invalid with respect to VoucherPackageSalesInfopublic static VoucherPackageSalesInfo fromJson(String jsonString) throws IOException
jsonString - JSON stringIOException - if the JSON string is invalid with respect to VoucherPackageSalesInfopublic String toJson()
Copyright © 2024. All rights reserved.