class Ibandit::GermanDetailsConverter::Rule003600
Public Instance Methods
Source
# File lib/ibandit/german_details_converter.rb, line 890 def converted_details updated_account_number = case @account_number.to_i when 100000..899999 then @account_number + "000" when 30000000..59999999 then @account_number when 100000000..899999999 then @account_number when 1000000000..1999999999 then @account_number when 3000000000..7099999999 then @account_number when 8500000000..8599999999 then @account_number when 9000000000..9999999999 then @account_number else disallow end { bank_code: "20050000", account_number: updated_account_number } end
Private Instance Methods
Source
# File lib/ibandit/german_details_converter.rb, line 908 def disallow msg = "Account does not support payment transactions" raise UnsupportedAccountDetails, msg end