[2.4] [API] Added refunded_item_id on GET orders/<id>/refunds endpoint, closes #9196

This commit is contained in:
Claudio Sanches 2015-09-22 14:37:11 -03:00
parent bd8a1557bb
commit 06d31d1f86
2 changed files with 26 additions and 24 deletions

View File

@ -1575,6 +1575,7 @@ class WC_API_Orders extends WC_API_Resource {
'product_id' => ( isset( $product->variation_id ) ) ? $product->variation_id : $product->id,
'sku' => is_object( $product ) ? $product->get_sku() : null,
'meta' => $item_meta,
'refunded_item_id' => (int) $item['refunded_item_id'],
);
}

View File

@ -1566,6 +1566,7 @@ class WC_API_Orders extends WC_API_Resource {
'product_id' => ( isset( $product->variation_id ) ) ? $product->variation_id : $product->id,
'sku' => is_object( $product ) ? $product->get_sku() : null,
'meta' => $item_meta,
'refunded_item_id' => (int) $item['refunded_item_id'],
);
}