patch_ruby 1.24.2 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +19 -0
  3. data/Gemfile.lock +9 -10
  4. data/lib/patch_ruby/api/estimates_api.rb +72 -2
  5. data/lib/patch_ruby/api/order_line_items_api.rb +269 -0
  6. data/lib/patch_ruby/api/orders_api.rb +99 -4
  7. data/lib/patch_ruby/api/projects_api.rb +12 -2
  8. data/lib/patch_ruby/api/technology_types_api.rb +7 -2
  9. data/lib/patch_ruby/api_client.rb +3 -3
  10. data/lib/patch_ruby/api_error.rb +2 -2
  11. data/lib/patch_ruby/configuration.rb +3 -4
  12. data/lib/patch_ruby/models/create_air_shipping_estimate_request.rb +2 -2
  13. data/lib/patch_ruby/models/create_bitcoin_estimate_request.rb +2 -2
  14. data/lib/patch_ruby/models/create_ecommerce_estimate_request.rb +2 -2
  15. data/lib/patch_ruby/models/create_ethereum_estimate_request.rb +2 -2
  16. data/lib/patch_ruby/models/create_flight_estimate_request.rb +2 -2
  17. data/lib/patch_ruby/models/create_hotel_estimate_request.rb +2 -2
  18. data/lib/patch_ruby/models/create_mass_estimate_request.rb +7 -7
  19. data/lib/patch_ruby/models/create_order_line_item_request.rb +443 -0
  20. data/lib/patch_ruby/models/create_order_request.rb +79 -70
  21. data/lib/patch_ruby/models/create_rail_shipping_estimate_request.rb +2 -2
  22. data/lib/patch_ruby/models/create_road_shipping_estimate_request.rb +13 -3
  23. data/lib/patch_ruby/models/create_sea_shipping_estimate_request.rb +2 -2
  24. data/lib/patch_ruby/models/create_shipping_estimate_request.rb +2 -2
  25. data/lib/patch_ruby/models/create_success_response.rb +2 -2
  26. data/lib/patch_ruby/models/create_vehicle_estimate_request.rb +2 -2
  27. data/lib/patch_ruby/models/delete_order_line_item_response.rb +257 -0
  28. data/lib/patch_ruby/models/delete_order_response.rb +257 -0
  29. data/lib/patch_ruby/models/disclaimer.rb +282 -0
  30. data/lib/patch_ruby/models/error_response.rb +2 -2
  31. data/lib/patch_ruby/models/estimate.rb +2 -2
  32. data/lib/patch_ruby/models/estimate_list_response.rb +2 -2
  33. data/lib/patch_ruby/models/estimate_response.rb +2 -2
  34. data/lib/patch_ruby/models/highlight.rb +2 -2
  35. data/lib/patch_ruby/models/inventory.rb +33 -3
  36. data/lib/patch_ruby/models/meta_index_object.rb +2 -2
  37. data/lib/patch_ruby/models/order.rb +17 -121
  38. data/lib/patch_ruby/models/order_issued_to.rb +2 -2
  39. data/lib/patch_ruby/models/{order_inventory.rb → order_line_item.rb} +49 -9
  40. data/lib/patch_ruby/models/{order_inventory_project.rb → order_line_item_project.rb} +7 -7
  41. data/lib/patch_ruby/models/{allocation.rb → order_line_item_response.rb} +33 -40
  42. data/lib/patch_ruby/models/order_list_response.rb +2 -2
  43. data/lib/patch_ruby/models/order_response.rb +2 -2
  44. data/lib/patch_ruby/models/parent_technology_type.rb +2 -2
  45. data/lib/patch_ruby/models/photo.rb +2 -2
  46. data/lib/patch_ruby/models/place_order_request.rb +2 -2
  47. data/lib/patch_ruby/models/project.rb +72 -56
  48. data/lib/patch_ruby/models/project_list_response.rb +2 -2
  49. data/lib/patch_ruby/models/project_response.rb +2 -2
  50. data/lib/patch_ruby/models/sdg.rb +2 -2
  51. data/lib/patch_ruby/models/standard.rb +2 -2
  52. data/lib/patch_ruby/models/technology_type.rb +2 -2
  53. data/lib/patch_ruby/models/technology_type_list_response.rb +2 -2
  54. data/lib/patch_ruby/models/update_order_line_item_request.rb +434 -0
  55. data/lib/patch_ruby/version.rb +3 -3
  56. data/lib/patch_ruby.rb +11 -5
  57. data/patch_ruby.gemspec +2 -2
  58. data/spec/api/order_line_items_api_spec.rb +78 -0
  59. data/spec/api_client_spec.rb +2 -2
  60. data/spec/configuration_spec.rb +2 -2
  61. data/spec/factories/create_order_requests.rb +4 -2
  62. data/spec/factories/orders.rb +5 -4
  63. data/spec/factories/projects.rb +1 -4
  64. data/spec/integration/estimates_spec.rb +1 -1
  65. data/spec/integration/orders_spec.rb +121 -44
  66. data/spec/integration/projects_spec.rb +19 -7
  67. data/spec/models/create_order_request_spec.rb +10 -3
  68. data/spec/models/order_spec.rb +8 -23
  69. data/spec/models/project_spec.rb +1 -4
  70. data/spec/spec_helper.rb +2 -2
  71. metadata +35 -31
  72. data/spec/factories/allocations.rb +0 -7
  73. data/spec/models/allocation_spec.rb +0 -59
@@ -1,9 +1,9 @@
1
1
  =begin
2
- #Patch API V1
2
+ #Patch API V2
3
3
 
4
4
  #The core API used to integrate with Patch's service
5
5
 
6
- The version of the OpenAPI document: v1
6
+ The version of the OpenAPI document: 2
7
7
  Contact: engineering@usepatch.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.3.1
@@ -14,22 +14,19 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Patch
17
- class Allocation
18
- # A unique uid for the record. UIDs will be prepended by all_prod or all_test depending on the mode it was created in.
19
- attr_accessor :id
17
+ class OrderLineItemResponse
18
+ attr_accessor :success
20
19
 
21
- # A boolean indicating if this project is a production or demo mode project.
22
- attr_accessor :production
20
+ attr_accessor :error
23
21
 
24
- # The amount (in grams) of allocated carbon offsets.
25
- attr_accessor :mass_g
22
+ attr_accessor :data
26
23
 
27
24
  # Attribute mapping from ruby-style variable name to JSON key.
28
25
  def self.attribute_map
29
26
  {
30
- :'id' => :'id',
31
- :'production' => :'production',
32
- :'mass_g' => :'mass_g'
27
+ :'success' => :'success',
28
+ :'error' => :'error',
29
+ :'data' => :'data'
33
30
  }
34
31
  end
35
32
 
@@ -41,15 +38,16 @@ module Patch
41
38
  # Attribute type mapping.
42
39
  def self.openapi_types
43
40
  {
44
- :'id' => :'String',
45
- :'production' => :'Boolean',
46
- :'mass_g' => :'Integer'
41
+ :'success' => :'Boolean',
42
+ :'error' => :'Object',
43
+ :'data' => :'OrderLineItem'
47
44
  }
48
45
  end
49
46
 
50
47
  # List of attributes with nullable: true
51
48
  def self.openapi_nullable
52
49
  Set.new([
50
+ :'error',
53
51
  ])
54
52
  end
55
53
 
@@ -58,8 +56,8 @@ module Patch
58
56
  # Exposes Model.operation_id which delegates to ModelsApi.new.operation_id
59
57
  # Eg. Order.create_order delegates to OrdersApi.new.create_order
60
58
  def self.method_missing(message, *args, &block)
61
- if Object.const_defined?('Patch::AllocationsApi::OPERATIONS') && Patch::AllocationsApi::OPERATIONS.include?(message)
62
- Patch::AllocationsApi.new.send(message, *args)
59
+ if Object.const_defined?('Patch::OrderLineItemResponsesApi::OPERATIONS') && Patch::OrderLineItemResponsesApi::OPERATIONS.include?(message)
60
+ Patch::OrderLineItemResponsesApi.new.send(message, *args)
63
61
  else
64
62
  super
65
63
  end
@@ -69,27 +67,27 @@ module Patch
69
67
  # @param [Hash] attributes Model attributes in the form of hash
70
68
  def initialize(attributes = {})
71
69
  if (!attributes.is_a?(Hash))
72
- fail ArgumentError, "The input argument (attributes) must be a hash in `Patch::Allocation` initialize method"
70
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Patch::OrderLineItemResponse` initialize method"
73
71
  end
74
72
 
75
73
  # check to see if the attribute exists and convert string to symbol for hash key
76
74
  attributes = attributes.each_with_object({}) { |(k, v), h|
77
75
  if (!self.class.attribute_map.key?(k.to_sym))
78
- fail ArgumentError, "`#{k}` is not a valid attribute in `Patch::Allocation`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
76
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Patch::OrderLineItemResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
79
77
  end
80
78
  h[k.to_sym] = v
81
79
  }
82
80
 
83
- if attributes.key?(:'id')
84
- self.id = attributes[:'id']
81
+ if attributes.key?(:'success')
82
+ self.success = attributes[:'success']
85
83
  end
86
84
 
87
- if attributes.key?(:'production')
88
- self.production = attributes[:'production']
85
+ if attributes.key?(:'error')
86
+ self.error = attributes[:'error']
89
87
  end
90
88
 
91
- if attributes.key?(:'mass_g')
92
- self.mass_g = attributes[:'mass_g']
89
+ if attributes.key?(:'data')
90
+ self.data = attributes[:'data']
93
91
  end
94
92
  end
95
93
 
@@ -97,16 +95,12 @@ module Patch
97
95
  # @return Array for valid properties with the reasons
98
96
  def list_invalid_properties
99
97
  invalid_properties = Array.new
100
- if @id.nil?
101
- invalid_properties.push('invalid value for "id", id cannot be nil.')
98
+ if @success.nil?
99
+ invalid_properties.push('invalid value for "success", success cannot be nil.')
102
100
  end
103
101
 
104
- if @production.nil?
105
- invalid_properties.push('invalid value for "production", production cannot be nil.')
106
- end
107
-
108
- if @mass_g.nil?
109
- invalid_properties.push('invalid value for "mass_g", mass_g cannot be nil.')
102
+ if @data.nil?
103
+ invalid_properties.push('invalid value for "data", data cannot be nil.')
110
104
  end
111
105
 
112
106
  invalid_properties
@@ -115,9 +109,8 @@ module Patch
115
109
  # Check to see if the all the properties in the model are valid
116
110
  # @return true if the model is valid
117
111
  def valid?
118
- return false if @id.nil?
119
- return false if @production.nil?
120
- return false if @mass_g.nil?
112
+ return false if @success.nil?
113
+ return false if @data.nil?
121
114
  true
122
115
  end
123
116
 
@@ -126,9 +119,9 @@ module Patch
126
119
  def ==(o)
127
120
  return true if self.equal?(o)
128
121
  self.class == o.class &&
129
- id == o.id &&
130
- production == o.production &&
131
- mass_g == o.mass_g
122
+ success == o.success &&
123
+ error == o.error &&
124
+ data == o.data
132
125
  end
133
126
 
134
127
  # @see the `==` method
@@ -140,7 +133,7 @@ module Patch
140
133
  # Calculates hash code according to all attributes.
141
134
  # @return [Integer] Hash code
142
135
  def hash
143
- [id, production, mass_g].hash
136
+ [success, error, data].hash
144
137
  end
145
138
 
146
139
  # Builds the object from hash
@@ -1,9 +1,9 @@
1
1
  =begin
2
- #Patch API V1
2
+ #Patch API V2
3
3
 
4
4
  #The core API used to integrate with Patch's service
5
5
 
6
- The version of the OpenAPI document: v1
6
+ The version of the OpenAPI document: 2
7
7
  Contact: engineering@usepatch.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.3.1
@@ -1,9 +1,9 @@
1
1
  =begin
2
- #Patch API V1
2
+ #Patch API V2
3
3
 
4
4
  #The core API used to integrate with Patch's service
5
5
 
6
- The version of the OpenAPI document: v1
6
+ The version of the OpenAPI document: 2
7
7
  Contact: engineering@usepatch.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.3.1
@@ -1,9 +1,9 @@
1
1
  =begin
2
- #Patch API V1
2
+ #Patch API V2
3
3
 
4
4
  #The core API used to integrate with Patch's service
5
5
 
6
- The version of the OpenAPI document: v1
6
+ The version of the OpenAPI document: 2
7
7
  Contact: engineering@usepatch.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.3.1
@@ -1,9 +1,9 @@
1
1
  =begin
2
- #Patch API V1
2
+ #Patch API V2
3
3
 
4
4
  #The core API used to integrate with Patch's service
5
5
 
6
- The version of the OpenAPI document: v1
6
+ The version of the OpenAPI document: 2
7
7
  Contact: engineering@usepatch.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.3.1
@@ -1,9 +1,9 @@
1
1
  =begin
2
- #Patch API V1
2
+ #Patch API V2
3
3
 
4
4
  #The core API used to integrate with Patch's service
5
5
 
6
- The version of the OpenAPI document: v1
6
+ The version of the OpenAPI document: 2
7
7
  Contact: engineering@usepatch.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.3.1
@@ -1,9 +1,9 @@
1
1
  =begin
2
- #Patch API V1
2
+ #Patch API V2
3
3
 
4
4
  #The core API used to integrate with Patch's service
5
5
 
6
- The version of the OpenAPI document: v1
6
+ The version of the OpenAPI document: 2
7
7
  Contact: engineering@usepatch.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.3.1
@@ -27,9 +27,6 @@ module Patch
27
27
  # The description of the project.
28
28
  attr_accessor :description
29
29
 
30
- # DEPRECATED. Favor the technology_type field instead.
31
- attr_accessor :type
32
-
33
30
  # The mechanism of the project. One of: removal, avoidance, avoidance_and_removal.
34
31
  attr_accessor :mechanism
35
32
 
@@ -39,24 +36,21 @@ module Patch
39
36
  # The state where this project is located.
40
37
  attr_accessor :state
41
38
 
39
+ # The issuance type of the project. One of: ex-ante, ex-post.
40
+ attr_accessor :issuance_type
41
+
42
42
  # The latitude at which this project is located.
43
43
  attr_accessor :latitude
44
44
 
45
45
  # The longitude at which this project is located.
46
46
  attr_accessor :longitude
47
47
 
48
- # The name of the project developer.
49
- attr_accessor :developer
48
+ # The name of the project project partner.
49
+ attr_accessor :project_partner
50
50
 
51
51
  # An array of URLs for photos of the project.
52
52
  attr_accessor :photos
53
53
 
54
- # DEPRECATED. The average price per tonne in USD cents for carbon offsets supplied by this project.
55
- attr_accessor :average_price_per_tonne_cents_usd
56
-
57
- # DEPRECATED. The remaining mass in grams available for purchase for this project.
58
- attr_accessor :remaining_mass_g
59
-
60
54
  # 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
55
  attr_accessor :verifier
62
56
 
@@ -77,6 +71,31 @@ module Patch
77
71
  # An array of objects containing available inventory for a project. Available inventory is grouped by a project's vintage year and returns amount and pricing available for a given vintage year.
78
72
  attr_accessor :inventory
79
73
 
74
+ # An array of objects containing disclaimers about the project. Information, warnings, and critical concerns may be present.
75
+ attr_accessor :disclaimers
76
+
77
+ class EnumAttributeValidator
78
+ attr_reader :datatype
79
+ attr_reader :allowable_values
80
+
81
+ def initialize(datatype, allowable_values)
82
+ @allowable_values = allowable_values.map do |value|
83
+ case datatype.to_s
84
+ when /Integer/i
85
+ value.to_i
86
+ when /Float/i
87
+ value.to_f
88
+ else
89
+ value
90
+ end
91
+ end
92
+ end
93
+
94
+ def valid?(value)
95
+ !value || allowable_values.include?(value)
96
+ end
97
+ end
98
+
80
99
  # Attribute mapping from ruby-style variable name to JSON key.
81
100
  def self.attribute_map
82
101
  {
@@ -84,23 +103,22 @@ module Patch
84
103
  :'production' => :'production',
85
104
  :'name' => :'name',
86
105
  :'description' => :'description',
87
- :'type' => :'type',
88
106
  :'mechanism' => :'mechanism',
89
107
  :'country' => :'country',
90
108
  :'state' => :'state',
109
+ :'issuance_type' => :'issuance_type',
91
110
  :'latitude' => :'latitude',
92
111
  :'longitude' => :'longitude',
93
- :'developer' => :'developer',
112
+ :'project_partner' => :'project_partner',
94
113
  :'photos' => :'photos',
95
- :'average_price_per_tonne_cents_usd' => :'average_price_per_tonne_cents_usd',
96
- :'remaining_mass_g' => :'remaining_mass_g',
97
114
  :'verifier' => :'verifier',
98
115
  :'standard' => :'standard',
99
116
  :'sdgs' => :'sdgs',
100
117
  :'tagline' => :'tagline',
101
118
  :'technology_type' => :'technology_type',
102
119
  :'highlights' => :'highlights',
103
- :'inventory' => :'inventory'
120
+ :'inventory' => :'inventory',
121
+ :'disclaimers' => :'disclaimers'
104
122
  }
105
123
  end
106
124
 
@@ -116,23 +134,22 @@ module Patch
116
134
  :'production' => :'Boolean',
117
135
  :'name' => :'String',
118
136
  :'description' => :'String',
119
- :'type' => :'String',
120
137
  :'mechanism' => :'String',
121
138
  :'country' => :'String',
122
139
  :'state' => :'String',
140
+ :'issuance_type' => :'String',
123
141
  :'latitude' => :'Float',
124
142
  :'longitude' => :'Float',
125
- :'developer' => :'String',
143
+ :'project_partner' => :'String',
126
144
  :'photos' => :'Array<Photo>',
127
- :'average_price_per_tonne_cents_usd' => :'Integer',
128
- :'remaining_mass_g' => :'Integer',
129
145
  :'verifier' => :'String',
130
146
  :'standard' => :'Standard',
131
147
  :'sdgs' => :'Array<Sdg>',
132
148
  :'tagline' => :'String',
133
149
  :'technology_type' => :'TechnologyType',
134
150
  :'highlights' => :'Array<Highlight>',
135
- :'inventory' => :'Array<Inventory>'
151
+ :'inventory' => :'Array<Inventory>',
152
+ :'disclaimers' => :'Array<Disclaimer>'
136
153
  }
137
154
  end
138
155
 
@@ -191,10 +208,6 @@ module Patch
191
208
  self.description = attributes[:'description']
192
209
  end
193
210
 
194
- if attributes.key?(:'type')
195
- self.type = attributes[:'type']
196
- end
197
-
198
211
  if attributes.key?(:'mechanism')
199
212
  self.mechanism = attributes[:'mechanism']
200
213
  end
@@ -207,6 +220,10 @@ module Patch
207
220
  self.state = attributes[:'state']
208
221
  end
209
222
 
223
+ if attributes.key?(:'issuance_type')
224
+ self.issuance_type = attributes[:'issuance_type']
225
+ end
226
+
210
227
  if attributes.key?(:'latitude')
211
228
  self.latitude = attributes[:'latitude']
212
229
  end
@@ -215,8 +232,8 @@ module Patch
215
232
  self.longitude = attributes[:'longitude']
216
233
  end
217
234
 
218
- if attributes.key?(:'developer')
219
- self.developer = attributes[:'developer']
235
+ if attributes.key?(:'project_partner')
236
+ self.project_partner = attributes[:'project_partner']
220
237
  end
221
238
 
222
239
  if attributes.key?(:'photos')
@@ -225,14 +242,6 @@ module Patch
225
242
  end
226
243
  end
227
244
 
228
- if attributes.key?(:'average_price_per_tonne_cents_usd')
229
- self.average_price_per_tonne_cents_usd = attributes[:'average_price_per_tonne_cents_usd']
230
- end
231
-
232
- if attributes.key?(:'remaining_mass_g')
233
- self.remaining_mass_g = attributes[:'remaining_mass_g']
234
- end
235
-
236
245
  if attributes.key?(:'verifier')
237
246
  self.verifier = attributes[:'verifier']
238
247
  end
@@ -269,6 +278,12 @@ module Patch
269
278
  self.inventory = value
270
279
  end
271
280
  end
281
+
282
+ if attributes.key?(:'disclaimers')
283
+ if (value = attributes[:'disclaimers']).is_a?(Array)
284
+ self.disclaimers = value
285
+ end
286
+ end
272
287
  end
273
288
 
274
289
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -295,16 +310,8 @@ module Patch
295
310
  invalid_properties.push('invalid value for "country", country cannot be nil.')
296
311
  end
297
312
 
298
- if @developer.nil?
299
- invalid_properties.push('invalid value for "developer", developer cannot be nil.')
300
- end
301
-
302
- if @average_price_per_tonne_cents_usd.nil?
303
- invalid_properties.push('invalid value for "average_price_per_tonne_cents_usd", average_price_per_tonne_cents_usd cannot be nil.')
304
- end
305
-
306
- if @remaining_mass_g.nil?
307
- invalid_properties.push('invalid value for "remaining_mass_g", remaining_mass_g cannot be nil.')
313
+ if @project_partner.nil?
314
+ invalid_properties.push('invalid value for "project_partner", project_partner cannot be nil.')
308
315
  end
309
316
 
310
317
  if @technology_type.nil?
@@ -330,15 +337,25 @@ module Patch
330
337
  return false if @name.nil?
331
338
  return false if @description.nil?
332
339
  return false if @country.nil?
333
- return false if @developer.nil?
334
- return false if @average_price_per_tonne_cents_usd.nil?
335
- return false if @remaining_mass_g.nil?
340
+ issuance_type_validator = EnumAttributeValidator.new('String', ["ex-ante", "ex-post"])
341
+ return false unless issuance_type_validator.valid?(@issuance_type)
342
+ return false if @project_partner.nil?
336
343
  return false if @technology_type.nil?
337
344
  return false if @highlights.nil?
338
345
  return false if @inventory.nil?
339
346
  true
340
347
  end
341
348
 
349
+ # Custom attribute writer method checking allowed values (enum).
350
+ # @param [Object] issuance_type Object to be assigned
351
+ def issuance_type=(issuance_type)
352
+ validator = EnumAttributeValidator.new('String', ["ex-ante", "ex-post"])
353
+ unless validator.valid?(issuance_type)
354
+ fail ArgumentError, "invalid value for \"issuance_type\", must be one of #{validator.allowable_values}."
355
+ end
356
+ @issuance_type = issuance_type
357
+ end
358
+
342
359
  # Checks equality by comparing each attribute.
343
360
  # @param [Object] Object to be compared
344
361
  def ==(o)
@@ -348,23 +365,22 @@ module Patch
348
365
  production == o.production &&
349
366
  name == o.name &&
350
367
  description == o.description &&
351
- type == o.type &&
352
368
  mechanism == o.mechanism &&
353
369
  country == o.country &&
354
370
  state == o.state &&
371
+ issuance_type == o.issuance_type &&
355
372
  latitude == o.latitude &&
356
373
  longitude == o.longitude &&
357
- developer == o.developer &&
374
+ project_partner == o.project_partner &&
358
375
  photos == o.photos &&
359
- average_price_per_tonne_cents_usd == o.average_price_per_tonne_cents_usd &&
360
- remaining_mass_g == o.remaining_mass_g &&
361
376
  verifier == o.verifier &&
362
377
  standard == o.standard &&
363
378
  sdgs == o.sdgs &&
364
379
  tagline == o.tagline &&
365
380
  technology_type == o.technology_type &&
366
381
  highlights == o.highlights &&
367
- inventory == o.inventory
382
+ inventory == o.inventory &&
383
+ disclaimers == o.disclaimers
368
384
  end
369
385
 
370
386
  # @see the `==` method
@@ -376,7 +392,7 @@ module Patch
376
392
  # Calculates hash code according to all attributes.
377
393
  # @return [Integer] Hash code
378
394
  def hash
379
- [id, production, name, description, type, mechanism, country, state, latitude, longitude, developer, photos, average_price_per_tonne_cents_usd, remaining_mass_g, verifier, standard, sdgs, tagline, technology_type, highlights, inventory].hash
395
+ [id, production, name, description, mechanism, country, state, issuance_type, latitude, longitude, project_partner, photos, verifier, standard, sdgs, tagline, technology_type, highlights, inventory, disclaimers].hash
380
396
  end
381
397
 
382
398
  # Builds the object from hash
@@ -1,9 +1,9 @@
1
1
  =begin
2
- #Patch API V1
2
+ #Patch API V2
3
3
 
4
4
  #The core API used to integrate with Patch's service
5
5
 
6
- The version of the OpenAPI document: v1
6
+ The version of the OpenAPI document: 2
7
7
  Contact: engineering@usepatch.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.3.1
@@ -1,9 +1,9 @@
1
1
  =begin
2
- #Patch API V1
2
+ #Patch API V2
3
3
 
4
4
  #The core API used to integrate with Patch's service
5
5
 
6
- The version of the OpenAPI document: v1
6
+ The version of the OpenAPI document: 2
7
7
  Contact: engineering@usepatch.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.3.1
@@ -1,9 +1,9 @@
1
1
  =begin
2
- #Patch API V1
2
+ #Patch API V2
3
3
 
4
4
  #The core API used to integrate with Patch's service
5
5
 
6
- The version of the OpenAPI document: v1
6
+ The version of the OpenAPI document: 2
7
7
  Contact: engineering@usepatch.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.3.1
@@ -1,9 +1,9 @@
1
1
  =begin
2
- #Patch API V1
2
+ #Patch API V2
3
3
 
4
4
  #The core API used to integrate with Patch's service
5
5
 
6
- The version of the OpenAPI document: v1
6
+ The version of the OpenAPI document: 2
7
7
  Contact: engineering@usepatch.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.3.1
@@ -1,9 +1,9 @@
1
1
  =begin
2
- #Patch API V1
2
+ #Patch API V2
3
3
 
4
4
  #The core API used to integrate with Patch's service
5
5
 
6
- The version of the OpenAPI document: v1
6
+ The version of the OpenAPI document: 2
7
7
  Contact: engineering@usepatch.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.3.1
@@ -1,9 +1,9 @@
1
1
  =begin
2
- #Patch API V1
2
+ #Patch API V2
3
3
 
4
4
  #The core API used to integrate with Patch's service
5
5
 
6
- The version of the OpenAPI document: v1
6
+ The version of the OpenAPI document: 2
7
7
  Contact: engineering@usepatch.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.3.1