@RestResource(id="atg.commerce.order.restresources.CartRestResource") public class CartRestResource extends AbstractOrderRestResource implements LockKeyProvider, UpdateableRestResource
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
static java.lang.String |
ERR_CART_HAS_NO_CURRENT_ORDER |
static java.lang.String |
ERR_NO_RESOURCE_LOCK_KEY_AVAILABLE |
protected atg.commerce.order.CartStateService |
mCartStateService |
static java.lang.String |
NULL_ORDER_HOLDER |
static java.lang.String |
SALES_CHANNEL |
static java.lang.String |
SITE_ID |
static java.lang.String |
SUBRESOURCE_CLOSENESS_QUALIFIERS |
static java.lang.String |
SUBRESOURCE_COMMERCE_ITEMS |
static java.lang.String |
SUBRESOURCE_PAYMENT_GROUP |
static java.lang.String |
SUBRESOURCE_PAYMENT_GROUP_COMMERCE_ITEM_RELATIONSHIP |
static java.lang.String |
SUBRESOURCE_PAYMENT_GROUP_ORDER_RELATIONSHIP |
static java.lang.String |
SUBRESOURCE_PAYMENT_GROUP_SHIPPING_GROUP_RELATIONSHIP |
static java.lang.String |
SUBRESOURCE_SHIPPING_GROUP |
static java.lang.String |
SUBRESOURCE_SHIPPING_GROUP_COMMERCE_ITEM_RELATIONSHIP |
COLON, mEmbeddedAppliedPromotionsRelationshipName, mEmbeddedResources, mGWPChoicesRelationshipName, mGwpManager, mOrderGWPInfoRelationshipName, mOrderManager, mTransactionManager, ORDER_ID, PIPELINE_RESULT, RESOURCE_NAME, sResourceBundle
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
CartRestResource() |
Modifier and Type | Method and Description |
---|---|
protected void |
addInputsForCancelOrder(FormHandlerExecutor pExecutor)
This method provides a place from which to add form handler input during the cancel order operation.
|
protected void |
addInputsForCommitOrder(FormHandlerExecutor pExecutor,
Order pOrder,
java.lang.Boolean pAllowEmptyOrders)
This method provides a place from which to add form handler input during the commit order operation.
|
protected void |
addInputsForExpressCheckout(FormHandlerExecutor pExecutor,
java.lang.Boolean pCommitOrder)
This method provides a place from which to add form handler input during the express checkout operation.
|
protected void |
addInputsForMakeGiftSelection(FormHandlerExecutor pExecutor,
atg.service.jaxrs.ResourceUpdateInfo pResourceUpdateInfo)
This method provides a place from which to add form handler (GiftWithPurchaseFormHandler) input
during the make gift selection operation.
|
protected void |
addInputsForRemoveSelectableGWPQuantity(FormHandlerExecutor pExecutor,
atg.service.jaxrs.ResourceUpdateInfo pResourceUpdateInfo)
This method provides a place from which to add form handler (GiftWithPurchaseFormHandler) input
during the remove selectable (gift) quantity operation.
|
RepresentationModel |
cancelCart()
Cancel the current order.
|
RepresentationModel |
checkout(java.lang.Boolean pAllowEmptyOrders,
org.json.JSONObject pInputJson)
This endpoint checks out the shopping cart.
|
RepresentationModel |
expressCheckout(java.lang.Boolean pCommitOrder)
Conduct an express checkout for the shopping cart.
|
java.lang.String |
getCancelCurrentOrderHandleMethod()
Gets the name of the CancelOrderFormHandlerPath method that is called for handling the cancelling of the
current order.
|
java.lang.String |
getCancelOrderFormHandlerPath()
Get the cancel order form handler path.
|
RepresentationModel |
getCart()
Returns a representation of the current order.
|
atg.commerce.order.CartStateService |
getCartStateService()
Sets the CartStateService property.
|
java.lang.Object |
getClosenessQualifiers()
Returns the closeness qualifier sub resource.
|
java.lang.Object |
getCommerceItems()
Returns the Commerce Items subresource.
|
java.lang.String |
getCommitOrderFormHandlerPath()
Get the commit order form handler path.
|
java.lang.String |
getCommitOrderHandleMethod()
Gets the name of the CommitOrderHandleMethod method that is called for handling the committing of the
current order.
|
java.lang.String |
getExpressCheckoutFormHandlerPath()
Get the express checkout form handler path.
|
java.lang.String |
getExpressCheckoutHandleMethod()
Gets the name of the ExpressCheckoutFormHandler method that is called for handling the express checkout of the cart.
|
java.lang.String |
getGiftWithPurchaseFormHandlerPath()
Get the gift with purchase form handler path.
|
java.io.Serializable |
getLockKey()
Provide the resource lock key.
|
java.lang.String |
getMakeGiftSelectionHandleMethod()
Gets the name of the GiftWithPurchaseFormHandlerPath method that is called for handling
the making of a gift selection
|
java.lang.Object |
getPaymentGroupCommerceItemRelationships()
Returns the PaymentGroupCommerceItemRelationship sub resource.
|
java.lang.Object |
getPaymentGroupOrderRelationships()
Returns the PaymentGroupOrderRelationship sub resource.
|
java.lang.Object |
getPaymentGroups()
Returns the PaymentGroup subresource.
|
java.lang.Object |
getPaymentGroupShippingGroupRelationships()
Returns the PaymentGroupShippingGroupRelationship sub resource.
|
java.lang.String |
getRemoveSelectableQuantityHandleMethod()
Gets the name of the GiftWithPurchaseFormHandlerPath method that is called for handling
the removal of selectable (gift) quantity
|
protected RepresentationModel.Builder |
getRepresentationModelBuilder(java.lang.String pOrderId)
Gets the RepresentationModel.Builder for the given order.
|
java.lang.String |
getRepriceOrderDropletPath()
Gets the RepriceOrderDroplet path.
|
java.lang.Object |
getShippingGroupCommerceItemRelationships()
Returns the ShippingGroupCommerceItemRelationship sub resource.
|
java.lang.Object |
getShippingGroups()
Returns the ShippingGroup subresource.
|
protected OrderHolder |
getShoppingCart()
Returns the shopping cart associated with the current request.
|
java.lang.String |
getShoppingCartPath()
Get the shopping cart path
|
boolean |
isStateless()
Flag indicating if endpoints running stateless
|
RepresentationModel |
makeGWPSelection(java.lang.Object pInputData)
This endpoint enables the selection of a gift item, based on a qualified Gift with Purchase
promotion.
|
RepresentationModel |
removeSelectableGWPQuantity(java.lang.Object pInputData)
This endpoint removes a specific quantity of 'available selectable quantity' for an existing gift
in the current order.
|
RepresentationModel |
reprice(org.json.JSONObject pInputJson)
This endpoint reprices the shopping cart.
|
void |
seRemoveSelectableQuantityHandleMethod(java.lang.String pRemoveSelectableQuantityHandleMethod)
Sets the name of the RemoveSelectableQuantityHandleMethod method that is called for handling
the removal of selectable (gift) quantity.
|
void |
setCancelCurrentOrderHandleMethod(java.lang.String pCancelCurrentOrderHandleMethod)
Sets the name of the CancelOrderHandleMethod method that is called for handling the cancelling of the current order.
|
void |
setCancelOrderFormHandlerPath(java.lang.String pCancelOrderFormHandlerPath)
Set the cancel order form handler path.
|
void |
setCartStateService(atg.commerce.order.CartStateService pCartStateService)
Sets the CartStateService property.
|
void |
setCommitOrderFormHandlerPath(java.lang.String pCommitOrderFormHandlerPath)
Set the commit order form handler path.
|
void |
setCommitOrderHandleMethod(java.lang.String pCommitOrderHandleMethod)
Sets the name of the CommitOrderHandleMethod method that is called for handling the committing of the current order.
|
void |
setExpressCheckoutFormHandlerPath(java.lang.String pExpressCheckoutFormHandlerPath)
Set the express checkout form handler path.
|
void |
setExpressCheckoutHandleMethod(java.lang.String pExpressCheckoutHandleMethod)
Sets the name of the ExpressCheckoutFormHandler method that is called for handling the express checkout of the cart.
|
void |
setGiftWithPurchaseFormHandlerPath(java.lang.String pGiftWithPurchaseFormHandlerPath)
Set the gift with purchase form handler path.
|
void |
setMakeGiftSelectionHandleMethod(java.lang.String pMakeGiftSelectionHandleMethod)
Sets the name of the MakeGiftSelectionHandleMethod method that is called for handling
the making of a gift selection
|
void |
setRepriceOrderDropletPath(java.lang.String pRepriceOrderDropletPath)
Sets the RepriceOrderDroplet path.
|
void |
setShoppingCartPath(java.lang.String pShoppingCartPath)
Set the shopping cart path
|
void |
setStateless(boolean pStateless)
Flag indicating if endpoints running stateless
|
protected void |
setupCartStateRequestData()
This method adds the current order to the request data map
See
CartStateService.setupCartStateRequestData |
protected void |
setupRequestData(java.lang.String pSubresourceType)
Sets up request data for Subresources to utilise.
|
java.net.URI |
update(atg.service.jaxrs.ResourceUpdateInfo pRestResourceUpdateInfo)
This method specifically handles updates to any embedded resources, all contained with
pRestResourceUpdateInfo . |
RepresentationModel |
updateCart(org.json.JSONObject pInputJson)
Updates the current Order in the Shopping Cart.
|
addEmbeddedResource, addEmbeddedResources, addEmbeddedResources, addGiftWithPurchaseChoicesLinks, checkPipelineResult, checkPipelineResult, createRepresentationModelBuilder, getEmbeddedAppliedPromotionsRelationshipName, getEmbeddedResources, getGWPChoicesRelationshipName, getGwpManager, getOrderGWPInfoRelationshipName, getOrderManager, getRepresentationModelBuilder, getTransactionManager, setEmbeddedAppliedPromotionsRelationshipName, setEmbeddedResources, setGWPChoicesRelationshipName, setGwpManager, setOrderGWPInfoRelationshipName, setOrderManager, setTransactionManager
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
updateEmbeddedResources
public static final java.lang.String CLASS_VERSION
public static final java.lang.String SITE_ID
public static final java.lang.String SALES_CHANNEL
public static final java.lang.String SUBRESOURCE_COMMERCE_ITEMS
public static final java.lang.String SUBRESOURCE_CLOSENESS_QUALIFIERS
public static final java.lang.String SUBRESOURCE_PAYMENT_GROUP
public static final java.lang.String SUBRESOURCE_PAYMENT_GROUP_COMMERCE_ITEM_RELATIONSHIP
public static final java.lang.String SUBRESOURCE_PAYMENT_GROUP_ORDER_RELATIONSHIP
public static final java.lang.String SUBRESOURCE_PAYMENT_GROUP_SHIPPING_GROUP_RELATIONSHIP
public static final java.lang.String SUBRESOURCE_SHIPPING_GROUP
public static final java.lang.String SUBRESOURCE_SHIPPING_GROUP_COMMERCE_ITEM_RELATIONSHIP
public static final java.lang.String ERR_CART_HAS_NO_CURRENT_ORDER
public static final java.lang.String ERR_NO_RESOURCE_LOCK_KEY_AVAILABLE
public static final java.lang.String NULL_ORDER_HOLDER
protected atg.commerce.order.CartStateService mCartStateService
public void setStateless(boolean pStateless)
pStateless
- boolean flagpublic boolean isStateless()
public java.lang.String getShoppingCartPath()
public void setShoppingCartPath(java.lang.String pShoppingCartPath)
pShoppingCartPath
- nucleus path to the shopping cart component.public java.lang.String getExpressCheckoutFormHandlerPath()
public void setExpressCheckoutFormHandlerPath(java.lang.String pExpressCheckoutFormHandlerPath)
pExpressCheckoutFormHandlerPath
- a nucleus path to the express checkout form handler component.public java.lang.String getExpressCheckoutHandleMethod()
The default value is "expressCheckout".
public void setExpressCheckoutHandleMethod(java.lang.String pExpressCheckoutHandleMethod)
pExpressCheckoutHandleMethod
- the name of the express checkout handle methodpublic java.lang.String getCancelOrderFormHandlerPath()
public void setCancelOrderFormHandlerPath(java.lang.String pCancelOrderFormHandlerPath)
pCancelOrderFormHandlerPath
- a nucleus path to the cancel order form handler component.public java.lang.String getCancelCurrentOrderHandleMethod()
The default value is "cancelCurrentOrder".
public void setCancelCurrentOrderHandleMethod(java.lang.String pCancelCurrentOrderHandleMethod)
pCancelCurrentOrderHandleMethod
- the name of the cancel current order handle methodpublic java.lang.String getCommitOrderFormHandlerPath()
public void setCommitOrderFormHandlerPath(java.lang.String pCommitOrderFormHandlerPath)
pCommitOrderFormHandlerPath
- a nucleus path to the commit order form handler component.public java.lang.String getCommitOrderHandleMethod()
The default value is "commitOrder".
public void setCommitOrderHandleMethod(java.lang.String pCommitOrderHandleMethod)
pCommitOrderHandleMethod
- the name of the commit order handle methodpublic java.lang.String getGiftWithPurchaseFormHandlerPath()
public void setGiftWithPurchaseFormHandlerPath(java.lang.String pGiftWithPurchaseFormHandlerPath)
pGiftWithPurchaseFormHandlerPath
- a nucleus path to the gift with purchase form handler component.public java.lang.String getMakeGiftSelectionHandleMethod()
The default value is "makeGiftSelection".
public void setMakeGiftSelectionHandleMethod(java.lang.String pMakeGiftSelectionHandleMethod)
pMakeGiftSelectionHandleMethod
- the name of the make gift selection handle methodpublic java.lang.String getRemoveSelectableQuantityHandleMethod()
The default value is "removeSelectableQuantity".
public void seRemoveSelectableQuantityHandleMethod(java.lang.String pRemoveSelectableQuantityHandleMethod)
pRemoveSelectableQuantityHandleMethod
- the name of the remove selectable (gift) quantity handle methodpublic java.lang.String getRepriceOrderDropletPath()
public void setRepriceOrderDropletPath(java.lang.String pRepriceOrderDropletPath)
pRepriceOrderDropletPath
- a nucleus path to RepriceOrderDroplet component.protected OrderHolder getShoppingCart()
public void setCartStateService(atg.commerce.order.CartStateService pCartStateService)
pCartStateService
- the CartStateService propertypublic atg.commerce.order.CartStateService getCartStateService()
@Hidden @Endpoint(id="/cart/#GET", isSingular=true, filterId="cart-Default") public RepresentationModel getCart() throws RestException, CommerceException
RestException
- if a problem occurs retrieving the OrderCommerceException
- if a problem occurs processing of the Order@Endpoint(id="/cart/expressCheckout/#POST", isSingular=true, filterId="cart-Default") public RepresentationModel expressCheckout(java.lang.Boolean pCommitOrder) throws RestException, CommerceException, javax.servlet.ServletException
pCommitOrder
- true
if the order should be committed immediately, or false
if the
order should be prepared but not committed, or omitted to use the configured value of
ExpressCheckoutFormHandler.commitOrder.RestException
- if a problem occurs retrieving the Order.CommerceException
- if a problem occurs processing of the Order.javax.servlet.ServletException
- if a problem occurred whilst adding input to the executor.@Endpoint(id="/cart/DELETE", isSingular=true, filterId="cart-Default") public RepresentationModel cancelCart() throws RestException, CommerceException, javax.servlet.ServletException
RestException
- if an internal server error occurs attempting to cancel the orderCommerceException
- if a problem occurs processing of the Orderjavax.servlet.ServletException
- if a problem occurred whilst adding input to the executor@Endpoint(id="/cart/reprice/#POST", isSingular=true, validatorId="cart.reprice", filterId="cart-Default") public RepresentationModel reprice(org.json.JSONObject pInputJson) throws RestException, CommerceException
The optional "pricingOperation" parameter can be used to control the type of pricing that takes place. If no pricingOperation parameter is supplied then the default is to price the order fully, including tax."
The pricingOperation value provided should be one of the following :pInputJson
- input jsonRestException
- if an internal server error occurs attempting to reprice the order.CommerceException
- if a problem occurs processing of the Order@Endpoint(id="/cart/checkout/#POST", isSingular=true, validatorId="cart.checkout", filterId="cart-Default") public RepresentationModel checkout(java.lang.Boolean pAllowEmptyOrders, org.json.JSONObject pInputJson) throws RestException, CommerceException, javax.servlet.ServletException
pAllowEmptyOrders
- true
if empty orders should be allowed, false
otherwisepInputJson
- JSON representing the shopping cartRestException
- if something went wrong during checkoutCommerceException
- if a problem occurs processing of the Orderjavax.servlet.ServletException
- if a problem occurred whilst adding input to the executor@PATCH @Endpoint(id="/cart/#PATCH", isSingular=true, validatorId="cart-Default", filterId="cart-Default", updateTarget=true) public RepresentationModel updateCart(org.json.JSONObject pInputJson) throws RestException, CommerceException, TransactionDemarcationException
pInputJson
- JSON representation of the shopping cart.RestException
- if a problem occurs retrieving the Order.CommerceException
- if a problem occurs processing of the Order.javax.servlet.ServletException
- if a problem occurred whilst adding input to the executor.TransactionDemarcationException
- if a problem occurs processing the Order.@Endpoint(id="/cart/makeGWPSelection/#POST", validatorId="cart.makeGWPSelection", filterId="cart-Default", isSingular=true) public RepresentationModel makeGWPSelection(java.lang.Object pInputData) throws CommerceException, javax.servlet.ServletException
{
"quantity":1,
"giftWithPurchaseIdentifier":-1836123324,
"productId":"xprod1010",
"skuId":"xsku1038",
"replaceRemovedQuantity": true
}
pInputData
- input dataCommerceException
- if an error occurs attempting to make a gift selectionjavax.servlet.ServletException
- if an error occurs attempting to make a gift selection@Endpoint(id="/cart/removeSelectableGWPQuantity/#POST", validatorId="cart.removeSelectableGWPQuantity", filterId="cart-Default", isSingular=true) public RepresentationModel removeSelectableGWPQuantity(java.lang.Object pInputData) throws CommerceException, javax.servlet.ServletException
Note: Only positive values are accepted, so once a gift quantity is reduced, it cannot be increased again, unless, for example, a shopper removes items, re-adds and re-qualifies for the gift afresh.
{
"quantityToRemove": 1,
"giftWithPurchaseIdentifier": -1836123324
}
pInputData
- input dataCommerceException
- if an error occurs attempting to remove selectable gift quantityjavax.servlet.ServletException
- if an error occurs attempting to remove selectable gift quantity@Hidden @SubresourceLocator(subresourceIds="atg.commerce.order.restresources.CartCommerceItemRestSubresource") public java.lang.Object getCommerceItems() throws RestException
RestException
- if a problem occurs obtaining the subresource@Hidden @SubresourceLocator(subresourceIds="atg.commerce.order.restresources.CartPaymentGroupRestSubresource") public java.lang.Object getPaymentGroups() throws RestException
RestException
- if a problem occurs obtaining the subresource@Hidden @SubresourceLocator(subresourceIds="atg.commerce.order.restresources.PaymentGroupCommerceItemRelationshipRestSubresource") public java.lang.Object getPaymentGroupCommerceItemRelationships() throws RestException
RestException
- if any problem occurs obtaining the sub resource@Hidden @SubresourceLocator(subresourceIds="atg.commerce.order.restresources.PaymentGroupOrderRelationshipRestSubresource") public java.lang.Object getPaymentGroupOrderRelationships() throws RestException
RestException
- if any problem occurs obtaining the sub resource@Hidden @SubresourceLocator(subresourceIds="atg.commerce.order.restresources.PaymentGroupShippingGroupRelationshipRestSubresource") public java.lang.Object getPaymentGroupShippingGroupRelationships() throws RestException
RestException
- if any problem occurs obtaining the sub resource@Hidden @SubresourceLocator(subresourceIds="atg.commerce.order.restresources.ShippingGroupCommerceItemRelationshipRestSubresource") public java.lang.Object getShippingGroupCommerceItemRelationships() throws RestException
RestException
- if a problem occurs obtaining the sub resource@Hidden @SubresourceLocator(subresourceIds="atg.commerce.order.restresources.CartShippingGroupRestSubresource") public java.lang.Object getShippingGroups() throws RestException
RestException
- if a problem occurs obtaining the subresource@Hidden @SubresourceLocator(subresourceIds="atg.commerce.promotion.restresources.ClosenessQualifierRestSubresource") public java.lang.Object getClosenessQualifiers() throws RestException
RestException
- if there is a problem while retrieving the closeness qualifiers.@Hidden public java.io.Serializable getLockKey() throws RestException
getLockKey
in interface LockKeyProvider
RestException
- if lock key cannot be obtained.protected void setupRequestData(java.lang.String pSubresourceType) throws RestException
RestException
protected void setupCartStateRequestData()
CartStateService.setupCartStateRequestData
protected RepresentationModel.Builder getRepresentationModelBuilder(java.lang.String pOrderId)
pOrderId
- the order id from which the RepresentationModel.Builder links will be created forprotected void addInputsForCancelOrder(FormHandlerExecutor pExecutor) throws javax.servlet.ServletException
pExecutor
- the form handler executor to which the input should be addedjavax.servlet.ServletException
- if a problem occurred whilst adding input to the executorprotected void addInputsForCommitOrder(FormHandlerExecutor pExecutor, Order pOrder, java.lang.Boolean pAllowEmptyOrders) throws javax.servlet.ServletException
pExecutor
- the form handler executor to which the input should be addedpOrder
- the order to be checked outpAllowEmptyOrders
- true
if empty orders should be allowed, false
otherwisejavax.servlet.ServletException
- if a problem occurred whilst adding input to the executorprotected void addInputsForExpressCheckout(FormHandlerExecutor pExecutor, java.lang.Boolean pCommitOrder) throws javax.servlet.ServletException
To add additional input, call one of the variants of FormHandlerExecutor.addInput(String, Object)
.
pExecutor
- the form handler executor to which the input should be addedpCommitOrder
- true
if the order should be committed immediately, or false
if the
order should be prepared but not committed, or omitted to use the configured value of
ExpressCheckoutFormHandler.commitOrder.javax.servlet.ServletException
- if a problem occurred whilst adding input to the executorprotected void addInputsForMakeGiftSelection(FormHandlerExecutor pExecutor, atg.service.jaxrs.ResourceUpdateInfo pResourceUpdateInfo) throws javax.servlet.ServletException, CommerceException
pResourceUpdateInfo.getUpdates()
) are:
To add additional input, call one of the variants of FormHandlerExecutor.addInput(String, Object)
.
pExecutor
- the form handler executor to which the input should be addedpResourceUpdateInfo
- a ResourceUpdateInfo
containing data/input to be used during make gift selectionjavax.servlet.ServletException
- if a problem occurs adding input to the executorCommerceException
- if a problem occurs adding input to the executorprotected void addInputsForRemoveSelectableGWPQuantity(FormHandlerExecutor pExecutor, atg.service.jaxrs.ResourceUpdateInfo pResourceUpdateInfo) throws javax.servlet.ServletException, CommerceException
pResourceUpdateInfo.getUpdates()
) are:
To add additional input, call one of the variants of FormHandlerExecutor.addInput(String, Object)
.
pExecutor
- the form handler executor to which the input should be addedpResourceUpdateInfo
- a ResourceUpdateInfo
containing data/input to be used during remove selectable gift quantityjavax.servlet.ServletException
- if a problem occurs adding input to the executorCommerceException
- if a problem occurs adding input to the executorpublic java.net.URI update(atg.service.jaxrs.ResourceUpdateInfo pRestResourceUpdateInfo) throws RestException
pRestResourceUpdateInfo
.
It will call updateEmbeddedResources()
to update any of the updateable resources configured on this resource.update
in interface UpdateableRestResource
pRestResourceUpdateInfo
- - cart update object, containing update data (request inputs and
any existing repository data) to be applied to its updateable embedded resources.RestException
- - if an issue occurs performing the update