@Path(value="store/{storeId}/cart") @Encoded public class CartHandler extends AbstractConfigBasedClassicHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CART_CHANGE_MAPPING_KEY
The Constant CART_MAPPING_KEY.
|
static java.lang.String |
CART_MAPPING_KEY
The Constant CART_MAPPING_KEY.
|
static java.lang.String |
COPYRIGHT
IBM Copyright notice field.
|
static java.lang.String |
FORMAT_GROUP_NAME
The constant FORMAT_GROUP_NAME
|
static java.lang.String |
RESOURCE_NAME
Resource name for cart.
|
static java.lang.String |
USABLE_PAYMENT_INFO_MAPPING_KEY
Mapping key for usable payment info.
|
static java.lang.String |
USABLE_SHIPPING_INFO_MAPPING_KEY
Mapping key for usable shipping info.
|
APPLICATION_ATOM_XML, APPLICATION_JSON, APPLICATION_XHTML_XML, APPLICATION_XML, CHANGE_VERB, PARAMETER_ACTION, PARAMETER_ACTION_DESCRIPTION, PARAMETER_CATALOG_ID, PARAMETER_CATALOG_ID_DESCRIPTION, PARAMETER_CURRENCY, PARAMETER_CURRENCY_DESCRIPTION, PARAMETER_FOR_USER, PARAMETER_FOR_USER_DESCRIPTION, PARAMETER_FOR_USER_ID, PARAMETER_FOR_USER_ID_DESCRIPTION, PARAMETER_LANG_ID, PARAMETER_LANG_ID_DESCRIPTION, PARAMETER_LOCALE, PARAMETER_LOCALE_DESCRIPTION, PARAMETER_MODE, PARAMETER_MODE_DESCRIPTION, PARAMETER_PAGE_NUMBER, PARAMETER_PAGE_NUMBER_DESCRIPTION, PARAMETER_PAGE_SIZE, PARAMETER_PAGE_SIZE_DESCRIPTION, PARAMETER_PROFILE_NAME, PARAMETER_PROFILE_NAME_DESCRIPTION, PARAMETER_QUERY, PARAMETER_QUERY_DESCRIPTION, PARAMETER_RESET_PASSWORD_DESCRIPTION, PARAMETER_RESPONSE_FORMAT, PARAMETER_RESPONSE_FORMAT_DESCRIPTION, PARAMETER_STORE_ID, PARAMETER_STORE_ID_DESCRIPTION, PARAMETER_WORKSPACE_IDENTIFIER, PARAMETER_WORKSPACE_IDENTIFIER_DESCRIPTION, PARAMETER_WORKSPACE_NAME, PARAMETER_WORKSPACE_NAME_DESCRIPTION, PARAMETER_WORKSPACE_TASK, PARAMETER_WORKSPACE_TASK_DESCRIPTION, PARAMETER_WORKSPACE_TASKGROUP, PARAMETER_WORKSPACE_TASKGROUP_DESCRIPTION, PROCESS_VERB, RESPONSE_200_DESCRIPTION, RESPONSE_201_DESCRIPTION, RESPONSE_204_DESCRIPTION, RESPONSE_400_DESCRIPTION, RESPONSE_401_DESCRIPTION, RESPONSE_403_DESCRIPTION, RESPONSE_404_DESCRIPTION, RESPONSE_500_DESCRIPTION
Constructor and Description |
---|
CartHandler() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
addConfigurationToCart(java.lang.String storeId,
java.lang.String responseFormat)
Adds a configuration of a dynamic kit to the cart.
|
javax.ws.rs.core.Response |
addOrderItem(java.lang.String storeId,
java.lang.String responseFormat)
This method adds one or multiple items to the shopping cart.
|
javax.ws.rs.core.Response |
addPreConfigurationToCart(java.lang.String storeId,
java.lang.String responseFormat)
Adds a pre-configuration of a dynamic kit to the cart.
|
javax.ws.rs.core.Response |
applyCheckoutProfile(java.lang.String storeId,
java.lang.String responseFormat)
Apply quick checkout profile to current shopping cart.
|
javax.ws.rs.core.Response |
calculateOrder(java.lang.String storeId,
java.lang.String responseFormat)
This method calculates the cost of the order
|
javax.ws.rs.core.Response |
calculateOrder(java.lang.String storeId,
java.lang.String orderId,
java.lang.String responseFormat)
This method calculates the cost of the order
|
javax.ws.rs.core.Response |
cancelApplePayOrder(java.lang.String storeId,
java.lang.String responseFormat) |
javax.ws.rs.core.Response |
cancelOrder(java.lang.String storeId,
java.lang.String orderId,
java.lang.String responseFormat,
java.lang.String forcedCancel)
This method cancels the order specified
|
javax.ws.rs.core.Response |
cancelOrderInCart(java.lang.String storeId,
java.lang.String responseFormat)
Delete all items in the shopping cart.
|
javax.ws.rs.core.Response |
checkOut(java.lang.String storeId,
java.lang.String responseFormat)
This method submits the shopping cart for checkout.
|
javax.ws.rs.core.Response |
copyOrder(java.lang.String storeId,
java.lang.String responseFormat)
This method copies a specified order
|
javax.ws.rs.core.Response |
createOrder(java.lang.String storeId,
java.lang.String responseFormat,
java.lang.String description)
This method creates a order using a description that is provided
|
javax.ws.rs.core.Response |
csrCancelOrder(java.lang.String storeId,
java.lang.String orderId,
java.lang.String responseFormat,
java.lang.String forcedCancel) |
javax.ws.rs.core.Response |
csrCancelOrderOnBehalf(java.lang.String storeId,
java.lang.String orderId,
java.lang.String responseFormat,
java.lang.String forcedCancel) |
javax.ws.rs.core.Response |
deleteOrderItem(java.lang.String storeId,
java.lang.String responseFormat)
This method deletes the specified order item from the order.
|
javax.ws.rs.core.Response |
getAllowableShippingModes(java.lang.String storeId,
java.lang.String langId,
java.lang.String responseFormat)
Deprecated.
Adding query parameter "locale"
|
javax.ws.rs.core.Response |
getAllowableShippingModes(java.lang.String storeId,
java.lang.String locale,
java.lang.String langId,
java.lang.String responseFormat)
Get allowable shipping information for the store
|
javax.ws.rs.core.Response |
getBuyerPurchaseOrderDataBean(java.lang.String storeId,
java.lang.String buyerPurchaseOrderId,
java.lang.String responseFormat,
java.lang.String profileName)
Gets buyer purchase order information for order id.
|
javax.ws.rs.core.Response |
getCart(java.lang.String storeId,
java.lang.String responseFormat,
int pageNumber,
int pageSize)
This method gets order details in the shopping cart.
|
java.lang.String |
getFormattingGroupName()
This method returns the format group name to locate JSP template.
|
OrderHelper |
getHelper()
This method returns the Cart helper used to cart contents.
|
javax.ws.rs.core.Response |
getPAttributeDataBean(java.lang.String storeId,
java.lang.String initKey_referenceNumber,
java.lang.String responseFormat,
java.lang.String profileName)
Gets payment attribute order information for terms & conditions Id.
|
javax.ws.rs.core.Response |
getPaymentPolicyListDataBean(java.lang.String storeId,
java.lang.String responseFormat,
java.lang.String profileName)
Gets payment policy list information for store.
|
java.lang.String |
getResourceName()
This method returns the name of the resource used primarily to determine
the representation of the resource.
|
javax.ws.rs.core.Response |
getUsableBillingAddressListTCDataBean(java.lang.String storeId,
java.lang.String orderId,
java.lang.String responseFormat,
java.lang.String profileName,
java.lang.String paymentTCId)
Gets usable billing address information for order id.
|
javax.ws.rs.core.Response |
getUsablePaymentInfo(java.lang.String storeId,
java.lang.String responseFormat,
int pageNumber,
int pageSize)
Get usable payment information for the cart.
|
javax.ws.rs.core.Response |
getUsableShipChargesByShipMode(java.lang.String storeId,
java.lang.String orderId,
java.lang.String responseFormat,
java.lang.String profileName)
Gets usable ship charge information for order id.
|
javax.ws.rs.core.Response |
getUsableShippingInfo(java.lang.String storeId,
java.lang.String responseFormat,
int pageNumber,
int pageSize)
Get usable shipping information for the cart.
|
javax.ws.rs.core.Response |
getUsableShippingMode(java.lang.String storeId,
java.lang.String responseFormat,
int pageNumber,
int pageSize)
Get usable shipping mode for the cart by address, it will also return the shipping charge together with each shipping mode.
|
javax.ws.rs.core.Response |
lockCart(java.lang.String storeId,
java.lang.String cartId,
java.lang.String responseFormat)
This method locks the cart specified by CSR.
|
javax.ws.rs.core.Response |
lockCartOnBehalf(java.lang.String storeId,
java.lang.String cartId,
java.lang.String responseFormat)
This method locks the cart specified when the buyer administrator/CSR has established a session to act on behalf of a user.
|
javax.ws.rs.core.Response |
moveOrderItem(java.lang.String storeId,
java.lang.String responseFormat)
Moves order items from one order to another.
|
javax.ws.rs.core.Response |
orderItemDisplay(java.lang.String storeId,
java.lang.String responseFormat)
Renew order items in cart
|
void |
postProcess(java.util.Map<java.lang.String,java.lang.Object> responseMap)
Method to provide post process in out of box JSON/XML entity providers
after each DataObject has been converted to a Map and before constructing
the REST response.
|
javax.ws.rs.core.Response |
preCheckout(java.lang.String storeId,
java.lang.String responseFormat)
This method prepares the shopping cart for checkout.
|
javax.ws.rs.core.Response |
processApplePayOrder(java.lang.String storeId,
java.lang.String responseFormat)
Process the apple pay cart.
|
javax.ws.rs.core.Response |
scheduleOrder(java.lang.String storeId,
java.lang.String orderId,
java.lang.String responseFormat)
Creates a scheduled order which is related to a scheduled job.
|
javax.ws.rs.core.Response |
setPendingOrder(java.lang.String storeId,
java.lang.String orderId,
java.lang.String responseFormat)
This method sets the order specified to be current working order
|
javax.ws.rs.core.Response |
udpateOrderItem(java.lang.String storeId,
java.lang.String responseFormat)
Deprecated.
Replaced by
updateOrderItem(String, String) |
javax.ws.rs.core.Response |
unlockCart(java.lang.String storeId,
java.lang.String cartId,
java.lang.String responseFormat)
This method unlocks the cart specified by CSR.
|
javax.ws.rs.core.Response |
unlockCartOnBehalf(java.lang.String storeId,
java.lang.String cartId,
java.lang.String responseFormat)
This method unlocks the cart specified when the buyer administrator/CSR has established a session to act on behalf of a user.
|
javax.ws.rs.core.Response |
updateApplePayOrder(java.lang.String storeId,
java.lang.String responseFormat)
Update the apple pay order, such as the address.
|
javax.ws.rs.core.Response |
updateConfigurationInCart(java.lang.String storeId,
java.lang.String responseFormat)
Update a dynamic kit configuration in the cart.
|
javax.ws.rs.core.Response |
updateOrderItem(java.lang.String storeId,
java.lang.String responseFormat)
This method update existing item(s) in the shopping cart.
|
javax.ws.rs.core.Response |
updateRewardOption(java.lang.String storeId,
java.lang.String responseFormat)
Updates the reward choice selection.
|
executeConfigBasedBean, executeConfigBasedBean, executeConfigBasedBeanWithContext, executeConfigBasedBeanWithContext, executeConfigBasedCommand, executeConfigBasedCommandWithContext
createMapForProvider, createMapForProvider, generateResponseForEntireDataObject, getMapFromRequest, getStoreId, getUserId, isRequestInPreviewMode, mergeMapsForProvider, prepareAndValidate
addError, createMapForProviderWithResultData, documentApi, generateResponseFromHttpStatusCodeAndRespData, getActionRegistry, getBooleanParameterValue, getClassDescription, getDoubleParameterValue, getDoubleParameterValues, getEnumeratedParameterValue, getErrorCodeFromMessage, getExternalResourceName, getFormattedMessage, getFormattedMessageWithLocale, getInstrumentor, getIntegerParameterValue, getIntegerParameterValues, getLongParameterValue, getLongParameterValues, getParameterValue, getParameterValue, getParameterValues, getQueryRegistry, getRequest, getResponse, getUriInfo, handleException, initializeActionRegistry, initializeQueryRegistry, performAction, preProcess, registerOperationWithMethodSignature, runQuery, staticConvertStreamToString, throwInvalidQueryNameException, throwInvalidQueryNameException, throwRestException, throwRestExceptionIfErrorsAreDetected, validatePageNumberPageSize
public static final java.lang.String COPYRIGHT
public static final java.lang.String RESOURCE_NAME
public static final java.lang.String CART_MAPPING_KEY
public static final java.lang.String CART_CHANGE_MAPPING_KEY
public static final java.lang.String USABLE_SHIPPING_INFO_MAPPING_KEY
public static final java.lang.String USABLE_PAYMENT_INFO_MAPPING_KEY
public static final java.lang.String FORMAT_GROUP_NAME
public java.lang.String getResourceName()
IResourceHandler
public java.lang.String getFormattingGroupName()
getFormattingGroupName
in interface IResourceHandler
getFormattingGroupName
in class AbstractBaseResourceHandler
public OrderHelper getHelper()
@GET @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) @Path(value="@self") public javax.ws.rs.core.Response getCart(@PathParam(value="storeId") java.lang.String storeId, @QueryParam(value="responseFormat") java.lang.String responseFormat, @QueryParam(value="pageNumber") int pageNumber, @QueryParam(value="pageSize") int pageSize)
storeId
- the store Id of the request.responseFormat
- the response format (xml or json).pageNumber
- the page numberpageSize
- the page size@POST @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) @Path(value="{orderId}/schedule_order") public javax.ws.rs.core.Response scheduleOrder(@PathParam(value="storeId") java.lang.String storeId, @PathParam(value="orderId") java.lang.String orderId, @QueryParam(value="responseFormat") java.lang.String responseFormat)
storeId
- The store identifierresponseFormat
- The response format@POST @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) @Path(value="{orderId}/set_pending_order") public javax.ws.rs.core.Response setPendingOrder(@PathParam(value="storeId") java.lang.String storeId, @PathParam(value="orderId") java.lang.String orderId, @QueryParam(value="responseFormat") java.lang.String responseFormat) throws java.lang.Exception
storeId
- The store IDorderId
- The order IdresponseFormat
- The resonseFormatjava.lang.Exception
@DELETE @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) @Path(value="{orderId}/cancel_order") public javax.ws.rs.core.Response cancelOrder(@PathParam(value="storeId") java.lang.String storeId, @PathParam(value="orderId") java.lang.String orderId, @QueryParam(value="responseFormat") java.lang.String responseFormat, @QueryParam(value="forcedCancel") java.lang.String forcedCancel) throws java.lang.Exception
storeId
- The store IDorderId
- The order IdresponseFormat
- The response formatforcedCancel
- This parameter is used by payment rule to perform a refund. If
there are some deposit transactions for the order, the order
cannot be canceled except when the parameter is made
forcedCancel=true. The default value is false.java.lang.Exception
@DELETE @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) @Path(value="{orderId}/csrcancel_order") public javax.ws.rs.core.Response csrCancelOrder(@PathParam(value="storeId") java.lang.String storeId, @PathParam(value="orderId") java.lang.String orderId, @QueryParam(value="responseFormat") java.lang.String responseFormat, @QueryParam(value="forcedCancel") java.lang.String forcedCancel) throws java.lang.Exception
java.lang.Exception
@DELETE @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) @Path(value="{orderId}/csrcancel_order_onbehalf") public javax.ws.rs.core.Response csrCancelOrderOnBehalf(@PathParam(value="storeId") java.lang.String storeId, @PathParam(value="orderId") java.lang.String orderId, @QueryParam(value="responseFormat") java.lang.String responseFormat, @QueryParam(value="forcedCancel") java.lang.String forcedCancel) throws java.lang.Exception
java.lang.Exception
@POST @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) @Path(value="create_order") public javax.ws.rs.core.Response createOrder(@PathParam(value="storeId") java.lang.String storeId, @QueryParam(value="responseFormat") java.lang.String responseFormat, @QueryParam(value="description") java.lang.String description) throws java.lang.Exception
storeId
- The store IDresponseFormat
- The response formatdescription
- The descriptionjava.lang.Exception
@POST @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) @Path(value="copy_order") public javax.ws.rs.core.Response copyOrder(@PathParam(value="storeId") java.lang.String storeId, @QueryParam(value="responseFormat") java.lang.String responseFormat)
storeId
- The store IDresponseFormat
- The response format@PUT @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) @Path(value="@self/delete_order_item") public javax.ws.rs.core.Response deleteOrderItem(@PathParam(value="storeId") java.lang.String storeId, @QueryParam(value="responseFormat") java.lang.String responseFormat)
storeId
- The store identifier.responseFormat
- The response format.@POST @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) @Path(value="calculate") public javax.ws.rs.core.Response calculateOrder(@PathParam(value="storeId") java.lang.String storeId, @QueryParam(value="responseFormat") java.lang.String responseFormat)
storeId
- The store identifierresponseFormat
- The response format@POST @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) @Path(value="{orderId}/calculate") public javax.ws.rs.core.Response calculateOrder(@PathParam(value="storeId") java.lang.String storeId, @PathParam(value="orderId") java.lang.String orderId, @QueryParam(value="responseFormat") java.lang.String responseFormat)
storeId
- The store identifierorderId
- The order identifier or abbreviationresponseFormat
- The response format@GET @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) @Path(value="@self/usable_shipping_info") public javax.ws.rs.core.Response getUsableShippingInfo(@PathParam(value="storeId") java.lang.String storeId, @QueryParam(value="responseFormat") java.lang.String responseFormat, @QueryParam(value="pageNumber") int pageNumber, @QueryParam(value="pageSize") int pageSize)
storeId
- the store idresponseFormat
- the response formatpageNumber
- the page numberpageSize
- the page size@GET @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) @Path(value="@self/usable_shipping_mode") public javax.ws.rs.core.Response getUsableShippingMode(@PathParam(value="storeId") java.lang.String storeId, @QueryParam(value="responseFormat") java.lang.String responseFormat, @QueryParam(value="pageNumber") int pageNumber, @QueryParam(value="pageSize") int pageSize)
storeId
- the store idresponseFormat
- the response formatpageNumber
- the page numberpageSize
- the page size@GET @Path(value="{orderId}/usable_ship_charges_by_ship_mode") @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) public javax.ws.rs.core.Response getUsableShipChargesByShipMode(@PathParam(value="storeId") java.lang.String storeId, @PathParam(value="orderId") java.lang.String orderId, @QueryParam(value="responseFormat") java.lang.String responseFormat, @QueryParam(value="profileName") java.lang.String profileName) throws com.ibm.commerce.foundation.rest.resourcehandler.RestException
storeId
- the store idorderId
- the order idresponseFormat
- the format of the responseprofileName
- the profile namecom.ibm.commerce.foundation.rest.resourcehandler.RestException
@GET @Path(value="@self/buyer_purchase_order/{buyerPurchaseOrderId}") @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) public javax.ws.rs.core.Response getBuyerPurchaseOrderDataBean(@PathParam(value="storeId") java.lang.String storeId, @PathParam(value="buyerPurchaseOrderId") java.lang.String buyerPurchaseOrderId, @QueryParam(value="responseFormat") java.lang.String responseFormat, @QueryParam(value="profileName") java.lang.String profileName) throws com.ibm.commerce.foundation.rest.resourcehandler.RestException
storeId
- the store idbuyerPurchaseOrderId
- the buyer purchase order idresponseFormat
- the format of the responseprofileName
- the profile namecom.ibm.commerce.foundation.rest.resourcehandler.RestException
@GET @Path(value="@self/usable_billing_address/{orderId}") @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) public javax.ws.rs.core.Response getUsableBillingAddressListTCDataBean(@PathParam(value="storeId") java.lang.String storeId, @PathParam(value="orderId") java.lang.String orderId, @QueryParam(value="responseFormat") java.lang.String responseFormat, @QueryParam(value="profileName") java.lang.String profileName, @QueryParam(value="paymentTCId") java.lang.String paymentTCId) throws com.ibm.commerce.foundation.rest.resourcehandler.RestException
storeId
- The store identifierorderId
- The purchase order idresponseFormat
- The response formatprofileName
- The profile namepaymentTCId
- The payment terms and condition IDcom.ibm.commerce.foundation.rest.resourcehandler.RestException
@GET @Path(value="@self/pattribute/{initKey_referenceNumber}") @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) public javax.ws.rs.core.Response getPAttributeDataBean(@PathParam(value="storeId") java.lang.String storeId, @PathParam(value="initKey_referenceNumber") java.lang.String initKey_referenceNumber, @QueryParam(value="responseFormat") java.lang.String responseFormat, @QueryParam(value="profileName") java.lang.String profileName) throws com.ibm.commerce.foundation.rest.resourcehandler.RestException
storeId
- the store idinitKey_referenceNumber
- the attribute Id of the payment terms & conditionsresponseFormat
- the format of the responseprofileName
- the profile namecom.ibm.commerce.foundation.rest.resourcehandler.RestException
@GET @Path(value="@self/payment_policy_list") @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) public javax.ws.rs.core.Response getPaymentPolicyListDataBean(@PathParam(value="storeId") java.lang.String storeId, @QueryParam(value="responseFormat") java.lang.String responseFormat, @QueryParam(value="profileName") java.lang.String profileName) throws com.ibm.commerce.foundation.rest.resourcehandler.RestException
storeId
- the store idresponseFormat
- the format of the responseprofileName
- the profile namecom.ibm.commerce.foundation.rest.resourcehandler.RestException
@PUT @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) @Path(value="@self/applyCheckoutProfile") public javax.ws.rs.core.Response applyCheckoutProfile(@PathParam(value="storeId") java.lang.String storeId, @QueryParam(value="responseFormat") java.lang.String responseFormat)
storeId
- the store idresponseFormat
- the response format@GET @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) @Path(value="@self/usable_payment_info") public javax.ws.rs.core.Response getUsablePaymentInfo(@PathParam(value="storeId") java.lang.String storeId, @QueryParam(value="responseFormat") java.lang.String responseFormat, @QueryParam(value="pageNumber") int pageNumber, @QueryParam(value="pageSize") int pageSize)
storeId
- the store idresponseFormat
- the response formatpageNumber
- the page numberpageSize
- the page size@POST @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) @Consumes(value={"application/json","application/xml"}) public javax.ws.rs.core.Response addOrderItem(@PathParam(value="storeId") java.lang.String storeId, @QueryParam(value="responseFormat") java.lang.String responseFormat)
storeId
- the store IdresponseFormat
- the response format (xml, json, or atom)@PUT @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) @Consumes(value={"application/json","application/xml"}) @Path(value="@self") @Deprecated public javax.ws.rs.core.Response udpateOrderItem(@PathParam(value="storeId") java.lang.String storeId, @QueryParam(value="responseFormat") java.lang.String responseFormat)
updateOrderItem(String, String)
storeId
- The store ID.responseFormat
- The response format (XML, JSON, or Atom).@PUT @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) @Consumes(value={"application/json","application/xml"}) @Path(value="@self/update_order_item") public javax.ws.rs.core.Response updateOrderItem(@PathParam(value="storeId") java.lang.String storeId, @QueryParam(value="responseFormat") java.lang.String responseFormat)
storeId
- The store identifier.responseFormat
- The response format (XML, JSON, or Atom).@POST @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) @Consumes(value={"application/json","application/xml"}) @Path(value="@self/add_configuration_to_cart") public javax.ws.rs.core.Response addConfigurationToCart(@PathParam(value="storeId") java.lang.String storeId, @QueryParam(value="responseFormat") java.lang.String responseFormat)
storeId
- The store identifier.responseFormat
- The response format.@POST @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) @Consumes(value={"application/json","application/xml"}) @Path(value="@self/add_preconfiguration_to_cart") public javax.ws.rs.core.Response addPreConfigurationToCart(@PathParam(value="storeId") java.lang.String storeId, @QueryParam(value="responseFormat") java.lang.String responseFormat)
storeId
- The store identifier.responseFormat
- The response format.@PUT @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) @Consumes(value={"application/json","application/xml"}) @Path(value="@self/update_configuration_in_cart") public javax.ws.rs.core.Response updateConfigurationInCart(@PathParam(value="storeId") java.lang.String storeId, @QueryParam(value="responseFormat") java.lang.String responseFormat)
storeId
- The store identifier.responseFormat
- The response format.@PUT @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) @Consumes(value={"application/json","application/xml"}) @Path(value="@self/update_reward_option") public javax.ws.rs.core.Response updateRewardOption(@PathParam(value="storeId") java.lang.String storeId, @QueryParam(value="responseFormat") java.lang.String responseFormat)
storeId
- The store identifier.responseFormat
- The response format@DELETE @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) @Path(value="@self") public javax.ws.rs.core.Response cancelOrderInCart(@PathParam(value="storeId") java.lang.String storeId, @QueryParam(value="responseFormat") java.lang.String responseFormat)
storeId
- the store Id.responseFormat
- the response format (xml, json, or atom).@PUT @Path(value="move_order_item") @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) public javax.ws.rs.core.Response moveOrderItem(@PathParam(value="storeId") java.lang.String storeId, @QueryParam(value="responseFormat") java.lang.String responseFormat)
storeId
- The store identifier.responseFormat
- The response format.@PUT @Path(value="@self/precheckout") @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) public javax.ws.rs.core.Response preCheckout(@PathParam(value="storeId") java.lang.String storeId, @QueryParam(value="responseFormat") java.lang.String responseFormat)
It must be called before invoking shipping
cart/@self/checkout
service.
storeId
- store idresponseFormat
- response format@POST @Path(value="@self/checkout") @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) public javax.ws.rs.core.Response checkOut(@PathParam(value="storeId") java.lang.String storeId, @QueryParam(value="responseFormat") java.lang.String responseFormat)
store/{storeId}/cart/@self/payment_instruction
or provide payment instruction with this method. If successful, it returns current
orderId that's in the shopper's cart.
storeId
- the store Id.responseFormat
- the response format (xml, json, or atom).@POST @Path(value="{cartId}/lock") @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) public javax.ws.rs.core.Response lockCart(@PathParam(value="storeId") java.lang.String storeId, @PathParam(value="cartId") java.lang.String cartId, @QueryParam(value="responseFormat") java.lang.String responseFormat)
storeId
- the store Id.cartId
- the cart Id.responseFormat
- the response format (xml, json, or atom).@POST @Path(value="{cartId}/lockOnBehalf") @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) public javax.ws.rs.core.Response lockCartOnBehalf(@PathParam(value="storeId") java.lang.String storeId, @PathParam(value="cartId") java.lang.String cartId, @QueryParam(value="responseFormat") java.lang.String responseFormat)
storeId
- the store Id.cartId
- the cart Id.responseFormat
- the response format (xml, json, or atom).@POST @Path(value="{cartId}/unlock") @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) public javax.ws.rs.core.Response unlockCart(@PathParam(value="storeId") java.lang.String storeId, @PathParam(value="cartId") java.lang.String cartId, @QueryParam(value="responseFormat") java.lang.String responseFormat)
storeId
- the store Id.cartId
- the cart Id.responseFormat
- the response format (xml, json, or atom).@POST @Path(value="{cartId}/unlockOnBehalf") @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) public javax.ws.rs.core.Response unlockCartOnBehalf(@PathParam(value="storeId") java.lang.String storeId, @PathParam(value="cartId") java.lang.String cartId, @QueryParam(value="responseFormat") java.lang.String responseFormat)
storeId
- the store Id.cartId
- the cart Id.responseFormat
- the response format (xml, json, or atom).public void postProcess(java.util.Map<java.lang.String,java.lang.Object> responseMap)
postProcess
in interface IResourceHandler
postProcess
in class AbstractBaseResourceHandler
responseMap
- The response Map after each DataObject has been converted to a
Map.@Deprecated @GET @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) @Path(value="shipping_modes") public javax.ws.rs.core.Response getAllowableShippingModes(@PathParam(value="storeId") java.lang.String storeId, @QueryParam(value="langId") java.lang.String langId, @QueryParam(value="responseFormat") java.lang.String responseFormat)
storeId
- the store idlangId
- the langIdresponseFormat
- the response format@GET @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) @Path(value="shipping_modes") public javax.ws.rs.core.Response getAllowableShippingModes(@PathParam(value="storeId") java.lang.String storeId, @QueryParam(value="locale") java.lang.String locale, @QueryParam(value="langId") java.lang.String langId, @QueryParam(value="responseFormat") java.lang.String responseFormat)
storeId
- the store idlocale
- the localelangId
- the langIdresponseFormat
- the response format@POST @Path(value="@self/renew_order_items") @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) public javax.ws.rs.core.Response orderItemDisplay(@PathParam(value="storeId") java.lang.String storeId, @QueryParam(value="responseFormat") java.lang.String responseFormat) throws java.lang.Exception
storeId
- store idresponseFormat
- response formatjava.lang.Exception
@POST @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) @Path(value="@self/applepay_cancel") public javax.ws.rs.core.Response cancelApplePayOrder(@PathParam(value="storeId") java.lang.String storeId, @QueryParam(value="responseFormat") java.lang.String responseFormat) throws java.lang.Exception
java.lang.Exception
@PUT @Path(value="@self/applepay_update") @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) public javax.ws.rs.core.Response updateApplePayOrder(@PathParam(value="storeId") java.lang.String storeId, @QueryParam(value="responseFormat") java.lang.String responseFormat) throws java.lang.Exception
storeId
- responseFormat
- java.lang.Exception
@POST @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) @Path(value="@self/applepay_process") public javax.ws.rs.core.Response processApplePayOrder(@PathParam(value="storeId") java.lang.String storeId, @QueryParam(value="responseFormat") java.lang.String responseFormat) throws java.lang.Exception
storeId
- responseFormat
- java.lang.Exception