Jeff Stieler
b69c9814af
Match parent signature of prepare_item_for_response(), add getter method for settings.
2016-07-26 10:24:15 -07:00
Claudio Sanches
7b78a6d9a7
Small tweaks to make it follow the REST API standards
2016-07-26 10:24:15 -07:00
Justin Shreve
56b769614d
edit_item should be update_item
2016-07-26 10:24:15 -07:00
Justin Shreve
3c35721bea
Rename update_ functions to edit_item, and get_groups/get_settings to get_item and get_items per feedback. Also move the namespace into each class.
2016-07-26 10:24:15 -07:00
Justin Shreve
fa27f277a1
Split settings and groups controllers into two separate files.
2016-07-26 10:24:15 -07:00
Justin Shreve
bf1ffbeff8
Fix how classic groups/settings are registered so that they are always avaiable when calling filters.
2016-07-26 10:24:15 -07:00
Justin Shreve
3de423b5c2
Wrap up settings api
2016-07-26 10:24:15 -07:00
Justin Shreve
5de870bb08
Wrap up settings endpoints for updating, finish tests.
2016-07-26 10:24:15 -07:00
Justin Shreve
46028e0151
Refactor down to two concepts - settings groups and settings. Fix up tests, and start working on returning actual settings and their values.
2016-07-26 10:24:15 -07:00
Justin Shreve
8fee6bd3b9
Add a test for settings groups, make sure any bad keys/values are filtered out, update docs.
2016-07-26 10:24:15 -07:00
Justin Shreve
b8a45f031c
Add group info to the single locations endpoint & update our docs
2016-07-26 10:24:15 -07:00
Justin Shreve
12aa11d5be
Misc cleanup.
2016-07-26 10:24:15 -07:00
Justin Shreve
19d3bc4737
Add a permissions check to the locations endpoints and fill out the tests for them.
2016-07-26 10:24:15 -07:00
Justin Shreve
21b66f94ff
More setting location tests.
2016-07-26 10:24:15 -07:00
Justin Shreve
5ee4b5d4dd
Add the ability to get data on a single location.
2016-07-26 10:24:15 -07:00
Justin Shreve
11a3c89a2f
Make /settings/locations work properly. Add skeleton for tests and add register_routes test.
2016-07-26 10:24:15 -07:00
Justin Shreve
a9bb988873
Initial /settings API controller and /settings/locations route. Loads the WP-API and registers our namespace temporarily until WP-API is loaded by WC core.
2016-07-26 10:24:15 -07:00
Enrico Deleo
8d3280f7b9
merging from official repo
2016-07-26 16:35:19 +02:00
Nicola Mustone
5613985882
Capitalise all the things
2016-07-26 15:47:04 +02:00
Enrico Deleo
2dede356d3
remove a line item if quantity is zero
2016-07-26 15:15:09 +02:00
Mike Jolley
4f5896d908
[2.6] Only allow image MIME type upload via APIs
2016-07-21 16:20:13 +01:00
Claudio Sanches
2b6cbc7629
Sanitize image metadata
2016-07-19 14:24:11 -03:00
Claudio Sanches
4ed8d46867
[REST API] Make easy to update order line items #11450
2016-07-19 14:11:44 -03:00
Daniel Hüsken
602bd1f0cc
API: Add missing schema and output to visible field in products rest api
2016-07-14 08:41:02 +02:00
Claudio Sanches
6faeb89dd5
[REST API] Fixed variable images and downloads, closes #11420
2016-07-13 10:30:00 +02:00
Claudio Sanches
4c380aaa8d
[REST API] Fixed webhook secret format
2016-07-11 15:26:46 +02:00
Claudio Sanches
1ff19a31b1
[REST API] Fixed wrong error message when try update a product using the same name, closes #11373
2016-07-06 23:23:53 -03:00
Claudio Sanches
0fe6be1eec
[REST API] Delete variations when deletes a variable product, closes #11345
2016-07-04 16:42:07 -03:00
Claudio Sanches
81690c4dee
Fixed duplicated semicolon
2016-06-30 18:25:39 -03:00
Claudio Sanches
ef41395ae9
[2.6] [REST API] Added support for WP REST API with custom URL prefix
2016-06-30 18:23:21 -03:00
Claudio Sanches
529fa3eb58
[REST API] Improve how handle product and variations images #11310
2016-06-30 13:03:52 -03:00
kongper
132c848b38
Closes woothemes/woocommerce#11309
2016-06-30 14:38:41 +02:00
Claudio Sanches
ff50570b5c
[REST API] Check if tax subtotal exists before to prevent errors, closes #11270
2016-06-28 14:44:01 -03:00
Claudio Sanches
53552f8028
Require create webhook secret in the REST API
2016-06-27 21:55:54 -03:00
Claudio Sanches
c7579c5f0b
[REST API] Add "number" property to orders endpoint, closes #11250
2016-06-27 21:53:08 -03:00
Claudio Sanches
e57ab09fb4
Fixed variable product stock at product level, closes #11234
2016-06-23 19:36:39 -03:00
Claudio Sanches
78adee9dcb
[2.6] [REST API] Fixed the type of the params from _product_attributes in the legacy endpoints too #11200
2016-06-21 18:52:40 -03:00
Claudio Sanches
43b4d1e5eb
[2.6] [REST API] Fixed the type of the params from _product_attributes, closes #11200
2016-06-21 18:37:05 -03:00
Claudio Sanches
5a401236af
[2.6] [REST API] Remove empty values from _default_attributes #11200
2016-06-21 18:09:22 -03:00
Claudio Sanches
1e0077dc6e
Use same translation string for errors
2016-06-20 17:43:09 -03:00
Claudio Sanches
d117423f56
[2.6] [REST API] Fixed the schema for prices
2016-06-20 17:20:12 -03:00
Claudio Sanches
68e852094c
[2.6] [REST API] Fixed the up link for variations
2016-06-20 16:03:30 -03:00
Claudio Sanches
11534cf457
[2.6] [REST API] Allow fetch, edit and delete a single product variation
2016-06-20 15:49:43 -03:00
Mike Jolley
7263ec126e
Merge branch 'image-upload-error-messages'
2016-06-20 10:54:30 +01:00
Mike Jolley
b2ddd379e3
Use same translation string for errors
2016-06-20 10:54:23 +01:00
JLuis Freitas
3948fcf4c7
[REST API] incorrect key on saving post_meta
2016-06-17 19:07:06 +01:00
Claudio Sanches
05bf00657d
Help debug remote image upload
2016-06-16 19:26:27 -03:00
Claudio Sanches
83348c8ca9
[2.6] [REST API] Fixed products attribute options when contains ",", closes #11138
2016-06-15 14:32:22 -03:00
Claudio Sanches
58a7ec9659
[2.6] [REST API] Do not register errors for missing/invalid consumer key, closes #11124
2016-06-14 19:47:39 -03:00
Claudio Sanches
335567403e
[2.6] [REST API] Fixed grouped_products schema
2016-06-14 19:20:07 -03:00
Claudio Sanches
b42b03de76
[2.6] [REST API] Fixed product images data
2016-06-14 19:16:46 -03:00
Claudio Sanches
06d5943110
Fixed use of wc_rest_prepare_date_response() function
2016-06-13 19:37:37 -03:00
Claudio Sanches
c9a3ce465f
Fixe the return type of wc_order_search()
2016-06-13 15:26:14 -03:00
Claudio Sanches
a74ca33b10
[REST API] Improved the order search to works like in the admin, closes #11100
2016-06-13 17:08:20 +01:00
Claudio Sanches
f9b160b16c
[REST API] Fixed product search by type, closes #11101
2016-06-13 11:05:29 -03:00
Mike Jolley
78142a8ebb
Merge branch 'master' into WC-CRUD
...
# Conflicts:
# includes/class-wc-checkout.php
# includes/class-wc-coupon.php
# includes/class-wc-customer.php
# tests/unit-tests/cart/cart.php
# tests/unit-tests/cart/functions.php
# tests/unit-tests/coupon/coupon.php
# woocommerce.php
2016-06-13 15:01:58 +01:00
Claudio Sanches
3d1b29bd38
[REST API] Fix customer roles index
2016-06-10 12:14:54 -03:00
Claudio Sanches
745f161456
[REST API] Fixed variation date_created and date_updated
...
cc @mikejolley
2016-06-09 12:36:06 -03:00
Duoc Nguyen
36ccb0212e
Correct docblock for method set_product_image_as_attachment
2016-06-09 16:50:58 +07:00
Claudio Sanches
18aa091c02
Removed dead variable
2016-06-07 12:03:14 -03:00
Claudio Sanches
eafb2e498a
Allow override create_base_order()
2016-06-07 12:02:06 -03:00
Claudio Sanches
75248747e2
[REST API] Created prepare_item_for_database() method in WC_REST_Orders_Controller
2016-06-07 11:57:15 -03:00
Mike Jolley
8d17655d05
unused data
2016-06-07 12:11:55 +01:00
Mike Jolley
730019ef18
scrutinizer best practice
2016-06-06 19:39:23 +01:00
Mike Jolley
7bbf2737be
another unused variable
2016-06-06 19:09:35 +01:00
Mike Jolley
3fd15ad50f
Unused vars and code docs
2016-06-06 18:57:24 +01:00
Mike Jolley
a0c01d963b
Vars and docs
2016-06-06 18:18:26 +01:00
Mike Jolley
76a4ffe2e0
Unused vars
...
@claudiosmweb
2016-06-06 18:10:03 +01:00
Scrutinizer Auto-Fixer
7cef8ae4c9
Scrutinizer Auto-Fixes
...
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2016-06-06 16:50:18 +00:00
Mike Jolley
d4d6f3181c
Best practice tweaks
2016-06-06 17:24:31 +01:00
Claudio Sanches
b112316c4b
[REST API] Removed _address suffix
2016-06-06 10:37:04 -03:00
Claudio Sanches
ea993bbe7f
Fixed woocommerce_rest_cannot_view description
2016-06-05 19:43:23 -03:00
Claudio Sanches
4a2296eda4
Fixed a typo
2016-06-05 19:27:53 -03:00
Claudio Sanches
74551b78c7
Missing another period
2016-06-05 15:48:24 -03:00
Claudio Sanches
26e2d17f26
Missing period
2016-06-05 15:32:46 -03:00
Claudio Sanches
83a843a706
[REST API] Changed "product title" to "product name"
2016-06-05 15:17:29 -03:00
Claudio Sanches
d85fd0bcd5
[REST API] Fixed product backordered description
2016-06-04 10:34:37 -03:00
Claudio Sanches
5719df4393
[REST API] Image ID is not read only
2016-06-02 20:31:41 -03:00
Claudio Sanches
944f275a76
[REST API] Improved the output of product attributes
2016-06-02 19:47:47 -03:00
Claudio Sanches
12c582762a
Merge pull request #11039 from woothemes/improve-product-attributes
...
[REST API] Improve how we manage attribute in products
2016-06-02 19:22:18 -03:00
Claudio Sanches
7b577ee6d2
Merge pull request #11037 from woothemes/add-refunds-to-orders-endpoint
...
[REST API] Include refunds data into orders endpoint
2016-06-02 19:20:54 -03:00
Claudio Sanches
c490f2fa5f
[REST API] Update product attributes only using ID and name
2016-06-02 18:12:04 -03:00
Claudio Sanches
7a83234aa0
[REST API] Use only attribute IDs and names
2016-06-02 17:34:31 -03:00
Claudio Sanches
e08e5dcb20
[REST API] Improve categories image data
2016-06-02 16:48:16 -03:00
Claudio Sanches
d205c2e85f
[REST API] Include refunds data into orders endpoint
2016-06-02 16:05:08 -03:00
Claudio Sanches
0132f4d5dd
[REST API] Fixed order of items in product attribute terms endpoint
...
Ref #11033
2016-06-02 14:51:27 -03:00
Daniel Hüsken
ea8e4b9229
API: Add description to attribute terms in Rest-API
2016-06-02 15:06:59 +02:00
Claudio Sanches
dc1bd63acf
Merge pull request #11022 from mattallan/order-notes-post-type-var
...
Use a $post_type var for the order notes controller api class
2016-06-01 12:52:21 -03:00
matttallan
7fb52f768e
Use $post_type var for order_notes_controller class
2016-06-01 23:22:11 +10:00
Claudio Sanches
4fed217291
[REST API] Removed reviewer_ prefix from product review parameters
2016-05-31 21:36:53 -03:00
Claudio Sanches
84190ecbae
[REST API] Fixed description of product slug param
2016-05-31 21:28:01 -03:00
Claudio Sanches
29645fa1d7
[REST API] Fixed product variation schema
2016-05-31 20:34:15 -03:00
Claudio Sanches
e24e44ae09
[REST API] Fixed values of product download type
2016-05-31 17:44:09 -03:00
Claudio Sanches
4dde06234a
[REST API] Updated product schema
2016-05-31 17:39:34 -03:00
Claudio Sanches
2f1cddf47e
[REST API] Fixed products download limit and download expiry mixed values
2016-05-31 17:38:50 -03:00
Claudio Sanches
b582febda0
[REST API] Fixed orders date_completed
2016-05-30 19:45:14 -03:00
Claudio Sanches
94e6d6cb29
[REST API] elseif in favor of else if
2016-05-30 19:22:26 -03:00
Claudio Sanches
83f87fe01a
[REST API] Fixed order - variable line items
2016-05-30 19:22:06 -03:00
Claudio Sanches
ef90e79356
[REST API] General fixes in the orders schema
2016-05-30 18:38:09 -03:00
Claudio Sanches
48b321bd91
[REST API] Fixed write only parameters in orders and webhooks schemas
2016-05-30 18:01:08 -03:00
Claudio Sanches
638d54425a
[REST API] The only post type that have slugs are products
2016-05-30 17:42:42 -03:00
Claudio Sanches
f526fe3938
[REST API] Fixed item description and type in orders refunds schema
2016-05-30 17:25:39 -03:00
Claudio Sanches
2442ec9f4d
[REST API] Fixed order refunds required fields
2016-05-30 17:15:46 -03:00
Claudio Sanches
e39274e753
HTTPS for everybody
2016-05-26 22:48:49 -03:00
Claudio Sanches
8a62aedad4
Fixed docblocks #10978
2016-05-25 13:27:20 -03:00
Mike Jolley
7cacd678cf
API - Default display type is blank string
...
Fixes #10986 @claudiosmweb
2016-05-25 12:19:55 +01:00
Claudio Sanches
0bb3534195
[REST API] Allow batch for product attributes
2016-05-24 19:00:49 -03:00
Mike Jolley
ca93e0869d
Merge pull request #10978 from mattallan/create_base_order_func
...
Create base order func
2016-05-24 12:30:35 +01:00
matttallan
a6eada7c14
Parses full $request data to create_base_orders() for extended classes
2016-05-24 12:32:43 +10:00
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
Claudio Sanches
e0be5a2e9f
Added truncated consumer key and last access fields in woocommerce_api_keys table
2015-07-16 15:42:00 -03:00
Claudio Sanches
a01660cbba
Fixed WC_API_Products::clear_product()
2015-07-10 10:49:18 -03:00
Mike Jolley
d5a74203c2
Only need one numeric check
2015-07-10 10:48:29 +01:00
nils-fredrik@maksimer.no
3c2b54b360
Fix for #8550
2015-07-10 09:32:10 +02:00
Claudio Sanches
349fc2f665
[API] post__in filter for v2
2015-06-23 11:51:40 -03:00
Claudio Sanches
e003b7803f
Merge pull request #8440 from kilbot/patch-4
...
Add post__not_in filter for REST API requests
2015-06-23 11:50:36 -03:00
Claudio Sanches
9dc28be577
Support HTTP_X_HTTP_METHOD_OVERRIDE in API old versions
2015-06-23 11:49:19 -03:00
Paul Kilmurray
9b848fb1bd
Add post__not_in filter for REST API requests
...
To match the `post__in` filter above
2015-06-23 20:48:19 +08:00
Paul Kilmurray
a030ab52cb
Allow HTTP method to be overwritten by HTTP_X_HTTP_METHOD_OVERRIDE
...
For the same reasons [outlined here](https://github.com/WP-API/WP-API/issues/964 ), ie: Backbone uses X-HTTP-Method-Override.
2015-06-23 20:42:39 +08:00
Mike Jolley
817e5355fd
Pass $item object, not item meta array
...
Closes #8419
2015-06-23 10:24:13 +01:00
Claudio Sanches
b43abff674
Merge pull request #8415 from justinshreve/oauth-7928
...
Fix issues with our OAuth implementation, including nonconformance to spec. Closes #7928
2015-06-22 15:00:51 -03:00
Justin Shreve
819a4fae0d
wp_endswith doesn't actually exist (its a wpcom/jetpackism) - update with a simple substr check
2015-06-22 17:58:50 +00:00
Justin Shreve
fcab013d53
$enc_type for http_build_query() is only available in PHP 5.4+
...
go back to a normalization approach
2015-06-19 23:03:45 +00:00
Justin Shreve
482303c0f9
Don't convert nested parameters to strings.
...
Switch to the native http_build_query instead of our own normalize function.
2015-06-19 16:11:17 +00:00
Justin Shreve
59bc17e0cb
Check before building the current URL to see if a trailing slash should be appended or not, that way if a request includes one, the signature still matches.
2015-06-19 16:05:23 +00:00
Justin Shreve
c43f9157c3
When generating the signature to compare, append a trailing &.
...
The OAuth spec (http://tools.ietf.org/html/rfc5849#section-3.4.2 ) states that a & character must be present, even if a token secret is not a part of the request.
2015-06-19 15:05:51 +00:00
Justin Shreve
9e2f0f55d8
Remove reauth endpoint. It's not going to work the way we want it to. If clients need to log out (like a browser), they can clear the sessions per browser. Also returns JSON error when auth is not returned correctly.
2015-06-19 13:42:10 +00:00
Justin Shreve
8da19e4dae
Provide some directions in the Basic auth input box so the user knows where to provide the API key and secret.
2015-06-19 13:42:10 +00:00
Justin Shreve
d63f7d014f
Implement basic auth improvements and query string fall back.
...
If the key and secret query strings are provided, do auth based on those. If not, and the Basic auth headers are set, do full basic auth (including sending the correct headers).
Also implements a /reauth endpoint for basic auth.
2015-06-19 13:42:10 +00:00
Justin Shreve
c9a2611d33
Version off the current api files into a v2 folder.
2015-06-19 13:42:10 +00:00
Paul Kilmurray
3538d02ca9
Allow decimal stock quantity via REST API
...
The WooCommerce default is to validate stock quantity as integer, however some users find it useful to override this to allow any float quantity, eg:
```php
remove_filter('woocommerce_stock_amount', 'intval');
add_filter( 'woocommerce_stock_amount', 'floatval' );
```
Currently the API forces stock quantities to integer, this change will allow decimal quantities.
2015-06-19 12:07:10 +08:00
Justin Shreve
e1130005a5
When figuring out if to store a sale price, make sure $date_from is set to "today" when blank. The date meta was previously set, but the check to set the actual sale price saw $date_from as empty.
2015-06-16 20:00:16 +00:00
Justin Shreve
66ccc8a75c
Only run the file URL through esc_url_raw if it looks like an absolute URL, otherwise if it is a shortcode or relative URL, continue to use wc_clean.
2015-06-10 16:12:10 +00:00
Justin Shreve
7c3774e65f
For file URLs and images, run the URL through esc_url_raw rather than wc_clean (which removes/strips things like entities).
2015-06-10 15:34:36 +00:00
Claudio Sanches
c9c3be6d3e
[API] Use settings to auto generate passwords or not, closes #8342
2015-06-10 10:56:25 -03:00
Claudio Sanches
eefd9a24f1
Merge pull request #8330 from justinshreve/api-tax-rounding-8328
...
Stop using the frontend display setting for tax rounding in the API (#8328 )
2015-06-09 13:09:46 -03:00
Claudio Sanches
c02052a206
[API] Stop undefined index erros for variations in orders endpoint
...
@justinshreve
2015-06-09 12:39:37 -03:00
Justin Shreve
1d8b6a58d6
Avoid rounding subtotal_tax and total_tax. Don't call wc_round_tax_total for subtotal, and avoid the call to get_line_tax directly which also calls wc_round_tax_total.
2015-06-09 15:06:30 +00:00
Justin Shreve
651b65f28e
Add a unit test for get_variation_id so we know we are getting back the IDs that we want
2015-06-09 13:02:02 +00:00
Justin Shreve
937f93faa6
Clean up some naming and add a clarifying comment for the attribute & pa_ stripping.
2015-06-09 12:41:06 +00:00
Justin Shreve
251636c02e
First pass at figuring out what the variation ID is based on variation information being passed in via the API.
2015-06-09 12:41:06 +00:00
Mike Jolley
34f8536b20
Merge pull request #8306 from krautnerds/fix-customer-rest-api-pagination
...
Fixed pagination headers for customer REST API
2015-06-09 11:43:27 +01:00
Claudio Sanches
91bb8c7ba9
Updated the api authentication
2015-06-08 19:58:38 -03:00
Florian Ludwig
994e4104e9
Fixed pagination headers for customer REST API
...
The old code didn’t ever work in my opinion, because WP_User_Query has
no attributes page and total_pages
2015-06-05 19:28:58 +02:00
Claudio Sanches
6fee82b377
[API] Added display and image info in product category endpoint, closes #8298
2015-06-05 11:37:46 -03:00
Claudio Sanches
9eb3b6ddf9
Changed all requests with wp_remote_* to wp_safe_remote_*
2015-06-01 13:28:55 +01:00
Claudio Sanches
b2711f3d64
[API] Fixed products tags in write-mode
2015-05-29 10:05:15 -03:00
Claudio Sanches
88003436a6
[API] Add properly sanitization for categories and tags in products endpoint, closes #8251
2015-05-29 10:04:02 -03:00
Claudio Sanches
ebdcb0d9e8
[2.3] [API] Fixed subtotal_tax round and decimal dp, closes #8140
2015-05-27 16:18:02 -03:00
Claudio Sanches
9c5cd0e525
[API] Accept dashes in products/sku endpoint, closes #8220
2015-05-25 10:22:59 -03:00
Claudio Sanches
e106d57947
Merged #8021
2015-05-18 16:53:04 -03:00
Claudio Sanches
84c937c011
Improved the woocommerce_api_keys table
2015-05-15 22:52:00 -03:00
Claudio Sanches
20906f2248
Fixed the authentication with the new woocommerce_api_keys table
2015-05-15 21:16:53 -03:00
Paul Kilmurray
27d50aef55
default properties for $order_fee class
...
The add_fee method on WC_Abstract_Order expects taxable, tax, tax_data
and tax_class properties to be present. The API ignores these
properties if taxable = false.
2015-05-14 16:10:56 +08:00
Mike Jolley
2a4f9f77db
Throw API exception when order is invalid
...
Closes #8151 @claudiosmweb
2015-05-13 14:08:12 +01:00
Claudio Sanches
b54a7a34a1
[API] Created bulk update/insert for coupons #7915
2015-05-07 13:13:41 -03:00
Claudio Sanches
05aad18c5e
[API] Created bulk update/insert for customers #7915
2015-05-07 13:09:59 -03:00
Claudio Sanches
3a29a0b743
Fixed docblocks for WC_API_Orders:bulk()
2015-05-07 12:27:39 -03:00
Claudio Sanches
611cf9b521
[API] Created bulk update/insert for orders #7915
2015-05-06 18:41:48 -03:00
Claudio Sanches
41e1ba2811
[2.3] [API] Fixed enable_html_description and enable_html_short_description for products endpoint, closes #8090
2015-05-06 14:28:57 -03:00
Claudio Sanches
08f8317554
[2.3] [API] Fixed start and end date for products, closes #8063
2015-05-06 13:55:40 -03:00
Claudio Sanches
0a3fc7673e
[API] Fixed the returned status when delete a product attribute
2015-04-28 15:56:28 -03:00
Claudio Sanches
8d339a7022
Stop yoda!
2015-04-28 15:10:29 -03:00
Claudio Sanches
dd8b2f6007
[API] Deprecated the products/sku/<sku> endpoint, closes #7592
2015-04-27 17:49:35 -03:00
Claudio Sanches
83b570e3e1
[API] Created method to delete product attributes
2015-04-27 16:33:47 -03:00
Claudio Sanches
bda53f75af
[API] Created method to edit product attributes
2015-04-27 16:14:31 -03:00
Claudio Sanches
212ebe486d
[API] Created method to create product attributes
2015-04-27 13:06:42 -03:00
Claudio Sanches
00f9c6f1ca
[API] Created WC_API_Products::get_product_attribute() method
2015-04-27 11:58:58 -03:00
Claudio Sanches
aa2d5835e4
[API] Created WC_API_Products::get_product_attributes() method
2015-04-27 11:47:17 -03:00
Claudio Sanches
98b1845b68
[2.3] [API] Fixed save downloadable files for product variations, closes #8037
2015-04-25 12:19:30 -03:00
Claudio Sanches
bcfdbcdd0a
[API] Improved WC_API_Products::bulk() #7915
2015-04-24 18:43:33 -03:00
Claudio Sanches
abf1d90d9b
Merge pull request #7922 from Nils-Fredrik/master
...
Allow bulk updates / inserts of products according to #7915
2015-04-24 17:12:53 -03:00
Claudio Sanches
af9c5f948b
[API] Improved the WC_API_Products::get_product_orders() method #8019
2015-04-24 17:04:13 -03:00
Claudio Sanches
cccc7b9b98
Merge pull request #8019 from cklosowski/issue/7285
...
Product's Orders API Endpoint, closes #7285
2015-04-24 16:42:24 -03:00
Claudio Sanches
4a83200a81
Fixed coding standards
2015-04-24 15:53:54 -03:00
Claudio Sanches
d5524a62bf
[API] Removed test in WC_API_Orders::set_line_item()
2015-04-24 15:53:39 -03:00
Mike Jolley
7e304fd4f9
[2.3][api] Prevent variable overwrite in save_product_meta
...
Closes #8011
2015-04-23 16:45:51 +01:00
Mike Jolley
30d2ab8af8
Avoid setting is_customer_note when 0
...
Closes #7995
2015-04-23 11:50:09 +01:00
Claudio Sanches
3e99768047
[API] Added product_url and button_text for external products, closes #7974
2015-04-17 15:50:18 -03:00
Chris Klosowski
d26265f885
Allowing filters to be applied #7285
2015-04-16 13:32:35 -07:00
Claudio Sanches
7ab0d01aa2
[API] Fixed create order method
2015-04-16 15:26:54 -03:00
Mike Jolley
d133d35e27
Fix conflict
2015-04-14 11:27:30 +01:00
Claudio Sanches
c06b6f13e3
[API] Improved the error messages when sent a empty object, closes #7914
2015-04-13 13:06:19 -03:00
Mike Jolley
ed6fe062a7
Merge pull request #7931 from woothemes/fix/api-check_permission
...
[2.3] Check for edit_post cap if the post type is revision
2015-04-10 10:14:19 +01:00
Barry Kooij
4650c2300a
Simply deny all access to revisions
2015-04-10 11:03:45 +02:00
Barry Kooij
64c79ffe1e
Check for edit_post cap if the post type is revision
2015-04-10 10:32:20 +02:00
nils-fredrik@maksimer.no
73cce9f15b
Allow bulk updates / inserts of products according to #7915 .
2015-04-09 22:48:51 +02:00
Claudio Sanches
2fb06e4c29
[API] Fixed the position type for attributes and images
2015-04-03 15:01:41 -03:00
Paul Kilmurray
c8d52c7c2d
Use wc_stock_amount format function
...
This allows the REST API to honour the `woocommerce_stock_amount` filter, eg: for decimal quantity values
2015-03-31 18:36:27 +08:00
Chris Klosowski
cd9360420f
Clearning up DocBlock and passing #7285
2015-03-26 13:56:37 -07:00
Chris Klosowski
8455d5cbd1
First pass at Product's orders endpoint #7285
2015-03-26 13:53:20 -07:00
Claudio Sanches
d08e099bfc
[API] List only approved comments in products reviews, closes #7809
2015-03-24 14:38:08 -03:00
Claudio Sanches
1600bcdae3
Fixed coding standards for #7793
2015-03-23 11:41:37 -03:00
nils-fredrik@maksimer.no
686c40919b
Fix for #7592
...
Added sku filter to the /products endpoint.
Will let you search for products by sku without using the
/products/sku/<sku> endpoint. Its now possible to search for product
skus with specialchars like / and -.
2015-03-21 18:53:00 +01:00
Guillermo Gette
49f84a7bc6
get product_id using wc_get_product_id_by_sku
2015-03-18 23:11:28 +11:00
Guillermo Gette
b8578c044d
Merge branch 'master' of github.com:woothemes/woocommerce into create_order_with_product_sku
2015-03-18 23:06:02 +11:00
Mike Jolley
74d46dcc1e
Merge pull request #7455 from bryceadams/patch-7433
...
Proposed solution for api all order status counts
2015-03-18 10:57:34 +00:00
nils-fredrik@maksimer.no
8e18937305
Fix for #7752
...
Use error code from WP_Error when wc_create_new_customer() fails.
2015-03-18 00:20:35 +01:00
Claudio Sanches
618f70ffdf
[API] Fixed the stock management for variations, closes #7698
2015-03-16 15:13:07 -03:00
Claudio Sanches
6ce7288814
[API] Delete product attachments when the product fails, closes #7731
2015-03-16 14:54:38 -03:00
matttallan
4d0e0b71f3
Rollback WCAPI create_order if exception is thrown after wc_create_order
...
When you use the api to create an order and specify an method_id for
the payment details, but no method_title. You recieve a WP_Error as the
response but a pending order of $0 is still created.
2015-03-13 16:02:42 +10:00
Guillermo Gette
e9d20c9f66
update set_line_item to let you set items by sku
2015-03-12 22:52:37 +11:00
Barry Kooij
b5d64ba932
Decimal Precision can now be set in all orders API calls.
...
Fixes #7652
2015-03-09 19:07:02 +01:00
Barry Kooij
e99bcc7f77
API: reports/sales now also returns total refunds.
...
Fixes #7262
2015-03-09 17:09:07 +01:00
Claudio Sanches
0148a1bd86
[API] Fixed the variable product managing_stock variable, closes #7513
2015-02-20 23:01:26 -02:00
Claudio Sanches
d0aafd1f0b
[API] Fixed undefined messages when edit a product
2015-02-19 10:48:21 -02:00
Bryce
a0b50541cc
Proposed solution for api all order status counts
...
I’m not sure if this is the best way or if it needs work. What do you
think @maxrice @claudiosmweb?
With `status` set to `any`, it returns:
```
stdClass Object
(
[count] => stdClass Object
(
[pending] => 0
[processing] => 2042
[on-hold] => 4
[completed] => 2993
[cancelled] => 13
[refunded] => 0
[failed] => 4
)
)
```
If not `any, same as before.
Closes #7433
2015-02-17 13:27:38 +07:00
Mike Jolley
cdcd38ebb9
API total_tax should include shipping tax
2015-02-16 11:48:26 +00:00
Mike Jolley
8409d67602
Share data between sales by date report and API.
...
Also ensures data is consistent. #7416
2015-02-13 21:25:59 +00:00
Claudio Sanches
050286add6
Updated the changelog for 1452bde
2015-02-11 10:13:36 -02:00
Guillermo Gette
a95591502e
#7359 filter api results by a list of ids
2015-02-11 22:51:56 +11:00
Bryce
deb4acd5a2
Return (first) role of user in customer API endpoint
2015-02-07 13:08:48 +07:00
Claudio Sanches
00916b9e29
Merge pull request #7303 from mattallan/matt/wc-api-orders-tweaks
...
WC_API_Orders: pass data var to new wrappable api function.
2015-02-05 06:46:34 -02:00
matttallan
6531eb0373
pass data var to wrappable api function.
2015-02-05 15:43:05 +10:00
Bryce
1e9349a585
Remove $wpdb and $blog_id
2015-02-04 19:33:25 +07:00
Bryce
d0e0a6be6b
Change so only single role can be set in role param
2015-02-04 19:31:14 +07:00
Bryce
0f927acdd3
Allow people to override roles when querying customers API
...
Just fixing core
and closes #7289
2015-02-04 18:59:25 +07:00
Mike Jolley
6af80f8e60
Merge pull request #7280 from mattallan/matt/wc-api-orders-tweaks
...
Some more tweaks to WC API Orders
2015-02-04 11:46:33 +00:00
matttallan
e5c3385d3b
Change private wc-api method to protected.
...
Mainly so that it can be used in the new Subscriptions API :)
2015-02-04 11:38:38 +10:00
matttallan
f3fbbdeecc
Use validate_request() to avoid duplicate code.
2015-02-04 11:38:36 +10:00
matttallan
cd085f2adc
add an overrideable function to a create custom post.
...
Especially handy for WC Subscriptions seeing as they extend the Abstract
Order Class.
2015-02-04 11:16:11 +10:00
matttallan
c2520a528b
changes to avoid writing duplicated code
2015-02-04 09:59:02 +10:00
Mike Jolley
c814a9fa23
docblock corrections
2015-02-03 14:44:57 +00:00
Mike Jolley
1ef8a24ec9
These should be default_attr, not attribute
2015-02-03 14:44:57 +00:00
Mike Jolley
84fad56258
No return needed
2015-02-03 14:44:57 +00:00
Mike Jolley
10a819bd45
Use coupon_amount in api
2015-02-03 14:44:57 +00:00
Mike Jolley
81515fddbe
Incorrect api docblock
2015-02-03 14:17:49 +00:00
Bryce
0d656dfa23
fix spacing
2015-02-01 14:24:29 +07:00
Bryce
a582481c13
Extra currency options for API
...
* `currency_position`
* `thousand_separator`
* `decimal_separator`
2015-02-01 14:22:41 +07:00
Claudio Sanches
05a011376d
Updated the api docs url
2015-01-30 13:32:23 -02:00
Barry Kooij
e41841cee3
Round net_sales in API to 2 decimals
2015-01-30 14:33:13 +01:00
Barry Kooij
7a92094b72
Added net_sales to API reports response.
2015-01-30 14:29:10 +01:00
Barry Kooij
5435c16a3b
API code standards
2015-01-30 14:28:53 +01:00
Barry Kooij
746a46778d
Fixed sales data in API so it matches the WC reports page.
...
Fixes #7233
2015-01-30 14:28:35 +01:00
Claudio Sanches
242dbe1bc0
[API] product visible by default
2015-01-30 11:08:17 -02:00
Claudio Sanches
ce569c153b
[API] Set default product visibility
2015-01-30 11:00:57 -02:00
Claudio Sanches
5f63425e0a
[API] Fixed the deleted type for refunds
2015-01-26 19:39:33 -02:00
Claudio Sanches
cd88ac0d72
[API] Fixed the refunds returned data
2015-01-26 19:24:54 -02:00
Claudio Sanches
8ff08e70af
Fixed the WC_Abstract_Order::get_user_id() return type and fixed the orders customer_id
2015-01-26 14:41:19 -02:00
Claudio Sanches
4774646a0e
[API] Removed cart_discount, we have now only total_discount
2015-01-26 14:24:59 -02:00
Claudio Sanches
177bcbe7d5
Removed unused code
2015-01-23 16:34:43 -02:00
Mike Jolley
7f2a943075
Docblocks
2015-01-23 14:35:17 +00:00
Mike Jolley
2d707689d9
Add transient cache to webhooks Closes #7184
2015-01-23 13:28:30 +00:00
Mike Jolley
2584041700
wc_price enhancements
...
- Renamed some 2.3 methods for consistency
- Allow more args to be passed to wc_price to control output
- Filter wc_price args which Closes #7188
- wc_get_price_decimal_separator function
- wc_get_price_thousand_separator function
- wc_get_price_decimals function
2015-01-23 11:50:32 +00:00
Claudio Sanches
eb68b1d688
[API] Fixed the products reviews ID type
2015-01-22 22:04:03 -02:00
Claudio Sanches
78fe840499
[API] Fixed the properties for save downloadable files in products endpoint #5942
2015-01-22 19:20:05 -02:00
Claudio Sanches
3561c63ec1
[API] Fixed the default_attributes name and prevent errors with the old param
2015-01-22 18:49:09 -02:00
Claudio Sanches
bfb5329a55
[API] Fixed the WC_API_Products::get_attribute_taxonomy_by_slug()
2015-01-22 18:38:39 -02:00
Claudio Sanches
ece4f00a71
[API] Prevent "PHP Notice: Trying to get property of non-object" errors
2015-01-22 17:22:21 -02:00
Claudio Sanches
1dafa5d3cd
[API] Fixed the download limit and expiry to accept empty string as unlimited/never value
2015-01-22 11:15:52 -02:00
Claudio Sanches
bdf88d2323
[API] Allow edit the comment status in products endpoint using the reviews_allowed param
2015-01-21 21:09:08 -02:00
Claudio Sanches
ec6039794a
[API] Fixed the datetime format for WC_API_Customers::get_customer_downloads()
2015-01-21 10:38:33 -02:00
Claudio Sanches
4e2ae38233
[API] Fixed the expiry date when create a new coupon
2015-01-20 17:57:27 -02:00
Claudio Sanches
183d6ce62c
[API] Fixed create coupon attributes
2015-01-20 17:03:21 -02:00
Claudio Sanches
18b55a429e
[API] Added price_num_decimals to the index, closes #7149
2015-01-19 16:09:44 -02:00
Claudio Sanches
07e6996bf1
[API] Fixed the default attributes saving
2015-01-19 11:33:33 -02:00
Claudio Sanches
847720fe68
[API] Fixed attributes save for variations in products endpoint
2015-01-19 11:11:30 -02:00
Claudio Sanches
b6925d49ef
[API] Fixed errors when the description and short_description is empty in products endpoint
2015-01-19 10:52:44 -02:00
Mike Jolley
20a2b2d079
API: Product Prices should use store precision settings.
...
Fixes #7149
2015-01-19 11:35:12 +00:00
Mike Jolley
3590bfb198
Standard tax class is empty. Fixes #7142
2015-01-19 11:30:30 +00:00
Max Rice
2d974987dc
Check strings using hash_equals
...
time-constant string comparison to prevent timing attacks
2015-01-19 00:34:09 -05:00
Max Rice
512d77fb4c
code standards
2015-01-19 00:33:38 -05:00
matttallan
5265e432b3
Change wc-api-order private methods to protected.
2015-01-15 11:28:07 +10:00
Claudio Sanches
46769e89e2
Fixed doc comments for products api class
2015-01-13 13:44:30 -02:00
Claudio Sanches
ecf7bd9f9a
[API] Show and use slug for attributes in products endpoint, closes #6537
2015-01-13 13:24:28 -02:00
Claudio Sanches
3cddfb44e9
Improved the woocommerce_api_query_args filter #7081
2015-01-12 16:46:30 -02:00
Mike Jolley
2c32f6cdd0
Add functions to get money spent/order count for customers and fix in API Closes #7083
2015-01-12 17:09:46 +00:00
Mike Jolley
643892bd33
modify_user_query use 24 hour date format.
...
Closes #7082
2015-01-12 17:09:46 +00:00
Claudio Sanches
4be3c9831e
Added the woocommerce_api_query_args filter, closes #7081
2015-01-12 13:59:27 -02:00
pilyounghur
b97453b4a1
wc API - enable html tags for description
...
use API , enable html tags description and short_description
before : strip all tags , change : user selectable html tags.
2015-01-09 21:12:47 +09:00
Claudio Sanches
4f3326fe86
[API] Refactored the products endpoint to use the WC_API_Exception class #6138
2015-01-05 17:26:24 -02:00
Claudio Sanches
d71e135c27
[API] Refactored the webhooks endpoint to use the WC_API_Exception class #6138
2015-01-05 16:52:52 -02:00
Claudio Sanches
e14a5b0624
[API] Refactored the orders endpoint to use the WC_API_Exception class #6138
2015-01-05 16:40:38 -02:00
Claudio Sanches
a74efe61a9
[API] dont count coupons if the user dont have permissions
2015-01-05 16:40:27 -02:00
Claudio Sanches
678f5e67a0
[API] Refactored the customers endpoint to use the WC_API_Exception class #6138
2015-01-05 16:06:52 -02:00
Claudio Sanches
a96815ced9
[API] Refactored the coupons endpoint to use the WC_API_Exception class #6138
2015-01-05 15:42:25 -02:00
Claudio Sanches
d880ee390b
Fixed some coding standards in orders api class
2015-01-05 15:41:14 -02:00
Claudio Sanches
85d2e60767
Merge pull request #7042 from krautnerds/rest-fix-pagination-headers-customers
...
Rest 1.0/2.0 Customers - Fix missing output of pagination headers
2015-01-05 13:27:38 -02:00
Claudio Sanches
116e1130ae
[API] Fixed "Undefined index: limit" in customers endpoint
2015-01-05 12:36:50 -02:00
Florian Ludwig
436570091b
REST 1.0: Fix pagination headers for Customers
2015-01-04 02:07:11 +01:00
Florian Ludwig
9bbc9789ce
REST: Fix pagination headers for Customers response
2015-01-04 02:05:23 +01:00
Max Rice
641a3aae42
[ #6910 ] Fix strict check for boolean
2015-01-02 14:30:47 -05:00
Claudio Sanches
d821dbf88e
[API] Fixed the individual_use, enable_free_shipping and exclude_sale_items params for coupons endpoint
2014-12-18 15:01:54 -02:00
Claudio Sanches
5b318b1d2a
Added the wc_is_webhook_valid_topic() and wc_is_valid_url() conditional functions
2014-12-17 10:16:14 -02:00
Claudio Sanches
48bf608120
[API] Improved the params in orders api actions
2014-12-12 01:22:42 -02:00
Claudio Sanches
051d3078ad
[API] Prevented errors with deleted products in the orders endpoint, closes #6813
2014-12-11 10:54:07 -02:00
Claudio Sanches
53b1c66427
[API] Added parent_id in products endpoint, closes #6786
2014-12-10 16:28:30 -02:00
Claudio Sanches
a5d70fa24c
Fixed API products when save multiple images from the media library, closes #6792
2014-12-10 15:23:36 -02:00
Mike Jolley
eba8206540
Merge branch 'tax-coupon-handling' Closes #6830
...
Conflicts:
assets/js/admin/meta-boxes-order.min.js
includes/api/class-wc-api-coupons.php
includes/class-wc-cart.php
templates/checkout/review-order.php
2014-12-03 12:33:15 +00:00
claudiosmweb
80ea5420c3
[API] Fixed the action parameters in the methods to create and edit orders, closes #6845
2014-11-28 10:22:35 -02:00
claudiosmweb
fb955e8a40
[API] Added error message when try search a product with a invalid SKU
2014-11-27 10:52:24 -02:00
claudiosmweb
553fe744cf
[API] Created a route to get products by SKU, closes #6847
2014-11-27 10:34:55 -02:00
Claudio Sanches
7a62f75eca
Revert "Look up product by sku"
2014-11-27 10:06:28 -02:00
Harrison DeStefano
7c42b66a02
product by sku
2014-11-26 15:51:04 -05:00
claudiosmweb
ce721fc86f
[API] Fixed the coupons expiry_date format with POST and PUT, closes #6829
2014-11-25 12:44:33 -02:00
claudiosmweb
c73bcb614e
API - deletes the product when fails to create, closes #6801
2014-11-25 12:10:12 -02:00
Mike Jolley
3c82331a8b
Store discount 'tax' to show discounts on prices including tax more accuratly
...
Also deprecated some functions named after having 2 levels of discounts.
2014-11-25 13:05:03 +00:00
Mike Jolley
4a8c541fbf
Remove 'order' discounts from classes
2014-11-25 11:05:14 +00:00
Mike Jolley
549d7ab2c0
Removed 'apply before tax' options for coupons - this should be the default core behaviour
2014-11-24 17:24:25 +00:00
Mike Jolley
802e807319
Limit length of password when creating web hook
2014-11-24 13:52:13 +00:00
claudiosmweb
2c48a87086
Fixed WC API Coupons params, closes #6828
2014-11-24 10:37:38 -02:00
claudiosmweb
8eeb6fc204
Removed more some unused code
2014-11-19 22:43:09 -02:00
claudiosmweb
f34cead914
Removed old code in favor of wc_tax_enabled() and wc_prices_include_tax()
2014-11-18 14:45:29 -02:00
Mike Jolley
9701dad114
API - set_fee should support tax_data
...
Closes #6719 cc @maxrice
2014-11-14 13:14:48 +00:00
Mike Jolley
bb1564d6c4
Incorrect variable
...
#6626 cc @claudiosmweb
2014-11-12 14:50:01 +00:00
Mike Jolley
aaca944a85
API - Variation handling for stock data
...
Closes #6626 cc @claudiosmweb
2014-11-12 14:21:29 +00:00
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
claudiosmweb
9da4f13805
fixed the orders api order status query
2014-08-12 15:08:11 -03:00
adamawesomeface
0e22412a7d
maximum ammount for coupon functionality added
2014-08-08 07:38:58 -04:00
Mike Jolley
0b6d8914a3
Merge pull request #5941 from maxrice/feature-issue-5564-rest-api-webhooks
...
Webhooks Implementation
2014-07-31 07:03:02 +01:00
Max Rice
9536d98ade
Add webhooks REST API endpoint
...
Part of #5564
2014-07-30 16:22:58 -04:00
Max Rice
64ddf83184
Add coupon description to REST API coupon response
2014-07-30 16:19:35 -04:00
Mike Jolley
4203ed77e3
Merge pull request #5842 from BFTrick/get-a-job
...
Adding an Employment Easter Egg
2014-07-30 12:19:11 +01:00
Mike Jolley
dd61317395
Merge pull request #5904 from maxrice/rest-api-remove-xml
...
Remove XML response from v2 REST API
2014-07-29 13:20:05 +01:00
Mike Jolley
ae6dceeace
Merge pull request #5908 from maxrice/fix-issue-5423
...
Add item meta to REST API orders response
2014-07-29 13:19:38 +01:00
Mike Jolley
6a092ddd37
Merge pull request #5913 from maxrice/feature-issue-5806
...
Add product categories endpoint to REST API
2014-07-29 13:16:45 +01:00
Mike Jolley
be757abf61
Merge pull request #5916 from maxrice/feature-rest-api-order-notes
...
Improve order notes endpoint
2014-07-29 13:16:38 +01:00
Max Rice
76be03010c
Improve order notes endpoint
...
This commit improves the order notes endpoint with full read/write
capabilities:
* GET /orders/#{order_id}/notes - get all notes for an order
* GET /orders/#{order_id}/notes/#{id} - get single order note
* POST /orders/#{order_id}/notes - create an order note
* PUT /orders/#{order_id}/notes/#{id} - edit an order note
* DELETE /orders/#{order_id}/notes/#{id} - delete an order note
2014-07-28 23:39:07 -04:00
Max Rice
47ccd78b21
Allow using meta_value_num with resource orderby
...
Part of #5720
2014-07-28 19:49:56 -04:00
Max Rice
bb651761d0
Add orderby filtering to REST API resource endpoints
...
Adds orderby filtering to all endpoints using default WP orderby
parameters.
Closes #5720
2014-07-28 19:40:28 -04:00
Max Rice
323bcbf848
Add order (desc/asc) to REST API customers endpoint
...
Part of #5720
2014-07-28 19:38:21 -04:00
Max Rice
7f3b67272a
Adhere to WP code standards
2014-07-28 19:34:41 -04:00
Max Rice
80368dc105
Add product categories endpoint to REST API
...
This commit adds two new endpoints:
* GET /products/categories - returns a list product categories
* GET /products/category/#{id} - returns the product category for #{id}
Closes #5806
2014-07-28 19:01:50 -04:00
Max Rice
7d597a36d0
Add item meta to REST API orders response
...
Fixes #5423
2014-07-28 13:33:03 -04:00
Max Rice
8ff7202c5c
Remove XML response from v2 REST API
2014-07-28 12:16:34 -04:00
Max Rice
2ea771be1f
Fix SQL error in v1 customers response
2014-07-28 12:16:04 -04:00
Mike Jolley
cdc0efed75
Merge pull request #5843 from maxrice/feature-orders-endpoint-issue-4160
...
Create/Edit/Delete orders via the REST API
2014-07-28 09:18:49 +01:00
Max Rice
698f6499f6
Add REST API create/edit order actions & filters
...
Part of #4160
2014-07-27 23:58:01 -04:00
Max Rice
5be324a543
Add edit order REST API method
...
Part of #4160
2014-07-27 23:36:32 -04:00
Max Rice
315787e3d6
Refactor create order method
...
* handle errors through WC_API_Exception
* abstract order item creation
Part of #4160
2014-07-27 23:35:50 -04:00
Max Rice
d919ed9d64
Tweak REST API order response
...
* se WC_Order::get_order_currency() for currency
* use new WC_Order::get_subtotal() for subtotal
* add order item ID and rate ID to tax lines
Part of #4160
2014-07-27 23:33:35 -04:00
Max Rice
cca54879fa
Fix misc docblocks
2014-07-27 23:23:59 -04:00
Max Rice
c9342d6344
Add WC_API_Exception class
...
Part of #4160
2014-07-27 23:20:48 -04:00
Patrick Rauland
568c0102ae
adding get_a_job method
2014-07-14 09:18:07 -06:00
Max Rice
95aab694e4
API: implement order creation
...
part of #4160
2014-07-12 21:44:49 -04:00
Max Rice
13e2495390
API: implement order deletion
...
part of #4160
2014-07-12 18:09:21 -04:00
Max Rice
54c019dd62
re-add v1 API classes
2014-07-12 17:49:43 -04:00
Coen Jacobs
86a4add087
Merge remote-tracking branch 'upstream/master' into order-factory-refactor
...
Conflicts:
includes/class-wc-order.php
2014-07-03 13:38:55 +02:00
claudiosmweb
49882740bb
added the possibility to remove the product images by API
2014-06-30 18:02:31 -03:00
claudiosmweb
617b299d8f
improved the image upload to get images by ID and save the _product_image_gallery
2014-06-30 17:58:27 -03:00
claudiosmweb
d3a2307d18
improved the image upload
2014-06-30 17:31:25 -03:00
claudiosmweb
584af93aba
fixed a variable override when create new variable productions
2014-06-30 16:36:13 -03:00
claudiosmweb
d3dc018ffc
fixed the wc_product_has_unique_sku() function name
2014-06-27 16:03:25 -03:00
claudiosmweb
0a4b6387e6
introduces the wp_product_has_unique_sku() function
2014-06-27 15:59:24 -03:00
claudiosmweb
e208770265
fixed some coding standards
2014-06-26 16:55:24 -03:00
claudiosmweb
84be699374
added new product API actions
2014-06-26 16:51:03 -03:00
claudiosmweb
fe53733be0
added method to save the variations in product API
2014-06-26 16:47:54 -03:00
claudiosmweb
bdd5f9d0f6
created API methods to save product categories and tags
2014-06-25 16:38:51 -03:00
claudiosmweb
2dffa85353
fixed the downloads method
2014-06-25 16:27:24 -03:00
claudiosmweb
dce4a4eed6
added all product options for save in WC_API_Products::save_product_meta() method
2014-06-25 16:20:28 -03:00
claudiosmweb
28713a760c
improved the product price in product API handler
2014-06-25 13:27:48 -03:00
claudiosmweb
101169322c
added method to save product attributes in products API
2014-06-24 18:32:37 -03:00
claudiosmweb
ea9fb154a9
fixed/improved the PUT method in product API
2014-06-24 17:34:06 -03:00
claudiosmweb
bec77c12d8
added PUT method in product API
2014-06-24 17:28:36 -03:00
claudiosmweb
78f461f835
fixed the save product method in API
2014-06-24 17:17:51 -03:00
claudiosmweb
49c80e6732
fixed the create producs method in products API
2014-06-24 17:16:36 -03:00
claudiosmweb
52a5ae9086
added delete method in products API
2014-06-24 17:16:08 -03:00
claudiosmweb
0971b87f30
added @kloon's WC_API_Products::save_product_meta() method
2014-06-24 15:30:11 -03:00
claudiosmweb
f583f94885
improved the save product images methods in product API
2014-06-24 15:23:21 -03:00
claudiosmweb
d7e49ea801
created methods to save product images by API
2014-06-24 15:19:34 -03:00
claudiosmweb
5ca7516139
initial create product API method
2014-06-24 14:42:10 -03:00
Coen Jacobs
89ea6c46ab
Replace new WC_Order calls with get_order
2014-06-13 15:24:51 +02:00
Coen Jacobs
3ad8935b20
Removed ununsed global variables in local scopes
2014-06-08 22:33:11 +02:00
Mike Jolley
e0a74fffc4
implement is_status()
2014-05-30 17:43:21 +01:00
Mike Jolley
ae50495dfd
Update API functions
2014-05-30 16:34:59 +01:00
Mike Jolley
79a26d7f8e
Merge pull request #5584 from claudiosmweb/4594-feature-customer-api-available-downloads
...
Add Customer API endpoint for get available downloads
2014-05-28 19:32:20 +01:00
claudiosmweb
d2329914a6
created customer api endpoint to get the customer available downloads, closes #4594
2014-05-28 14:06:46 -03:00
claudiosmweb
a69e947c4d
added post_status filter in WC API, closes #4857
2014-05-28 13:29:37 -03:00
Coen Jacobs
3ae4e54b04
Empty return value should be null
2014-05-26 12:51:03 +02:00
Coen Jacobs
cfd8600960
Use regex instead of DOM module to get avatar URL
2014-05-26 12:48:21 +02:00
Paul Kilmurray
b7a8a0bd20
Update class-wc-api-orders.php
...
The line_subtotal_tax should be included in the line_items. It doesn't seem to have a helper method like the others?
2014-05-22 13:34:39 +08:00
Mike Jolley
08996096f2
Merge pull request #5033 from claudiosmweb/customers_api_4162
...
Customers API / Methods PUT/POST/DELETE
2014-05-15 12:58:23 +01:00
Mike Jolley
ddafd636f2
Merge pull request #5044 from kloon/coupons_api_put_post_delete
...
Coupons API PUT POST DELETE
2014-05-15 12:57:08 +01:00
Mike Jolley
b7643e469b
Merge pull request #4763 from claudiosmweb/remove_the_content_filter
...
Removed all the_content filter in favor to wpautop() and do_shortcode()
2014-05-15 10:52:26 +01:00
Mike Jolley
1b6e2a5980
Merge pull request #5125 from sparkweb/master
...
[2.2] REST API: Allow ordering on the resource level
2014-05-15 10:50:32 +01:00
Max Rice
a007f2e8d7
Fix fee/coupon lines typo in REST API order response
2014-05-02 15:26:30 -04:00
Max Rice
fe5d757970
Update REST API documentation link
2014-04-10 12:27:27 -04:00
Mike Jolley
08b94299d3
Remove post_parent so grouped simple products are also returned
...
Fixes #5178
2014-04-07 10:19:13 +01:00
Mike Jolley
021a889e66
Merge pull request #5277 from maxrice/rest-api-fix-5207
...
Allow query string fallback for REST API SSL authentication
2014-04-07 10:13:55 +01:00
Max Rice
09451855f2
Allow query string fallback for REST API SSL auth
...
In some environments, the PHP_AUTH_USER/PW server vars are empty which
prevents SSL authentication from working properly. This commit allows
the use of a query string fallback (e.g.
`?consumer_key=123&consumer_secret=abc`) for providing credentials over
SSL.
Fixes #5207
2014-04-04 14:24:14 -04:00
Max Rice
1dd24501f5
Remove unnecessary OAuth code
...
The parameters provided to the API endpoints only contain the
parameters specified in the method signature so there’s no need to
strip out the OAuth params.
2014-04-04 14:22:06 -04:00
Max Rice
1c437bdeb8
API: double-encode percent symbols when normalizing parameters
2014-04-03 16:56:26 -04:00
Max Rice
853520d40b
API: normalize both key and value before calculating OAuth signature
...
The OAuth spec indicates that the full query string should be URL
encoded. The array_walk method does not change keys so when used with a
parameter like `filter[period]=week`, the key is not properly encoded.
This fixes that by properly encoding both the key and value.
2014-04-03 16:11:51 -04:00
Max Rice
9f463e4644
code standards
2014-04-03 16:10:08 -04:00
sparkweb
1280d6d6ff
Removing ordering code from orders
...
This code got moved to the resources file.
2014-03-13 11:14:08 -06:00
sparkweb
d40f773e77
REST API: allow ordering change
2014-03-13 11:08:36 -06:00
sparkweb
25900f9976
Allow reordering of the order list with the REST api
2014-03-12 23:47:42 -06:00
Gerhard
0463516020
Remove duplicate coupon type check
2014-03-06 10:08:27 +02:00
Gerhard
3b0c541acf
Send http status 201 when coupon created.
2014-03-06 09:59:28 +02:00
claudiosmweb
2adacc742a
fixed the status for create new customers via api
2014-03-06 04:28:42 -03:00
Gerhard
ae85e64b2b
Edit coupon, save product ID's in comma separates values as per core
2014-03-06 08:52:34 +02:00
Gerhard
518a8cffb2
Save product ID's as comma separated values like core does it
2014-03-06 08:51:00 +02:00
Gerhard
1b1c13349b
Do not url decode the body data, just add it. See https://oauth.googlecode.com/svn/spec/ext/body_hash/1.0/oauth-bodyhash.html
2014-03-06 08:42:05 +02:00
Gerhard
8e0a267a84
Remove implode function
2014-03-06 08:10:08 +02:00
Gerhard
d5171854a1
edit coupon, change comma separated data structures to arrays
2014-03-06 07:59:10 +02:00
Gerhard
6ddbc7e6ee
Change comma separate data to arrays
2014-03-06 07:55:49 +02:00
Gerhard
88d6e064fa
Add missing bracket
2014-03-06 07:50:05 +02:00
Gerhard
7e73f621c8
Add coupon type check when adding new coupon
2014-03-06 07:49:01 +02:00
Gerhard
d278896d31
Fix route comments, moved coupon code filter and remove wc_clean around it, check for valid coupon types.
2014-03-06 07:45:32 +02:00
claudiosmweb
e6755972b0
fixed the inline documentation
2014-03-05 14:24:47 -03:00
Gerhard
8fdfbdf3ba
Add missing wpdb global
2014-03-05 09:42:12 +02:00
Gerhard
3bdf3e50cf
Add check for duplicate coupon code when updating coupon code
2014-03-05 09:34:01 +02:00
Gerhard
86ac5de9cf
Add filter to coupon code
2014-03-05 09:30:11 +02:00
Gerhard
db2de990e7
Modify duplicate coupon error code
2014-03-05 09:28:59 +02:00
Gerhard
f2f7e09143
Change duplicate coupon error code
2014-03-05 09:28:03 +02:00
Gerhard
826085698b
Validate coupon types
2014-03-05 09:25:11 +02:00
Gerhard
7dc7353e60
Coding standards & cleaning of data before saving
2014-03-05 08:07:42 +02:00
Gerhard
268ef2faab
Check if coupon was updated when using wp_update_post and return error if not
2014-03-05 08:03:10 +02:00
Gerhard
a2ecd3885c
edit_coupon REST API look for type and not discount_type
2014-03-05 07:59:27 +02:00
Gerhard
fa6eb98535
Rest API edit_coupon function
2014-03-05 07:43:13 +02:00
Gerhard
42d42ae751
REST API create_coupons function
2014-03-05 07:28:05 +02:00
claudiosmweb
344a0d92c6
improved the validation for WC_API_Customers::edit_customer() and WC_API_Customers::delete_customer()
2014-03-04 23:42:36 -03:00
claudiosmweb
f2d8912bc1
fixed coding standards in includes/api/class-wc-api-customers.php
2014-03-04 22:48:54 -03:00
claudiosmweb
3b4b73851b
added missing textdomain
2014-03-04 18:05:55 -03:00
claudiosmweb
41a5b147e9
improved the WP_Error's ids in customers api
2014-03-04 18:05:22 -03:00
Gerhard
a53b93283c
Fix create coupon api method
2014-03-04 17:05:38 +02:00
Gerhard
38f701e90a
Better coupon create error messages
2014-03-04 15:50:31 +02:00
Gerhard
70fb3c004d
Create coupons via API
2014-03-04 15:44:33 +02:00
claudiosmweb
ee907b0c20
removed sanitize_text_field() function in favor to wc_clean() function in customers api
2014-03-04 02:48:17 -03:00
claudiosmweb
68b8c9f020
improved the customer api creation/edition
2014-03-03 23:01:07 -03:00
claudiosmweb
4204a86022
added method do delete customers via api
2014-03-03 22:16:54 -03:00
claudiosmweb
6c4f82665e
added the woocommerce_api_edit_customer action in WC_API_Customers::edit_customer()
2014-03-03 22:09:50 -03:00
claudiosmweb
906273c20b
added the woocommerce_api_create_customer action in WC_API_Customers::create_customer()
2014-03-03 22:09:05 -03:00
claudiosmweb
f54909f715
added method to edit customer via api
2014-03-03 22:07:28 -03:00
claudiosmweb
5b95346825
fixed the customer creation via api
2014-03-03 21:41:53 -03:00
claudiosmweb
371665cd79
added route to create customers via api
2014-03-03 21:13:44 -03:00
claudiosmweb
14b63541a3
Added the WC_API_Server::urldecode_deep() method
...
To make it possible to get a more complex data structure.
Example:
array( 'data' => array( 'key' => 'value' ), 'data2' => array( 'key' => 'value' ) )
2014-03-03 21:09:11 -03:00
claudiosmweb
584bfda988
added method to create users with the api
2014-03-03 21:04:40 -03:00
Mike Jolley
439b982b48
Merge pull request #4954 from kloon/tweak_rest_api_index_pretty_permalinks
...
Add permalinks_enabled data to API index
2014-02-27 12:03:19 +00:00
Gerhard
dc65c525d0
Add permalinks_enabled data to API index
2014-02-26 07:50:51 +02:00
Max Rice
7b67161d2f
Return request relative link headers, fixes #4925
...
When WordPress is running inside of a sub-directory,
get_woocommerce_api_url() returns the domain along with the
sub-directory path, which results in a duplicate path when the API
request string is added. This commit fixes this by fetching only the
home host and adding the request path to it. set_url_scheme() is used
to set the scheme to either http or https based on the request itself
instead of basing it on whether force_ssl_checkout is enabled or not.
2014-02-25 10:24:36 +01:00
Coen Jacobs
5094d2174a
Merge pull request #4847 from kloon/master
...
Add email lookup to customers endpoint, try at #4845
2014-02-18 10:47:50 +01:00
Gerhard
a614e79ad4
update @since to 2.2
2014-02-17 19:17:40 +02:00
Gerhard
4fe3dd28fb
Move email lookup to own endpoint customers/email/<email>
2014-02-17 19:13:01 +02:00
Gerhard
5c18fab238
Add back absint to validate function for customers by id endpoint
2014-02-17 16:44:08 +02:00
Gerhard
a7e659b6fa
Review customer/<email> endpoint, move into own function
2014-02-17 16:39:56 +02:00
Gerhard
88425e64cc
Add email lookup to customers endpoint, try at 4845
2014-02-17 15:19:11 +02:00
Mike Jolley
c0c21c8364
Unify textdomains Closes #4814
2014-02-17 13:14:45 +00:00
Gerhard
30c1486aa7
REST API OAuth signature issue fix when using filter params
2014-02-14 13:26:31 +02:00
claudiosmweb
02053f2d5c
removed all the_content filter in favor to wpautop() and do_shortcode() functions
2014-02-13 02:49:30 -02:00
Gregory K
d401432428
sort_callback_params() phpdoc fix
2014-02-11 09:22:43 -05:00
claudiosmweb
bcf88933c6
fixed docblock for WC_API_Customers::query_customers, closes #4666
2014-02-07 15:39:40 -02:00
Max Rice
0b2cc1df28
Fix potential fatal error when fetching orders via API
2014-01-30 15:41:21 -05:00
Max Rice
f17a52fd3a
Make customer data for orders endpoint consistent for guest orders
...
Simply returning ‘guest’ for the customer property changes the data
type of the response from a dictionary to string which is bad for
clients that should be able to always expect a dictionary. This commit
fixes that by using the same dictionary structure as registered
customer orders, but excluding fields which aren’t applicable. Clients
can determine guest vs. registered customer orders by inspecting the
value of customer ID, which is 0 for guest orders.
2014-01-23 16:38:08 -05:00
Max Rice
37c9434492
API: Add top sellers endpoint
...
Part of #4055
2014-01-21 14:53:47 -05:00
Max Rice
49bacc6be3
Tweak code formatting
2014-01-21 14:07:22 -05:00
Max Rice
233a0a706d
API: Add customer count to each period for sales report
...
Part of #4055
2014-01-20 21:41:52 -05:00
Max Rice
7f677300eb
API: Add feature image src to product response
2014-01-13 22:14:20 -05:00
Max Rice
8b6145691c
API: Add item price to order line items response
2014-01-13 22:14:08 -05:00
Max Rice
b6dbaebe01
API: Add subtotal to orders response
2014-01-13 22:13:48 -05:00
Max Rice
497ec8186e
Fix remove filter typo
2014-01-13 22:13:37 -05:00
Mike Jolley
f504243b56
Update timestamp check Closes #4409
2014-01-08 13:40:06 +00:00