Class: AchClient::CorrectedAchResponse

Inherits:
ReturnedAchResponse show all
Defined in:
lib/ach_client/objects/responses/corrected_ach_response.rb

Overview

Representation of an Ach return that contains a correction

Instance Attribute Summary collapse

Attributes inherited from ReturnedAchResponse

#return_code

Attributes inherited from AchResponse

#amount, #date

Instance Method Summary collapse

Constructor Details

#initialize(amount:, date:, return_code:, corrections:) ⇒ CorrectedAchResponse

correction (ie AchClient::ReturnCodes.find_by(code: ‘C01’))

Parameters:

  • date (DateTime)

    date of correction return

  • return_code (AchClient::ReturnCode)

    Ach Return code for the

  • corrections (Hash)

    A hash of corrected attributes and their values



13
14
15
16
# File 'lib/ach_client/objects/responses/corrected_ach_response.rb', line 13

def initialize(amount:, date:, return_code:, corrections:)
  @corrections = corrections
  super(amount: amount, date: date, return_code: return_code)
end

Instance Attribute Details

#correctionsObject (readonly)

Returns the value of attribute corrections.



6
7
8
# File 'lib/ach_client/objects/responses/corrected_ach_response.rb', line 6

def corrections
  @corrections
end