@@ -18,6 +18,9 @@ class Order
1818 # A unique uid for the record. UIDs will be prepended by ord_prod or ord_test depending on the mode it was created in.
1919 attr_accessor :id
2020
21+ # The timestamp at which the order was created
22+ attr_accessor :created_at
23+
2124 # The amount of carbon offsets in grams purchased through this order.
2225 attr_accessor :mass_g
2326
@@ -71,6 +74,7 @@ def valid?(value)
7174 def self . attribute_map
7275 {
7376 :'id' => :'id' ,
77+ :'created_at' => :'created_at' ,
7478 :'mass_g' => :'mass_g' ,
7579 :'production' => :'production' ,
7680 :'state' => :'state' ,
@@ -92,6 +96,7 @@ def self.acceptable_attributes
9296 def self . openapi_types
9397 {
9498 :'id' => :'String' ,
99+ :'created_at' => :'Time' ,
95100 :'mass_g' => :'Integer' ,
96101 :'production' => :'Boolean' ,
97102 :'state' => :'String' ,
@@ -143,6 +148,10 @@ def initialize(attributes = {})
143148 self . id = attributes [ :'id' ]
144149 end
145150
151+ if attributes . key? ( :'created_at' )
152+ self . created_at = attributes [ :'created_at' ]
153+ end
154+
146155 if attributes . key? ( :'mass_g' )
147156 self . mass_g = attributes [ :'mass_g' ]
148157 end
@@ -288,6 +297,7 @@ def ==(o)
288297 return true if self . equal? ( o )
289298 self . class == o . class &&
290299 id == o . id &&
300+ created_at == o . created_at &&
291301 mass_g == o . mass_g &&
292302 production == o . production &&
293303 state == o . state &&
@@ -308,7 +318,7 @@ def eql?(o)
308318 # Calculates hash code according to all attributes.
309319 # @return [Integer] Hash code
310320 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
312322 end
313323
314324 # Builds the object from hash
0 commit comments