matttallan
9fb0882c3c
Use a new overrideable function to create orders and custom order types
2016-05-24 12:21:48 +10:00
Claudio Sanches
7645558131
[REST API] Shipping classes should not have parents
2016-05-23 18:57:58 -03:00
Claudio Sanches
7bda004126
[REST API] Fixed order note ID type
2016-05-23 17:50:04 -03:00
Claudio Sanches
1199410e3d
Missing period
2016-05-22 18:55:50 -03:00
Claudio Sanches
8347e1c323
[REST API] Removed endpoint to get current user
2016-05-22 18:49:55 -03:00
Claudio Sanches
abac5e2160
[REST API] Fixed batch create coupons
2016-05-22 18:19:45 -03:00
Claudio Sanches
9385058886
[REST API] Fixed schamas
2016-05-22 18:17:54 -03:00
Mike Jolley
ed08e51ddb
Status updates via API are manual
...
Closes #10943
2016-05-19 11:50:19 +01:00
Mike Jolley
2d3d401d67
API ignoring 'name' field.
...
Fixes #10929
2016-05-17 17:53:50 +01:00
Claudio Sanches
2b1d4eced6
[REST API] Allow batch create, update and delete for almost all endpoints
2016-05-11 16:34:53 -03:00
Claudio Sanches
dac471273f
Merge pull request #10884 from woothemes/wp-api-batch
...
[REST API] Batch create, update and delete items
2016-05-11 16:22:54 -03:00
Claudio Sanches
ccd1f48025
[REST API] Save default total_sales, closes #10898
2016-05-11 13:19:56 -03:00
Claudio Sanches
47ef7e17a1
Created new function to generate webhook secrets based on the user ID and username, closes #10881
2016-05-11 13:14:00 -03:00
Claudio Sanches
35fdcd243a
[REST API] Added method to check if the request is to the rest api and allow third party plugins
2016-05-11 11:52:29 -03:00
Claudio Sanches
cae8056172
[REST API] Fixed a conflict with authentication and our old API
...
This make authentication avaiable only on the WP REST API for the wc/v1
namespace.
Closes #10890
2016-05-10 18:27:28 -03:00
Claudio Sanches
5d47875eed
[REST API] Allow save post_name/slug for products in v3
...
Closes #10888
2016-05-10 13:46:53 -03:00
Claudio Sanches
d7e874324a
[REST API] Fixed some schema contexts
2016-05-10 13:41:15 -03:00
Claudio Sanches
eaa0e6884c
Merge pull request #10771 from danielhuesken/master
...
WooCommerce API: Add sort order fields for product attributes and categories
2016-05-10 13:28:56 -03:00
Claudio Sanches
26fd51ac79
[REST API] Stop load legacy API classes into the WP REST API, closes #10887
2016-05-10 13:26:39 -03:00
Claudio Sanches
068b77cc43
Created WC_REST_Controller to allow batch create, update and delete items
2016-05-09 18:16:48 -03:00
Claudio Sanches
02b74fc474
Keep consistent
2016-05-05 13:58:28 -03:00
Claudio Sanches
1a1c336468
[REST API] Check if tax exists before try to update
...
@mikejolley
2016-05-05 13:56:32 -03:00
Claudio Sanches
8fa6733a04
[REST API] Fixed missing variable
2016-05-05 13:34:28 -03:00
Claudio Sanches
af443ba831
[REST API] Fixed coding standards and docblocks in taxes controller
...
@mikejolley
2016-05-05 12:28:53 -03:00
Mike Jolley
ebf487f6c8
Fix key names
2016-05-05 13:44:48 +01:00
Mike Jolley
cb6f6e2adf
Filter out empty requests
2016-05-05 12:43:52 +01:00
Mike Jolley
407421ef22
Taxes bulk endpoint naming and handling
...
@claudiosmweb Added helper for create or update (handles both cases)
and renamed endpoint to update_items.
2016-05-05 11:19:35 +01:00
Claudio Sanches
ebd4614b5d
[REST API] Less conditional code for bulk taxes
2016-05-04 17:19:09 -03:00
Claudio Sanches
ad0743efa5
[REST API] Added method to bulk update or create items
2016-05-04 17:14:23 -03:00
Claudio Sanches
552b40ad02
[REST API] Defined coupons default values
2016-04-28 18:38:35 -03:00
Claudio Sanches
3fc2c82aaf
[API] Fixed variations backorders
2016-04-28 13:24:20 -03:00
Matheus Martins
303787b29c
Fixing grammar error
...
Just fixing a little grammar error
2016-04-23 01:32:22 -03:00
Daniel Hüsken
35a1cd4736
Add menu order to categories and attributes
2016-04-22 19:55:52 +02:00
Claudio Sanches
b6d33ee906
WP-API
2016-04-19 12:49:16 -03:00
Claudio Sanches
afc060419d
Pass product object to wc_attribute_label
2016-04-18 13:47:07 -03:00
Mike Jolley
48fabea5b0
Pass product object to wc_attribute_label
...
Fixes #10692
2016-04-18 15:21:26 +01:00
Mike Jolley
c5ccc65856
[API] Don't expand non-existant coupons
...
Fixes #10687
2016-04-18 14:57:06 +01:00
Claudio Sanches
89068f0a4b
Fixed coding standards
2016-04-05 14:58:18 -05:00
Claudio Sanches
d7e408d027
More minor fixes and typos
2016-04-04 14:17:41 -05:00
Claudio Sanches
548c222560
Minor fixes and typos
2016-04-04 14:13:38 -05:00
Claudio Sanches
2710d12fc4
Fixed reviews type
2016-04-04 14:13:29 -05:00
Claudio Sanches
6da6c30c86
Fixed copy and paste
2016-04-04 14:07:50 -05:00
Claudio Sanches
7e791e6f4f
Align variations params
2016-04-01 15:00:00 -03:00
Claudio Sanches
fb8773c570
Group dimensions
2016-04-01 14:57:25 -03:00
Claudio Sanches
cae8849af9
Fixes on product params
2016-04-01 14:36:10 -03:00
Claudio Sanches
ab449a6a62
Improved coupons endpoint using the new Coupon Data fields
2016-03-31 16:32:12 -03:00
Claudio Sanches
bf64942b28
Align variables
2016-03-31 16:14:18 -03:00
Claudio Sanches
8df7723895
Fixed permissions error messages
2016-03-31 16:03:59 -03:00
Claudio Sanches
92da79ce76
Changed $namespace from public to protected
2016-03-31 15:25:31 -03:00
Claudio Sanches
77da7ccc2b
[2.5] [API] Fixed stock management for product variations, closes #10602
2016-03-31 10:03:12 -03:00
Claudio Sanches
00a1a9c3da
Fixed backorders and stock status
2016-03-31 09:56:22 -03:00
Claudio Sanches
b8dd156891
Added endpoint to list and get product reviews
2016-03-30 20:50:06 -03:00
Claudio Sanches
7b508307f0
Fixed links for webhooks deliveries and order notes
2016-03-30 20:42:06 -03:00
Claudio Sanches
7dcfcc9dfc
Allow filter orders by product
2016-03-30 20:26:51 -03:00
Claudio Sanches
bb7e5ecfb6
Allow filter products by taxonomies and sku
2016-03-30 20:05:12 -03:00
Claudio Sanches
5d99b8b336
Register dp filter for orders and allow filter orders by customer id
2016-03-30 19:11:56 -03:00
Claudio Sanches
9619c041cd
Allow filter coupons by code
2016-03-30 18:42:51 -03:00
Claudio Sanches
1722f95a95
Allow filter customers by role or email
2016-03-30 18:33:37 -03:00
Claudio Sanches
f78a2ec68b
Added endpoint to list customer downloads
2016-03-30 18:12:34 -03:00
Claudio Sanches
f76f0d8472
Check permissions in customers/me endpoint
2016-03-30 17:39:20 -03:00
Claudio Sanches
0cd16b3cc0
Fixed file description
2016-03-30 17:34:36 -03:00
Claudio Sanches
8e9e9526ac
Fixed date params
2016-03-30 14:53:46 -03:00
Claudio Sanches
f574a149d1
Attributes permissions
2016-03-30 14:49:22 -03:00
Claudio Sanches
82a6a5f18e
Settings and reports permissions
2016-03-30 14:33:33 -03:00
Claudio Sanches
0fce9c5243
New product terms permissions
2016-03-30 14:17:40 -03:00
Claudio Sanches
768492c02c
Fixed customer permissions
2016-03-30 11:54:49 -03:00
Claudio Sanches
dedfe41c37
User permissions
2016-03-30 11:53:14 -03:00
Claudio Sanches
7afcc8482e
Improved permissions for order notes and webhook deliveries
2016-03-30 11:43:01 -03:00
Claudio Sanches
f4012b7f1f
Reviewed post permissions
2016-03-30 11:17:16 -03:00
Claudio Sanches
124a4291b0
Created new method to save product taxonomy terms
2016-03-29 22:06:05 -03:00
Claudio Sanches
dc6b4e95c8
Added method to show product taxonomy terms
2016-03-29 21:57:05 -03:00
Claudio Sanches
f675d49a54
Return product default attributes
2016-03-29 21:46:35 -03:00
Claudio Sanches
5bf8c808fc
Added methods to create and edit products
2016-03-29 21:22:10 -03:00
Claudio Sanches
a16b32825f
Fixed rest functions names
2016-03-29 19:54:37 -03:00
Claudio Sanches
ae2b3eb3fc
Check if coupon code is empty
2016-03-29 19:11:49 -03:00
Claudio Sanches
a0290a6c65
Stop check again if coupon have code when creating
2016-03-29 19:09:55 -03:00
Claudio Sanches
d781e10d63
Coding standards
2016-03-29 17:24:32 -03:00
Claudio Sanches
8219cee256
Added methods to list and get products
2016-03-29 17:20:15 -03:00
Claudio Sanches
cb2b9b3e50
Products schema
2016-03-29 15:48:08 -03:00
Claudio Sanches
9b9d40d7e9
Create order refunds
2016-03-28 17:33:13 -03:00
Claudio Sanches
90bdabcf41
Added methods to list and get order refunds
2016-03-28 16:41:17 -03:00
Claudio Sanches
0569ad3ca7
Refunds schema and improve delete and query
2016-03-28 16:21:02 -03:00
Claudio Sanches
6629395797
Fixed description for orders schema
2016-03-28 16:17:11 -03:00
Claudio Sanches
2cd2b54c29
Fixed order delete
2016-03-28 16:10:05 -03:00
Claudio Sanches
9738ee04c2
Update orders
2016-03-28 16:04:24 -03:00
Claudio Sanches
242b362020
Fixed file names
2016-03-28 09:25:50 -03:00
Claudio Sanches
90458a8de5
Allow create orders
2016-03-28 09:22:54 -03:00
Claudio Sanches
194b40ecb9
Created exception class
2016-03-28 09:22:44 -03:00
Claudio Sanches
855ff7e6fe
Check if customer exists and improved address and meta data
2016-03-24 18:04:27 -03:00
Claudio Sanches
c4c7ef6da9
Added method to add metadata
2016-03-24 17:55:51 -03:00
Claudio Sanches
8bc11ddebd
Save payment and currency when creating orders
2016-03-24 17:43:14 -03:00
Claudio Sanches
1bbbbf70f5
Added initial methods to create an order
2016-03-24 17:25:10 -03:00
Claudio Sanches
91dd99e472
Added methods to list and get orders
2016-03-23 19:19:08 -03:00
Claudio Sanches
efe4b76559
New order schema
2016-03-23 09:46:34 -03:00
Claudio Sanches
7c84066ad7
Initial order schema
2016-03-23 08:30:58 -03:00
Claudio Sanches
3a0bf6c9b8
Added method to delete order notes
2016-03-22 15:49:41 -03:00
Claudio Sanches
5d5f995011
Allow create order notes
2016-03-22 15:31:27 -03:00
Claudio Sanches
3fc4effed4
Added collection params for order notes
2016-03-22 15:17:35 -03:00
Claudio Sanches
2617642d5d
Added methods to list and get order notes
2016-03-22 15:13:33 -03:00
Claudio Sanches
7a7856ab7e
Order notes schema
2016-03-22 14:53:46 -03:00
Manos Psychogyiopoulos
00b9887936
add order line item args filter to wc api/cli set_line_item method
2016-03-21 14:39:51 +02:00
Claudio Sanches
312105b350
Improved basic authentication
2016-03-18 10:18:44 -03:00
Claudio Sanches
f2728446ca
Improved returned values from authentication
2016-03-18 09:50:54 -03:00
Claudio Sanches
8a45c94425
Use perid for all responses
2016-03-18 08:51:48 -03:00
Claudio Sanches
98f4f21104
Pass correct unauthorized headers for basic auth
2016-03-18 08:47:57 -03:00
Claudio Sanches
a0b0489014
Handle oauth1.0a authentication on REST API
2016-03-18 08:37:31 -03:00
Claudio Sanches
ed2d72fc0d
Verify API Key permissions
2016-03-18 07:24:59 -03:00
Claudio Sanches
eb5db423cc
Handle basic authentication on REST API
2016-03-18 06:53:09 -03:00
Justin Shreve
1e8c45fba5
Fix typos in API
2016-03-17 09:19:28 -07:00
Justin Shreve
3eacb992bc
Address issues from Mike's Feedback:
...
* Rename individual use, free shipping, and exclude sale items to match their meta names closer.
* Sanitize emails when using set_email_restrictions
* Remove some unnecessary explict true checks
* Move ID into _data with the rest of the fields
* Fixed some spacing issues
2016-03-17 09:19:27 -07:00
Justin Shreve
d738dec05d
Coupon CRUD (WIP).
2016-03-17 09:19:27 -07:00
Claudio Sanches
631c814448
[API] Allow save image ID when saving product variations, closes #10570
2016-03-16 15:05:14 -03:00
Claudio Sanches
708c872107
Fixed webhook deliveries schema
2016-03-15 19:40:54 -03:00
Claudio Sanches
0ab93eebeb
Crated methods to list and get webhook deliveries
2016-03-15 19:38:48 -03:00
Claudio Sanches
bd3b5e986e
Added default context for tax classes
2016-03-15 19:38:38 -03:00
Claudio Sanches
56a4df6eb5
Webhook deliveries schema
2016-03-15 19:02:13 -03:00
Claudio Sanches
ebc397df31
Allow query webhooks by status
2016-03-15 18:19:34 -03:00
Claudio Sanches
f3f16944ca
Created webhook deliveries class
2016-03-15 17:54:06 -03:00
Claudio Sanches
3775aef6da
Added method to delete webhooks
2016-03-15 17:46:52 -03:00
Claudio Sanches
8cb8dfc3a8
Added method to update webhooks
2016-03-15 17:39:23 -03:00
Claudio Sanches
696aa2b7fe
Added endpoint for create webhooks
2016-03-15 17:22:57 -03:00
Claudio Sanches
8dc92eb284
Added methods to get and list webhooks
2016-03-15 16:56:55 -03:00
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
Mike Jolley
ee0798047e
Merge branch 'wc-get-orders-10500'
2016-03-14 16:09:01 +00:00
Claudio Sanches
ea9fed64ad
Webhooks
2016-03-12 05:15:30 -03:00
Torre Lasley
e9c3a3614f
Fixing Issue #10523 - Variations ID lookup by SKU
...
I copied the code from the bulk() function to look up the Variation ID by the Variation SKU if the Variation ID is missing.
2016-03-10 07:34:29 -05: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
Mike Jolley
c1e8dd1fe8
Use wc_get_orders iternally
2016-03-09 16:11:05 +00: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
Philip Mark Deazeta
72bfa736b5
Update class-wc-api-products.php
2016-03-08 10:07:36 +08: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
Mike Jolley
f1eefa902c
[2.5] When getting coupon by code used twice, latest should be queried
...
Closes #10487
2016-03-07 13:08:02 +00:00
Mike Jolley
22dc056e16
Merge branch '4-4-term-meta-handling'
2016-03-04 10:55:53 +00: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
Mike Jolley
b221f9964a
Merge branch 'master' into 4-4-term-meta-handling
2016-03-02 18:24:52 +00:00
Justin Shreve
4ef68a354a
Have wp_insert_post return WP_Error when creating our coupon, so the is_wp_error check can catch it.
2016-03-02 06:54:33 -08: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
Mike Jolley
e9703da300
Merge pull request #9921 from peterrath/vat-exempt-and-tax-enabled-handling
...
VAT exempt and “TAX enabled” handling in back end and Orders API
2016-02-19 14:53:39 +00:00
Peter
516602b4e3
API should accept bool in is_vat_exempt
...
Add ? 'yes' : 'no' to force values. API should accept bool here:
update_post_meta( $order->id, '_is_vat_exempt', $data['is_vat_exempt'] ? 'yes' : 'no' );
2016-02-18 20:14:07 +01: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
ba32ce62ba
is_vat_exempt data in API Orders
...
Save and get is_vat_exempt data in API Orders
2016-01-05 21:24:43 +01:00
Peter
fc5e1ded54
Revert "Orders API tax exempt status"
...
This reverts commit 41b6ae07ed
.
2016-01-05 21:18:03 +01:00
Peter
41b6ae07ed
Orders API tax exempt status
...
At this moment we cannot find a way how to create an order using the Orders API with tax exempt status. An additional “is_vat_exempt” API field could be used for this reason. If it is set and true then VAT is not calculated.
2015-12-30 15:30:40 +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
Mike Jolley
19da7cf8bc
No need to delete termmeta if using the new tables
2015-11-06 15:33:23 +00: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
Claudio Sanches
18cf62ed66
[API] Created commands to create tax rates and tax classes
2015-11-06 01:58:08 -02:00
Claudio Sanches
647a2e7498
[API] Created commands to list tax rates and tax classes
2015-11-06 01:37:57 -02:00
Mike Jolley
61e746730f
wc_transaction_query function
...
Only uses transactions if enabled, or read uncommitted is supported
#9279
2015-11-04 14:11:40 +00:00
Claudio Sanches
4522b68a47
[2.4] [API] Avoid undefined $taxonomy warnings while save variable attributes, closes #9456
2015-10-28 16:31:05 -02:00
Claudio Sanches
154dac6d14
[2.4] [API] Fixed attributes save when using non-latin letters
...
Changed sanitize_title() to wc_sanitize_term_text_based() since
wp_set_object_terms() is creating wrong terms
Closes #9421
2015-10-23 14:38:37 -02:00
Claudio Sanches
bfe98a283c
[2.4] [API] Fixed editing product variations
...
Fixed general variations edition and make sync again variations when just
edit a variable product and don't send any 'variations' data
closes #9406
2015-10-22 17:19:16 -02:00
Jeff Stieler
58ec17f76d
Use new review verification status retrieval method on single review template and in APIs.
2015-10-20 22:05:17 -06:00
Jeff Stieler
95fe3d47c2
Use review comment meta for verification status in API calls and WP-CLI.
2015-10-20 22:03:29 -06:00
Claudio Sanches
5c6206e511
[2.4] Fixed WC_API_Orders::set_line_item() for v2 #9338
2015-10-11 11:34:34 -03:00
Claudio Sanches
5465cdadb1
[2.4] Fixed WC_API_Orders::set_line_item(), closes #9338
2015-10-11 11:32:56 -03:00
Claudio Sanches
f6526d72a7
[API] Allow get variable products by sku, closes #9330
2015-10-09 16:43:12 -03:00
Claudio Sanches
15e79820aa
[API] Better naming for returned data on the taxes endpoint
2015-10-08 18:49:05 -03:00
Claudio Sanches
e84fa58e35
[API] Created taxes bulk method
2015-10-08 18:44:26 -03:00
Claudio Sanches
860d292f4f
[API] Added method to edit tax rates
2015-10-08 18:34:47 -03:00
Claudio Sanches
1a3b5f3a6f
[API] Fixed the tax_rate key
2015-10-08 18:01:38 -03:00
Claudio Sanches
3200a1dc0c
Removed error_log()
2015-10-08 17:35:34 -03:00
Claudio Sanches
6d485a2fed
[API] Created woocommerce_api_create_tax_rate_data filter
2015-10-08 17:35:00 -03:00
Claudio Sanches
52bdc2c3a5
[API] Changed returned data name from tax to tax_rate
2015-10-08 17:34:39 -03:00
Claudio Sanches
47c3ba9d21
Created WC_Tax::_get_tax_rate() method
2015-10-08 17:24:37 -03:00
Claudio Sanches
1cded0e1a3
[API] Added method to create tax rates
2015-10-08 17:15:00 -03:00
Claudio Sanches
befda55262
Removed test
2015-10-08 09:40:20 -03:00
Claudio Sanches
1081c2cbe6
[API] Added method to create tax classes
2015-10-07 22:52:45 -03:00
Claudio Sanches
d4c1c4cca4
[API] Added endpoint to get total of tax classes
2015-10-07 22:35:34 -03:00
Claudio Sanches
ef00fe5b2f
[API] Added method for delete tax classes
2015-10-07 22:27:42 -03:00
Claudio Sanches
6cd57e2611
[API] Added method to delete tax rates
2015-10-07 22:10:33 -03:00
Claudio Sanches
34ef764477
[API] Included standard rate in get tax classes response
2015-10-07 19:12:31 -03:00
Claudio Sanches
4f45b04722
[API] Added endpoint to get taxes count
2015-10-07 19:07:45 -03:00
Claudio Sanches
40b210a144
[API] Get taxes method
2015-10-07 19:00:36 -03:00
Claudio Sanches
e3d57ab70c
[API] Created method to get tax rate by ID
2015-10-07 17:44:04 -03:00
Claudio Sanches
16b9f22706
[API] Created method to return tax classes
2015-10-07 17:02:06 -03:00
Claudio Sanches
1168adf8af
[API] Created initial WC_API_Taxes class
2015-10-07 11:42:25 -03:00
Claudio Sanches
5b0a5d15a8
[API] Stop round product prices, closes #9271
2015-10-06 11:12:23 -03:00
Claudio Sanches
6cb5c08037
[API] Added inventory_delta attribute to products endpoint, closes #7673
2015-10-01 15:05:02 +02:00
Claudio Sanches
e34e234481
[API] Added grouped_products attribute to products endpoint, closes #8862
2015-10-01 14:08:42 +02:00
Claudio Sanches
6c3005cddc
[2.4] [API] Fixed customers count method
2015-10-01 10:54:30 +02:00
Claudio Sanches
0547c01418
[API] Removed useless _order_number param in POST/PUT orders, closes #9250
2015-10-01 10:14:42 +02:00
Claudio Sanches
e43fa91ab9
Inline comment for #8884
2015-09-30 18:12:12 +02:00
Claudio Sanches
2559c9287a
[API] Added filter option to show all users on customers endpoint, closes #8884
2015-09-30 18:10:47 +02:00
Claudio Sanches
f7ea1d4c6a
[API] Product featured_src return type as string, closes #9220
2015-09-25 16:13:52 +02:00
Claudio Sanches
06d31d1f86
[2.4] [API] Added refunded_item_id on GET orders/<id>/refunds endpoint, closes #9196
2015-09-22 14:37:11 -03:00
Claudio Sanches
f9fb149551
Allow filter orders by customer id, closes #9162
2015-09-21 19:11:54 -03:00
Claudio Sanches
c739f395ce
[2.4] [API] Improved the way are used for non-global attributes for variations
2015-09-17 02:57:04 -03:00
Claudio Sanches
376b13aece
[API] Sanitize product image alt attribute
2015-09-15 14:25:43 -03:00
Mikael Mattsson
d3302a9fa8
Merge branch 'master' of https://github.com/woothemes/woocommerce
...
# By Akeda Bagus (4) and Beka Rice (1)
# Via Mike Jolley (3) and others
* 'master' of https://github.com/woothemes/woocommerce :
Added more products query filter for REST API.
Added support to GET, POST, PUT, and DELETE tags.
Added support to POST, PUT, and DELETE categories.
Added API support for product shipping classes.
[2.5] Filter when purchase note is showed
2015-09-15 17:28:42 +02:00
Mikael Mattsson
ac49411146
Make the image properties alt and title writable in the REST API v3.
2015-09-15 17:17:14 +02:00
Akeda Bagus
97565ef9a1
Added more products query filter for REST API.
...
The new filters are taxonomies related: tag, shipping class, and
attribute. The code was refactored a bit so all taxonomies query are
wrapped within tax_query.
2015-09-15 07:18:28 -05:00
Akeda Bagus
6906eb4eae
Added support to GET, POST, PUT, and DELETE tags.
2015-09-13 17:59:07 +07:00
Akeda Bagus
2980ffd66b
Added support to POST, PUT, and DELETE categories.
2015-09-13 17:59:07 +07:00
Akeda Bagus
f781d393c8
Added API support for product shipping classes.
...
This change implements GET, POST, PUT, and DELETE handlers for shipping
classes endpoint, /products/shipping_classes.
Fixes #8948 .
2015-09-13 17:54:23 +07:00
Claudio Sanches
194f9cd6ec
Revert "Added API support for product shipping classes."
2015-09-10 14:22:11 -03:00
Akeda Bagus
1f18d861ce
Added API support for product shipping classes.
...
This change implements GET, POST, PUT, and DELETE handlers for shipping
classes endpoint, /products/shipping_classes.
Fixes #8948 .
2015-09-09 20:38:11 +07:00
Florian Ludwig
4e0961333f
Restored wc<2.4 behavior of order item meta keys
...
The previous version of woocommerce showed the machine readable names
in item_meta['key’] especially for the custom variation attributes but
after 2.4 it shows only meta ids in the key.
This commit reverts the behavior to the prior 2.4 behavior.
2015-08-31 17:59:41 +02:00
Claudio Sanches
8da7369088
Just avoid deprecated notices for #8848
2015-08-17 14:04:12 -03:00
Claudio Sanches
a12552dbf1
[API] Removed $HTTP_RAW_POST_DATA in favor of php://input, closes #8848
2015-08-17 12:51:19 -03:00
Claudio Sanches
1d0d48b1ad
Fix attribute text based in API, closes #8823
2015-08-14 15:22:57 -03:00
Claudio Sanches
a215c4ed3c
[API] Fixed variation without parent for v2
2015-07-30 21:53:00 -03:00
nils-fredrik@maksimer.no
f4db67bcbc
Fix for #8691 : Variation without parent will not cause 500.
2015-07-30 23:32:24 +02:00
Claudio Sanches
09145181e5
[API] Removed deprecated products/sku endpoint
2015-07-30 17:35:14 -03:00
Claudio Sanches
948c5c9cfc
Fixed the sanitization for text-based default attributes
2015-07-22 21:40:06 -03:00
Claudio Sanches
aa263ddc1e
[API] Updated variable product attributes update for the new standard of WC 2.4
2015-07-22 21:07:05 -03:00
Claudio Sanches
aec1e28549
[API] Check if REDIRECT_URL exists, closes #8632
2015-07-21 20:08:19 -03:00
Claudio Sanches
3a0d2f7c89
[API] Fixed edit coupon description, closes #8614
2015-07-20 12:49:21 -03:00
Claudio Sanches
9e41552342
Removed all "@return void"
2015-07-16 16:55:48 -03:00
Claudio Sanches
83bdf82767
Fixed docblock for WC_API_Orders::get_variation_id()
2015-07-16 16:14:39 -03:00