PHP Interface WC_Order_Data_Store_Interface

Functions that must be defined by order store classes.
Author: WooThemes
Afficher le fichier Open project: woocommerce/woocommerce

Méthodes publiques

Méthode Description
get_download_permissions_granted ( WC_Order $order ) : boolean Gets information about whether permissions were generated yet.
get_order_count ( string $type ) : integer Return count of orders with type.
get_order_id_by_order_key ( string $order_key ) : integer Finds an Order ID based on an order key.
get_orders ( array $args = [] ) : array Get all orders matching the passed in args.
get_recorded_coupon_usage_counts ( WC_Order $order ) : boolean Gets information about whether coupon counts were updated.
get_recorded_sales ( WC_Order $order ) : boolean Gets information about whether sales were recorded.
get_total_refunded ( $order ) : string Get amount already refunded.
get_total_shipping_refunded ( $order ) : float Get the total shipping refunded.
get_total_tax_refunded ( $order ) : float Get the total tax refunded.
get_unpaid_orders ( $date ) : array Get unpaid orders after a certain date,
search_orders ( string $term ) : array Search order data for a term and return ids.
set_download_permissions_granted ( WC_Order $order, boolean $set ) Stores information about whether permissions were generated yet.
set_recorded_coupon_usage_counts ( WC_Order $order, boolean $set ) Stores information about whether coupon counts were updated.
set_recorded_sales ( WC_Order $order, boolean $set ) Stores information about whether sales were recorded.

Method Details

get_download_permissions_granted() public méthode

Gets information about whether permissions were generated yet.
public get_download_permissions_granted ( WC_Order $order ) : boolean
$order WC_Order
Résultat boolean

get_order_count() public méthode

Return count of orders with type.
public get_order_count ( string $type ) : integer
$type string
Résultat integer

get_order_id_by_order_key() public méthode

Finds an Order ID based on an order key.
public get_order_id_by_order_key ( string $order_key ) : integer
$order_key string An order key has generated by
Résultat integer The ID of an order, or 0 if the order could not be found

get_orders() public méthode

Get all orders matching the passed in args.
See also: wc_get_orders()
public get_orders ( array $args = [] ) : array
$args array
Résultat array of orders

get_recorded_coupon_usage_counts() public méthode

Gets information about whether coupon counts were updated.
public get_recorded_coupon_usage_counts ( WC_Order $order ) : boolean
$order WC_Order
Résultat boolean

get_recorded_sales() public méthode

Gets information about whether sales were recorded.
public get_recorded_sales ( WC_Order $order ) : boolean
$order WC_Order
Résultat boolean

get_total_refunded() public méthode

Get amount already refunded.
public get_total_refunded ( $order ) : string
Résultat string

get_total_shipping_refunded() public méthode

Get the total shipping refunded.
public get_total_shipping_refunded ( $order ) : float
Résultat float

get_total_tax_refunded() public méthode

Get the total tax refunded.
public get_total_tax_refunded ( $order ) : float
Résultat float

get_unpaid_orders() public méthode

Get unpaid orders after a certain date,
public get_unpaid_orders ( $date ) : array
Résultat array

search_orders() public méthode

Search order data for a term and return ids.
public search_orders ( string $term ) : array
$term string
Résultat array of ids

set_download_permissions_granted() public méthode

Stores information about whether permissions were generated yet.
public set_download_permissions_granted ( WC_Order $order, boolean $set )
$order WC_Order
$set boolean

set_recorded_coupon_usage_counts() public méthode

Stores information about whether coupon counts were updated.
public set_recorded_coupon_usage_counts ( WC_Order $order, boolean $set )
$order WC_Order
$set boolean

set_recorded_sales() public méthode

Stores information about whether sales were recorded.
public set_recorded_sales ( WC_Order $order, boolean $set )
$order WC_Order
$set boolean