perrich / sepawriter

Manage SEPA (Single Euro Payments Area) Credit and Debit Transfer for SEPA or international order.
Apache License 2.0
68 stars 48 forks source link

Allow multiple PaymentInformation #12

Open jdebarochez opened 8 years ago

jdebarochez commented 8 years ago

Hello,

Would it be possible to allow multiple payment informations? Each of them would have a list of transactions like we have at the moment directly in a SepaTransfer.

Thanks.

perrich commented 8 years ago

Hi,

Current version does not allow that. I've not planned to implement it. The reason is a really quick workaround: you can create multiple files.

xinix00 commented 2 years ago

Little late to the party, but I needed it also, creating it was rather simple.

I currently only added it to DebitTransfer(Transaction), because this was what I needed, if you like the idea, I can create a pull request (also for CreditTransfer). I've added RequestedExecutionDate to the Transaction itself, grouped by it creates a pmtInf for each "Transaction".

Hope you don't hate the use of System.Linq

perrich commented 2 years ago

Thanks for your proposal. Sorry for the delay. Maybe I'm wrong but I think, it's a breaking change if RequestedExecutionDate should be defined for each transaction. Instead, if it can be defined globally (as actually done) and possibly overriden in each transaction, it will be a very good enhancement!