Commit Graph

144 Commits

Author SHA1 Message Date
Claudio Sanches 31f68377f9 Fixed docblock 2017-02-16 22:25:20 -02:00
Claudio Sanches 687433d5cc Use CRUD Controller for orders 2017-02-16 21:15:34 -02:00
Claudio Sanches 666d1f3c06 Prevent PHP notices while saving meta_data without an id 2017-02-16 01:44:45 -02:00
Claudio Sanches a19fa78cef Fixed orders get_collection_params() 2017-02-16 01:10:41 -02:00
Claudio Sanches eaf492a7f1 Fixed orders v2 schema 2017-02-16 01:08:02 -02:00
Claudio Sanches 5c0046b325 Do not allow save meta_data in orders v1 2017-02-16 00:33:17 -02:00
Claudio Sanches 2d0a479750 Updated v1 methods 2017-02-16 00:22:15 -02:00
Claudio Sanches bad93d4c86 Improved naming for meta_data in schema 2017-02-15 12:28:45 -02:00
Claudio Sanches 4352484ed7 REST API v2 2017-02-09 15:06:13 -02:00
Mike Jolley eb150724c4 Make sure calculations are redone after setting line items
Closes #13075
2017-02-08 17:23:40 +00:00
Mike Jolley 82d7fe6e73 Added more missing args and types 2017-01-26 20:33:39 +00:00
Mike Jolley b727c61da7 Missing arg and setting types 2017-01-26 20:06:18 +00:00
Mike Jolley 2d23705431 ID arg definitions 2017-01-26 19:22:57 +00:00
Claudio Sanches cdf59d6f68 E[REST API] Use WC_Data_Exception->getErrorData 2017-01-23 17:32:33 -02:00
Mike Jolley 859727d462 Merge pull request #12678 from franticpsyx/rest-api-set-order-item-action
[2.7] Add 'woocommerce_rest_set_order_item' REST API hook
2016-12-23 14:18:31 +00:00
Manos Psychogyiopoulos 42e09eac32 make rest api order item totals - always excl tax 2016-12-22 19:23:07 +02:00
Manos Psychogyiopoulos 0d6eae5fca add 'woocommerce_rest_set_order_item' hook 2016-12-22 17:56:14 +02:00
Manos Psychogyiopoulos dae45b8a29 fix paren position 2016-12-22 14:10:36 +02:00
Manos Psychogyiopoulos 6fc59cf2dc set REST order item meta 2016-12-22 12:29:57 +02:00
Justin Shreve da1e14c087 Add WC CLI commands powered by the REST API. 2016-12-08 10:59:07 -08:00
Mike Jolley 4bacbaf90c Fix completed and paid date meta keys. 2016-12-08 11:19:32 +00:00
Mike Jolley e8d119c42c Feedback 2016-12-07 18:13:17 +00:00
Mike Jolley 7f234a0b63 Update array schema 2016-12-07 14:24:44 +00:00
Mike Jolley d4fbda1d68 Put back array for arrays of objects 2016-12-07 12:20:56 +00:00
Mike Jolley ba62599da0 Use objects, rather than arrays in schema when properties are defined 2016-12-07 11:36:46 +00:00
Rami Yushuvaev 93d55dade9 add translators comments 2016-10-29 20:32:38 +03:00
Rami Yushuvaev 83e938af1e i18n: Merge similar translation strings to reduce the total strings count #11905 2016-10-11 04:39:13 +03:00
Claudio Sanches c62c5b835e Updated values to check if line item is null 2016-10-04 13:39:37 -03:00
Justin Shreve c1d7111240 Implement separate variation endpoints for managing a product's variations. Also adds tests. 2016-09-29 14:44:14 -07:00
Aristeides Stathopoulos 831b4463d0 Merge pull request #5 from woothemes/master
sync
2016-09-09 16:49:48 +03:00
Justin Shreve e1e6c682b5 * Stop using _ as a prefix for protected or private vars and functions. We have a keyword for that.
* Introduces set_id and get_id to WC_Data for the CRUD classes to share
2016-09-09 05:36:54 -07:00
Aristeides Stathopoulos 9668247b95 WordPress.PHP.YodaConditions.NotYoda 2016-09-09 03:14:28 +03:00
Aristeides Stathopoulos 72696901f3 WordPress.WhiteSpace.OperatorSpacing.SpacingAfter 2016-08-27 09:14:06 +03:00
Aristeides Stathopoulos 6c30f84fa2 WordPress.Arrays.ArrayKeySpacingRestrictions.SpacesAroundArrayKeys 2016-08-27 06:23:21 +03:00
Claudio Sanches 38e1be71eb ID first for all elements in the REST API
cc @mikejolley
2016-08-22 16:58:34 -03:00
Claudio Sanches 0da91bb7d7 Merge pull request #11746 from woothemes/crud-meta-id
Swaps meta_id for id across crud and api
2016-08-22 16:43:57 -03:00
Mike Jolley f34f1aa635 Simplify prepare_line_items logic 2016-08-22 19:58:30 +01:00
Mike Jolley 39f4a1cdca Swaps meta_id for id across crud and api 2016-08-22 19:37:34 +01:00
Mike Jolley fdd7e797ba API get refunds 2016-08-22 13:15:15 +01:00
Mike Jolley 9e45927803 Create refund with crud 2016-08-22 13:15:15 +01:00
Mike Jolley 03110e755f Unit tests 2016-08-18 17:24:44 +01:00
Mike Jolley f1e517130a Feedback from @claudiosmweb 2016-08-18 13:30:10 +01:00
Mike Jolley 7852eecb06 Fix get param usage 2016-08-17 17:25:29 +01:00
Mike Jolley 709dec9ef1 Create and update handling 2016-08-17 16:53:01 +01:00
Mike Jolley b4599d9254 Schema update 2016-08-17 11:44:39 +01:00
Mike Jolley 92ebb933b4 Finish order get 2016-08-16 15:18:16 +01:00
Mike Jolley 3e88ec1f20 Product formatting 2016-08-16 14:49:30 +01:00
Mike Jolley b64c55de49 Format item meta 2016-08-16 13:55:10 +01:00
Mike Jolley 3f08d116d8 Start using crud for order requests 2016-08-15 17:27:33 +01:00
Mike Jolley 9138d8a9e1 order api notices 2016-08-15 16:56:55 +01:00
Mike Jolley 23e13fbfa6 created_via 2016-08-15 11:29:29 +01:00
Mike Jolley f3651a9881 Fix user agent calls 2016-08-12 12:53:09 +01:00
Mike Jolley f4a4f6c361 Reduce stock and other notices 2016-08-09 14:15:04 +01:00
Mike Jolley 7b0d9a3e61 IP and notes 2016-08-08 16:24:16 +01:00
Mike Jolley 6bf05396c2 date_paid 2016-08-05 16:14:30 +01:00
Mike Jolley b8bf05df11 get_user_agent 2016-08-05 16:10:45 +01:00
Mike Jolley 0a0330bac0 customer_user 2016-08-05 16:09:40 +01:00
Mike Jolley 7685587b22 payment_method 2016-08-05 16:04:41 +01:00
Mike Jolley 8d3b4bc5a4 payment_method_title 2016-08-05 15:59:55 +01:00
Mike Jolley 39b4831e95 get_id 2016-08-05 15:56:23 +01:00
Mike Jolley 9181c107a8 get_currency 2016-08-05 15:49:17 +01:00
Enrico Deleo 2dede356d3 remove a line item if quantity is zero 2016-07-26 15:15:09 +02:00
Claudio Sanches 4ed8d46867 [REST API] Make easy to update order line items #11450 2016-07-19 14:11:44 -03: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 c7579c5f0b [REST API] Add "number" property to orders endpoint, closes #11250 2016-06-27 21:53:08 -03:00
JLuis Freitas 3948fcf4c7 [REST API] incorrect key on saving post_meta 2016-06-17 19:07:06 +01: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 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 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
Claudio Sanches d205c2e85f [REST API] Include refunds data into orders endpoint 2016-06-02 16:05:08 -03:00
Claudio Sanches b582febda0 [REST API] Fixed orders date_completed 2016-05-30 19:45:14 -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 8a62aedad4 Fixed docblocks #10978 2016-05-25 13:27:20 -03: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 2b1d4eced6 [REST API] Allow batch create, update and delete for almost all endpoints 2016-05-11 16:34:53 -03:00
Claudio Sanches 92da79ce76 Changed $namespace from public to protected 2016-03-31 15:25:31 -03:00
Claudio Sanches 7dcfcc9dfc Allow filter orders by product 2016-03-30 20:26:51 -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 f4012b7f1f Reviewed post permissions 2016-03-30 11:17:16 -03:00
Claudio Sanches a16b32825f Fixed rest functions names 2016-03-29 19:54:37 -03:00
Claudio Sanches 8219cee256 Added methods to list and get products 2016-03-29 17:20:15 -03:00
Claudio Sanches 90bdabcf41 Added methods to list and get order refunds 2016-03-28 16:41:17 -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