# InternalAccountAdapter

## Program ID

MetraPipeline.InternalAccountAdapter.1

## Description

InternalAccountAdapter plug-in is responsible for creating, updating and deleting accounts in the internal account view table. This plug-in uses the new account infrastructure to create contacts. Underneath this plug-in, the COM implementation of the internal account adapter is used to access the table.

Note: This plug-in is transactional, and accommodates MetraNet's session sets functionality.

## Required Input Properties

Tag Name | Value Type | Description
accountID | integer | A unique value generated for the created account. No two users in the MetraTech system will have the same account ID
actiontype | string | Indicates whether this pipeline needs to be used for an “account” operation, “contact” operation or “both” operation
accounttype | integer | A number indicated Bill-To or Ship-To account type: 1 = Bill-To 2 = Ship-To This is stored in the t_av_internal table.
tariffID | integer | Associated tariff ID of the customer. This is stored in the t_av_internal table.
taxexempt | string | A one character string indicating whether a user is tax-exempt or not. This is stored in the t_av_internal table.
timezoneID | integer | A unique identifier corresponding to a specific timezone. This is stored in the t_av_internal table.
geocode | integer | A unique number used for Rating within the pipeline. It is unique to a city, state and zip. This is stored in the t_av_internal table.
paymentmethod | integer | A number indicating the payment method. 1 à None and 2 à Credit Card. This is stored in the t_av_internal table.
operation | integer | An integer indicating the operation that needs to be performed by this plug-in. 0 = Add 1 = Update 2 = Delete 3 = NoOp
accountcreated | string | A string value with a Y or N value indicating that the account was created or not.
transactioncookie | string | A base64 hashed string used for enlisting in a transaction by different processes.
username | string | Login or username to be created in the table.
name_space | string | Namespace to created in the table

## Required Output Properties

None.

## Additional Configuration Tags

None.

## Configuration Example

<configdata>
<_accountID>_AccountID</_accountID>
<actiontype>actiontype</actiontype>
<accounttype>accounttype</accounttype>
<tariffID>tariffID</tariffID>
<taxexempt>taxexempt</taxexempt>
<timezoneID>timezoneID</timezoneID>
<geocode>geocode</geocode>
<paymentmethod>paymentmethod</paymentmethod>
<operation>operation</operation>
<accountcreated>accountcreated</accountcreated>
<transactioncookie>transactioncookie</transactioncookie>
<username>username</username>
<name_space>name_space</name_space>
</configdata>