public class StorePaymentGroupManager
extends atg.commerce.order.PaymentGroupManager
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string.
|
Constructor and Description |
---|
StorePaymentGroupManager() |
Modifier and Type | Method and Description |
---|---|
atg.commerce.claimable.ClaimableManager |
getClaimableManager() |
java.util.List |
getOnlineCredits(java.lang.String[] pOnlineCreditIds)
This will return the online credits selected by the user.
|
atg.commerce.order.OrderManager |
getOrderManager() |
java.lang.String |
getStoreCreditPaymentType() |
StoreOrderTools |
getStoreOrderTools() |
boolean |
initializePaymentMethods(atg.repository.RepositoryItem pProfile,
atg.commerce.order.Order pOrder,
java.lang.String[] pOnlineCreditIds)
This method will take an array of store credit ids, and create payment
groups and add them to the order.
|
boolean |
isPaymentGroupUsed(atg.commerce.order.Order pOrder,
atg.commerce.order.PaymentGroup pPaymentGroup)
This returns true if this is the only payment group in the order,
or if this payment group is not empty.
|
void |
removeStoreCreditPaymentGroups(atg.commerce.order.Order pOrder)
Given an order, return all the store credit payment group ids.
|
void |
setClaimableManager(atg.commerce.claimable.ClaimableManager pClaimableManager) |
void |
setOrderManager(atg.commerce.order.OrderManager pOrderManager) |
void |
setStoreCreditPaymentType(java.lang.String pStoreCreditPaymentType) |
void |
setStoreOrderTools(StoreOrderTools pStoreOrderTools) |
addPaymentGroupToOrder, addPaymentGroupToOrder, createPaymentGroup, createPaymentGroup, getAllPaymentGroupRelationships, getNonModifiablePaymentGroups, getNonModifiablePaymentGroupStates, getOrderTools, getPaymentGroupCommerceItemRelationship, getPaymentGroupOrderRelationship, getPaymentGroupOrderRelationshipIfExists, getPaymentGroupShippingGroupRelationship, initializeCreditCard, initializeGiftCertificate, initializeStoreCredit, isPaymentGroupInOrder, paymentGroupIsModifiable, recalculatePaymentGroupAmounts, removeAllPaymentGroupsFromOrder, removeAllPaymentGroupsFromOrder, removeAllRelationshipsFromPaymentGroup, removeAllRelationshipsFromPaymentGroup, removeEmptyPaymentGroups, removePaymentGroupFromOrder, setNonModifiablePaymentGroupStates, setOrderTools
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService, toString
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public static final java.lang.String CLASS_VERSION
public atg.commerce.claimable.ClaimableManager getClaimableManager()
public void setClaimableManager(atg.commerce.claimable.ClaimableManager pClaimableManager)
pClaimableManager
- - claimable manager.public atg.commerce.order.OrderManager getOrderManager()
public void setOrderManager(atg.commerce.order.OrderManager pOrderManager)
pOrderManager
- - order managerpublic StoreOrderTools getStoreOrderTools()
public void setStoreOrderTools(StoreOrderTools pStoreOrderTools)
pStoreOrderTools
- - the Store order tools.public java.lang.String getStoreCreditPaymentType()
public void setStoreCreditPaymentType(java.lang.String pStoreCreditPaymentType)
pStoreCreditPaymentType
- - store credit payment type.public void removeStoreCreditPaymentGroups(atg.commerce.order.Order pOrder)
pOrder
- - the order.public boolean initializePaymentMethods(atg.repository.RepositoryItem pProfile, atg.commerce.order.Order pOrder, java.lang.String[] pOnlineCreditIds) throws atg.commerce.CommerceException
pProfile
- - users profile.pOrder
- - the order.pOnlineCreditIds
- - online credit ids.atg.commerce.CommerceException
- if an error occurs.public java.util.List getOnlineCredits(java.lang.String[] pOnlineCreditIds)
pOnlineCreditIds
- - online credit ids.public boolean isPaymentGroupUsed(atg.commerce.order.Order pOrder, atg.commerce.order.PaymentGroup pPaymentGroup)
isPaymentGroupUsed
in class atg.commerce.order.PaymentGroupManager
pOrder
- The order containing the payment group.pPaymentGroup
- The payment group being checked.