Class: Moov::Models::Components::InstantBankTransactionDetails

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

Overview

Instant-bank specific details about the transaction.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(network:, status:, network_response_code: nil, failure_code: nil, end_to_end_id: nil, initiated_on: nil, completed_on: nil, failed_on: nil, accepted_without_posting_on: nil) ⇒ InstantBankTransactionDetails

Returns a new instance of InstantBankTransactionDetails.



35
36
37
38
39
40
41
42
43
44
45
# File 'lib/moov/models/components/instantbanktransactiondetails.rb', line 35

def initialize(network:, status:, network_response_code: nil, failure_code: nil, end_to_end_id: nil, initiated_on: nil, completed_on: nil, failed_on: nil, accepted_without_posting_on: nil)
  @network = network
  @status = status
  @network_response_code = network_response_code
  @failure_code = failure_code
  @end_to_end_id = end_to_end_id
  @initiated_on = initiated_on
  @completed_on = completed_on
  @failed_on = failed_on
  @accepted_without_posting_on = accepted_without_posting_on
end

Instance Method Details

#==(other) ⇒ Object



48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/moov/models/components/instantbanktransactiondetails.rb', line 48

def ==(other)
  return false unless other.is_a? self.class
  return false unless @network == other.network
  return false unless @status == other.status
  return false unless @network_response_code == other.network_response_code
  return false unless @failure_code == other.failure_code
  return false unless @end_to_end_id == other.end_to_end_id
  return false unless @initiated_on == other.initiated_on
  return false unless @completed_on == other.completed_on
  return false unless @failed_on == other.failed_on
  return false unless @accepted_without_posting_on == other.accepted_without_posting_on
  true
end