Automattic\WooCommerce\Internal\RestApi\Routes\V4\Fulfillments

Controller::get_schema_for_get_fulfillmentprivateWC 1.0

Get the schema for the get 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_get_fulfillment(): array;

Controller::get_schema_for_get_fulfillment() code WC 10.4.3

private function get_schema_for_get_fulfillment(): array {
	$schema               = array(
		'$schema' => 'http://json-schema.org/draft-04/schema#',
		'title'   => 'base',
		'type'    => 'object',
	);
	$schema['title']      = __( 'Get fulfillment response.', 'woocommerce' );
	$schema['properties'] = $this->get_read_schema_for_fulfillment();

	return $schema;
}