gestione documentale avanzata 1 parte

This commit is contained in:
2026-05-28 09:34:28 +02:00
parent 3471befb1a
commit f2b0833b90
34482 changed files with 4312269 additions and 546 deletions
@@ -0,0 +1,90 @@
<?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 = '';
/**
* Merchant's business name.
*
* @var string
*/
public $business;
/**
* Expected number of days it takes to deliver a postcard to the address's
* region.
*
* @var int
*/
public $expectedDeliveryDaysRegion;
/**
* Address that a postcard can be sent to.
*
* @param PostalAddress $address
*/
public function setAddress(PostalAddress $address)
{
$this->address = $address;
}
/**
* @return PostalAddress
*/
public function getAddress()
{
return $this->address;
}
/**
* Merchant's business name.
*
* @param string $business
*/
public function setBusiness($business)
{
$this->business = $business;
}
/**
* @return string
*/
public function getBusiness()
{
return $this->business;
}
/**
* Expected number of days it takes to deliver a postcard to the address's
* region.
*
* @param int $expectedDeliveryDaysRegion
*/
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');
@@ -0,0 +1,48 @@
<?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
{
/**
* Required. PIN code received by the merchant to complete the verification.
*
* @var string
*/
public $pin;
/**
* Required. PIN code received by the merchant to complete the verification.
*
* @param string $pin
*/
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');
@@ -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 CompleteVerificationResponse extends \Google\Model
{
protected $verificationType = Verification::class;
protected $verificationDataType = '';
/**
* The completed verification.
*
* @param Verification $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');
@@ -0,0 +1,65 @@
<?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
{
/**
* Not specified.
*/
public const RECOMMENDATION_REASON_RECOMMENDATION_REASON_UNSPECIFIED = 'RECOMMENDATION_REASON_UNSPECIFIED';
/**
* The business location is suspended. To fix this issue, consult the [Help
* Center article](https://support.google.com/business/answer/4569145).
*/
public const RECOMMENDATION_REASON_BUSINESS_LOCATION_SUSPENDED = 'BUSINESS_LOCATION_SUSPENDED';
/**
* The business location is disabled. To fix this issue, consult the [Help
* Center article](https://support.google.com/business/answer/9334246).
*/
public const RECOMMENDATION_REASON_BUSINESS_LOCATION_DISABLED = 'BUSINESS_LOCATION_DISABLED';
/**
* The reason why the location is being recommended to comply with guidelines.
*
* @var string
*/
public $recommendationReason;
/**
* The reason why the location is being recommended to comply with guidelines.
*
* Accepted values: RECOMMENDATION_REASON_UNSPECIFIED,
* BUSINESS_LOCATION_SUSPENDED, BUSINESS_LOCATION_DISABLED
*
* @param self::RECOMMENDATION_REASON_* $recommendationReason
*/
public function setRecommendationReason($recommendationReason)
{
$this->recommendationReason = $recommendationReason;
}
/**
* @return self::RECOMMENDATION_REASON_*
*/
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');
@@ -0,0 +1,92 @@
<?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
{
/**
* Domain name in the email address. e.g. "gmail.com" in foo@gmail.com
*
* @var string
*/
public $domain;
/**
* Whether client is allowed to provide a different user name.
*
* @var bool
*/
public $isUserNameEditable;
/**
* User name in the email address. e.g. "foo" in foo@gmail.com
*
* @var string
*/
public $user;
/**
* Domain name in the email address. e.g. "gmail.com" in foo@gmail.com
*
* @param string $domain
*/
public function setDomain($domain)
{
$this->domain = $domain;
}
/**
* @return string
*/
public function getDomain()
{
return $this->domain;
}
/**
* Whether client is allowed to provide a different user name.
*
* @param bool $isUserNameEditable
*/
public function setIsUserNameEditable($isUserNameEditable)
{
$this->isUserNameEditable = $isUserNameEditable;
}
/**
* @return bool
*/
public function getIsUserNameEditable()
{
return $this->isUserNameEditable;
}
/**
* User name in the email address. e.g. "foo" in foo@gmail.com
*
* @param string $user
*/
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');
@@ -0,0 +1,72 @@
<?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 = '';
/**
* Required. The BCP 47 language code representing the language that is to be
* used for the verification process. Available options vary by language.
*
* @var string
*/
public $languageCode;
/**
* Optional. Extra context information for the verification of service
* businesses. Can only be applied to the locations whose business type is
* CUSTOMER_LOCATION_ONLY. Specifying an accurate address could enable more
* options. INVALID_ARGUMENT will be thrown if it is set for other business
* types of locations.
*
* @param ServiceBusinessContext $context
*/
public function setContext(ServiceBusinessContext $context)
{
$this->context = $context;
}
/**
* @return ServiceBusinessContext
*/
public function getContext()
{
return $this->context;
}
/**
* Required. The BCP 47 language code representing the language that is to be
* used for the verification process. Available options vary by language.
*
* @param string $languageCode
*/
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');
@@ -0,0 +1,45 @@
<?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';
/**
* The available verification options.
*
* @param VerificationOption[] $options
*/
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');
@@ -0,0 +1,79 @@
<?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 GenerateInstantVerificationTokenRequest extends \Google\Model
{
protected $locationDataType = LocationData::class;
protected $locationDataDataType = '';
/**
* The location identifier associated with an unverified listing. This is the
* location id generated at the time that the listing was originally created.
* It is the final portion of a location resource name as generated by the
* Google My Business API. Note: the caller must be an owner or manager of
* this listing in order to generate a verification token. See the [location
* resource](/my-business/reference/rest/v4/accounts.locations) documentation
* for more information.
*
* @var string
*/
public $locationId;
/**
* Immutable. The address and other details of the location to generate an
* instant verification token for.
*
* @param LocationData $locationData
*/
public function setLocationData(LocationData $locationData)
{
$this->locationData = $locationData;
}
/**
* @return LocationData
*/
public function getLocationData()
{
return $this->locationData;
}
/**
* The location identifier associated with an unverified listing. This is the
* location id generated at the time that the listing was originally created.
* It is the final portion of a location resource name as generated by the
* Google My Business API. Note: the caller must be an owner or manager of
* this listing in order to generate a verification token. See the [location
* resource](/my-business/reference/rest/v4/accounts.locations) documentation
* for more information.
*
* @param string $locationId
*/
public function setLocationId($locationId)
{
$this->locationId = $locationId;
}
/**
* @return string
*/
public function getLocationId()
{
return $this->locationId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GenerateInstantVerificationTokenRequest::class, 'Google_Service_MyBusinessVerifications_GenerateInstantVerificationTokenRequest');
@@ -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;
class GenerateInstantVerificationTokenResponse extends \Google\Model
{
/**
* Default value, will result in errors.
*/
public const RESULT_RESULT_UNSPECIFIED = 'RESULT_UNSPECIFIED';
/**
* The instant verification token was generated successfully.
*/
public const RESULT_SUCCEEDED = 'SUCCEEDED';
/**
* The instant verification token was not generated..
*/
public const RESULT_FAILED = 'FAILED';
/**
* The generated instant verification token.
*
* @var string
*/
public $instantVerificationToken;
/**
* Output only. The result of the instant verification token generation.
*
* @var string
*/
public $result;
/**
* The generated instant verification token.
*
* @param string $instantVerificationToken
*/
public function setInstantVerificationToken($instantVerificationToken)
{
$this->instantVerificationToken = $instantVerificationToken;
}
/**
* @return string
*/
public function getInstantVerificationToken()
{
return $this->instantVerificationToken;
}
/**
* Output only. The result of the instant verification token generation.
*
* Accepted values: RESULT_UNSPECIFIED, SUCCEEDED, FAILED
*
* @param self::RESULT_* $result
*/
public function setResult($result)
{
$this->result = $result;
}
/**
* @return self::RESULT_*
*/
public function getResult()
{
return $this->result;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GenerateInstantVerificationTokenResponse::class, 'Google_Service_MyBusinessVerifications_GenerateInstantVerificationTokenResponse');
@@ -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');
@@ -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');
@@ -0,0 +1,73 @@
<?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';
/**
* If the number of verifications exceeded the requested page size, this field
* will be populated with a token to fetch the next page of verification on a
* subsequent call. If there are no more attributes, this field will not be
* present in the response.
*
* @var string
*/
public $nextPageToken;
protected $verificationsType = Verification::class;
protected $verificationsDataType = 'array';
/**
* If the number of verifications exceeded the requested page size, this field
* will be populated with a token to fetch the next page of verification on a
* subsequent call. If there are no more attributes, this field will not be
* present in the response.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* List of the verifications.
*
* @param Verification[] $verifications
*/
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');
@@ -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');
@@ -0,0 +1,87 @@
<?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 LocationData extends \Google\Model
{
protected $addressType = PostalAddress::class;
protected $addressDataType = '';
/**
* Immutable. Name should reflect your business's real-world name, as used
* consistently on your storefront, website, and stationery, and as known to
* customers. Any additional information, when relevant, can be included in
* other fields of the resource (for example, `Address`, `Categories`). Don't
* add unnecessary information to your name (for example, prefer "Google" over
* "Google Inc. - Mountain View Corporate Headquarters"). Don't include
* marketing taglines, store codes, special characters, hours or closed/open
* status, phone numbers, website URLs, service/product information,
* location/address or directions, or containment information (for example,
* "Chase ATM in Duane Reade").
*
* @var string
*/
public $name;
/**
* Immutable. A precise, accurate address to describe your business location.
* PO boxes or mailboxes located at remote locations are not acceptable. At
* this time, you can specify a maximum of five `address_lines` values in the
* address.
*
* @param PostalAddress $address
*/
public function setAddress(PostalAddress $address)
{
$this->address = $address;
}
/**
* @return PostalAddress
*/
public function getAddress()
{
return $this->address;
}
/**
* Immutable. Name should reflect your business's real-world name, as used
* consistently on your storefront, website, and stationery, and as known to
* customers. Any additional information, when relevant, can be included in
* other fields of the resource (for example, `Address`, `Categories`). Don't
* add unnecessary information to your name (for example, prefer "Google" over
* "Google Inc. - Mountain View Corporate Headquarters"). Don't include
* marketing taglines, store codes, special characters, hours or closed/open
* status, phone numbers, website URLs, service/product information,
* location/address or directions, or containment information (for example,
* "Chase ATM in Duane Reade").
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LocationData::class, 'Google_Service_MyBusinessVerifications_LocationData');
@@ -0,0 +1,365 @@
<?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';
/**
* Unstructured address lines describing the lower levels of an address.
* Because values in `address_lines` do not have type information and may
* sometimes contain multiple values in a single field (for example, "Austin,
* TX"), it is important that the line order is clear. The order of address
* lines should be "envelope order" for the country or region of the address.
* In places where this can vary (for example, Japan), `address_language` is
* used to make it explicit (for example, "ja" for large-to-small ordering and
* "ja-Latn" or "en" for small-to-large). In this way, the most specific line
* of an address can be selected based on the language. The minimum permitted
* structural representation of an address consists of a `region_code` with
* all remaining information placed in the `address_lines`. It would be
* possible to format such an address very approximately without geocoding,
* but no semantic reasoning could be made about any of the address components
* until it was at least partially resolved. Creating an address only
* containing a `region_code` and `address_lines` and then geocoding is the
* recommended way to handle completely unstructured addresses (as opposed to
* guessing which parts of the address should be localities or administrative
* areas).
*
* @var string[]
*/
public $addressLines;
/**
* Optional. Highest administrative subdivision which is used for postal
* addresses of a country or region. For example, this can be a state, a
* province, an oblast, or a prefecture. For Spain, this is the province and
* not the autonomous community (for example, "Barcelona" and not
* "Catalonia"). Many countries don't use an administrative area in postal
* addresses. For example, in Switzerland, this should be left unpopulated.
*
* @var string
*/
public $administrativeArea;
/**
* Optional. BCP-47 language code of the contents of this address (if known).
* This is often the UI language of the input form or is expected to match one
* of the languages used in the address' country/region, or their
* transliterated equivalents. This can affect formatting in certain
* countries, but is not critical to the correctness of the data and will
* never affect any validation or other non-formatting related operations. If
* this value is not known, it should be omitted (rather than specifying a
* possibly incorrect default). Examples: "zh-Hant", "ja", "ja-Latn", "en".
*
* @var string
*/
public $languageCode;
/**
* Optional. Generally refers to the city or town portion of the address.
* Examples: US city, IT comune, UK post town. In regions of the world where
* localities are not well defined or do not fit into this structure well,
* leave `locality` empty and use `address_lines`.
*
* @var string
*/
public $locality;
/**
* Optional. The name of the organization at the address.
*
* @var string
*/
public $organization;
/**
* Optional. Postal code of the address. Not all countries use or require
* postal codes to be present, but where they are used, they may trigger
* additional validation with other parts of the address (for example, state
* or zip code validation in the United States).
*
* @var string
*/
public $postalCode;
/**
* Optional. The recipient at the address. This field may, under certain
* circumstances, contain multiline information. For example, it might contain
* "care of" information.
*
* @var string[]
*/
public $recipients;
/**
* Required. CLDR region code of the country/region of the address. This is
* never inferred and it is up to the user to ensure the value is correct. See
* https://cldr.unicode.org/ and https://www.unicode.org/cldr/charts/30/supple
* mental/territory_information.html for details. Example: "CH" for
* Switzerland.
*
* @var string
*/
public $regionCode;
/**
* The schema revision of the `PostalAddress`. This must be set to 0, which is
* the latest revision. All new revisions **must** be backward compatible with
* old revisions.
*
* @var int
*/
public $revision;
/**
* Optional. Additional, country-specific, sorting code. This is not used in
* most regions. Where it is used, the value is either a string like "CEDEX",
* optionally followed by a number (for example, "CEDEX 7"), or just a number
* alone, representing the "sector code" (Jamaica), "delivery area indicator"
* (Malawi) or "post office indicator" (Côte d'Ivoire).
*
* @var string
*/
public $sortingCode;
/**
* Optional. Sublocality of the address. For example, this can be a
* neighborhood, borough, or district.
*
* @var string
*/
public $sublocality;
/**
* Unstructured address lines describing the lower levels of an address.
* Because values in `address_lines` do not have type information and may
* sometimes contain multiple values in a single field (for example, "Austin,
* TX"), it is important that the line order is clear. The order of address
* lines should be "envelope order" for the country or region of the address.
* In places where this can vary (for example, Japan), `address_language` is
* used to make it explicit (for example, "ja" for large-to-small ordering and
* "ja-Latn" or "en" for small-to-large). In this way, the most specific line
* of an address can be selected based on the language. The minimum permitted
* structural representation of an address consists of a `region_code` with
* all remaining information placed in the `address_lines`. It would be
* possible to format such an address very approximately without geocoding,
* but no semantic reasoning could be made about any of the address components
* until it was at least partially resolved. Creating an address only
* containing a `region_code` and `address_lines` and then geocoding is the
* recommended way to handle completely unstructured addresses (as opposed to
* guessing which parts of the address should be localities or administrative
* areas).
*
* @param string[] $addressLines
*/
public function setAddressLines($addressLines)
{
$this->addressLines = $addressLines;
}
/**
* @return string[]
*/
public function getAddressLines()
{
return $this->addressLines;
}
/**
* Optional. Highest administrative subdivision which is used for postal
* addresses of a country or region. For example, this can be a state, a
* province, an oblast, or a prefecture. For Spain, this is the province and
* not the autonomous community (for example, "Barcelona" and not
* "Catalonia"). Many countries don't use an administrative area in postal
* addresses. For example, in Switzerland, this should be left unpopulated.
*
* @param string $administrativeArea
*/
public function setAdministrativeArea($administrativeArea)
{
$this->administrativeArea = $administrativeArea;
}
/**
* @return string
*/
public function getAdministrativeArea()
{
return $this->administrativeArea;
}
/**
* Optional. BCP-47 language code of the contents of this address (if known).
* This is often the UI language of the input form or is expected to match one
* of the languages used in the address' country/region, or their
* transliterated equivalents. This can affect formatting in certain
* countries, but is not critical to the correctness of the data and will
* never affect any validation or other non-formatting related operations. If
* this value is not known, it should be omitted (rather than specifying a
* possibly incorrect default). Examples: "zh-Hant", "ja", "ja-Latn", "en".
*
* @param string $languageCode
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* Optional. Generally refers to the city or town portion of the address.
* Examples: US city, IT comune, UK post town. In regions of the world where
* localities are not well defined or do not fit into this structure well,
* leave `locality` empty and use `address_lines`.
*
* @param string $locality
*/
public function setLocality($locality)
{
$this->locality = $locality;
}
/**
* @return string
*/
public function getLocality()
{
return $this->locality;
}
/**
* Optional. The name of the organization at the address.
*
* @param string $organization
*/
public function setOrganization($organization)
{
$this->organization = $organization;
}
/**
* @return string
*/
public function getOrganization()
{
return $this->organization;
}
/**
* Optional. Postal code of the address. Not all countries use or require
* postal codes to be present, but where they are used, they may trigger
* additional validation with other parts of the address (for example, state
* or zip code validation in the United States).
*
* @param string $postalCode
*/
public function setPostalCode($postalCode)
{
$this->postalCode = $postalCode;
}
/**
* @return string
*/
public function getPostalCode()
{
return $this->postalCode;
}
/**
* Optional. The recipient at the address. This field may, under certain
* circumstances, contain multiline information. For example, it might contain
* "care of" information.
*
* @param string[] $recipients
*/
public function setRecipients($recipients)
{
$this->recipients = $recipients;
}
/**
* @return string[]
*/
public function getRecipients()
{
return $this->recipients;
}
/**
* Required. CLDR region code of the country/region of the address. This is
* never inferred and it is up to the user to ensure the value is correct. See
* https://cldr.unicode.org/ and https://www.unicode.org/cldr/charts/30/supple
* mental/territory_information.html for details. Example: "CH" for
* Switzerland.
*
* @param string $regionCode
*/
public function setRegionCode($regionCode)
{
$this->regionCode = $regionCode;
}
/**
* @return string
*/
public function getRegionCode()
{
return $this->regionCode;
}
/**
* The schema revision of the `PostalAddress`. This must be set to 0, which is
* the latest revision. All new revisions **must** be backward compatible with
* old revisions.
*
* @param int $revision
*/
public function setRevision($revision)
{
$this->revision = $revision;
}
/**
* @return int
*/
public function getRevision()
{
return $this->revision;
}
/**
* Optional. Additional, country-specific, sorting code. This is not used in
* most regions. Where it is used, the value is either a string like "CEDEX",
* optionally followed by a number (for example, "CEDEX 7"), or just a number
* alone, representing the "sector code" (Jamaica), "delivery area indicator"
* (Malawi) or "post office indicator" (Côte d'Ivoire).
*
* @param string $sortingCode
*/
public function setSortingCode($sortingCode)
{
$this->sortingCode = $sortingCode;
}
/**
* @return string
*/
public function getSortingCode()
{
return $this->sortingCode;
}
/**
* Optional. Sublocality of the address. For example, this can be a
* neighborhood, borough, or district.
*
* @param string $sublocality
*/
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');
@@ -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');
@@ -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');
@@ -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');
@@ -0,0 +1,51 @@
<?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\GenerateInstantVerificationTokenRequest;
use Google\Service\MyBusinessVerifications\GenerateInstantVerificationTokenResponse;
/**
* The "verificationTokens" collection of methods.
* Typical usage is:
* <code>
* $mybusinessverificationsService = new Google\Service\MyBusinessVerifications(...);
* $verificationTokens = $mybusinessverificationsService->verificationTokens;
* </code>
*/
class VerificationTokens extends \Google\Service\Resource
{
/**
* Generate a token for the provided location data to verify the location.
* (verificationTokens.generate)
*
* @param GenerateInstantVerificationTokenRequest $postBody
* @param array $optParams Optional parameters.
* @return GenerateInstantVerificationTokenResponse
* @throws \Google\Service\Exception
*/
public function generate(GenerateInstantVerificationTokenRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('generate', [$params], GenerateInstantVerificationTokenResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(VerificationTokens::class, 'Google_Service_MyBusinessVerifications_Resource_VerificationTokens');
@@ -0,0 +1,45 @@
<?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 = '';
/**
* The verification address of the location. It is used to either enable more
* verification options or send a postcard.
*
* @param PostalAddress $address
*/
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');
@@ -0,0 +1,190 @@
<?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
{
/**
* Default value, will result in errors.
*/
public const METHOD_VERIFICATION_METHOD_UNSPECIFIED = 'VERIFICATION_METHOD_UNSPECIFIED';
/**
* Send a postcard with a verification PIN to a specific mailing address. The
* PIN is used to complete verification with Google.
*/
public const METHOD_ADDRESS = 'ADDRESS';
/**
* Send an email with a verification PIN to a specific email address. The PIN
* is used to complete verification with Google.
*/
public const METHOD_EMAIL = 'EMAIL';
/**
* Make a phone call with a verification PIN to a specific phone number. The
* PIN is used to complete verification with Google.
*/
public const METHOD_PHONE_CALL = 'PHONE_CALL';
/**
* Send an SMS with a verification PIN to a specific phone number. The PIN is
* used to complete verification with Google.
*/
public const METHOD_SMS = 'SMS';
/**
* Verify the location without additional user action. This option may not be
* available for all locations.
*/
public const METHOD_AUTO = 'AUTO';
/**
* Verify the location via a trusted partner.
*/
public const METHOD_TRUSTED_PARTNER = 'TRUSTED_PARTNER';
/**
* Default value, will result in errors.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The verification is pending.
*/
public const STATE_PENDING = 'PENDING';
/**
* The verification is completed.
*/
public const STATE_COMPLETED = 'COMPLETED';
/**
* The verification is failed.
*/
public const STATE_FAILED = 'FAILED';
/**
* Optional. Response announcement set only if the method is VETTED_PARTNER.
*
* @var string
*/
public $announcement;
/**
* The timestamp when the verification is requested.
*
* @var string
*/
public $createTime;
/**
* The method of the verification.
*
* @var string
*/
public $method;
/**
* Resource name of the verification.
*
* @var string
*/
public $name;
/**
* The state of the verification.
*
* @var string
*/
public $state;
/**
* Optional. Response announcement set only if the method is VETTED_PARTNER.
*
* @param string $announcement
*/
public function setAnnouncement($announcement)
{
$this->announcement = $announcement;
}
/**
* @return string
*/
public function getAnnouncement()
{
return $this->announcement;
}
/**
* The timestamp when the verification is requested.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* The method of the verification.
*
* Accepted values: VERIFICATION_METHOD_UNSPECIFIED, ADDRESS, EMAIL,
* PHONE_CALL, SMS, AUTO, TRUSTED_PARTNER
*
* @param self::METHOD_* $method
*/
public function setMethod($method)
{
$this->method = $method;
}
/**
* @return self::METHOD_*
*/
public function getMethod()
{
return $this->method;
}
/**
* Resource name of the verification.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The state of the verification.
*
* Accepted values: STATE_UNSPECIFIED, PENDING, COMPLETED, FAILED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
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');
@@ -0,0 +1,166 @@
<?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
{
/**
* Default value, will result in errors.
*/
public const VERIFICATION_METHOD_VERIFICATION_METHOD_UNSPECIFIED = 'VERIFICATION_METHOD_UNSPECIFIED';
/**
* Send a postcard with a verification PIN to a specific mailing address. The
* PIN is used to complete verification with Google.
*/
public const VERIFICATION_METHOD_ADDRESS = 'ADDRESS';
/**
* Send an email with a verification PIN to a specific email address. The PIN
* is used to complete verification with Google.
*/
public const VERIFICATION_METHOD_EMAIL = 'EMAIL';
/**
* Make a phone call with a verification PIN to a specific phone number. The
* PIN is used to complete verification with Google.
*/
public const VERIFICATION_METHOD_PHONE_CALL = 'PHONE_CALL';
/**
* Send an SMS with a verification PIN to a specific phone number. The PIN is
* used to complete verification with Google.
*/
public const VERIFICATION_METHOD_SMS = 'SMS';
/**
* Verify the location without additional user action. This option may not be
* available for all locations.
*/
public const VERIFICATION_METHOD_AUTO = 'AUTO';
/**
* Verify the location via a trusted partner.
*/
public const VERIFICATION_METHOD_TRUSTED_PARTNER = 'TRUSTED_PARTNER';
protected $addressDataType = AddressVerificationData::class;
protected $addressDataDataType = '';
/**
* Set only if the method is VETTED_PARTNER.
*
* @var string
*/
public $announcement;
protected $emailDataType = EmailVerificationData::class;
protected $emailDataDataType = '';
/**
* Set only if the method is PHONE_CALL or SMS. Phone number that the PIN will
* be sent to.
*
* @var string
*/
public $phoneNumber;
/**
* Method to verify the location.
*
* @var string
*/
public $verificationMethod;
/**
* Set only if the method is MAIL.
*
* @param AddressVerificationData $addressData
*/
public function setAddressData(AddressVerificationData $addressData)
{
$this->addressData = $addressData;
}
/**
* @return AddressVerificationData
*/
public function getAddressData()
{
return $this->addressData;
}
/**
* Set only if the method is VETTED_PARTNER.
*
* @param string $announcement
*/
public function setAnnouncement($announcement)
{
$this->announcement = $announcement;
}
/**
* @return string
*/
public function getAnnouncement()
{
return $this->announcement;
}
/**
* Set only if the method is EMAIL.
*
* @param EmailVerificationData $emailData
*/
public function setEmailData(EmailVerificationData $emailData)
{
$this->emailData = $emailData;
}
/**
* @return EmailVerificationData
*/
public function getEmailData()
{
return $this->emailData;
}
/**
* Set only if the method is PHONE_CALL or SMS. Phone number that the PIN will
* be sent to.
*
* @param string $phoneNumber
*/
public function setPhoneNumber($phoneNumber)
{
$this->phoneNumber = $phoneNumber;
}
/**
* @return string
*/
public function getPhoneNumber()
{
return $this->phoneNumber;
}
/**
* Method to verify the location.
*
* Accepted values: VERIFICATION_METHOD_UNSPECIFIED, ADDRESS, EMAIL,
* PHONE_CALL, SMS, AUTO, TRUSTED_PARTNER
*
* @param self::VERIFICATION_METHOD_* $verificationMethod
*/
public function setVerificationMethod($verificationMethod)
{
$this->verificationMethod = $verificationMethod;
}
/**
* @return self::VERIFICATION_METHOD_*
*/
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');
@@ -0,0 +1,48 @@
<?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
{
/**
* The token string.
*
* @var string
*/
public $tokenString;
/**
* The token string.
*
* @param string $tokenString
*/
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');
@@ -0,0 +1,50 @@
<?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
{
/**
* Indicates whether a verification process has already started, and can be
* completed by the location.
*
* @var bool
*/
public $hasPendingVerification;
/**
* Indicates whether a verification process has already started, and can be
* completed by the location.
*
* @param bool $hasPendingVerification
*/
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');
@@ -0,0 +1,256 @@
<?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
{
/**
* Default value, will result in errors.
*/
public const METHOD_VERIFICATION_METHOD_UNSPECIFIED = 'VERIFICATION_METHOD_UNSPECIFIED';
/**
* Send a postcard with a verification PIN to a specific mailing address. The
* PIN is used to complete verification with Google.
*/
public const METHOD_ADDRESS = 'ADDRESS';
/**
* Send an email with a verification PIN to a specific email address. The PIN
* is used to complete verification with Google.
*/
public const METHOD_EMAIL = 'EMAIL';
/**
* Make a phone call with a verification PIN to a specific phone number. The
* PIN is used to complete verification with Google.
*/
public const METHOD_PHONE_CALL = 'PHONE_CALL';
/**
* Send an SMS with a verification PIN to a specific phone number. The PIN is
* used to complete verification with Google.
*/
public const METHOD_SMS = 'SMS';
/**
* Verify the location without additional user action. This option may not be
* available for all locations.
*/
public const METHOD_AUTO = 'AUTO';
/**
* Verify the location via a trusted partner.
*/
public const METHOD_TRUSTED_PARTNER = 'TRUSTED_PARTNER';
protected $contextType = ServiceBusinessContext::class;
protected $contextDataType = '';
/**
* Optional. The input for EMAIL method. Email address where the PIN should be
* sent to. An email address is accepted only if it is one of the addresses
* provided by FetchVerificationOptions. If the EmailVerificationData has
* is_user_name_editable set to true, the client may specify a different user
* name (local-part) but must match the domain name.
*
* @var string
*/
public $emailAddress;
/**
* Optional. The BCP 47 language code representing the language that is to be
* used for the verification process.
*
* @var string
*/
public $languageCode;
/**
* Optional. The input for ADDRESS method. Contact name the mail should be
* sent to.
*
* @var string
*/
public $mailerContact;
/**
* Required. Verification method.
*
* @var string
*/
public $method;
/**
* Optional. The input for PHONE_CALL/SMS method The phone number that should
* be called or be sent SMS to. It must be one of the phone numbers in the
* eligible options.
*
* @var string
*/
public $phoneNumber;
protected $tokenType = VerificationToken::class;
protected $tokenDataType = '';
/**
* The input for TRUSTED_PARTNER method The verification token that is
* associated to the location.
*
* @var string
*/
public $trustedPartnerToken;
/**
* Optional. Extra context information for the verification of service
* businesses. It is only required for the locations whose business type is
* CUSTOMER_LOCATION_ONLY. For ADDRESS verification, the address will be used
* to send out postcard. For other methods, it should be the same as the one
* that is passed to GetVerificationOptions. INVALID_ARGUMENT will be thrown
* if it is set for other types of business locations.
*
* @param ServiceBusinessContext $context
*/
public function setContext(ServiceBusinessContext $context)
{
$this->context = $context;
}
/**
* @return ServiceBusinessContext
*/
public function getContext()
{
return $this->context;
}
/**
* Optional. The input for EMAIL method. Email address where the PIN should be
* sent to. An email address is accepted only if it is one of the addresses
* provided by FetchVerificationOptions. If the EmailVerificationData has
* is_user_name_editable set to true, the client may specify a different user
* name (local-part) but must match the domain name.
*
* @param string $emailAddress
*/
public function setEmailAddress($emailAddress)
{
$this->emailAddress = $emailAddress;
}
/**
* @return string
*/
public function getEmailAddress()
{
return $this->emailAddress;
}
/**
* Optional. The BCP 47 language code representing the language that is to be
* used for the verification process.
*
* @param string $languageCode
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* Optional. The input for ADDRESS method. Contact name the mail should be
* sent to.
*
* @param string $mailerContact
*/
public function setMailerContact($mailerContact)
{
$this->mailerContact = $mailerContact;
}
/**
* @return string
*/
public function getMailerContact()
{
return $this->mailerContact;
}
/**
* Required. Verification method.
*
* Accepted values: VERIFICATION_METHOD_UNSPECIFIED, ADDRESS, EMAIL,
* PHONE_CALL, SMS, AUTO, TRUSTED_PARTNER
*
* @param self::METHOD_* $method
*/
public function setMethod($method)
{
$this->method = $method;
}
/**
* @return self::METHOD_*
*/
public function getMethod()
{
return $this->method;
}
/**
* Optional. The input for PHONE_CALL/SMS method The phone number that should
* be called or be sent SMS to. It must be one of the phone numbers in the
* eligible options.
*
* @param string $phoneNumber
*/
public function setPhoneNumber($phoneNumber)
{
$this->phoneNumber = $phoneNumber;
}
/**
* @return string
*/
public function getPhoneNumber()
{
return $this->phoneNumber;
}
/**
* Optional. The input for VETTED_PARTNER method available to select
* [partners.](https://support.google.com/business/answer/7674102) The input
* is not needed for a vetted account. Token that is associated to the
* location. Token that is associated to the location.
*
* @param VerificationToken $token
*/
public function setToken(VerificationToken $token)
{
$this->token = $token;
}
/**
* @return VerificationToken
*/
public function getToken()
{
return $this->token;
}
/**
* The input for TRUSTED_PARTNER method The verification token that is
* associated to the location.
*
* @param string $trustedPartnerToken
*/
public function setTrustedPartnerToken($trustedPartnerToken)
{
$this->trustedPartnerToken = $trustedPartnerToken;
}
/**
* @return string
*/
public function getTrustedPartnerToken()
{
return $this->trustedPartnerToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(VerifyLocationRequest::class, 'Google_Service_MyBusinessVerifications_VerifyLocationRequest');
@@ -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 VerifyLocationResponse extends \Google\Model
{
protected $verificationType = Verification::class;
protected $verificationDataType = '';
/**
* The created verification request.
*
* @param Verification $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');
@@ -0,0 +1,158 @@
<?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 = '';
/**
* Indicates whether the location has the authority (ownership) over the
* business on Google. If true, another location cannot take over and become
* the dominant listing on Maps. However, edits will not become live unless
* Voice of Merchant is gained (i.e. has_voice_of_merchant is true).
*
* @var bool
*/
public $hasBusinessAuthority;
/**
* Indicates whether the location is in good standing and has control over the
* business on Google. Any edits made to the location will propagate to Maps
* after passing the review phase.
*
* @var bool
*/
public $hasVoiceOfMerchant;
protected $resolveOwnershipConflictType = ResolveOwnershipConflict::class;
protected $resolveOwnershipConflictDataType = '';
protected $verifyType = Verify::class;
protected $verifyDataType = '';
protected $waitForVoiceOfMerchantType = WaitForVoiceOfMerchant::class;
protected $waitForVoiceOfMerchantDataType = '';
/**
* The location fails to comply with our
* [guidelines](https://support.google.com/business/answer/3038177) and
* requires additional steps for reinstatement. To fix this issue, consult the
* [Help Center Article](https://support.google.com/business/answer/4569145).
*
* @param ComplyWithGuidelines $complyWithGuidelines
*/
public function setComplyWithGuidelines(ComplyWithGuidelines $complyWithGuidelines)
{
$this->complyWithGuidelines = $complyWithGuidelines;
}
/**
* @return ComplyWithGuidelines
*/
public function getComplyWithGuidelines()
{
return $this->complyWithGuidelines;
}
/**
* Indicates whether the location has the authority (ownership) over the
* business on Google. If true, another location cannot take over and become
* the dominant listing on Maps. However, edits will not become live unless
* Voice of Merchant is gained (i.e. has_voice_of_merchant is true).
*
* @param bool $hasBusinessAuthority
*/
public function setHasBusinessAuthority($hasBusinessAuthority)
{
$this->hasBusinessAuthority = $hasBusinessAuthority;
}
/**
* @return bool
*/
public function getHasBusinessAuthority()
{
return $this->hasBusinessAuthority;
}
/**
* Indicates whether the location is in good standing and has control over the
* business on Google. Any edits made to the location will propagate to Maps
* after passing the review phase.
*
* @param bool $hasVoiceOfMerchant
*/
public function setHasVoiceOfMerchant($hasVoiceOfMerchant)
{
$this->hasVoiceOfMerchant = $hasVoiceOfMerchant;
}
/**
* @return bool
*/
public function getHasVoiceOfMerchant()
{
return $this->hasVoiceOfMerchant;
}
/**
* This location duplicates another location that is in good standing. If you
* have access to the location in good standing, use that location's id to
* perform operations. Otherwise, request access from the current owner.
*
* @param ResolveOwnershipConflict $resolveOwnershipConflict
*/
public function setResolveOwnershipConflict(ResolveOwnershipConflict $resolveOwnershipConflict)
{
$this->resolveOwnershipConflict = $resolveOwnershipConflict;
}
/**
* @return ResolveOwnershipConflict
*/
public function getResolveOwnershipConflict()
{
return $this->resolveOwnershipConflict;
}
/**
* Start or continue the verification process.
*
* @param Verify $verify
*/
public function setVerify(Verify $verify)
{
$this->verify = $verify;
}
/**
* @return Verify
*/
public function getVerify()
{
return $this->verify;
}
/**
* Wait to gain Voice of Merchant. The location is under review for quality
* purposes.
*
* @param WaitForVoiceOfMerchant $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');
@@ -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');