Mike Jolley
3e3e35d50d
Add set prop/get prop helper, error handler, and validation to item product class
2016-08-23 14:58:44 +01: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
Justin Shreve
fe7e26d68d
Error fixes:
...
* Typos
* Consistent edit error handles
* Consistent error messages
2016-08-08 14:52:46 -07:00
Mike Jolley
39eb584321
Merge branch 'master' into orders-crud-function-update
2016-08-08 17:24:40 +01:00
Mike Jolley
31803f4e51
Billing/shipping
2016-08-08 16:46:58 +01:00
Mike Jolley
7b0d9a3e61
IP and notes
2016-08-08 16:24:16 +01:00
Mike Jolley
61e2969b83
[2.6][API] Fix coupon description field
...
fixes #11633
2016-08-08 11:27:07 +01:00
Mike Jolley
6bf05396c2
date_paid
2016-08-05 16:14:30 +01:00
Mike Jolley
b8bf05df11
get_user_agent
2016-08-05 16:10:45 +01:00
Mike Jolley
0a0330bac0
customer_user
2016-08-05 16:09:40 +01:00
Mike Jolley
007a767657
billing_phone
2016-08-05 16:09:04 +01:00
Mike Jolley
7685587b22
payment_method
2016-08-05 16:04:41 +01:00
Mike Jolley
693e5ece36
billing_company
2016-08-05 16:03:09 +01:00
Mike Jolley
8d3b4bc5a4
payment_method_title
2016-08-05 15:59:55 +01:00
Mike Jolley
1c18c2f44a
billing_first_name
2016-08-05 15:58:44 +01:00
Mike Jolley
84c52370fa
more getters
2016-08-05 15:57:40 +01:00
Mike Jolley
39b4831e95
get_id
2016-08-05 15:56:23 +01:00
Mike Jolley
9181c107a8
get_currency
2016-08-05 15:49:17 +01:00
Mike Jolley
ccad4d2df3
Merge pull request #11561 from woothemes/add/product-reviews-create-and-update
...
Add tests, create, update, delete, and batch to the Product Reviews API
2016-08-05 11:16:42 +01:00
Justin Shreve
47c299583d
Merge pull request #11618 from woothemes/update/wp-admin-system-status
...
Update wp-admin's system status page to share backend code with the API
2016-08-04 10:55:19 -07:00
Mike Jolley
1bc9da3e91
Merge branch 'master' into WC-CRUD
...
# Conflicts:
# includes/class-wc-coupon.php
2016-08-04 12:10:04 +01:00
Justin Shreve
8df6ff3c7b
Convert wp-admin's system status page to use the same backend code as the API.
2016-08-03 10:50:47 -07:00
Justin Shreve
5d521b0da5
Fix product review endpoint based on PR feedback: Code cleanup, prepare_item_for_database like WP-API's comments does, better error handling on create, required arg simplification, trash support for reviews.
2016-08-02 11:03:44 -07:00
Justin Shreve
7529b0b3e9
Code cleanup
2016-08-02 10:30:43 -07:00
Justin Shreve
a305da25ef
Add batch support to the product reviews endpoint.
2016-08-02 10:30:43 -07:00
Justin Shreve
b8ec255ea8
First pass at a product reviews REST API that supports creating/updating/deleting product reviews.
2016-08-02 10:30:43 -07:00
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
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
bb23d2eaae
Ensure _links are added to the single shipping zone method 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
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
6d891e1247
Handle case where no locations are sent in update request.
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
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