Automattic\WooCommerce\Internal\RestApi\Routes\V4\Orders

ActionController::get_endpoint_args_for_actionspublicWC 1.0

Get endpoint args for the actions.

Method of the class: ActionController{}

No Hooks.

Returns

Array.

Usage

$ActionController = new ActionController();
$ActionController->get_endpoint_args_for_actions(): array;

ActionController::get_endpoint_args_for_actions() code WC 10.4.3

public function get_endpoint_args_for_actions(): array {
	return array(
		'payment_complete'           => array(
			'description' => __( 'Marks the order as paid. Updates the order status and reduces line item stock if necessary.', 'woocommerce' ),
			'type'        => 'boolean',
			'default'     => false,
		),
		'reset_download_permissions' => array(
			'description' => __( 'Resets any download permissions linked to the order.', 'woocommerce' ),
			'type'        => 'boolean',
			'default'     => false,
		),
	);
}