|
@@ 1617-1619 (lines=3) @@
|
| 1614 |
|
*/ |
| 1615 |
|
public function create_order_refund( $order_id, $data, $api_refund = true ) { |
| 1616 |
|
try { |
| 1617 |
|
if ( ! isset( $data['order_refund'] ) ) { |
| 1618 |
|
throw new WC_API_Exception( 'woocommerce_api_missing_order_refund_data', sprintf( __( 'No %1$s data specified to create %1$s', 'woocommerce' ), 'order_refund' ), 400 ); |
| 1619 |
|
} |
| 1620 |
|
|
| 1621 |
|
$data = $data['order_refund']; |
| 1622 |
|
|
|
@@ 1694-1696 (lines=3) @@
|
| 1691 |
|
*/ |
| 1692 |
|
public function edit_order_refund( $order_id, $id, $data ) { |
| 1693 |
|
try { |
| 1694 |
|
if ( ! isset( $data['order_refund'] ) ) { |
| 1695 |
|
throw new WC_API_Exception( 'woocommerce_api_missing_order_refund_data', sprintf( __( 'No %1$s data specified to edit %1$s', 'woocommerce' ), 'order_refund' ), 400 ); |
| 1696 |
|
} |
| 1697 |
|
|
| 1698 |
|
$data = $data['order_refund']; |
| 1699 |
|
|