workarea-commerce / workarea-api

Adds JSON REST APIs to the Workarea Commerce Platform
https://www.workarea.com
Other
7 stars 1 forks source link

Fix Checkout Update Response #21

Closed tubbo closed 4 years ago

tubbo commented 4 years ago

Consumers of the Checkouts API expect a 422 response when a failure occurs for any reason. Previously, Workarea was always returnin ga 200 success even when the update could not be fully completed. To resolve this, the Workarea::Checkout#update method has been modified to return false when the update fails, triggering the proper status code in the response.