Commit Graph

16861 Commits

Author SHA1 Message Date
Justin Shreve 33e0b367ac Add new line at end of files. 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 105064ad26 Test coverage for getting a single shipping zone method. 2016-08-02 10:10:47 -07:00
Jeff Stieler bb23d2eaae Ensure _links are added to the single shipping zone method endpoint. 2016-08-02 10:10:47 -07:00
Jeff Stieler e007bc1778 Test coverage for all shipping zone methods endpoint. 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 cdc90f5633 Test coverage for shipping zone method routes. 2016-08-02 10:10:47 -07:00
Jeff Stieler 61a5bf8a68 Add single shipping zone method instance endpoint. 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 7ebb466287 REST API item schemas should be singular objects.
Use single object schemas for Shipping Zone Locations and Methods.
2016-08-02 10:10:47 -07:00
Jeff Stieler f2bb438e98 Add _links to each shipping zone method. 2016-08-02 10:10:47 -07:00
Jeff Stieler 92f0c2bd2c Add endpoint to retrieve all shipping zone methods. 2016-08-02 10:10:47 -07:00
Jeff Stieler 510229e13d Add initial controller for Shipping Zone Methods endpoint, with schema definition. 2016-08-02 10:10:47 -07:00
Jeff Stieler 5400f94f86 Shipping zone location “type” field sanitization callback should be for text values. 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 b9a0367cfa Test coverage for update shipping zone locations endpoint. 2016-08-02 10:10:47 -07:00
Jeff Stieler 6d891e1247 Handle case where no locations are sent in update request. 2016-08-02 10:10:47 -07:00
Jeff Stieler e5fac4911e Test coverage for requesting shipping zone locations with an invalid ID. 2016-08-02 10:10:47 -07:00
Jeff Stieler 0db15c5328 Add test coverage for shipping zone locations retrieval endpoint. 2016-08-02 10:10:47 -07:00
Jeff Stieler 626819f9b8 Add shipping zone locations update endpoint and handler. 2016-08-02 10:10:47 -07:00
Jeff Stieler c041e69e86 Correct locations schema, should be an array of location objects. 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 96c18abb8d Add shipping zone locations retrieval endpoint. 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 7a142af215 Initial Shipping Zone Locations endpoint controller, with schema. 2016-08-02 10:10:47 -07:00
Jeff Stieler 9b564b87b1 Add test coverage to single shipping zone retrieval endpoint. 2016-08-02 10:10:47 -07:00
Jeff Stieler 6a9ba5b9f3 Add test coverage for shipping zone update endpoint. 2016-08-02 10:10:47 -07:00
Jeff Stieler e037cf661e Add test coverage to shipping zone creation endpoint. 2016-08-02 10:10:47 -07:00
Jeff Stieler 3492f397d4 Add test coverage for shipping zone schema endpoint. 2016-08-02 10:10:47 -07:00
Jeff Stieler e4ccede35f Test coverage for /shipping/zones.
Covers success, shipping disabled, and insufficient permissions cases.
2016-08-02 10:10:47 -07:00
Jeff Stieler bbe5ffc295 Add helper method to create shipping zones during testing. 2016-08-02 10:10:47 -07:00
Jeff Stieler 2a7e81a809 Initial Shipping Zones unit test coverage, testing route registration. 2016-08-02 10:10:47 -07:00
Jeff Stieler 2267e62fe0 Add REST API testing bootstrap. 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
Justin Shreve 72f01d9c0a Merge pull request #11548 from woothemes/system-status-api
Add system status info REST API endpoint
2016-08-02 10:08:45 -07:00
Justin Shreve f77cdd366d Move our "if no other payment methods are found" selection logic, outside of the if/else block for selectedPaymentMethod. We want to make sure it still ruins, even if selectedPaymentMethod matches nothing. 2016-08-02 10:05:18 -07:00
Mike Jolley b61d9cd5f1 Add index to search form IDs
Fixes #11557
2016-08-02 17:43:23 +01:00
Justin Shreve e58c0f7f45 Switch our selection for finding the checked box. :checked is faster than filtering. 2016-08-02 09:18:54 -07:00
Justin Shreve a534512b8a Still hide checkboxes for single payment options, even if we select a "previously selected" option. 2016-08-02 09:18:54 -07:00
Justin Shreve 1f25dc001b After payment form fragments are updated, make sure to set the previously selected payment method back as the selected/default payment method. 2016-08-02 09:18:54 -07:00
Mike Jolley 6e1a640b1c Prevent dirty sessions by removing data objects from the package hash
Closes #11269
2016-08-02 17:10:26 +01:00
Mike Jolley d756b9c7ba Merge branch 'pr/11337'
# Conflicts:
#	assets/css/admin.css
2016-08-02 14:44:00 +01:00
Mike Jolley 922ba0337f Fix removal and tweak buttons 2016-08-02 14:42:27 +01:00