patch_ruby 2.0.0 → 2.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ffab52fb27f71cbe7b98bf78cd0c73271c058bcf0d6f3c38b9df718f6816a802
4
- data.tar.gz: 519f529a4d608fde6517907961fe4b38398594aaa2ebd8a6b54d4b39d8e2da99
3
+ metadata.gz: 16edac907575e6b8068c9477a8f2ff71e8fe93ea57b6b234731d0af872b2547e
4
+ data.tar.gz: c089107261a1a780d3328f5027dcf1606af6d37fb0c3a795f22939b686788eae
5
5
  SHA512:
6
- metadata.gz: da969c2cfe5217621910a4629945cf47cc29473394010fecdc53ad9bcf94c747ae677f12de8fd9e24c44bb1b2969e23167163dc4e8085dcb9572931794aa421c
7
- data.tar.gz: 899e11a3911ed3102353c7d4753ac5cfe522f0dd9448a66e48f7e04f66f442c70f2bcaf8514b5faa86425c5db1cb8905350536290017656e2d9a5786dd2c1ba3
6
+ metadata.gz: e0291704bb71d7d806e4de9e419a7ec0faaea023f4c6c687cf710d998736dd27f00e87b403ed2f448731d0bdf70bc47da3e125e195b34ecfde449a112db757aa
7
+ data.tar.gz: bb882d46219d0be21b226663233efd5a0f2fbdd55e41c5b78f965d940fbe9b71e454883252ee927cb923afe8d9afcbbe0dba0c65888d7c09f33a6eb60fbde036
data/CHANGELOG.md CHANGED
@@ -5,6 +5,25 @@ 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
+ ## [2.1.1] - 2023-04-18
9
+
10
+ ### Added
11
+
12
+ - Adds `issuance_type` to `project` responses
13
+ - Adds `disclaimers` to `project` responses
14
+
15
+ ## [2.1.0] - 2023-04-04
16
+
17
+ ### Added
18
+
19
+ - Adds optional `vintage_start_year` and `vintage_end_year` fields to `order` creation
20
+ - Adds optional `vintage_start_year` and `vintage_end_year` fields to `order_line_item` create and update
21
+ - Adds optional `vintage_start_year` and `vintage_end_year` fields to `inventory` creation
22
+ - Adds `vintage_start_year` and `vintage_end_year` fields to `order` response
23
+ - Adds `vintage_start_year` and `vintage_end_year` fields to `order_line_item` response
24
+ - Adds optional `carrier_scac` field to `Patch::Estimate.create_road_shipping_estimate` method
25
+ - Deprecates `Patch::Estimate.create_shipping_estimate` in favor of `Patch::Estimate.create_ecommerce_estimate`
26
+
8
27
  ## [1.24.2] - 2022-08-10
9
28
 
10
29
  ### Added
data/Gemfile.lock CHANGED
@@ -1,33 +1,32 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- patch_ruby (2.0.0)
4
+ patch_ruby (2.1.1)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activesupport (6.1.4.1)
10
+ activesupport (7.0.4.3)
11
11
  concurrent-ruby (~> 1.0, >= 1.0.2)
12
12
  i18n (>= 1.6, < 2)
13
13
  minitest (>= 5.1)
14
14
  tzinfo (~> 2.0)
15
- zeitwerk (~> 2.3)
16
15
  ast (2.4.2)
17
16
  byebug (11.1.3)
18
17
  coderay (1.1.3)
19
- concurrent-ruby (1.1.9)
18
+ concurrent-ruby (1.2.2)
20
19
  diff-lcs (1.4.4)
21
- ethon (0.15.0)
20
+ ethon (0.16.0)
22
21
  ffi (>= 1.15.0)
23
22
  factory_bot (6.2.0)
24
23
  activesupport (>= 5.0.0)
25
24
  ffi (1.15.5)
26
- i18n (1.8.10)
25
+ i18n (1.12.0)
27
26
  concurrent-ruby (~> 1.0)
28
27
  jaro_winkler (1.5.4)
29
28
  method_source (1.0.0)
30
- minitest (5.14.4)
29
+ minitest (5.18.0)
31
30
  parallel (1.20.1)
32
31
  parser (3.0.2.0)
33
32
  ast (~> 2.4.1)
@@ -64,14 +63,14 @@ GEM
64
63
  ruby-progressbar (1.11.0)
65
64
  typhoeus (1.4.0)
66
65
  ethon (>= 0.9.0)
67
- tzinfo (2.0.4)
66
+ tzinfo (2.0.6)
68
67
  concurrent-ruby (~> 1.0)
69
68
  unicode-display_width (1.5.0)
70
- zeitwerk (2.4.2)
71
69
 
72
70
  PLATFORMS
73
71
  arm64-darwin-20
74
72
  arm64-darwin-21
73
+ arm64-darwin-22
75
74
  x86_64-darwin-20
76
75
  x86_64-darwin-21
77
76
  x86_64-linux
@@ -86,4 +85,4 @@ DEPENDENCIES
86
85
  rubocop (~> 0.66.0)
87
86
 
88
87
  BUNDLED WITH
89
- 2.2.22
88
+ 2.3.9
@@ -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/2.0.0"
34
+ @user_agent = "patch-ruby/2.1.1"
35
35
  @default_headers = {
36
36
  'Content-Type' => 'application/json',
37
37
  'User-Agent' => @user_agent
@@ -242,8 +242,7 @@ module Patch
242
242
  end
243
243
 
244
244
  def operation_server_settings
245
- {
246
- }
245
+ {}
247
246
  end
248
247
 
249
248
  # Returns URL based on server settings
@@ -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 > 100000000000
105
- invalid_properties.push('invalid value for "mass_g", must be smaller than or equal to 100000000000.')
104
+ if @mass_g > 100000000000000
105
+ invalid_properties.push('invalid value for "mass_g", must be smaller than or equal to 100000000000000.')
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 > 100000000000
119
+ return false if @mass_g > 100000000000000
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 > 100000000000
132
- fail ArgumentError, 'invalid value for "mass_g", must be smaller than or equal to 100000000000.'
131
+ if mass_g > 100000000000000
132
+ fail ArgumentError, 'invalid value for "mass_g", must be smaller than or equal to 100000000000000.'
133
133
  end
134
134
 
135
135
  if mass_g < 0
@@ -19,6 +19,10 @@ module Patch
19
19
 
20
20
  attr_accessor :vintage_year
21
21
 
22
+ attr_accessor :vintage_start_year
23
+
24
+ attr_accessor :vintage_end_year
25
+
22
26
  attr_accessor :price
23
27
 
24
28
  attr_accessor :currency
@@ -54,6 +58,8 @@ module Patch
54
58
  {
55
59
  :'project_id' => :'project_id',
56
60
  :'vintage_year' => :'vintage_year',
61
+ :'vintage_start_year' => :'vintage_start_year',
62
+ :'vintage_end_year' => :'vintage_end_year',
57
63
  :'price' => :'price',
58
64
  :'currency' => :'currency',
59
65
  :'amount' => :'amount',
@@ -71,6 +77,8 @@ module Patch
71
77
  {
72
78
  :'project_id' => :'String',
73
79
  :'vintage_year' => :'Integer',
80
+ :'vintage_start_year' => :'Integer',
81
+ :'vintage_end_year' => :'Integer',
74
82
  :'price' => :'Integer',
75
83
  :'currency' => :'String',
76
84
  :'amount' => :'Integer',
@@ -82,6 +90,8 @@ module Patch
82
90
  def self.openapi_nullable
83
91
  Set.new([
84
92
  :'vintage_year',
93
+ :'vintage_start_year',
94
+ :'vintage_end_year',
85
95
  :'price',
86
96
  :'currency',
87
97
  :'amount',
@@ -124,6 +134,14 @@ module Patch
124
134
  self.vintage_year = attributes[:'vintage_year']
125
135
  end
126
136
 
137
+ if attributes.key?(:'vintage_start_year')
138
+ self.vintage_start_year = attributes[:'vintage_start_year']
139
+ end
140
+
141
+ if attributes.key?(:'vintage_end_year')
142
+ self.vintage_end_year = attributes[:'vintage_end_year']
143
+ end
144
+
127
145
  if attributes.key?(:'price')
128
146
  self.price = attributes[:'price']
129
147
  end
@@ -153,12 +171,28 @@ module Patch
153
171
  invalid_properties.push('invalid value for "vintage_year", must be greater than or equal to 1900.')
154
172
  end
155
173
 
174
+ if !@vintage_start_year.nil? && @vintage_start_year > 2100
175
+ invalid_properties.push('invalid value for "vintage_start_year", must be smaller than or equal to 2100.')
176
+ end
177
+
178
+ if !@vintage_start_year.nil? && @vintage_start_year < 1900
179
+ invalid_properties.push('invalid value for "vintage_start_year", must be greater than or equal to 1900.')
180
+ end
181
+
182
+ if !@vintage_end_year.nil? && @vintage_end_year > 2100
183
+ invalid_properties.push('invalid value for "vintage_end_year", must be smaller than or equal to 2100.')
184
+ end
185
+
186
+ if !@vintage_end_year.nil? && @vintage_end_year < 1900
187
+ invalid_properties.push('invalid value for "vintage_end_year", must be greater than or equal to 1900.')
188
+ end
189
+
156
190
  if !@price.nil? && @price < 2
157
191
  invalid_properties.push('invalid value for "price", must be greater than or equal to 2.')
158
192
  end
159
193
 
160
- if !@amount.nil? && @amount > 100000000000
161
- invalid_properties.push('invalid value for "amount", must be smaller than or equal to 100000000000.')
194
+ if !@amount.nil? && @amount > 100000000000000
195
+ invalid_properties.push('invalid value for "amount", must be smaller than or equal to 100000000000000.')
162
196
  end
163
197
 
164
198
  if !@amount.nil? && @amount < 0
@@ -173,8 +207,12 @@ module Patch
173
207
  def valid?
174
208
  return false if !@vintage_year.nil? && @vintage_year > 2100
175
209
  return false if !@vintage_year.nil? && @vintage_year < 1900
210
+ return false if !@vintage_start_year.nil? && @vintage_start_year > 2100
211
+ return false if !@vintage_start_year.nil? && @vintage_start_year < 1900
212
+ return false if !@vintage_end_year.nil? && @vintage_end_year > 2100
213
+ return false if !@vintage_end_year.nil? && @vintage_end_year < 1900
176
214
  return false if !@price.nil? && @price < 2
177
- return false if !@amount.nil? && @amount > 100000000000
215
+ return false if !@amount.nil? && @amount > 100000000000000
178
216
  return false if !@amount.nil? && @amount < 0
179
217
  unit_validator = EnumAttributeValidator.new('String', ["g", "Wh"])
180
218
  return false unless unit_validator.valid?(@unit)
@@ -195,6 +233,34 @@ module Patch
195
233
  @vintage_year = vintage_year
196
234
  end
197
235
 
236
+ # Custom attribute writer method with validation
237
+ # @param [Object] vintage_start_year Value to be assigned
238
+ def vintage_start_year=(vintage_start_year)
239
+ if !vintage_start_year.nil? && vintage_start_year > 2100
240
+ fail ArgumentError, 'invalid value for "vintage_start_year", must be smaller than or equal to 2100.'
241
+ end
242
+
243
+ if !vintage_start_year.nil? && vintage_start_year < 1900
244
+ fail ArgumentError, 'invalid value for "vintage_start_year", must be greater than or equal to 1900.'
245
+ end
246
+
247
+ @vintage_start_year = vintage_start_year
248
+ end
249
+
250
+ # Custom attribute writer method with validation
251
+ # @param [Object] vintage_end_year Value to be assigned
252
+ def vintage_end_year=(vintage_end_year)
253
+ if !vintage_end_year.nil? && vintage_end_year > 2100
254
+ fail ArgumentError, 'invalid value for "vintage_end_year", must be smaller than or equal to 2100.'
255
+ end
256
+
257
+ if !vintage_end_year.nil? && vintage_end_year < 1900
258
+ fail ArgumentError, 'invalid value for "vintage_end_year", must be greater than or equal to 1900.'
259
+ end
260
+
261
+ @vintage_end_year = vintage_end_year
262
+ end
263
+
198
264
  # Custom attribute writer method with validation
199
265
  # @param [Object] price Value to be assigned
200
266
  def price=(price)
@@ -208,8 +274,8 @@ module Patch
208
274
  # Custom attribute writer method with validation
209
275
  # @param [Object] amount Value to be assigned
210
276
  def amount=(amount)
211
- if !amount.nil? && amount > 100000000000
212
- fail ArgumentError, 'invalid value for "amount", must be smaller than or equal to 100000000000.'
277
+ if !amount.nil? && amount > 100000000000000
278
+ fail ArgumentError, 'invalid value for "amount", must be smaller than or equal to 100000000000000.'
213
279
  end
214
280
 
215
281
  if !amount.nil? && amount < 0
@@ -236,6 +302,8 @@ module Patch
236
302
  self.class == o.class &&
237
303
  project_id == o.project_id &&
238
304
  vintage_year == o.vintage_year &&
305
+ vintage_start_year == o.vintage_start_year &&
306
+ vintage_end_year == o.vintage_end_year &&
239
307
  price == o.price &&
240
308
  currency == o.currency &&
241
309
  amount == o.amount &&
@@ -251,7 +319,7 @@ module Patch
251
319
  # Calculates hash code according to all attributes.
252
320
  # @return [Integer] Hash code
253
321
  def hash
254
- [project_id, vintage_year, price, currency, amount, unit].hash
322
+ [project_id, vintage_year, vintage_start_year, vintage_end_year, price, currency, amount, unit].hash
255
323
  end
256
324
 
257
325
  # Builds the object from hash
@@ -23,6 +23,10 @@ module Patch
23
23
 
24
24
  attr_accessor :vintage_year
25
25
 
26
+ attr_accessor :vintage_start_year
27
+
28
+ attr_accessor :vintage_end_year
29
+
26
30
  attr_accessor :total_price
27
31
 
28
32
  attr_accessor :currency
@@ -62,6 +66,8 @@ module Patch
62
66
  :'metadata' => :'metadata',
63
67
  :'state' => :'state',
64
68
  :'vintage_year' => :'vintage_year',
69
+ :'vintage_start_year' => :'vintage_start_year',
70
+ :'vintage_end_year' => :'vintage_end_year',
65
71
  :'total_price' => :'total_price',
66
72
  :'currency' => :'currency',
67
73
  :'amount' => :'amount',
@@ -82,6 +88,8 @@ module Patch
82
88
  :'metadata' => :'Object',
83
89
  :'state' => :'String',
84
90
  :'vintage_year' => :'Integer',
91
+ :'vintage_start_year' => :'Integer',
92
+ :'vintage_end_year' => :'Integer',
85
93
  :'total_price' => :'Integer',
86
94
  :'currency' => :'String',
87
95
  :'amount' => :'Integer',
@@ -97,6 +105,8 @@ module Patch
97
105
  :'metadata',
98
106
  :'state',
99
107
  :'vintage_year',
108
+ :'vintage_start_year',
109
+ :'vintage_end_year',
100
110
  :'total_price',
101
111
  :'currency',
102
112
  :'amount',
@@ -147,6 +157,14 @@ module Patch
147
157
  self.vintage_year = attributes[:'vintage_year']
148
158
  end
149
159
 
160
+ if attributes.key?(:'vintage_start_year')
161
+ self.vintage_start_year = attributes[:'vintage_start_year']
162
+ end
163
+
164
+ if attributes.key?(:'vintage_end_year')
165
+ self.vintage_end_year = attributes[:'vintage_end_year']
166
+ end
167
+
150
168
  if attributes.key?(:'total_price')
151
169
  self.total_price = attributes[:'total_price']
152
170
  end
@@ -180,12 +198,28 @@ module Patch
180
198
  invalid_properties.push('invalid value for "vintage_year", must be greater than or equal to 1900.')
181
199
  end
182
200
 
201
+ if !@vintage_start_year.nil? && @vintage_start_year > 2100
202
+ invalid_properties.push('invalid value for "vintage_start_year", must be smaller than or equal to 2100.')
203
+ end
204
+
205
+ if !@vintage_start_year.nil? && @vintage_start_year < 1900
206
+ invalid_properties.push('invalid value for "vintage_start_year", must be greater than or equal to 1900.')
207
+ end
208
+
209
+ if !@vintage_end_year.nil? && @vintage_end_year > 2100
210
+ invalid_properties.push('invalid value for "vintage_end_year", must be smaller than or equal to 2100.')
211
+ end
212
+
213
+ if !@vintage_end_year.nil? && @vintage_end_year < 1900
214
+ invalid_properties.push('invalid value for "vintage_end_year", must be greater than or equal to 1900.')
215
+ end
216
+
183
217
  if !@total_price.nil? && @total_price < 2
184
218
  invalid_properties.push('invalid value for "total_price", must be greater than or equal to 2.')
185
219
  end
186
220
 
187
- if !@amount.nil? && @amount > 100000000000
188
- invalid_properties.push('invalid value for "amount", must be smaller than or equal to 100000000000.')
221
+ if !@amount.nil? && @amount > 100000000000000
222
+ invalid_properties.push('invalid value for "amount", must be smaller than or equal to 100000000000000.')
189
223
  end
190
224
 
191
225
  if !@amount.nil? && @amount < 0
@@ -202,8 +236,12 @@ module Patch
202
236
  return false unless state_validator.valid?(@state)
203
237
  return false if !@vintage_year.nil? && @vintage_year > 2100
204
238
  return false if !@vintage_year.nil? && @vintage_year < 1900
239
+ return false if !@vintage_start_year.nil? && @vintage_start_year > 2100
240
+ return false if !@vintage_start_year.nil? && @vintage_start_year < 1900
241
+ return false if !@vintage_end_year.nil? && @vintage_end_year > 2100
242
+ return false if !@vintage_end_year.nil? && @vintage_end_year < 1900
205
243
  return false if !@total_price.nil? && @total_price < 2
206
- return false if !@amount.nil? && @amount > 100000000000
244
+ return false if !@amount.nil? && @amount > 100000000000000
207
245
  return false if !@amount.nil? && @amount < 0
208
246
  unit_validator = EnumAttributeValidator.new('String', ["g", "Wh"])
209
247
  return false unless unit_validator.valid?(@unit)
@@ -234,6 +272,34 @@ module Patch
234
272
  @vintage_year = vintage_year
235
273
  end
236
274
 
275
+ # Custom attribute writer method with validation
276
+ # @param [Object] vintage_start_year Value to be assigned
277
+ def vintage_start_year=(vintage_start_year)
278
+ if !vintage_start_year.nil? && vintage_start_year > 2100
279
+ fail ArgumentError, 'invalid value for "vintage_start_year", must be smaller than or equal to 2100.'
280
+ end
281
+
282
+ if !vintage_start_year.nil? && vintage_start_year < 1900
283
+ fail ArgumentError, 'invalid value for "vintage_start_year", must be greater than or equal to 1900.'
284
+ end
285
+
286
+ @vintage_start_year = vintage_start_year
287
+ end
288
+
289
+ # Custom attribute writer method with validation
290
+ # @param [Object] vintage_end_year Value to be assigned
291
+ def vintage_end_year=(vintage_end_year)
292
+ if !vintage_end_year.nil? && vintage_end_year > 2100
293
+ fail ArgumentError, 'invalid value for "vintage_end_year", must be smaller than or equal to 2100.'
294
+ end
295
+
296
+ if !vintage_end_year.nil? && vintage_end_year < 1900
297
+ fail ArgumentError, 'invalid value for "vintage_end_year", must be greater than or equal to 1900.'
298
+ end
299
+
300
+ @vintage_end_year = vintage_end_year
301
+ end
302
+
237
303
  # Custom attribute writer method with validation
238
304
  # @param [Object] total_price Value to be assigned
239
305
  def total_price=(total_price)
@@ -247,8 +313,8 @@ module Patch
247
313
  # Custom attribute writer method with validation
248
314
  # @param [Object] amount Value to be assigned
249
315
  def amount=(amount)
250
- if !amount.nil? && amount > 100000000000
251
- fail ArgumentError, 'invalid value for "amount", must be smaller than or equal to 100000000000.'
316
+ if !amount.nil? && amount > 100000000000000
317
+ fail ArgumentError, 'invalid value for "amount", must be smaller than or equal to 100000000000000.'
252
318
  end
253
319
 
254
320
  if !amount.nil? && amount < 0
@@ -277,6 +343,8 @@ module Patch
277
343
  metadata == o.metadata &&
278
344
  state == o.state &&
279
345
  vintage_year == o.vintage_year &&
346
+ vintage_start_year == o.vintage_start_year &&
347
+ vintage_end_year == o.vintage_end_year &&
280
348
  total_price == o.total_price &&
281
349
  currency == o.currency &&
282
350
  amount == o.amount &&
@@ -293,7 +361,7 @@ module Patch
293
361
  # Calculates hash code according to all attributes.
294
362
  # @return [Integer] Hash code
295
363
  def hash
296
- [project_id, metadata, state, vintage_year, total_price, currency, amount, unit, issued_to].hash
364
+ [project_id, metadata, state, vintage_year, vintage_start_year, vintage_end_year, total_price, currency, amount, unit, issued_to].hash
297
365
  end
298
366
 
299
367
  # Builds the object from hash
@@ -41,6 +41,8 @@ module Patch
41
41
 
42
42
  attr_accessor :truck_weight_t
43
43
 
44
+ attr_accessor :carrier_scac
45
+
44
46
  attr_accessor :project_id
45
47
 
46
48
  attr_accessor :create_order
@@ -83,6 +85,7 @@ module Patch
83
85
  :'fuel_type' => :'fuel_type',
84
86
  :'number_of_containers' => :'number_of_containers',
85
87
  :'truck_weight_t' => :'truck_weight_t',
88
+ :'carrier_scac' => :'carrier_scac',
86
89
  :'project_id' => :'project_id',
87
90
  :'create_order' => :'create_order'
88
91
  }
@@ -109,6 +112,7 @@ module Patch
109
112
  :'fuel_type' => :'String',
110
113
  :'number_of_containers' => :'Integer',
111
114
  :'truck_weight_t' => :'Integer',
115
+ :'carrier_scac' => :'String',
112
116
  :'project_id' => :'String',
113
117
  :'create_order' => :'Boolean'
114
118
  }
@@ -127,6 +131,7 @@ module Patch
127
131
  :'fuel_type',
128
132
  :'number_of_containers',
129
133
  :'truck_weight_t',
134
+ :'carrier_scac',
130
135
  :'project_id',
131
136
  :'create_order'
132
137
  ])
@@ -217,6 +222,10 @@ module Patch
217
222
  self.truck_weight_t = attributes[:'truck_weight_t']
218
223
  end
219
224
 
225
+ if attributes.key?(:'carrier_scac')
226
+ self.carrier_scac = attributes[:'carrier_scac']
227
+ end
228
+
220
229
  if attributes.key?(:'project_id')
221
230
  self.project_id = attributes[:'project_id']
222
231
  end
@@ -370,6 +379,7 @@ module Patch
370
379
  fuel_type == o.fuel_type &&
371
380
  number_of_containers == o.number_of_containers &&
372
381
  truck_weight_t == o.truck_weight_t &&
382
+ carrier_scac == o.carrier_scac &&
373
383
  project_id == o.project_id &&
374
384
  create_order == o.create_order
375
385
  end
@@ -383,7 +393,7 @@ module Patch
383
393
  # Calculates hash code according to all attributes.
384
394
  # @return [Integer] Hash code
385
395
  def hash
386
- [destination_country_code, destination_locode, destination_postal_code, origin_country_code, origin_locode, origin_postal_code, cargo_type, container_size_code, emissions_scope, freight_mass_g, fuel_type, number_of_containers, truck_weight_t, project_id, create_order].hash
396
+ [destination_country_code, destination_locode, destination_postal_code, origin_country_code, origin_locode, origin_postal_code, cargo_type, container_size_code, emissions_scope, freight_mass_g, fuel_type, number_of_containers, truck_weight_t, carrier_scac, project_id, create_order].hash
387
397
  end
388
398
 
389
399
  # Builds the object from hash