payOrder
@Patch(value = "{id}/pay")
Handles GET orders/{id}/pay.
Translates the application-layer result into an HTTP response:
200 OKif the order is successfully marked as paid400 Bad Requestif the order is already paid404 Not Foundif the order does not exist
Return
An HTTP response indicating the payment result.
Parameters
id
The order identifier received from the path.