@FrameworkRestController @FrameworkMapping(value="/cart") public class CartEndpoint extends BaseEndpoint
| Modifier and Type | Field and Description |
|---|---|
protected FulfillmentGroupService |
fulfillmentGroupService |
protected OfferService |
offerService |
protected OrderAddressService |
orderAddressService |
protected OrderCustomerService |
orderCustomerService |
protected OrderMultishipOptionService |
orderMultishipOptionService |
protected OrderPaymentService |
orderPaymentService |
protected OrderService |
orderService |
context, messageSource| Constructor and Description |
|---|
CartEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity |
addAddressToOrderItems(javax.servlet.http.HttpServletRequest request,
Long orderId,
SplitFulfillmentGroupDTO splitFulfillmentGroupDTO) |
org.springframework.http.ResponseEntity |
addItemToOrder(javax.servlet.http.HttpServletRequest request,
Long id,
OrderItemRequestDTO dto) |
org.springframework.http.ResponseEntity |
addPaymentToOrder(javax.servlet.http.HttpServletRequest request,
Long orderId,
OrderPaymentDTO orderPaymentDTO) |
org.springframework.http.ResponseEntity |
addPromoToOrder(javax.servlet.http.HttpServletRequest request,
Long orderId,
String promoCode) |
org.springframework.http.ResponseEntity |
createCart(javax.servlet.http.HttpServletRequest request,
OrderCustomerDTO dto) |
org.springframework.http.ResponseEntity |
createNewCartForCustomer(javax.servlet.http.HttpServletRequest request,
Long customerId) |
org.springframework.http.ResponseEntity |
findCartByCustomerId(javax.servlet.http.HttpServletRequest request,
Long id) |
org.springframework.http.ResponseEntity |
findCartById(javax.servlet.http.HttpServletRequest request,
Long id) |
org.springframework.http.ResponseEntity |
removeAddressFromOrder(javax.servlet.http.HttpServletRequest request,
Long orderId,
Long addressId) |
org.springframework.http.ResponseEntity |
removeItemFromOrder(javax.servlet.http.HttpServletRequest request,
Long orderId,
Long orderItemId) |
org.springframework.http.ResponseEntity |
removePaymentFromOrder(javax.servlet.http.HttpServletRequest request,
Long orderId,
Long paymentId) |
org.springframework.http.ResponseEntity |
removePromoFromOrder(javax.servlet.http.HttpServletRequest request,
Long orderId,
String promoCode) |
org.springframework.http.ResponseEntity |
updateItemOptions(javax.servlet.http.HttpServletRequest request,
Long orderId,
Long itemId,
Map<String,String> attributes) |
org.springframework.http.ResponseEntity |
updateItemQuantity(javax.servlet.http.HttpServletRequest request,
Long orderId,
Long itemId,
Integer quantity) |
getApplicationContext, getMessageSource, setApplicationContext, setMessageSourceprotected OrderService orderService
protected OrderCustomerService orderCustomerService
protected OrderPaymentService orderPaymentService
protected OfferService offerService
protected FulfillmentGroupService fulfillmentGroupService
protected OrderMultishipOptionService orderMultishipOptionService
protected OrderAddressService orderAddressService
@FrameworkMapping(path="/customer/{id}", method=GET) public org.springframework.http.ResponseEntity findCartByCustomerId(javax.servlet.http.HttpServletRequest request, @PathVariable Long id)
@FrameworkMapping(path="/{id}", method=GET) public org.springframework.http.ResponseEntity findCartById(javax.servlet.http.HttpServletRequest request, @PathVariable Long id)
@FrameworkMapping(path="/customer/{customerId}", method=POST) public org.springframework.http.ResponseEntity createNewCartForCustomer(javax.servlet.http.HttpServletRequest request, @PathVariable Long customerId)
@FrameworkMapping(path="/create", method=POST) public org.springframework.http.ResponseEntity createCart(javax.servlet.http.HttpServletRequest request, @RequestBody(required=false) OrderCustomerDTO dto)
@FrameworkMapping(path="/{id}/add", method=POST) public org.springframework.http.ResponseEntity addItemToOrder(javax.servlet.http.HttpServletRequest request, @PathVariable Long id, @RequestBody OrderItemRequestDTO dto)
@FrameworkMapping(path="/{orderId}/remove/{itemId}", method=POST) public org.springframework.http.ResponseEntity removeItemFromOrder(javax.servlet.http.HttpServletRequest request, @PathVariable(value="orderId") Long orderId, @PathVariable(value="itemId") Long orderItemId)
@FrameworkMapping(path="/{orderId}/update/{itemId}/options", method=POST) public org.springframework.http.ResponseEntity updateItemOptions(javax.servlet.http.HttpServletRequest request, @PathVariable(value="orderId") Long orderId, @PathVariable(value="itemId") Long itemId, @RequestBody Map<String,String> attributes)
@FrameworkMapping(path="/{orderId}/update/{itemId}/{quantity}", method=POST) public org.springframework.http.ResponseEntity updateItemQuantity(javax.servlet.http.HttpServletRequest request, @PathVariable(value="orderId") Long orderId, @PathVariable(value="itemId") Long itemId, @PathVariable(value="quantity") Integer quantity)
@FrameworkMapping(path="/{orderId}/add/promo/{promoCode}", method=POST) public org.springframework.http.ResponseEntity addPromoToOrder(javax.servlet.http.HttpServletRequest request, @PathVariable(value="orderId") Long orderId, @PathVariable(value="promoCode") String promoCode)
@FrameworkMapping(path="/{orderId}/remove/promo/{promoCode}", method=POST) public org.springframework.http.ResponseEntity removePromoFromOrder(javax.servlet.http.HttpServletRequest request, @PathVariable(value="orderId") Long orderId, @PathVariable(value="promoCode") String promoCode)
@FrameworkMapping(path="/{orderId}/add/payment", method=POST) public org.springframework.http.ResponseEntity addPaymentToOrder(javax.servlet.http.HttpServletRequest request, @PathVariable(value="orderId") Long orderId, @RequestBody OrderPaymentDTO orderPaymentDTO)
@FrameworkMapping(path="/{orderId}/remove/payment/{paymentId}", method=POST) public org.springframework.http.ResponseEntity removePaymentFromOrder(javax.servlet.http.HttpServletRequest request, @PathVariable(value="orderId") Long orderId, @PathVariable(value="paymentId") Long paymentId)
@FrameworkMapping(path="/{orderId}/remove/address/{addressId}", method=POST) public org.springframework.http.ResponseEntity removeAddressFromOrder(javax.servlet.http.HttpServletRequest request, @PathVariable(value="orderId") Long orderId, @PathVariable(value="addressId") Long addressId)
@FrameworkMapping(path="/{orderId}/add/address", method=POST) public org.springframework.http.ResponseEntity addAddressToOrderItems(javax.servlet.http.HttpServletRequest request, @PathVariable(value="orderId") Long orderId, @RequestBody SplitFulfillmentGroupDTO splitFulfillmentGroupDTO)
Copyright © 2017. All rights reserved.