Automattic\WooCommerce\Internal\Caches

OrdersVersionStringInvalidator::invalidate_refunds_listprivateWC 1.0

Invalidate the refunds list version string.

This should be called when refunds are created or deleted, as these operations affect the /refunds collection endpoint.

Method of the class: OrdersVersionStringInvalidator{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

OrdersVersionStringInvalidator::invalidate_refunds_list() code WC 10.7.0

private function invalidate_refunds_list(): void {
	wc_get_container()->get( VersionStringGenerator::class )->delete_version( 'list_refunds' );
}