@@ -18,6 +18,9 @@ class Order
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 @@ def valid?(value)
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 @@ def self.acceptable_attributes
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 @@ def initialize(attributes = {})
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 @@ def ==(o)
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 @@ def eql?(o)
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
0 commit comments