Comparing version 0.0.15 to 0.0.16
@@ -73,3 +73,5 @@ 'use strict'; | ||
var creditLine = select('a:CdtLine', balElem), | ||
crdtLine = creditLine[0] ? { | ||
crdtLine = creditLine[0] && ( | ||
!select('a:Incl', creditLine[0]).length || select('a:Incl/text()', creditLine[0]).toString() === 'true' | ||
) ? { | ||
included: true, | ||
@@ -76,0 +78,0 @@ amount: Number(select('a:Amt/text()', creditLine[0]).toString()), |
@@ -28,15 +28,13 @@ 'use strict'; | ||
}; | ||
if (r.paymentInformationStatus === 'PART') { | ||
r.detailedPayments = Array.prototype.map.call(select('a:TxInfAndSts', info), function(txInfo) { | ||
var tr = { | ||
originalEndToEndId: select('a:OrgnlEndToEndId/text()', txInfo).toString(), | ||
status: select('a:TxSts/text()', txInfo).toString() | ||
}; | ||
var tStsRsnInf = select('a:StsRsnInf', txInfo); | ||
if (tStsRsnInf[0]) { | ||
tr.statusReasonInformation = statusReasonInformation(tStsRsnInf[0]); | ||
} | ||
return tr; | ||
}); | ||
} | ||
r.detailedPayments = Array.prototype.map.call(select('a:TxInfAndSts', info), function(txInfo) { | ||
var tr = { | ||
originalEndToEndId: select('a:OrgnlEndToEndId/text()', txInfo).toString(), | ||
status: select('a:TxSts/text()', txInfo).toString() | ||
}; | ||
var tStsRsnInf = select('a:StsRsnInf', txInfo); | ||
if (tStsRsnInf[0]) { | ||
tr.statusReasonInformation = statusReasonInformation(tStsRsnInf[0]); | ||
} | ||
return tr; | ||
}); | ||
var pStsRsnInf = select('a:StsRsnInf', info); | ||
@@ -43,0 +41,0 @@ if (pStsRsnInf[0]) { |
{ | ||
"name": "corporate", | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"description": "A module for parsing (mostly) ISO20022 messages", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
161613