public class StoreOrderImpl
extends atg.commerce.order.OrderImpl
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string.
|
static java.lang.String |
GIFT_MESSAGE_FROM_KEY
Gift message from key name.
|
static java.lang.String |
GIFT_MESSAGE_KEY
Gift message key name.
|
static java.lang.String |
GIFT_MESSAGE_TO_KEY
Gift message to key name.
|
static java.lang.String |
SAMPLE_COMMERCE_ITEM_TYPE
Sample commerce item type.
|
Constructor and Description |
---|
StoreOrderImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addOmsSegment(java.lang.String pOmsSegment)
Sets the OMS segments.
|
boolean |
getContainsGiftMessage()
Checks to see if this order has a gift message special instruction.
|
boolean |
getContainsGiftWrap()
Checks to see if this order is gift wrapped or not.
|
boolean |
getGiftMessagePopulated()
Determines if user has entered gift message.
|
GiftWrapCommerceItem |
getGiftWrapItem()
Returns gift wrap commerce item.
|
java.lang.String |
getOmsOrderId() |
java.util.List |
getOmsSegments() |
long |
getOriginalTotalItemsCount()
Returns original total count of commerce items in the order at the point
when the order has been submitted.
|
double |
getStoreCreditsAppliedTotal()
This is a read-only property getter.
|
long |
getTotalReturnedItemsCount()
Returns total count of returned items in the order.
|
boolean |
isShouldAddGiftNote() |
boolean |
removeAddress(java.lang.String pShippingGroupId)
Removes an Address associated with this orders shipping group.
|
void |
removeAllOmsSegments()
Removes all OMS segments from order.
|
void |
setGiftMessage(java.lang.String pMessageTo,
java.lang.String pMessage,
java.lang.String pMessageFrom)
Sets the gift message.
|
void |
setOmsOrderId(java.lang.String pOmsId)
Sets the SAP order id.
|
void |
setShouldAddGiftNote(boolean pShouldAddGiftNote) |
java.lang.String |
toString()
Method that renders the general order information in a readable string format.
|
addChangedProperty, addCommerceItem, addCommerceItem, addCostCenter, addCostCenter, addCostCenterRelationship, addCostCenterRelationship, addOrderIdToRelatedOrders, addPaymentGroup, addPaymentGroup, addPaymentGroupRelationship, addPaymentGroupRelationship, addRelationship, addRelationship, addShippingGroup, addShippingGroup, clearChangedProperties, clearOrder, ensureContainers, equals, getActiveQuoteOrderId, getAgentId, getApprovalSystemMessages, getApproverIds, getApproverMessages, getAuthorizedApproverIds, getChangedProperties, getCommerceItem, getCommerceItem, getCommerceItemCount, getCommerceItems, getCommerceItemsByCatalogRefId, getCompletedDate, getCompletedTime, getConfiguratorId, getCostCenter, getCostCenterCount, getCostCenterRelationship, getCostCenterRelationshipCount, getCostCenterRelationships, getCostCenters, getCreatedByOrderId, getCreationDate, getCreationSiteId, getCreationTime, getDescription, getLastModifiedDate, getLastModifiedTime, getManualAdjustments, getOrderClassType, getOrganizationId, getOriginOfOrder, getPaymentGroup, getPaymentGroupCount, getPaymentGroupRelationship, getPaymentGroupRelationshipCount, getPaymentGroupRelationships, getPaymentGroups, getPriceInfo, getPriceInfoRepositoryItem, getProfileId, getPropertyValue, getQuoteInfo, getRelatedOrders, getRelationship, getRelationshipCount, getRelationships, getRepositoryItem, getSalesChannel, getSaveAllProperties, getShippingGroup, getShippingGroupCount, getShippingGroups, getSiteId, getSpecialInstructions, getState, getStateAsString, getStateAsUserResource, getStateDetail, getStateDetailAsUserResource, getSubmittedDate, getSubmittedTime, getTaxPriceInfo, getTaxPriceInfoRepositoryItem, getTotalCommerceItemCount, getTotalCommerceItemCountWithFraction, getTransientData, getVersion, hashCode, invalidateOrder, invalidateOrderInternal, isChanged, isExplicitlySaved, isTransient, preEnsureContainers, removeAllCommerceItems, removeAllCostCenterRelationships, removeAllCostCenters, removeAllPaymentGroupRelationships, removeAllPaymentGroups, removeAllRelationships, removeAllShippingGroups, removeCommerceItem, removeCostCenter, removeCostCenterRelationship, removePaymentGroup, removePaymentGroupRelationship, removeRelationship, removeShippingGroup, repositionCommerceItem, setActiveQuoteOrderId, setAgentId, setApprovalSystemMessages, setApproverIds, setApproverMessages, setAuthorizedApproverIds, setChanged, setCompletedDate, setCompletedTime, setConfiguratorId, setCreatedByOrderId, setCreationDate, setCreationSiteId, setCreationTime, setDescription, setExplicitlySaved, setLastModifiedDate, setLastModifiedTime, setManualAdjustments, setOrderClassType, setOrganizationId, setOriginOfOrder, setPriceInfo, setPriceInfoRepositoryItem, setProfileId, setPropertyValue, setQuoteInfo, setRepositoryItem, setSalesChannel, setSaveAllProperties, setSiteId, setSpecialInstructions, setState, setStateAsString, setStateDetail, setSubmittedDate, setSubmittedTime, setTaxPriceInfo, setTaxPriceInfoRepositoryItem, setTransient, setTransientData, setVersion, update, updateVersion
public static final java.lang.String CLASS_VERSION
public static final java.lang.String GIFT_MESSAGE_TO_KEY
public static final java.lang.String GIFT_MESSAGE_KEY
public static final java.lang.String GIFT_MESSAGE_FROM_KEY
public static final java.lang.String SAMPLE_COMMERCE_ITEM_TYPE
public boolean isShouldAddGiftNote()
public void setShouldAddGiftNote(boolean pShouldAddGiftNote)
pShouldAddGiftNote
- the shouldAddGiftNote to setpublic java.lang.String getOmsOrderId()
public void setOmsOrderId(java.lang.String pOmsId)
pOmsId
- - the SAP order idpublic java.util.List getOmsSegments()
public void addOmsSegment(java.lang.String pOmsSegment)
pOmsSegment
- - list of OMS segments.public void removeAllOmsSegments()
public boolean getContainsGiftWrap()
public GiftWrapCommerceItem getGiftWrapItem()
public boolean getContainsGiftMessage()
public void setGiftMessage(java.lang.String pMessageTo, java.lang.String pMessage, java.lang.String pMessageFrom)
pMessageTo
- - the message to field.pMessage
- - the message field.pMessageFrom
- - the message from field.public boolean getGiftMessagePopulated()
public double getStoreCreditsAppliedTotal()
storeCreditsAppliedTotal
property contains total amount of store credits
applied to the current order.public long getTotalReturnedItemsCount()
public long getOriginalTotalItemsCount()
public boolean removeAddress(java.lang.String pShippingGroupId)
pShippingGroupId
- - The shipping groups id from which to remove the address.public java.lang.String toString()
toString
in class atg.commerce.order.OrderImpl