Removed extra )
This commit is contained in:
parent
073c924b98
commit
a8a5763b47
|
@ -116,9 +116,9 @@ class WC_API_Orders extends WC_API_Resource {
|
|||
$order_data = array(
|
||||
'id' => $order->get_id(),
|
||||
'order_number' => $order->get_order_number(),
|
||||
'created_at' => $this->server->format_datetime( $order->get_date_created(), false, true ) ),
|
||||
'updated_at' => $this->server->format_datetime( $order->get_date_modified(), false, true ) ),
|
||||
'completed_at' => $this->server->format_datetime( $order->get_date_completed(), false, true ) ),
|
||||
'created_at' => $this->server->format_datetime( $order->get_date_created(), false, true ),
|
||||
'updated_at' => $this->server->format_datetime( $order->get_date_modified(), false, true ),
|
||||
'completed_at' => $this->server->format_datetime( $order->get_date_completed(), false, true ),
|
||||
'status' => $order->get_status(),
|
||||
'currency' => $order->get_currency(),
|
||||
'total' => wc_format_decimal( $order->get_total(), 2 ),
|
||||
|
|
|
@ -156,9 +156,9 @@ class WC_API_Orders extends WC_API_Resource {
|
|||
$order_data = array(
|
||||
'id' => $order->get_id(),
|
||||
'order_number' => $order->get_order_number(),
|
||||
'created_at' => $this->server->format_datetime( $order->get_date_created(), false, true ) ),
|
||||
'updated_at' => $this->server->format_datetime( $order->get_date_modified(), false, true ) ),
|
||||
'completed_at' => $this->server->format_datetime( $order->get_date_completed(), false, true ) ),
|
||||
'created_at' => $this->server->format_datetime( $order->get_date_created(), false, true ),
|
||||
'updated_at' => $this->server->format_datetime( $order->get_date_modified(), false, true ),
|
||||
'completed_at' => $this->server->format_datetime( $order->get_date_completed(), false, true ),
|
||||
'status' => $order->get_status(),
|
||||
'currency' => $order->get_currency(),
|
||||
'total' => wc_format_decimal( $order->get_total(), $dp ),
|
||||
|
@ -1534,7 +1534,7 @@ class WC_API_Orders extends WC_API_Resource {
|
|||
|
||||
$order_refund = array(
|
||||
'id' => $refund->id,
|
||||
'created_at' => $this->server->format_datetime( $refund->get_date_created(), false, true ) ),
|
||||
'created_at' => $this->server->format_datetime( $refund->get_date_created(), false, true ),
|
||||
'amount' => wc_format_decimal( $refund->get_amount(), 2 ),
|
||||
'reason' => $refund->get_reason(),
|
||||
'line_items' => $line_items,
|
||||
|
|
|
@ -162,9 +162,9 @@ class WC_API_Orders extends WC_API_Resource {
|
|||
'id' => $order->get_id(),
|
||||
'order_number' => $order->get_order_number(),
|
||||
'order_key' => $order->get_order_key(),
|
||||
'created_at' => $this->server->format_datetime( $order->get_date_created(), false, true ) ),
|
||||
'updated_at' => $this->server->format_datetime( $order->get_date_modified(), false, true ) ),
|
||||
'completed_at' => $this->server->format_datetime( $order->get_date_completed(), false, true ) ),
|
||||
'created_at' => $this->server->format_datetime( $order->get_date_created(), false, true ),
|
||||
'updated_at' => $this->server->format_datetime( $order->get_date_modified(), false, true ),
|
||||
'completed_at' => $this->server->format_datetime( $order->get_date_completed(), false, true ),
|
||||
'status' => $order->get_status(),
|
||||
'currency' => $order->get_currency(),
|
||||
'total' => wc_format_decimal( $order->get_total(), $dp ),
|
||||
|
@ -1579,7 +1579,7 @@ class WC_API_Orders extends WC_API_Resource {
|
|||
|
||||
$order_refund = array(
|
||||
'id' => $refund->id,
|
||||
'created_at' => $this->server->format_datetime( $refund->get_date_created(), false, true ) ),
|
||||
'created_at' => $this->server->format_datetime( $refund->get_date_created(), false, true ),
|
||||
'amount' => wc_format_decimal( $refund->get_amount(), 2 ),
|
||||
'reason' => $refund->get_reason(),
|
||||
'line_items' => $line_items,
|
||||
|
|
Loading…
Reference in New Issue