node-red-contrib-sepa

0.4.1 • Public • Published

node-red-contrib-sepa

npm

Node-RED-nodes that generates SEPA payment files.

SEPA Credit Transfer

A credit transfer sends money from the initator (debitor) to on or more recipients (creditors).

The input accepts a message object with following attributes (values of the object are dummy values):

{ "messagetype": "pain.001.001.03",
  "messageid": "my msg id",
  "initname": "John Doe - Debitor",
  "initiban": "DE12500105170648489890",
  "initbic": "INGDDEFF",
  "batchbooking": true,
  "executiondate": "2021-12-15",
  "tx": [
    {
        "name": "Creditor 1",
        "iban": "AT483200000012345864",
        "amount": 1.11,
        "purpose": "purpose 1",
        "id": "id 1"
    },
    {
        "name": "Creditor 2",
        "iban": "CH5604835012345678009",
        "amount": 2.22,
        "purpose": "purpose 2",
        "id": "id 2"
    }
    ]
}

If tx.id is empty, an ISO-timestamp is used instead.

A corresponding item in the message object overwrites the value given in the node attributes.

Example flow

SEPA Direct Debit

A direct debit requests money from one ore more payers. The creditor initiates the payment. The creditor needs a creditor id.

The input accepts a message object with following attributes (values of the object are dummy values):

{ "messagetype": "pain.008.001.02",
  "messageid": "my msg id",
  "initname": "John Doe - Creditor",
  "initiban": "DE12500105170648489890",
  "initbic": "INGDDEFF",
  "batchbooking": true,
  "executiondate": "2021-12-15",
  "creditorid": "DE98ZZZ09999999999",
  "localinstrument": "CORE",
  "sequencetype": "RCUR",
  "tx": [
    {
        "name": "Debitor 1",
        "iban": "AT483200000012345864",
        "amount": 1.11,
        "purpose": "purpose 1",
        "mdtid": "mandate 1",
        "mdtdate": "2021-01-01",
        "id": "e2eid 1"
    },
    {
        "name": "Debitor 2",
        "iban": "CH5604835012345678009",
        "amount": 2.22,
        "purpose": "purpose 2",
        "mdtid": "mandate 2",
        "mdtdate": "2021-02-02",
        "id": "e2eid 2"
    }   
]
}

If tx.id is empty, an ISO-timestamp is used instead.

A corresponding item in the message object overwrites the value given in the node attributes!

Example flow

Output

msg.payload contains a xml-string representing the SEPA-payment file. Use the write file-node to save as a xml-file.

Example flows

Import example flows using the "Import -> Examples" command in Node-RED menu.

Readme

Keywords

Package Sidebar

Install

npm i node-red-contrib-sepa

Weekly Downloads

27

Version

0.4.1

License

MIT

Unpacked Size

292 kB

Total Files

13

Last publish

Collaborators

  • halli77