Automattic\WooCommerce\Internal\Fulfillments

OrderFulfillmentsRestController::get_schema_for_delete_fulfillmentprivateWC 1.0

Get the schema for the delete fulfillment endpoint.

Method of the class: OrderFulfillmentsRestController{}

No Hooks.

Returns

Array.

Usage

// private - for code of main (parent) class only
$result = $this->get_schema_for_delete_fulfillment(): array;

OrderFulfillmentsRestController::get_schema_for_delete_fulfillment() code WC 10.3.3

private function get_schema_for_delete_fulfillment(): array {
	$schema               = $this->get_base_schema();
	$schema['title']      = __( 'Delete fulfillment response.', 'woocommerce' );
	$schema['properties'] = array(
		'message' => array(
			'description' => __( 'The response message.', 'woocommerce' ),
			'type'        => 'string',
			'required'    => true,
		),
	);

	return $schema;
}