Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Container message support #118

Open
tobischo opened this issue May 26, 2024 · 0 comments
Open

Container message support #118

tobischo opened this issue May 26, 2024 · 0 comments

Comments

@tobischo
Copy link
Contributor

sepa_king supports different versions for pain.001 and pain.008, which is amazing when using EBICS directly through e.g. CCT, CDB and CDD

When using EBICS in a service data center context it requires the use of containers (as specified in the attachment 3 of the file format specification of EBICS).

Would you be open to support the container formats as well? I will have that use case in the near future and would love to have that support open sourced and available for others to use where needed.

API wise I was thinking of something along the lines of:

container = SEPA::Container.new(
  # whichever meta info should be added
)

container.add_message(sdd1)
container.add_message(sdd2)
container.add_message(sdd3)

# picks the pain message format fitting to the container version
# and ensures that all passed messages are of the same type
xml_string = container.to_xml
xml_string = container.to_xml("<specific format/version>")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant