This documentation provides a reference to the updateReturnShippingMethodValidationStep. It belongs to the @medusajs/medusa/core-flows package.
This step validates that a return's shipping method can be updated.
If the return is canceled, the order change is not active,
the shipping method isn't in the return, or the action isn't adding a shipping method,
the step will throw an error.
Note: You can retrieve a return and order change details using Query,
or useQueryGraphStep.
1const data =updateReturnShippingMethodValidationStep({2 orderChange:{3 id:"orch_123",4// other order change details...5},6 orderReturn:{7 id:"return_123",8// other return details...9},10 input:{11 return_id:"return_123",12 action_id:"orchac_123",13}14})