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,78 @@
<?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\MyBusinessVerifications;
class AddressVerificationData extends \Google\Model
{
protected $addressType = PostalAddress::class;
protected $addressDataType = '';
/**
* @var string
*/
public $business;
/**
* @var int
*/
public $expectedDeliveryDaysRegion;
/**
* @param PostalAddress
*/
public function setAddress(PostalAddress $address)
{
$this->address = $address;
}
/**
* @return PostalAddress
*/
public function getAddress()
{
return $this->address;
}
/**
* @param string
*/
public function setBusiness($business)
{
$this->business = $business;
}
/**
* @return string
*/
public function getBusiness()
{
return $this->business;
}
/**
* @param int
*/
public function setExpectedDeliveryDaysRegion($expectedDeliveryDaysRegion)
{
$this->expectedDeliveryDaysRegion = $expectedDeliveryDaysRegion;
}
/**
* @return int
*/
public function getExpectedDeliveryDaysRegion()
{
return $this->expectedDeliveryDaysRegion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AddressVerificationData::class, 'Google_Service_MyBusinessVerifications_AddressVerificationData');

View File

@@ -0,0 +1,44 @@
<?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\MyBusinessVerifications;
class CompleteVerificationRequest extends \Google\Model
{
/**
* @var string
*/
public $pin;
/**
* @param string
*/
public function setPin($pin)
{
$this->pin = $pin;
}
/**
* @return string
*/
public function getPin()
{
return $this->pin;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CompleteVerificationRequest::class, 'Google_Service_MyBusinessVerifications_CompleteVerificationRequest');

View File

@@ -0,0 +1,42 @@
<?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\MyBusinessVerifications;
class CompleteVerificationResponse extends \Google\Model
{
protected $verificationType = Verification::class;
protected $verificationDataType = '';
/**
* @param Verification
*/
public function setVerification(Verification $verification)
{
$this->verification = $verification;
}
/**
* @return Verification
*/
public function getVerification()
{
return $this->verification;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CompleteVerificationResponse::class, 'Google_Service_MyBusinessVerifications_CompleteVerificationResponse');

View File

@@ -0,0 +1,44 @@
<?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\MyBusinessVerifications;
class ComplyWithGuidelines extends \Google\Model
{
/**
* @var string
*/
public $recommendationReason;
/**
* @param string
*/
public function setRecommendationReason($recommendationReason)
{
$this->recommendationReason = $recommendationReason;
}
/**
* @return string
*/
public function getRecommendationReason()
{
return $this->recommendationReason;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ComplyWithGuidelines::class, 'Google_Service_MyBusinessVerifications_ComplyWithGuidelines');

View File

@@ -0,0 +1,80 @@
<?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\MyBusinessVerifications;
class EmailVerificationData extends \Google\Model
{
/**
* @var string
*/
public $domain;
/**
* @var bool
*/
public $isUserNameEditable;
/**
* @var string
*/
public $user;
/**
* @param string
*/
public function setDomain($domain)
{
$this->domain = $domain;
}
/**
* @return string
*/
public function getDomain()
{
return $this->domain;
}
/**
* @param bool
*/
public function setIsUserNameEditable($isUserNameEditable)
{
$this->isUserNameEditable = $isUserNameEditable;
}
/**
* @return bool
*/
public function getIsUserNameEditable()
{
return $this->isUserNameEditable;
}
/**
* @param string
*/
public function setUser($user)
{
$this->user = $user;
}
/**
* @return string
*/
public function getUser()
{
return $this->user;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EmailVerificationData::class, 'Google_Service_MyBusinessVerifications_EmailVerificationData');

View File

@@ -0,0 +1,60 @@
<?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\MyBusinessVerifications;
class FetchVerificationOptionsRequest extends \Google\Model
{
protected $contextType = ServiceBusinessContext::class;
protected $contextDataType = '';
/**
* @var string
*/
public $languageCode;
/**
* @param ServiceBusinessContext
*/
public function setContext(ServiceBusinessContext $context)
{
$this->context = $context;
}
/**
* @return ServiceBusinessContext
*/
public function getContext()
{
return $this->context;
}
/**
* @param string
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FetchVerificationOptionsRequest::class, 'Google_Service_MyBusinessVerifications_FetchVerificationOptionsRequest');

View File

@@ -0,0 +1,43 @@
<?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\MyBusinessVerifications;
class FetchVerificationOptionsResponse extends \Google\Collection
{
protected $collection_key = 'options';
protected $optionsType = VerificationOption::class;
protected $optionsDataType = 'array';
/**
* @param VerificationOption[]
*/
public function setOptions($options)
{
$this->options = $options;
}
/**
* @return VerificationOption[]
*/
public function getOptions()
{
return $this->options;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FetchVerificationOptionsResponse::class, 'Google_Service_MyBusinessVerifications_FetchVerificationOptionsResponse');

View File

@@ -0,0 +1,42 @@
<?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\MyBusinessVerifications;
class GenerateVerificationTokenRequest extends \Google\Model
{
protected $locationType = Location::class;
protected $locationDataType = '';
/**
* @param Location
*/
public function setLocation(Location $location)
{
$this->location = $location;
}
/**
* @return Location
*/
public function getLocation()
{
return $this->location;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GenerateVerificationTokenRequest::class, 'Google_Service_MyBusinessVerifications_GenerateVerificationTokenRequest');

View File

@@ -0,0 +1,42 @@
<?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\MyBusinessVerifications;
class GenerateVerificationTokenResponse extends \Google\Model
{
protected $tokenType = VerificationToken::class;
protected $tokenDataType = '';
/**
* @param VerificationToken
*/
public function setToken(VerificationToken $token)
{
$this->token = $token;
}
/**
* @return VerificationToken
*/
public function getToken()
{
return $this->token;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GenerateVerificationTokenResponse::class, 'Google_Service_MyBusinessVerifications_GenerateVerificationTokenResponse');

View File

@@ -0,0 +1,61 @@
<?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\MyBusinessVerifications;
class ListVerificationsResponse extends \Google\Collection
{
protected $collection_key = 'verifications';
/**
* @var string
*/
public $nextPageToken;
protected $verificationsType = Verification::class;
protected $verificationsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Verification[]
*/
public function setVerifications($verifications)
{
$this->verifications = $verifications;
}
/**
* @return Verification[]
*/
public function getVerifications()
{
return $this->verifications;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListVerificationsResponse::class, 'Google_Service_MyBusinessVerifications_ListVerificationsResponse');

View File

@@ -0,0 +1,114 @@
<?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\MyBusinessVerifications;
class Location extends \Google\Model
{
protected $addressType = PostalAddress::class;
protected $addressDataType = '';
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $primaryCategoryId;
/**
* @var string
*/
public $primaryPhone;
/**
* @var string
*/
public $websiteUri;
/**
* @param PostalAddress
*/
public function setAddress(PostalAddress $address)
{
$this->address = $address;
}
/**
* @return PostalAddress
*/
public function getAddress()
{
return $this->address;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setPrimaryCategoryId($primaryCategoryId)
{
$this->primaryCategoryId = $primaryCategoryId;
}
/**
* @return string
*/
public function getPrimaryCategoryId()
{
return $this->primaryCategoryId;
}
/**
* @param string
*/
public function setPrimaryPhone($primaryPhone)
{
$this->primaryPhone = $primaryPhone;
}
/**
* @return string
*/
public function getPrimaryPhone()
{
return $this->primaryPhone;
}
/**
* @param string
*/
public function setWebsiteUri($websiteUri)
{
$this->websiteUri = $websiteUri;
}
/**
* @return string
*/
public function getWebsiteUri()
{
return $this->websiteUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Location::class, 'Google_Service_MyBusinessVerifications_Location');

View File

@@ -0,0 +1,225 @@
<?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\MyBusinessVerifications;
class PostalAddress extends \Google\Collection
{
protected $collection_key = 'recipients';
/**
* @var string[]
*/
public $addressLines;
/**
* @var string
*/
public $administrativeArea;
/**
* @var string
*/
public $languageCode;
/**
* @var string
*/
public $locality;
/**
* @var string
*/
public $organization;
/**
* @var string
*/
public $postalCode;
/**
* @var string[]
*/
public $recipients;
/**
* @var string
*/
public $regionCode;
/**
* @var int
*/
public $revision;
/**
* @var string
*/
public $sortingCode;
/**
* @var string
*/
public $sublocality;
/**
* @param string[]
*/
public function setAddressLines($addressLines)
{
$this->addressLines = $addressLines;
}
/**
* @return string[]
*/
public function getAddressLines()
{
return $this->addressLines;
}
/**
* @param string
*/
public function setAdministrativeArea($administrativeArea)
{
$this->administrativeArea = $administrativeArea;
}
/**
* @return string
*/
public function getAdministrativeArea()
{
return $this->administrativeArea;
}
/**
* @param string
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* @param string
*/
public function setLocality($locality)
{
$this->locality = $locality;
}
/**
* @return string
*/
public function getLocality()
{
return $this->locality;
}
/**
* @param string
*/
public function setOrganization($organization)
{
$this->organization = $organization;
}
/**
* @return string
*/
public function getOrganization()
{
return $this->organization;
}
/**
* @param string
*/
public function setPostalCode($postalCode)
{
$this->postalCode = $postalCode;
}
/**
* @return string
*/
public function getPostalCode()
{
return $this->postalCode;
}
/**
* @param string[]
*/
public function setRecipients($recipients)
{
$this->recipients = $recipients;
}
/**
* @return string[]
*/
public function getRecipients()
{
return $this->recipients;
}
/**
* @param string
*/
public function setRegionCode($regionCode)
{
$this->regionCode = $regionCode;
}
/**
* @return string
*/
public function getRegionCode()
{
return $this->regionCode;
}
/**
* @param int
*/
public function setRevision($revision)
{
$this->revision = $revision;
}
/**
* @return int
*/
public function getRevision()
{
return $this->revision;
}
/**
* @param string
*/
public function setSortingCode($sortingCode)
{
$this->sortingCode = $sortingCode;
}
/**
* @return string
*/
public function getSortingCode()
{
return $this->sortingCode;
}
/**
* @param string
*/
public function setSublocality($sublocality)
{
$this->sublocality = $sublocality;
}
/**
* @return string
*/
public function getSublocality()
{
return $this->sublocality;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PostalAddress::class, 'Google_Service_MyBusinessVerifications_PostalAddress');

View File

@@ -0,0 +1,25 @@
<?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\MyBusinessVerifications;
class ResolveOwnershipConflict extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResolveOwnershipConflict::class, 'Google_Service_MyBusinessVerifications_ResolveOwnershipConflict');

View File

@@ -0,0 +1,84 @@
<?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\MyBusinessVerifications\Resource;
use Google\Service\MyBusinessVerifications\FetchVerificationOptionsRequest;
use Google\Service\MyBusinessVerifications\FetchVerificationOptionsResponse;
use Google\Service\MyBusinessVerifications\VerifyLocationRequest;
use Google\Service\MyBusinessVerifications\VerifyLocationResponse;
use Google\Service\MyBusinessVerifications\VoiceOfMerchantState;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $mybusinessverificationsService = new Google\Service\MyBusinessVerifications(...);
* $locations = $mybusinessverificationsService->locations;
* </code>
*/
class Locations extends \Google\Service\Resource
{
/**
* Reports all eligible verification options for a location in a specific
* language. (locations.fetchVerificationOptions)
*
* @param string $location Required. The location to verify.
* @param FetchVerificationOptionsRequest $postBody
* @param array $optParams Optional parameters.
* @return FetchVerificationOptionsResponse
* @throws \Google\Service\Exception
*/
public function fetchVerificationOptions($location, FetchVerificationOptionsRequest $postBody, $optParams = [])
{
$params = ['location' => $location, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('fetchVerificationOptions', [$params], FetchVerificationOptionsResponse::class);
}
/**
* Gets the VoiceOfMerchant state. (locations.getVoiceOfMerchantState)
*
* @param string $name Required. Resource name of the location.
* @param array $optParams Optional parameters.
* @return VoiceOfMerchantState
* @throws \Google\Service\Exception
*/
public function getVoiceOfMerchantState($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getVoiceOfMerchantState', [$params], VoiceOfMerchantState::class);
}
/**
* Starts the verification process for a location. (locations.verify)
*
* @param string $name Required. Resource name of the location to verify.
* @param VerifyLocationRequest $postBody
* @param array $optParams Optional parameters.
* @return VerifyLocationResponse
* @throws \Google\Service\Exception
*/
public function verify($name, VerifyLocationRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('verify', [$params], VerifyLocationResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Locations::class, 'Google_Service_MyBusinessVerifications_Resource_Locations');

View File

@@ -0,0 +1,75 @@
<?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\MyBusinessVerifications\Resource;
use Google\Service\MyBusinessVerifications\CompleteVerificationRequest;
use Google\Service\MyBusinessVerifications\CompleteVerificationResponse;
use Google\Service\MyBusinessVerifications\ListVerificationsResponse;
/**
* The "verifications" collection of methods.
* Typical usage is:
* <code>
* $mybusinessverificationsService = new Google\Service\MyBusinessVerifications(...);
* $verifications = $mybusinessverificationsService->locations_verifications;
* </code>
*/
class LocationsVerifications extends \Google\Service\Resource
{
/**
* Completes a `PENDING` verification. It is only necessary for non `AUTO`
* verification methods. `AUTO` verification request is instantly `VERIFIED`
* upon creation. (verifications.complete)
*
* @param string $name Required. Resource name of the verification to complete.
* @param CompleteVerificationRequest $postBody
* @param array $optParams Optional parameters.
* @return CompleteVerificationResponse
* @throws \Google\Service\Exception
*/
public function complete($name, CompleteVerificationRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('complete', [$params], CompleteVerificationResponse::class);
}
/**
* List verifications of a location, ordered by create time.
* (verifications.listLocationsVerifications)
*
* @param string $parent Required. Resource name of the location that
* verification requests belong to.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize How many verification to include per page. Minimum is
* 1, and the default and maximum page size is 100.
* @opt_param string pageToken If specified, returns the next page of
* verifications.
* @return ListVerificationsResponse
* @throws \Google\Service\Exception
*/
public function listLocationsVerifications($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListVerificationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LocationsVerifications::class, 'Google_Service_MyBusinessVerifications_Resource_LocationsVerifications');

View File

@@ -0,0 +1,53 @@
<?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\MyBusinessVerifications\Resource;
use Google\Service\MyBusinessVerifications\GenerateVerificationTokenRequest;
use Google\Service\MyBusinessVerifications\GenerateVerificationTokenResponse;
/**
* The "verificationTokens" collection of methods.
* Typical usage is:
* <code>
* $mybusinessverificationsService = new Google\Service\MyBusinessVerifications(...);
* $verificationTokens = $mybusinessverificationsService->verificationTokens;
* </code>
*/
class VerificationTokens extends \Google\Service\Resource
{
/**
* Generates a token for the provided location data as a vetted
* [partner](https://support.google.com/business/answer/7674102). Throws
* PERMISSION_DENIED if the caller is not a vetted partner account. Throws
* FAILED_PRECONDITION if the caller's VettedStatus is INVALID.
* (verificationTokens.generate)
*
* @param GenerateVerificationTokenRequest $postBody
* @param array $optParams Optional parameters.
* @return GenerateVerificationTokenResponse
*/
public function generate(GenerateVerificationTokenRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('generate', [$params], GenerateVerificationTokenResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(VerificationTokens::class, 'Google_Service_MyBusinessVerifications_Resource_VerificationTokens');

View File

@@ -0,0 +1,42 @@
<?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\MyBusinessVerifications;
class ServiceBusinessContext extends \Google\Model
{
protected $addressType = PostalAddress::class;
protected $addressDataType = '';
/**
* @param PostalAddress
*/
public function setAddress(PostalAddress $address)
{
$this->address = $address;
}
/**
* @return PostalAddress
*/
public function getAddress()
{
return $this->address;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ServiceBusinessContext::class, 'Google_Service_MyBusinessVerifications_ServiceBusinessContext');

View File

@@ -0,0 +1,116 @@
<?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\MyBusinessVerifications;
class Verification extends \Google\Model
{
/**
* @var string
*/
public $announcement;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $method;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $state;
/**
* @param string
*/
public function setAnnouncement($announcement)
{
$this->announcement = $announcement;
}
/**
* @return string
*/
public function getAnnouncement()
{
return $this->announcement;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setMethod($method)
{
$this->method = $method;
}
/**
* @return string
*/
public function getMethod()
{
return $this->method;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Verification::class, 'Google_Service_MyBusinessVerifications_Verification');

View File

@@ -0,0 +1,112 @@
<?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\MyBusinessVerifications;
class VerificationOption extends \Google\Model
{
protected $addressDataType = AddressVerificationData::class;
protected $addressDataDataType = '';
/**
* @var string
*/
public $announcement;
protected $emailDataType = EmailVerificationData::class;
protected $emailDataDataType = '';
/**
* @var string
*/
public $phoneNumber;
/**
* @var string
*/
public $verificationMethod;
/**
* @param AddressVerificationData
*/
public function setAddressData(AddressVerificationData $addressData)
{
$this->addressData = $addressData;
}
/**
* @return AddressVerificationData
*/
public function getAddressData()
{
return $this->addressData;
}
/**
* @param string
*/
public function setAnnouncement($announcement)
{
$this->announcement = $announcement;
}
/**
* @return string
*/
public function getAnnouncement()
{
return $this->announcement;
}
/**
* @param EmailVerificationData
*/
public function setEmailData(EmailVerificationData $emailData)
{
$this->emailData = $emailData;
}
/**
* @return EmailVerificationData
*/
public function getEmailData()
{
return $this->emailData;
}
/**
* @param string
*/
public function setPhoneNumber($phoneNumber)
{
$this->phoneNumber = $phoneNumber;
}
/**
* @return string
*/
public function getPhoneNumber()
{
return $this->phoneNumber;
}
/**
* @param string
*/
public function setVerificationMethod($verificationMethod)
{
$this->verificationMethod = $verificationMethod;
}
/**
* @return string
*/
public function getVerificationMethod()
{
return $this->verificationMethod;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(VerificationOption::class, 'Google_Service_MyBusinessVerifications_VerificationOption');

View File

@@ -0,0 +1,44 @@
<?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\MyBusinessVerifications;
class VerificationToken extends \Google\Model
{
/**
* @var string
*/
public $tokenString;
/**
* @param string
*/
public function setTokenString($tokenString)
{
$this->tokenString = $tokenString;
}
/**
* @return string
*/
public function getTokenString()
{
return $this->tokenString;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(VerificationToken::class, 'Google_Service_MyBusinessVerifications_VerificationToken');

View File

@@ -0,0 +1,44 @@
<?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\MyBusinessVerifications;
class Verify extends \Google\Model
{
/**
* @var bool
*/
public $hasPendingVerification;
/**
* @param bool
*/
public function setHasPendingVerification($hasPendingVerification)
{
$this->hasPendingVerification = $hasPendingVerification;
}
/**
* @return bool
*/
public function getHasPendingVerification()
{
return $this->hasPendingVerification;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Verify::class, 'Google_Service_MyBusinessVerifications_Verify');

View File

@@ -0,0 +1,148 @@
<?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\MyBusinessVerifications;
class VerifyLocationRequest extends \Google\Model
{
protected $contextType = ServiceBusinessContext::class;
protected $contextDataType = '';
/**
* @var string
*/
public $emailAddress;
/**
* @var string
*/
public $languageCode;
/**
* @var string
*/
public $mailerContact;
/**
* @var string
*/
public $method;
/**
* @var string
*/
public $phoneNumber;
protected $tokenType = VerificationToken::class;
protected $tokenDataType = '';
/**
* @param ServiceBusinessContext
*/
public function setContext(ServiceBusinessContext $context)
{
$this->context = $context;
}
/**
* @return ServiceBusinessContext
*/
public function getContext()
{
return $this->context;
}
/**
* @param string
*/
public function setEmailAddress($emailAddress)
{
$this->emailAddress = $emailAddress;
}
/**
* @return string
*/
public function getEmailAddress()
{
return $this->emailAddress;
}
/**
* @param string
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* @param string
*/
public function setMailerContact($mailerContact)
{
$this->mailerContact = $mailerContact;
}
/**
* @return string
*/
public function getMailerContact()
{
return $this->mailerContact;
}
/**
* @param string
*/
public function setMethod($method)
{
$this->method = $method;
}
/**
* @return string
*/
public function getMethod()
{
return $this->method;
}
/**
* @param string
*/
public function setPhoneNumber($phoneNumber)
{
$this->phoneNumber = $phoneNumber;
}
/**
* @return string
*/
public function getPhoneNumber()
{
return $this->phoneNumber;
}
/**
* @param VerificationToken
*/
public function setToken(VerificationToken $token)
{
$this->token = $token;
}
/**
* @return VerificationToken
*/
public function getToken()
{
return $this->token;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(VerifyLocationRequest::class, 'Google_Service_MyBusinessVerifications_VerifyLocationRequest');

View File

@@ -0,0 +1,42 @@
<?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\MyBusinessVerifications;
class VerifyLocationResponse extends \Google\Model
{
protected $verificationType = Verification::class;
protected $verificationDataType = '';
/**
* @param Verification
*/
public function setVerification(Verification $verification)
{
$this->verification = $verification;
}
/**
* @return Verification
*/
public function getVerification()
{
return $this->verification;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(VerifyLocationResponse::class, 'Google_Service_MyBusinessVerifications_VerifyLocationResponse');

View File

@@ -0,0 +1,126 @@
<?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\MyBusinessVerifications;
class VoiceOfMerchantState extends \Google\Model
{
protected $complyWithGuidelinesType = ComplyWithGuidelines::class;
protected $complyWithGuidelinesDataType = '';
/**
* @var bool
*/
public $hasBusinessAuthority;
/**
* @var bool
*/
public $hasVoiceOfMerchant;
protected $resolveOwnershipConflictType = ResolveOwnershipConflict::class;
protected $resolveOwnershipConflictDataType = '';
protected $verifyType = Verify::class;
protected $verifyDataType = '';
protected $waitForVoiceOfMerchantType = WaitForVoiceOfMerchant::class;
protected $waitForVoiceOfMerchantDataType = '';
/**
* @param ComplyWithGuidelines
*/
public function setComplyWithGuidelines(ComplyWithGuidelines $complyWithGuidelines)
{
$this->complyWithGuidelines = $complyWithGuidelines;
}
/**
* @return ComplyWithGuidelines
*/
public function getComplyWithGuidelines()
{
return $this->complyWithGuidelines;
}
/**
* @param bool
*/
public function setHasBusinessAuthority($hasBusinessAuthority)
{
$this->hasBusinessAuthority = $hasBusinessAuthority;
}
/**
* @return bool
*/
public function getHasBusinessAuthority()
{
return $this->hasBusinessAuthority;
}
/**
* @param bool
*/
public function setHasVoiceOfMerchant($hasVoiceOfMerchant)
{
$this->hasVoiceOfMerchant = $hasVoiceOfMerchant;
}
/**
* @return bool
*/
public function getHasVoiceOfMerchant()
{
return $this->hasVoiceOfMerchant;
}
/**
* @param ResolveOwnershipConflict
*/
public function setResolveOwnershipConflict(ResolveOwnershipConflict $resolveOwnershipConflict)
{
$this->resolveOwnershipConflict = $resolveOwnershipConflict;
}
/**
* @return ResolveOwnershipConflict
*/
public function getResolveOwnershipConflict()
{
return $this->resolveOwnershipConflict;
}
/**
* @param Verify
*/
public function setVerify(Verify $verify)
{
$this->verify = $verify;
}
/**
* @return Verify
*/
public function getVerify()
{
return $this->verify;
}
/**
* @param WaitForVoiceOfMerchant
*/
public function setWaitForVoiceOfMerchant(WaitForVoiceOfMerchant $waitForVoiceOfMerchant)
{
$this->waitForVoiceOfMerchant = $waitForVoiceOfMerchant;
}
/**
* @return WaitForVoiceOfMerchant
*/
public function getWaitForVoiceOfMerchant()
{
return $this->waitForVoiceOfMerchant;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(VoiceOfMerchantState::class, 'Google_Service_MyBusinessVerifications_VoiceOfMerchantState');

View File

@@ -0,0 +1,25 @@
<?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\MyBusinessVerifications;
class WaitForVoiceOfMerchant extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(WaitForVoiceOfMerchant::class, 'Google_Service_MyBusinessVerifications_WaitForVoiceOfMerchant');