2017-08-17 03:08:32 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Webhook Data Store Interface
|
|
|
|
*
|
|
|
|
* @version 3.2.0
|
2018-03-06 10:00:33 +00:00
|
|
|
* @package WooCommerce/Interface
|
2017-08-17 03:08:32 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* WooCommerce Webhook data store interface.
|
|
|
|
*/
|
|
|
|
interface WC_Webhook_Data_Store_Interface {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get API version number.
|
|
|
|
*
|
|
|
|
* @since 3.2.0
|
|
|
|
* @param string $api_version REST API version.
|
|
|
|
* @return int
|
|
|
|
*/
|
|
|
|
public function get_api_version_number( $api_version );
|
2017-08-17 13:52:42 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get all webhooks IDs.
|
|
|
|
*
|
2017-08-17 14:07:30 +00:00
|
|
|
* @since 3.2.0
|
2017-08-17 13:52:42 +00:00
|
|
|
* @return int[]
|
|
|
|
*/
|
|
|
|
public function get_webhooks_ids();
|
2017-08-17 03:08:32 +00:00
|
|
|
}
|