**what** Support confirm of an order edit: Upon confirmation, the items of the original order are detached and the items from the order edit are attached to the order. The order total is recomputed with the correct total which can defer from the paid_total and refundable_amount (based on the paid_total) **Tests** - Unit tests medusa-js and medusa-react as well as the core - Integration test of the confirmation flow which check that the order edit is properly confirmed and can be confirmed idempotently. Also validate the totals and that the order items correspond to the order edit items. Also validate the order totals. FIXES CORE-498
Integration-tests
To be able to run the integration tests on your local machine, run the following commands (adapted to your machine)
cd [ROOT_OF_YOUR_REPO]
medusa-dev -p [YOUR_ABSOLUTE_PATH_TO_THE_REPO]
npm run bootstrap
cd integration-tests/api
medusa-dev -s
npm run build
cd - && npm run test:integration