PluginProbe
seQura / 3.0.2
seQura v3.0.2
4.3.4 4.3.3 4.3.2 4.3.1 trunk 2.0.0 2.0.10 2.0.11 2.0.12 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 3.0.0 3.0.2 3.0.5 3.0.6 3.0.7 3.1.0 3.1.1 3.2.0 3.2.1 3.2.2 4.0.0 All 30 releases
sequra / src / Controllers / Hooks / Order / interface-order-controller.php

interface-order-controller.php in seQura 3.0.2, at src/Controllers/Hooks/Order/interface-order-controller.php

44 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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