Sha256: aadb72fccc717460fa77afe2b259087e0dedcf7d1c3e0e48777c2cd35f60a5ee

Contents?: true

Size: 866 Bytes

Versions: 6

Compression:

Stored size: 866 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 NZ CA].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
      "NZ" => "_",
      "CA" => "_",
    }.freeze

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ibandit-0.11.25 lib/ibandit/constants.rb
ibandit-0.11.24 lib/ibandit/constants.rb
ibandit-0.11.23 lib/ibandit/constants.rb
ibandit-0.11.22 lib/ibandit/constants.rb
ibandit-0.11.20 lib/ibandit/constants.rb
ibandit-0.11.19 lib/ibandit/constants.rb