public class MarketingPromotions extends ModelObject
Modifier and Type | Field and Description |
---|---|
static java.lang.String | PROP_MARKETING_PROMOTIONS
A constant for the customer Id property name.
|
static java.lang.String | PROP_MARKETING_PROMOTIONS_CUSTOMER_ID
A constant for the Customer Id property name.
|
static java.lang.String | PROP_MARKETING_PROMOTIONS_ORDER_ID
A constant for the Order Id property name.
|
Constructor and Description |
---|
MarketingPromotions()
Default constructor to create a new Marketing Promotions.
|
Modifier and Type | Method and Description |
---|---|
void | addMarketingPromotion(MarketingPromotion marketingPromotion)
This method adds a marketing promotion object to the current list of promotions.
|
java.lang.String | getCustomerId()
This method gets the memberId for the customer.
|
MarketingPromotion[] | getMarketingPromotions()
This method returns the current list of promotions in an array.
|
java.lang.String | getOrderId()
This method returns the order Id.
|
void | removeItem(java.lang.String productId)
This method removes an item from the promotions list based on product Id.
|
void | removeItems(java.lang.String[] productIds)
This method removes multiple promotions from the marketing promotions list based on the product Ids.
|
void | setCustomerId(java.lang.String customerId)
This method sets the memberId for the customer.
|
void | setOrderId(java.lang.String orderId)
This method sets the Id for the order
|
public static final java.lang.String PROP_MARKETING_PROMOTIONS_CUSTOMER_ID
The value is "marketingPromotionsCustomerId".
The data stored under the PROP_MARKETING_PROMOTIONS_CUSTOMER_ID property is a String. This properties represents the memberId of a customer
public static final java.lang.String PROP_MARKETING_PROMOTIONS_ORDER_ID
The value is "marketingPromotionsOrderId".
The data stored under the PROP_MARKETING_PROMOTIONS_ORDER_ID property is a String. This properties represents the Order Id
public static final java.lang.String PROP_MARKETING_PROMOTIONS
The value is "marketingPromotions".
The data stored under the PROP_MARKETING_PROMOTIONS property is a ModelObjectList. This properties represents the marketing promotions for a (customerId, orderId) pair.
public MarketingPromotions()
public void addMarketingPromotion(MarketingPromotion marketingPromotion)
public MarketingPromotion[] getMarketingPromotions()
public java.lang.String getCustomerId()
public void setCustomerId(java.lang.String customerId)
public java.lang.String getOrderId()
public void setOrderId(java.lang.String orderId)
public void removeItem(java.lang.String productId)
public void removeItems(java.lang.String[] productIds)