Class: Ibandit::GermanDetailsConverter::Rule000900

Inherits:
BaseRule
  • Object
show all
Defined in:
lib/ibandit/german_details_converter.rb

Instance Method Summary collapse

Methods inherited from BaseRule

#initialize

Constructor Details

This class inherits a constructor from Ibandit::GermanDetailsConverter::BaseRule

Instance Method Details

#converted_detailsObject



391
392
393
394
395
396
397
398
399
400
# File 'lib/ibandit/german_details_converter.rb', line 391

def converted_details
   =
    if @account_number.rjust(10, "0").slice(0, 4) == "1116"
      "3047#{@account_number.rjust(10, '0').slice(4, 6)}"
    else
      @account_number
    end

  { bank_code: "68351557", account_number:  }
end