source: vendor/google/apiclient-services/src/ShoppingContent/Resource/Accountstatuses.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 2 weeks ago

Upload project files

  • Property mode set to 100644
File size: 4.0 KB
Line 
1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service\ShoppingContent\Resource;
19
20use Google\Service\ShoppingContent\AccountStatus;
21use Google\Service\ShoppingContent\AccountstatusesCustomBatchRequest;
22use Google\Service\ShoppingContent\AccountstatusesCustomBatchResponse;
23use Google\Service\ShoppingContent\AccountstatusesListResponse;
24
25/**
26 * The "accountstatuses" collection of methods.
27 * Typical usage is:
28 * <code>
29 * $contentService = new Google\Service\ShoppingContent(...);
30 * $accountstatuses = $contentService->accountstatuses;
31 * </code>
32 */
33class Accountstatuses extends \Google\Service\Resource
34{
35 /**
36 * Retrieves multiple Merchant Center account statuses in a single request.
37 * (accountstatuses.custombatch)
38 *
39 * @param AccountstatusesCustomBatchRequest $postBody
40 * @param array $optParams Optional parameters.
41 * @return AccountstatusesCustomBatchResponse
42 * @throws \Google\Service\Exception
43 */
44 public function custombatch(AccountstatusesCustomBatchRequest $postBody, $optParams = [])
45 {
46 $params = ['postBody' => $postBody];
47 $params = array_merge($params, $optParams);
48 return $this->call('custombatch', [$params], AccountstatusesCustomBatchResponse::class);
49 }
50 /**
51 * Retrieves the status of a Merchant Center account. No itemLevelIssues are
52 * returned for multi-client accounts. (accountstatuses.get)
53 *
54 * @param string $merchantId The ID of the managing account. If this parameter
55 * is not the same as accountId, then this account must be a multi-client
56 * account and `accountId` must be the ID of a sub-account of this account.
57 * @param string $accountId The ID of the account.
58 * @param array $optParams Optional parameters.
59 *
60 * @opt_param string destinations If set, only issues for the specified
61 * destinations are returned, otherwise only issues for the Shopping
62 * destination.
63 * @return AccountStatus
64 * @throws \Google\Service\Exception
65 */
66 public function get($merchantId, $accountId, $optParams = [])
67 {
68 $params = ['merchantId' => $merchantId, 'accountId' => $accountId];
69 $params = array_merge($params, $optParams);
70 return $this->call('get', [$params], AccountStatus::class);
71 }
72 /**
73 * Lists the statuses of the sub-accounts in your Merchant Center account.
74 * (accountstatuses.listAccountstatuses)
75 *
76 * @param string $merchantId The ID of the managing account. This must be a
77 * multi-client account.
78 * @param array $optParams Optional parameters.
79 *
80 * @opt_param string destinations If set, only issues for the specified
81 * destinations are returned, otherwise only issues for the Shopping
82 * destination.
83 * @opt_param string maxResults The maximum number of account statuses to return
84 * in the response, used for paging.
85 * @opt_param string name If set, only the accounts with the given name (case
86 * sensitive) will be returned.
87 * @opt_param string pageToken The token returned by the previous request.
88 * @return AccountstatusesListResponse
89 * @throws \Google\Service\Exception
90 */
91 public function listAccountstatuses($merchantId, $optParams = [])
92 {
93 $params = ['merchantId' => $merchantId];
94 $params = array_merge($params, $optParams);
95 return $this->call('list', [$params], AccountstatusesListResponse::class);
96 }
97}
98
99// Adding a class alias for backwards compatibility with the previous class name.
100class_alias(Accountstatuses::class, 'Google_Service_ShoppingContent_Resource_Accountstatuses');
Note: See TracBrowser for help on using the repository browser.