*/ protected function input_properties(): array { return array(); } /** * @since 0.0.34 * @return array */ protected function required_input(): array { return array(); } /** * @since 0.0.34 * @return array */ protected function output_properties(): array { return array( 'woocommerce_version' => array( 'type' => 'string' ), 'hpos_enabled' => array( 'type' => 'boolean', 'description' => __( 'True when orders are kept in the dedicated order tables rather than the posts table.', 'acrossai-abilities-manager' ), ), 'order_sync_enabled' => array( 'type' => 'boolean' ), 'order_placeholder_rows' => array( 'type' => 'integer' ), 'product_lookup' => array( 'type' => 'object', 'additionalProperties' => true ), 'catalogue_transients' => array( 'type' => 'object', 'additionalProperties' => true ), 'payment_gateways' => array( 'type' => 'array', 'items' => array( 'type' => 'object', 'additionalProperties' => true ), 'description' => __( 'Name and enabled state only. Gateway settings are never returned.', 'acrossai-abilities-manager' ), ), 'notes' => array( 'type' => 'array', 'items' => array( 'type' => 'string' ) ), ); } /** * @since 0.0.34 * @return array */ protected function annotations(): array { return array( 'readonly' => true, 'destructive' => false, 'idempotent' => true, ); } /** * @since 0.0.34 * @param array $input Input. * @return array|WP_Error */ protected function run( array $input ) { unset( $input ); return Store_Repository::status(); } }