E-Payment Integrator 2020 Node.js Edition

Questions / Feedback?

RecordType Property

A code that indicates the type of records contained in this file.

Syntax

 check21.getRecordType([callback])
 check21.setRecordType( recordType, [callback])

Possible Values

  0 (rtNoChecks), 
  1 (rtChecksNoImages), 
  2 (rtChecksAndImages), 
  3 (rtImagesForCashLetter)

Default Value

0

Callback

The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).

The callback for the getRecordType([callback]) method is defined as:

function(err, data){ }

'err' is the error that occurred. If there was no error, then 'err' is 'null'.

'data' is the value returned by the method.

The callback for the setRecordType([callback]) method is defined as:

function(err){ }

'err' is the error that occurred. If there was no error, then 'err' is 'null'.

'err' has 2 properties which hold detailed information:

err.code
err.message

Remarks

If an image is associated with any (even one) CheckDetail detail record, this property must be set to rtChecksAndImages or rtImagesForCashLetter. This property is part of the Cash Letter record (type 10) and may be set to any of the values listed below:

rtNoChecksNo electronic check records or image records. (only applicable for an empty cash letter with no Checks.)
rtChecksNoImagesFile contains electronic check records with no images.
rtChecksAndImagesFile contains electronic check records with images.
rtImagesForCashLetterFile contains electronic check records and images that correspond to a previously sent file (ie, a file sent with a RecordType of rtChecksNoImages). The Checks in this file that contain posting data shall not be changed from the previously sent file with CollectionType 1 or 2.

Data Type

Integer

Copyright (c) 2021 /n software inc. - All rights reserved.
E-Payment Integrator 2020 Node.js Edition - Version 20.0 [Build 7941]