patch_ruby 1.11.0 → 1.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +24 -0
- data/Gemfile.lock +1 -1
- data/lib/patch_ruby/api/estimates_api.rb +22 -14
- data/lib/patch_ruby/api/orders_api.rb +7 -2
- data/lib/patch_ruby/api/preferences_api.rb +6 -2
- data/lib/patch_ruby/api/projects_api.rb +2 -0
- data/lib/patch_ruby/api_client.rb +1 -1
- data/lib/patch_ruby/models/create_bitcoin_estimate_request.rb +14 -2
- data/lib/patch_ruby/models/create_ethereum_estimate_request.rb +13 -1
- data/lib/patch_ruby/models/create_flight_estimate_request.rb +2 -0
- data/lib/patch_ruby/models/create_mass_estimate_request.rb +2 -0
- data/lib/patch_ruby/models/create_shipping_estimate_request.rb +2 -0
- data/lib/patch_ruby/models/create_vehicle_estimate_request.rb +2 -0
- data/lib/patch_ruby/models/order.rb +11 -1
- data/lib/patch_ruby/models/parent_technology_type.rb +239 -0
- data/lib/patch_ruby/models/project.rb +80 -5
- data/lib/patch_ruby/models/technology_type.rb +248 -0
- data/lib/patch_ruby/version.rb +1 -1
- data/lib/patch_ruby.rb +2 -0
- data/spec/factories/parent_technology_type.rb +8 -0
- data/spec/factories/projects.rb +7 -0
- data/spec/factories/sdgs.rb +10 -0
- data/spec/factories/technology_type.rb +9 -0
- data/spec/integration/estimates_spec.rb +16 -2
- data/spec/integration/orders_spec.rb +3 -2
- data/spec/integration/projects_spec.rb +18 -1
- data/spec/models/create_mass_estimate_request_spec.rb +1 -1
- data/spec/models/project_spec.rb +10 -2
- metadata +36 -28
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 983c0272228fcb5224e71c3004a104f5312d3288963e5915bc3d7b793b3c8f7a
|
4
|
+
data.tar.gz: 83e8d6569fc5ce0cb705de13de8d5de3d2f0dfc4a2ca132167d2a1cc8f67b206
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 444ac13006a538ae0f84673b82ca88b840a57b342614d4f7e4acac672e25b6176e2ce3449a9c3fe4a4b2dd06a355f423eeb40f87c2ef12cffab93080358a846c
|
7
|
+
data.tar.gz: cc20f9980d10d998f16d5db881311f3413584c119e249df48d42751f31962710131f4b422cabaa1861cd0b74592fc748db7a5058a74e97dbdefd36d5e2d1f7fd
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,30 @@ 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.14.0] - 2021-09-21
|
9
|
+
|
10
|
+
### Added
|
11
|
+
|
12
|
+
- Adds mechanism, tagline, state, latitude, longitude, and technology_type to project responses
|
13
|
+
|
14
|
+
## [1.13.0] - 2021-09-10
|
15
|
+
|
16
|
+
### Added
|
17
|
+
|
18
|
+
- Adds ability to create Bitcoin and Ethereum estimates using the daily balance held.
|
19
|
+
|
20
|
+
## [1.12.0] - 2021-09-08
|
21
|
+
|
22
|
+
### Added
|
23
|
+
|
24
|
+
- Adds a `created_at` attribute in all order responses
|
25
|
+
|
26
|
+
## [1.11.1] - 2021-09-07
|
27
|
+
|
28
|
+
### Changed
|
29
|
+
|
30
|
+
- Body parameters are validated before being sent to the API. This gives developers faster feedback as they develop their applications.
|
31
|
+
|
8
32
|
## [1.11.0] - 2021-09-07
|
9
33
|
|
10
34
|
### Added
|
data/Gemfile.lock
CHANGED
@@ -35,8 +35,9 @@ module Patch
|
|
35
35
|
# @param create_bitcoin_estimate_request [CreateBitcoinEstimateRequest]
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
37
|
# @return [EstimateResponse]
|
38
|
-
def create_bitcoin_estimate(create_bitcoin_estimate_request, opts = {})
|
39
|
-
|
38
|
+
def create_bitcoin_estimate(create_bitcoin_estimate_request = {}, opts = {})
|
39
|
+
_create_bitcoin_estimate_request = Patch::CreateBitcoinEstimateRequest.new(create_bitcoin_estimate_request)
|
40
|
+
data, _status_code, _headers = create_bitcoin_estimate_with_http_info(_create_bitcoin_estimate_request, opts)
|
40
41
|
data
|
41
42
|
end
|
42
43
|
|
@@ -95,17 +96,18 @@ module Patch
|
|
95
96
|
return data, status_code, headers
|
96
97
|
end
|
97
98
|
|
98
|
-
# Create an ethereum estimate
|
99
|
+
# Create an ethereum estimate
|
99
100
|
# Creates an ethereum estimate for the amount of CO2 to be compensated. An order in the `draft` state may be created based on the parameters, linked to the estimate.
|
100
101
|
# @param create_ethereum_estimate_request [CreateEthereumEstimateRequest]
|
101
102
|
# @param [Hash] opts the optional parameters
|
102
103
|
# @return [EstimateResponse]
|
103
|
-
def create_ethereum_estimate(create_ethereum_estimate_request, opts = {})
|
104
|
-
|
104
|
+
def create_ethereum_estimate(create_ethereum_estimate_request = {}, opts = {})
|
105
|
+
_create_ethereum_estimate_request = Patch::CreateEthereumEstimateRequest.new(create_ethereum_estimate_request)
|
106
|
+
data, _status_code, _headers = create_ethereum_estimate_with_http_info(_create_ethereum_estimate_request, opts)
|
105
107
|
data
|
106
108
|
end
|
107
109
|
|
108
|
-
# Create an ethereum estimate
|
110
|
+
# Create an ethereum estimate
|
109
111
|
# Creates an ethereum estimate for the amount of CO2 to be compensated. An order in the `draft` state may be created based on the parameters, linked to the estimate.
|
110
112
|
# @param create_ethereum_estimate_request [CreateEthereumEstimateRequest]
|
111
113
|
# @param [Hash] opts the optional parameters
|
@@ -165,8 +167,9 @@ module Patch
|
|
165
167
|
# @param create_flight_estimate_request [CreateFlightEstimateRequest]
|
166
168
|
# @param [Hash] opts the optional parameters
|
167
169
|
# @return [EstimateResponse]
|
168
|
-
def create_flight_estimate(create_flight_estimate_request, opts = {})
|
169
|
-
|
170
|
+
def create_flight_estimate(create_flight_estimate_request = {}, opts = {})
|
171
|
+
_create_flight_estimate_request = Patch::CreateFlightEstimateRequest.new(create_flight_estimate_request)
|
172
|
+
data, _status_code, _headers = create_flight_estimate_with_http_info(_create_flight_estimate_request, opts)
|
170
173
|
data
|
171
174
|
end
|
172
175
|
|
@@ -230,8 +233,9 @@ module Patch
|
|
230
233
|
# @param create_mass_estimate_request [CreateMassEstimateRequest]
|
231
234
|
# @param [Hash] opts the optional parameters
|
232
235
|
# @return [EstimateResponse]
|
233
|
-
def create_mass_estimate(create_mass_estimate_request, opts = {})
|
234
|
-
|
236
|
+
def create_mass_estimate(create_mass_estimate_request = {}, opts = {})
|
237
|
+
_create_mass_estimate_request = Patch::CreateMassEstimateRequest.new(create_mass_estimate_request)
|
238
|
+
data, _status_code, _headers = create_mass_estimate_with_http_info(_create_mass_estimate_request, opts)
|
235
239
|
data
|
236
240
|
end
|
237
241
|
|
@@ -295,8 +299,9 @@ module Patch
|
|
295
299
|
# @param create_shipping_estimate_request [CreateShippingEstimateRequest]
|
296
300
|
# @param [Hash] opts the optional parameters
|
297
301
|
# @return [EstimateResponse]
|
298
|
-
def create_shipping_estimate(create_shipping_estimate_request, opts = {})
|
299
|
-
|
302
|
+
def create_shipping_estimate(create_shipping_estimate_request = {}, opts = {})
|
303
|
+
_create_shipping_estimate_request = Patch::CreateShippingEstimateRequest.new(create_shipping_estimate_request)
|
304
|
+
data, _status_code, _headers = create_shipping_estimate_with_http_info(_create_shipping_estimate_request, opts)
|
300
305
|
data
|
301
306
|
end
|
302
307
|
|
@@ -360,8 +365,9 @@ module Patch
|
|
360
365
|
# @param create_vehicle_estimate_request [CreateVehicleEstimateRequest]
|
361
366
|
# @param [Hash] opts the optional parameters
|
362
367
|
# @return [EstimateResponse]
|
363
|
-
def create_vehicle_estimate(create_vehicle_estimate_request, opts = {})
|
364
|
-
|
368
|
+
def create_vehicle_estimate(create_vehicle_estimate_request = {}, opts = {})
|
369
|
+
_create_vehicle_estimate_request = Patch::CreateVehicleEstimateRequest.new(create_vehicle_estimate_request)
|
370
|
+
data, _status_code, _headers = create_vehicle_estimate_with_http_info(_create_vehicle_estimate_request, opts)
|
365
371
|
data
|
366
372
|
end
|
367
373
|
|
@@ -426,6 +432,7 @@ module Patch
|
|
426
432
|
# @param [Hash] opts the optional parameters
|
427
433
|
# @return [EstimateResponse]
|
428
434
|
def retrieve_estimate(id, opts = {})
|
435
|
+
|
429
436
|
data, _status_code, _headers = retrieve_estimate_with_http_info(id, opts)
|
430
437
|
data
|
431
438
|
end
|
@@ -489,6 +496,7 @@ module Patch
|
|
489
496
|
# @option opts [Integer] :page
|
490
497
|
# @return [EstimateListResponse]
|
491
498
|
def retrieve_estimates(opts = {})
|
499
|
+
|
492
500
|
data, _status_code, _headers = retrieve_estimates_with_http_info(opts)
|
493
501
|
data
|
494
502
|
end
|
@@ -33,6 +33,7 @@ module Patch
|
|
33
33
|
# @param [Hash] opts the optional parameters
|
34
34
|
# @return [OrderResponse]
|
35
35
|
def cancel_order(id, opts = {})
|
36
|
+
|
36
37
|
data, _status_code, _headers = cancel_order_with_http_info(id, opts)
|
37
38
|
data
|
38
39
|
end
|
@@ -95,8 +96,9 @@ module Patch
|
|
95
96
|
# @param create_order_request [CreateOrderRequest]
|
96
97
|
# @param [Hash] opts the optional parameters
|
97
98
|
# @return [OrderResponse]
|
98
|
-
def create_order(create_order_request, opts = {})
|
99
|
-
|
99
|
+
def create_order(create_order_request = {}, opts = {})
|
100
|
+
_create_order_request = Patch::CreateOrderRequest.new(create_order_request)
|
101
|
+
data, _status_code, _headers = create_order_with_http_info(_create_order_request, opts)
|
100
102
|
data
|
101
103
|
end
|
102
104
|
|
@@ -161,6 +163,7 @@ module Patch
|
|
161
163
|
# @param [Hash] opts the optional parameters
|
162
164
|
# @return [OrderResponse]
|
163
165
|
def place_order(id, opts = {})
|
166
|
+
|
164
167
|
data, _status_code, _headers = place_order_with_http_info(id, opts)
|
165
168
|
data
|
166
169
|
end
|
@@ -224,6 +227,7 @@ module Patch
|
|
224
227
|
# @param [Hash] opts the optional parameters
|
225
228
|
# @return [OrderResponse]
|
226
229
|
def retrieve_order(id, opts = {})
|
230
|
+
|
227
231
|
data, _status_code, _headers = retrieve_order_with_http_info(id, opts)
|
228
232
|
data
|
229
233
|
end
|
@@ -290,6 +294,7 @@ module Patch
|
|
290
294
|
# @option opts [String] :metadata_example2
|
291
295
|
# @return [OrderListResponse]
|
292
296
|
def retrieve_orders(opts = {})
|
297
|
+
|
293
298
|
data, _status_code, _headers = retrieve_orders_with_http_info(opts)
|
294
299
|
data
|
295
300
|
end
|
@@ -31,8 +31,9 @@ module Patch
|
|
31
31
|
# @param create_preference_request [CreatePreferenceRequest]
|
32
32
|
# @param [Hash] opts the optional parameters
|
33
33
|
# @return [PreferenceResponse]
|
34
|
-
def create_preference(create_preference_request, opts = {})
|
35
|
-
|
34
|
+
def create_preference(create_preference_request = {}, opts = {})
|
35
|
+
_create_preference_request = Patch::CreatePreferenceRequest.new(create_preference_request)
|
36
|
+
data, _status_code, _headers = create_preference_with_http_info(_create_preference_request, opts)
|
36
37
|
data
|
37
38
|
end
|
38
39
|
|
@@ -97,6 +98,7 @@ module Patch
|
|
97
98
|
# @param [Hash] opts the optional parameters
|
98
99
|
# @return [PreferenceResponse]
|
99
100
|
def delete_preference(id, opts = {})
|
101
|
+
|
100
102
|
data, _status_code, _headers = delete_preference_with_http_info(id, opts)
|
101
103
|
data
|
102
104
|
end
|
@@ -160,6 +162,7 @@ module Patch
|
|
160
162
|
# @param [Hash] opts the optional parameters
|
161
163
|
# @return [PreferenceResponse]
|
162
164
|
def retrieve_preference(id, opts = {})
|
165
|
+
|
163
166
|
data, _status_code, _headers = retrieve_preference_with_http_info(id, opts)
|
164
167
|
data
|
165
168
|
end
|
@@ -223,6 +226,7 @@ module Patch
|
|
223
226
|
# @option opts [Integer] :page
|
224
227
|
# @return [PreferenceListResponse]
|
225
228
|
def retrieve_preferences(opts = {})
|
229
|
+
|
226
230
|
data, _status_code, _headers = retrieve_preferences_with_http_info(opts)
|
227
231
|
data
|
228
232
|
end
|
@@ -30,6 +30,7 @@ module Patch
|
|
30
30
|
# @param [Hash] opts the optional parameters
|
31
31
|
# @return [ProjectResponse]
|
32
32
|
def retrieve_project(id, opts = {})
|
33
|
+
|
33
34
|
data, _status_code, _headers = retrieve_project_with_http_info(id, opts)
|
34
35
|
data
|
35
36
|
end
|
@@ -96,6 +97,7 @@ module Patch
|
|
96
97
|
# @option opts [Integer] :minimum_available_mass
|
97
98
|
# @return [ProjectListResponse]
|
98
99
|
def retrieve_projects(opts = {})
|
100
|
+
|
99
101
|
data, _status_code, _headers = retrieve_projects_with_http_info(opts)
|
100
102
|
data
|
101
103
|
end
|
@@ -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.
|
34
|
+
@user_agent = "patch-ruby/1.14.0"
|
35
35
|
@default_headers = {
|
36
36
|
'Content-Type' => 'application/json',
|
37
37
|
'User-Agent' => @user_agent
|
@@ -19,6 +19,8 @@ module Patch
|
|
19
19
|
|
20
20
|
attr_accessor :transaction_value_btc_sats
|
21
21
|
|
22
|
+
attr_accessor :average_daily_balance_btc_sats
|
23
|
+
|
22
24
|
attr_accessor :project_id
|
23
25
|
|
24
26
|
attr_accessor :create_order
|
@@ -28,6 +30,7 @@ module Patch
|
|
28
30
|
{
|
29
31
|
:'timestamp' => :'timestamp',
|
30
32
|
:'transaction_value_btc_sats' => :'transaction_value_btc_sats',
|
33
|
+
:'average_daily_balance_btc_sats' => :'average_daily_balance_btc_sats',
|
31
34
|
:'project_id' => :'project_id',
|
32
35
|
:'create_order' => :'create_order'
|
33
36
|
}
|
@@ -41,8 +44,9 @@ module Patch
|
|
41
44
|
# Attribute type mapping.
|
42
45
|
def self.openapi_types
|
43
46
|
{
|
44
|
-
:'timestamp' => :'
|
47
|
+
:'timestamp' => :'Time',
|
45
48
|
:'transaction_value_btc_sats' => :'Integer',
|
49
|
+
:'average_daily_balance_btc_sats' => :'Integer',
|
46
50
|
:'project_id' => :'String',
|
47
51
|
:'create_order' => :'Boolean'
|
48
52
|
}
|
@@ -53,6 +57,7 @@ module Patch
|
|
53
57
|
Set.new([
|
54
58
|
:'timestamp',
|
55
59
|
:'transaction_value_btc_sats',
|
60
|
+
:'average_daily_balance_btc_sats',
|
56
61
|
:'project_id',
|
57
62
|
:'create_order'
|
58
63
|
])
|
@@ -93,12 +98,18 @@ module Patch
|
|
93
98
|
self.transaction_value_btc_sats = attributes[:'transaction_value_btc_sats']
|
94
99
|
end
|
95
100
|
|
101
|
+
if attributes.key?(:'average_daily_balance_btc_sats')
|
102
|
+
self.average_daily_balance_btc_sats = attributes[:'average_daily_balance_btc_sats']
|
103
|
+
end
|
104
|
+
|
96
105
|
if attributes.key?(:'project_id')
|
97
106
|
self.project_id = attributes[:'project_id']
|
98
107
|
end
|
99
108
|
|
100
109
|
if attributes.key?(:'create_order')
|
101
110
|
self.create_order = attributes[:'create_order']
|
111
|
+
else
|
112
|
+
self.create_order = false
|
102
113
|
end
|
103
114
|
end
|
104
115
|
|
@@ -122,6 +133,7 @@ module Patch
|
|
122
133
|
self.class == o.class &&
|
123
134
|
timestamp == o.timestamp &&
|
124
135
|
transaction_value_btc_sats == o.transaction_value_btc_sats &&
|
136
|
+
average_daily_balance_btc_sats == o.average_daily_balance_btc_sats &&
|
125
137
|
project_id == o.project_id &&
|
126
138
|
create_order == o.create_order
|
127
139
|
end
|
@@ -135,7 +147,7 @@ module Patch
|
|
135
147
|
# Calculates hash code according to all attributes.
|
136
148
|
# @return [Integer] Hash code
|
137
149
|
def hash
|
138
|
-
[timestamp, transaction_value_btc_sats, project_id, create_order].hash
|
150
|
+
[timestamp, transaction_value_btc_sats, average_daily_balance_btc_sats, project_id, create_order].hash
|
139
151
|
end
|
140
152
|
|
141
153
|
# Builds the object from hash
|
@@ -21,6 +21,8 @@ module Patch
|
|
21
21
|
|
22
22
|
attr_accessor :transaction_value_eth_gwei
|
23
23
|
|
24
|
+
attr_accessor :average_daily_balance_eth_gwei
|
25
|
+
|
24
26
|
attr_accessor :project_id
|
25
27
|
|
26
28
|
attr_accessor :create_order
|
@@ -31,6 +33,7 @@ module Patch
|
|
31
33
|
:'timestamp' => :'timestamp',
|
32
34
|
:'gas_used' => :'gas_used',
|
33
35
|
:'transaction_value_eth_gwei' => :'transaction_value_eth_gwei',
|
36
|
+
:'average_daily_balance_eth_gwei' => :'average_daily_balance_eth_gwei',
|
34
37
|
:'project_id' => :'project_id',
|
35
38
|
:'create_order' => :'create_order'
|
36
39
|
}
|
@@ -47,6 +50,7 @@ module Patch
|
|
47
50
|
:'timestamp' => :'String',
|
48
51
|
:'gas_used' => :'Integer',
|
49
52
|
:'transaction_value_eth_gwei' => :'Integer',
|
53
|
+
:'average_daily_balance_eth_gwei' => :'Integer',
|
50
54
|
:'project_id' => :'String',
|
51
55
|
:'create_order' => :'Boolean'
|
52
56
|
}
|
@@ -58,6 +62,7 @@ module Patch
|
|
58
62
|
:'timestamp',
|
59
63
|
:'gas_used',
|
60
64
|
:'transaction_value_eth_gwei',
|
65
|
+
:'average_daily_balance_eth_gwei',
|
61
66
|
:'project_id',
|
62
67
|
:'create_order'
|
63
68
|
])
|
@@ -102,12 +107,18 @@ module Patch
|
|
102
107
|
self.transaction_value_eth_gwei = attributes[:'transaction_value_eth_gwei']
|
103
108
|
end
|
104
109
|
|
110
|
+
if attributes.key?(:'average_daily_balance_eth_gwei')
|
111
|
+
self.average_daily_balance_eth_gwei = attributes[:'average_daily_balance_eth_gwei']
|
112
|
+
end
|
113
|
+
|
105
114
|
if attributes.key?(:'project_id')
|
106
115
|
self.project_id = attributes[:'project_id']
|
107
116
|
end
|
108
117
|
|
109
118
|
if attributes.key?(:'create_order')
|
110
119
|
self.create_order = attributes[:'create_order']
|
120
|
+
else
|
121
|
+
self.create_order = false
|
111
122
|
end
|
112
123
|
end
|
113
124
|
|
@@ -132,6 +143,7 @@ module Patch
|
|
132
143
|
timestamp == o.timestamp &&
|
133
144
|
gas_used == o.gas_used &&
|
134
145
|
transaction_value_eth_gwei == o.transaction_value_eth_gwei &&
|
146
|
+
average_daily_balance_eth_gwei == o.average_daily_balance_eth_gwei &&
|
135
147
|
project_id == o.project_id &&
|
136
148
|
create_order == o.create_order
|
137
149
|
end
|
@@ -145,7 +157,7 @@ module Patch
|
|
145
157
|
# Calculates hash code according to all attributes.
|
146
158
|
# @return [Integer] Hash code
|
147
159
|
def hash
|
148
|
-
[timestamp, gas_used, transaction_value_eth_gwei, project_id, create_order].hash
|
160
|
+
[timestamp, gas_used, transaction_value_eth_gwei, average_daily_balance_eth_gwei, project_id, create_order].hash
|
149
161
|
end
|
150
162
|
|
151
163
|
# Builds the object from hash
|
@@ -18,6 +18,9 @@ module Patch
|
|
18
18
|
# A unique uid for the record. UIDs will be prepended by ord_prod or ord_test depending on the mode it was created in.
|
19
19
|
attr_accessor :id
|
20
20
|
|
21
|
+
# The timestamp at which the order was created
|
22
|
+
attr_accessor :created_at
|
23
|
+
|
21
24
|
# The amount of carbon offsets in grams purchased through this order.
|
22
25
|
attr_accessor :mass_g
|
23
26
|
|
@@ -71,6 +74,7 @@ module Patch
|
|
71
74
|
def self.attribute_map
|
72
75
|
{
|
73
76
|
:'id' => :'id',
|
77
|
+
:'created_at' => :'created_at',
|
74
78
|
:'mass_g' => :'mass_g',
|
75
79
|
:'production' => :'production',
|
76
80
|
:'state' => :'state',
|
@@ -92,6 +96,7 @@ module Patch
|
|
92
96
|
def self.openapi_types
|
93
97
|
{
|
94
98
|
:'id' => :'String',
|
99
|
+
:'created_at' => :'Time',
|
95
100
|
:'mass_g' => :'Integer',
|
96
101
|
:'production' => :'Boolean',
|
97
102
|
:'state' => :'String',
|
@@ -143,6 +148,10 @@ module Patch
|
|
143
148
|
self.id = attributes[:'id']
|
144
149
|
end
|
145
150
|
|
151
|
+
if attributes.key?(:'created_at')
|
152
|
+
self.created_at = attributes[:'created_at']
|
153
|
+
end
|
154
|
+
|
146
155
|
if attributes.key?(:'mass_g')
|
147
156
|
self.mass_g = attributes[:'mass_g']
|
148
157
|
end
|
@@ -288,6 +297,7 @@ module Patch
|
|
288
297
|
return true if self.equal?(o)
|
289
298
|
self.class == o.class &&
|
290
299
|
id == o.id &&
|
300
|
+
created_at == o.created_at &&
|
291
301
|
mass_g == o.mass_g &&
|
292
302
|
production == o.production &&
|
293
303
|
state == o.state &&
|
@@ -308,7 +318,7 @@ module Patch
|
|
308
318
|
# Calculates hash code according to all attributes.
|
309
319
|
# @return [Integer] Hash code
|
310
320
|
def hash
|
311
|
-
[id, mass_g, production, state, allocation_state, price_cents_usd, patch_fee_cents_usd, allocations, registry_url, metadata].hash
|
321
|
+
[id, created_at, mass_g, production, state, allocation_state, price_cents_usd, patch_fee_cents_usd, allocations, registry_url, metadata].hash
|
312
322
|
end
|
313
323
|
|
314
324
|
# Builds the object from hash
|