Skip to content

Commit

Permalink
Added 1.4.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloudmersive committed Jul 4, 2019
1 parent fb7d08b commit 22c2f19
Show file tree
Hide file tree
Showing 7 changed files with 86 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cloudmersive/cloudmersive_validate_api_client",
"version": "1.4.6",
"version": "1.4.7",
"description": "",
"keywords": [
"swagger",
Expand Down
2 changes: 2 additions & 0 deletions docs/Model/FullEmailValidationResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 2 additions & 2 deletions lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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;
Expand Down
70 changes: 65 additions & 5 deletions lib/Model/FullEmailValidationResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
];

/**
Expand All @@ -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
];

/**
Expand Down Expand Up @@ -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'
];

/**
Expand All @@ -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'
];

/**
Expand All @@ -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'
];

/**
Expand Down Expand Up @@ -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;
}

/**
Expand Down Expand Up @@ -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.
*
Expand Down
2 changes: 1 addition & 1 deletion packageconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"artifactVersion": "1.4.6",
"artifactVersion": "1.4.7",
"gitUserId": "Cloudmersive",
"gitRepoId": "Cloudmersive.APIClient.PHP.Validate",
"composerVendorName": "cloudmersive",
Expand Down
14 changes: 14 additions & 0 deletions test/Model/FullEmailValidationResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
}
}

0 comments on commit 22c2f19

Please sign in to comment.