-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathAccountIdentification40.go
37 lines (28 loc) · 1.39 KB
/
AccountIdentification40.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package iso20022
// Account information and detailed account holdings information report for corporate action events.
type AccountIdentification40 struct {
// Account where financial instruments are maintained.
SafekeepingAccount *Max35Text `xml:"SfkpgAcct"`
// Party that legally owns the account.
AccountOwner *PartyIdentification92Choice `xml:"AcctOwnr,omitempty"`
// Location where the financial instruments are/will be safekept.
SafekeepingPlace *SafekeepingPlaceFormat8Choice `xml:"SfkpgPlc,omitempty"`
// Detailed account holdings information report for a corporate action event.
CorporateActionEventAndBalance []*CorporateActionEventAndBalance11 `xml:"CorpActnEvtAndBal,omitempty"`
}
func (a *AccountIdentification40) SetSafekeepingAccount(value string) {
a.SafekeepingAccount = (*Max35Text)(&value)
}
func (a *AccountIdentification40) AddAccountOwner() *PartyIdentification92Choice {
a.AccountOwner = new(PartyIdentification92Choice)
return a.AccountOwner
}
func (a *AccountIdentification40) AddSafekeepingPlace() *SafekeepingPlaceFormat8Choice {
a.SafekeepingPlace = new(SafekeepingPlaceFormat8Choice)
return a.SafekeepingPlace
}
func (a *AccountIdentification40) AddCorporateActionEventAndBalance() *CorporateActionEventAndBalance11 {
newValue := new(CorporateActionEventAndBalance11)
a.CorporateActionEventAndBalance = append(a.CorporateActionEventAndBalance, newValue)
return newValue
}