Commit Graph

980 Commits

Author SHA1 Message Date
Claudio Sanches 5e069a4f4e Merge pull request #11756 from woothemes/update/coupon-api-crud
Update Coupon API to use CRUD
2016-08-23 19:51:27 -03:00
Justin Shreve 77088a4a22 Coupon ID will also be an integer, so we can switch the prepare statement to expect that 2016-08-23 13:55:21 -07:00
corsonr f430c23cdc fix issue 11751 2016-08-23 11:16:38 +02:00
Justin Shreve a243829db6 Convert Coupon Controller to use CRUD operations 2016-08-22 15:06:21 -07:00
Justin Shreve 7da590e422 Coupon Tests:
* Move tests for legacy endpoints to a legacy test folder.
* Create a test class to test the WC-API coupons endpoint.
2016-08-22 13:50:32 -07:00
Claudio Sanches eb55096a32 Allow oAuth1.0a authentication using headers 2016-08-22 17:39:41 -03:00
Claudio Sanches 38e1be71eb ID first for all elements in the REST API
cc @mikejolley
2016-08-22 16:58:34 -03:00
Claudio Sanches 0da91bb7d7 Merge pull request #11746 from woothemes/crud-meta-id
Swaps meta_id for id across crud and api
2016-08-22 16:43:57 -03:00
Mike Jolley f34f1aa635 Simplify prepare_line_items logic 2016-08-22 19:58:30 +01:00
Mike Jolley 39f4a1cdca Swaps meta_id for id across crud and api 2016-08-22 19:37:34 +01:00
Mike Jolley 3d696266d2 Set_address 2016-08-22 17:03:59 +01:00
Mike Jolley 7cf75f5085 Remove use of deprecated functions 2016-08-22 16:57:54 +01:00
Mike Jolley c88984eb0e Replace add methods 2016-08-22 16:48:19 +01:00
Mike Jolley 09e43cf797 read only refunded by 2016-08-22 13:15:15 +01:00
Mike Jolley fdd7e797ba API get refunds 2016-08-22 13:15:15 +01:00
Mike Jolley 9e45927803 Create refund with crud 2016-08-22 13:15:15 +01:00
Claudio Sanches 8fe4c14e78 [REST API] Fixed customer last order data 2016-08-20 14:29:48 -03:00
Claudio Sanches 80ee7016f8 Fixed conflicts 2016-08-19 20:31:59 -03:00
Mike Jolley 3f4ffe8a49 More crud updates 2016-08-19 17:05:47 +01:00
Mike Jolley 190cd0bf86 Remove direct access of item props in admin 2016-08-19 15:08:00 +01:00
Claudio Sanches d60d3d5b1e Merge branch 'order-crud-api' 2016-08-19 02:07:10 -03:00
Claudio Sanches acd8a70a30 [2.6] [REST API] Allow save refund reason, closes #11718 2016-08-18 15:20:52 -03:00
Mike Jolley 03110e755f Unit tests 2016-08-18 17:24:44 +01:00
Mike Jolley f1e517130a Feedback from @claudiosmweb 2016-08-18 13:30:10 +01:00
Claudio Sanches 74484c7009 [2.6] [REST API] Fixed undefined order ID, closes #11707 2016-08-18 00:41:46 -03:00
Mike Jolley 7852eecb06 Fix get param usage 2016-08-17 17:25:29 +01:00
Mike Jolley 709dec9ef1 Create and update handling 2016-08-17 16:53:01 +01:00
Mike Jolley b4599d9254 Schema update 2016-08-17 11:44:39 +01:00
Mike Jolley 92ebb933b4 Finish order get 2016-08-16 15:18:16 +01:00
Mike Jolley 3e88ec1f20 Product formatting 2016-08-16 14:49:30 +01:00
Mike Jolley b64c55de49 Format item meta 2016-08-16 13:55:10 +01:00
Mike Jolley bc75c60227 Merge branch 'master' into order-crud-api 2016-08-16 11:09:14 +01:00
Mike Jolley c6f6713e47 Write context in coupon api
@justinshreve
2016-08-15 19:28:07 +01:00
Mike Jolley 3f08d116d8 Start using crud for order requests 2016-08-15 17:27:33 +01:00
Mike Jolley 9138d8a9e1 order api notices 2016-08-15 16:56:55 +01:00
Mike Jolley 23e13fbfa6 created_via 2016-08-15 11:29:29 +01:00
Mike Jolley f3651a9881 Fix user agent calls 2016-08-12 12:53:09 +01:00
Justin Shreve a610c6a804 Update the Customers API to use the WC_Customer CRUD Class
Also:
* Introduces Tests for the Customer REST API
* Fixes a few API and test issues from recent CRUD changes
* Adds some missing billing_ and shipping_ meta data functions to Customer CRUD
2016-08-11 10:30:44 -07:00
Claudio Sanches 43c654a04b [2.6] [REST API] Fixed wrong get order notes error message, closes #11672 2016-08-10 17:55:41 -03:00
Mike Jolley efd390e951 Merge pull request #11645 from woothemes/orders-crud-function-update
Orders crud functions
2016-08-10 12:19:38 +01:00
Justin Shreve 486f7cc738 Correct the avatar_url Customer API response to use the correct email field. 2016-08-09 14:02:58 -07:00
Justin Shreve 35cae38aa2 Fix issues from PR review: sanitize/escape fixes in wp-admin, remove modes. 2016-08-09 10:14:47 -07:00
Justin Shreve 72d665d464 Remove @todo 2016-08-09 09:51:30 -07:00
Justin Shreve b198e6d65b Add the ability to see and update system status modes (shipping debug, template debug, uninstall...) 2016-08-09 09:51:30 -07:00
Justin Shreve 9609998505 Add tools controller 2016-08-09 09:51:30 -07:00
Justin Shreve 9dbd365be8 First pass at system status tools. Fully functioning endpoints for listing tools, listing data about a specific tool, and executing a tool. 2016-08-09 09:51:30 -07:00
Mike Jolley f4a4f6c361 Reduce stock and other notices 2016-08-09 14:15:04 +01:00
Mike Jolley 8d58febaf8 Merge branch 'master' into orders-crud-function-update
# Conflicts:
#	includes/class-wc-checkout.php
2016-08-09 14:03:06 +01:00
Mike Jolley 4ac4bcaa08 Merge branch 'master' into WC-CRUD
# Conflicts:
#	tests/unit-tests/cart/cart.php
2016-08-09 11:08:21 +01:00
Justin Shreve 2d0aeec5c5 Fix customer batch error 2016-08-08 14:54:12 -07:00