@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen") public class PromoTool extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
PromoTool.CustomTypeAdapterFactory |
| 限定符和类型 | 字段和说明 |
|---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_POINT_CARD |
static String |
SERIALIZED_NAME_SEND_RULE |
static String |
SERIALIZED_NAME_STATUS |
static String |
SERIALIZED_NAME_VOUCHER |
static String |
SERIALIZED_NAME_VOUCHER_NO |
| 构造器和说明 |
|---|
PromoTool() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object o) |
static PromoTool |
fromJson(String jsonString)
Create an instance of PromoTool 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.
|
PointCard |
getPointCard()
Get pointCard
|
SendRule |
getSendRule()
Get sendRule
|
String |
getStatus()
单个营销工具的生效状态,当在招商部分券失效后会使用这个字段
|
Voucher |
getVoucher()
Get voucher
|
String |
getVoucherNo()
营销工具uid,创建营销活动时无需设置
|
int |
hashCode() |
PromoTool |
pointCard(PointCard pointCard) |
PromoTool |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
PromoTool |
sendRule(SendRule sendRule) |
void |
setPointCard(PointCard pointCard) |
void |
setSendRule(SendRule sendRule) |
void |
setStatus(String status) |
void |
setVoucher(Voucher voucher) |
void |
setVoucherNo(String voucherNo) |
PromoTool |
status(String status) |
String |
toJson()
Convert an instance of PromoTool 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
|
PromoTool |
voucher(Voucher voucher) |
PromoTool |
voucherNo(String voucherNo) |
public void setPointCard(PointCard pointCard)
public void setSendRule(SendRule sendRule)
public void setStatus(String status)
public void setVoucher(Voucher voucher)
public void setVoucherNo(String voucherNo)
public PromoTool 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 PromoToolpublic static PromoTool fromJson(String jsonString) throws IOException
jsonString - JSON stringIOException - if the JSON string is invalid with respect to PromoToolpublic String toJson()
Copyright © 2024. All rights reserved.