Commit Graph

254 Commits

Author SHA1 Message Date
Mike Jolley 7cc71dea44 Allow API edit_product method to update post_name (slug)
Closes #6601
2014-10-23 11:58:39 +01:00
claudiosmweb 7219addebc [2.2] Fixed POST/PUT products attributes values, closes #6600 2014-10-22 18:46:39 -02:00
Mike Jolley 997e7e7910 extra sanitisation for product data 2014-10-22 12:12:25 +01:00
Mike Jolley fa38b34977 Merge pull request #6564 from krautnerds/rest-api-filter-by-product-cat
REST API 2.0: Add possibility to filter products by product_cat
2014-10-17 16:36:44 +01:00
Florian Ludwig 671fcde079 Changed filter name and some code style compliance 2014-10-17 17:34:26 +02:00
Florian Ludwig 29f152633b RESTAPI 2 Add possibility to filter by product_cat
For products it would be nice to be able to filter by product cat.

usage: filter[product_cat]=CATSLUG
2014-10-17 16:53:14 +02:00
Mike Jolley 4234502265 Coupon API: Don't return current timestamp when expiry_date is not set
Fixes #6546
2014-10-16 16:59:51 +01:00
Mike Jolley dfa4f8b63a Merge pull request #6552 from Aaron3/patch-1
Fixed API create_order to allow setting line totals.
2014-10-16 16:53:18 +01:00
Aaron 0b557e175e Fixed API create_order to allow setting line totals.
$order->add_product expects totals without the `line_` prefix. See https://github.com/woothemes/woocommerce/blob/master/includes/abstracts/abstract-wc-order.php#L149

Without this, setting product coupons doesn't work correctly. (The coupon is saved to the order but no discounts are added to the product.)
2014-10-16 13:56:08 +03:00
Florian Ludwig e1039c127f Reworked code to be Wordpress code style compliant 2014-10-15 19:43:13 +02:00
Florian Ludwig 3a4cc14f62 Fixed intendation 2014-10-15 00:31:56 +02:00
Florian Ludwig 846c24d119 REST API 2.0 Add possibility to get all customers
usage similar to products and orders: filter[limit]=-1
2014-10-15 00:24:16 +02:00
shivapoudel c60ce1ec93 Absolute path fix for REST API v1 2014-09-21 01:12:54 +05:45
shivapoudel e6f6bcf368 Absolute path fix for REST API v2 2014-09-21 01:09:20 +05:45
Mike Jolley a092fce0c2 Ensure product exists in API call
Fixes #6288
2014-09-17 17:23:04 +01:00
Max Rice 445aaa78f9 Use `note` for creating/updating order with customer note
Fixes #6255
2014-09-15 14:44:11 -04:00
Max Rice 6ccc10b891 Update API docs to Apiary 2014-09-08 18:09:10 -04:00
Mike Jolley c4ef86d44e scrutinizer patches 2014-09-08 00:37:55 +01:00
Mike Jolley c3b2a24933 Merge pull request #6147 from maxrice/feature-3176-unit-tests
Add Unit Testing Suite
2014-09-02 09:15:50 +01:00
claudiosmweb 063d1eb349 fixed the access permissions 2014-09-01 12:44:51 -03:00
Max Rice 38dd928f23 [#3176] REST API webhooks endpoint tweaks from unit test 2014-09-01 03:27:19 -04:00
Max Rice 456d10bcec REST API: allow coupon description in create/edit coupon 2014-08-30 18:43:47 -04:00
Max Rice 53b53114a7 REST API: Fix edit coupon typos 2014-08-30 18:43:26 -04:00
Max Rice 28536f6bd8 REST API: allow adding/updating order meta
When creating or updating orders, non-protected scalar meta can now be
set.
2014-08-30 16:17:52 -04:00
Max Rice ee8bf5bf18 REST API: tweak filter name from #6084 2014-08-30 16:16:51 -04:00
Max Rice 744c3767c3 REST API: ensure consistency in create/edit data formats
A client should be able to GET a resource, edit a single item and PUT
it back to the server without having to perform any additional
transformation. This commit ensures all PUT/POST endpoints adhere to
this standard.
2014-08-30 15:50:40 -04:00
Max Rice e1a542498d Fix notice introduced in #6084 2014-08-30 15:14:59 -04:00
Max Rice 722f888453 REST API: Add field restriction to new endpoints 2014-08-30 15:05:36 -04:00
Max Rice ec0f92878e REST API: Add order statuses endpoint 2014-08-30 15:05:31 -04:00
Max Rice f87ccd364c REST API: Mitigate possible JSONP flash attacks
see http://miki.it/blog/2014/7/8/abusing-jsonp-with-rosetta-flash/
2014-08-30 15:05:25 -04:00
Max Rice b1b7d6257b REST API: Fix JSONP content-type 2014-08-30 15:05:12 -04:00
Max Rice 5b68ec6c80 Backport get_avatar_url() fix to v1 REST API 2014-08-30 13:38:45 -04:00
claudiosmweb e1e1c14ae7 fixed errors while adding variable products with non-taxonomy attributes, closes #6082 2014-08-28 16:25:08 -03:00
Florian Ludwig 3fadc14085 Reduce confusion on using the all_meta filter 2014-08-23 19:07:10 +02:00
Florian Ludwig 82f53037be Implemented more general filter array 2014-08-23 00:11:03 +02:00
Florian Ludwig 526b677bcf Extend REST API to access also hidden order item meta 2014-08-22 21:42:28 +02:00
Barry Kooij 94365791af Changed all use of get_product to wc_get_product 2014-08-19 12:09:29 +02:00
Mike Jolley ca1cefd112 Merge pull request #6040 from woothemes/feature-order-refunds-api
Initial order refunds API
2014-08-18 15:13:57 +01:00
claudiosmweb 4acb90def2 changed api_refund for true 2014-08-18 10:47:56 -03:00
claudiosmweb 288732a4be added refund amount validation 2014-08-18 10:47:24 -03:00
claudiosmweb 924e0f92c5 updated woocommerce_api_order_refunds_response filter params 2014-08-18 10:42:37 -03:00
claudiosmweb 6081f3b61f fixed some missing and wrong textdomains 2014-08-15 16:08:43 -03:00
claudiosmweb 2bbcea9de2 orders API for refunds now accepts the api_refund param 2014-08-15 15:58:55 -03:00
claudiosmweb 1294696fcf created API method for delete order refunds 2014-08-15 15:38:39 -03:00
claudiosmweb 6d4ea6e54e created initial API method for edit order refunds 2014-08-15 15:28:43 -03:00
claudiosmweb d02a803e83 added API method for create an order refund 2014-08-15 14:54:19 -03:00
claudiosmweb b972494ac8 created method API to get individual order refunds 2014-08-15 14:40:34 -03:00
claudiosmweb f9250fecf2 created API for get order refunds 2014-08-15 14:09:33 -03:00
Barry Kooij 6655188f0b Changed use of get_order with wc_get_order 2014-08-15 14:29:21 +02:00
Mike Jolley dc60cea213 Merge pull request #5992 from adamawesomeface/master
maximum ammount for coupon functionality added
2014-08-13 11:41:33 +01:00