[2.4] [API] Added refunded_item_id on GET orders/<id>/refunds endpoint, closes #9196
This commit is contained in:
parent
bd8a1557bb
commit
06d31d1f86
|
@ -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'],
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -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'],
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue