source: vendor/google/apiclient-services/src/ShoppingContent/Resource/Shippingsettings.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: 6.8 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\ShippingSettings as ShippingSettingsModel;
21use Google\Service\ShoppingContent\ShippingsettingsCustomBatchRequest;
22use Google\Service\ShoppingContent\ShippingsettingsCustomBatchResponse;
23use Google\Service\ShoppingContent\ShippingsettingsGetSupportedCarriersResponse;
24use Google\Service\ShoppingContent\ShippingsettingsGetSupportedHolidaysResponse;
25use Google\Service\ShoppingContent\ShippingsettingsGetSupportedPickupServicesResponse;
26use Google\Service\ShoppingContent\ShippingsettingsListResponse;
27
28/**
29 * The "shippingsettings" collection of methods.
30 * Typical usage is:
31 * <code>
32 * $contentService = new Google\Service\ShoppingContent(...);
33 * $shippingsettings = $contentService->shippingsettings;
34 * </code>
35 */
36class Shippingsettings extends \Google\Service\Resource
37{
38 /**
39 * Retrieves and updates the shipping settings of multiple accounts in a single
40 * request. (shippingsettings.custombatch)
41 *
42 * @param ShippingsettingsCustomBatchRequest $postBody
43 * @param array $optParams Optional parameters.
44 * @return ShippingsettingsCustomBatchResponse
45 * @throws \Google\Service\Exception
46 */
47 public function custombatch(ShippingsettingsCustomBatchRequest $postBody, $optParams = [])
48 {
49 $params = ['postBody' => $postBody];
50 $params = array_merge($params, $optParams);
51 return $this->call('custombatch', [$params], ShippingsettingsCustomBatchResponse::class);
52 }
53 /**
54 * Retrieves the shipping settings of the account. (shippingsettings.get)
55 *
56 * @param string $merchantId The ID of the managing account. If this parameter
57 * is not the same as accountId, then this account must be a multi-client
58 * account and `accountId` must be the ID of a sub-account of this account.
59 * @param string $accountId The ID of the account for which to get/update
60 * shipping settings.
61 * @param array $optParams Optional parameters.
62 * @return ShippingSettingsModel
63 * @throws \Google\Service\Exception
64 */
65 public function get($merchantId, $accountId, $optParams = [])
66 {
67 $params = ['merchantId' => $merchantId, 'accountId' => $accountId];
68 $params = array_merge($params, $optParams);
69 return $this->call('get', [$params], ShippingSettingsModel::class);
70 }
71 /**
72 * Retrieves supported carriers and carrier services for an account.
73 * (shippingsettings.getsupportedcarriers)
74 *
75 * @param string $merchantId The ID of the account for which to retrieve the
76 * supported carriers.
77 * @param array $optParams Optional parameters.
78 * @return ShippingsettingsGetSupportedCarriersResponse
79 * @throws \Google\Service\Exception
80 */
81 public function getsupportedcarriers($merchantId, $optParams = [])
82 {
83 $params = ['merchantId' => $merchantId];
84 $params = array_merge($params, $optParams);
85 return $this->call('getsupportedcarriers', [$params], ShippingsettingsGetSupportedCarriersResponse::class);
86 }
87 /**
88 * Retrieves supported holidays for an account.
89 * (shippingsettings.getsupportedholidays)
90 *
91 * @param string $merchantId The ID of the account for which to retrieve the
92 * supported holidays.
93 * @param array $optParams Optional parameters.
94 * @return ShippingsettingsGetSupportedHolidaysResponse
95 * @throws \Google\Service\Exception
96 */
97 public function getsupportedholidays($merchantId, $optParams = [])
98 {
99 $params = ['merchantId' => $merchantId];
100 $params = array_merge($params, $optParams);
101 return $this->call('getsupportedholidays', [$params], ShippingsettingsGetSupportedHolidaysResponse::class);
102 }
103 /**
104 * Retrieves supported pickup services for an account.
105 * (shippingsettings.getsupportedpickupservices)
106 *
107 * @param string $merchantId The ID of the account for which to retrieve the
108 * supported pickup services.
109 * @param array $optParams Optional parameters.
110 * @return ShippingsettingsGetSupportedPickupServicesResponse
111 * @throws \Google\Service\Exception
112 */
113 public function getsupportedpickupservices($merchantId, $optParams = [])
114 {
115 $params = ['merchantId' => $merchantId];
116 $params = array_merge($params, $optParams);
117 return $this->call('getsupportedpickupservices', [$params], ShippingsettingsGetSupportedPickupServicesResponse::class);
118 }
119 /**
120 * Lists the shipping settings of the sub-accounts in your Merchant Center
121 * account. (shippingsettings.listShippingsettings)
122 *
123 * @param string $merchantId The ID of the managing account. This must be a
124 * multi-client account.
125 * @param array $optParams Optional parameters.
126 *
127 * @opt_param string maxResults The maximum number of shipping settings to
128 * return in the response, used for paging.
129 * @opt_param string pageToken The token returned by the previous request.
130 * @return ShippingsettingsListResponse
131 * @throws \Google\Service\Exception
132 */
133 public function listShippingsettings($merchantId, $optParams = [])
134 {
135 $params = ['merchantId' => $merchantId];
136 $params = array_merge($params, $optParams);
137 return $this->call('list', [$params], ShippingsettingsListResponse::class);
138 }
139 /**
140 * Updates the shipping settings of the account. Any fields that are not
141 * provided are deleted from the resource. (shippingsettings.update)
142 *
143 * @param string $merchantId The ID of the managing account. If this parameter
144 * is not the same as accountId, then this account must be a multi-client
145 * account and `accountId` must be the ID of a sub-account of this account.
146 * @param string $accountId The ID of the account for which to get/update
147 * shipping settings.
148 * @param ShippingSettingsModel $postBody
149 * @param array $optParams Optional parameters.
150 * @return ShippingSettingsModel
151 * @throws \Google\Service\Exception
152 */
153 public function update($merchantId, $accountId, ShippingSettingsModel $postBody, $optParams = [])
154 {
155 $params = ['merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody];
156 $params = array_merge($params, $optParams);
157 return $this->call('update', [$params], ShippingSettingsModel::class);
158 }
159}
160
161// Adding a class alias for backwards compatibility with the previous class name.
162class_alias(Shippingsettings::class, 'Google_Service_ShoppingContent_Resource_Shippingsettings');
Note: See TracBrowser for help on using the repository browser.