@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen") public class VoucherConsultInfo extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
VoucherConsultInfo.CustomTypeAdapterFactory |
| 限定符和类型 | 字段和说明 |
|---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_CEILING_AMOUNT |
static String |
SERIALIZED_NAME_ITEM_PROMO_INFO |
static String |
SERIALIZED_NAME_OPTIMAL |
static String |
SERIALIZED_NAME_PROMO_AMOUNT |
static String |
SERIALIZED_NAME_PROMO_TEXT |
static String |
SERIALIZED_NAME_PROMO_TYPE |
static String |
SERIALIZED_NAME_REDUCTION_AMOUNT |
static String |
SERIALIZED_NAME_REDUCTION_RATIO |
static String |
SERIALIZED_NAME_SPECIFIED_AMOUNT |
static String |
SERIALIZED_NAME_THRESHOLD_AMOUNT |
static String |
SERIALIZED_NAME_VOUCHER_ID |
static String |
SERIALIZED_NAME_VOUCHER_NAME |
static String |
SERIALIZED_NAME_VOUCHER_TYPE |
| 构造器和说明 |
|---|
VoucherConsultInfo() |
| 限定符和类型 | 方法和说明 |
|---|---|
VoucherConsultInfo |
ceilingAmount(String ceilingAmount) |
boolean |
equals(Object o) |
static VoucherConsultInfo |
fromJson(String jsonString)
Create an instance of VoucherConsultInfo 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.
|
String |
getCeilingAmount()
封顶优惠金额,单位为元
|
ItemPromoInfo |
getItemPromoInfo()
Get itemPromoInfo
|
Boolean |
getOptimal()
是否为可使用的互斥券中最优的(目前返回的记录该值均为true,即可忽略该值判断)
|
String |
getPromoAmount()
优惠总金额,单位为元
|
String |
getPromoText()
优惠文案
|
String |
getPromoType()
优惠类型: 代金(FIX),折扣(DISCOUNT),减至(SPECIAL,即特价券)
|
String |
getReductionAmount()
满减金额,单位为元,仅针对代金券
|
String |
getReductionRatio()
优惠额度,如3折券,返回0.7,仅针对折扣券
|
String |
getSpecifiedAmount()
减至金额,单位为元,仅针对减至券
|
String |
getThresholdAmount()
优惠门槛,单位为元(部分券没有门槛金额)
|
String |
getVoucherId()
券id
|
String |
getVoucherName()
券名称
|
String |
getVoucherType()
券类型: 1)全场券(ALL) 2)单品券(ITEM)
|
int |
hashCode() |
VoucherConsultInfo |
itemPromoInfo(ItemPromoInfo itemPromoInfo) |
VoucherConsultInfo |
optimal(Boolean optimal) |
VoucherConsultInfo |
promoAmount(String promoAmount) |
VoucherConsultInfo |
promoText(String promoText) |
VoucherConsultInfo |
promoType(String promoType) |
VoucherConsultInfo |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
VoucherConsultInfo |
reductionAmount(String reductionAmount) |
VoucherConsultInfo |
reductionRatio(String reductionRatio) |
void |
setCeilingAmount(String ceilingAmount) |
void |
setItemPromoInfo(ItemPromoInfo itemPromoInfo) |
void |
setOptimal(Boolean optimal) |
void |
setPromoAmount(String promoAmount) |
void |
setPromoText(String promoText) |
void |
setPromoType(String promoType) |
void |
setReductionAmount(String reductionAmount) |
void |
setReductionRatio(String reductionRatio) |
void |
setSpecifiedAmount(String specifiedAmount) |
void |
setThresholdAmount(String thresholdAmount) |
void |
setVoucherId(String voucherId) |
void |
setVoucherName(String voucherName) |
void |
setVoucherType(String voucherType) |
VoucherConsultInfo |
specifiedAmount(String specifiedAmount) |
VoucherConsultInfo |
thresholdAmount(String thresholdAmount) |
String |
toJson()
Convert an instance of VoucherConsultInfo 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
|
VoucherConsultInfo |
voucherId(String voucherId) |
VoucherConsultInfo |
voucherName(String voucherName) |
VoucherConsultInfo |
voucherType(String voucherType) |
public static final String SERIALIZED_NAME_CEILING_AMOUNT
public static final String SERIALIZED_NAME_ITEM_PROMO_INFO
public static final String SERIALIZED_NAME_REDUCTION_AMOUNT
public static final String SERIALIZED_NAME_REDUCTION_RATIO
public static final String SERIALIZED_NAME_SPECIFIED_AMOUNT
public static final String SERIALIZED_NAME_THRESHOLD_AMOUNT
public VoucherConsultInfo ceilingAmount(String ceilingAmount)
public void setCeilingAmount(String ceilingAmount)
public VoucherConsultInfo itemPromoInfo(ItemPromoInfo itemPromoInfo)
@Nullable public ItemPromoInfo getItemPromoInfo()
public void setItemPromoInfo(ItemPromoInfo itemPromoInfo)
public VoucherConsultInfo optimal(Boolean optimal)
@Nullable public Boolean getOptimal()
public void setOptimal(Boolean optimal)
public VoucherConsultInfo promoAmount(String promoAmount)
public void setPromoAmount(String promoAmount)
public VoucherConsultInfo promoText(String promoText)
public void setPromoText(String promoText)
public VoucherConsultInfo promoType(String promoType)
@Nullable public String getPromoType()
public void setPromoType(String promoType)
public VoucherConsultInfo reductionAmount(String reductionAmount)
@Nullable public String getReductionAmount()
public void setReductionAmount(String reductionAmount)
public VoucherConsultInfo reductionRatio(String reductionRatio)
@Nullable public String getReductionRatio()
public void setReductionRatio(String reductionRatio)
public VoucherConsultInfo specifiedAmount(String specifiedAmount)
@Nullable public String getSpecifiedAmount()
public void setSpecifiedAmount(String specifiedAmount)
public VoucherConsultInfo thresholdAmount(String thresholdAmount)
@Nullable public String getThresholdAmount()
public void setThresholdAmount(String thresholdAmount)
public VoucherConsultInfo voucherId(String voucherId)
public void setVoucherId(String voucherId)
public VoucherConsultInfo voucherName(String voucherName)
public void setVoucherName(String voucherName)
public VoucherConsultInfo voucherType(String voucherType)
public void setVoucherType(String voucherType)
public VoucherConsultInfo 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 VoucherConsultInfopublic static VoucherConsultInfo fromJson(String jsonString) throws IOException
jsonString - JSON stringIOException - if the JSON string is invalid with respect to VoucherConsultInfopublic String toJson()
Copyright © 2024. All rights reserved.