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
  • 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:
      listProductOrders in interface ProductOrderingApi
    • 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:
      productOrderCreate in interface ProductOrderingApi
      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:
      retrieveProductOrder in interface ProductOrderingApi
    • 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:
      patchProductOrder in interface ProductOrderingApi
    • getTmaOrderFacade

      protected TmaOrderFacade getTmaOrderFacade()
    • initBinder

      @InitBinder public void initBinder(org.springframework.web.bind.WebDataBinder binder)