Class: FinTS::Segment::HKSPA

Inherits:
BaseSegment show all
Defined in:
lib/fints/segment/hkspa.rb

Overview

HKSPA (SEPA-Kontoverbindung anfordern) Section C.10.1.3

Instance Attribute Summary

Attributes inherited from BaseSegment

#segmentno

Instance Method Summary collapse

Methods inherited from BaseSegment

#to_s

Constructor Details

#initialize(segno, accno, subaccfeature, blz) ⇒ HKSPA

Returns a new instance of HKSPA.



6
7
8
9
10
11
12
13
# File 'lib/fints/segment/hkspa.rb', line 6

def initialize(segno, accno, subaccfeature, blz)
  data = if accno.nil?
            ['']
          else
            [[accno, subaccfeature, country_code, blz].join(':')]
          end
  super(segno, data)
end