CollectionType Property
A code that indicates the type of cash letter and bundle contained in the file.
Syntax
check21.getCollectionType([callback]) check21.setCollectionType( collectionType, [callback])
Possible Values
1 (ctForwardInfo), 2 (ctFowardPresentment), 3 (ctForwardSameDay), 20 (ctNoDetail)
Default Value
1
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 getCollectionType([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 setCollectionType([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
This property is part of the Cash Letter Header record (type 10), and is exactly 2 characters in length. Valid values for this property are listed below.
ctForwardInfo (1) | Preliminary Forward Information - Used when information may change and the information is treated as not final. |
ctForwardPresentment (2) | Forward Presentment - For the collection and settlement of checks (demand instruments). Data is treated as final. |
ctForwardSameDay (3) | Forward Presentment, Same-Day Settlement - For the collection and settlement of checks (demand instruments) presented under the Federal Reserve's same day settlement amendments to Regulation CC. Data is treated as final. |
ctNoDetail (20) | No Detail - There are no checks contained within the file. |
Data Type
Integer