Skip to main content

# ITransactionTemplate

Provides application's administrator-facing view with the necessary handles for enabling Lender administrators to create transaction request templates, which they can associate with a 1-click/automated ordering business condition set.

## Extends​

- `IScriptingObject`

## Methods​

### _dispose()?​

    optional _dispose(): void;

#### Returns​

`void`

#### Inherited from​

`IScriptingObject`.`_dispose`

### _toJSON()​

    _toJSON(): RemotingScriptingObject;

#### Returns​

`RemotingScriptingObject`

#### Inherited from​

`IScriptingObject`.`_toJSON`

### close()​

    close(): Promise<void>;

Navigate the administrator users back to where they left off in the Loan Officer Connect services management application, after they are done interacting with your application's administrator-facing user-interface

#### Returns​

`Promise`<`void`>

### get()​

    get(): Promise<
      | TransactionTemplateDetails
    | null>;

Discover if your administrator-facing view has been rendered in the context of an existing transaction request template (in edit mode) or a new transaction request template (in create mode).

If your application is launched in the context of an existing transaction template, this method will return the previously created transactionTemplate object, containing the associated request type and set of request options, which your application user-interface can use to render the applicable view for the administrator (such as pre-filling the form entries).

Otherwise, if your application is launched in the context of a new transaction request template, this method will return a null response.

#### Returns​

`Promise`< | `TransactionTemplateDetails` | `null`>

transactionTemplate object in edit mode, or null in create mode

### save()​

    save(options: TransactionTemplateDetails): Promise<string>;

Create a new transaction request template, containing a defined request type and set of request options, that Lender administrators can associate with a 1-click/automated ordering business condition set.

#### Parameters​

##### options​

`TransactionTemplateDetails`

details of the transaction template to be created

#### Returns​

`Promise`<`string`>

success

## Properties​

### id​

    readonly id: string;

#### Inherited from​

`IScriptingObject`.`id`

### objectType​

    readonly objectType: string;

#### Inherited from​

`IScriptingObject`.`objectType`