Automattic\WooCommerce\Internal\Fulfillments
OrderFulfillmentsRestController::get_schema_for_get_fulfillments
Get the schema for the get order fulfillments endpoint.
Method of the class: OrderFulfillmentsRestController{}
No Hooks.
Returns
Array.
Usage
// private - for code of main (parent) class only $result = $this->get_schema_for_get_fulfillments(): array;
OrderFulfillmentsRestController::get_schema_for_get_fulfillments() OrderFulfillmentsRestController::get schema for get fulfillments code WC 10.3.3
private function get_schema_for_get_fulfillments(): array {
$schema = $this->get_base_schema();
$schema['title'] = __( 'Get fulfillments response.', 'woocommerce' );
$schema['type'] = 'array';
$schema['items'] = array(
'type' => 'object',
'properties' => $this->get_read_schema_for_fulfillment(),
);
return $schema;
}