Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Merchant\Resource;
/**
* The "accounts" collection of methods.
* Typical usage is:
* <code>
* $merchantapiService = new Google\Service\Merchant(...);
* $accounts = $merchantapiService->accounts;
* </code>
*/
class Accounts extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Accounts::class, 'Google_Service_Merchant_Resource_Accounts');

View File

@@ -0,0 +1,113 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Merchant\Resource;
use Google\Service\Merchant\ListMerchantReviewsResponse;
use Google\Service\Merchant\MerchantReview;
use Google\Service\Merchant\MerchantapiEmpty;
/**
* The "merchantReviews" collection of methods.
* Typical usage is:
* <code>
* $merchantapiService = new Google\Service\Merchant(...);
* $merchantReviews = $merchantapiService->accounts_merchantReviews;
* </code>
*/
class AccountsMerchantReviews extends \Google\Service\Resource
{
/**
* Deletes merchant review. (merchantReviews.delete)
*
* @param string $name Required. The ID of the merchant review. Format:
* accounts/{account}/merchantReviews/{merchantReview}
* @param array $optParams Optional parameters.
* @return MerchantapiEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], MerchantapiEmpty::class);
}
/**
* Gets a merchant review. (merchantReviews.get)
*
* @param string $name Required. The ID of the merchant review. Format:
* accounts/{account}/merchantReviews/{merchantReview}
* @param array $optParams Optional parameters.
* @return MerchantReview
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], MerchantReview::class);
}
/**
* Inserts a review for your Merchant Center account. If the review already
* exists, then the review is replaced with the new instance.
* (merchantReviews.insert)
*
* @param string $parent Required. The account where the merchant review will be
* inserted. Format: accounts/{account}
* @param MerchantReview $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string dataSource Required. The data source of the [merchantreview
* ](https://support.google.com/merchants/answer/7045996?sjid=525358124421758197
* 6-EU) Format: `accounts/{account}/dataSources/{datasource}`.
* @return MerchantReview
* @throws \Google\Service\Exception
*/
public function insert($parent, MerchantReview $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], MerchantReview::class);
}
/**
* Lists merchant reviews. (merchantReviews.listAccountsMerchantReviews)
*
* @param string $parent Required. The account to list merchant reviews for.
* Format: accounts/{account}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of merchant reviews to
* return. The service can return fewer than this value. The maximum value is
* 1000; values above 1000 are coerced to 1000. If unspecified, the maximum
* number of reviews is returned.
* @opt_param string pageToken Optional. A page token, received from a previous
* `ListMerchantReviews` call. Provide this to retrieve the subsequent page.
* When paginating, all other parameters provided to `ListMerchantReviews` must
* match the call that provided the page token.
* @return ListMerchantReviewsResponse
* @throws \Google\Service\Exception
*/
public function listAccountsMerchantReviews($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListMerchantReviewsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsMerchantReviews::class, 'Google_Service_Merchant_Resource_AccountsMerchantReviews');

View File

@@ -0,0 +1,108 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Merchant\Resource;
use Google\Service\Merchant\ListProductReviewsResponse;
use Google\Service\Merchant\MerchantapiEmpty;
use Google\Service\Merchant\ProductReview;
/**
* The "productReviews" collection of methods.
* Typical usage is:
* <code>
* $merchantapiService = new Google\Service\Merchant(...);
* $productReviews = $merchantapiService->accounts_productReviews;
* </code>
*/
class AccountsProductReviews extends \Google\Service\Resource
{
/**
* Deletes a product review. (productReviews.delete)
*
* @param string $name Required. The ID of the Product review. Format:
* accounts/{account}/productReviews/{productReview}
* @param array $optParams Optional parameters.
* @return MerchantapiEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], MerchantapiEmpty::class);
}
/**
* Gets a product review. (productReviews.get)
*
* @param string $name Required. The ID of the merchant review. Format:
* accounts/{account}/productReviews/{productReview}
* @param array $optParams Optional parameters.
* @return ProductReview
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ProductReview::class);
}
/**
* Inserts a product review. (productReviews.insert)
*
* @param string $parent Required. The account where the product review will be
* inserted. Format: accounts/{account}
* @param ProductReview $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string dataSource Required. Format:
* `accounts/{account}/dataSources/{datasource}`.
* @return ProductReview
* @throws \Google\Service\Exception
*/
public function insert($parent, ProductReview $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], ProductReview::class);
}
/**
* Lists product reviews. (productReviews.listAccountsProductReviews)
*
* @param string $parent Required. The account to list product reviews for.
* Format: accounts/{account}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of products to return.
* The service may return fewer than this value.
* @opt_param string pageToken Optional. A page token, received from a previous
* `ListProductReviews` call. Provide this to retrieve the subsequent page. When
* paginating, all other parameters provided to `ListProductReviews` must match
* the call that provided the page token.
* @return ListProductReviewsResponse
* @throws \Google\Service\Exception
*/
public function listAccountsProductReviews($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListProductReviewsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsProductReviews::class, 'Google_Service_Merchant_Resource_AccountsProductReviews');

View File

@@ -0,0 +1,54 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Merchant\Resource;
use Google\Service\Merchant\SearchRequest;
use Google\Service\Merchant\SearchResponse;
/**
* The "reports" collection of methods.
* Typical usage is:
* <code>
* $merchantapiService = new Google\Service\Merchant(...);
* $reports = $merchantapiService->accounts_reports;
* </code>
*/
class AccountsReports extends \Google\Service\Resource
{
/**
* Retrieves a report defined by a search query. The response might contain
* fewer rows than specified by `page_size`. Rely on `next_page_token` to
* determine if there are more rows to be requested. (reports.search)
*
* @param string $parent Required. Id of the account making the call. Must be a
* standalone account or an MCA subaccount. Format: accounts/{account}
* @param SearchRequest $postBody
* @param array $optParams Optional parameters.
* @return SearchResponse
* @throws \Google\Service\Exception
*/
public function search($parent, SearchRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('search', [$params], SearchResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsReports::class, 'Google_Service_Merchant_Resource_AccountsReports');