Class: Ibandit::GermanDetailsConverter::Rule003200
- Defined in:
- lib/ibandit/german_details_converter.rb
Instance Method Summary collapse
Methods inherited from BaseRule
Constructor Details
This class inherits a constructor from Ibandit::GermanDetailsConverter::BaseRule
Instance Method Details
#converted_details ⇒ Object
796 797 798 799 800 801 802 803 804 805 806 807 808 |
# File 'lib/ibandit/german_details_converter.rb', line 796 def converted_details if @account_number.to_i.between?(800000000, 899999999) msg = 'Account does not support payment transactions' raise UnsupportedAccountDetails, msg end updated_bank_code = Rule003101::BANK_CODE_MAPPING.fetch( @account_number.rjust(10, '0').slice(0, 3), @bank_code ) { bank_code: updated_bank_code, account_number: @account_number } end |