@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen") public class VoucherDetail extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
VoucherDetail.CustomTypeAdapterFactory |
| 限定符和类型 | 字段和说明 |
|---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_AMOUNT |
static String |
SERIALIZED_NAME_ID |
static String |
SERIALIZED_NAME_MEMO |
static String |
SERIALIZED_NAME_MERCHANT_CONTRIBUTE |
static String |
SERIALIZED_NAME_NAME |
static String |
SERIALIZED_NAME_OTHER_CONTRIBUTE |
static String |
SERIALIZED_NAME_OTHER_CONTRIBUTE_DETAIL |
static String |
SERIALIZED_NAME_PURCHASE_ANT_CONTRIBUTE |
static String |
SERIALIZED_NAME_PURCHASE_BUYER_CONTRIBUTE |
static String |
SERIALIZED_NAME_PURCHASE_MERCHANT_CONTRIBUTE |
static String |
SERIALIZED_NAME_TEMPLATE_ID |
static String |
SERIALIZED_NAME_TYPE |
| 构造器和说明 |
|---|
VoucherDetail() |
| 限定符和类型 | 方法和说明 |
|---|---|
VoucherDetail |
addOtherContributeDetailItem(ContributeDetail otherContributeDetailItem) |
VoucherDetail |
amount(String amount) |
boolean |
equals(Object o) |
static VoucherDetail |
fromJson(String jsonString)
Create an instance of VoucherDetail 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 |
getId()
券id
|
String |
getMemo()
优惠券备注信息
|
String |
getMerchantContribute()
商家出资(特指发起交易的商家出资金额)
|
String |
getName()
券名称
|
String |
getOtherContribute()
其他出资方出资金额,可能是支付宝,可能是品牌商,或者其他方,也可能是他们的一起出资
|
List<ContributeDetail> |
getOtherContributeDetail()
优惠券的其他出资方明细
|
String |
getPurchaseAntContribute()
如果使用的这张券是用户购买的,则该字段代表用户在购买这张券时平台优惠的金额
|
String |
getPurchaseBuyerContribute()
如果使用的这张券是用户购买的,则该字段代表用户在购买这张券时用户实际付款的金额
|
String |
getPurchaseMerchantContribute()
如果使用的这张券是用户购买的,则该字段代表用户在购买这张券时商户优惠的金额
|
String |
getTemplateId()
券模板id
|
String |
getType()
券类型
|
int |
hashCode() |
VoucherDetail |
id(String id) |
VoucherDetail |
memo(String memo) |
VoucherDetail |
merchantContribute(String merchantContribute) |
VoucherDetail |
name(String name) |
VoucherDetail |
otherContribute(String otherContribute) |
VoucherDetail |
otherContributeDetail(List<ContributeDetail> otherContributeDetail) |
VoucherDetail |
purchaseAntContribute(String purchaseAntContribute) |
VoucherDetail |
purchaseBuyerContribute(String purchaseBuyerContribute) |
VoucherDetail |
purchaseMerchantContribute(String purchaseMerchantContribute) |
VoucherDetail |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
void |
setAmount(String amount) |
void |
setId(String id) |
void |
setMemo(String memo) |
void |
setMerchantContribute(String merchantContribute) |
void |
setName(String name) |
void |
setOtherContribute(String otherContribute) |
void |
setOtherContributeDetail(List<ContributeDetail> otherContributeDetail) |
void |
setPurchaseAntContribute(String purchaseAntContribute) |
void |
setPurchaseBuyerContribute(String purchaseBuyerContribute) |
void |
setPurchaseMerchantContribute(String purchaseMerchantContribute) |
void |
setTemplateId(String templateId) |
void |
setType(String type) |
VoucherDetail |
templateId(String templateId) |
String |
toJson()
Convert an instance of VoucherDetail to an JSON string
|
String |
toString() |
VoucherDetail |
type(String type) |
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_MERCHANT_CONTRIBUTE
public static final String SERIALIZED_NAME_OTHER_CONTRIBUTE
public static final String SERIALIZED_NAME_OTHER_CONTRIBUTE_DETAIL
public static final String SERIALIZED_NAME_PURCHASE_ANT_CONTRIBUTE
public static final String SERIALIZED_NAME_PURCHASE_BUYER_CONTRIBUTE
public static final String SERIALIZED_NAME_PURCHASE_MERCHANT_CONTRIBUTE
public VoucherDetail amount(String amount)
public void setAmount(String amount)
public VoucherDetail id(String id)
public void setId(String id)
public VoucherDetail memo(String memo)
public void setMemo(String memo)
public VoucherDetail merchantContribute(String merchantContribute)
@Nullable public String getMerchantContribute()
public void setMerchantContribute(String merchantContribute)
public VoucherDetail name(String name)
public void setName(String name)
public VoucherDetail otherContribute(String otherContribute)
@Nullable public String getOtherContribute()
public void setOtherContribute(String otherContribute)
public VoucherDetail otherContributeDetail(List<ContributeDetail> otherContributeDetail)
public VoucherDetail addOtherContributeDetailItem(ContributeDetail otherContributeDetailItem)
@Nullable public List<ContributeDetail> getOtherContributeDetail()
public void setOtherContributeDetail(List<ContributeDetail> otherContributeDetail)
public VoucherDetail purchaseAntContribute(String purchaseAntContribute)
@Nullable public String getPurchaseAntContribute()
public void setPurchaseAntContribute(String purchaseAntContribute)
public VoucherDetail purchaseBuyerContribute(String purchaseBuyerContribute)
@Nullable public String getPurchaseBuyerContribute()
public void setPurchaseBuyerContribute(String purchaseBuyerContribute)
public VoucherDetail purchaseMerchantContribute(String purchaseMerchantContribute)
@Nullable public String getPurchaseMerchantContribute()
public void setPurchaseMerchantContribute(String purchaseMerchantContribute)
public VoucherDetail templateId(String templateId)
public void setTemplateId(String templateId)
public VoucherDetail type(String type)
public void setType(String type)
public VoucherDetail 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 VoucherDetailpublic static VoucherDetail fromJson(String jsonString) throws IOException
jsonString - JSON stringIOException - if the JSON string is invalid with respect to VoucherDetailpublic String toJson()
Copyright © 2024. All rights reserved.