patch_ruby 1.15.2 → 1.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -0
  3. data/Gemfile.lock +1 -1
  4. data/lib/patch_ruby/api/estimates_api.rb +1 -1
  5. data/lib/patch_ruby/api/orders_api.rb +1 -1
  6. data/lib/patch_ruby/api/projects_api.rb +1 -1
  7. data/lib/patch_ruby/api/technology_types_api.rb +1 -1
  8. data/lib/patch_ruby/api_client.rb +2 -2
  9. data/lib/patch_ruby/api_error.rb +1 -1
  10. data/lib/patch_ruby/configuration.rb +4 -4
  11. data/lib/patch_ruby/models/allocation.rb +1 -1
  12. data/lib/patch_ruby/models/create_bitcoin_estimate_request.rb +1 -1
  13. data/lib/patch_ruby/models/create_ethereum_estimate_request.rb +1 -1
  14. data/lib/patch_ruby/models/create_flight_estimate_request.rb +1 -1
  15. data/lib/patch_ruby/models/create_mass_estimate_request.rb +6 -6
  16. data/lib/patch_ruby/models/create_order_request.rb +6 -6
  17. data/lib/patch_ruby/models/create_shipping_estimate_request.rb +1 -1
  18. data/lib/patch_ruby/models/create_success_response.rb +1 -1
  19. data/lib/patch_ruby/models/create_vehicle_estimate_request.rb +1 -1
  20. data/lib/patch_ruby/models/error_response.rb +1 -1
  21. data/lib/patch_ruby/models/estimate.rb +1 -1
  22. data/lib/patch_ruby/models/estimate_list_response.rb +1 -1
  23. data/lib/patch_ruby/models/estimate_response.rb +1 -1
  24. data/lib/patch_ruby/models/highlight.rb +1 -1
  25. data/lib/patch_ruby/models/meta_index_object.rb +1 -1
  26. data/lib/patch_ruby/models/order.rb +6 -6
  27. data/lib/patch_ruby/models/order_list_response.rb +1 -1
  28. data/lib/patch_ruby/models/order_response.rb +1 -1
  29. data/lib/patch_ruby/models/parent_technology_type.rb +1 -1
  30. data/lib/patch_ruby/models/photo.rb +1 -1
  31. data/lib/patch_ruby/models/project.rb +4 -4
  32. data/lib/patch_ruby/models/project_list_response.rb +1 -1
  33. data/lib/patch_ruby/models/project_response.rb +1 -1
  34. data/lib/patch_ruby/models/sdg.rb +1 -1
  35. data/lib/patch_ruby/models/standard.rb +1 -1
  36. data/lib/patch_ruby/models/technology_type.rb +1 -1
  37. data/lib/patch_ruby/models/technology_type_list_response.rb +1 -1
  38. data/lib/patch_ruby/version.rb +2 -2
  39. data/lib/patch_ruby.rb +1 -6
  40. data/patch_ruby.gemspec +1 -1
  41. data/spec/api_client_spec.rb +1 -1
  42. data/spec/configuration_spec.rb +1 -1
  43. data/spec/integration/orders_spec.rb +1 -3
  44. data/spec/spec_helper.rb +1 -1
  45. metadata +27 -51
  46. data/lib/patch_ruby/models/create_preference_request.rb +0 -233
  47. data/lib/patch_ruby/models/preference.rb +0 -264
  48. data/lib/patch_ruby/models/preference_list_response.rb +0 -273
  49. data/lib/patch_ruby/models/preference_response.rb +0 -257
  50. data/spec/api/preferences_api_spec.rb +0 -82
  51. data/spec/factories/create_preference_requests.rb +0 -5
  52. data/spec/factories/preference_list_responses.rb +0 -8
  53. data/spec/factories/preference_responses.rb +0 -7
  54. data/spec/factories/preferences.rb +0 -7
  55. data/spec/integration/preferences_spec.rb +0 -32
  56. data/spec/models/create_preference_request_spec.rb +0 -47
  57. data/spec/models/preference_list_response_spec.rb +0 -64
  58. data/spec/models/preference_response_spec.rb +0 -58
  59. data/spec/models/preference_spec.rb +0 -58
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3c1030fc4a287d8dc68aefe8ba6e240506b31a22f8066202cf1ada2104159f4f
4
- data.tar.gz: 931c2ff23b6323b3410dbebb6c9f65c1e9e77af9bfb498061b264a6b346c35c3
3
+ metadata.gz: b7201e7d6d90f73abe60b5c3eb36f3943eef438f1a36c6bed03d2d33b54b244f
4
+ data.tar.gz: 0277c0aed322fbeb668ab104308556a2611bcfbb834716164d18b32e52b81923
5
5
  SHA512:
6
- metadata.gz: 4399537cffce6cf8beafe1050ecf655b23ca1e8229b19c025d411f96346a23cc425f98289ae02addb496ff624b1d8f2e6fc8bf87ccf604c2081653d2be5041e2
7
- data.tar.gz: b8798208043ec070f062cf91c6ec0fb7a4c0a4d0ad6b039b8ca61cd1b6d35d2e732cb6aeea100cc278369661b50aefed046506befa63bf86d7daef498da63ccb
6
+ metadata.gz: 6bd8bdcd39d35a4f7898ab239ce7498fe5a5fc7e8fff9cbbc335d0c86ac6661e23a5799a9e07ffaa1f8e792c855607e31e92f4eecab4bf8ee9013fdc65697d99
7
+ data.tar.gz: 469e81c991ef8a95db6b789ff865f32f567bbd38eba2720a54a7e09ef38bbde27b4593a1c4ee6f8ec6048b7ef8c582716b638c554a4e4523b308addb7ea4d181
data/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.16.0] - 2021-12-07
9
+
10
+ ### Removed
11
+
12
+ - Removes the `preferences` endpoints (deprecated)
13
+
8
14
  ## [1.15.2] - 2021-11-08
9
15
 
10
16
  ### Added
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- patch_ruby (1.15.2)
4
+ patch_ruby (1.16.0)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -4,7 +4,7 @@
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
9
  OpenAPI Generator version: 5.2.1
10
10
 
@@ -4,7 +4,7 @@
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
9
  OpenAPI Generator version: 5.2.1
10
10
 
@@ -4,7 +4,7 @@
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
9
  OpenAPI Generator version: 5.2.1
10
10
 
@@ -4,7 +4,7 @@
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
9
  OpenAPI Generator version: 5.2.1
10
10
 
@@ -4,7 +4,7 @@
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
9
  OpenAPI Generator version: 5.2.1
10
10
 
@@ -31,7 +31,7 @@ module Patch
31
31
  # @option config [Configuration] Configuration for initializing the object, default to Configuration.default
32
32
  def initialize(config = Configuration.default)
33
33
  @config = config
34
- @user_agent = "patch-ruby/1.15.2"
34
+ @user_agent = "patch-ruby/1.16.0"
35
35
  @default_headers = {
36
36
  'Content-Type' => 'application/json',
37
37
  'User-Agent' => @user_agent
@@ -4,7 +4,7 @@
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
9
  OpenAPI Generator version: 5.2.1
10
10
 
@@ -4,7 +4,7 @@
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
9
  OpenAPI Generator version: 5.2.1
10
10
 
@@ -229,12 +229,12 @@ module Patch
229
229
  def server_settings
230
230
  [
231
231
  {
232
- url: "https://{defaultHost}",
232
+ url: "{defaultUrl}",
233
233
  description: "No description provided",
234
234
  variables: {
235
- defaultHost: {
235
+ defaultUrl: {
236
236
  description: "No description provided",
237
- default_value: "api.patch.io",
237
+ default_value: "https://api.patch.io",
238
238
  }
239
239
  }
240
240
  }
@@ -4,7 +4,7 @@
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
9
  OpenAPI Generator version: 5.2.1
10
10
 
@@ -4,7 +4,7 @@
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
9
  OpenAPI Generator version: 5.2.1
10
10
 
@@ -4,7 +4,7 @@
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
9
  OpenAPI Generator version: 5.2.1
10
10
 
@@ -4,7 +4,7 @@
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
9
  OpenAPI Generator version: 5.2.1
10
10
 
@@ -4,7 +4,7 @@
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
9
  OpenAPI Generator version: 5.2.1
10
10
 
@@ -101,8 +101,8 @@ module Patch
101
101
  invalid_properties.push('invalid value for "mass_g", mass_g cannot be nil.')
102
102
  end
103
103
 
104
- if @mass_g > 2000000000
105
- invalid_properties.push('invalid value for "mass_g", must be smaller than or equal to 2000000000.')
104
+ if @mass_g > 100000000000
105
+ invalid_properties.push('invalid value for "mass_g", must be smaller than or equal to 100000000000.')
106
106
  end
107
107
 
108
108
  if @mass_g < 0
@@ -116,7 +116,7 @@ module Patch
116
116
  # @return true if the model is valid
117
117
  def valid?
118
118
  return false if @mass_g.nil?
119
- return false if @mass_g > 2000000000
119
+ return false if @mass_g > 100000000000
120
120
  return false if @mass_g < 0
121
121
  true
122
122
  end
@@ -128,8 +128,8 @@ module Patch
128
128
  fail ArgumentError, 'mass_g cannot be nil'
129
129
  end
130
130
 
131
- if mass_g > 2000000000
132
- fail ArgumentError, 'invalid value for "mass_g", must be smaller than or equal to 2000000000.'
131
+ if mass_g > 100000000000
132
+ fail ArgumentError, 'invalid value for "mass_g", must be smaller than or equal to 100000000000.'
133
133
  end
134
134
 
135
135
  if mass_g < 0
@@ -4,7 +4,7 @@
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
9
  OpenAPI Generator version: 5.2.1
10
10
 
@@ -102,8 +102,8 @@ module Patch
102
102
  # @return Array for valid properties with the reasons
103
103
  def list_invalid_properties
104
104
  invalid_properties = Array.new
105
- if !@mass_g.nil? && @mass_g > 2000000000
106
- invalid_properties.push('invalid value for "mass_g", must be smaller than or equal to 2000000000.')
105
+ if !@mass_g.nil? && @mass_g > 100000000000
106
+ invalid_properties.push('invalid value for "mass_g", must be smaller than or equal to 100000000000.')
107
107
  end
108
108
 
109
109
  if !@mass_g.nil? && @mass_g < 0
@@ -120,7 +120,7 @@ module Patch
120
120
  # Check to see if the all the properties in the model are valid
121
121
  # @return true if the model is valid
122
122
  def valid?
123
- return false if !@mass_g.nil? && @mass_g > 2000000000
123
+ return false if !@mass_g.nil? && @mass_g > 100000000000
124
124
  return false if !@mass_g.nil? && @mass_g < 0
125
125
  return false if !@total_price_cents_usd.nil? && @total_price_cents_usd < 1
126
126
  true
@@ -129,8 +129,8 @@ module Patch
129
129
  # Custom attribute writer method with validation
130
130
  # @param [Object] mass_g Value to be assigned
131
131
  def mass_g=(mass_g)
132
- if !mass_g.nil? && mass_g > 2000000000
133
- fail ArgumentError, 'invalid value for "mass_g", must be smaller than or equal to 2000000000.'
132
+ if !mass_g.nil? && mass_g > 100000000000
133
+ fail ArgumentError, 'invalid value for "mass_g", must be smaller than or equal to 100000000000.'
134
134
  end
135
135
 
136
136
  if !mass_g.nil? && mass_g < 0
@@ -4,7 +4,7 @@
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
9
  OpenAPI Generator version: 5.2.1
10
10
 
@@ -4,7 +4,7 @@
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
9
  OpenAPI Generator version: 5.2.1
10
10
 
@@ -4,7 +4,7 @@
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
9
  OpenAPI Generator version: 5.2.1
10
10
 
@@ -4,7 +4,7 @@
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
9
  OpenAPI Generator version: 5.2.1
10
10
 
@@ -4,7 +4,7 @@
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
9
  OpenAPI Generator version: 5.2.1
10
10
 
@@ -4,7 +4,7 @@
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
9
  OpenAPI Generator version: 5.2.1
10
10
 
@@ -4,7 +4,7 @@
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
9
  OpenAPI Generator version: 5.2.1
10
10
 
@@ -4,7 +4,7 @@
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
9
  OpenAPI Generator version: 5.2.1
10
10
 
@@ -4,7 +4,7 @@
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
9
  OpenAPI Generator version: 5.2.1
10
10
 
@@ -4,7 +4,7 @@
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
9
  OpenAPI Generator version: 5.2.1
10
10
 
@@ -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
@@ -239,7 +239,7 @@ module Patch
239
239
  def valid?
240
240
  return false if @id.nil?
241
241
  return false if @mass_g.nil?
242
- return false if @mass_g > 2000000000
242
+ return false if @mass_g > 100000000000
243
243
  return false if @mass_g < 0
244
244
  return false if @production.nil?
245
245
  return false if @state.nil?
@@ -260,8 +260,8 @@ module Patch
260
260
  fail ArgumentError, 'mass_g cannot be nil'
261
261
  end
262
262
 
263
- if mass_g > 2000000000
264
- fail ArgumentError, 'invalid value for "mass_g", must be smaller than or equal to 2000000000.'
263
+ if mass_g > 100000000000
264
+ fail ArgumentError, 'invalid value for "mass_g", must be smaller than or equal to 100000000000.'
265
265
  end
266
266
 
267
267
  if mass_g < 0
@@ -4,7 +4,7 @@
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
9
  OpenAPI Generator version: 5.2.1
10
10
 
@@ -4,7 +4,7 @@
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
9
  OpenAPI Generator version: 5.2.1
10
10
 
@@ -4,7 +4,7 @@
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
9
  OpenAPI Generator version: 5.2.1
10
10
 
@@ -4,7 +4,7 @@
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
9
  OpenAPI Generator version: 5.2.1
10
10
 
@@ -4,7 +4,7 @@
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
9
  OpenAPI Generator version: 5.2.1
10
10
 
@@ -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
@@ -4,7 +4,7 @@
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
9
  OpenAPI Generator version: 5.2.1
10
10
 
@@ -4,7 +4,7 @@
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
9
  OpenAPI Generator version: 5.2.1
10
10
 
@@ -4,7 +4,7 @@
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
9
  OpenAPI Generator version: 5.2.1
10
10
 
@@ -4,7 +4,7 @@
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
9
  OpenAPI Generator version: 5.2.1
10
10
 
@@ -4,7 +4,7 @@
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
9
  OpenAPI Generator version: 5.2.1
10
10
 
@@ -4,7 +4,7 @@
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
9
  OpenAPI Generator version: 5.2.1
10
10
 
@@ -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
9
  OpenAPI Generator version: 5.2.1
10
10
 
11
11
  =end
12
12
 
13
13
  module Patch
14
- VERSION = '1.15.2'
14
+ VERSION = '1.16.0'
15
15
  end
data/lib/patch_ruby.rb CHANGED
@@ -4,7 +4,7 @@
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
9
  OpenAPI Generator version: 5.2.1
10
10
 
@@ -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,7 +6,7 @@
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
11
  OpenAPI Generator version: 5.2.1
12
12
 
@@ -4,7 +4,7 @@
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
9
  OpenAPI Generator version: 5.2.1
10
10
 
@@ -4,7 +4,7 @@
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
9
  OpenAPI Generator version: 5.2.1
10
10
 
@@ -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
data/spec/spec_helper.rb CHANGED
@@ -4,7 +4,7 @@
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
9
  OpenAPI Generator version: 5.2.1
10
10