Class: AchClient::AchWorks::AccountTypeTransformer

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

Overview

Transforms AccountTypes between AchClient class and the string that AchWorks expects

Class Method Summary collapse

Methods inherited from Transformer

deserialize_provider_value, serialize_to_provider_value

Class Method Details

.transformerHash {String => Class}

'C' means Checking, 'S' means Savings

Returns:

  • (Hash {String => Class})

    the mapping



9
10
11
12
13
14
# File 'lib/ach_client/providers/soap/ach_works/account_type_transformer.rb', line 9

def self.transformer
  {
    'S' => AchClient::AccountTypes::Savings,
    'C' => AchClient::AccountTypes::Checking
  }
end