JSPM

better-sepa

0.0.5
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • 0
    • Score
      100M100P100Q38599F
    • License ISC

    A TypeScript based SEPA XML Generator. Complying to ISO 20022 Standards. Should work with all Banks which support SEPA XML Upload.

    Package Exports

    • better-sepa
    • better-sepa/dist/index.js

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (better-sepa) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    WIP: better-sepa

    This package is a work in progress and is not yet ready for production use. Please use with caution.

    Description

    better-sepa is a package designed to improve the handling of SEPA (Single Euro Payments Area) transactions. It provides enhanced functionality and convenience for working with SEPA-related data.

    Installation

    To install better-sepa, simply run the following command:

    npm install better-sepa

    Usage

    To use better-sepa, import it into your project and start utilizing its features. Here's a simple example:

    // Sample Data
    const payment: CreditTransferPayment = {
      recipientIBAN: 'DE75512108001245126199',
      recipientBIC: 'DEUTDEFF',
      recipientName: 'Max Mustermann',
      reference: 'Test Reference',
      amount: 100,
    };
    
    const transferSample: CreditTransfer = {
      batchBooking: true,
      payments: [payment],
      initiatorBIC: 'DEUTDEFF',
      initiatorName: 'Max Mustermann',
      initiatorIBAN: 'DE75512108001245126199',
    };
    
    const [xmlSample, jsonSample] = new SEPA(
      SEPA_FORMATS['PAIN.001.001.03']
    ).generateDocument(transferSample);
    
    console.log(jsonSample);
    
    // Your code here...

    License

    This project is licensed under the MIT License.