2017-08-17 03:08:32 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Webhook Data Store Interface
|
|
|
|
*
|
|
|
|
* @version 3.2.0
|
2020-08-05 16:36:24 +00:00
|
|
|
* @package WooCommerce\Interface
|
2017-08-17 03:08:32 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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
|
2018-09-24 03:22:16 +00:00
|
|
|
* @throws InvalidArgumentException If a $status value is passed in that is not in the known wc_get_webhook_statuses() keys.
|
2019-02-18 19:48:01 +00:00
|
|
|
* @param string $status Optional - status to filter results by. Must be a key in return value of @see wc_get_webhook_statuses(). @since 3.6.0.
|
2017-08-17 13:52:42 +00:00
|
|
|
* @return int[]
|
|
|
|
*/
|
2019-02-18 13:13:59 +00:00
|
|
|
public function get_webhooks_ids( $status = '' );
|
2017-08-17 03:08:32 +00:00
|
|
|
}
|