-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathAccountingStatementOfHoldings1.go
64 lines (49 loc) · 2.31 KB
/
AccountingStatementOfHoldings1.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
package iso20022
// Information about an accounting statement of holdings.
type AccountingStatementOfHoldings1 struct {
// Pagination of the message.
MessagePagination *Pagination `xml:"MsgPgntn"`
// General information related to the custody statement of holdings that is being cancelled.
StatementGeneralDetails *Statement4 `xml:"StmtGnlDtls,omitempty"`
// The safekeeping or investment account of the statement that is being cancelled.
AccountDetails *SafekeepingAccount1 `xml:"AcctDtls,omitempty"`
// Net position of a segregated holding, in a single security, within the overall position held in a securities account.
BalanceForAccount []*AggregateBalanceInformation2 `xml:"BalForAcct,omitempty"`
// The sub-account of the safekeeping or investment account.
SubAccountDetails []*SubAccountIdentification2 `xml:"SubAcctDtls,omitempty"`
// Value of total holdings reported.
TotalValues *TotalValueInPageAndStatement `xml:"TtlVals,omitempty"`
// Additional information that cannot be captured in the structured elements and/or any other specific block.
Extension []*Extension1 `xml:"Xtnsn,omitempty"`
}
func (a *AccountingStatementOfHoldings1) AddMessagePagination() *Pagination {
a.MessagePagination = new(Pagination)
return a.MessagePagination
}
func (a *AccountingStatementOfHoldings1) AddStatementGeneralDetails() *Statement4 {
a.StatementGeneralDetails = new(Statement4)
return a.StatementGeneralDetails
}
func (a *AccountingStatementOfHoldings1) AddAccountDetails() *SafekeepingAccount1 {
a.AccountDetails = new(SafekeepingAccount1)
return a.AccountDetails
}
func (a *AccountingStatementOfHoldings1) AddBalanceForAccount() *AggregateBalanceInformation2 {
newValue := new(AggregateBalanceInformation2)
a.BalanceForAccount = append(a.BalanceForAccount, newValue)
return newValue
}
func (a *AccountingStatementOfHoldings1) AddSubAccountDetails() *SubAccountIdentification2 {
newValue := new(SubAccountIdentification2)
a.SubAccountDetails = append(a.SubAccountDetails, newValue)
return newValue
}
func (a *AccountingStatementOfHoldings1) AddTotalValues() *TotalValueInPageAndStatement {
a.TotalValues = new(TotalValueInPageAndStatement)
return a.TotalValues
}
func (a *AccountingStatementOfHoldings1) AddExtension() *Extension1 {
newValue := new(Extension1)
a.Extension = append(a.Extension, newValue)
return newValue
}