source: vendor/google/apiclient-services/src/MyBusinessVerifications/Resource/Locations.php@ e3d4e0a

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

Upload project files

  • Property mode set to 100644
File size: 3.3 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\MyBusinessVerifications\Resource;
19
20use Google\Service\MyBusinessVerifications\FetchVerificationOptionsRequest;
21use Google\Service\MyBusinessVerifications\FetchVerificationOptionsResponse;
22use Google\Service\MyBusinessVerifications\VerifyLocationRequest;
23use Google\Service\MyBusinessVerifications\VerifyLocationResponse;
24use Google\Service\MyBusinessVerifications\VoiceOfMerchantState;
25
26/**
27 * The "locations" collection of methods.
28 * Typical usage is:
29 * <code>
30 * $mybusinessverificationsService = new Google\Service\MyBusinessVerifications(...);
31 * $locations = $mybusinessverificationsService->locations;
32 * </code>
33 */
34class Locations extends \Google\Service\Resource
35{
36 /**
37 * Reports all eligible verification options for a location in a specific
38 * language. (locations.fetchVerificationOptions)
39 *
40 * @param string $location Required. The location to verify.
41 * @param FetchVerificationOptionsRequest $postBody
42 * @param array $optParams Optional parameters.
43 * @return FetchVerificationOptionsResponse
44 * @throws \Google\Service\Exception
45 */
46 public function fetchVerificationOptions($location, FetchVerificationOptionsRequest $postBody, $optParams = [])
47 {
48 $params = ['location' => $location, 'postBody' => $postBody];
49 $params = array_merge($params, $optParams);
50 return $this->call('fetchVerificationOptions', [$params], FetchVerificationOptionsResponse::class);
51 }
52 /**
53 * Gets the VoiceOfMerchant state. (locations.getVoiceOfMerchantState)
54 *
55 * @param string $name Required. Resource name of the location.
56 * @param array $optParams Optional parameters.
57 * @return VoiceOfMerchantState
58 * @throws \Google\Service\Exception
59 */
60 public function getVoiceOfMerchantState($name, $optParams = [])
61 {
62 $params = ['name' => $name];
63 $params = array_merge($params, $optParams);
64 return $this->call('getVoiceOfMerchantState', [$params], VoiceOfMerchantState::class);
65 }
66 /**
67 * Starts the verification process for a location. (locations.verify)
68 *
69 * @param string $name Required. Resource name of the location to verify.
70 * @param VerifyLocationRequest $postBody
71 * @param array $optParams Optional parameters.
72 * @return VerifyLocationResponse
73 * @throws \Google\Service\Exception
74 */
75 public function verify($name, VerifyLocationRequest $postBody, $optParams = [])
76 {
77 $params = ['name' => $name, 'postBody' => $postBody];
78 $params = array_merge($params, $optParams);
79 return $this->call('verify', [$params], VerifyLocationResponse::class);
80 }
81}
82
83// Adding a class alias for backwards compatibility with the previous class name.
84class_alias(Locations::class, 'Google_Service_MyBusinessVerifications_Resource_Locations');
Note: See TracBrowser for help on using the repository browser.