f17a52fd3a
Simply returning ‘guest’ for the customer property changes the data type of the response from a dictionary to string which is bad for clients that should be able to always expect a dictionary. This commit fixes that by using the same dictionary structure as registered customer orders, but excluding fields which aren’t applicable. Clients can determine guest vs. registered customer orders by inspecting the value of customer ID, which is 0 for guest orders. |
||
---|---|---|
.. | ||
class-wc-api-authentication.php | ||
class-wc-api-coupons.php | ||
class-wc-api-customers.php | ||
class-wc-api-json-handler.php | ||
class-wc-api-orders.php | ||
class-wc-api-products.php | ||
class-wc-api-reports.php | ||
class-wc-api-resource.php | ||
class-wc-api-server.php | ||
class-wc-api-xml-handler.php | ||
interface-wc-api-handler.php |