|
|
|
@ -37,7 +37,6 @@ func (d *Document) Valid() error { |
|
|
|
type PainXML struct { |
|
|
|
GroupHeader *GrpHdr `xml:"GrpHdr"` |
|
|
|
PaymentInformation []PmtInf `xml:"PmtInf"` |
|
|
|
TransactionInformation []TxInf `xml:"DrctDbtTxInf"` |
|
|
|
} |
|
|
|
|
|
|
|
func (p *PainXML) Valid() error { |
|
|
|
@ -48,9 +47,6 @@ func (p *PainXML) Valid() error { |
|
|
|
if len(p.PaymentInformation) < 1 { |
|
|
|
err = append(err, "no payment information") |
|
|
|
} |
|
|
|
if len(p.TransactionInformation) < 1 { |
|
|
|
err = append(err, "no transaction information") |
|
|
|
} |
|
|
|
|
|
|
|
if len(err) > 0 { |
|
|
|
return fmt.Errorf("pain XML not valid: %v", strings.Join(err, ", ")) |
|
|
|
@ -105,10 +101,6 @@ func (meta *PmtTpInf) Valid() error { |
|
|
|
return nil |
|
|
|
} |
|
|
|
|
|
|
|
type TxInf struct { |
|
|
|
// TODO
|
|
|
|
} |
|
|
|
|
|
|
|
type PartySEPA2 struct { |
|
|
|
PrivateId PersonIdSEPA2 `xml:"PrvtId"` |
|
|
|
} |
|
|
|
|