/lib/google/src/Google/Service/ShoppingContent.php
PHP | 9176 lines | 7970 code | 513 blank | 693 comment | 0 complexity | 71396f799cca2c6958efa8d18bd5785f MD5 | raw file
Possible License(s): MIT, AGPL-3.0, MPL-2.0-no-copyleft-exception, LGPL-3.0, GPL-3.0, Apache-2.0, LGPL-2.1, BSD-3-Clause
Large files files are truncated, but you can click here to view the full file
- <?php
- /*
- * Copyright 2010 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.
- */
- /**
- * Service definition for ShoppingContent (v2).
- *
- * <p>
- * Manage product items, inventory, and Merchant Center accounts for Google
- * Shopping.</p>
- *
- * <p>
- * For more information about this service, see the API
- * <a href="https://developers.google.com/shopping-content" target="_blank">Documentation</a>
- * </p>
- *
- * @author Google, Inc.
- */
- class Google_Service_ShoppingContent extends Google_Service
- {
- /** Manage your product listings and accounts for Google Shopping. */
- const CONTENT =
- "https://www.googleapis.com/auth/content";
- public $accounts;
- public $accountshipping;
- public $accountstatuses;
- public $accounttax;
- public $datafeeds;
- public $datafeedstatuses;
- public $inventory;
- public $orders;
- public $products;
- public $productstatuses;
-
- /**
- * Constructs the internal representation of the ShoppingContent service.
- *
- * @param Google_Client $client
- */
- public function __construct(Google_Client $client)
- {
- parent::__construct($client);
- $this->rootUrl = 'https://www.googleapis.com/';
- $this->servicePath = 'content/v2/';
- $this->version = 'v2';
- $this->serviceName = 'content';
- $this->accounts = new Google_Service_ShoppingContent_Accounts_Resource(
- $this,
- $this->serviceName,
- 'accounts',
- array(
- 'methods' => array(
- 'authinfo' => array(
- 'path' => 'accounts/authinfo',
- 'httpMethod' => 'GET',
- 'parameters' => array(),
- ),'custombatch' => array(
- 'path' => 'accounts/batch',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'dryRun' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- ),
- ),'delete' => array(
- 'path' => '{merchantId}/accounts/{accountId}',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'dryRun' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- ),
- ),'get' => array(
- 'path' => '{merchantId}/accounts/{accountId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'insert' => array(
- 'path' => '{merchantId}/accounts',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'dryRun' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- ),
- ),'list' => array(
- 'path' => '{merchantId}/accounts',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- ),
- ),'patch' => array(
- 'path' => '{merchantId}/accounts/{accountId}',
- 'httpMethod' => 'PATCH',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'dryRun' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- ),
- ),'update' => array(
- 'path' => '{merchantId}/accounts/{accountId}',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'dryRun' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- ),
- ),
- )
- )
- );
- $this->accountshipping = new Google_Service_ShoppingContent_Accountshipping_Resource(
- $this,
- $this->serviceName,
- 'accountshipping',
- array(
- 'methods' => array(
- 'custombatch' => array(
- 'path' => 'accountshipping/batch',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'dryRun' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- ),
- ),'get' => array(
- 'path' => '{merchantId}/accountshipping/{accountId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'list' => array(
- 'path' => '{merchantId}/accountshipping',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- ),
- ),'patch' => array(
- 'path' => '{merchantId}/accountshipping/{accountId}',
- 'httpMethod' => 'PATCH',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'dryRun' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- ),
- ),'update' => array(
- 'path' => '{merchantId}/accountshipping/{accountId}',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'dryRun' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- ),
- ),
- )
- )
- );
- $this->accountstatuses = new Google_Service_ShoppingContent_Accountstatuses_Resource(
- $this,
- $this->serviceName,
- 'accountstatuses',
- array(
- 'methods' => array(
- 'custombatch' => array(
- 'path' => 'accountstatuses/batch',
- 'httpMethod' => 'POST',
- 'parameters' => array(),
- ),'get' => array(
- 'path' => '{merchantId}/accountstatuses/{accountId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'list' => array(
- 'path' => '{merchantId}/accountstatuses',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- ),
- ),
- )
- )
- );
- $this->accounttax = new Google_Service_ShoppingContent_Accounttax_Resource(
- $this,
- $this->serviceName,
- 'accounttax',
- array(
- 'methods' => array(
- 'custombatch' => array(
- 'path' => 'accounttax/batch',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'dryRun' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- ),
- ),'get' => array(
- 'path' => '{merchantId}/accounttax/{accountId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'list' => array(
- 'path' => '{merchantId}/accounttax',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- ),
- ),'patch' => array(
- 'path' => '{merchantId}/accounttax/{accountId}',
- 'httpMethod' => 'PATCH',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'dryRun' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- ),
- ),'update' => array(
- 'path' => '{merchantId}/accounttax/{accountId}',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'accountId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'dryRun' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- ),
- ),
- )
- )
- );
- $this->datafeeds = new Google_Service_ShoppingContent_Datafeeds_Resource(
- $this,
- $this->serviceName,
- 'datafeeds',
- array(
- 'methods' => array(
- 'custombatch' => array(
- 'path' => 'datafeeds/batch',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'dryRun' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- ),
- ),'delete' => array(
- 'path' => '{merchantId}/datafeeds/{datafeedId}',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'datafeedId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'dryRun' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- ),
- ),'get' => array(
- 'path' => '{merchantId}/datafeeds/{datafeedId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'datafeedId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'insert' => array(
- 'path' => '{merchantId}/datafeeds',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'dryRun' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- ),
- ),'list' => array(
- 'path' => '{merchantId}/datafeeds',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- ),
- ),'patch' => array(
- 'path' => '{merchantId}/datafeeds/{datafeedId}',
- 'httpMethod' => 'PATCH',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'datafeedId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'dryRun' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- ),
- ),'update' => array(
- 'path' => '{merchantId}/datafeeds/{datafeedId}',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'datafeedId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'dryRun' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- ),
- ),
- )
- )
- );
- $this->datafeedstatuses = new Google_Service_ShoppingContent_Datafeedstatuses_Resource(
- $this,
- $this->serviceName,
- 'datafeedstatuses',
- array(
- 'methods' => array(
- 'custombatch' => array(
- 'path' => 'datafeedstatuses/batch',
- 'httpMethod' => 'POST',
- 'parameters' => array(),
- ),'get' => array(
- 'path' => '{merchantId}/datafeedstatuses/{datafeedId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'datafeedId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'list' => array(
- 'path' => '{merchantId}/datafeedstatuses',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- ),
- ),
- )
- )
- );
- $this->inventory = new Google_Service_ShoppingContent_Inventory_Resource(
- $this,
- $this->serviceName,
- 'inventory',
- array(
- 'methods' => array(
- 'custombatch' => array(
- 'path' => 'inventory/batch',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'dryRun' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- ),
- ),'set' => array(
- 'path' => '{merchantId}/inventory/{storeCode}/products/{productId}',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'storeCode' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'productId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'dryRun' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- ),
- ),
- )
- )
- );
- $this->orders = new Google_Service_ShoppingContent_Orders_Resource(
- $this,
- $this->serviceName,
- 'orders',
- array(
- 'methods' => array(
- 'acknowledge' => array(
- 'path' => '{merchantId}/orders/{orderId}/acknowledge',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'orderId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'advancetestorder' => array(
- 'path' => '{merchantId}/testorders/{orderId}/advance',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'orderId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'cancel' => array(
- 'path' => '{merchantId}/orders/{orderId}/cancel',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'orderId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'cancellineitem' => array(
- 'path' => '{merchantId}/orders/{orderId}/cancelLineItem',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'orderId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'createtestorder' => array(
- 'path' => '{merchantId}/testorders',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'custombatch' => array(
- 'path' => 'orders/batch',
- 'httpMethod' => 'POST',
- 'parameters' => array(),
- ),'get' => array(
- 'path' => '{merchantId}/orders/{orderId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'orderId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'getbymerchantorderid' => array(
- 'path' => '{merchantId}/ordersbymerchantid/{merchantOrderId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'merchantOrderId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'gettestordertemplate' => array(
- 'path' => '{merchantId}/testordertemplates/{templateName}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'templateName' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'list' => array(
- 'path' => '{merchantId}/orders',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'orderBy' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'placedDateEnd' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'acknowledged' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'placedDateStart' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'statuses' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'repeated' => true,
- ),
- ),
- ),'refund' => array(
- 'path' => '{merchantId}/orders/{orderId}/refund',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'orderId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'returnlineitem' => array(
- 'path' => '{merchantId}/orders/{orderId}/returnLineItem',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'orderId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'shiplineitems' => array(
- 'path' => '{merchantId}/orders/{orderId}/shipLineItems',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'orderId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'updatemerchantorderid' => array(
- 'path' => '{merchantId}/orders/{orderId}/updateMerchantOrderId',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'orderId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'updateshipment' => array(
- 'path' => '{merchantId}/orders/{orderId}/updateShipment',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'orderId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),
- )
- )
- );
- $this->products = new Google_Service_ShoppingContent_Products_Resource(
- $this,
- $this->serviceName,
- 'products',
- array(
- 'methods' => array(
- 'custombatch' => array(
- 'path' => 'products/batch',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'dryRun' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- ),
- ),'delete' => array(
- 'path' => '{merchantId}/products/{productId}',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'productId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'dryRun' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- ),
- ),'get' => array(
- 'path' => '{merchantId}/products/{productId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'productId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'insert' => array(
- 'path' => '{merchantId}/products',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'dryRun' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- ),
- ),'list' => array(
- 'path' => '{merchantId}/products',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- ),
- ),
- )
- )
- );
- $this->productstatuses = new Google_Service_ShoppingContent_Productstatuses_Resource(
- $this,
- $this->serviceName,
- 'productstatuses',
- array(
- 'methods' => array(
- 'custombatch' => array(
- 'path' => 'productstatuses/batch',
- 'httpMethod' => 'POST',
- 'parameters' => array(),
- ),'get' => array(
- 'path' => '{merchantId}/productstatuses/{productId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'productId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'list' => array(
- 'path' => '{merchantId}/productstatuses',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'merchantId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- ),
- ),
- )
- )
- );
- }
- }
- /**
- * The "accounts" collection of methods.
- * Typical usage is:
- * <code>
- * $contentService = new Google_Service_ShoppingContent(...);
- * $accounts = $contentService->accounts;
- * </code>
- */
- class Google_Service_ShoppingContent_Accounts_Resource extends Google_Service_Resource
- {
- /**
- * Returns information about the authenticated user. (accounts.authinfo)
- *
- * @param array $optParams Optional parameters.
- * @return Google_Service_ShoppingContent_AccountsAuthInfoResponse
- */
- public function authinfo($optParams = array())
- {
- $params = array();
- $params = array_merge($params, $optParams);
- return $this->call('authinfo', array($params), "Google_Service_ShoppingContent_AccountsAuthInfoResponse");
- }
- /**
- * Retrieves, inserts, updates, and deletes multiple Merchant Center
- * (sub-)accounts in a single request. (accounts.custombatch)
- *
- * @param Google_AccountsCustomBatchRequest $postBody
- * @param array $optParams Optional parameters.
- *
- * @opt_param bool dryRun Flag to run the request in dry-run mode.
- * @return Google_Service_ShoppingContent_AccountsCustomBatchResponse
- */
- public function custombatch(Google_Service_ShoppingContent_AccountsCustomBatchRequest $postBody, $optParams = array())
- {
- $params = array('postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_AccountsCustomBatchResponse");
- }
- /**
- * Deletes a Merchant Center sub-account. (accounts.delete)
- *
- * @param string $merchantId The ID of the managing account.
- * @param string $accountId The ID of the account.
- * @param array $optParams Optional parameters.
- *
- * @opt_param bool dryRun Flag to run the request in dry-run mode.
- */
- public function delete($merchantId, $accountId, $optParams = array())
- {
- $params = array('merchantId' => $merchantId, 'accountId' => $accountId);
- $params = array_merge($params, $optParams);
- return $this->call('delete', array($params));
- }
- /**
- * Retrieves a Merchant Center account. (accounts.get)
- *
- * @param string $merchantId The ID of the managing account.
- * @param string $accountId The ID of the account.
- * @param array $optParams Optional parameters.
- * @return Google_Service_ShoppingContent_Account
- */
- public function get($merchantId, $accountId, $optParams = array())
- {
- $params = array('merchantId' => $merchantId, 'accountId' => $accountId);
- $params = array_merge($params, $optParams);
- return $this->call('get', array($params), "Google_Service_ShoppingContent_Account");
- }
- /**
- * Creates a Merchant Center sub-account. (accounts.insert)
- *
- * @param string $merchantId The ID of the managing account.
- * @param Google_Account $postBody
- * @param array $optParams Optional parameters.
- *
- * @opt_param bool dryRun Flag to run the request in dry-run mode.
- * @return Google_Service_ShoppingContent_Account
- */
- public function insert($merchantId, Google_Service_ShoppingContent_Account $postBody, $optParams = array())
- {
- $params = array('merchantId' => $merchantId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('insert', array($params), "Google_Service_ShoppingContent_Account");
- }
- /**
- * Lists the sub-accounts in your Merchant Center account.
- * (accounts.listAccounts)
- *
- * @param string $merchantId The ID of the managing account.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string pageToken The token returned by the previous request.
- * @opt_param string maxResults The maximum number of accounts to return in the
- * response, used for paging.
- * @return Google_Service_ShoppingContent_AccountsListResponse
- */
- public function listAccounts($merchantId, $optParams = array())
- {
- $params = array('merchantId' => $merchantId);
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_ShoppingContent_AccountsListResponse");
- }
- /**
- * Updates a Merchant Center account. This method supports patch semantics.
- * (accounts.patch)
- *
- * @param string $merchantId The ID of the managing account.
- * @param string $accountId The ID of the account.
- * @param Google_Account $postBody
- * @param array $optParams Optional parameters.
- *
- * @opt_param bool dryRun Flag to run the request in dry-run mode.
- * @return Google_Service_ShoppingContent_Account
- */
- public function patch($merchantId, $accountId, Google_Service_ShoppingContent_Account $postBody, $optParams = array())
- {
- $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('patch', array($params), "Google_Service_ShoppingContent_Account");
- }
- /**
- * Updates a Merchant Center account. (accounts.update)
- *
- * @param string $merchantId The ID of the managing account.
- * @param string $accountId The ID of the account.
- * @param Google_Account $postBody
- * @param array $optParams Optional parameters.
- *
- * @opt_param bool dryRun Flag to run the request in dry-run mode.
- * @return Google_Service_ShoppingContent_Account
- */
- public function update($merchantId, $accountId, Google_Service_ShoppingContent_Account $postBody, $optParams = array())
- {
- $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('update', array($params), "Google_Service_ShoppingContent_Account");
- }
- }
- /**
- * The "accountshipping" collection of methods.
- * Typical usage is:
- * <code>
- * $contentService = new Google_Service_ShoppingContent(...);
- * $accountshipping = $contentService->accountshipping;
- * </code>
- */
- class Google_Service_ShoppingContent_Accountshipping_Resource extends Google_Service_Resource
- {
- /**
- * Retrieves and updates the shipping settings of multiple accounts in a single
- * request. (accountshipping.custombatch)
- *
- * @param Google_AccountshippingCustomBatchRequest $postBody
- * @param array $optParams Optional parameters.
- *
- * @opt_param bool dryRun Flag to run the request in dry-run mode.
- * @return Google_Service_ShoppingContent_AccountshippingCustomBatchResponse
- */
- public function custombatch(Google_Service_ShoppingContent_AccountshippingCustomBatchRequest $postBody, $optParams = array())
- {
- $params = array('postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_AccountshippingCustomBatchResponse");
- }
- /**
- * Retrieves the shipping settings of the account. (accountshipping.get)
- *
- * @param string $merchantId The ID of the managing account.
- * @param string $accountId The ID of the account for which to get/update
- * account shipping settings.
- * @param array $optParams Optional parameters.
- * @return Google_Service_ShoppingContent_AccountShipping
- */
- public function get($merchantId, $accountId, $optParams = array())
- {
- $params = array('merchantId' => $merchantId, 'accountId' => $accountId);
- $params = array_merge($params, $optParams);
- return $this->call('get', array($params), "Google_Service_ShoppingContent_AccountShipping");
- }
- /**
- * Lists the shipping settings of the sub-accounts in your Merchant Center
- * account. (accountshipping.listAccountshipping)
- *
- * @param string $merchantId The ID of the managing account.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string pageToken The token returned by the previous request.
- * @opt_param string maxResults The maximum number of shipping settings to
- * return in the response, used for paging.
- * @return Google_Service_ShoppingContent_AccountshippingListResponse
- */
- public function listAccountshipping($merchantId, $optParams = array())
- {
- $params = array('merchantId' => $merchantId);
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_ShoppingContent_AccountshippingListResponse");
- }
- /**
- * Updates the shipping settings of the account. This method supports patch
- * semantics. (accountshipping.patch)
- *
- * @param string $merchantId The ID of the managing account.
- * @param string $accountId The ID of the account for which to get/update
- * account shipping settings.
- * @param Google_AccountShipping $postBody
- * @param array $optParams Optional parameters.
- *
- * @opt_param bool dryRun Flag to run the request in dry-run mode.
- * @return Google_Service_ShoppingContent_AccountShipping
- */
- public function patch($merchantId, $accountId, Google_Service_ShoppingContent_AccountShipping $postBody, $optParams = array())
- {
- $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('patch', array($params), "Google_Service_ShoppingContent_AccountShipping");
- }
- /**
- * Updates the shipping settings of the account. (accountshipping.update)
- *
- * @param string $merchantId The ID of the managing account.
- * @param string $accountId The ID of the account for which to get/update
- * account shipping settings.
- * @param Google_AccountShipping $postBody
- * @param array $optParams Optional parameters.
- *
- * @opt_param bool dryRun Flag to run the request in dry-run mode.
- * @return Google_Service_ShoppingContent_AccountShipping
- */
- public function update($merchantId, $accountId, Google_Service_ShoppingContent_AccountShipping $postBody, $optParams = array())
- {
- $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('update', array($params), "Google_Service_ShoppingContent_AccountShipping");
- }
- }
- /**
- * The "accountstatuses" collection of methods.
- * Typical usage is:
- * <code>
- * $contentService = new Google_Service_ShoppingContent(...);
- * $accountstatuses = $contentService->accountstatuses;
- * </code>
- */
- class Google_Service_ShoppingContent_Accountstatuses_Resource extends Google_Service_Resource
- {
- /**
- * (accountstatuses.custombatch)
- *
- * @param Google_AccountstatusesCustomBatchRequest $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_ShoppingContent_AccountstatusesCustomBatchResponse
- */
- public function custombatch(Google_Service_ShoppingContent_AccountstatusesCustomBatchRequest $postBody, $optParams = array())
- {
- $params = array('postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_AccountstatusesCustomBatchResponse");
- }
- /**
- * Retrieves the status of a Merchant Center account. (accountstatuses.get)
- *
- * @param string $merchantId The ID of the managing account.
- * @param string $accountId The ID of the account.
- * @param array $optParams Optional parameters.
- * @return Google_Service_ShoppingContent_AccountStatus
- */
- public function get($merchantId, $accountId, $optParams = array())
- {
- $params = array('merchantId' => $merchantId, 'accountId' => $accountId);
- $params = array_merge($params, $optParams);
- return $this->call('get', array($params), "Google_Service_ShoppingContent_AccountStatus");
- }
- /**
- * Lists the statuses of the sub-accounts in your Merchant Center account.
- * (accountstatuses.listAccountstatuses)
- *
- * @param string $merchantId The ID of the managing account.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string pageToken The token returned by the previous request.
- * @opt_param string maxResults The maximum number of account statuses to return
- * in the response, used for paging.
- * @return Google_Service_ShoppingContent_AccountstatusesListResponse
- */
- public function listAccountstatuses($merchantId, $optParams = array())
- {
- $params = array('merchantId' => $merchantId);
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_ShoppingContent_AccountstatusesListResponse");
- }
- }
- /**
- * The "accounttax" collection of methods.
- * Typical usage is:
- * <code>
- * $contentService = new Google_Service_ShoppingContent(...);
- * $accounttax = $contentService->accounttax;
- * </code>
- */
- class Google_Service_ShoppingContent_Accounttax_Resource extends Google_Service_Resource
- {
- /**
- * Retrieves and updates tax settings of multiple accounts in a single request.
- * (accounttax.custombatch)
- *
- * @param Google_AccounttaxCustomBatchRequest $postBody
- * @param array $optParams Optional parameters.
- *
- * @opt_param bool dryRun Flag to run the request in dry-run mode.
- * @return Google_Service_ShoppingContent_AccounttaxCustomBatchResponse
- */
- public function custombatch(Google_Service_ShoppingContent_AccounttaxCustomBatchRequest $postBody, $optParams = array())
- {
- $params = array('postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_AccounttaxCustomBatchResponse");
- }
- /**
- * Retrieves the tax settings of the account. (accounttax.get)
- *
- * @param string $merchantId The ID of the managing account.
- * @param string $accountId The ID of the account for which to get/update
- * account tax settings.
- * @param array $optParams Optional parameters.
- * @return Google_Service_ShoppingContent_AccountTax
- */
- public function get($merchantId, $accountId, $optParams = array())
- {
- $params = array('merchantId' => $merchantId, 'accountId' => $accountId);
- $params = array_merge($params, $optParams);
- return $this->call('get', array($params), "Google_Service_ShoppingContent_AccountTax");
- }
- /**
- * Lists the tax settings of the sub-accounts in your Merchant Center account.
- * (accounttax.listAccounttax)
- *
- * @param string $merchantId The ID of the managing account.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string pageToken The token returned by the previous request.
- * @opt_param string maxResults The maximum number of tax settings to return in
- * the response, used for paging.
- * @return Google_Service_ShoppingContent_AccounttaxListResponse
- */
- public function listAccounttax($merchantId, $optParams = array())
- {
- $params = array('merchantId' => $merchantId);
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_ShoppingContent_AccounttaxListResponse");
- }
- /**
- * Updates the tax settings of the account. This method supports patch
- * semantics. (accounttax.patch)
- *
- * @param string $merchantId The ID of the managing account.
- * @param string $accountId The ID of the account for which to get/update
- * account tax settings.
- * @param Google_AccountTax $postBody
- * @param array $optParams Optional parameters.
- *
- * @opt_param bool dryRun Flag to run the request in dry-run mode.
- * @return Google_Service_ShoppingContent_AccountTax
- */
- public function patch($merchantId, $accountId, Google_Service_ShoppingContent_AccountTax $postBody, $optParams = array())
- {
- $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('patch', array($params), "Google_Service_ShoppingContent_AccountTax");
- }
- /**
- * Updates the tax settings of the account. (accounttax.update)
- *
- * @param string $merchantId The ID of the managing account.
- * @param string $accountId The ID of the account for which to get/update
- * account tax set…
Large files files are truncated, but you can click here to view the full file