cloudmersive-validate-api-client 2.1.1 → 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +17 -4
  3. data/docs/AddressApi.md +55 -0
  4. data/docs/DateTimeApi.md +222 -0
  5. data/docs/DateTimeNaturalLanguageParseRequest.md +8 -0
  6. data/docs/DateTimeNowResult.md +10 -0
  7. data/docs/DateTimeStandardizedParseRequest.md +9 -0
  8. data/docs/DateTimeStandardizedParseResponse.md +16 -0
  9. data/docs/DomainApi.md +3 -3
  10. data/docs/EmailApi.md +3 -3
  11. data/docs/GetPublicHolidaysRequest.md +9 -0
  12. data/docs/IPAddressApi.md +4 -4
  13. data/docs/NormalizeAddressResponse.md +18 -0
  14. data/docs/PublicHolidayOccurrence.md +12 -0
  15. data/docs/PublicHolidaysResponse.md +9 -0
  16. data/docs/TextInputApi.md +2 -2
  17. data/lib/cloudmersive-validate-api-client.rb +9 -0
  18. data/lib/cloudmersive-validate-api-client/api/address_api.rb +54 -0
  19. data/lib/cloudmersive-validate-api-client/api/date_time_api.rb +231 -0
  20. data/lib/cloudmersive-validate-api-client/api/domain_api.rb +3 -3
  21. data/lib/cloudmersive-validate-api-client/api/email_api.rb +3 -3
  22. data/lib/cloudmersive-validate-api-client/api/ip_address_api.rb +4 -4
  23. data/lib/cloudmersive-validate-api-client/api/text_input_api.rb +2 -2
  24. data/lib/cloudmersive-validate-api-client/models/date_time_natural_language_parse_request.rb +186 -0
  25. data/lib/cloudmersive-validate-api-client/models/date_time_now_result.rb +206 -0
  26. data/lib/cloudmersive-validate-api-client/models/date_time_standardized_parse_request.rb +196 -0
  27. data/lib/cloudmersive-validate-api-client/models/date_time_standardized_parse_response.rb +266 -0
  28. data/lib/cloudmersive-validate-api-client/models/get_public_holidays_request.rb +196 -0
  29. data/lib/cloudmersive-validate-api-client/models/normalize_address_response.rb +286 -0
  30. data/lib/cloudmersive-validate-api-client/models/public_holiday_occurrence.rb +226 -0
  31. data/lib/cloudmersive-validate-api-client/models/public_holidays_response.rb +198 -0
  32. data/lib/cloudmersive-validate-api-client/version.rb +1 -1
  33. data/spec/api/address_api_spec.rb +12 -0
  34. data/spec/api/date_time_api_spec.rb +82 -0
  35. data/spec/models/date_time_natural_language_parse_request_spec.rb +41 -0
  36. data/spec/models/date_time_now_result_spec.rb +53 -0
  37. data/spec/models/date_time_standardized_parse_request_spec.rb +47 -0
  38. data/spec/models/date_time_standardized_parse_response_spec.rb +89 -0
  39. data/spec/models/get_public_holidays_request_spec.rb +47 -0
  40. data/spec/models/normalize_address_response_spec.rb +101 -0
  41. data/spec/models/public_holiday_occurrence_spec.rb +65 -0
  42. data/spec/models/public_holidays_response_spec.rb +47 -0
  43. metadata +29 -2
@@ -0,0 +1,82 @@
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.4.14
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for CloudmersiveValidateApiClient::DateTimeApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'DateTimeApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = CloudmersiveValidateApiClient::DateTimeApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of DateTimeApi' do
30
+ it 'should create an instance of DateTimeApi' do
31
+ expect(@instance).to be_instance_of(CloudmersiveValidateApiClient::DateTimeApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for date_time_get_now_simple
36
+ # Get current date and time as of now
37
+ # Gets the current date and time. Response time is syncronized with atomic clocks, and represents a monotonic, centrally available, consistent clock.
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [DateTimeNowResult]
40
+ describe 'date_time_get_now_simple test' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ # unit tests for date_time_get_public_holidays
47
+ # Get public holidays in the specified country and year
48
+ # Enumerates all public holidays in a given country for a given year. Supports over 100 countries.
49
+ # @param input Input request
50
+ # @param [Hash] opts the optional parameters
51
+ # @return [PublicHolidaysResponse]
52
+ describe 'date_time_get_public_holidays test' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
58
+ # unit tests for date_time_parse_natural_language_date_time
59
+ # Parses a free-form natural language date and time string into a date and time
60
+ # Parses an unstructured, free-form, natural language date and time string into a date time object. This is intended for lightweight human-entered input, such as \"tomorrow at 3pm\" or \"tuesday\".
61
+ # @param input Input request
62
+ # @param [Hash] opts the optional parameters
63
+ # @return [DateTimeStandardizedParseResponse]
64
+ describe 'date_time_parse_natural_language_date_time test' do
65
+ it 'should work' do
66
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
67
+ end
68
+ end
69
+
70
+ # unit tests for date_time_parse_standard_date_time
71
+ # Parses a standardized date and time string into a date and time
72
+ # Parses a structured date and time string into a date time object. This is intended for standardized date strings that adhere to formatting conventions, rather than natural language input.
73
+ # @param input Input request
74
+ # @param [Hash] opts the optional parameters
75
+ # @return [DateTimeStandardizedParseResponse]
76
+ describe 'date_time_parse_standard_date_time test' do
77
+ it 'should work' do
78
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
79
+ end
80
+ end
81
+
82
+ end
@@ -0,0 +1,41 @@
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.4.14
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for CloudmersiveValidateApiClient::DateTimeNaturalLanguageParseRequest
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'DateTimeNaturalLanguageParseRequest' do
21
+ before do
22
+ # run before each test
23
+ @instance = CloudmersiveValidateApiClient::DateTimeNaturalLanguageParseRequest.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of DateTimeNaturalLanguageParseRequest' do
31
+ it 'should create an instance of DateTimeNaturalLanguageParseRequest' do
32
+ expect(@instance).to be_instance_of(CloudmersiveValidateApiClient::DateTimeNaturalLanguageParseRequest)
33
+ end
34
+ end
35
+ describe 'test attribute "raw_date_time_input"' 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
+ end
@@ -0,0 +1,53 @@
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.4.14
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for CloudmersiveValidateApiClient::DateTimeNowResult
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'DateTimeNowResult' do
21
+ before do
22
+ # run before each test
23
+ @instance = CloudmersiveValidateApiClient::DateTimeNowResult.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of DateTimeNowResult' do
31
+ it 'should create an instance of DateTimeNowResult' do
32
+ expect(@instance).to be_instance_of(CloudmersiveValidateApiClient::DateTimeNowResult)
33
+ end
34
+ end
35
+ describe 'test attribute "successful"' 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 "now"' 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 "now_gmt"' 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
+ end
@@ -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.4.14
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for CloudmersiveValidateApiClient::DateTimeStandardizedParseRequest
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'DateTimeStandardizedParseRequest' do
21
+ before do
22
+ # run before each test
23
+ @instance = CloudmersiveValidateApiClient::DateTimeStandardizedParseRequest.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of DateTimeStandardizedParseRequest' do
31
+ it 'should create an instance of DateTimeStandardizedParseRequest' do
32
+ expect(@instance).to be_instance_of(CloudmersiveValidateApiClient::DateTimeStandardizedParseRequest)
33
+ end
34
+ end
35
+ describe 'test attribute "raw_date_time_input"' 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 "country_code"' 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
@@ -0,0 +1,89 @@
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.4.14
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for CloudmersiveValidateApiClient::DateTimeStandardizedParseResponse
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'DateTimeStandardizedParseResponse' do
21
+ before do
22
+ # run before each test
23
+ @instance = CloudmersiveValidateApiClient::DateTimeStandardizedParseResponse.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of DateTimeStandardizedParseResponse' do
31
+ it 'should create an instance of DateTimeStandardizedParseResponse' do
32
+ expect(@instance).to be_instance_of(CloudmersiveValidateApiClient::DateTimeStandardizedParseResponse)
33
+ end
34
+ end
35
+ describe 'test attribute "successful"' 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 "parsed_date_result"' 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 "year"' 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 "month"' 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 "day"' 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 "hour"' 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 "minute"' 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 "second"' 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 "day_of_week"' 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
+ end
@@ -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.4.14
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for CloudmersiveValidateApiClient::GetPublicHolidaysRequest
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'GetPublicHolidaysRequest' do
21
+ before do
22
+ # run before each test
23
+ @instance = CloudmersiveValidateApiClient::GetPublicHolidaysRequest.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of GetPublicHolidaysRequest' do
31
+ it 'should create an instance of GetPublicHolidaysRequest' do
32
+ expect(@instance).to be_instance_of(CloudmersiveValidateApiClient::GetPublicHolidaysRequest)
33
+ end
34
+ end
35
+ describe 'test attribute "raw_country_input"' 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 "year"' 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
@@ -0,0 +1,101 @@
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.4.14
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for CloudmersiveValidateApiClient::NormalizeAddressResponse
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'NormalizeAddressResponse' do
21
+ before do
22
+ # run before each test
23
+ @instance = CloudmersiveValidateApiClient::NormalizeAddressResponse.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of NormalizeAddressResponse' do
31
+ it 'should create an instance of NormalizeAddressResponse' do
32
+ expect(@instance).to be_instance_of(CloudmersiveValidateApiClient::NormalizeAddressResponse)
33
+ end
34
+ end
35
+ describe 'test attribute "valid_address"' 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 "building"' 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 "street_number"' 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 "street"' 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 "city"' 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 "state_or_province"' 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 "postal_code"' 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 "country_full_name"' 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 "iso_two_letter_code"' 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 "latitude"' 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 "longitude"' 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
+ end