Class: Ibandit::GermanDetailsConverter::Rule005300

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

Constant Summary collapse

PSEUDO_ACCOUNT_NUMBER_MAPPING =
{
  '55050000_0000035000' => '7401555913',
  '55050000_0119345106' => '7401555906',
  '55050000_0000000908' => '7401507480',
  '55050000_0000000901' => '7401507497',
  '55050000_0000000910' => '7401507466',
  '55050000_0000035100' => '7401555913',
  '55050000_0000000902' => '7401507473',
  '55050000_0000044000' => '7401555872',
  '55050000_0110132511' => '7401550530',
  '55050000_0110024270' => '7401501266',
  '55050000_0000003500' => '7401555913',
  '55050000_0110050002' => '7401502234',
  '55050000_0055020100' => '7401555872',
  '55050000_0110149226' => '7401512248',
  '60020030_1047444300' => '7871538395',
  '60020030_1040748400' => '0001366705',
  '60020030_1000617900' => '0002009906',
  '60020030_1003340500' => '0002001155',
  '60020030_1002999900' => '0002588991',
  '60020030_1004184600' => '7871513509',
  '60020030_1000919900' => '7871531505',
  '60020030_1054290000' => '7871521216',
  '60050000_0000001523' => '0001364934',
  '60050000_0000002811' => '0001367450',
  '60050000_0000002502' => '0001366705',
  '60050000_0000250412' => '7402051588',
  '60050000_0000003009' => '0001367924',
  '60050000_0000004596' => '0001372809',
  '60050000_0000003080' => '0002009906',
  '60050000_0001029204' => '0002782254',
  '60050000_0000003002' => '0001367924',
  '60050000_0000123456' => '0001362826',
  '60050000_0000002535' => '0001119897',
  '60050000_0000005500' => '0001375703',
  '66020020_4002401000' => '7495500967',
  '66020020_4000604100' => '0002810030',
  '66020020_4002015800' => '7495530102',
  '66020020_4003746700' => '7495501485',
  '66050000_0000086567' => '0001364934',
  '66050000_0000086345' => '7402046641',
  '66050000_0000085304' => '7402045439',
  '66050000_0000085990' => '7402051588',
  '86050000_0000001016' => '7461500128',
  '86050000_0000003535' => '7461505611',
  '86050000_0000002020' => '7461500018',
  '86050000_0000004394' => '7461505714'
}.freeze

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



1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
# File 'lib/ibandit/german_details_converter.rb', line 1124

def converted_details
   = PSEUDO_ACCOUNT_NUMBER_MAPPING.fetch(
    "#{@bank_code}_#{@account_number.rjust(10, '0')}",
    nil
  )

  {
    bank_code: .nil? ? @bank_code : '60050101',
    account_number:  || @account_number
  }
end