public class Coupon extends Object
Java class for Coupon complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Coupon">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="CouponCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="ClassName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="CouponType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="Amount" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
<element name="SpendThreshold" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
<element name="CurrencyCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="PercentOff" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
<element name="ActiveDuration" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
<element name="ExpirationDate" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
<element name="StartDate" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
<element name="EndDate" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
<element name="SendToEmail" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="SendToDate" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
<element name="IsRedeemed" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
<element name="RedemptionInfo" type="{https://bingads.microsoft.com/Customer/v13/Entities}CouponRedemption" minOccurs="0"/>
<element name="ClaimInfo" type="{https://bingads.microsoft.com/Customer/v13/Entities}CouponClaimInfo" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected Integer |
activeDuration |
protected Double |
amount |
protected CouponClaimInfo |
claimInfo |
protected String |
className |
protected String |
couponCode |
protected String |
couponType |
protected String |
currencyCode |
protected Calendar |
endDate |
protected Calendar |
expirationDate |
protected Boolean |
isRedeemed |
protected Double |
percentOff |
protected CouponRedemption |
redemptionInfo |
protected Calendar |
sendToDate |
protected String |
sendToEmail |
protected Double |
spendThreshold |
protected Calendar |
startDate |
| Constructor and Description |
|---|
Coupon() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getActiveDuration()
Gets the value of the activeDuration property.
|
Double |
getAmount()
Gets the value of the amount property.
|
CouponClaimInfo |
getClaimInfo()
Gets the value of the claimInfo property.
|
String |
getClassName()
Gets the value of the className property.
|
String |
getCouponCode()
Gets the value of the couponCode property.
|
String |
getCouponType()
Gets the value of the couponType property.
|
String |
getCurrencyCode()
Gets the value of the currencyCode property.
|
Calendar |
getEndDate()
Gets the value of the endDate property.
|
Calendar |
getExpirationDate()
Gets the value of the expirationDate property.
|
Boolean |
getIsRedeemed()
Gets the value of the isRedeemed property.
|
Double |
getPercentOff()
Gets the value of the percentOff property.
|
CouponRedemption |
getRedemptionInfo()
Gets the value of the redemptionInfo property.
|
Calendar |
getSendToDate()
Gets the value of the sendToDate property.
|
String |
getSendToEmail()
Gets the value of the sendToEmail property.
|
Double |
getSpendThreshold()
Gets the value of the spendThreshold property.
|
Calendar |
getStartDate()
Gets the value of the startDate property.
|
void |
setActiveDuration(Integer value)
Sets the value of the activeDuration property.
|
void |
setAmount(Double value)
Sets the value of the amount property.
|
void |
setClaimInfo(CouponClaimInfo value)
Sets the value of the claimInfo property.
|
void |
setClassName(String value)
Sets the value of the className property.
|
void |
setCouponCode(String value)
Sets the value of the couponCode property.
|
void |
setCouponType(String value)
Sets the value of the couponType property.
|
void |
setCurrencyCode(String value)
Sets the value of the currencyCode property.
|
void |
setEndDate(Calendar value)
Sets the value of the endDate property.
|
void |
setExpirationDate(Calendar value)
Sets the value of the expirationDate property.
|
void |
setIsRedeemed(Boolean value)
Sets the value of the isRedeemed property.
|
void |
setPercentOff(Double value)
Sets the value of the percentOff property.
|
void |
setRedemptionInfo(CouponRedemption value)
Sets the value of the redemptionInfo property.
|
void |
setSendToDate(Calendar value)
Sets the value of the sendToDate property.
|
void |
setSendToEmail(String value)
Sets the value of the sendToEmail property.
|
void |
setSpendThreshold(Double value)
Sets the value of the spendThreshold property.
|
void |
setStartDate(Calendar value)
Sets the value of the startDate property.
|
protected String couponCode
protected String className
protected String couponType
protected Double amount
protected Double spendThreshold
protected String currencyCode
protected Double percentOff
protected Integer activeDuration
protected Calendar expirationDate
protected Calendar startDate
protected Calendar endDate
protected String sendToEmail
protected Calendar sendToDate
protected Boolean isRedeemed
protected CouponRedemption redemptionInfo
protected CouponClaimInfo claimInfo
public String getCouponCode()
Stringpublic void setCouponCode(String value)
value - allowed object is
Stringpublic String getClassName()
Stringpublic void setClassName(String value)
value - allowed object is
Stringpublic String getCouponType()
Stringpublic void setCouponType(String value)
value - allowed object is
Stringpublic Double getAmount()
Doublepublic void setAmount(Double value)
value - allowed object is
Doublepublic Double getSpendThreshold()
Doublepublic void setSpendThreshold(Double value)
value - allowed object is
Doublepublic String getCurrencyCode()
Stringpublic void setCurrencyCode(String value)
value - allowed object is
Stringpublic Double getPercentOff()
Doublepublic void setPercentOff(Double value)
value - allowed object is
Doublepublic Integer getActiveDuration()
Integerpublic void setActiveDuration(Integer value)
value - allowed object is
Integerpublic Calendar getExpirationDate()
Stringpublic void setExpirationDate(Calendar value)
value - allowed object is
Stringpublic Calendar getStartDate()
Stringpublic void setStartDate(Calendar value)
value - allowed object is
Stringpublic Calendar getEndDate()
Stringpublic void setEndDate(Calendar value)
value - allowed object is
Stringpublic String getSendToEmail()
Stringpublic void setSendToEmail(String value)
value - allowed object is
Stringpublic Calendar getSendToDate()
Stringpublic void setSendToDate(Calendar value)
value - allowed object is
Stringpublic Boolean getIsRedeemed()
Booleanpublic void setIsRedeemed(Boolean value)
value - allowed object is
Booleanpublic CouponRedemption getRedemptionInfo()
CouponRedemptionpublic void setRedemptionInfo(CouponRedemption value)
value - allowed object is
CouponRedemptionpublic CouponClaimInfo getClaimInfo()
CouponClaimInfopublic void setClaimInfo(CouponClaimInfo value)
value - allowed object is
CouponClaimInfoCopyright © 2024. All rights reserved.