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

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

Defined Under Namespace

Modules: ServiceType Classes: AmountTotals, Fuel

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(discount: nil, gross_sale: nil, net_sale: nil) ⇒ Object

Parameters:

  • discount (Integer, nil) (defaults to: nil)

    The discount applied to the gross sale amount.

  • gross_sale (Integer, nil) (defaults to: nil)

    The gross sale amount.

  • net_sale (Integer, nil) (defaults to: nil)

    The amount after discount.



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

Instance Attribute Details

#amount_totalsLithic::Models::Transactions::Events::EnhancedData::Fleet::AmountTotals



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

required :amount_totals, -> { Lithic::Transactions::Events::EnhancedData::Fleet::AmountTotals }

#driver_numberString?

The driver number entered into the terminal at the time of sale, with leading zeros stripped.

Returns:

  • (String, nil)


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

optional :driver_number, String, nil?: true

#fuelLithic::Models::Transactions::Events::EnhancedData::Fleet::Fuel



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

required :fuel, -> { Lithic::Transactions::Events::EnhancedData::Fleet::Fuel }

#odometerInteger?

The odometer reading entered into the terminal at the time of sale.

Returns:

  • (Integer, nil)


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

optional :odometer, Integer, nil?: true

#service_typeSymbol, ...

The type of fuel service.



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

optional :service_type, enum: -> { Lithic::Transactions::Events::EnhancedData::Fleet::ServiceType }

#vehicle_numberString?

The vehicle number entered into the terminal at the time of sale, with leading zeros stripped.

Returns:

  • (String, nil)


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

optional :vehicle_number, String, nil?: true

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


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