| 1 |
<?php |
| 2 |
/** |
| 3 |
* Order interface |
| 4 |
* |
| 5 |
* @package SeQura/WC |
| 6 |
* @subpackage SeQura/WC/Controllers |
| 7 |
*/ |
| 8 |
|
| 9 |
namespace SeQura\WC\Controllers\Hooks\Order; |
| 10 |
|
| 11 |
use WC_Order; |
| 12 |
use WC_Order_Data_Store_CPT; |
| 13 |
|
| 14 |
/** |
| 15 |
* Handle hooks related to order management |
| 16 |
*/ |
| 17 |
interface Interface_Order_Controller { |
| 18 |
|
| 19 |
/** |
| 20 |
* Add support to custom meta query vars for the order query |
| 21 |
* |
| 22 |
* @param array $wp_query_args Args for WP_Query. |
| 23 |
* @param array $query_vars Query vars from WC_Order_Query. |
| 24 |
* @param WC_Order_Data_Store_CPT $order_data_store WC_Order_Data_Store instance. |
| 25 |
* @return array modified $query |
| 26 |
*/ |
| 27 |
public function handle_custom_query_vars( array $wp_query_args, array $query_vars, $order_data_store ): array; |
| 28 |
|
| 29 |
/** |
| 30 |
* Trigger the sync of the order status with SeQura |
| 31 |
*/ |
| 32 |
public function handle_order_status_changed( int $order_id, string $old_status, string $new_status, WC_Order $order ): void; |
| 33 |
|
| 34 |
/** |
| 35 |
* Display notices related to an order |
| 36 |
*/ |
| 37 |
public function display_notices(): void; |
| 38 |
|
| 39 |
/** |
| 40 |
* Show a link to the seQura back office in the order details page |
| 41 |
*/ |
| 42 |
public function show_link_to_sequra_back_office( WC_Order $order ): void; |
| 43 |
} |
| 44 |
|