patch_ruby 1.15.2 → 1.17.1

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.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +18 -0
  3. data/Gemfile.lock +3 -2
  4. data/README.md +0 -27
  5. data/lib/patch_ruby/api/estimates_api.rb +28 -10
  6. data/lib/patch_ruby/api/orders_api.rb +10 -7
  7. data/lib/patch_ruby/api/projects_api.rb +4 -4
  8. data/lib/patch_ruby/api/technology_types_api.rb +3 -3
  9. data/lib/patch_ruby/api_client.rb +6 -6
  10. data/lib/patch_ruby/api_error.rb +2 -2
  11. data/lib/patch_ruby/configuration.rb +6 -6
  12. data/lib/patch_ruby/models/allocation.rb +2 -2
  13. data/lib/patch_ruby/models/create_bitcoin_estimate_request.rb +2 -2
  14. data/lib/patch_ruby/models/create_ethereum_estimate_request.rb +2 -2
  15. data/lib/patch_ruby/models/create_flight_estimate_request.rb +2 -2
  16. data/lib/patch_ruby/models/create_mass_estimate_request.rb +7 -7
  17. data/lib/patch_ruby/models/create_order_request.rb +7 -7
  18. data/lib/patch_ruby/models/create_shipping_estimate_request.rb +2 -2
  19. data/lib/patch_ruby/models/create_success_response.rb +3 -7
  20. data/lib/patch_ruby/models/create_vehicle_estimate_request.rb +2 -2
  21. data/lib/patch_ruby/models/error_response.rb +3 -7
  22. data/lib/patch_ruby/models/estimate.rb +5 -2
  23. data/lib/patch_ruby/models/estimate_list_response.rb +2 -2
  24. data/lib/patch_ruby/models/estimate_response.rb +2 -2
  25. data/lib/patch_ruby/models/highlight.rb +2 -2
  26. data/lib/patch_ruby/models/meta_index_object.rb +2 -2
  27. data/lib/patch_ruby/models/order.rb +10 -15
  28. data/lib/patch_ruby/models/order_list_response.rb +2 -2
  29. data/lib/patch_ruby/models/order_response.rb +2 -2
  30. data/lib/patch_ruby/models/parent_technology_type.rb +2 -2
  31. data/lib/patch_ruby/models/photo.rb +2 -2
  32. data/lib/patch_ruby/models/project.rb +9 -6
  33. data/lib/patch_ruby/models/project_list_response.rb +2 -2
  34. data/lib/patch_ruby/models/project_response.rb +2 -2
  35. data/lib/patch_ruby/models/sdg.rb +2 -2
  36. data/lib/patch_ruby/models/standard.rb +2 -2
  37. data/lib/patch_ruby/models/technology_type.rb +2 -2
  38. data/lib/patch_ruby/models/technology_type_list_response.rb +2 -2
  39. data/lib/patch_ruby/version.rb +3 -3
  40. data/lib/patch_ruby.rb +2 -7
  41. data/patch_ruby.gemspec +2 -2
  42. data/spec/api_client_spec.rb +4 -4
  43. data/spec/configuration_spec.rb +2 -2
  44. data/spec/integration/orders_spec.rb +1 -3
  45. data/spec/models/error_response_spec.rb +1 -1
  46. data/spec/spec_helper.rb +2 -2
  47. metadata +25 -50
  48. data/lib/patch_ruby/api/preferences_api.rb +0 -284
  49. data/lib/patch_ruby/models/create_preference_request.rb +0 -233
  50. data/lib/patch_ruby/models/preference.rb +0 -264
  51. data/lib/patch_ruby/models/preference_list_response.rb +0 -273
  52. data/lib/patch_ruby/models/preference_response.rb +0 -257
  53. data/spec/api/preferences_api_spec.rb +0 -82
  54. data/spec/factories/create_preference_requests.rb +0 -5
  55. data/spec/factories/preference_list_responses.rb +0 -8
  56. data/spec/factories/preference_responses.rb +0 -7
  57. data/spec/factories/preferences.rb +0 -7
  58. data/spec/integration/preferences_spec.rb +0 -32
  59. data/spec/models/create_preference_request_spec.rb +0 -47
  60. data/spec/models/preference_list_response_spec.rb +0 -64
  61. data/spec/models/preference_response_spec.rb +0 -58
  62. data/spec/models/preference_spec.rb +0 -58
@@ -4,9 +4,9 @@
4
4
  #The core API used to integrate with Patch's service
5
5
 
6
6
  The version of the OpenAPI document: v1
7
- Contact: developers@usepatch.com
7
+ Contact: engineering@usepatch.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
9
+ OpenAPI Generator version: 5.3.1
10
10
 
11
11
  =end
12
12
 
@@ -4,9 +4,9 @@
4
4
  #The core API used to integrate with Patch's service
5
5
 
6
6
  The version of the OpenAPI document: v1
7
- Contact: developers@usepatch.com
7
+ Contact: engineering@usepatch.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
9
+ OpenAPI Generator version: 5.3.1
10
10
 
11
11
  =end
12
12
 
@@ -4,9 +4,9 @@
4
4
  #The core API used to integrate with Patch's service
5
5
 
6
6
  The version of the OpenAPI document: v1
7
- Contact: developers@usepatch.com
7
+ Contact: engineering@usepatch.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
9
+ OpenAPI Generator version: 5.3.1
10
10
 
11
11
  =end
12
12
 
@@ -4,9 +4,9 @@
4
4
  #The core API used to integrate with Patch's service
5
5
 
6
6
  The version of the OpenAPI document: v1
7
- Contact: developers@usepatch.com
7
+ Contact: engineering@usepatch.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
9
+ OpenAPI Generator version: 5.3.1
10
10
 
11
11
  =end
12
12
 
@@ -4,9 +4,9 @@
4
4
  #The core API used to integrate with Patch's service
5
5
 
6
6
  The version of the OpenAPI document: v1
7
- Contact: developers@usepatch.com
7
+ Contact: engineering@usepatch.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
9
+ OpenAPI Generator version: 5.3.1
10
10
 
11
11
  =end
12
12
 
@@ -39,7 +39,7 @@ module Patch
39
39
  # The Patch Fee in cents USD for this order.
40
40
  attr_accessor :patch_fee_cents_usd
41
41
 
42
- # An array containing the inventory allocations for this order.
42
+ # DEPRECATED. An array containing the inventory allocations for this order.
43
43
  attr_accessor :allocations
44
44
 
45
45
  # The url of this order in the public registry.
@@ -203,8 +203,8 @@ module Patch
203
203
  invalid_properties.push('invalid value for "mass_g", mass_g cannot be nil.')
204
204
  end
205
205
 
206
- if @mass_g > 2000000000
207
- invalid_properties.push('invalid value for "mass_g", must be smaller than or equal to 2000000000.')
206
+ if @mass_g > 100000000000
207
+ invalid_properties.push('invalid value for "mass_g", must be smaller than or equal to 100000000000.')
208
208
  end
209
209
 
210
210
  if @mass_g < 0
@@ -223,10 +223,6 @@ module Patch
223
223
  invalid_properties.push('invalid value for "allocation_state", allocation_state cannot be nil.')
224
224
  end
225
225
 
226
- if @allocations.nil?
227
- invalid_properties.push('invalid value for "allocations", allocations cannot be nil.')
228
- end
229
-
230
226
  if @metadata.nil?
231
227
  invalid_properties.push('invalid value for "metadata", metadata cannot be nil.')
232
228
  end
@@ -239,16 +235,15 @@ module Patch
239
235
  def valid?
240
236
  return false if @id.nil?
241
237
  return false if @mass_g.nil?
242
- return false if @mass_g > 2000000000
238
+ return false if @mass_g > 100000000000
243
239
  return false if @mass_g < 0
244
240
  return false if @production.nil?
245
241
  return false if @state.nil?
246
242
  state_validator = EnumAttributeValidator.new('String', ["draft", "placed", "processing", "complete", "cancelled"])
247
243
  return false unless state_validator.valid?(@state)
248
244
  return false if @allocation_state.nil?
249
- allocation_state_validator = EnumAttributeValidator.new('String', ["pending", "partially_allocated", "allocated"])
245
+ allocation_state_validator = EnumAttributeValidator.new('String', ["pending", "allocated"])
250
246
  return false unless allocation_state_validator.valid?(@allocation_state)
251
- return false if @allocations.nil?
252
247
  return false if @metadata.nil?
253
248
  true
254
249
  end
@@ -260,8 +255,8 @@ module Patch
260
255
  fail ArgumentError, 'mass_g cannot be nil'
261
256
  end
262
257
 
263
- if mass_g > 2000000000
264
- fail ArgumentError, 'invalid value for "mass_g", must be smaller than or equal to 2000000000.'
258
+ if mass_g > 100000000000
259
+ fail ArgumentError, 'invalid value for "mass_g", must be smaller than or equal to 100000000000.'
265
260
  end
266
261
 
267
262
  if mass_g < 0
@@ -284,7 +279,7 @@ module Patch
284
279
  # Custom attribute writer method checking allowed values (enum).
285
280
  # @param [Object] allocation_state Object to be assigned
286
281
  def allocation_state=(allocation_state)
287
- validator = EnumAttributeValidator.new('String', ["pending", "partially_allocated", "allocated"])
282
+ validator = EnumAttributeValidator.new('String', ["pending", "allocated"])
288
283
  unless validator.valid?(allocation_state)
289
284
  fail ArgumentError, "invalid value for \"allocation_state\", must be one of #{validator.allowable_values}."
290
285
  end
@@ -4,9 +4,9 @@
4
4
  #The core API used to integrate with Patch's service
5
5
 
6
6
  The version of the OpenAPI document: v1
7
- Contact: developers@usepatch.com
7
+ Contact: engineering@usepatch.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
9
+ OpenAPI Generator version: 5.3.1
10
10
 
11
11
  =end
12
12
 
@@ -4,9 +4,9 @@
4
4
  #The core API used to integrate with Patch's service
5
5
 
6
6
  The version of the OpenAPI document: v1
7
- Contact: developers@usepatch.com
7
+ Contact: engineering@usepatch.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
9
+ OpenAPI Generator version: 5.3.1
10
10
 
11
11
  =end
12
12
 
@@ -4,9 +4,9 @@
4
4
  #The core API used to integrate with Patch's service
5
5
 
6
6
  The version of the OpenAPI document: v1
7
- Contact: developers@usepatch.com
7
+ Contact: engineering@usepatch.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
9
+ OpenAPI Generator version: 5.3.1
10
10
 
11
11
  =end
12
12
 
@@ -4,9 +4,9 @@
4
4
  #The core API used to integrate with Patch's service
5
5
 
6
6
  The version of the OpenAPI document: v1
7
- Contact: developers@usepatch.com
7
+ Contact: engineering@usepatch.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
9
+ OpenAPI Generator version: 5.3.1
10
10
 
11
11
  =end
12
12
 
@@ -4,9 +4,9 @@
4
4
  #The core API used to integrate with Patch's service
5
5
 
6
6
  The version of the OpenAPI document: v1
7
- Contact: developers@usepatch.com
7
+ Contact: engineering@usepatch.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
9
+ OpenAPI Generator version: 5.3.1
10
10
 
11
11
  =end
12
12
 
@@ -27,7 +27,7 @@ module Patch
27
27
  # The description of the project.
28
28
  attr_accessor :description
29
29
 
30
- # Deprecated. Favor the technology_type field instead.
30
+ # DEPRECATED. Favor the technology_type field instead.
31
31
  attr_accessor :type
32
32
 
33
33
  # The mechanism of the project. Either removal or avoidance.
@@ -57,10 +57,10 @@ module Patch
57
57
  # The remaining mass in grams available for purchase for this project.
58
58
  attr_accessor :remaining_mass_g
59
59
 
60
- # The name of the project verifier. A verifier is the organization that verifies the calculations of the actual amount of greenhouse gas emissions that have been avoided or sequestered through implementation of the project.
60
+ # The name of the project verifier, when applicable. A verifier is the organization that verifies the calculations of the actual amount of greenhouse gas emissions that have been avoided or sequestered through implementation of the project.
61
61
  attr_accessor :verifier
62
62
 
63
- # An object returning the Standard associated with this project. Standards provide guidance on GHG quantification, monitoring, and reporting. Standards can include protocols/methodologies and guidance documents.
63
+ # An object returning the Standard associated with this project, when applicable. Standards provide guidance on GHG quantification, monitoring, and reporting. Standards can include protocols/methodologies and guidance documents.
64
64
  attr_accessor :standard
65
65
 
66
66
  # An array returning the UN Sustainable Development Goals associated with this project.
@@ -71,7 +71,7 @@ module Patch
71
71
 
72
72
  attr_accessor :technology_type
73
73
 
74
- # An array of objects containing the highlight's slug and title. A highlight's title is a short string that spotlights a characteristic about the project.
74
+ # An array of objects containing the highlight's slug, title, and a URL for the corresponding icon. A highlight's title is a short string that spotlights a characteristic about the project.
75
75
  attr_accessor :highlights
76
76
 
77
77
  class EnumAttributeValidator
@@ -255,6 +255,9 @@ module Patch
255
255
  end
256
256
 
257
257
  if attributes.key?(:'standard')
258
+ if (value = attributes[:'standard']).is_a?(Hash)
259
+ self.standard = value
260
+ end
258
261
  self.standard = attributes[:'standard']
259
262
  end
260
263
 
@@ -4,9 +4,9 @@
4
4
  #The core API used to integrate with Patch's service
5
5
 
6
6
  The version of the OpenAPI document: v1
7
- Contact: developers@usepatch.com
7
+ Contact: engineering@usepatch.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
9
+ OpenAPI Generator version: 5.3.1
10
10
 
11
11
  =end
12
12
 
@@ -4,9 +4,9 @@
4
4
  #The core API used to integrate with Patch's service
5
5
 
6
6
  The version of the OpenAPI document: v1
7
- Contact: developers@usepatch.com
7
+ Contact: engineering@usepatch.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
9
+ OpenAPI Generator version: 5.3.1
10
10
 
11
11
  =end
12
12
 
@@ -4,9 +4,9 @@
4
4
  #The core API used to integrate with Patch's service
5
5
 
6
6
  The version of the OpenAPI document: v1
7
- Contact: developers@usepatch.com
7
+ Contact: engineering@usepatch.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
9
+ OpenAPI Generator version: 5.3.1
10
10
 
11
11
  =end
12
12
 
@@ -4,9 +4,9 @@
4
4
  #The core API used to integrate with Patch's service
5
5
 
6
6
  The version of the OpenAPI document: v1
7
- Contact: developers@usepatch.com
7
+ Contact: engineering@usepatch.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
9
+ OpenAPI Generator version: 5.3.1
10
10
 
11
11
  =end
12
12
 
@@ -4,9 +4,9 @@
4
4
  #The core API used to integrate with Patch's service
5
5
 
6
6
  The version of the OpenAPI document: v1
7
- Contact: developers@usepatch.com
7
+ Contact: engineering@usepatch.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
9
+ OpenAPI Generator version: 5.3.1
10
10
 
11
11
  =end
12
12
 
@@ -4,9 +4,9 @@
4
4
  #The core API used to integrate with Patch's service
5
5
 
6
6
  The version of the OpenAPI document: v1
7
- Contact: developers@usepatch.com
7
+ Contact: engineering@usepatch.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
9
+ OpenAPI Generator version: 5.3.1
10
10
 
11
11
  =end
12
12
 
@@ -4,12 +4,12 @@
4
4
  #The core API used to integrate with Patch's service
5
5
 
6
6
  The version of the OpenAPI document: v1
7
- Contact: developers@usepatch.com
7
+ Contact: engineering@usepatch.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
9
+ OpenAPI Generator version: 5.3.1
10
10
 
11
11
  =end
12
12
 
13
13
  module Patch
14
- VERSION = '1.15.2'
14
+ VERSION = '1.17.1'
15
15
  end
data/lib/patch_ruby.rb CHANGED
@@ -4,9 +4,9 @@
4
4
  #The core API used to integrate with Patch's service
5
5
 
6
6
  The version of the OpenAPI document: v1
7
- Contact: developers@usepatch.com
7
+ Contact: engineering@usepatch.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
9
+ OpenAPI Generator version: 5.3.1
10
10
 
11
11
  =end
12
12
 
@@ -23,7 +23,6 @@ require 'patch_ruby/models/create_ethereum_estimate_request'
23
23
  require 'patch_ruby/models/create_flight_estimate_request'
24
24
  require 'patch_ruby/models/create_mass_estimate_request'
25
25
  require 'patch_ruby/models/create_order_request'
26
- require 'patch_ruby/models/create_preference_request'
27
26
  require 'patch_ruby/models/create_shipping_estimate_request'
28
27
  require 'patch_ruby/models/create_success_response'
29
28
  require 'patch_ruby/models/create_vehicle_estimate_request'
@@ -38,9 +37,6 @@ require 'patch_ruby/models/order_list_response'
38
37
  require 'patch_ruby/models/order_response'
39
38
  require 'patch_ruby/models/parent_technology_type'
40
39
  require 'patch_ruby/models/photo'
41
- require 'patch_ruby/models/preference'
42
- require 'patch_ruby/models/preference_list_response'
43
- require 'patch_ruby/models/preference_response'
44
40
  require 'patch_ruby/models/project'
45
41
  require 'patch_ruby/models/project_list_response'
46
42
  require 'patch_ruby/models/project_response'
@@ -52,7 +48,6 @@ require 'patch_ruby/models/technology_type_list_response'
52
48
  # APIs
53
49
  require 'patch_ruby/api/estimates_api'
54
50
  require 'patch_ruby/api/orders_api'
55
- require 'patch_ruby/api/preferences_api'
56
51
  require 'patch_ruby/api/projects_api'
57
52
  require 'patch_ruby/api/technology_types_api'
58
53
 
data/patch_ruby.gemspec CHANGED
@@ -6,9 +6,9 @@
6
6
  #The core API used to integrate with Patch's service
7
7
 
8
8
  The version of the OpenAPI document: v1
9
- Contact: developers@usepatch.com
9
+ Contact: engineering@usepatch.com
10
10
  Generated by: https://openapi-generator.tech
11
- OpenAPI Generator version: 5.2.1
11
+ OpenAPI Generator version: 5.3.1
12
12
 
13
13
  =end
14
14
 
@@ -4,9 +4,9 @@
4
4
  #The core API used to integrate with Patch's service
5
5
 
6
6
  The version of the OpenAPI document: v1
7
- Contact: developers@usepatch.com
7
+ Contact: engineering@usepatch.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
9
+ OpenAPI Generator version: 5.3.1
10
10
 
11
11
  =end
12
12
 
@@ -197,8 +197,8 @@ describe Patch::ApiClient do
197
197
  let(:api_client) { Patch::ApiClient.new }
198
198
 
199
199
  it 'works' do
200
- expect(api_client.select_header_content_type(nil)).to eq('application/json')
201
- expect(api_client.select_header_content_type([])).to eq('application/json')
200
+ expect(api_client.select_header_content_type(nil)).to be_nil
201
+ expect(api_client.select_header_content_type([])).to be_nil
202
202
 
203
203
  expect(api_client.select_header_content_type(['application/json'])).to eq('application/json')
204
204
  expect(api_client.select_header_content_type(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
@@ -4,9 +4,9 @@
4
4
  #The core API used to integrate with Patch's service
5
5
 
6
6
  The version of the OpenAPI document: v1
7
- Contact: developers@usepatch.com
7
+ Contact: engineering@usepatch.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
9
+ OpenAPI Generator version: 5.3.1
10
10
 
11
11
  =end
12
12
 
@@ -30,8 +30,6 @@ RSpec.describe 'Orders Integration' do
30
30
  order_mass_g = 100_000
31
31
  tonne_per_gram = 1_000_000
32
32
 
33
- expected_price = (average_price_per_tonne_cents_usd.to_f / tonne_per_gram) * order_mass_g
34
-
35
33
  create_order_response = Patch::Order.create_order(mass_g: order_mass_g, project_id: project_id)
36
34
 
37
35
  order = create_order_response.data
@@ -39,7 +37,7 @@ RSpec.describe 'Orders Integration' do
39
37
  expect(order.id).not_to be_nil
40
38
  expect(order.created_at).to be_a_kind_of(Time)
41
39
  expect(order.mass_g).to eq(order_mass_g)
42
- expect(order.price_cents_usd).to be_between(expected_price - 2, expected_price + 2)
40
+ expect(order.price_cents_usd).to be_kind_of(Integer)
43
41
  expect(order.patch_fee_cents_usd).to be_kind_of(Integer)
44
42
  expect(order.registry_url).not_to be_empty
45
43
  end
@@ -30,7 +30,7 @@ describe 'ErrorResponse' do
30
30
  it_behaves_like "a generated class" do
31
31
  let(:instance) { @instance }
32
32
  let(:instance_hash) { { success: @instance.success, error: @instance.error, data: @instance.data } }
33
- let(:nullable_properties) { Set.new([:data]) }
33
+ let(:nullable_properties) { Set.new([:data, :error]) }
34
34
  end
35
35
 
36
36
  describe 'test an instance of ErrorResponse' do
data/spec/spec_helper.rb CHANGED
@@ -4,9 +4,9 @@
4
4
  #The core API used to integrate with Patch's service
5
5
 
6
6
  The version of the OpenAPI document: v1
7
- Contact: developers@usepatch.com
7
+ Contact: engineering@usepatch.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
9
+ OpenAPI Generator version: 5.3.1
10
10
 
11
11
  =end
12
12
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: patch_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.15.2
4
+ version: 1.17.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patch Technology
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-15 00:00:00.000000000 Z
11
+ date: 2022-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -95,7 +95,6 @@ files:
95
95
  - lib/patch_ruby.rb
96
96
  - lib/patch_ruby/api/estimates_api.rb
97
97
  - lib/patch_ruby/api/orders_api.rb
98
- - lib/patch_ruby/api/preferences_api.rb
99
98
  - lib/patch_ruby/api/projects_api.rb
100
99
  - lib/patch_ruby/api/technology_types_api.rb
101
100
  - lib/patch_ruby/api_client.rb
@@ -107,7 +106,6 @@ files:
107
106
  - lib/patch_ruby/models/create_flight_estimate_request.rb
108
107
  - lib/patch_ruby/models/create_mass_estimate_request.rb
109
108
  - lib/patch_ruby/models/create_order_request.rb
110
- - lib/patch_ruby/models/create_preference_request.rb
111
109
  - lib/patch_ruby/models/create_shipping_estimate_request.rb
112
110
  - lib/patch_ruby/models/create_success_response.rb
113
111
  - lib/patch_ruby/models/create_vehicle_estimate_request.rb
@@ -122,9 +120,6 @@ files:
122
120
  - lib/patch_ruby/models/order_response.rb
123
121
  - lib/patch_ruby/models/parent_technology_type.rb
124
122
  - lib/patch_ruby/models/photo.rb
125
- - lib/patch_ruby/models/preference.rb
126
- - lib/patch_ruby/models/preference_list_response.rb
127
- - lib/patch_ruby/models/preference_response.rb
128
123
  - lib/patch_ruby/models/project.rb
129
124
  - lib/patch_ruby/models/project_list_response.rb
130
125
  - lib/patch_ruby/models/project_response.rb
@@ -136,7 +131,6 @@ files:
136
131
  - patch_ruby.gemspec
137
132
  - spec/api/estimates_api_spec.rb
138
133
  - spec/api/orders_api_spec.rb
139
- - spec/api/preferences_api_spec.rb
140
134
  - spec/api/projects_api_spec.rb
141
135
  - spec/api/technology_types_api_spec.rb
142
136
  - spec/api_client_spec.rb
@@ -145,7 +139,6 @@ files:
145
139
  - spec/factories/allocations.rb
146
140
  - spec/factories/create_mass_estimate_requests.rb
147
141
  - spec/factories/create_order_requests.rb
148
- - spec/factories/create_preference_requests.rb
149
142
  - spec/factories/error_responses.rb
150
143
  - spec/factories/estimate_list_responses.rb
151
144
  - spec/factories/estimate_responses.rb
@@ -155,9 +148,6 @@ files:
155
148
  - spec/factories/order_responses.rb
156
149
  - spec/factories/orders.rb
157
150
  - spec/factories/parent_technology_type.rb
158
- - spec/factories/preference_list_responses.rb
159
- - spec/factories/preference_responses.rb
160
- - spec/factories/preferences.rb
161
151
  - spec/factories/project_list_responses.rb
162
152
  - spec/factories/project_responses.rb
163
153
  - spec/factories/projects.rb
@@ -165,13 +155,11 @@ files:
165
155
  - spec/factories/technology_type.rb
166
156
  - spec/integration/estimates_spec.rb
167
157
  - spec/integration/orders_spec.rb
168
- - spec/integration/preferences_spec.rb
169
158
  - spec/integration/projects/technology_types_spec.rb
170
159
  - spec/integration/projects_spec.rb
171
160
  - spec/models/allocation_spec.rb
172
161
  - spec/models/create_mass_estimate_request_spec.rb
173
162
  - spec/models/create_order_request_spec.rb
174
- - spec/models/create_preference_request_spec.rb
175
163
  - spec/models/error_response_spec.rb
176
164
  - spec/models/estimate_list_response_spec.rb
177
165
  - spec/models/estimate_response_spec.rb
@@ -180,9 +168,6 @@ files:
180
168
  - spec/models/order_list_response_spec.rb
181
169
  - spec/models/order_response_spec.rb
182
170
  - spec/models/order_spec.rb
183
- - spec/models/preference_list_response_spec.rb
184
- - spec/models/preference_response_spec.rb
185
- - spec/models/preference_spec.rb
186
171
  - spec/models/project_list_response_spec.rb
187
172
  - spec/models/project_response_spec.rb
188
173
  - spec/models/project_spec.rb
@@ -213,58 +198,48 @@ signing_key:
213
198
  specification_version: 4
214
199
  summary: Ruby wrapper for the Patch API
215
200
  test_files:
216
- - spec/api/projects_api_spec.rb
217
- - spec/api/orders_api_spec.rb
218
201
  - spec/api/technology_types_api_spec.rb
219
- - spec/api/preferences_api_spec.rb
202
+ - spec/api/orders_api_spec.rb
220
203
  - spec/api/estimates_api_spec.rb
204
+ - spec/api/projects_api_spec.rb
221
205
  - spec/api_client_spec.rb
222
206
  - spec/configuration_spec.rb
223
207
  - spec/constants.rb
208
+ - spec/factories/project_list_responses.rb
209
+ - spec/factories/error_responses.rb
224
210
  - spec/factories/sdgs.rb
225
- - spec/factories/order_responses.rb
226
- - spec/factories/orders.rb
211
+ - spec/factories/meta_index_objects.rb
227
212
  - spec/factories/create_mass_estimate_requests.rb
228
- - spec/factories/create_preference_requests.rb
229
213
  - spec/factories/project_responses.rb
230
- - spec/factories/meta_index_objects.rb
231
214
  - spec/factories/estimates.rb
232
- - spec/factories/order_list_responses.rb
233
215
  - spec/factories/parent_technology_type.rb
234
- - spec/factories/preferences.rb
235
- - spec/factories/estimate_list_responses.rb
236
- - spec/factories/preference_responses.rb
237
- - spec/factories/error_responses.rb
238
- - spec/factories/projects.rb
239
- - spec/factories/preference_list_responses.rb
216
+ - spec/factories/technology_type.rb
217
+ - spec/factories/order_responses.rb
240
218
  - spec/factories/estimate_responses.rb
241
219
  - spec/factories/allocations.rb
242
- - spec/factories/project_list_responses.rb
243
- - spec/factories/technology_type.rb
220
+ - spec/factories/estimate_list_responses.rb
221
+ - spec/factories/orders.rb
222
+ - spec/factories/projects.rb
223
+ - spec/factories/order_list_responses.rb
244
224
  - spec/factories/create_order_requests.rb
245
- - spec/integration/preferences_spec.rb
246
- - spec/integration/estimates_spec.rb
247
- - spec/integration/orders_spec.rb
248
225
  - spec/integration/projects/technology_types_spec.rb
226
+ - spec/integration/orders_spec.rb
249
227
  - spec/integration/projects_spec.rb
228
+ - spec/integration/estimates_spec.rb
229
+ - spec/models/project_spec.rb
230
+ - spec/models/order_response_spec.rb
231
+ - spec/models/error_response_spec.rb
232
+ - spec/models/project_response_spec.rb
233
+ - spec/models/meta_index_object_spec.rb
234
+ - spec/models/create_mass_estimate_request_spec.rb
250
235
  - spec/models/estimate_list_response_spec.rb
251
- - spec/models/preference_response_spec.rb
252
- - spec/models/estimate_spec.rb
236
+ - spec/models/allocation_spec.rb
253
237
  - spec/models/create_order_request_spec.rb
254
238
  - spec/models/order_list_response_spec.rb
255
- - spec/models/preference_list_response_spec.rb
256
- - spec/models/create_preference_request_spec.rb
257
- - spec/models/preference_spec.rb
258
- - spec/models/estimate_response_spec.rb
259
- - spec/models/order_spec.rb
260
- - spec/models/project_response_spec.rb
261
- - spec/models/order_response_spec.rb
262
- - spec/models/meta_index_object_spec.rb
263
239
  - spec/models/project_list_response_spec.rb
264
- - spec/models/error_response_spec.rb
265
- - spec/models/allocation_spec.rb
266
- - spec/models/project_spec.rb
267
- - spec/models/create_mass_estimate_request_spec.rb
240
+ - spec/models/estimate_spec.rb
241
+ - spec/models/order_spec.rb
242
+ - spec/models/estimate_response_spec.rb
268
243
  - spec/patch_ruby_spec.rb
269
244
  - spec/spec_helper.rb
270
245
  - spec/support/shared/generated_classes.rb