Class CampaignCode
- java.lang.Object
-
- com.broadleafcommerce.orderoperation.domain.CampaignCode
-
- All Implemented Interfaces:
Serializable
public class CampaignCode extends Object implements Serializable
A CampaignCode represents a distinct code for a Campaign. It is typically created through the Code Generation endpoint and services.- Author:
- Chad Harchar (charchar)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CampaignCode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
Instant
getActiveEndDate()
Defines the ending time for which this campaign code is active.Instant
getActiveStartDate()
Defines the beginning time for which this campaign code is active.String
getCampaignId()
Defines the id for the campaign that originated this campaign code.String
getCode()
The string code that represents this record.String
getEmailRegEx()
Defines a regex to be used for validating this campaign code for customer updateUses.String
getGeneratorId()
Defines the id for the code generator that originated this campaign code.String
getId()
int
getMaxUses()
Defines the number of max uses allowed for this campaign code.int
hashCode()
boolean
isAssigned()
Defines whether this code has been assigned for use.void
setActiveEndDate(Instant activeEndDate)
Defines the ending time for which this campaign code is active.void
setActiveStartDate(Instant activeStartDate)
Defines the beginning time for which this campaign code is active.void
setAssigned(boolean assigned)
Defines whether this code has been assigned for use.void
setCampaignId(String campaignId)
Defines the id for the campaign that originated this campaign code.void
setCode(String code)
The string code that represents this record.void
setEmailRegEx(String emailRegEx)
Defines a regex to be used for validating this campaign code for customer updateUses.void
setGeneratorId(String generatorId)
Defines the id for the code generator that originated this campaign code.void
setId(String id)
void
setMaxUses(int maxUses)
Defines the number of max uses allowed for this campaign code.String
toString()
-
-
-
Method Detail
-
getId
public String getId()
-
getCode
public String getCode()
The string code that represents this record.
-
getActiveStartDate
public Instant getActiveStartDate()
Defines the beginning time for which this campaign code is active. Overrides the value set in theCampaign#activeStartDate
.
-
getActiveEndDate
public Instant getActiveEndDate()
Defines the ending time for which this campaign code is active. Overrides the value set in theCampaign#activeEndDate
.
-
getMaxUses
public int getMaxUses()
Defines the number of max uses allowed for this campaign code.
-
getEmailRegEx
public String getEmailRegEx()
Defines a regex to be used for validating this campaign code for customer updateUses.
-
getCampaignId
public String getCampaignId()
Defines the id for the campaign that originated this campaign code.
-
getGeneratorId
public String getGeneratorId()
Defines the id for the code generator that originated this campaign code.
-
isAssigned
public boolean isAssigned()
Defines whether this code has been assigned for use.
-
setId
public void setId(String id)
-
setCode
public void setCode(String code)
The string code that represents this record.
-
setActiveStartDate
public void setActiveStartDate(Instant activeStartDate)
Defines the beginning time for which this campaign code is active. Overrides the value set in theCampaign#activeStartDate
.
-
setActiveEndDate
public void setActiveEndDate(Instant activeEndDate)
Defines the ending time for which this campaign code is active. Overrides the value set in theCampaign#activeEndDate
.
-
setMaxUses
public void setMaxUses(int maxUses)
Defines the number of max uses allowed for this campaign code.
-
setEmailRegEx
public void setEmailRegEx(String emailRegEx)
Defines a regex to be used for validating this campaign code for customer updateUses.
-
setCampaignId
public void setCampaignId(String campaignId)
Defines the id for the campaign that originated this campaign code.
-
setGeneratorId
public void setGeneratorId(String generatorId)
Defines the id for the code generator that originated this campaign code.
-
setAssigned
public void setAssigned(boolean assigned)
Defines whether this code has been assigned for use.
-
canEqual
protected boolean canEqual(Object other)
-
-