[API] Fixed the refunds returned data

This commit is contained in:
Claudio Sanches 2015-01-26 19:24:54 -02:00
parent c995f23354
commit cd88ac0d72
1 changed files with 1 additions and 1 deletions

View File

@ -1449,7 +1449,7 @@ class WC_API_Orders extends WC_API_Resource {
$order_refund = array( $order_refund = array(
'id' => $refund->id, 'id' => $refund->id,
'date' => $this->server->format_datetime( $refund->date ), 'created_at' => $this->server->format_datetime( $refund->date ),
'amount' => wc_format_decimal( $refund->get_refund_amount(), 2 ), 'amount' => wc_format_decimal( $refund->get_refund_amount(), 2 ),
'reason' => $refund->get_refund_reason(), 'reason' => $refund->get_refund_reason(),
'line_items' => $line_items 'line_items' => $line_items