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