Sha256: d3a4f9a186ca55bb85fb4c872c54db9ef278622cc780c4e085a8d4d1ceb713b4

Contents?: true

Size: 822 Bytes

Versions: 3

Compression:

Stored size: 822 Bytes

Contents

module Ibandit
  module Constants
    CONSTRUCTABLE_IBAN_COUNTRY_CODES = %w[AT BE BG CY CZ DE DK EE ES FI FR GB GR
                                          HR HU IE IS IT LT LU LV MC MT NL NO PL
                                          PT RO SE SI SK SM].freeze

    PSEUDO_IBAN_COUNTRY_CODES = %w[AU SE].freeze
    DECONSTRUCTABLE_IBAN_COUNTRY_CODES =
      CONSTRUCTABLE_IBAN_COUNTRY_CODES - PSEUDO_IBAN_COUNTRY_CODES

    PSEUDO_IBAN_CHECK_DIGITS = "ZZ".freeze

    PSEUDO_IBAN_PADDING_CHARACTER_FOR = {
      "SE" => "X", # Using X for backwards compatibility
      "AU" => "_", # Using _ because AU account numbers are alphanumeric
    }.freeze

    SUPPORTED_COUNTRY_CODES = (
      CONSTRUCTABLE_IBAN_COUNTRY_CODES +
      DECONSTRUCTABLE_IBAN_COUNTRY_CODES +
      PSEUDO_IBAN_COUNTRY_CODES
    ).uniq
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ibandit-0.11.13 lib/ibandit/constants.rb
ibandit-0.11.12 lib/ibandit/constants.rb
ibandit-0.11.11 lib/ibandit/constants.rb