public class

PromotionCode

extends Record
java.lang.Object
   ↳ com.netsuite.webservices.platform.core_2010_2.Record
     ↳ com.netsuite.webservices.lists.marketing_2010_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_2010_2.platform.webservices.netsuite.com}Record">
       <sequence>
         <element name="customForm" type="{urn:core_2010_2.platform.webservices.netsuite.com}RecordRef" minOccurs="0"/>
         <element name="code" type="{http://www.w3.org/2001/XMLSchema}string" 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_2010_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_2010_2.lists.webservices.netsuite.com}PromotionCodeApplyDiscountTo" minOccurs="0"/>
         <element name="freeShipMethod" type="{urn:core_2010_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_2010_2.lists.webservices.netsuite.com}PromotionCodeCurrencyList" minOccurs="0"/>
         <element name="excludeItems" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
         <element name="itemsList" type="{urn:marketing_2010_2.lists.webservices.netsuite.com}PromotionCodeItemsList" minOccurs="0"/>
         <element name="partnersList" type="{urn:marketing_2010_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 PromotionCodeCurrencyList currencyList
protected RecordRef customForm
protected String description
protected RecordRef discount
protected Boolean discountType
protected XMLGregorianCalendar endDate
protected Boolean excludeItems
protected String externalId
protected RecordRef freeShipMethod
protected String internalId
protected Boolean isInactive
protected Boolean isPublic
protected PromotionCodeItemsList itemsList
protected Double minimumOrderAmount
protected PromotionCodePartnersList partnersList
protected String rate
protected XMLGregorianCalendar startDate
[Expand]
Inherited Fields
From class com.netsuite.webservices.platform.core_2010_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.
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.
XMLGregorianCalendar getEndDate()
Gets the value of the endDate property.
String getExternalId()
Gets the value of the externalId property.
RecordRef getFreeShipMethod()
Gets the value of the freeShipMethod property.
String getInternalId()
Gets the value of the internalId property.
PromotionCodeItemsList getItemsList()
Gets the value of the itemsList property.
Double getMinimumOrderAmount()
Gets the value of the minimumOrderAmount 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.
Boolean isDiscountType()
Gets the value of the discountType property.
Boolean isExcludeItems()
Gets the value of the excludeItems property.
Boolean isIsInactive()
Gets the value of the isInactive property.
Boolean isIsPublic()
Gets the value of the isPublic property.
void setApplyDiscountTo(PromotionCodeApplyDiscountTo value)
Sets the value of the applyDiscountTo property.
void setCode(String value)
Sets the value of the code 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 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 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 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.
[Expand]
Inherited Methods
From class com.netsuite.webservices.platform.core_2010_2.Record
From class java.lang.Object

Fields

protected PromotionCodeApplyDiscountTo applyDiscountTo

protected String code

protected PromotionCodeCurrencyList currencyList

protected RecordRef customForm

protected String description

protected RecordRef discount

protected Boolean discountType

protected XMLGregorianCalendar endDate

protected Boolean excludeItems

protected String externalId

protected RecordRef freeShipMethod

protected String internalId

protected Boolean isInactive

protected Boolean isPublic

protected PromotionCodeItemsList itemsList

protected Double minimumOrderAmount

protected PromotionCodePartnersList partnersList

protected String rate

protected XMLGregorianCalendar startDate

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 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 XMLGregorianCalendar getEndDate ()

Gets the value of the endDate property.

Returns
  • possible object is XMLGregorianCalendar

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 String getInternalId ()

Gets the value of the internalId property.

Returns
  • possible object is String

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 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 Boolean isDiscountType ()

Gets the value of the discountType property.

Returns
  • possible object is Boolean

public Boolean isExcludeItems ()

Gets the value of the excludeItems property.

Returns
  • possible object is Boolean

public Boolean isIsInactive ()

Gets the value of the isInactive property.

Returns
  • possible object is Boolean

public Boolean isIsPublic ()

Gets the value of the isPublic property.

Returns
  • possible object is Boolean

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 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 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 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 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