authentication config
injected service use to handle order related operations
injected logger use to handle logging
request context [headers, body, params, query].
params.orderId
is required200 Status OK
This validator checks if the order is made by the user who is requesting the order by applying the following steps in sequence:
Get orderId from params context
Get order (orderService.getOneOrder) from database
Authenticate user
Check if user is app, if true, throw NBError
Check if order.customer.userId is the same as userId, if true, return StatusCodes.OK
400 NBError Bad Request
404 NBError Not Found
401 NBError Unauthorized
403 NBError Forbidden
Generated using TypeDoc
Is order made by self validator