Class: Moov::Models::Errors::TransferValidationError
- Inherits:
-
Object
- Object
- Moov::Models::Errors::TransferValidationError
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/errors/transfervalidationerror.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(transfer: nil, amount: nil, source: nil, source_payment_method_id: nil, destination_payment_method_id: nil, description: nil, facilitator_fee_total_decimal: nil, facilitator_fee_markup_decimal: nil, metadata: nil, error: nil, raw_response: nil) ⇒ TransferValidationError
constructor
A new instance of TransferValidationError.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(transfer: nil, amount: nil, source: nil, source_payment_method_id: nil, destination_payment_method_id: nil, description: nil, facilitator_fee_total_decimal: nil, facilitator_fee_markup_decimal: nil, metadata: nil, error: nil, raw_response: nil) ⇒ TransferValidationError
Returns a new instance of TransferValidationError.
40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/moov/models/errors/transfervalidationerror.rb', line 40 def initialize(transfer: nil, amount: nil, source: nil, source_payment_method_id: nil, destination_payment_method_id: nil, description: nil, facilitator_fee_total_decimal: nil, facilitator_fee_markup_decimal: nil, metadata: nil, error: nil, raw_response: nil) @transfer = transfer @amount = amount @source = source @source_payment_method_id = source_payment_method_id @destination_payment_method_id = destination_payment_method_id @description = description @facilitator_fee_total_decimal = facilitator_fee_total_decimal @facilitator_fee_markup_decimal = facilitator_fee_markup_decimal = @error = error @raw_response = raw_response end |
Instance Method Details
#==(other) ⇒ Object
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/moov/models/errors/transfervalidationerror.rb', line 55 def ==(other) return false unless other.is_a? self.class return false unless @transfer == other.transfer return false unless @amount == other.amount return false unless @source == other.source return false unless @source_payment_method_id == other.source_payment_method_id return false unless @destination_payment_method_id == other.destination_payment_method_id return false unless @description == other.description return false unless @facilitator_fee_total_decimal == other.facilitator_fee_total_decimal return false unless @facilitator_fee_markup_decimal == other.facilitator_fee_markup_decimal return false unless == other. return false unless @error == other.error return false unless @raw_response == other.raw_response true end |