Automattic\WooCommerce\Internal\RestApi\Routes\V4\Fulfillments
Controller::get_schema_for_delete_fulfillment
Get the schema for the delete fulfillment endpoint.
Method of the class: Controller{}
No Hooks.
Returns
Array.
Usage
// private - for code of main (parent) class only $result = $this->get_schema_for_delete_fulfillment(): array;
Controller::get_schema_for_delete_fulfillment() Controller::get schema for delete fulfillment code WC 10.4.3
private function get_schema_for_delete_fulfillment(): array {
$schema = array(
'$schema' => 'http://json-schema.org/draft-04/schema#',
'title' => 'base',
'type' => 'object',
);
$schema['title'] = __( 'Delete fulfillment response.', 'woocommerce' );
$schema['properties'] = array(
'message' => array(
'description' => __( 'The response message.', 'woocommerce' ),
'type' => 'string',
'required' => true,
),
);
return $schema;
}