@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen") public class AmountTypeSyncData extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
AmountTypeSyncData.CustomTypeAdapterFactory |
| 限定符和类型 | 字段和说明 |
|---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_DISCOUNT_AMOUNT |
static String |
SERIALIZED_NAME_DISCOUNT_DESC |
static String |
SERIALIZED_NAME_HAS_ALIPAY_TRADE |
static String |
SERIALIZED_NAME_TASK_AMOUNT |
static String |
SERIALIZED_NAME_TASK_DESC |
static String |
SERIALIZED_NAME_TRADE_NO |
| 构造器和说明 |
|---|
AmountTypeSyncData() |
| 限定符和类型 | 方法和说明 |
|---|---|
AmountTypeSyncData |
discountAmount(String discountAmount) |
AmountTypeSyncData |
discountDesc(String discountDesc) |
boolean |
equals(Object o) |
static AmountTypeSyncData |
fromJson(String jsonString)
Create an instance of AmountTypeSyncData 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 |
getDiscountAmount()
商户回传的优惠金额,如用户享受的红包金额,单位元
|
String |
getDiscountDesc()
商户数据回传的优惠信息的名称。
|
Boolean |
getHasAlipayTrade()
是否为支付宝交易,默认false,表示是否要做支付宝交易关联。
|
String |
getTaskAmount()
用户和商户发生交易的交易单金额,单位元。
|
String |
getTaskDesc()
任务描述
|
String |
getTradeNo()
用户和商户发生金额类交易的交易单号。
|
AmountTypeSyncData |
hasAlipayTrade(Boolean hasAlipayTrade) |
int |
hashCode() |
AmountTypeSyncData |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
void |
setDiscountAmount(String discountAmount) |
void |
setDiscountDesc(String discountDesc) |
void |
setHasAlipayTrade(Boolean hasAlipayTrade) |
void |
setTaskAmount(String taskAmount) |
void |
setTaskDesc(String taskDesc) |
void |
setTradeNo(String tradeNo) |
AmountTypeSyncData |
taskAmount(String taskAmount) |
AmountTypeSyncData |
taskDesc(String taskDesc) |
String |
toJson()
Convert an instance of AmountTypeSyncData to an JSON string
|
String |
toString() |
AmountTypeSyncData |
tradeNo(String tradeNo) |
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_DISCOUNT_AMOUNT
public static final String SERIALIZED_NAME_HAS_ALIPAY_TRADE
public AmountTypeSyncData discountAmount(String discountAmount)
@Nullable public String getDiscountAmount()
public void setDiscountAmount(String discountAmount)
public AmountTypeSyncData discountDesc(String discountDesc)
public void setDiscountDesc(String discountDesc)
public AmountTypeSyncData hasAlipayTrade(Boolean hasAlipayTrade)
@Nullable public Boolean getHasAlipayTrade()
public void setHasAlipayTrade(Boolean hasAlipayTrade)
public AmountTypeSyncData taskAmount(String taskAmount)
public void setTaskAmount(String taskAmount)
public AmountTypeSyncData taskDesc(String taskDesc)
public void setTaskDesc(String taskDesc)
public AmountTypeSyncData tradeNo(String tradeNo)
public void setTradeNo(String tradeNo)
public AmountTypeSyncData 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 AmountTypeSyncDatapublic static AmountTypeSyncData fromJson(String jsonString) throws IOException
jsonString - JSON stringIOException - if the JSON string is invalid with respect to AmountTypeSyncDatapublic String toJson()
Copyright © 2024. All rights reserved.