public class

PromotionCode

extends Record
java.lang.Object
   ↳ com.netsuite.webservices.platform.core_2013_2.Record
     ↳ com.netsuite.webservices.lists.marketing_2013_2.PromotionCode

Class Overview

Java class for PromotionCode complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="PromotionCode">
   <complexContent>
     <extension base="{urn:core_2013_2.platform.webservices.netsuite.com}Record">
       <sequence>
         <element name="implementation" type="{urn:core_2013_2.platform.webservices.netsuite.com}RecordRef" minOccurs="0"/>
         <element name="customForm" type="{urn:core_2013_2.platform.webservices.netsuite.com}RecordRef" minOccurs="0"/>
         <element name="useType" type="{urn:types.marketing_2013_2.lists.webservices.netsuite.com}PromotionCodeUseType" minOccurs="0"/>
         <element name="displayLineDiscounts" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
         <element name="code" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="codePattern" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="numberToGenerate" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
         <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="isInactive" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
         <element name="discount" type="{urn:core_2013_2.platform.webservices.netsuite.com}RecordRef" minOccurs="0"/>
         <element name="rate" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="discountType" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
         <element name="applyDiscountTo" type="{urn:types.marketing_2013_2.lists.webservices.netsuite.com}PromotionCodeApplyDiscountTo" minOccurs="0"/>
         <element name="freeShipMethod" type="{urn:core_2013_2.platform.webservices.netsuite.com}RecordRef" minOccurs="0"/>
         <element name="minimumOrderAmount" type="{http://www.w3.org/2001/XMLSchema}double" 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="isPublic" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
         <element name="currencyList" type="{urn:marketing_2013_2.lists.webservices.netsuite.com}PromotionCodeCurrencyList" minOccurs="0"/>
         <element name="excludeItems" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="itemsList" type="{urn:marketing_2013_2.lists.webservices.netsuite.com}PromotionCodeItemsList" minOccurs="0"/>
         <element name="partnersList" type="{urn:marketing_2013_2.lists.webservices.netsuite.com}PromotionCodePartnersList" minOccurs="0"/>
       </sequence>
       <attribute name="internalId" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="externalId" type="{http://www.w3.org/2001/XMLSchema}string" />
     </extension>
   </complexContent>
 </complexType>
 

Summary

Fields
protected PromotionCodeApplyDiscountTo applyDiscountTo
protected String code
protected String codePattern
protected PromotionCodeCurrencyList currencyList
protected RecordRef customForm
protected String description
protected RecordRef discount
protected Boolean discountType
protected Boolean displayLineDiscounts
protected XMLGregorianCalendar endDate
protected Boolean excludeItems
protected String externalId
protected RecordRef freeShipMethod
protected RecordRef implementation
protected String internalId
protected Boolean isInactive
protected Boolean isPublic
protected PromotionCodeItemsList itemsList
protected Double minimumOrderAmount
protected String name
protected Long numberToGenerate
protected PromotionCodePartnersList partnersList
protected String rate
protected XMLGregorianCalendar startDate
protected PromotionCodeUseType useType
[Expand]
Inherited Fields
From class com.netsuite.webservices.platform.core_2013_2.Record
Public Constructors
PromotionCode()
Public Methods
PromotionCodeApplyDiscountTo getApplyDiscountTo()
Gets the value of the applyDiscountTo property.
String getCode()
Gets the value of the code property.
String getCodePattern()
Gets the value of the codePattern property.
PromotionCodeCurrencyList getCurrencyList()
Gets the value of the currencyList property.
RecordRef getCustomForm()
Gets the value of the customForm property.
String getDescription()
Gets the value of the description property.
RecordRef getDiscount()
Gets the value of the discount property.
Boolean getDiscountType()
Gets the value of the discountType property.
Boolean getDisplayLineDiscounts()
Gets the value of the displayLineDiscounts property.
XMLGregorianCalendar getEndDate()
Gets the value of the endDate property.
Boolean getExcludeItems()
Gets the value of the excludeItems property.
String getExternalId()
Gets the value of the externalId property.
RecordRef getFreeShipMethod()
Gets the value of the freeShipMethod property.
RecordRef getImplementation()
Gets the value of the implementation property.
String getInternalId()
Gets the value of the internalId property.
Boolean getIsInactive()
Gets the value of the isInactive property.
Boolean getIsPublic()
Gets the value of the isPublic property.
PromotionCodeItemsList getItemsList()
Gets the value of the itemsList property.
Double getMinimumOrderAmount()
Gets the value of the minimumOrderAmount property.
String getName()
Gets the value of the name property.
Long getNumberToGenerate()
Gets the value of the numberToGenerate property.
PromotionCodePartnersList getPartnersList()
Gets the value of the partnersList property.
String getRate()
Gets the value of the rate property.
XMLGregorianCalendar getStartDate()
Gets the value of the startDate property.
PromotionCodeUseType getUseType()
Gets the value of the useType property.
void setApplyDiscountTo(PromotionCodeApplyDiscountTo value)
Sets the value of the applyDiscountTo property.
void setCode(String value)
Sets the value of the code property.
void setCodePattern(String value)
Sets the value of the codePattern property.
void setCurrencyList(PromotionCodeCurrencyList value)
Sets the value of the currencyList property.
void setCustomForm(RecordRef value)
Sets the value of the customForm property.
void setDescription(String value)
Sets the value of the description property.
void setDiscount(RecordRef value)
Sets the value of the discount property.
void setDiscountType(Boolean value)
Sets the value of the discountType property.
void setDisplayLineDiscounts(Boolean value)
Sets the value of the displayLineDiscounts property.
void setEndDate(XMLGregorianCalendar value)
Sets the value of the endDate property.
void setExcludeItems(Boolean value)
Sets the value of the excludeItems property.
void setExternalId(String value)
Sets the value of the externalId property.
void setFreeShipMethod(RecordRef value)
Sets the value of the freeShipMethod property.
void setImplementation(RecordRef value)
Sets the value of the implementation property.
void setInternalId(String value)
Sets the value of the internalId property.
void setIsInactive(Boolean value)
Sets the value of the isInactive property.
void setIsPublic(Boolean value)
Sets the value of the isPublic property.
void setItemsList(PromotionCodeItemsList value)
Sets the value of the itemsList property.
void setMinimumOrderAmount(Double value)
Sets the value of the minimumOrderAmount property.
void setName(String value)
Sets the value of the name property.
void setNumberToGenerate(Long value)
Sets the value of the numberToGenerate property.
void setPartnersList(PromotionCodePartnersList value)
Sets the value of the partnersList property.
void setRate(String value)
Sets the value of the rate property.
void setStartDate(XMLGregorianCalendar value)
Sets the value of the startDate property.
void setUseType(PromotionCodeUseType value)
Sets the value of the useType property.
[Expand]
Inherited Methods
From class com.netsuite.webservices.platform.core_2013_2.Record
From class java.lang.Object

Fields

protected PromotionCodeApplyDiscountTo applyDiscountTo

protected String code

protected String codePattern

protected PromotionCodeCurrencyList currencyList

protected RecordRef customForm

protected String description

protected RecordRef discount

protected Boolean discountType

protected Boolean displayLineDiscounts

protected XMLGregorianCalendar endDate

protected Boolean excludeItems

protected String externalId

protected RecordRef freeShipMethod

protected RecordRef implementation

protected String internalId

protected Boolean isInactive

protected Boolean isPublic

protected PromotionCodeItemsList itemsList

protected Double minimumOrderAmount

protected String name

protected Long numberToGenerate

protected PromotionCodePartnersList partnersList

protected String rate

protected XMLGregorianCalendar startDate

protected PromotionCodeUseType useType

Public Constructors

public PromotionCode ()

Public Methods

public PromotionCodeApplyDiscountTo getApplyDiscountTo ()

Gets the value of the applyDiscountTo property.

Returns

public String getCode ()

Gets the value of the code property.

Returns
  • possible object is String

public String getCodePattern ()

Gets the value of the codePattern property.

Returns
  • possible object is String

public PromotionCodeCurrencyList getCurrencyList ()

Gets the value of the currencyList property.

Returns

public RecordRef getCustomForm ()

Gets the value of the customForm property.

Returns

public String getDescription ()

Gets the value of the description property.

Returns
  • possible object is String

public RecordRef getDiscount ()

Gets the value of the discount property.

Returns

public Boolean getDiscountType ()

Gets the value of the discountType property. This getter has been renamed from isDiscountType() to getDiscountType() by cxf-xjc-boolean plugin.

Returns
  • possible object is Boolean

public Boolean getDisplayLineDiscounts ()

Gets the value of the displayLineDiscounts property. This getter has been renamed from isDisplayLineDiscounts() to getDisplayLineDiscounts() by cxf-xjc-boolean plugin.

Returns
  • possible object is Boolean

public XMLGregorianCalendar getEndDate ()

Gets the value of the endDate property.

Returns
  • possible object is XMLGregorianCalendar

public Boolean getExcludeItems ()

Gets the value of the excludeItems property. This getter has been renamed from isExcludeItems() to getExcludeItems() by cxf-xjc-boolean plugin.

Returns
  • possible object is Boolean

public String getExternalId ()

Gets the value of the externalId property.

Returns
  • possible object is String

public RecordRef getFreeShipMethod ()

Gets the value of the freeShipMethod property.

Returns

public RecordRef getImplementation ()

Gets the value of the implementation property.

Returns

public String getInternalId ()

Gets the value of the internalId property.

Returns
  • possible object is String

public Boolean getIsInactive ()

Gets the value of the isInactive property. This getter has been renamed from isIsInactive() to getIsInactive() by cxf-xjc-boolean plugin.

Returns
  • possible object is Boolean

public Boolean getIsPublic ()

Gets the value of the isPublic property. This getter has been renamed from isIsPublic() to getIsPublic() by cxf-xjc-boolean plugin.

Returns
  • possible object is Boolean

public PromotionCodeItemsList getItemsList ()

Gets the value of the itemsList property.

Returns

public Double getMinimumOrderAmount ()

Gets the value of the minimumOrderAmount property.

Returns
  • possible object is Double

public String getName ()

Gets the value of the name property.

Returns
  • possible object is String

public Long getNumberToGenerate ()

Gets the value of the numberToGenerate property.

Returns
  • possible object is Long

public PromotionCodePartnersList getPartnersList ()

Gets the value of the partnersList property.

Returns

public String getRate ()

Gets the value of the rate property.

Returns
  • possible object is String

public XMLGregorianCalendar getStartDate ()

Gets the value of the startDate property.

Returns
  • possible object is XMLGregorianCalendar

public PromotionCodeUseType getUseType ()

Gets the value of the useType property.

Returns

public void setApplyDiscountTo (PromotionCodeApplyDiscountTo value)

Sets the value of the applyDiscountTo property.

Parameters
value Allowed object is PromotionCodeApplyDiscountTo

public void setCode (String value)

Sets the value of the code property.

Parameters
value Allowed object is String

public void setCodePattern (String value)

Sets the value of the codePattern property.

Parameters
value Allowed object is String

public void setCurrencyList (PromotionCodeCurrencyList value)

Sets the value of the currencyList property.

Parameters
value Allowed object is PromotionCodeCurrencyList

public void setCustomForm (RecordRef value)

Sets the value of the customForm property.

Parameters
value Allowed object is RecordRef

public void setDescription (String value)

Sets the value of the description property.

Parameters
value Allowed object is String

public void setDiscount (RecordRef value)

Sets the value of the discount property.

Parameters
value Allowed object is RecordRef

public void setDiscountType (Boolean value)

Sets the value of the discountType property.

Parameters
value Allowed object is Boolean

public void setDisplayLineDiscounts (Boolean value)

Sets the value of the displayLineDiscounts property.

Parameters
value Allowed object is Boolean

public void setEndDate (XMLGregorianCalendar value)

Sets the value of the endDate property.

Parameters
value Allowed object is XMLGregorianCalendar

public void setExcludeItems (Boolean value)

Sets the value of the excludeItems property.

Parameters
value Allowed object is Boolean

public void setExternalId (String value)

Sets the value of the externalId property.

Parameters
value Allowed object is String

public void setFreeShipMethod (RecordRef value)

Sets the value of the freeShipMethod property.

Parameters
value Allowed object is RecordRef

public void setImplementation (RecordRef value)

Sets the value of the implementation property.

Parameters
value Allowed object is RecordRef

public void setInternalId (String value)

Sets the value of the internalId property.

Parameters
value Allowed object is String

public void setIsInactive (Boolean value)

Sets the value of the isInactive property.

Parameters
value Allowed object is Boolean

public void setIsPublic (Boolean value)

Sets the value of the isPublic property.

Parameters
value Allowed object is Boolean

public void setItemsList (PromotionCodeItemsList value)

Sets the value of the itemsList property.

Parameters
value Allowed object is PromotionCodeItemsList

public void setMinimumOrderAmount (Double value)

Sets the value of the minimumOrderAmount property.

Parameters
value Allowed object is Double

public void setName (String value)

Sets the value of the name property.

Parameters
value Allowed object is String

public void setNumberToGenerate (Long value)

Sets the value of the numberToGenerate property.

Parameters
value Allowed object is Long

public void setPartnersList (PromotionCodePartnersList value)

Sets the value of the partnersList property.

Parameters
value Allowed object is PromotionCodePartnersList

public void setRate (String value)

Sets the value of the rate property.

Parameters
value Allowed object is String

public void setStartDate (XMLGregorianCalendar value)

Sets the value of the startDate property.

Parameters
value Allowed object is XMLGregorianCalendar

public void setUseType (PromotionCodeUseType value)

Sets the value of the useType property.

Parameters
value Allowed object is PromotionCodeUseType