Sha256: 5a63fb5a77ea7a047aa9d96f4777f91f1a262ca348d14b2035b932a67432e553

Contents?: true

Size: 912 Bytes

Versions: 24

Compression:

Stored size: 912 Bytes

Contents

# frozen_string_literal: true

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 US].freeze
    DECONSTRUCTABLE_IBAN_COUNTRY_CODES =
      CONSTRUCTABLE_IBAN_COUNTRY_CODES - PSEUDO_IBAN_COUNTRY_CODES

    PSEUDO_IBAN_CHECK_DIGITS = "ZZ"

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

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

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
ibandit-1.13.0 lib/ibandit/constants.rb
ibandit-1.12.0 lib/ibandit/constants.rb
ibandit-1.11.0 lib/ibandit/constants.rb
ibandit-1.10.0 lib/ibandit/constants.rb
ibandit-1.9.0 lib/ibandit/constants.rb
ibandit-1.8.1 lib/ibandit/constants.rb
ibandit-1.8.0 lib/ibandit/constants.rb
ibandit-1.7.1 lib/ibandit/constants.rb
ibandit-1.7.0 lib/ibandit/constants.rb
ibandit-1.6.1 lib/ibandit/constants.rb
ibandit-1.6.0 lib/ibandit/constants.rb
ibandit-1.5.0 lib/ibandit/constants.rb
ibandit-1.4.1 lib/ibandit/constants.rb
ibandit-1.4.0 lib/ibandit/constants.rb
ibandit-1.3.0 lib/ibandit/constants.rb
ibandit-1.2.3 lib/ibandit/constants.rb
ibandit-1.2.2 lib/ibandit/constants.rb
ibandit-1.2.0 lib/ibandit/constants.rb
ibandit-1.2.1 lib/ibandit/constants.rb
ibandit-1.1.0.1 lib/ibandit/constants.rb