@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen") public class ActivityExchangeVoucher extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
ActivityExchangeVoucher.CustomTypeAdapterFactory |
| 限定符和类型 | 字段和说明 |
|---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_AMOUNT |
static String |
SERIALIZED_NAME_FLOOR_AMOUNT |
static String |
SERIALIZED_NAME_OVERDUE_REFUNDABLE |
static String |
SERIALIZED_NAME_REFUNDABLE |
static String |
SERIALIZED_NAME_SALE_AMOUNT |
| 构造器和说明 |
|---|
ActivityExchangeVoucher() |
| 限定符和类型 | 方法和说明 |
|---|---|
ActivityExchangeVoucher |
amount(String amount) |
boolean |
equals(Object o) |
ActivityExchangeVoucher |
floorAmount(String floorAmount) |
static ActivityExchangeVoucher |
fromJson(String jsonString)
Create an instance of ActivityExchangeVoucher 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 |
getAmount()
券的价值。
|
String |
getFloorAmount()
门槛金额。
|
Boolean |
getOverdueRefundable()
是否支持优惠券过期后,自动退款给用户。
|
Boolean |
getRefundable()
购买的优惠券是否允许退款。
|
String |
getSaleAmount()
用户购买优惠券需要支付的金额。
|
int |
hashCode() |
ActivityExchangeVoucher |
overdueRefundable(Boolean overdueRefundable) |
ActivityExchangeVoucher |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
ActivityExchangeVoucher |
refundable(Boolean refundable) |
ActivityExchangeVoucher |
saleAmount(String saleAmount) |
void |
setAmount(String amount) |
void |
setFloorAmount(String floorAmount) |
void |
setOverdueRefundable(Boolean overdueRefundable) |
void |
setRefundable(Boolean refundable) |
void |
setSaleAmount(String saleAmount) |
String |
toJson()
Convert an instance of ActivityExchangeVoucher 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_OVERDUE_REFUNDABLE
public ActivityExchangeVoucher amount(String amount)
public void setAmount(String amount)
public ActivityExchangeVoucher floorAmount(String floorAmount)
public void setFloorAmount(String floorAmount)
public ActivityExchangeVoucher overdueRefundable(Boolean overdueRefundable)
@Nullable public Boolean getOverdueRefundable()
public void setOverdueRefundable(Boolean overdueRefundable)
public ActivityExchangeVoucher refundable(Boolean refundable)
@Nullable public Boolean getRefundable()
public void setRefundable(Boolean refundable)
public ActivityExchangeVoucher saleAmount(String saleAmount)
public void setSaleAmount(String saleAmount)
public ActivityExchangeVoucher 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 ActivityExchangeVoucherpublic static ActivityExchangeVoucher fromJson(String jsonString) throws IOException
jsonString - JSON stringIOException - if the JSON string is invalid with respect to ActivityExchangeVoucherpublic String toJson()
Copyright © 2024. All rights reserved.