Commit Graph

664 Commits

Author SHA1 Message Date
Claudio Sanches f53e582566 Include prepare_links() to abstract posts controller 2016-03-15 16:55:41 -03:00
Claudio Sanches 3b22acb2b1 Add links to coupons responses 2016-03-15 16:53:51 -03:00
Claudio Sanches d67000fb6c Better prepare coupons hook name 2016-03-15 16:45:29 -03:00
Claudio Sanches 2808658e1f Webhook permissions 2016-03-15 16:38:50 -03:00
Claudio Sanches f4b022d59f Webhook schema 2016-03-15 16:37:10 -03:00
Claudio Sanches ea9fed64ad Webhooks 2016-03-12 05:15:30 -03:00
Claudio Sanches 4d633440ef Top sellers endpoint 2016-03-09 23:51:25 -03:00
Claudio Sanches a1a56d5dbd Created reports/sales endpoint 2016-03-09 23:19:36 -03:00
Claudio Sanches 8e17808a5b Created reports endpoint 2016-03-09 21:46:31 -03:00
Claudio Sanches 3e6ef07ead Fixed get_item_schema() description 2016-03-09 21:34:14 -03:00
Claudio Sanches e493b80c5a Added method to delete tax classes 2016-03-09 21:07:38 -03:00
Claudio Sanches 3eb9abf24f Create tax classes 2016-03-09 05:34:57 -03:00
Claudio Sanches 70dcae2994 List tax classes 2016-03-09 05:16:37 -03:00
Claudio Sanches 03733d8757 Better WP_Error ids 2016-03-09 04:56:35 -03:00
Claudio Sanches 1509a2c8d8 Tax class schema 2016-03-09 04:47:52 -03:00
Claudio Sanches 141ae48a79 Added method to delete taxes 2016-03-09 04:38:21 -03:00
Claudio Sanches a4c5500bde Added method to edit taxes and fixed create tax method 2016-03-09 03:34:41 -03:00
Claudio Sanches 17f1aa7e62 Added method to create taxes 2016-03-09 02:21:44 -03:00
Claudio Sanches 0817a854e8 Added method to list taxes 2016-03-09 01:51:36 -03:00
Claudio Sanches 5f73c23da6 Better query params name 2016-03-09 01:46:04 -03:00
Claudio Sanches 4f1551ff5b Added method to get single taxes 2016-03-09 01:12:21 -03:00
Claudio Sanches e395cebfaf Created taxes schema 2016-03-08 19:51:36 -03:00
Claudio Sanches c27c9d3865 Added method to delete attributes 2016-03-07 20:12:51 -03:00
Claudio Sanches 578870c133 Added method to edit attributes 2016-03-07 19:57:24 -03:00
Claudio Sanches 6eab81a79f Added method to create new attributes 2016-03-07 19:36:34 -03:00
Claudio Sanches 3c770e1bc4 Added method to list product attributes 2016-03-07 19:10:03 -03:00
Claudio Sanches c7ace7749f Created schema for product attributes and allow fetch product attributes by ID 2016-03-07 17:32:25 -03:00
Claudio Sanches 396242b89c Fixed links for terms 2016-03-07 17:28:52 -03:00
Claudio Sanches ff6970031b Fixed attribute terms schema title 2016-03-07 17:04:32 -03:00
Claudio Sanches 426410c2ae Manipule product attribute terms 2016-03-07 16:39:24 -03:00
Claudio Sanches 349b817d1e Fixed typo 2016-03-07 15:45:10 -03:00
Claudio Sanches 9f07be5271 Make easy to extend our rest controllers 2016-03-07 15:36:17 -03:00
Claudio Sanches b5e65c68b9 Added methods to update and create terms 2016-03-07 14:49:14 -03:00
Claudio Sanches bf286dfe96 Created api functions to upload images 2016-03-03 18:42:40 -03:00
Claudio Sanches a7b1393955 Required permissions to list or get shipping classes 2016-03-03 18:09:37 -03:00
Claudio Sanches cbdddd99cc List and get product shipping classes 2016-03-02 20:30:54 -03:00
Claudio Sanches c60ef4ba62 List and get product tags 2016-03-02 20:28:31 -03:00
Claudio Sanches 860819d39f List and get product categories 2016-03-02 20:22:29 -03:00
Claudio Sanches 0b0aa47421 Created methods to create and update customers 2016-03-02 19:14:03 -03:00
Claudio Sanches 36b38fc6e0 Fixed return type 2016-03-02 19:03:09 -03:00
Claudio Sanches d48442f4ed Allow delete customers 2016-03-02 18:13:46 -03:00
Claudio Sanches b797779fbf Required list_users to list customers 2016-03-02 18:07:23 -03:00
Claudio Sanches c934b32164 Created endpoint to get customers 2016-03-02 17:58:40 -03:00
Claudio Sanches 2a429edbc2 Endpoints for get a single customer and the current customer 2016-03-01 20:07:20 -03:00
Claudio Sanches c0affe96e0 Created API functions 2016-03-01 19:41:59 -03:00
Claudio Sanches d22dab6c79 Improved required coupon POST params 2016-03-01 17:59:02 -03:00
Claudio Sanches 53db5ff4c8 Created coupons POST and PUT endpoints and coupons schema 2016-02-26 17:24:33 -03:00
Claudio Sanches 7593285824 Fixed docblocks 2016-02-23 15:34:55 -03:00
Claudio Sanches 1fb4108e08 Added methods to delete orders, refunds and products 2016-02-23 15:34:42 -03:00
Claudio Sanches 9ba3747b74 Fixed controller for order notes 2016-02-23 15:34:14 -03:00
Claudio Sanches f10846277b Added method to delete coupons 2016-02-23 15:28:43 -03:00
Claudio Sanches 0d88e3c380 Added endpoint to get coupons 2016-02-23 12:16:21 -03:00
Claudio Sanches 54739c5e19 Created GET coupons endpoint 2016-02-22 16:44:47 -03:00
Claudio Sanches 43a5f6f842 Created abstract classes for posts and terms 2016-02-22 16:43:52 -03:00
Claudio Sanches 92ef7303b7 Rename $base to $rest_base 2016-02-22 15:49:38 -03:00
Claudio Sanches 7a1f1ff43c Added initial REST API controllers 2016-02-17 17:29:09 -02:00
Claudio Sanches 2ae38250dd Deprecated our API in favor of WP API 2016-02-16 18:22:12 -02:00
Claudio Sanches 5d99fa7ae4 [2.5] [API] Fix parent_id and menu_order for variations, closes #10307 2016-02-11 15:40:57 -02:00
Claudio Sanches 8e2649f9c7 Merge pull request #10318 from justinshreve/api-customer-updated-at-10306
Track & return when a customer was last updated
2016-02-11 12:37:16 -02:00
Justin Shreve 1b2195b819 Track a users last updated time (profile/user attributes) and display it in the WC Customer API. 2016-02-10 08:28:24 -08:00
Claudio Sanches f6698006ce [2.5] [API] Replace term_taxonomy_id for term_id while create/edit terms
Closes #10316
2016-02-10 14:27:00 -02:00
Claudio Sanches e0881121a3 [API] Fixed image title and alt
Fixed image title and alt for single products
Added support for title and alt for variable products
Fixed category image upload method

Closes #10131
2016-01-22 16:43:52 -02:00
Claudio Sanches dca1e4a53a Merge pull request #10031 from krautnerds/api-reuse-internal-price-api
Eliminated duplicate price save code in api v2 and api v3
2016-01-21 19:40:38 -02:00
Claudio Sanches c62388b64b [API] Introduces woocommerce_api_check_permission filter, closes #10119 2016-01-21 19:10:46 -02:00
Claudio Sanches c3ed6baeed [2.5] Fix index decimal and thousand values #10105 2016-01-19 16:52:58 -02:00
Keijo Hyttinen a16b1bbac4 API: thousand and decimal separators corrected 2016-01-19 20:24:26 +02:00
Florian Ludwig d059ce6bc9 Fixed php notices for incorrect input format in date function if date is not set in db 2016-01-11 11:27:55 +01:00
Keijo Hyttinen 72f2f4a327 backorders needs identity check due to boolean values 2016-01-10 00:59:54 +02:00
Florian Ludwig f41a0a539f Fixed format of date after reading from DB 2016-01-08 13:34:19 +01:00
Mike Jolley ad11042afd [2.4] Don't unforce SSL on secure blogs
@claudiosmweb can you check this and cherry pick if good to go?

Fixes #10029
2016-01-08 11:27:18 +00:00
Florian Ludwig 734f3aed18 Eliminated duplicate price save code in api v2 and api v3
I think we shouldn’t coyp&paste too much code from core into the api so
I eliminated the duplicate code and made use of the already existing
_wc_save_product_price function for products and variations
2016-01-07 23:52:01 +01:00
Peter 00341a30b3 Revert "[API] Additional hooks in API Orders"
This reverts commit fb798aca49.
2015-12-22 23:55:03 +01:00
Peter fb798aca49 [API] Additional hooks in API Orders
Add some additional hooks to handle custom order data

The new hooks:
woocommerce_api_create_order_item
woocommerce_api_set_order_addresses
woocommerce_api_set_line_item

The new woocommerce_api_create_order_item action contains the id-s of the new items ($new_item_id). The following functions have to be returned the item id-s to be able to pass them to the filter:
* set_item(..) function - return $item_id; 
* set_line_item(..) function - return $item_id;
* set_shipping(..) function - return $shipping_id;
* set_fee(..) functuion - return $fee_id;
* set_coupon(..) functuion - return $coupon_id;
2015-12-22 23:49:01 +01:00
Claudio Sanches 7adafc77c9 [API] Improved product attribute terms params 2015-12-18 21:39:30 -02:00
Claudio Sanches d85c643150 [API] Delete tax rates when deleting a tax class 2015-12-18 20:46:28 -02:00
Claudio Sanches b8a6090d05 [API] Fixed tax rate id type 2015-12-18 19:15:56 -02:00
Claudio Sanches 032265b1ed [API] Fixed build taxes return 2015-12-18 19:08:09 -02:00
Claudio Sanches b03280e230 [API] Manage product order_menu, closes #9866 2015-12-17 08:08:17 -02:00
Claudio Sanches f7ef9c0cec [API] Stop unset things in API 2015-12-16 16:46:31 -02:00
Claudio Sanches 55e4ef50b9 [API] Fixed errors and improved edit product categories endpoint 2015-12-16 16:44:41 -02:00
Claudio Sanches ee990de153 [API] Fixed errors and improved create product category endpoint 2015-12-16 16:35:46 -02:00
Claudio Sanches 91e5381262 [API] Added order_key in orders response, closes #9823 2015-12-11 01:58:24 -02:00
Claudio Sanches f53af82c34 [API] Show API version in index 2015-12-07 14:54:29 -02:00
Claudio Sanches b31e15e48b Fixed docblock versions 2015-12-04 21:18:06 -02:00
Claudio Sanches 11ce0fb18c [API] Added endpoint to allow delete product attribute terms 2015-12-04 17:01:49 -02:00
Claudio Sanches 4d57d6f4db [API] Added endpoint to allow edit product attribute terms 2015-12-04 16:53:17 -02:00
Claudio Sanches 20efee8cd4 [API] Added endpoint to create product attribute terms 2015-12-04 16:38:17 -02:00
Claudio Sanches 1d0d2258d0 [API] Created method to get a single product attribute term 2015-12-04 16:14:57 -02:00
Claudio Sanches b530449774 [API] Created method to get product attribute terms 2015-12-04 16:02:31 -02:00
Claudio Sanches 54f714e184 [API] Introduces expand filter for orders
Show full products, taxes and coupons data.

Usage: ?filter[expand]=products,taxes,coupons

Closes #9551

cc @mikejolley
2015-12-03 19:05:37 -02:00
Claudio Sanches 2529bd2a4c [API] Allow query endpoints with all status, closes #9738 2015-12-01 22:35:25 -02:00
Claudio Sanches 0b789ed216 [2.4] [API] Fixed early order status change
Closes #9672
2015-12-01 20:04:17 -02:00
Claudio Sanches 3e355ef538 [2.4] [API] Delete product parent transients
Closes #9595
2015-12-01 19:26:35 -02:00
Claudio Sanches c68501f666 [2.4] [API] Fixed backorders edit for variations
closes #9618
2015-12-01 19:14:41 -02:00
Claudio Sanches 89d177a48b [2.4] [API] Fixed status when have an invalid timestamp
Change status from 200 to 401

Closes #9737
2015-12-01 18:30:53 -02:00
Claudio Sanches eeafb202aa [API] Save variation description, closes #9663 2015-11-29 19:57:08 -02:00
Mehdi Esmaeili 101c7f47e1 Better Documentation: Put throws tag 2015-11-17 16:21:42 +03:30
Claudio Sanches 57feb4ba9b [API] Added woocommerce_api_uploaded_image_from_url action, closes #9568 2015-11-10 22:59:17 -02:00
Claudio Sanches 9adb04d612 [CLI] Created command to update tax rate 2015-11-06 02:50:07 -02:00
Claudio Sanches 394342c287 [API] Fixed action and removed transient functions from taxes PUT endpoint 2015-11-06 02:44:02 -02:00