Claudio Sanches
79256504a1
[REST API] Products endpoint fixes, closes #13031
2017-02-01 09:58:04 +01:00
Claudio Sanches
346e1ea1e0
Merge pull request #12996 from woocommerce/rest-api-missing-types-args
...
REST API Types
2017-01-27 14:49:35 -02:00
Claudio Sanches
24a5fe7592
Make WC_REST_Exception extend WC_Data_Exception
2017-01-27 13:52:21 -02:00
Toni Viemerö
2d92bdece6
Cast position as integer
...
Even though I'm sending `position` as integer in my REST request, it comes through as string value.
```
array (
'id' => '186',
'position' => '0',
)
```
2017-01-26 23:08:12 +02:00
Mike Jolley
e930ccd16e
object types to fix unit tests
2017-01-26 20:58:55 +00:00
Toni Viemerö
2b00615fa2
Remove tilde from i
2017-01-26 22:55:23 +02:00
Mike Jolley
82d7fe6e73
Added more missing args and types
2017-01-26 20:33:39 +00:00
Mike Jolley
b727c61da7
Missing arg and setting types
2017-01-26 20:06:18 +00:00
Mike Jolley
2d23705431
ID arg definitions
2017-01-26 19:22:57 +00:00
Mike Jolley
def35a5aa2
Cast request ids to int
2017-01-26 18:34:11 +00:00
Justin Shreve
474a307420
Introduce get_tax_class_slugs.
2017-01-25 13:38:13 -08:00
Claudio Sanches
cdf59d6f68
E[REST API] Use WC_Data_Exception->getErrorData
2017-01-23 17:32:33 -02:00
Claudio Sanches
f54e9e1e1a
Fixed coding standards
2017-01-18 15:16:01 -02:00
Mike Jolley
d92447713a
Merge pull request #12852 from woocommerce/fix-terms-ordering
...
Restore attributes ordering
2017-01-17 12:28:41 +00:00
Claudio Sanches
bd655af072
Restore attributes ordering, closes #12847
2017-01-16 21:11:56 -02:00
Claudio Sanches
3d352a680c
[REST API] Allow search by multiples SKUs
2017-01-16 20:35:55 -02:00
matttallan
c45d81e650
Make the system_status GET endpoint more customisable
2017-01-10 16:06:09 +10:00
Justin Shreve
291a662be1
The WC API returns exclude_product_ids and expiry_date. 2.7 renamed these in the API file, which we should not do until we version the endpoints.
2017-01-03 10:25:36 -08:00
Mike Jolley
fc867c1a58
Return current variations after API update/create
2017-01-03 16:53:49 +00:00
Mike Jolley
859727d462
Merge pull request #12678 from franticpsyx/rest-api-set-order-item-action
...
[2.7] Add 'woocommerce_rest_set_order_item' REST API hook
2016-12-23 14:18:31 +00:00
Manos Psychogyiopoulos
42e09eac32
make rest api order item totals - always excl tax
2016-12-22 19:23:07 +02:00
Manos Psychogyiopoulos
0d6eae5fca
add 'woocommerce_rest_set_order_item' hook
2016-12-22 17:56:14 +02:00
Mike Jolley
8f49724b17
Merge pull request #12674 from franticpsyx/rest-api-set-order-item-meta
...
[2.7] REST order item meta not intercepted
2016-12-22 14:38:39 +00:00
Mike Jolley
6861131d8f
Fix version check
2016-12-22 14:30:47 +00:00
Manos Psychogyiopoulos
dae45b8a29
fix paren position
2016-12-22 14:10:36 +02:00
Manos Psychogyiopoulos
6fc59cf2dc
set REST order item meta
2016-12-22 12:29:57 +02:00
Mike Jolley
020a7b518f
Fix API set of reviews_allowed
...
#12618
2016-12-16 11:24:11 +00:00
Claudio Sanches
af52cf4f73
[2.6] [REST API] Throw exception when product image ID is not a valid attachment
2016-12-14 21:11:50 -02:00
Justin Shreve
da1e14c087
Add WC CLI commands powered by the REST API.
2016-12-08 10:59:07 -08:00
Mike Jolley
4bacbaf90c
Fix completed and paid date meta keys.
2016-12-08 11:19:32 +00:00
Mike Jolley
47fbae4d26
Product Visibility Taxonomies ( #12527 )
...
* Convert visibility and featured to taxonomy
* Comment
* Add missing tax_queries
* Only check SKU after read.
* Added visibility term for outofstock products to speed those queries up al
* wc_bool_to_string
2016-12-08 10:56:45 +00:00
Justin Shreve
63a29dd4db
Add 'locale' to list of customer meta keys, and update expected type for 'object' for gateways, products, and shipping zones to fix some API issues.
2016-12-07 12:23:23 -08:00
Mike Jolley
e8d119c42c
Feedback
2016-12-07 18:13:17 +00:00
Mike Jolley
1ad852443b
Invalid type
2016-12-07 15:54:35 +00:00
Mike Jolley
7f234a0b63
Update array schema
2016-12-07 14:24:44 +00:00
Mike Jolley
cce08e6225
Indenting
2016-12-07 14:06:04 +00:00
Mike Jolley
d4fbda1d68
Put back array for arrays of objects
2016-12-07 12:20:56 +00:00
Mike Jolley
ba62599da0
Use objects, rather than arrays in schema when properties are defined
2016-12-07 11:36:46 +00:00
Mike Jolley
ff05080208
Merge pull request #12462 from danielhuesken/fix_rest_setting_user_role
...
Set customer role for user if it not a customer on the current blog
2016-12-06 11:16:27 +00:00
Mike Jolley
a8f6fd88f4
Merge pull request #12488 from woocommerce/save-coupon-wp-error
...
When saving coupons, return wp_error if necessary
2016-12-01 16:21:23 +00:00
Justin Shreve
a94acad387
Fix title, enabled, and description updates for payment gateways. Add missing readonly on method title and description.
...
Bump WC version.
2016-11-29 11:57:56 -08:00
Justin Shreve
5d8ce22afe
When saving coupons, return wp_errors if an item cannot be created or updated.
2016-11-29 03:06:10 -08:00
Mike Jolley
169c70f447
Fix get_stock_amount
2016-11-25 14:48:20 +00:00
Mike Jolley
e3f19f85c6
Add readonly role field to API
...
Closes #12468 @claudiosanches
2016-11-25 13:04:21 +00:00
Daniel Hüsken
89026327b8
Set customer role for user if it not a customer on the current blog
2016-11-24 13:52:54 +01:00
Mike Jolley
badd63bdd9
Merge pull request #12448 from woocommerce/webhook-api-versions
...
Allow send webhook payload using legacy API v3 or WP REST API integration
2016-11-24 10:22:01 +00:00
Mike Jolley
4ca49ba999
Fix tests
2016-11-23 16:27:18 +00:00
Mike Jolley
d7dfdd3d10
Wrap all deprecation calls.
2016-11-23 16:15:00 +00:00
Claudio Sanches
7aafd6cce7
Set webhook API version in REST API
2016-11-22 22:01:16 -02:00
Mike Jolley
deec278d4a
Only update menu order and display if set.
...
Closes #12411
2016-11-22 15:50:35 +00:00