agrid-client 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +5 -0
- data/Gemfile.lock +65 -0
- data/README.md +15 -0
- data/agrid_client.gemspec +32 -0
- data/lib/agrid_client.rb +69 -0
- data/lib/agrid_client/api/cities_api.rb +80 -0
- data/lib/agrid_client/api/companies_api.rb +265 -0
- data/lib/agrid_client/api/filters_api.rb +91 -0
- data/lib/agrid_client/api/leads_api.rb +87 -0
- data/lib/agrid_client/api/quotes_api.rb +162 -0
- data/lib/agrid_client/api/services_api.rb +83 -0
- data/lib/agrid_client/api_client.rb +365 -0
- data/lib/agrid_client/api_error.rb +36 -0
- data/lib/agrid_client/configuration.rb +167 -0
- data/lib/agrid_client/models/address.rb +121 -0
- data/lib/agrid_client/models/category.rb +75 -0
- data/lib/agrid_client/models/city_company.rb +67 -0
- data/lib/agrid_client/models/city_with_full_state.rb +73 -0
- data/lib/agrid_client/models/city_with_state_name.rb +67 -0
- data/lib/agrid_client/models/company.rb +108 -0
- data/lib/agrid_client/models/company_ranking.rb +45 -0
- data/lib/agrid_client/models/concerns/swagger_model.rb +106 -0
- data/lib/agrid_client/models/customer.rb +90 -0
- data/lib/agrid_client/models/customer_input.rb +73 -0
- data/lib/agrid_client/models/data_check.rb +45 -0
- data/lib/agrid_client/models/filter.rb +75 -0
- data/lib/agrid_client/models/filter_category.rb +73 -0
- data/lib/agrid_client/models/image.rb +37 -0
- data/lib/agrid_client/models/inline_response_200.rb +67 -0
- data/lib/agrid_client/models/inline_response_200_1.rb +78 -0
- data/lib/agrid_client/models/item.rb +90 -0
- data/lib/agrid_client/models/lead.rb +77 -0
- data/lib/agrid_client/models/lead_input.rb +90 -0
- data/lib/agrid_client/models/location.rb +66 -0
- data/lib/agrid_client/models/phone.rb +58 -0
- data/lib/agrid_client/models/price_range.rb +73 -0
- data/lib/agrid_client/models/quote.rb +124 -0
- data/lib/agrid_client/models/sale.rb +28 -0
- data/lib/agrid_client/models/service.rb +90 -0
- data/lib/agrid_client/models/state.rb +67 -0
- data/lib/agrid_client/version.rb +3 -0
- data/spec/api/cities_api_spec.rb +49 -0
- data/spec/api/companies_api_spec.rb +69 -0
- data/spec/api/filters_api_spec.rb +54 -0
- data/spec/api/leads_api_spec.rb +52 -0
- data/spec/api/quotes_api_spec.rb +74 -0
- data/spec/api/services_api_spec.rb +52 -0
- data/spec/models/address_spec.rb +116 -0
- data/spec/models/category_spec.rb +66 -0
- data/spec/models/city_with_full_state_spec.rb +66 -0
- data/spec/models/city_with_state_name_spec.rb +56 -0
- data/spec/models/company_spec.rb +116 -0
- data/spec/models/customer_input_spec.rb +66 -0
- data/spec/models/customer_spec.rb +86 -0
- data/spec/models/filter_category_spec.rb +66 -0
- data/spec/models/filter_spec.rb +66 -0
- data/spec/models/inline_response_200_1_spec.rb +66 -0
- data/spec/models/inline_response_200_spec.rb +46 -0
- data/spec/models/item_spec.rb +86 -0
- data/spec/models/lead_input_spec.rb +86 -0
- data/spec/models/lead_spec.rb +76 -0
- data/spec/models/location_spec.rb +56 -0
- data/spec/models/phone_spec.rb +46 -0
- data/spec/models/price_range_spec.rb +56 -0
- data/spec/models/quote_spec.rb +116 -0
- data/spec/models/service_spec.rb +76 -0
- data/spec/models/state_spec.rb +56 -0
- data/spec/spec_helper.rb +23 -0
- metadata +319 -0
@@ -0,0 +1,52 @@
|
|
1
|
+
=begin
|
2
|
+
Agrid Quotes API
|
3
|
+
|
4
|
+
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for AgridClient::LeadsApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'LeadsApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@instance = AgridClient::LeadsApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of LeadsApi' do
|
30
|
+
it 'should create an instact of LeadsApi' do
|
31
|
+
@instance.should be_a(AgridClient::LeadsApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for services_service_id_leads_post
|
36
|
+
#
|
37
|
+
# Create a new lead
|
38
|
+
# @param service_id Service Id
|
39
|
+
# @param lead Lead Id
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @return [Lead]
|
42
|
+
describe 'services_service_id_leads_post test' do
|
43
|
+
it "should work" do
|
44
|
+
# assertion here
|
45
|
+
# should be_a()
|
46
|
+
# should be_nil
|
47
|
+
# should ==
|
48
|
+
# should_not ==
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
@@ -0,0 +1,74 @@
|
|
1
|
+
=begin
|
2
|
+
Agrid Quotes API
|
3
|
+
|
4
|
+
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for AgridClient::QuotesApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'QuotesApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@instance = AgridClient::QuotesApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of QuotesApi' do
|
30
|
+
it 'should create an instact of QuotesApi' do
|
31
|
+
@instance.should be_a(AgridClient::QuotesApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for quotes_id_get
|
36
|
+
#
|
37
|
+
# Returns a specific quote
|
38
|
+
# @param id Param to filter company using id
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [Quote]
|
41
|
+
describe 'quotes_id_get test' do
|
42
|
+
it "should work" do
|
43
|
+
# assertion here
|
44
|
+
# should be_a()
|
45
|
+
# should be_nil
|
46
|
+
# should ==
|
47
|
+
# should_not ==
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
# unit tests for services_service_id_quotes_get
|
52
|
+
#
|
53
|
+
# Returns a set of quotes.
|
54
|
+
# @param service_id Param to filter quotes by service
|
55
|
+
# @param [Hash] opts the optional parameters
|
56
|
+
# @option opts [String] :company_id Param to filter quotes by company
|
57
|
+
# @option opts [String] :city_id Param to filter quotes by city
|
58
|
+
# @option opts [Integer] :limit Limit number of quotes on response(default is 12)
|
59
|
+
# @option opts [Integer] :offset Number to skip rows before beginning to return quotes
|
60
|
+
# @option opts [Array<String>] :filter_categories Example: <br> filter_categories[:filter_id][]=:filter_category_id&filter_categories[:filter_id][]=:filter_category_id <br><br> :filter_id is the id of filter<br> :filter_category_id is the id of filter category
|
61
|
+
# @option opts [Float] :min_price Param to filter quotes with price is at least equal to :min_price
|
62
|
+
# @option opts [Float] :max_price Param to filter quotes with price is at most equal to :max_price
|
63
|
+
# @return [InlineResponse2001]
|
64
|
+
describe 'services_service_id_quotes_get test' do
|
65
|
+
it "should work" do
|
66
|
+
# assertion here
|
67
|
+
# should be_a()
|
68
|
+
# should be_nil
|
69
|
+
# should ==
|
70
|
+
# should_not ==
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
=begin
|
2
|
+
Agrid Quotes API
|
3
|
+
|
4
|
+
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for AgridClient::ServicesApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'ServicesApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@instance = AgridClient::ServicesApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of ServicesApi' do
|
30
|
+
it 'should create an instact of ServicesApi' do
|
31
|
+
@instance.should be_a(AgridClient::ServicesApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for services_get
|
36
|
+
#
|
37
|
+
# Returns all available services
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [String] :city_id City ID to filter services by city
|
40
|
+
# @option opts [String] :tag Tag to filter a subset of services
|
41
|
+
# @return [Array<Service>]
|
42
|
+
describe 'services_get test' do
|
43
|
+
it "should work" do
|
44
|
+
# assertion here
|
45
|
+
# should be_a()
|
46
|
+
# should be_nil
|
47
|
+
# should ==
|
48
|
+
# should_not ==
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
@@ -0,0 +1,116 @@
|
|
1
|
+
=begin
|
2
|
+
Agrid Quotes API
|
3
|
+
|
4
|
+
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for AgridClient::Address
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'Address' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = AgridClient::Address.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of Address' do
|
31
|
+
it 'should create an instact of Address' do
|
32
|
+
@instance.should be_a(AgridClient::Address)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "street"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here
|
38
|
+
# should be_a()
|
39
|
+
# should be_nil
|
40
|
+
# should ==
|
41
|
+
# should_not ==
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
describe 'test attribute "number"' do
|
46
|
+
it 'should work' do
|
47
|
+
# assertion here
|
48
|
+
# should be_a()
|
49
|
+
# should be_nil
|
50
|
+
# should ==
|
51
|
+
# should_not ==
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
describe 'test attribute "complement"' do
|
56
|
+
it 'should work' do
|
57
|
+
# assertion here
|
58
|
+
# should be_a()
|
59
|
+
# should be_nil
|
60
|
+
# should ==
|
61
|
+
# should_not ==
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
describe 'test attribute "district"' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here
|
68
|
+
# should be_a()
|
69
|
+
# should be_nil
|
70
|
+
# should ==
|
71
|
+
# should_not ==
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
describe 'test attribute "zipcode"' do
|
76
|
+
it 'should work' do
|
77
|
+
# assertion here
|
78
|
+
# should be_a()
|
79
|
+
# should be_nil
|
80
|
+
# should ==
|
81
|
+
# should_not ==
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
describe 'test attribute "city"' do
|
86
|
+
it 'should work' do
|
87
|
+
# assertion here
|
88
|
+
# should be_a()
|
89
|
+
# should be_nil
|
90
|
+
# should ==
|
91
|
+
# should_not ==
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
describe 'test attribute "state"' do
|
96
|
+
it 'should work' do
|
97
|
+
# assertion here
|
98
|
+
# should be_a()
|
99
|
+
# should be_nil
|
100
|
+
# should ==
|
101
|
+
# should_not ==
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
describe 'test attribute "country"' do
|
106
|
+
it 'should work' do
|
107
|
+
# assertion here
|
108
|
+
# should be_a()
|
109
|
+
# should be_nil
|
110
|
+
# should ==
|
111
|
+
# should_not ==
|
112
|
+
end
|
113
|
+
end
|
114
|
+
|
115
|
+
end
|
116
|
+
|
@@ -0,0 +1,66 @@
|
|
1
|
+
=begin
|
2
|
+
Agrid Quotes API
|
3
|
+
|
4
|
+
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for AgridClient::Category
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'Category' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = AgridClient::Category.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of Category' do
|
31
|
+
it 'should create an instact of Category' do
|
32
|
+
@instance.should be_a(AgridClient::Category)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "id"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here
|
38
|
+
# should be_a()
|
39
|
+
# should be_nil
|
40
|
+
# should ==
|
41
|
+
# should_not ==
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
describe 'test attribute "title"' do
|
46
|
+
it 'should work' do
|
47
|
+
# assertion here
|
48
|
+
# should be_a()
|
49
|
+
# should be_nil
|
50
|
+
# should ==
|
51
|
+
# should_not ==
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
describe 'test attribute "items"' do
|
56
|
+
it 'should work' do
|
57
|
+
# assertion here
|
58
|
+
# should be_a()
|
59
|
+
# should be_nil
|
60
|
+
# should ==
|
61
|
+
# should_not ==
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
end
|
66
|
+
|
@@ -0,0 +1,66 @@
|
|
1
|
+
=begin
|
2
|
+
Agrid Quotes API
|
3
|
+
|
4
|
+
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for AgridClient::CityWithFullState
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'CityWithFullState' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = AgridClient::CityWithFullState.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of CityWithFullState' do
|
31
|
+
it 'should create an instact of CityWithFullState' do
|
32
|
+
@instance.should be_a(AgridClient::CityWithFullState)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "id"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here
|
38
|
+
# should be_a()
|
39
|
+
# should be_nil
|
40
|
+
# should ==
|
41
|
+
# should_not ==
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
describe 'test attribute "title"' do
|
46
|
+
it 'should work' do
|
47
|
+
# assertion here
|
48
|
+
# should be_a()
|
49
|
+
# should be_nil
|
50
|
+
# should ==
|
51
|
+
# should_not ==
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
describe 'test attribute "state"' do
|
56
|
+
it 'should work' do
|
57
|
+
# assertion here
|
58
|
+
# should be_a()
|
59
|
+
# should be_nil
|
60
|
+
# should ==
|
61
|
+
# should_not ==
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
end
|
66
|
+
|
@@ -0,0 +1,56 @@
|
|
1
|
+
=begin
|
2
|
+
Agrid Quotes API
|
3
|
+
|
4
|
+
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for AgridClient::CityWithStateName
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'CityWithStateName' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = AgridClient::CityWithStateName.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of CityWithStateName' do
|
31
|
+
it 'should create an instact of CityWithStateName' do
|
32
|
+
@instance.should be_a(AgridClient::CityWithStateName)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "title"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here
|
38
|
+
# should be_a()
|
39
|
+
# should be_nil
|
40
|
+
# should ==
|
41
|
+
# should_not ==
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
describe 'test attribute "state"' do
|
46
|
+
it 'should work' do
|
47
|
+
# assertion here
|
48
|
+
# should be_a()
|
49
|
+
# should be_nil
|
50
|
+
# should ==
|
51
|
+
# should_not ==
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
end
|
56
|
+
|