Automattic\WooCommerce\Internal\Fulfillments

OrderFulfillmentsRestController::get_args_for_update_fulfillment_metaprivateWC 1.0

Get the arguments for the update fulfillment meta endpoint.

Метод класса: OrderFulfillmentsRestController{}

Хуков нет.

Возвращает

Массив.

Использование

// private - только в коде основоного (родительского) класса
$result = $this->get_args_for_update_fulfillment_meta(): array;

Код OrderFulfillmentsRestController::get_args_for_update_fulfillment_meta() WC 10.3.6

private function get_args_for_update_fulfillment_meta(): array {
	return array(
		'order_id'       => array(
			'description' => __( 'Unique identifier for the order.', 'woocommerce' ),
			'type'        => 'integer',
			'required'    => true,
			'context'     => array( 'view', 'edit' ),
		),
		'fulfillment_id' => array(
			'description' => __( 'Unique identifier for the fulfillment.', 'woocommerce' ),
			'type'        => 'integer',
			'required'    => true,
			'context'     => array( 'view', 'edit' ),
		),
		'meta_data'      => array(
			'description' => __( 'The meta data array.', 'woocommerce' ),
			'type'        => 'array',
			'required'    => true,
			'items'       => array(
				'description' => __( 'The meta data object.', 'woocommerce' ),
				'type'        => 'object',
				'properties'  => $this->get_schema_for_meta_data(),
			),
		),
	);
}