Sha256: ff300940cfc2f321c7bb3c83a211b2c33c1339292b4feee7cce0f6caa182d9c6

Contents?: true

Size: 793 Bytes

Versions: 3

Compression:

Stored size: 793 Bytes

Contents

module FinTS
  module Segment
    # HKWPD (Depotaufstellung anfordern)
    # Section C.4.3.1
    # Example: HKPWD:3:7+23456::280:10020030+USD+2'
    class HKWPD < BaseSegment
      def initialize(segno, version, account)
        # The spec allows the specification of currency and
        # quality of valuations, as shown in the docstring above.
        # However, both 1822direkt and CortalConsors reject the
        # call if these two are present, claiming an invalid input.
        # 'EUR'        # Währung der Depotaufstellung"
        # 2             # Kursqualität
        data = [account]
        super(segno, data)
        @version = version
      end

      protected

      def type
        'HKPWD'
      end
      
      def version
        @version
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby_fints-0.0.4 lib/fints/segment/hkwpd.rb
ruby_fints-0.0.3 lib/fints/segment/hkwpd.rb
ruby_fints-0.0.2 lib/fints/segment/hkwpd.rb