Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

corporate

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

corporate - npm Package Compare versions

Comparing version 0.0.9 to 0.0.11

features/ktl.feature

5

features/step_definitions/iso20022_steps.js

@@ -70,2 +70,7 @@ 'use strict';

this.When(/^I parse the xml payload as camt\.054\.001\.02$/, function (callback) {
this.parsedResult = corporate.camt05400102(this.xml);
callback();
});
this.Then(/^the result hash map should be$/, function (string, callback) {

@@ -72,0 +77,0 @@ var expected = eval('(' + string + ')');

4

features/step_definitions/tito_steps.js

@@ -14,2 +14,6 @@ "use strict";

});
this.When(/^I parse the file as KTL$/, function (callback) {
this.parsedResult = corporate.ktl(this.text);
callback();
});
};
var js = {
notifications: [{
identification: "IOY7M2WUIWVD",
electronicSequenceNumber: "2",
creationDateTime: "2011-0919T01:04:01",
fromDateTime: "2011-09-16T01:01:01",
toDateTime: "2011-09-16T23:59:59",
account: {
iban: "FI9881234511224450",
currency: "EUR",
name: "Maksuliiketili",
accountOwnerName: "Oy Yritys Ab",
servicerBic: "DABAFIHH"
},
transactionSummary: {
numberOfEntries: 2,
numberOfCreditEntries: 2,
sumOfCreditEntries: 193.0,
numberOfDebitEntries: 0,
sumOfDebitEntries: 0
},
entries: [{
entryReference: "1",
amount: 183.0,
amountCurrency: "EUR",
creditDebitIndicator: "CRDT",
status: "BOOK",
bookingDate: "2011-09-16",
valueDate: "2011-09-16",
accountServicerReference: "REFP2011034",
bankTransactionCode: {
domainCode: "PMNT",
domainFamilyCode: "RCDT",
domainSubFamilyCode: "NTAV",
proprietaryCode: "705 VIITESIIRROT",
proprietaryIssuer: "FFFS"
},
entryDetails: {
batch: {
numberOfTransactions: 2
},
transactionDetails: [{
transactionAmount: 147.0,
transactionAmountCurrency: "EUR",
bankTransactionCode: {
domainCode: "PMNT",
domainFamilyCode: "RCDT",
domainSubFamilyCode: "NTAV",
proprietaryCode: "700 SIIRTO",
proprietaryIssuer: "FFFS"
},
relatedParties: {
debitorName: 'Maksaja'
},
remittanceInformation: {
referenceNumber: '123'
},
relatedDates: {
acceptanceDateTime: "2011-09-16T13:35:18"
}
},{
transactionAmount: 36.0,
transactionAmountCurrency: "EUR",
bankTransactionCode: {
domainCode: "PMNT",
domainFamilyCode: "RCDT",
domainSubFamilyCode: "NTAV",
proprietaryCode: "700 SIIRTO",
proprietaryIssuer: "FFFS"
},
relatedParties: {
debitorName: 'Maksaja'
},
remittanceInformation: {
referenceNumber: 'RF74100978'
},
relatedDates: {
acceptanceDateTime: "2011-09-16T13:35:18"
}
}]
}
},{
entryReference: "2",
amount: 10.0,
amountCurrency: "EUR",
creditDebitIndicator: "CRDT",
status: "BOOK",
bookingDate: "2011-09-16",
valueDate: "2011-09-16",
accountServicerReference: "RFDI2011030",
bankTransactionCode: {
domainCode: "PMNT",
domainFamilyCode: "IDDT",
domainSubFamilyCode: "PMDD",
proprietaryCode: "704 SUORAVELOITUKSET",
proprietaryIssuer: "FFFS"
},
entryDetails: {
batch: {
numberOfTransactions: 1
},
transactionDetails: {
transactionAmount: 10.0,
transactionAmountCurrency: "EUR",
bankTransactionCode: {
domainCode: "PMNT",
domainFamilyCode: "IDDT",
domainSubFamilyCode: "PMMD",
proprietaryCode: "704 SUORAVELOITUS",
proprietaryIssuer: "FFFS"
},
relatedParties: {
debitorName: 'Maksaja'
},
remittanceInformation: {
referenceNumber: '00000006450830029863'
},
relatedDates: {
acceptanceDateTime: "2011-09-16T03:02:54"
}
}
}
}]
}]
};
var js = {
statements: [{

@@ -3,0 +132,0 @@ identification: "TI0107.122005810.1",

4

index.js

@@ -7,3 +7,5 @@ 'use strict';

camt05300102: require('./lib/camt.053.001.02'),
tito: require('./lib/tito')
camt05400102: require('./lib/camt.054.001.02'),
tito: require('./lib/tito'),
ktl: require('./lib/ktl')
};
{
"name": "corporate",
"version": "0.0.9",
"version": "0.0.11",
"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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc