eturnId]; $params = array_merge($params, $optParams); return $this->call('get', [$params], MerchantOrderReturn::class); } /** * Lists order returns in your Merchant Center account. * (orderreturns.listOrderreturns) * * @param string $merchantId The ID of the account that manages the order. This * cannot be a multi-client account. * @param array $optParams Optional parameters. * * @opt_param bool acknowledged Obtains order returns that match the * acknowledgement status. When set to true, obtains order returns that have * been acknowledged. When false, obtains order returns that have not been * acknowledged. When not provided, obtains order returns regardless of their * acknowledgement status. We recommend using this filter set to `false`, in * conjunction with the `acknowledge` call, such that only un-acknowledged order * returns are returned. * @opt_param string createdEndDate Obtains order returns created before this * date (inclusively), in ISO 8601 format. * @opt_param string createdStartDate Obtains order returns created after this * date (inclusively), in ISO 8601 format. * @opt_param string googleOrderIds Obtains order returns with the specified * order ids. If this parameter is provided, createdStartDate, createdEndDate, * shipmentType, shipmentStatus, shipmentState and acknowledged parameters must * be not set. Note: if googleOrderId and shipmentTrackingNumber parameters are * provided, the obtained results will include all order returns that either * match the specified order id or the specified tracking number. * @opt_param string maxResults The maximum number of order returns to return in * the response, used for paging. The default value is 25 returns per page, and * the maximum allowed value is 250 returns per page. * @opt_param string orderBy Return the results in the specified order. * @opt_param string pageToken The token returned by the previous request. * @opt_param string shipmentStates Obtains order returns that match any * shipment state provided in this parameter. When this parameter is not * provided, order returns are obtained regardless of their shipment states. * @opt_param string shipmentStatus Obtains order returns that match any * shipment status provided in this parameter. When this parameter is not * provided, order returns are obtained regardless of their shipment statuses. * @opt_param string shipmentTrackingNumbers Obtains order returns with the * specified tracking numbers. If this parameter is provided, createdStartDate, * createdEndDate, shipmentType, shipmentStatus, shipmentState and acknowledged * parameters must be not set. Note: if googleOrderId and shipmentTrackingNumber * parameters are provided, the obtained results will include all order returns * that either match the specified order id or the specified tracking number. * @opt_param string shipmentTypes Obtains order returns that match any shipment * type provided in this parameter. When this parameter is not provided, order * returns are obtained regardless of their shipment types. * @return OrderreturnsListResponse * @throws \Google\Service\Exception */ public function listOrderreturns($merchantId, $optParams = []) { $params = ['merchantId' => $merchantId]; $params = array_merge($params, $optParams); return $this->call('list', [$params], OrderreturnsListResponse::class); } /** * Processes return in your Merchant Center account. (orderreturns.process) * * @param string $merchantId The ID of the account that manages the order. This * cannot be a multi-client account. * @param string $returnId The ID of the return. * @param OrderreturnsProcessRequest $postBody * @param array $optParams Optional parameters. * @return OrderreturnsProcessResponse * @throws \Google\Service\Exception */ public function process($merchantId, $returnId, OrderreturnsProcessRequest $postBody, $optParams = []) { $params = ['merchantId' => $merchantId, 'returnId' => $returnId, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('process', [$params], OrderreturnsProcessResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Orderreturns::class, 'Google_Service_ShoppingContent_Resource_Orderreturns');
Fatal error: Uncaught Error: Class "Automattic\WooCommerce\GoogleListingsAndAds\Vendor\Google\Service\ShoppingContent\Resource\Orderreturns" not found in /htdocs/wp-content/plugins/google-listings-and-ads/vendor/google/apiclient-services/src/ShoppingContent.php:1609 Stack trace: #0 [internal function]: Automattic\WooCommerce\GoogleListingsAndAds\Vendor\Google\Service\ShoppingContent->__construct(Object(Automattic\WooCommerce\GoogleListingsAndAds\Vendor\Google\Client), 'https://api.woo...') #1 /htdocs/wp-content/plugins/google-listings-and-ads/vendor/league/container/src/Definition/Definition.php(229): ReflectionClass->newInstanceArgs(Array) #2 /htdocs/wp-content/plugins/google-listings-and-ads/vendor/league/container/src/Definition/Definition.php(185): Automattic\WooCommerce\GoogleListingsAndAds\Vendor\League\Container\Definition\Definition->resolveClass('Automattic\\WooC...') #3 /htdocs/wp-content/plugins/google-listings-and-ads/vendor/league/container/src/Definition/Definition.php(164): Automattic\WooCommerce\GoogleListingsAndAds\Vendor\League\Container\Definition\Definition->resolveNew() #4 /htdocs/wp-content/plugins/google-listings-and-ads/vendor/league/container/src/Definition/DefinitionAggregate.php(83): Automattic\WooCommerce\GoogleListingsAndAds\Vendor\League\Container\Definition\Definition->resolve() #5 /htdocs/wp-content/plugins/google-listings-and-ads/vendor/league/container/src/Container.php(175): Automattic\WooCommerce\GoogleListingsAndAds\Vendor\League\Container\Definition\DefinitionAggregate->resolve('Automattic\\WooC...') #6 /htdocs/wp-content/plugins/google-listings-and-ads/vendor/league/container/src/Container.php(118): Automattic\WooCommerce\GoogleListingsAndAds\Vendor\League\Container\Container->resolve('Automattic\\WooC...') #7 /htdocs/wp-content/plugins/google-listings-and-ads/vendor/league/container/src/Argument/ArgumentResolverTrait.php(45): Automattic\WooCommerce\GoogleListingsAndAds\Vendor\League\Container\Container->get('Automattic\\WooC...') #8 /htdocs/wp-content/plugins/google-listings-and-ads/vendor/league/container/src/Definition/Definition.php(227): Automattic\WooCommerce\GoogleListingsAndAds\Vendor\League\Container\Definition\Definition->resolveArguments(Array) #9 /htdocs/wp-content/plugins/google-listings-and-ads/vendor/league/container/src/Definition/Definition.php(185): Automattic\WooCommerce\GoogleListingsAndAds\Vendor\League\Container\Definition\Definition->resolveClass('Automattic\\WooC...') #10 /htdocs/wp-content/plugins/google-listings-and-ads/vendor/league/container/src/Definition/Definition.php(164): Automattic\WooCommerce\GoogleListingsAndAds\Vendor\League\Container\Definition\Definition->resolveNew() #11 /htdocs/wp-content/plugins/google-listings-and-ads/vendor/league/container/src/Definition/DefinitionAggregate.php(83): Automattic\WooCommerce\GoogleListingsAndAds\Vendor\League\Container\Definition\Definition->resolve() #12 /htdocs/wp-content/plugins/google-listings-and-ads/vendor/league/container/src/Container.php(175): Automattic\WooCommerce\GoogleListingsAndAds\Vendor\League\Container\Definition\DefinitionAggregate->resolve('Automattic\\WooC...') #13 /htdocs/wp-content/plugins/google-listings-and-ads/vendor/league/container/src/Container.php(118): Automattic\WooCommerce\GoogleListingsAndAds\Vendor\League\Container\Container->resolve('Automattic\\WooC...') #14 /htdocs/wp-content/plugins/google-listings-and-ads/vendor/league/container/src/Argument/ArgumentResolverTrait.php(45): Automattic\WooCommerce\GoogleListingsAndAds\Vendor\League\Container\Container->get('Automattic\\WooC...') #15 /htdocs/wp-content/plugins/google-listings-and-ads/vendor/league/container/src/Definition/Definition.php(227): Automattic\WooCommerce\GoogleListingsAndAds\Vendor\League\Container\Definition\Definition->resolveArguments(Array) #16 /htdocs/wp-content/plugins/google-listings-and-ads/vendor/league/container/src/Definition/Definition.php(185): Automattic\WooCommerce\GoogleListingsAndAds\Vendor\League\Container\Definition\Definition->resolveClass('Automattic\\WooC...') #17 /htdocs/wp-content/plugins/google-listings-and-ads/vendor/league/container/src/Definition/Definition.php(164): Automattic\WooCommerce\GoogleListingsAndAds\Vendor\League\Container\Definition\Definition->resolveNew() #18 /htdocs/wp-content/plugins/google-listings-and-ads/vendor/league/container/src/Definition/DefinitionAggregate.php(97): Automattic\WooCommerce\GoogleListingsAndAds\Vendor\League\Container\Definition\Definition->resolve() #19 /htdocs/wp-content/plugins/google-listings-and-ads/vendor/league/container/src/Container.php(182): Automattic\WooCommerce\GoogleListingsAndAds\Vendor\League\Container\Definition\DefinitionAggregate->resolveTagged('Automattic\\WooC...') #20 /htdocs/wp-content/plugins/google-listings-and-ads/vendor/league/container/src/Container.php(198): Automattic\WooCommerce\GoogleListingsAndAds\Vendor\League\Container\Container->resolve('Automattic\\WooC...', false) #21 /htdocs/wp-content/plugins/google-listings-and-ads/vendor/league/container/src/Container.php(118): Automattic\WooCommerce\GoogleListingsAndAds\Vendor\League\Container\Container->resolve('Automattic\\WooC...') #22 /htdocs/wp-content/plugins/google-listings-and-ads/src/Container.php(99): Automattic\WooCommerce\GoogleListingsAndAds\Vendor\League\Container\Container->get('Automattic\\WooC...') #23 /htdocs/wp-content/plugins/google-listings-and-ads/src/Infrastructure/GoogleListingsAndAdsPlugin.php(131): Automattic\WooCommerce\GoogleListingsAndAds\Container->get('Automattic\\WooC...') #24 /htdocs/wp-content/plugins/google-listings-and-ads/src/Infrastructure/GoogleListingsAndAdsPlugin.php(91): Automattic\WooCommerce\GoogleListingsAndAds\Infrastructure\GoogleListingsAndAdsPlugin->maybe_register_services() #25 /htdocs/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\GoogleListingsAndAds\Infrastructure\GoogleListingsAndAdsPlugin->Automattic\WooCommerce\GoogleListingsAndAds\Infrastructure\{closure}('') #26 /htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #27 /htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #28 /htdocs/wp-settings.php(578): do_action('plugins_loaded') #29 /htdocs/wp-config.php(90): require_once('/htdocs/wp-sett...') #30 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #31 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #32 /htdocs/index.php(17): require('/htdocs/wp-blog...') #33 {main} thrown in /htdocs/wp-content/plugins/google-listings-and-ads/vendor/google/apiclient-services/src/ShoppingContent.php on line 1609