Exception: Moov::Models::Errors::RefundValidationError

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(amount: nil, amount_details: nil, error: nil, raw_response: nil) ⇒ RefundValidationError

Returns a new instance of RefundValidationError.



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

def initialize(amount: nil, amount_details: nil, error: nil, raw_response: nil)
  @amount = amount
  @amount_details = amount_details
  @error = error
  @raw_response = raw_response
end

Instance Method Details

#==(other) ⇒ Object



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

def ==(other)
  return false unless other.is_a? self.class
  return false unless @amount == other.amount
  return false unless @amount_details == other.amount_details
  return false unless @error == other.error
  return false unless @raw_response == other.raw_response
  true
end