Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Creditor ¶
type Creditor struct { Name string `xml:"Cdtr>Nm"` PostalAddress PostalAddress `xml:"Cdtr>PstlAdr,omitempty"` IBAN string `xml:"CdtrAcct>Id>IBAN"` BIC string `xml:"CdtrAgt>FinInstnId>BIC"` ChargeBearer string `xml:"ChrgBr"` ID string `xml:"CdtrSchmeId>Id>PrvtId>Othr>Id"` SchemeName string `xml:"CdtrSchmeId>Id>PrvtId>Othr>SchmeNm>Prtry"` }
func NewCreditor ¶
func NewCreditor() *Creditor
type Date ¶
func (Date) MarshalXML ¶
type Document ¶
type Document struct { XMLName xml.Name `xml:"Document"` XMLNs string `xml:"xmlns,attr"` XMLxsi string `xml:"xmlns:xsi,attr"` MsgID string `xml:"CstmrDrctDbtInitn>GrpHdr>MsgId"` CreationDateTime string `xml:"CstmrDrctDbtInitn>GrpHdr>CreDtTm"` TransacNb int `xml:"CstmrDrctDbtInitn>GrpHdr>NbOfTxs"` CtrlSum string `xml:"CstmrDrctDbtInitn>GrpHdr>CtrlSum"` InitiatingParty InitiatingParty `xml:"CstmrDrctDbtInitn>GrpHdr>InitgPty"` Payments []*Payment `xml:"CstmrDrctDbtInitn>PmtInf"` }
Document is the SEPA format for the document containing all transfers
func NewDocument ¶
func NewDocument() *Document
func (*Document) AddPayment ¶
func (*Document) SetCreationDateTime ¶
func (*Document) SetInitiatingParty ¶
func (*Document) WriteBytes ¶
WriteBytes returns XML Serialized document in byte stream
type InitiatingParty ¶
type InitiatingParty struct { Name string `xml:"Nm"` ID string `xml:"Id>OrgId>Othr>Id"` Scheme string `xml:"Id>OrgId>Othr>SchmeNm>Prtry"` }
InitiatingParty is the Initiating Party
type Payment ¶
type Payment struct { ID string `xml:"PmtInfId"` Method string `xml:"PmtMtd"` TransacNb int `xml:"NbOfTxs"` CtrlSum string `xml:"CtrlSum"` ServiceLevel string `xml:"PmtTpInf>SvcLvl>Cd"` LocalInstrument string `xml:"PmtTpInf>LclInstrm>Cd"` SequenceType string `xml:"PmtTpInf>SeqTp"` RequestedCollectionDate string `xml:"ReqdColltnDt"` *Creditor Transactions []Transaction `xml:"DrctDbtTxInf"` }
func NewPayment ¶
func NewPayment() *Payment
type PostalAddress ¶
Click to show internal directories.
Click to hide internal directories.