HEX
Server: Apache
System: Linux andromeda.lojoweb.com 4.18.0-372.26.1.el8_6.x86_64 #1 SMP Tue Sep 13 06:07:14 EDT 2022 x86_64
User: nakedfoamlojoweb (1056)
PHP: 8.0.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/nakedfoamlojoweb/www/wp-content/plugins/woocommerce-square/includes/WC_Order_Square.php
<?php
/**
 * This class solely exists to deal with the deprecated warnings on PHP 8.2+.
 *
 * In multiple places, the plugin dynamically adds properties on the instance
 * of the \WC_Order class, which is no longer supported on PHP 8.2+
 */

namespace WooCommerce\Square;

class WC_Order_Square extends \WC_Order {
	/**
	 * Holds the Square customer ID.
	 *
	 * @var string
	 */
	public $customer_id;

	/**
	 * Holds the Square customer ID. Same as $customer_id.
	 *
	 * @var string
	 */
	public $square_customer_id;

	/**
	 * Holds payment information on the order object.
	 *
	 * @var object
	 */
	public $payment;

	/**
	 * Holds order description.
	 *
	 * @var string
	 */
	public $description;

	/**
	 * Holds a combination of order number + retry count, should provide
	 * a unique value for each transaction attempt.
	 *
	 * @var string
	 */
	public $unique_transaction_ref;

	/**
	 * Holds Square order ID.
	 *
	 * @var string
	 */
	public $square_order_id;

	/**
	 * Holds plugin version number.
	 *
	 * @var string
	 */
	public $square_version;

	/**
	 * Holds order payment total.
	 *
	 * @var float
	 */
	public $payment_total;

	/**
	 * Holds capture transaction type information.
	 *
	 * @var object
	 */
	public $capture;

	/**
	 * Holds refund order information.
	 *
	 * @var object
	 */
	public $refund;

	/**
	 * Wrapper around wc_get_order().
	 *
	 * @since 4.3.1
	 *
	 * @param mixed $the_order Post object or post ID of the order.
	 *
	 * @return bool|WC_Order|WC_Order_Refund|WC_Order_Square
	 */
	public static function wc_get_order( $the_order ) {
		return \wc_get_order( $the_order );
	}
}