Browse Source

Use correct XMLNS, truncate mandateId if they're longer than 35 characters

master
Gerdriaan Mulder 6 years ago
parent
commit
4566e2fe3e
  1. 2
      pain/pain.go
  2. 4
      pain/payment_information_transactions.go

2
pain/pain.go

@ -6,7 +6,7 @@ import (
)
const (
PAIN_XMLNS = "urn:iso:std:iso:20022:tech:xsd:pain.008.002.02"
PAIN_XMLNS = "urn:iso:std:iso:20022:tech:xsd:pain.008.001.02"
PAIN_XMLNS_XSI = "http://www.w3.org/2001/XMLSchema-instance"
)

4
pain/payment_information_transactions.go

@ -117,7 +117,11 @@ type MndtRltdInf struct {
//ElctrncSgntr is optional
}
// NewMandateInfo truncates id to 35 characters
func NewMandateInfo(id, signatureDate string) MndtRltdInf {
if len(id) > 35 {
id = id[0:35]
}
return MndtRltdInf{
Id: id,
SignatureDate: signatureDate,

Loading…
Cancel
Save