Class: AchClient::ICheckGateway::AccountTypeTransformer

Inherits:
Transformer
  • Object
show all
Defined in:
lib/ach_client/providers/soap/i_check_gateway/account_type_transformer.rb

Overview

Transforms AccountTypes between AchClient class and the string that ICheckGateway expects

Class Method Summary collapse

Methods inherited from Transformer

deserialize_provider_value, serialize_to_provider_value

Class Method Details

.transformerHash {String => Class}

‘B’ means Business, ‘P’ means Personal ‘C’ means Checking, ‘S’ means Savings

Returns:

  • (Hash {String => Class})

    the mapping



10
11
12
13
14
15
16
17
# File 'lib/ach_client/providers/soap/i_check_gateway/account_type_transformer.rb', line 10

def self.transformer
  {
    'PS' => AchClient::AccountTypes::PersonalSavings,
    'PC' => AchClient::AccountTypes::PersonalChecking,
    'BS' => AchClient::AccountTypes::BusinessSavings,
    'BC' => AchClient::AccountTypes::BusinessChecking
  }
end