cloudmersive-validate-api-client 1.3.7 → 1.3.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -8
- data/docs/AddressApi.md +56 -1
- data/docs/AddressVerifySyntaxOnlyResponse.md +3 -0
- data/docs/DomainApi.md +8 -8
- data/docs/EmailApi.md +3 -3
- data/docs/IPAddressApi.md +1 -1
- data/docs/LeadEnrichmentApi.md +61 -0
- data/docs/LeadEnrichmentRequest.md +21 -0
- data/docs/LeadEnrichmentResponse.md +25 -0
- data/docs/NameApi.md +5 -5
- data/docs/ParseAddressResponse.md +2 -1
- data/docs/PhoneNumberApi.md +1 -1
- data/docs/UserAgentApi.md +1 -1
- data/docs/ValidateCountryRequest.md +8 -0
- data/docs/ValidateCountryResponse.md +12 -0
- data/docs/VatApi.md +1 -1
- data/docs/VatLookupResponse.md +8 -1
- data/docs/WhoisResponse.md +11 -0
- data/lib/cloudmersive-validate-api-client.rb +5 -0
- data/lib/cloudmersive-validate-api-client/api/address_api.rb +56 -1
- data/lib/cloudmersive-validate-api-client/api/domain_api.rb +8 -8
- data/lib/cloudmersive-validate-api-client/api/email_api.rb +3 -3
- data/lib/cloudmersive-validate-api-client/api/ip_address_api.rb +1 -1
- data/lib/cloudmersive-validate-api-client/api/lead_enrichment_api.rb +78 -0
- data/lib/cloudmersive-validate-api-client/api/name_api.rb +5 -5
- data/lib/cloudmersive-validate-api-client/api/phone_number_api.rb +1 -1
- data/lib/cloudmersive-validate-api-client/api/user_agent_api.rb +1 -1
- data/lib/cloudmersive-validate-api-client/api/vat_api.rb +1 -1
- data/lib/cloudmersive-validate-api-client/models/address_verify_syntax_only_response.rb +34 -4
- data/lib/cloudmersive-validate-api-client/models/lead_enrichment_request.rb +319 -0
- data/lib/cloudmersive-validate-api-client/models/lead_enrichment_response.rb +359 -0
- data/lib/cloudmersive-validate-api-client/models/parse_address_response.rb +17 -7
- data/lib/cloudmersive-validate-api-client/models/validate_country_request.rb +189 -0
- data/lib/cloudmersive-validate-api-client/models/validate_country_response.rb +229 -0
- data/lib/cloudmersive-validate-api-client/models/vat_lookup_response.rb +75 -5
- data/lib/cloudmersive-validate-api-client/models/whois_response.rb +111 -1
- data/lib/cloudmersive-validate-api-client/version.rb +1 -1
- data/spec/api/address_api_spec.rb +12 -0
- data/spec/api/domain_api_spec.rb +2 -2
- data/spec/api/lead_enrichment_api_spec.rb +47 -0
- data/spec/models/address_verify_syntax_only_response_spec.rb +18 -0
- data/spec/models/lead_enrichment_request_spec.rb +120 -0
- data/spec/models/lead_enrichment_response_spec.rb +144 -0
- data/spec/models/parse_address_response_spec.rb +7 -1
- data/spec/models/validate_country_request_spec.rb +42 -0
- data/spec/models/validate_country_response_spec.rb +66 -0
- data/spec/models/vat_lookup_response_spec.rb +42 -0
- data/spec/models/whois_response_spec.rb +66 -0
- metadata +17 -2
@@ -27,9 +27,30 @@ module CloudmersiveValidateApiClient
|
|
27
27
|
# Name of the business
|
28
28
|
attr_accessor :business_name
|
29
29
|
|
30
|
-
# Business address
|
30
|
+
# Business address as a single string
|
31
31
|
attr_accessor :business_address
|
32
32
|
|
33
|
+
# For the business address, the name of the building, house or structure if applicable, such as \"Cloudmersive Building 2\". This will often by null.
|
34
|
+
attr_accessor :business_building
|
35
|
+
|
36
|
+
# For the business address, the street number or house number of the address. For example, in the address \"1600 Pennsylvania Avenue NW\" the street number would be \"1600\". This value will typically be populated for most addresses.
|
37
|
+
attr_accessor :business_street_number
|
38
|
+
|
39
|
+
# For the business address, the name of the street or road of the address. For example, in the address \"1600 Pennsylvania Avenue NW\" the street number would be \"Pennsylvania Avenue NW\".
|
40
|
+
attr_accessor :business_street
|
41
|
+
|
42
|
+
# For the business address, the city of the address.
|
43
|
+
attr_accessor :business_city
|
44
|
+
|
45
|
+
# For the business address, the state or province of the address.
|
46
|
+
attr_accessor :business_state_or_province
|
47
|
+
|
48
|
+
# For the business address, the postal code or zip code of the address.
|
49
|
+
attr_accessor :business_postal_code
|
50
|
+
|
51
|
+
# For the business address, country of the address, if present in the address. If not included in the address it will be null.
|
52
|
+
attr_accessor :business_country
|
53
|
+
|
33
54
|
|
34
55
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
56
|
def self.attribute_map
|
@@ -38,7 +59,14 @@ module CloudmersiveValidateApiClient
|
|
38
59
|
:'vat_number' => :'VatNumber',
|
39
60
|
:'is_valid' => :'IsValid',
|
40
61
|
:'business_name' => :'BusinessName',
|
41
|
-
:'business_address' => :'BusinessAddress'
|
62
|
+
:'business_address' => :'BusinessAddress',
|
63
|
+
:'business_building' => :'BusinessBuilding',
|
64
|
+
:'business_street_number' => :'BusinessStreetNumber',
|
65
|
+
:'business_street' => :'BusinessStreet',
|
66
|
+
:'business_city' => :'BusinessCity',
|
67
|
+
:'business_state_or_province' => :'BusinessStateOrProvince',
|
68
|
+
:'business_postal_code' => :'BusinessPostalCode',
|
69
|
+
:'business_country' => :'BusinessCountry'
|
42
70
|
}
|
43
71
|
end
|
44
72
|
|
@@ -49,7 +77,14 @@ module CloudmersiveValidateApiClient
|
|
49
77
|
:'vat_number' => :'String',
|
50
78
|
:'is_valid' => :'BOOLEAN',
|
51
79
|
:'business_name' => :'String',
|
52
|
-
:'business_address' => :'String'
|
80
|
+
:'business_address' => :'String',
|
81
|
+
:'business_building' => :'String',
|
82
|
+
:'business_street_number' => :'String',
|
83
|
+
:'business_street' => :'String',
|
84
|
+
:'business_city' => :'String',
|
85
|
+
:'business_state_or_province' => :'String',
|
86
|
+
:'business_postal_code' => :'String',
|
87
|
+
:'business_country' => :'String'
|
53
88
|
}
|
54
89
|
end
|
55
90
|
|
@@ -81,6 +116,34 @@ module CloudmersiveValidateApiClient
|
|
81
116
|
self.business_address = attributes[:'BusinessAddress']
|
82
117
|
end
|
83
118
|
|
119
|
+
if attributes.has_key?(:'BusinessBuilding')
|
120
|
+
self.business_building = attributes[:'BusinessBuilding']
|
121
|
+
end
|
122
|
+
|
123
|
+
if attributes.has_key?(:'BusinessStreetNumber')
|
124
|
+
self.business_street_number = attributes[:'BusinessStreetNumber']
|
125
|
+
end
|
126
|
+
|
127
|
+
if attributes.has_key?(:'BusinessStreet')
|
128
|
+
self.business_street = attributes[:'BusinessStreet']
|
129
|
+
end
|
130
|
+
|
131
|
+
if attributes.has_key?(:'BusinessCity')
|
132
|
+
self.business_city = attributes[:'BusinessCity']
|
133
|
+
end
|
134
|
+
|
135
|
+
if attributes.has_key?(:'BusinessStateOrProvince')
|
136
|
+
self.business_state_or_province = attributes[:'BusinessStateOrProvince']
|
137
|
+
end
|
138
|
+
|
139
|
+
if attributes.has_key?(:'BusinessPostalCode')
|
140
|
+
self.business_postal_code = attributes[:'BusinessPostalCode']
|
141
|
+
end
|
142
|
+
|
143
|
+
if attributes.has_key?(:'BusinessCountry')
|
144
|
+
self.business_country = attributes[:'BusinessCountry']
|
145
|
+
end
|
146
|
+
|
84
147
|
end
|
85
148
|
|
86
149
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -105,7 +168,14 @@ module CloudmersiveValidateApiClient
|
|
105
168
|
vat_number == o.vat_number &&
|
106
169
|
is_valid == o.is_valid &&
|
107
170
|
business_name == o.business_name &&
|
108
|
-
business_address == o.business_address
|
171
|
+
business_address == o.business_address &&
|
172
|
+
business_building == o.business_building &&
|
173
|
+
business_street_number == o.business_street_number &&
|
174
|
+
business_street == o.business_street &&
|
175
|
+
business_city == o.business_city &&
|
176
|
+
business_state_or_province == o.business_state_or_province &&
|
177
|
+
business_postal_code == o.business_postal_code &&
|
178
|
+
business_country == o.business_country
|
109
179
|
end
|
110
180
|
|
111
181
|
# @see the `==` method
|
@@ -117,7 +187,7 @@ module CloudmersiveValidateApiClient
|
|
117
187
|
# Calculates hash code according to all attributes.
|
118
188
|
# @return [Fixnum] Hash code
|
119
189
|
def hash
|
120
|
-
[country_code, vat_number, is_valid, business_name, business_address].hash
|
190
|
+
[country_code, vat_number, is_valid, business_name, business_address, business_building, business_street_number, business_street, business_city, business_state_or_province, business_postal_code, business_country].hash
|
121
191
|
end
|
122
192
|
|
123
193
|
# Builds the object from hash
|
@@ -18,6 +18,39 @@ module CloudmersiveValidateApiClient
|
|
18
18
|
# True if the domain is valid, false if it is not
|
19
19
|
attr_accessor :valid_domain
|
20
20
|
|
21
|
+
# Name of the domain registrant
|
22
|
+
attr_accessor :registrant_name
|
23
|
+
|
24
|
+
# Organization name of the domain registrant
|
25
|
+
attr_accessor :registrant_organization
|
26
|
+
|
27
|
+
# Email address of the domain registrant
|
28
|
+
attr_accessor :registrant_email
|
29
|
+
|
30
|
+
# Street number of the address of the domain registrant, if available
|
31
|
+
attr_accessor :registrant_street_number
|
32
|
+
|
33
|
+
# Street name of the address of the domain registrant, if available
|
34
|
+
attr_accessor :registrant_street
|
35
|
+
|
36
|
+
# City of the domain registrant, if available
|
37
|
+
attr_accessor :registrant_city
|
38
|
+
|
39
|
+
# State or Province of the address of the domain registrant, if available
|
40
|
+
attr_accessor :registrant_state_or_province
|
41
|
+
|
42
|
+
# Postal code of the address of the domain registrant, if available
|
43
|
+
attr_accessor :registrant_postal_code
|
44
|
+
|
45
|
+
# Country of the address of the domain registrant, if available
|
46
|
+
attr_accessor :registrant_country
|
47
|
+
|
48
|
+
# Raw address string of the domain registrant, if available
|
49
|
+
attr_accessor :registrant_raw_address
|
50
|
+
|
51
|
+
# Telephone number of the address of the domain registrant
|
52
|
+
attr_accessor :registrant_telephone
|
53
|
+
|
21
54
|
# Server used to lookup WHOIS information (may change based on lookup).
|
22
55
|
attr_accessor :whois_server
|
23
56
|
|
@@ -32,6 +65,17 @@ module CloudmersiveValidateApiClient
|
|
32
65
|
def self.attribute_map
|
33
66
|
{
|
34
67
|
:'valid_domain' => :'ValidDomain',
|
68
|
+
:'registrant_name' => :'RegistrantName',
|
69
|
+
:'registrant_organization' => :'RegistrantOrganization',
|
70
|
+
:'registrant_email' => :'RegistrantEmail',
|
71
|
+
:'registrant_street_number' => :'RegistrantStreetNumber',
|
72
|
+
:'registrant_street' => :'RegistrantStreet',
|
73
|
+
:'registrant_city' => :'RegistrantCity',
|
74
|
+
:'registrant_state_or_province' => :'RegistrantStateOrProvince',
|
75
|
+
:'registrant_postal_code' => :'RegistrantPostalCode',
|
76
|
+
:'registrant_country' => :'RegistrantCountry',
|
77
|
+
:'registrant_raw_address' => :'RegistrantRawAddress',
|
78
|
+
:'registrant_telephone' => :'RegistrantTelephone',
|
35
79
|
:'whois_server' => :'WhoisServer',
|
36
80
|
:'raw_text_record' => :'RawTextRecord',
|
37
81
|
:'created_dt' => :'CreatedDt'
|
@@ -42,6 +86,17 @@ module CloudmersiveValidateApiClient
|
|
42
86
|
def self.swagger_types
|
43
87
|
{
|
44
88
|
:'valid_domain' => :'BOOLEAN',
|
89
|
+
:'registrant_name' => :'String',
|
90
|
+
:'registrant_organization' => :'String',
|
91
|
+
:'registrant_email' => :'String',
|
92
|
+
:'registrant_street_number' => :'String',
|
93
|
+
:'registrant_street' => :'String',
|
94
|
+
:'registrant_city' => :'String',
|
95
|
+
:'registrant_state_or_province' => :'String',
|
96
|
+
:'registrant_postal_code' => :'String',
|
97
|
+
:'registrant_country' => :'String',
|
98
|
+
:'registrant_raw_address' => :'String',
|
99
|
+
:'registrant_telephone' => :'String',
|
45
100
|
:'whois_server' => :'String',
|
46
101
|
:'raw_text_record' => :'String',
|
47
102
|
:'created_dt' => :'DateTime'
|
@@ -60,6 +115,50 @@ module CloudmersiveValidateApiClient
|
|
60
115
|
self.valid_domain = attributes[:'ValidDomain']
|
61
116
|
end
|
62
117
|
|
118
|
+
if attributes.has_key?(:'RegistrantName')
|
119
|
+
self.registrant_name = attributes[:'RegistrantName']
|
120
|
+
end
|
121
|
+
|
122
|
+
if attributes.has_key?(:'RegistrantOrganization')
|
123
|
+
self.registrant_organization = attributes[:'RegistrantOrganization']
|
124
|
+
end
|
125
|
+
|
126
|
+
if attributes.has_key?(:'RegistrantEmail')
|
127
|
+
self.registrant_email = attributes[:'RegistrantEmail']
|
128
|
+
end
|
129
|
+
|
130
|
+
if attributes.has_key?(:'RegistrantStreetNumber')
|
131
|
+
self.registrant_street_number = attributes[:'RegistrantStreetNumber']
|
132
|
+
end
|
133
|
+
|
134
|
+
if attributes.has_key?(:'RegistrantStreet')
|
135
|
+
self.registrant_street = attributes[:'RegistrantStreet']
|
136
|
+
end
|
137
|
+
|
138
|
+
if attributes.has_key?(:'RegistrantCity')
|
139
|
+
self.registrant_city = attributes[:'RegistrantCity']
|
140
|
+
end
|
141
|
+
|
142
|
+
if attributes.has_key?(:'RegistrantStateOrProvince')
|
143
|
+
self.registrant_state_or_province = attributes[:'RegistrantStateOrProvince']
|
144
|
+
end
|
145
|
+
|
146
|
+
if attributes.has_key?(:'RegistrantPostalCode')
|
147
|
+
self.registrant_postal_code = attributes[:'RegistrantPostalCode']
|
148
|
+
end
|
149
|
+
|
150
|
+
if attributes.has_key?(:'RegistrantCountry')
|
151
|
+
self.registrant_country = attributes[:'RegistrantCountry']
|
152
|
+
end
|
153
|
+
|
154
|
+
if attributes.has_key?(:'RegistrantRawAddress')
|
155
|
+
self.registrant_raw_address = attributes[:'RegistrantRawAddress']
|
156
|
+
end
|
157
|
+
|
158
|
+
if attributes.has_key?(:'RegistrantTelephone')
|
159
|
+
self.registrant_telephone = attributes[:'RegistrantTelephone']
|
160
|
+
end
|
161
|
+
|
63
162
|
if attributes.has_key?(:'WhoisServer')
|
64
163
|
self.whois_server = attributes[:'WhoisServer']
|
65
164
|
end
|
@@ -93,6 +192,17 @@ module CloudmersiveValidateApiClient
|
|
93
192
|
return true if self.equal?(o)
|
94
193
|
self.class == o.class &&
|
95
194
|
valid_domain == o.valid_domain &&
|
195
|
+
registrant_name == o.registrant_name &&
|
196
|
+
registrant_organization == o.registrant_organization &&
|
197
|
+
registrant_email == o.registrant_email &&
|
198
|
+
registrant_street_number == o.registrant_street_number &&
|
199
|
+
registrant_street == o.registrant_street &&
|
200
|
+
registrant_city == o.registrant_city &&
|
201
|
+
registrant_state_or_province == o.registrant_state_or_province &&
|
202
|
+
registrant_postal_code == o.registrant_postal_code &&
|
203
|
+
registrant_country == o.registrant_country &&
|
204
|
+
registrant_raw_address == o.registrant_raw_address &&
|
205
|
+
registrant_telephone == o.registrant_telephone &&
|
96
206
|
whois_server == o.whois_server &&
|
97
207
|
raw_text_record == o.raw_text_record &&
|
98
208
|
created_dt == o.created_dt
|
@@ -107,7 +217,7 @@ module CloudmersiveValidateApiClient
|
|
107
217
|
# Calculates hash code according to all attributes.
|
108
218
|
# @return [Fixnum] Hash code
|
109
219
|
def hash
|
110
|
-
[valid_domain, whois_server, raw_text_record, created_dt].hash
|
220
|
+
[valid_domain, registrant_name, registrant_organization, registrant_email, registrant_street_number, registrant_street, registrant_city, registrant_state_or_province, registrant_postal_code, registrant_country, registrant_raw_address, registrant_telephone, whois_server, raw_text_record, created_dt].hash
|
111
221
|
end
|
112
222
|
|
113
223
|
# Builds the object from hash
|
@@ -32,6 +32,18 @@ describe 'AddressApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
+
# unit tests for address_country
|
36
|
+
# Validate and normalize country information, return ISO 3166-1 country codes and country name
|
37
|
+
# Validates and normalizes country information, and returns key information about a country.
|
38
|
+
# @param input Input request
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [ValidateCountryResponse]
|
41
|
+
describe 'address_country test' do
|
42
|
+
it "should work" do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
35
47
|
# unit tests for address_parse_string
|
36
48
|
# Parse an unstructured input text string into an international, formatted address
|
37
49
|
# Uses machine learning and Natural Language Processing (NLP) to handle a wide array of cases, including non-standard and unstructured address strings across a wide array of countries and address formatting norms.
|
data/spec/api/domain_api_spec.rb
CHANGED
@@ -59,7 +59,7 @@ describe 'DomainApi' do
|
|
59
59
|
# unit tests for domain_url_full
|
60
60
|
# Validate a URL fully
|
61
61
|
# Validate whether a URL is syntactically valid (does not check endpoint for validity), whether it exists, and whether the endpoint is up and passes virus scan checks. Accepts various types of input and produces a well-formed URL as output.
|
62
|
-
# @param request
|
62
|
+
# @param request Input URL request
|
63
63
|
# @param [Hash] opts the optional parameters
|
64
64
|
# @return [ValidateUrlResponseFull]
|
65
65
|
describe 'domain_url_full test' do
|
@@ -71,7 +71,7 @@ describe 'DomainApi' do
|
|
71
71
|
# unit tests for domain_url_syntax_only
|
72
72
|
# Validate a URL syntactically
|
73
73
|
# Validate whether a URL is syntactically valid (does not check endpoint for validity). Accepts various types of input and produces a well-formed URL as output.
|
74
|
-
# @param request
|
74
|
+
# @param request Input URL information
|
75
75
|
# @param [Hash] opts the optional parameters
|
76
76
|
# @return [ValidateUrlResponseSyntaxOnly]
|
77
77
|
describe 'domain_url_syntax_only test' do
|
@@ -0,0 +1,47 @@
|
|
1
|
+
=begin
|
2
|
+
#validateapi
|
3
|
+
|
4
|
+
#The validation APIs help you validate data. Check if an E-mail address is real. Check if a domain is real. Check up on an IP address, and even where it is located. All this and much more is available in the validation API.
|
5
|
+
|
6
|
+
OpenAPI spec version: v1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for CloudmersiveValidateApiClient::LeadEnrichmentApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'LeadEnrichmentApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@instance = CloudmersiveValidateApiClient::LeadEnrichmentApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of LeadEnrichmentApi' do
|
30
|
+
it 'should create an instance of LeadEnrichmentApi' do
|
31
|
+
expect(@instance).to be_instance_of(CloudmersiveValidateApiClient::LeadEnrichmentApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for lead_enrichment_enrich_lead
|
36
|
+
# Enrich an input lead with additional fields of data
|
37
|
+
#
|
38
|
+
# @param request Input lead with known fields set, and unknown fields left blank (null)
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [LeadEnrichmentResponse]
|
41
|
+
describe 'lead_enrichment_enrich_lead test' do
|
42
|
+
it "should work" do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
@@ -38,5 +38,23 @@ describe 'AddressVerifySyntaxOnlyResponse' do
|
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
+
describe 'test attribute "domain"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "is_free_email_provider"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
describe 'test attribute "is_disposable"' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
41
59
|
end
|
42
60
|
|
@@ -0,0 +1,120 @@
|
|
1
|
+
=begin
|
2
|
+
#validateapi
|
3
|
+
|
4
|
+
#The validation APIs help you validate data. Check if an E-mail address is real. Check if a domain is real. Check up on an IP address, and even where it is located. All this and much more is available in the validation API.
|
5
|
+
|
6
|
+
OpenAPI spec version: v1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for CloudmersiveValidateApiClient::LeadEnrichmentRequest
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'LeadEnrichmentRequest' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = CloudmersiveValidateApiClient::LeadEnrichmentRequest.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of LeadEnrichmentRequest' do
|
31
|
+
it 'should create an instance of LeadEnrichmentRequest' do
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveValidateApiClient::LeadEnrichmentRequest)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "contact_business_email"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "contact_first_name"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "contact_last_name"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
describe 'test attribute "company_name"' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
describe 'test attribute "company_domain_name"' do
|
60
|
+
it 'should work' do
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
describe 'test attribute "company_house_number"' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
describe 'test attribute "company_street"' do
|
72
|
+
it 'should work' do
|
73
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
describe 'test attribute "company_city"' do
|
78
|
+
it 'should work' do
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
describe 'test attribute "company_state_or_province"' do
|
84
|
+
it 'should work' do
|
85
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
describe 'test attribute "company_postal_code"' do
|
90
|
+
it 'should work' do
|
91
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
describe 'test attribute "company_country"' do
|
96
|
+
it 'should work' do
|
97
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
describe 'test attribute "company_country_code"' do
|
102
|
+
it 'should work' do
|
103
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
describe 'test attribute "company_telephone"' do
|
108
|
+
it 'should work' do
|
109
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
describe 'test attribute "company_vat_number"' do
|
114
|
+
it 'should work' do
|
115
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
end
|
120
|
+
|