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
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
Max Rice
2b0a75cbd6
Fix warning when accessing coupons created in pre-2.1 installs
2013-12-10 17:31:41 -05:00
Coen Jacobs
c1a439eb99
Formatting functions woocommerce to wc refactor
2013-11-25 14:34:21 +01:00
Max Rice
017e7cee1d
Add permissions for count endpoints
2013-11-23 17:11:16 -05:00
Max Rice
0be58b3390
Normalize response data types
...
Part of #4055
2013-11-23 16:36:56 -05:00
Max Rice
3bc8fae631
Remove PUT/DELETE endpoints
...
Will be implemented in 2.2
Part of #4055
2013-11-23 15:01:53 -05:00
Max Rice
3f07b8be77
Specify 2 decimal places for woocommerce_format_decimal()
...
Part of #4055
2013-11-23 14:40:31 -05:00
Max Rice
d7c77d1ab7
API: Add XML generation
...
This commit completes the XML response handler and adjusts the output
format for all resources to include a top-level property that encloses
the response. This is more consistent with the multi-resource (e.g. GET
/orders) response.
Part of #4165
2013-11-22 03:41:32 -05:00
Max Rice
490dc758a9
Update pagination args/headers
...
Part of #4055
2013-11-18 21:06:45 -05:00
Max Rice
87ff36db12
Properly handle datetimes
...
Part of #4055
2013-11-18 16:47:38 -05:00
Max Rice
5ab8e085ad
Update /coupons/code endpoint
...
Part of #4055
2013-11-14 13:56:05 -05:00
Max Rice
709f0da16f
Improve response filters
...
Part of #4055
2013-11-14 12:48:20 -05:00
Max Rice
a13a95e452
Update API resource classes
...
Change method naming to snake_case and implement initial
`current_user_can()` permission checks
2013-11-10 19:29:36 -05:00
Max Rice
23e6b22cfd
Rename API base resource class
2013-11-09 16:20:23 -05:00
Max Rice
c3fa52b0b5
Update API classes to use new WC_API_Server class
2013-11-06 01:54:19 -05:00
Max Rice
e219585974
Add initial versions of REST API resource classes
2013-11-04 01:36:31 -05:00