Class TmaProductOrderApiController
java.lang.Object
de.hybris.platform.b2ctelcotmfwebservices.v2.controller.TmaBaseController
de.hybris.platform.b2ctelcotmfwebservices.v2.controller.TmaProductOrderApiController
- All Implemented Interfaces:
ProductOrderingApi
@Controller
public class TmaProductOrderApiController
extends TmaBaseController
implements ProductOrderingApi
Default implementation of
ProductOrderingApi- Since:
- 1907
-
Field Summary
Fields inherited from class de.hybris.platform.b2ctelcotmfwebservices.v2.controller.TmaBaseController
BAD_REQUEST, NOT_FOUND -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TmaOrderFacadevoidinitBinder(org.springframework.web.bind.WebDataBinder binder) org.springframework.http.ResponseEntity<List<ProductOrder>>listProductOrders(@NotNull @Valid String relatedPartyId, @Valid String fields, @Valid Integer offset, @Valid Integer limit, @Valid String baseSiteId) org.springframework.http.ResponseEntity<ProductOrder>patchProductOrder(String id, @Valid ProductOrder productOrder, @Valid String baseSiteId) org.springframework.http.ResponseEntity<ProductOrder>productOrderCreate(@Valid ProductOrder productOrder, @Valid String baseSiteId) An order resource is created and persisted.org.springframework.http.ResponseEntity<ProductOrder>retrieveProductOrder(String id, @NotNull @Valid String relatedPartyId, @Valid String fields, @Valid String baseSiteId) Methods inherited from class de.hybris.platform.b2ctelcotmfwebservices.v2.controller.TmaBaseController
addDefaultFields, encodeUrl, filter, getAuthentication, getDataMapper, getObjectMapper, getQueryStringWithoutOffsetAndLimit, getRequestUrl, getUnsuccessfulResponse, getUnsuccessfulResponseWithErrorRepresentation, getUser, handleInternalError, handleModelNotFoundException, handleTmaApiErrorInternal, hasRole, init, sanitize, sanitizeQueryString
-
Constructor Details
-
TmaProductOrderApiController
@Autowired public TmaProductOrderApiController(javax.servlet.http.HttpServletRequest request)
-
-
Method Details
-
listProductOrders
@RequestMapping(value="/productOrdering/productOrder", produces="application/json;charset=utf-8", method=GET) public org.springframework.http.ResponseEntity<List<ProductOrder>> listProductOrders(@NotNull @Valid @RequestParam("relatedParty.id") @NotNull @Valid String relatedPartyId, @Valid @RequestParam(value="fields",required=false) @Valid String fields, @Valid @RequestParam(value="offset",required=false) @Valid Integer offset, @Valid @RequestParam(value="limit",required=false) @Valid Integer limit, @Valid @RequestParam(value="baseSiteId",required=false) @Valid String baseSiteId) - Specified by:
listProductOrdersin interfaceProductOrderingApi
-
productOrderCreate
@RequestMapping(value="productOrdering/productOrder", produces="application/json;charset=utf-8", consumes="application/json;charset=utf-8", method=POST) public org.springframework.http.ResponseEntity<ProductOrder> productOrderCreate(@Valid @RequestBody @Valid ProductOrder productOrder, @Valid @Valid String baseSiteId) An order resource is created and persisted. Creation of an order resource is performed in 2 ways:
- creation of the order taking data from an existing shopping cart (provided in the request as a reference to the shopping cart resource)
- creation of the order with full data provided in the request- Specified by:
productOrderCreatein interfaceProductOrderingApi- Parameters:
productOrder- input storing data (reference to a cart resource or full order data) for creating the order resource- Returns:
- resource order created in the format of a
ProductOrder
-
retrieveProductOrder
@RequestMapping(value="/productOrdering/productOrder/{id}", produces="application/json;charset=utf-8", method=GET) public org.springframework.http.ResponseEntity<ProductOrder> retrieveProductOrder(@PathVariable("id") String id, @NotNull @Valid @RequestParam("relatedParty.id") @NotNull @Valid String relatedPartyId, @Valid @RequestParam(value="fields",required=false) @Valid String fields, @Valid @RequestParam(value="baseSiteId",required=false) @Valid String baseSiteId) - Specified by:
retrieveProductOrderin interfaceProductOrderingApi
-
patchProductOrder
@RequestMapping(value="/productOrdering/productOrder/{id}", produces="application/json;charset=utf-8", consumes="application/json;charset=utf-8", method=PATCH) public org.springframework.http.ResponseEntity<ProductOrder> patchProductOrder(@PathVariable("id") String id, @Valid @RequestBody @Valid ProductOrder productOrder, @Valid @RequestParam(value="baseSiteId",required=false) @Valid String baseSiteId) - Specified by:
patchProductOrderin interfaceProductOrderingApi
-
getTmaOrderFacade
-
initBinder
@InitBinder public void initBinder(org.springframework.web.bind.WebDataBinder binder)
-