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

Allow empty BIC for pain.001.001.03 credit transfers #65

Conversation

skateinmars
Copy link
Contributor

Hello,

The pain.001.001.03 format does not require the presence of a CdtrAgt block, so there is no need to make the BIC mandatory for transactions using this format.

I added a test that should cover the 3 credit transfer formats.

expect {
subject.to_xml(SEPA::PAIN_001_001_03)
}.to raise_error(RuntimeError)
end
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(this adds an unrelated test to cover the mandatory presence of the BIC for the debtor)

@coveralls
Copy link

coveralls commented Aug 18, 2017

Coverage Status

Coverage remained the same at 100.0% when pulling 2f52bbb on skateinmars:optional-pain.001.001.03-transaction-bic into b827e5c on salesking:master.

@ledermann ledermann merged commit 75b711a into salesking:master Aug 20, 2017
@ledermann
Copy link
Member

Thank you very much!

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

Successfully merging this pull request may close these issues.

3 participants