Automattic\WooCommerce\Admin\Features\Fulfillments
OrderFulfillmentsRestController::get_args_for_update_fulfillment_meta
Get the arguments for the update fulfillment meta endpoint.
Method of the class: OrderFulfillmentsRestController{}
No Hooks.
Returns
Array.
Usage
// private - for code of main (parent) class only $result = $this->get_args_for_update_fulfillment_meta(): array;
OrderFulfillmentsRestController::get_args_for_update_fulfillment_meta() OrderFulfillmentsRestController::get args for update fulfillment meta code WC 10.7.0
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(),
),
),
);
}