Skip to content

Commit

Permalink
Return refund in action
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaymo committed Oct 28, 2024
1 parent 4c7a6b4 commit 7beb895
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inc/api/order-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

namespace Mollie\WooCommerce\Inc\Api;

use Mollie\Api\Resources\Refund;
use Mollie\WooCommerce\PluginApi\MolliePluginApi;
use WC_Order;

Expand All @@ -35,7 +36,7 @@ function mollie_capture_order(WC_Order $wc_order): void
* @param WC_Order $wc_order The WC order.
* @param float $amount The refund amount.
* @param string $reason The reason for the refund.
* @return \WP_Error|bool The result of the refund operation.
* @return \WP_Error|Refund The result of the refund operation.
*/
function mollie_refund_order(WC_Order $wc_order, float $amount, string $reason = '')
{
Expand Down

0 comments on commit 7beb895

Please sign in to comment.