woocommerce/includes/data-stores/interfaces/wc-order-data-store-interfa...

40 lines
680 B
PHP
Raw Normal View History

2016-11-17 13:18:24 +00:00
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* WC Order Data Store Interface
*
* Functions that must be defined by order store classes.
*
* @version 2.7.0
* @category Interface
* @author WooThemes
*/
interface WC_Order_Data_Store_Interface {
2016-11-17 14:37:29 +00:00
/**
* Get amount already refunded.
*
* @param WC_Order
* @return string
*/
public function get_total_refunded( $order );
/**
* Get the total tax refunded.
*
* @param WC_Order
* @return float
*/
public function get_total_tax_refunded( $order );
/**
* Get the total shipping refunded.
*
* @param WC_Order
* @return float
*/
public function get_total_shipping_refunded( $order );
2016-11-17 13:18:24 +00:00
}