Fixed that even though by SEPA standard it's allowed to leave usage empty, some banks only accept non-empty usages
This commit is contained in:
parent
8bc3f0fe8e
commit
f89e2855d2
|
@ -33,7 +33,7 @@ open class SepaBankTransferBase(
|
||||||
"CreditorIban" to data.creditorIban.replace(" ", ""),
|
"CreditorIban" to data.creditorIban.replace(" ", ""),
|
||||||
"CreditorBic" to data.creditorBic.replace(" ", ""),
|
"CreditorBic" to data.creditorBic.replace(" ", ""),
|
||||||
"Amount" to data.amount.toString(), // TODO: check if ',' or '.' should be used as decimal separator
|
"Amount" to data.amount.toString(), // TODO: check if ',' or '.' should be used as decimal separator
|
||||||
"Usage" to messageCreator.convertToAllowedCharacters(data.usage),
|
"Usage" to if (data.usage.isEmpty()) " " else messageCreator.convertToAllowedCharacters(data.usage),
|
||||||
"RequestedExecutionDate" to RequestedExecutionDateValueForNotScheduledTransfers
|
"RequestedExecutionDate" to RequestedExecutionDateValueForNotScheduledTransfers
|
||||||
),
|
),
|
||||||
messageCreator
|
messageCreator
|
||||||
|
|
Loading…
Reference in New Issue