diff --git a/README.md b/README.md index 0b244f4..6872f4d 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ The validation APIs help you validate data. Check if an E-mail address is real. [Cloudmersive Validation API](https://www.cloudmersive.com/validate-api) provides data validation capabilities for validating email addresses, phone numbers, IP addresses, and many other types of business data. - API version: v1 -- Package version: 1.4.6 +- Package version: 1.4.7 ## Requirements diff --git a/composer.json b/composer.json index 1d10302..603c353 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "cloudmersive/cloudmersive_validate_api_client", - "version": "1.4.6", + "version": "1.4.7", "description": "", "keywords": [ "swagger", diff --git a/docs/Model/FullEmailValidationResponse.md b/docs/Model/FullEmailValidationResponse.md index bcad7f8..907e9af 100644 --- a/docs/Model/FullEmailValidationResponse.md +++ b/docs/Model/FullEmailValidationResponse.md @@ -10,6 +10,8 @@ Name | Type | Description | Notes **valid_smtp** | **bool** | True if the email address was verified by the remote server, false otherwise. This is one component of ValidAddress, but not the only one. | [optional] **is_catchall_domain** | **bool** | True if the domain is a catch-all domain name, false otherwise. Catch-all domain names, while rare, always accept inbound email to ensure they do not lose any potentially useful emails. Catch-all domain names can occassionally be configured to first accept and store all inbound email, but then later send a bounce email back to the sender after a delayed period of time. | [optional] **domain** | **string** | Domain name of the email address | [optional] +**is_free_email_provider** | **bool** | True if the email domain name is a free provider (typically a free to sign up web email provider for consumers / personal use), false otherwise. | [optional] +**is_disposable** | **bool** | True if the email address is a disposable email address, false otherwise; these disposable providers are not typically used to receive email and so will have a low likelihood of opening mail sent there. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/lib/Configuration.php b/lib/Configuration.php index 9ad5543..0832eea 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -88,7 +88,7 @@ class Configuration * * @var string */ - protected $userAgent = 'Swagger-Codegen/1.4.6/php'; + protected $userAgent = 'Swagger-Codegen/1.4.7/php'; /** * Debug switch (default set to false) @@ -397,7 +397,7 @@ public static function toDebugReport() $report .= ' OS: ' . php_uname() . PHP_EOL; $report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL; $report .= ' OpenAPI Spec Version: v1' . PHP_EOL; - $report .= ' SDK Package Version: 1.4.6' . PHP_EOL; + $report .= ' SDK Package Version: 1.4.7' . PHP_EOL; $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; return $report; diff --git a/lib/Model/FullEmailValidationResponse.php b/lib/Model/FullEmailValidationResponse.php index e4939bf..cb27378 100644 --- a/lib/Model/FullEmailValidationResponse.php +++ b/lib/Model/FullEmailValidationResponse.php @@ -64,7 +64,9 @@ class FullEmailValidationResponse implements ModelInterface, ArrayAccess 'valid_domain' => 'bool', 'valid_smtp' => 'bool', 'is_catchall_domain' => 'bool', - 'domain' => 'string' + 'domain' => 'string', + 'is_free_email_provider' => 'bool', + 'is_disposable' => 'bool' ]; /** @@ -79,7 +81,9 @@ class FullEmailValidationResponse implements ModelInterface, ArrayAccess 'valid_domain' => null, 'valid_smtp' => null, 'is_catchall_domain' => null, - 'domain' => null + 'domain' => null, + 'is_free_email_provider' => null, + 'is_disposable' => null ]; /** @@ -115,7 +119,9 @@ public static function swaggerFormats() 'valid_domain' => 'Valid_Domain', 'valid_smtp' => 'Valid_SMTP', 'is_catchall_domain' => 'IsCatchallDomain', - 'domain' => 'Domain' + 'domain' => 'Domain', + 'is_free_email_provider' => 'IsFreeEmailProvider', + 'is_disposable' => 'IsDisposable' ]; /** @@ -130,7 +136,9 @@ public static function swaggerFormats() 'valid_domain' => 'setValidDomain', 'valid_smtp' => 'setValidSmtp', 'is_catchall_domain' => 'setIsCatchallDomain', - 'domain' => 'setDomain' + 'domain' => 'setDomain', + 'is_free_email_provider' => 'setIsFreeEmailProvider', + 'is_disposable' => 'setIsDisposable' ]; /** @@ -145,7 +153,9 @@ public static function swaggerFormats() 'valid_domain' => 'getValidDomain', 'valid_smtp' => 'getValidSmtp', 'is_catchall_domain' => 'getIsCatchallDomain', - 'domain' => 'getDomain' + 'domain' => 'getDomain', + 'is_free_email_provider' => 'getIsFreeEmailProvider', + 'is_disposable' => 'getIsDisposable' ]; /** @@ -215,6 +225,8 @@ public function __construct(array $data = null) $this->container['valid_smtp'] = isset($data['valid_smtp']) ? $data['valid_smtp'] : null; $this->container['is_catchall_domain'] = isset($data['is_catchall_domain']) ? $data['is_catchall_domain'] : null; $this->container['domain'] = isset($data['domain']) ? $data['domain'] : null; + $this->container['is_free_email_provider'] = isset($data['is_free_email_provider']) ? $data['is_free_email_provider'] : null; + $this->container['is_disposable'] = isset($data['is_disposable']) ? $data['is_disposable'] : null; } /** @@ -409,6 +421,54 @@ public function setDomain($domain) return $this; } + + /** + * Gets is_free_email_provider + * + * @return bool + */ + public function getIsFreeEmailProvider() + { + return $this->container['is_free_email_provider']; + } + + /** + * Sets is_free_email_provider + * + * @param bool $is_free_email_provider True if the email domain name is a free provider (typically a free to sign up web email provider for consumers / personal use), false otherwise. + * + * @return $this + */ + public function setIsFreeEmailProvider($is_free_email_provider) + { + $this->container['is_free_email_provider'] = $is_free_email_provider; + + return $this; + } + + /** + * Gets is_disposable + * + * @return bool + */ + public function getIsDisposable() + { + return $this->container['is_disposable']; + } + + /** + * Sets is_disposable + * + * @param bool $is_disposable True if the email address is a disposable email address, false otherwise; these disposable providers are not typically used to receive email and so will have a low likelihood of opening mail sent there. + * + * @return $this + */ + public function setIsDisposable($is_disposable) + { + $this->container['is_disposable'] = $is_disposable; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/packageconfig.json b/packageconfig.json index d0a56d2..e97faec 100644 --- a/packageconfig.json +++ b/packageconfig.json @@ -1,5 +1,5 @@ { - "artifactVersion": "1.4.6", + "artifactVersion": "1.4.7", "gitUserId": "Cloudmersive", "gitRepoId": "Cloudmersive.APIClient.PHP.Validate", "composerVendorName": "cloudmersive", diff --git a/test/Model/FullEmailValidationResponseTest.php b/test/Model/FullEmailValidationResponseTest.php index fcc127b..6c51482 100644 --- a/test/Model/FullEmailValidationResponseTest.php +++ b/test/Model/FullEmailValidationResponseTest.php @@ -125,4 +125,18 @@ public function testPropertyIsCatchallDomain() public function testPropertyDomain() { } + + /** + * Test attribute "is_free_email_provider" + */ + public function testPropertyIsFreeEmailProvider() + { + } + + /** + * Test attribute "is_disposable" + */ + public function testPropertyIsDisposable() + { + } }