target field info to get the target id
org field info to get the org id
injected api use to handle the order related operations
injected logger used to handle the logging
request context [headers, body, params, query].
200 Status OK
This validator is used to check if the order is CLOSED by the organization by applying the following steps in sequence:
Get the targetId from context
Get the orgId from context
Get the orders for user (orderAPI.getOrdersForUser), filter by organizationId and status in
If order is exists return 200 else throw error
400 NBError Bad Request
400 NBError Bad Request
400 NBError Bad Request
Generated using TypeDoc
Check if order with some status between user and organization is exists If not exist the review are not allowed