@@ -154,6 +154,61 @@ def update!(**args)
154
154
end
155
155
end
156
156
157
+ # Metadata about the EASA Flight Emissions Label.
158
+ class EasaLabelMetadata
159
+ include Google ::Apis ::Core ::Hashable
160
+
161
+ # Represents a whole or partial calendar date, such as a birthday. The time of
162
+ # day and time zone are either specified elsewhere or are insignificant. The
163
+ # date is relative to the Gregorian Calendar. This can represent one of the
164
+ # following: * A full date, with non-zero year, month, and day values. * A month
165
+ # and day, with a zero year (for example, an anniversary). * A year on its own,
166
+ # with a zero month and a zero day. * A year and month, with a zero day (for
167
+ # example, a credit card expiration date). Related types: * google.type.
168
+ # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
169
+ # Corresponds to the JSON property `labelExpiryDate`
170
+ # @return [Google::Apis::TravelimpactmodelV1::Date]
171
+ attr_accessor :label_expiry_date
172
+
173
+ # Represents a whole or partial calendar date, such as a birthday. The time of
174
+ # day and time zone are either specified elsewhere or are insignificant. The
175
+ # date is relative to the Gregorian Calendar. This can represent one of the
176
+ # following: * A full date, with non-zero year, month, and day values. * A month
177
+ # and day, with a zero year (for example, an anniversary). * A year on its own,
178
+ # with a zero month and a zero day. * A year and month, with a zero day (for
179
+ # example, a credit card expiration date). Related types: * google.type.
180
+ # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
181
+ # Corresponds to the JSON property `labelIssueDate`
182
+ # @return [Google::Apis::TravelimpactmodelV1::Date]
183
+ attr_accessor :label_issue_date
184
+
185
+ # Version of the label.
186
+ # Corresponds to the JSON property `labelVersion`
187
+ # @return [String]
188
+ attr_accessor :label_version
189
+
190
+ # Sustainable Aviation Fuel (SAF) emissions discount percentage applied to the
191
+ # label. It is a percentage as a decimal. The values are in the interval [0,1].
192
+ # For example, 0.0021 means 0.21%. This discount and reduction in emissions are
193
+ # reported by the EASA label but they are not included in the CO2e estimates
194
+ # distributed by this API.
195
+ # Corresponds to the JSON property `safDiscountPercentage`
196
+ # @return [Float]
197
+ attr_accessor :saf_discount_percentage
198
+
199
+ def initialize ( **args )
200
+ update! ( **args )
201
+ end
202
+
203
+ # Update properties of this object
204
+ def update! ( **args )
205
+ @label_expiry_date = args [ :label_expiry_date ] if args . key? ( :label_expiry_date )
206
+ @label_issue_date = args [ :label_issue_date ] if args . key? ( :label_issue_date )
207
+ @label_version = args [ :label_version ] if args . key? ( :label_version )
208
+ @saf_discount_percentage = args [ :saf_discount_percentage ] if args . key? ( :saf_discount_percentage )
209
+ end
210
+ end
211
+
157
212
# Grouped emissions per seating class results.
158
213
class EmissionsGramsPerPax
159
214
include Google ::Apis ::Core ::Hashable
@@ -254,6 +309,17 @@ def update!(**args)
254
309
class FlightWithEmissions
255
310
include Google ::Apis ::Core ::Hashable
256
311
312
+ # Optional. The significance of contrails warming impact compared to the total
313
+ # CO2e emissions impact.
314
+ # Corresponds to the JSON property `contrailsImpactBucket`
315
+ # @return [String]
316
+ attr_accessor :contrails_impact_bucket
317
+
318
+ # Metadata about the EASA Flight Emissions Label.
319
+ # Corresponds to the JSON property `easaLabelMetadata`
320
+ # @return [Google::Apis::TravelimpactmodelV1::EasaLabelMetadata]
321
+ attr_accessor :easa_label_metadata
322
+
257
323
# Grouped emissions per seating class results.
258
324
# Corresponds to the JSON property `emissionsGramsPerPax`
259
325
# @return [Google::Apis::TravelimpactmodelV1::EmissionsGramsPerPax]
@@ -265,14 +331,22 @@ class FlightWithEmissions
265
331
# @return [Google::Apis::TravelimpactmodelV1::Flight]
266
332
attr_accessor :flight
267
333
334
+ # Optional. The source of the emissions data.
335
+ # Corresponds to the JSON property `source`
336
+ # @return [String]
337
+ attr_accessor :source
338
+
268
339
def initialize ( **args )
269
340
update! ( **args )
270
341
end
271
342
272
343
# Update properties of this object
273
344
def update! ( **args )
345
+ @contrails_impact_bucket = args [ :contrails_impact_bucket ] if args . key? ( :contrails_impact_bucket )
346
+ @easa_label_metadata = args [ :easa_label_metadata ] if args . key? ( :easa_label_metadata )
274
347
@emissions_grams_per_pax = args [ :emissions_grams_per_pax ] if args . key? ( :emissions_grams_per_pax )
275
348
@flight = args [ :flight ] if args . key? ( :flight )
349
+ @source = args [ :source ] if args . key? ( :source )
276
350
end
277
351
end
278
352
0 commit comments