Mike Jolley
1bac579df7
Date getters and setters
2017-03-13 19:52:44 +00:00
Mike Jolley
e5c753e757
Merge pull request #13557 from woocommerce/fix-13526-admin
...
Keep date compatibility in WC_Ajax::get_customer_details()
2017-03-13 16:05:17 +00:00
Mike Jolley
d2bd1a422c
Merge pull request #13555 from woocommerce/fix-13526-rest-api
...
Update date usage in REST API v1 and v2
2017-03-13 16:04:38 +00:00
Mike Jolley
0098595339
Merge pull request #13554 from woocommerce/fix-13526-legacy-api
...
Fix dates in customer legacy endpoints
2017-03-13 15:59:02 +00:00
Mike Jolley
bee1d6f915
Merge pull request #13551 from woocommerce/orders-api-data
...
Revert order of items on Orders and Refunds endpoints
2017-03-13 15:58:13 +00:00
Claudio Sanches
98d26521d1
Keep date compatibility in WC_Ajax::get_customer_details()
2017-03-10 20:13:56 -03:00
Claudio Sanches
5b798332d2
Updated customer REST API unit tests
2017-03-10 19:51:33 -03:00
Claudio Sanches
3fbb8415d6
Change to single quotes
2017-03-10 19:14:28 -03:00
Claudio Sanches
8cefbd7c08
Added and fixed date properties for customers v2 endpoint
2017-03-10 19:10:41 -03:00
Claudio Sanches
7fb4340747
Updated dates for customers in REST API v1
2017-03-10 19:00:36 -03:00
Claudio Sanches
c6fa88bde8
Both $server-format_datetime() variables are false by default
2017-03-10 18:15:05 -03:00
Claudio Sanches
c353241599
Fixed dates in customer legacy endpoints
2017-03-10 18:10:03 -03:00
Claudio Sanches
b36fea1ce5
[REST API] Use the same order as schema for refunds response
2017-03-10 17:26:36 -03:00
Claudio Sanches
65ed14635e
Change bback $item to $data
2017-03-10 17:22:38 -03:00
Claudio Sanches
4ea40d997b
[REST API] Improved order of items in Orders endpoint schema
2017-03-10 17:20:27 -03:00
Claudio Sanches
cf1ae98011
Merge pull request #13549 from woocommerce/order-date-functions
...
Order date functions
2017-03-10 16:40:40 -03:00
Mike Jolley
aac2e6a39c
Refund schema
2017-03-10 19:30:07 +00:00
Mike Jolley
e6752932dd
Sort
2017-03-10 19:05:32 +00:00
Mike Jolley
2c59a6a86f
Fix test
2017-03-10 18:59:55 +00:00
Mike Jolley
61484ed711
Update API endpoints
2017-03-10 18:54:59 +00:00
Mike Jolley
53962f1143
Other date_date call replacements
2017-03-10 16:43:05 +00:00
Mike Jolley
8ab839a030
Replace template usage of dates
2017-03-10 16:35:47 +00:00
Mike Jolley
84a1f0f92b
wc_rest_prepare_date_response handling for WC_DateTime
2017-03-10 16:30:32 +00:00
Mike Jolley
8e169ede98
Legacy handling
2017-03-10 16:30:06 +00:00
Mike Jolley
339b1b7aab
Set dates based on UTC
2017-03-10 16:29:52 +00:00
Mike Jolley
804573028d
wc_format_datetime function
2017-03-10 16:29:42 +00:00
Mike Jolley
05e6c506ce
Email dates
2017-03-10 16:29:15 +00:00
Mike Jolley
69cc8f5150
API dates
2017-03-10 16:28:50 +00:00
Mike Jolley
6ec06ef0db
Update tests
2017-03-10 14:52:41 +00:00
Mike Jolley
c2339e1983
Data store read
2017-03-10 14:48:18 +00:00
Mike Jolley
bdc302a9fb
Data store write
2017-03-10 14:44:00 +00:00
Mike Jolley
89fab41440
date_{paid|completed} getters and setters.
2017-03-10 14:25:40 +00:00
Mike Jolley
320cf818a5
Merge pull request #13539 from woocommerce/uses-gmdate-customer-last-update
...
Use GMT/UTC+0 when update customer last_update
2017-03-10 12:24:02 +00:00
Mike Jolley
c162415fac
Merge pull request #13538 from woocommerce/customers-created-modified-date
...
Apply WC_DateTime to WC_Customer
2017-03-10 10:48:46 +00:00
Claudio Sanches
dbbe4617ee
Do not force integer since will be saved as string by WordPress
2017-03-10 01:58:57 -03:00
Claudio Sanches
948963f5c7
Uses GMT/UTC+0 when update customer lastt_update
2017-03-10 01:57:53 -03:00
Claudio Sanches
23b575aebe
Fixed customer CRUD unit tests
2017-03-10 01:53:06 -03:00
Claudio Sanches
4f1577fb27
Added support new WC_DateTime in WC_Customer
2017-03-10 01:20:33 -03:00
Mike Jolley
6848fad224
Merge branch 'timezone-poc' into fix-13498
2017-03-09 16:10:07 +00:00
Mike Jolley
92f989d8ac
Merge pull request #13528 from woocommerce/fix/legacy-get-item-downloads
...
Fix legacy get item downloads
2017-03-09 13:26:54 +00:00
Mike Jolley
a5c10d07c1
Fix is_purchasable (requires save) when price is null
...
Fixes #13043
2017-03-09 13:26:12 +00:00
Boro Sitnikovski
deae95b678
Updates after PR review
2017-03-09 12:55:33 +01:00
Mike Jolley
d811317a1f
Merge pull request #13511 from franticpsyx/fix-price-incl-excl-tax-zero-empty-inputs
...
[2.7] Unexpected wc_get_price_{in/ex}cluding tax behavior with zero/empty inputs
2017-03-09 11:46:39 +00:00
Mike Jolley
a185e57ccb
Admin panel should not hide _ meta.
...
Fixes #13510
2017-03-09 11:45:22 +00:00
Boro Sitnikovski
6c967697d9
Fix legacy get item downloads
2017-03-09 12:41:25 +01:00
Mike Jolley
a598baaf9e
date helper methods
2017-03-09 11:06:36 +00:00
Mike Jolley
09c75cd814
More tests
2017-03-09 11:05:54 +00:00
Mike Jolley
ee713f82cc
Merge pull request #13519 from ragulka/fix-legacy-api
...
Set order id for items & fix fee title sanitazing on legacy API
2017-03-09 09:52:12 +00:00
Illimar Tambek
21a54b93d8
Use wc_clean to sanitize fee title in legacy apis
...
This will bring legacy APIs in line with the new REST API, where the
order item names are sanitized using wc_clean and fix the
backwards-incompatible change of using sanitize_title.
2017-03-09 11:00:35 +02:00
Illimar Tambek
8e81a7e4e0
Set order id for fees & shipping on legacy api
...
If order ID is not set, the item will be created, but will not be
associated with the order being updated.
2017-03-09 10:53:10 +02:00