Sha256: 84ce05412eb84370f3ccd0c1e1ba09733bea5efd7be28ff3d7b042d87af81435

Contents?: true

Size: 668 Bytes

Versions: 28

Compression:

Stored size: 668 Bytes

Contents

module AchClient
  class ICheckGateway
    ##
    # Transforms AccountTypes between AchClient class and the string
    # that ICheckGateway expects
    class AccountTypeTransformer < AchClient::Transformer
      # 'B' means Business, 'P' means Personal
      # 'C' means Checking, 'S' means Savings
      # @return [Hash {String => Class}] the mapping
      def self.transformer
        {
          'PS' => AchClient::AccountTypes::PersonalSavings,
          'PC' => AchClient::AccountTypes::PersonalChecking,
          'BS' => AchClient::AccountTypes::BusinessSavings,
          'BC' => AchClient::AccountTypes::BusinessChecking
        }
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
ach_client-5.3.2 lib/ach_client/providers/soap/i_check_gateway/account_type_transformer.rb
ach_client-5.3.1 lib/ach_client/providers/soap/i_check_gateway/account_type_transformer.rb
ach_client-5.3.0 lib/ach_client/providers/soap/i_check_gateway/account_type_transformer.rb
ach_client-5.2.0 lib/ach_client/providers/soap/i_check_gateway/account_type_transformer.rb
ach_client-5.1.0 lib/ach_client/providers/soap/i_check_gateway/account_type_transformer.rb
ach_client-5.0.0 lib/ach_client/providers/soap/i_check_gateway/account_type_transformer.rb
ach_client-4.0.0 lib/ach_client/providers/soap/i_check_gateway/account_type_transformer.rb
ach_client-3.1.0 lib/ach_client/providers/soap/i_check_gateway/account_type_transformer.rb
ach_client-3.0.0 lib/ach_client/providers/soap/i_check_gateway/account_type_transformer.rb
ach_client-2.1.0 lib/ach_client/providers/soap/i_check_gateway/account_type_transformer.rb
ach_client-2.0.0 lib/ach_client/providers/soap/i_check_gateway/account_type_transformer.rb
ach_client-1.1.0 lib/ach_client/providers/soap/i_check_gateway/account_type_transformer.rb
ach_client-1.0.3 lib/ach_client/providers/soap/i_check_gateway/account_type_transformer.rb
ach_client-1.0.2 lib/ach_client/providers/soap/i_check_gateway/account_type_transformer.rb
ach_client-1.0.1 lib/ach_client/providers/soap/i_check_gateway/account_type_transformer.rb
ach_client-1.0.0 lib/ach_client/providers/soap/i_check_gateway/account_type_transformer.rb
ach_client-0.7.0 lib/ach_client/providers/soap/i_check_gateway/account_type_transformer.rb
ach_client-0.6.8 lib/ach_client/providers/soap/i_check_gateway/account_type_transformer.rb
ach_client-0.6.7 lib/ach_client/providers/soap/i_check_gateway/account_type_transformer.rb
ach_client-0.6.6 lib/ach_client/providers/soap/i_check_gateway/account_type_transformer.rb