Commit Graph

18033 Commits

Author SHA1 Message Date
Justin Shreve 90b9192c0c Combine standard getters and setters into one test to reduce code. 2016-03-17 09:19:29 -07:00
Justin Shreve 60085e582a Fix some comments/spacing issues. 2016-03-17 09:19:29 -07:00
Justin Shreve f973b9d122 Make some improvements to metadata. Don't return [0] array, allow setting custom meta with a WC_Coupon method. Fix up some tests. 2016-03-17 09:19:29 -07:00
Justin Shreve 7e97ee94c1 Update deprecated and doing it wrong version numbers 2016-03-17 09:19:28 -07:00
Justin Shreve 69973d520e Update version strings 2016-03-17 09:19:28 -07:00
Justin Shreve 57f918fb03 Add Coupon REST API tests to verify nothing breaks API wise -- full set of tests even though we are just changing GET endpoints (increases test coverage) 2016-03-17 09:19:28 -07:00
Justin Shreve 5ea607e236 Handle the rest of the PR feedback:
* Run get_code through the woocommerce_coupon_code filter
* Convert expiry dates to timestamps in set_expiry_date
* Simplify product ID array explodes to get an empty array
2016-03-17 09:19:28 -07:00
Justin Shreve 0268a67c4b Address a few of the feedback items from the PR:
* Switch all coupon fields to _data
* Move coupon custom fields to _meta_data
* Shorten the 'yes' -> true checks
* Add a test for getting custom fields
2016-03-17 09:19:28 -07:00
Justin Shreve 61ae531de0 Add hooks for create, update, and delete. 2016-03-17 09:19:28 -07:00
Justin Shreve 50e1bc7117 Add tests for the getter/setter methods 2016-03-17 09:19:28 -07:00
Justin Shreve 1e8c45fba5 Fix typos in API 2016-03-17 09:19:28 -07:00
Justin Shreve 7a0c8d146b Add the ability to create coupons via code (so things like Points & Rewards will still work). 2016-03-17 09:19:27 -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 447462b274 Allow access to coupon properties directly to allow for back-compat usage, but throw a deprecated notice. Also adds a test to make sure these properties work as they should. 2016-03-17 09:19:27 -07:00
Justin Shreve d738dec05d Coupon CRUD (WIP). 2016-03-17 09:19:27 -07:00
Mike Jolley 12e23bb143 Adjust related query nesting
Fixes #10568
2016-03-17 16:02:33 +00:00
Mike Jolley 021a242e06 PDT charset conversion 2016-03-17 15:53:13 +00:00
Mike Jolley 5307f13da7 WC_data abstract compat 2016-03-17 15:22:39 +00:00
Mike Jolley 6765967be8 Add data and tostring handling to WC_Data 2016-03-17 15:22:29 +00:00
Mike Jolley 9ce1a21271 Merge pull request #10557 from justinshreve/crud
New WC_Data class with meta methods for CRUD
2016-03-17 13:49:20 +00:00
Mike Jolley 92226c78ae Merge pull request #10575 from shivapoudel/nav-tab-fix
Apply custom css for nav tag but not in h2 tag
2016-03-17 11:52:49 +00:00
Shiva Poudel 51357f8ca2 Apply custom css for nav tag but not in h2 tag, #10515
CC @mikejolley
2016-03-17 17:31:16 +05:45
Claudio Sanches 7c81119a04 [2.5] Changed CuraÇao to Curaçao 2016-03-17 02:14:17 -03:00
James Koster 42ed4e0301 adds info class to 'no saved methods' notice in the account section. 2016-03-16 19:05:00 +00:00
Claudio Sanches 631c814448 [API] Allow save image ID when saving product variations, closes #10570 2016-03-16 15:05:14 -03:00
Mike Jolley fa30a38c58 Merge pull request #10471 from brazabr/master
Implement shipping packages filters to allow multiple origins
2016-03-16 12:53:09 +00:00
Mike Jolley 34767ebe0c Bump min recommended requirements to 5.6 2016-03-16 12:42:57 +00:00
Mike Jolley 874d2e3e0a Check cookie is a string 2016-03-16 10:04:53 +00:00
Thiago Benvenuto 1847b0fab5 Adjusted since version 2016-03-15 20:31:39 -03:00
Thiago Benvenuto 180a09f52c Added docblock to filter
Removed duplicated filter

Renamed filter after shipping costs are calculated
2016-03-15 20:31:39 -03:00
Thiago Benvenuto 30a06d85df Fixed identation mistake 2016-03-15 20:31:39 -03:00
Thiago Benvenuto 7832039bb7 Implemented packages filter for marketplace 2016-03-15 20:31:39 -03:00
Justin Shreve a51e164fd7 Set versions to 2.6 2016-03-15 15:44:04 -07: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
Justin Shreve 9aff45e154 Feedback 2016-03-15 15:11:07 -07:00
Claudio Sanches 56a4df6eb5 Webhook deliveries schema 2016-03-15 19:02:13 -03:00
Mike Jolley defa1f9fb9 Merge pull request #10565 from doublesharp/master
Fixes legend->chart highlighting for coupons
2016-03-15 21:47:36 +00: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
Justin Silver ef3a5b97ef Merge remote-tracking branch 'upstream/master' 2016-03-15 13:51:49 -07:00
Justin Silver 4dec4832e1 Fix highlight series ID for coupons line from legend 2016-03-15 13:50:01 -07: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 218390071c Improve posts controller 2016-03-15 16:45:46 -03:00