injected order service to get order
injected API use to get organization
injected targetField use to get orgId
injected targetField use to get orderId
injected logger use to handle logging
request context [headers, body, params, query].
200 Status OK
This validator checks if the order belongs to the organization by applying the following steps in sequence:
Get orgId from targetField context
Check if organization exists
Get orderId from targetField context
Check if order exists
Check if order has the same organization ID as the organization in targetField
403 NBError Forbidden
404 NBError Not Found
Generated using TypeDoc
Order belongs to organization validator