Claudio Sanches
eedc8c57e5
Improved class description
2018-03-21 00:50:30 -03:00
Mike Jolley
f6dc960e46
phpcs
2018-03-19 18:09:13 +00:00
Mike Jolley
da0bda4a04
Add refunded payment prop after an API refund succeeds.
2017-12-15 16:23:26 +00:00
Claudio Sanches
59c2849736
Changed version 2.7 to 3.0
2017-03-15 13:36:53 -03:00
Brent Shepherd
010a208e88
Merge WC_Data::$extra_data in WC_Data::__construct
...
Rather than requiring child classes to merge it as well as define it.
If it's not defined in a child class, then the merge call will have no
effect as it will be an the empty array set in WC_Data, if they do define
it, WC_Data will now take care of it automatically rather than requiring
manually merging it in the child class's constructor before it has any
effect on that objects data.
This helps reduce duplicate code by removing this from child classes, and
in some cases, being able to remove the child constructor definitions
entirely. It also avoids a gotcha for developers setting their own
$extra_data values only to find they aren't being set on the $data
property.
2017-02-01 12:48:27 -08:00
Mike Jolley
20680203bb
Add actions for all object types
2016-12-19 17:09:52 +00:00
Mike Jolley
d7dfdd3d10
Wrap all deprecation calls.
2016-11-23 16:15:00 +00:00
Justin Shreve
174aa38be6
Start moving meta to normal stores, instead of a separate meta store.
2016-11-22 04:05:05 -08:00
Mike Jolley
1fdfd02766
Use extra_data
2016-11-21 14:20:29 +00:00
Mike Jolley
c933f82961
Refunds
2016-11-17 16:53:13 +00:00
Justin Shreve
1797c76a14
Implement WC_Data_Store and related code & tests.
2016-11-08 01:39:47 -08: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
Mike Jolley
311c540662
Merge pull request #11833 from aristath/master
...
Coding Standards (2nd pass)
2016-09-07 10:14:17 +01:00
Mike Jolley
3f9ab31461
Fix CRUD refunds
2016-09-07 10:04:56 +01:00
Aristeides Stathopoulos
fde1037757
fix failing tests.
2016-09-01 23:50:14 +03:00
Aristeides Stathopoulos
17961f6484
WordPress.Arrays.ArrayDeclaration.ValueNoNewline
2016-08-27 06:04:10 +03:00
Mike Jolley
9bd57414c5
Remove set and get prop - no longer need the extra overhead since functions won't return wp_error now.
2016-08-26 10:48:17 +01:00
Mike Jolley
3637814b92
Revert use of default_data for default args and just set that in constructor
2016-08-25 13:31:03 +01:00
Mike Jolley
25883f8687
Set_props helper to load data from DB and handle errors
2016-08-25 13:05:27 +01:00
Mike Jolley
d9798f7226
Set reading to prevent exceptions during DB load
2016-08-24 14:37:19 +01:00
Mike Jolley
53f01b52a8
Bring back WC_Data_Exception
2016-08-24 10:46:29 +01:00
Mike Jolley
b727acd96e
Implement get and set prop methods
2016-08-23 18:48:48 +01:00
Mike Jolley
2636d04ba6
Setters
2016-08-23 15:25:50 +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
46439ddba5
Refund unit tests
2016-06-22 16:31:05 +01:00
Mike Jolley
f70e05441b
refund class
2016-06-21 20:06:56 +01:00
Nicola Mustone
c9da4f928a
check if ABSPATH is defined
2015-11-06 10:22:19 +01:00
Claudio Sanches
5893875b0c
Removed period for file headers
2015-11-03 11:53:50 -02:00
Claudio Sanches
ee30b5b308
Fixed php docs standards
2015-11-03 11:31:20 -02:00
Claudio Sanches
9e41552342
Removed all "@return void"
2015-07-16 16:55:48 -03:00
davidlenehan
8b02b02145
Add email notification for partial refunds
...
fixes #8278
Emails are now sent to the customer when a partial refund is issued. I
referenced #7785 when doing this.
When a full refund happens the email the customer receives is clear
enough that they are getting a full refund. However I thought it would
be useful to add a new line in these new partial refund emails that
states exactly the value of the partial refund as it may not be that
clear.
2015-06-17 15:35:54 +01:00
Barry Kooij
14598bfd40
Typos
2015-02-11 15:16:36 +01:00
Mike Jolley
55baf7b60a
Missing properties
2015-02-03 15:55:51 +00:00
Mike Jolley
fef41c149c
@uses WP_POST
2015-01-15 15:03:12 +00:00
claudiosmweb
223957089e
fixed the new WC_Order_Refund::init()
2014-10-14 10:46:30 -03:00
Mike Jolley
4954020877
Correct refund's init function
2014-10-14 14:31:31 +01:00
Mike Jolley
e03cf9c204
Set order_type property, and move actual order loading to separate method to make it easier for sub-classes to handle just that process.
...
Closes #6513
2014-10-14 14:25:53 +01:00
shivapoudel
5f05a78669
Line and indendation fix
2014-09-21 00:39:33 +05:45
claudiosmweb
03d9ab0c81
created initial methods for WC_Order_Refund class
2014-07-08 15:22:58 -03:00
claudiosmweb
09cb28a7bb
created initial refund class and function
2014-07-08 11:32:47 -03:00