Class: Lithic::Models::Transactions::Events::EnhancedData::Fleet::Fuel

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/lithic/models/transactions/events/enhanced_data.rb

Overview

See Also:

Defined Under Namespace

Modules: Type, UnitOfMeasure

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(quantity: nil, type: nil, unit_of_measure: nil, unit_price: nil) ⇒ Object

Parameters:



# File 'lib/lithic/models/transactions/events/enhanced_data.rb', line 287

Instance Attribute Details

#quantityString?

The quantity of fuel purchased.

Returns:

  • (String, nil)


261
# File 'lib/lithic/models/transactions/events/enhanced_data.rb', line 261

optional :quantity, String, nil?: true

#typeSymbol, ...

The type of fuel purchased.



267
268
269
270
271
# File 'lib/lithic/models/transactions/events/enhanced_data.rb', line 267

optional :type,
enum: -> {
  Lithic::Transactions::Events::EnhancedData::Fleet::Fuel::Type
},
nil?: true

#unit_of_measureSymbol, ...

Unit of measure for fuel disbursement.



277
278
279
# File 'lib/lithic/models/transactions/events/enhanced_data.rb', line 277

optional :unit_of_measure,
enum: -> { Lithic::Transactions::Events::EnhancedData::Fleet::Fuel::UnitOfMeasure },
nil?: true

#unit_priceInteger?

The price per unit of fuel.

Returns:

  • (Integer, nil)


285
# File 'lib/lithic/models/transactions/events/enhanced_data.rb', line 285

optional :unit_price, Integer, nil?: true

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/lithic/models/transactions/events/enhanced_data.rb', line 423