{"id":28583393,"url":"https://github.com/pierrickp/sepa-xml-2","last_synced_at":"2025-06-11T05:08:09.510Z","repository":{"id":146772221,"uuid":"53937773","full_name":"PierrickP/sepa-xml-2","owner":"PierrickP","description":null,"archived":false,"fork":false,"pushed_at":"2016-03-15T12:58:25.000Z","size":244,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"v2","last_synced_at":"2024-04-15T14:25:00.261Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PierrickP.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-03-15T11:07:26.000Z","updated_at":"2016-03-15T11:46:57.000Z","dependencies_parsed_at":"2023-09-23T14:33:22.566Z","dependency_job_id":null,"html_url":"https://github.com/PierrickP/sepa-xml-2","commit_stats":{"total_commits":23,"total_committers":2,"mean_commits":11.5,"dds":0.4782608695652174,"last_synced_commit":"e62b9b97168dc7170788e38b02e16504cadda7a0"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PierrickP%2Fsepa-xml-2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PierrickP%2Fsepa-xml-2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PierrickP%2Fsepa-xml-2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PierrickP%2Fsepa-xml-2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PierrickP","download_url":"https://codeload.github.com/PierrickP/sepa-xml-2/tar.gz/refs/heads/v2","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PierrickP%2Fsepa-xml-2/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259204809,"owners_count":22821160,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-11T05:08:07.563Z","updated_at":"2025-06-11T05:08:09.487Z","avatar_url":"https://github.com/PierrickP.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SEPA-XML-2\n\n[![Build Status](https://travis-ci.org/PierrickP/sepa-xml-2.svg?branch=master)](https://travis-ci.org/PierrickP/sepa-xml-2)\n[![Coverage Status](https://coveralls.io/repos/github/PierrickP/sepa-xml-2/badge.svg?branch=master)](https://coveralls.io/github/PierrickP/sepa-xml-2?branch=master)\n\nBased on https://github.com/mgmco/sepa-xml this NPM module generate SEPA XML file for **credit** (ask me for *debit*)\n\n## Changes from the original module \n\n+ Implemente `pain.001.001.03` \u0026 `pain.001.001.02`\n+ Allow creating multiple instances\n+ Multi *payment* blocs\n+ Validations\n\n\n## Usage\n\n### Credit\n\n```javascript\nvar SepaXML = require('sepa-xml');\nvar credit = SepaXML.createCredit(); // takes a single argument which is the version, default is 'pain.001.001.03'\n\n// This sets the header data in the file\ncredit.setHeaderInfo({\n  id: '123/1',\n  method: 'TRF',\n  batchBooking: false\n});\n\n// Create payment batch\nvar payment = new credit.createPayment({\n  id: 'XYZ987',\n  method: 'TRF'\n});\n\n// Add transaction\npayment.addTransaction({\n  id: 'endToEndID',\n  iban: 'NL21ABNA0531621583',\n  name: 'generateiban',\n  amount: 42\n});\n\n// add payment to credit\ncredit.addPayment(payment);\n\ncredit.compile(function (err, out) {\n  // your XML data gets output here\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpierrickp%2Fsepa-xml-2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpierrickp%2Fsepa-xml-2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpierrickp%2Fsepa-xml-2/lists"}