Exception: Moov::Models::Errors::TransferConfigValidationError

Inherits:
StandardError
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/moov/models/errors/transferconfigvalidationerror.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(tip_presets_calculation_basis: nil, tip_presets_percentage_options: nil, tip_presets_fixed_amount_options: nil, raw_response: nil) ⇒ TransferConfigValidationError

Returns a new instance of TransferConfigValidationError.



25
26
27
28
29
30
# File 'lib/moov/models/errors/transferconfigvalidationerror.rb', line 25

def initialize(tip_presets_calculation_basis: nil, tip_presets_percentage_options: nil, tip_presets_fixed_amount_options: nil, raw_response: nil)
  @tip_presets_calculation_basis = tip_presets_calculation_basis
  @tip_presets_percentage_options = tip_presets_percentage_options
  @tip_presets_fixed_amount_options = tip_presets_fixed_amount_options
  @raw_response = raw_response
end

Instance Method Details

#==(other) ⇒ Object



33
34
35
36
37
38
39
40
# File 'lib/moov/models/errors/transferconfigvalidationerror.rb', line 33

def ==(other)
  return false unless other.is_a? self.class
  return false unless @tip_presets_calculation_basis == other.tip_presets_calculation_basis
  return false unless @tip_presets_percentage_options == other.tip_presets_percentage_options
  return false unless @tip_presets_fixed_amount_options == other.tip_presets_fixed_amount_options
  return false unless @raw_response == other.raw_response
  true
end