Automattic\WooCommerce\Internal\Fulfillments

OrderFulfillmentsRestController::get_schema_for_delete_fulfillment_metaprivateWC 1.0

Get the schema for the delete fulfillment meta 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_meta(): array;

OrderFulfillmentsRestController::get_schema_for_delete_fulfillment_meta() code WC 10.3.3

private function get_schema_for_delete_fulfillment_meta(): array {
	$schema          = $this->get_base_schema();
	$schema['title'] = __( 'Delete fulfillment meta data response.', 'woocommerce' );
	$schema['type']  = 'array';
	$schema['items'] = array(
		'description' => __( 'The meta data object.', 'woocommerce' ),
		'type'        => 'object',
		'properties'  => $this->get_schema_for_meta_data(),
	);

	return $schema;
}