Automattic\WooCommerce\Internal\Fulfillments

OrderFulfillmentsRestController::get_args_for_get_fulfillmentprivateWC 1.0

Get the arguments for the get fulfillment endpoint.

Method of the class: OrderFulfillmentsRestController{}

No Hooks.

Returns

Array.

Usage

// private - for code of main (parent) class only
$result = $this->get_args_for_get_fulfillment(): array;

OrderFulfillmentsRestController::get_args_for_get_fulfillment() code WC 10.3.3

private function get_args_for_get_fulfillment(): array {
	return array(
		'order_id'       => array(
			'description' => __( 'Unique identifier for the order.', 'woocommerce' ),
			'type'        => 'integer',
			'context'     => array( 'view', 'edit' ),
			'required'    => true,
		),
		'fulfillment_id' => array(
			'description' => __( 'Unique identifier for the fulfillment.', 'woocommerce' ),
			'type'        => 'integer',
			'context'     => array( 'view', 'edit' ),
			'required'    => true,
		),
	);
}