// 1. Import
import { ISO20022 } from 'iso20022.js'
// 2. Instantiate the sender
const iso20022 = new ISO20022(initiatingPartyInfo);
// 3. Send
iso20022.createSWIFTCreditPaymentInitiation(paymentInstructions);I will admit I'm usually very skeptical about "Do X in Y line" claims because usually you can do anything in one line by shoving the entire codebase behind a "DoIt()" call. But I'll actually give them this one. I'm not even worried about the data taking up so many lines as clearly the data is necessary. If they were full of mandatory function calls or something I'd ding 'em too, but they're not, it's just the data you need.
The bigger question of course is what do you end up with. Clearly that method call isn't going to actually send an instruction to your bank to debit your account and credit somebody else's. I guess `creditPaymentInitiation` is an object that has can be converted to a properly formatted message that can then be sent to your bank using an external tool?
> import { ISO20022 } from 'iso20022.js'
> const iso20022 = new ISO20022({ /.../ });
> const creditPaymentInitiation = iso20022.createSWIFTCreditPaymentInitiation({ /.../});
> console.log(creditPaymentInitiation.toString());
Now are we counting the import and not counting the log statement, or are we counting the log statement and not the import?
I'm not too worried about it.