* $addressvalidationService = new Google\Service\AddressValidation(...); * $v1 = $addressvalidationService->v1; * */ class V1 extends \Google\Service\Resource { /** * Feedback about the outcome of the sequence of validation attempts. This * should be the last call made after a sequence of validation calls for the * same address, and should be called once the transaction is concluded. This * should only be sent once for the sequence of `ValidateAddress` requests * needed to validate an address fully. (v1.provideValidationFeedback) * * @param GoogleMapsAddressvalidationV1ProvideValidationFeedbackRequest $postBody * @param array $optParams Optional parameters. * @return GoogleMapsAddressvalidationV1ProvideValidationFeedbackResponse * @throws \Google\Service\Exception */ public function provideValidationFeedback(GoogleMapsAddressvalidationV1ProvideValidationFeedbackRequest $postBody, $optParams = []) { $params = ['postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('provideValidationFeedback', [$params], GoogleMapsAddressvalidationV1ProvideValidationFeedbackResponse::class); } /** * Validates an address. (v1.validateAddress) * * @param GoogleMapsAddressvalidationV1ValidateAddressRequest $postBody * @param array $optParams Optional parameters. * @return GoogleMapsAddressvalidationV1ValidateAddressResponse * @throws \Google\Service\Exception */ public function validateAddress(GoogleMapsAddressvalidationV1ValidateAddressRequest $postBody, $optParams = []) { $params = ['postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('validateAddress', [$params], GoogleMapsAddressvalidationV1ValidateAddressResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(V1::class, 'Google_Service_AddressValidation_Resource_V1');