Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

OpenKnowledgeHub/jSEPA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

44 Commits

Repository files navigation

jSEPA

A java library to create valid PAIN.008.001.11 SEPA direct debit and PAIN.001.001.12 SEPA transfer XML documents.

Strings are sanitized according to SEPA rules.

Usage

Creation of pain.008.001.11 direct debit xml documents

To create a direct debit initialisation XML document you simple start at the DSL.directDebit() point and the DSL will guide you through the steps:

public String generateXml() {
 DSL.directDebit("MessageId")
 .creditor(
 DSL.account()
 .name("Creditor Name")
 .identification("Creditor Identification")
 .bic("BYLADEM1001")
 .iban("DE02120300000000202051"))
 .receive(550)
 .from(
 DSL.account()
 .name("Debitor Name")
 .identification("Debitor Identification")
 .bic("BYLADEM1001")
 .iban("DE02120300000000203051"))
 .on(LocalDate.now().plusWeeks(1))
 .withPaymentIdentification("PaymentIdentification")
 .overMandate(DSL.oneTimeMandate("Mandate Identifier").issuedAt(LocalDate.now()))
 .toXml();
}

Creation of pain.001.001.12 bank transfer xml documents

Creating bank transfer XML document works as simple as the direct debit ones. This time start at the DSL.transfer() entry point and the DSL will guide you through the steps:

public String generateXml() {
 DSL.transfer("MessageId")
 .from(
 DSL.account()
 .name("Payer Name")
 .identification("Payer Identification")
 .bic("BYLADEM1001")
 .iban("DE02120300000000202051"))
 .on(LocalDateTime.now().plusWeeks(1))
 .to(
 DSL.account()
 .name("Payee Name")
 .identification("Payee Identification")
 .bic("BYLADEM1001")
 .iban("DE02120300000000203051"))
 .amount(125)
 .withEndToEndIdentifier("End to end identification")
 .toXml();
}

Compiling

Just checkout the repository and run mvn clean install. A .jar file will be created in the target/ directory.

Credits

This library was originally written by Robert Becker and is now maintained by Jelmen Guhlke .

About

A java library to create valid SEPA direct debit and SEPA bank transfer XML documents

Resources

License

Stars

Watchers

Forks

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /