Class: Transformer

Transformer

new Transformer(request) → {Transformer}

Transformer Class
Parameters:
Name Type Description
request object The body of the HTTP Post request from the client
Source:
Returns:
A new instance of Transformer
Type
Transformer

Methods

<static> TransformRequest#generateReply() → {object}

Wrapper for `NetsuiteToolkit.formatReply()`
Source:
Returns:
The formatted reply from Netsuite
Type
object

accumulateResult(The) → {null}

Adds a result to the `reply_list`
Parameters:
Name Type Description
The object result
Source:
Returns:
Type
null

executeTransformRequest(The) → {null}

Executes a new TransformRequest, accumulating the result
Parameters:
Name Type Description
The object request data
Source:
Returns:
Type
null

generateReply() → {object}

Wrapper for `NetsuiteToolkit.formatReply()`
Source:
Returns:
The formatted reply from Netsuite
Type
object

transformRecords() → {null}

Iterates over each record calling `executeTransformRequest()`
Source:
Returns:
Type
null