Commit Graph

16 Commits

Author SHA1 Message Date
Justin Shreve 9396c5436b Make sure that the create shipping zone uses the correct permissions function. Also makes sure creating the shipping zone returns 201, with the location of the new entity, like other endpoints. 2016-08-02 10:26:26 -07:00
Justin Shreve 069ee3b9ac Add an error check when creating a new shipping zone via the API, incase create() fails. 2016-08-02 10:10:47 -07:00
Jeff Stieler ea4285b1ec Ensure “rest of the world” zone retrieval doesn’t fail by using the core method instead of the REST controller wrapper. 2016-08-02 10:10:47 -07:00
Jeff Stieler 5e7c495e10 Add “rest of the world” zone to API response. 2016-08-02 10:10:47 -07:00
Jeff Stieler 288496b22b Separate shipping zone endpoint permissions check between read and write operations. 2016-08-02 10:10:47 -07:00
Jeff Stieler 5d147ae287 Fix @extends annotation in shipping zone controller classes. 2016-08-02 10:10:47 -07:00
Jeff Stieler 9946d028f2 Add “described by” link to shipping zones endpoint response. 2016-08-02 10:10:47 -07:00
Jeff Stieler 56ef442624 Move common methods to an abstract base shipping zones controller class. 2016-08-02 10:10:47 -07:00
Jeff Stieler 5718e66b2c Add create shipping zone endpoint and handler. 2016-08-02 10:10:47 -07:00
Jeff Stieler 29e150612f Add update shipping zone endpoint and handler. 2016-08-02 10:10:47 -07:00
Jeff Stieler 1480741998 Cast returned zone ID and order as integers. 2016-08-02 10:10:47 -07:00
Jeff Stieler 69a40b0648 Refactor Shipping Zone retrieval into a reusable method. 2016-08-02 10:10:47 -07:00
Jeff Stieler 039f5d2300 Add route and handler for retrieving single Shipping Zones. 2016-08-02 10:10:47 -07:00
Jeff Stieler fd042b88cf Implement get_items() for Shipping Zones endpoint. 2016-08-02 10:10:47 -07:00
Jeff Stieler 0de6f42b51 Create GET route for shipping zones, handling case where shipping calculations are disabled. 2016-08-02 10:10:47 -07:00
Jeff Stieler 267e5cba9a Add initial Shipping Zones REST API controller, with zone schema definition method. 2016-08-02 10:10:47 -07:00