Class: Moov::Models::Components::ACHTransactionDetails
- Inherits:
-
Object
- Object
- Moov::Models::Components::ACHTransactionDetails
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/achtransactiondetails.rb
Overview
ACH specific details about the transaction.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(status:, trace_number:, return_: nil, correction: nil, company_entry_description: nil, originating_company_name: nil, sec_code: nil, canceled_on: nil, initiated_on: nil, originated_on: nil, corrected_on: nil, returned_on: nil, failed_on: nil, completed_on: nil, debit_hold_period: nil) ⇒ ACHTransactionDetails
constructor
A new instance of ACHTransactionDetails.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(status:, trace_number:, return_: nil, correction: nil, company_entry_description: nil, originating_company_name: nil, sec_code: nil, canceled_on: nil, initiated_on: nil, originated_on: nil, corrected_on: nil, returned_on: nil, failed_on: nil, completed_on: nil, debit_hold_period: nil) ⇒ ACHTransactionDetails
Returns a new instance of ACHTransactionDetails.
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/moov/models/components/achtransactiondetails.rb', line 48 def initialize(status:, trace_number:, return_: nil, correction: nil, company_entry_description: nil, originating_company_name: nil, sec_code: nil, canceled_on: nil, initiated_on: nil, originated_on: nil, corrected_on: nil, returned_on: nil, failed_on: nil, completed_on: nil, debit_hold_period: nil) @status = status @trace_number = trace_number @return_ = return_ @correction = correction @company_entry_description = company_entry_description @originating_company_name = originating_company_name @sec_code = sec_code @canceled_on = canceled_on @initiated_on = initiated_on @originated_on = originated_on @corrected_on = corrected_on @returned_on = returned_on @failed_on = failed_on @completed_on = completed_on @debit_hold_period = debit_hold_period end |
Instance Method Details
#==(other) ⇒ Object
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
# File 'lib/moov/models/components/achtransactiondetails.rb', line 67 def ==(other) return false unless other.is_a? self.class return false unless @status == other.status return false unless @trace_number == other.trace_number return false unless @return_ == other.return_ return false unless @correction == other.correction return false unless @company_entry_description == other.company_entry_description return false unless @originating_company_name == other.originating_company_name return false unless @sec_code == other.sec_code return false unless @canceled_on == other.canceled_on return false unless @initiated_on == other.initiated_on return false unless @originated_on == other.originated_on return false unless @corrected_on == other.corrected_on return false unless @returned_on == other.returned_on return false unless @failed_on == other.failed_on return false unless @completed_on == other.completed_on return false unless @debit_hold_period == other.debit_hold_period true end |