patch_ruby 1.15.2 → 1.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +1 -1
- data/lib/patch_ruby/api/estimates_api.rb +1 -1
- data/lib/patch_ruby/api/orders_api.rb +1 -1
- data/lib/patch_ruby/api/projects_api.rb +1 -1
- data/lib/patch_ruby/api/technology_types_api.rb +1 -1
- data/lib/patch_ruby/api_client.rb +2 -2
- data/lib/patch_ruby/api_error.rb +1 -1
- data/lib/patch_ruby/configuration.rb +4 -4
- data/lib/patch_ruby/models/allocation.rb +1 -1
- data/lib/patch_ruby/models/create_bitcoin_estimate_request.rb +1 -1
- data/lib/patch_ruby/models/create_ethereum_estimate_request.rb +1 -1
- data/lib/patch_ruby/models/create_flight_estimate_request.rb +1 -1
- data/lib/patch_ruby/models/create_mass_estimate_request.rb +6 -6
- data/lib/patch_ruby/models/create_order_request.rb +6 -6
- data/lib/patch_ruby/models/create_shipping_estimate_request.rb +1 -1
- data/lib/patch_ruby/models/create_success_response.rb +1 -1
- data/lib/patch_ruby/models/create_vehicle_estimate_request.rb +1 -1
- data/lib/patch_ruby/models/error_response.rb +1 -1
- data/lib/patch_ruby/models/estimate.rb +1 -1
- data/lib/patch_ruby/models/estimate_list_response.rb +1 -1
- data/lib/patch_ruby/models/estimate_response.rb +1 -1
- data/lib/patch_ruby/models/highlight.rb +1 -1
- data/lib/patch_ruby/models/meta_index_object.rb +1 -1
- data/lib/patch_ruby/models/order.rb +6 -6
- data/lib/patch_ruby/models/order_list_response.rb +1 -1
- data/lib/patch_ruby/models/order_response.rb +1 -1
- data/lib/patch_ruby/models/parent_technology_type.rb +1 -1
- data/lib/patch_ruby/models/photo.rb +1 -1
- data/lib/patch_ruby/models/project.rb +4 -4
- data/lib/patch_ruby/models/project_list_response.rb +1 -1
- data/lib/patch_ruby/models/project_response.rb +1 -1
- data/lib/patch_ruby/models/sdg.rb +1 -1
- data/lib/patch_ruby/models/standard.rb +1 -1
- data/lib/patch_ruby/models/technology_type.rb +1 -1
- data/lib/patch_ruby/models/technology_type_list_response.rb +1 -1
- data/lib/patch_ruby/version.rb +2 -2
- data/lib/patch_ruby.rb +1 -6
- data/patch_ruby.gemspec +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/integration/orders_spec.rb +1 -3
- data/spec/spec_helper.rb +1 -1
- metadata +27 -51
- data/lib/patch_ruby/models/create_preference_request.rb +0 -233
- data/lib/patch_ruby/models/preference.rb +0 -264
- data/lib/patch_ruby/models/preference_list_response.rb +0 -273
- data/lib/patch_ruby/models/preference_response.rb +0 -257
- data/spec/api/preferences_api_spec.rb +0 -82
- data/spec/factories/create_preference_requests.rb +0 -5
- data/spec/factories/preference_list_responses.rb +0 -8
- data/spec/factories/preference_responses.rb +0 -7
- data/spec/factories/preferences.rb +0 -7
- data/spec/integration/preferences_spec.rb +0 -32
- data/spec/models/create_preference_request_spec.rb +0 -47
- data/spec/models/preference_list_response_spec.rb +0 -64
- data/spec/models/preference_response_spec.rb +0 -58
- data/spec/models/preference_spec.rb +0 -58
@@ -1,47 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Patch API V1
|
3
|
-
|
4
|
-
#The core API used to integrate with Patch's service
|
5
|
-
|
6
|
-
The version of the OpenAPI document: v1
|
7
|
-
Contact: developers@usepatch.com
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for Patch::CreatePreferenceRequest
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'CreatePreferenceRequest' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = build(:create_preference_request)
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
it_behaves_like "a generated class" do
|
31
|
-
let(:instance) { @instance }
|
32
|
-
let(:instance_hash) { { project_id: @instance.project_id } }
|
33
|
-
let(:nullable_properties) { Set.new }
|
34
|
-
end
|
35
|
-
|
36
|
-
describe 'test an instance of CreatePreferenceRequest' do
|
37
|
-
it 'should create an instance of CreatePreferenceRequest' do
|
38
|
-
expect(@instance).to be_instance_of(Patch::CreatePreferenceRequest)
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
describe 'test attribute "project_id"' do
|
43
|
-
it 'should work' do
|
44
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
@@ -1,64 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Patch API V1
|
3
|
-
|
4
|
-
#The core API used to integrate with Patch's service
|
5
|
-
|
6
|
-
The version of the OpenAPI document: v1
|
7
|
-
Contact: developers@usepatch.com
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for Patch::PreferenceListResponse
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'PreferenceListResponse' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = build(:preference_list_response)
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
it_behaves_like "a generated class" do
|
31
|
-
let(:instance) { @instance }
|
32
|
-
let(:instance_hash) { { success: @instance.success, error: @instance.error, data: @instance.data, meta: @instance.meta } }
|
33
|
-
let(:nullable_properties) { Set.new([:error]) }
|
34
|
-
end
|
35
|
-
|
36
|
-
describe 'test an instance of PreferenceListResponse' do
|
37
|
-
it 'should create an instance of PreferenceListResponse' do
|
38
|
-
expect(@instance).to be_instance_of(Patch::PreferenceListResponse)
|
39
|
-
end
|
40
|
-
end
|
41
|
-
describe 'test attribute "success"' 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 "error"' 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 "data"' 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 "meta"' 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
|
-
end
|
@@ -1,58 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Patch API V1
|
3
|
-
|
4
|
-
#The core API used to integrate with Patch's service
|
5
|
-
|
6
|
-
The version of the OpenAPI document: v1
|
7
|
-
Contact: developers@usepatch.com
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for Patch::PreferenceResponse
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'PreferenceResponse' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = build(:preference_response)
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
it_behaves_like "a generated class" do
|
31
|
-
let(:instance) { @instance }
|
32
|
-
let(:instance_hash) { { success: @instance.success, error: @instance.error, data: @instance.data } }
|
33
|
-
let(:nullable_properties) { Set.new([:error]) }
|
34
|
-
end
|
35
|
-
|
36
|
-
describe 'test an instance of PreferenceResponse' do
|
37
|
-
it 'should create an instance of PreferenceResponse' do
|
38
|
-
expect(@instance).to be_instance_of(Patch::PreferenceResponse)
|
39
|
-
end
|
40
|
-
end
|
41
|
-
describe 'test attribute "success"' 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 "error"' 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 "data"' 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
|
-
end
|
@@ -1,58 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Patch API V1
|
3
|
-
|
4
|
-
#The core API used to integrate with Patch's service
|
5
|
-
|
6
|
-
The version of the OpenAPI document: v1
|
7
|
-
Contact: developers@usepatch.com
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for Patch::Preference
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'Preference' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = build(:preference)
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
it_behaves_like "a generated class" do
|
31
|
-
let(:instance) { @instance }
|
32
|
-
let(:instance_hash) { { id: @instance.id, project: @instance.project.to_hash, allocation_percentage: @instance.allocation_percentage } }
|
33
|
-
let(:nullable_properties) { Set.new }
|
34
|
-
end
|
35
|
-
|
36
|
-
describe 'test an instance of Preference' do
|
37
|
-
it 'should create an instance of Preference' do
|
38
|
-
expect(@instance).to be_instance_of(Patch::Preference)
|
39
|
-
end
|
40
|
-
end
|
41
|
-
describe 'test attribute "id"' 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 "allocation_percentage"' 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 "project"' 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
|
-
end
|