public class OrdersController extends BaseCommerceController
DEFAULT_CURRENT_PAGE, DEFAULT_FIELD_SET, DEFAULT_PAGE_SIZE, HEADER_TOTAL_COUNT| Constructor and Description |
|---|
OrdersController() |
| Modifier and Type | Method and Description |
|---|---|
void |
getCountOrdersForUser(java.lang.String statuses,
HttpServletResponse response)
Returns "X-Total-Count" header
with a total number of results (orders history for all orders placed by the specific user for the specific base
store).
|
OrderWsDTO |
getOrder(java.lang.String code,
java.lang.String fields)
Returns details of a specific order based on order GUID (Globally Unique Identifier) or order CODE.
|
OrderWsDTO |
getOrderForUserByCode(java.lang.String code,
java.lang.String fields)
Returns specific order details based on a specific order code.
|
OrderHistoryListWsDTO |
getOrdersForUser(java.lang.String statuses,
int currentPage,
int pageSize,
java.lang.String sort,
java.lang.String fields,
HttpServletResponse response)
Returns order history data for all orders placed by the specific user for the specific base store.
|
OrderWsDTO |
placeOrder(java.lang.String cartId,
java.lang.String securityCode,
java.lang.String fields)
Authorizes cart and places the order.
|
addPaymentDetailsInternal, applyVoucherForCartInternal, createAddressInternal, getAddressDTOValidator, getAddressValidator, getCartFacade, getCcPaymentInfoValidator, getCheckoutFacade, getDeliveryAddressValidator, getHttpRequestAddressDataPopulator, getHttpRequestPaymentInfoPopulator, getPaymentDetailsDTOValidator, getSessionCart, getUserFacade, getVoucherFacade, setAddressDTOValidator, setAddressValidator, setCartDeliveryAddressInternal, setCartDeliveryModeInternal, setCartFacade, setCcPaymentInfoValidator, setCheckoutFacade, setDeliveryAddressValidator, setHttpRequestAddressDataPopulator, setHttpRequestPaymentInfoPopulator, setPaymentDetailsDTOValidator, setPaymentDetailsInternal, setUserFacade, setVoucherFacade, validateCartForPlaceOrder, validateStatusesEnumValueaddPaginationField, getDataMapper, handleErrorInternal, handleModelNotFoundException, logParam, logParam, logParam, logValue, sanitize, setDataMapper, setTotalCountHeader, setTotalCountHeader, validatepublic OrderWsDTO getOrder(java.lang.String code, java.lang.String fields)
public OrderWsDTO getOrderForUserByCode(java.lang.String code, java.lang.String fields)
public OrderHistoryListWsDTO getOrdersForUser(java.lang.String statuses, int currentPage, int pageSize, java.lang.String sort, java.lang.String fields, HttpServletResponse response)
public void getCountOrdersForUser(java.lang.String statuses,
HttpServletResponse response)
public OrderWsDTO placeOrder(java.lang.String cartId, java.lang.String securityCode, java.lang.String fields) throws PaymentAuthorizationException, InvalidCartException, WebserviceValidationException, NoCheckoutCartException
PaymentAuthorizationException - When there are problems with the payment authorization. For example: there is no session cart or no
payment information set for the cart.InvalidCartExceptionWebserviceValidationException - When the cart is not filled properly (e. g. delivery mode is not set, payment method is not set)ProductLowStockException - When product is out of stock in storeStockSystemException - When there is no information about stock for stores.NoCheckoutCartExceptionCopyright © 2017 SAP SE. All Rights Reserved.