-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathAggregateBalanceInformation25.go
169 lines (128 loc) · 7.23 KB
/
AggregateBalanceInformation25.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
package iso20022
// Overall position, in a single security, held in a securities account at a specified place of safekeeping.
type AggregateBalanceInformation25 struct {
// Financial instruments representing a sum of rights of the investor vis-a-vis the issuer.
FinancialInstrumentIdentification *SecurityIdentification14 `xml:"FinInstrmId"`
// Elements characterising a financial instrument other than a investment funds.
FinancialInstrumentAttributes *FinancialInstrumentAttributes35 `xml:"FinInstrmAttrbts,omitempty"`
// Elements characterising an investment funds financial instrument.
InvestmentFundsFinancialInstrumentAttributes *FinancialInstrument21 `xml:"InvstmtFndsFinInstrmAttrbts,omitempty"`
// Elements used to calculate the valuation haircut.
ValuationHaircutDetails *BasicCollateralValuation1Details `xml:"ValtnHrcutDtls,omitempty"`
// Total quantity of financial instruments of the balance.
AggregateBalance *Balance1 `xml:"AggtBal"`
// Total quantity of financial instruments of the balance that is available.
AvailableBalance *BalanceQuantity5Choice `xml:"AvlblBal,omitempty"`
// Total quantity of financial instruments of the balance that is not available.
NotAvailableBalance *BalanceQuantity5Choice `xml:"NotAvlblBal,omitempty"`
// Place where the securities are safe-kept, physically or notionally. This place can be, for example, a local custodian, a Central Securities Depository (CSD) or an International Central Securities Depository (ICSD).
SafekeepingPlace *SafekeepingPlaceFormat3Choice `xml:"SfkpgPlc,omitempty"`
// Specifies the corporate action options available to the account owner.
CorporateActionOptionType *CorporateActionOption5Code `xml:"CorpActnOptnTp,omitempty"`
// Price of the financial instrument in one or more currencies.
PriceDetails []*PriceInformation5 `xml:"PricDtls,omitempty"`
// Information needed to process a currency exchange or conversion.
ForeignExchangeDetails []*ForeignExchangeTerms14 `xml:"FXDtls,omitempty"`
// Specifies the number of days used for calculating the accrued interest amount.
DaysAccrued *Number `xml:"DaysAcrd,omitempty"`
// Valuation amounts provided in the base currency of the account.
AccountBaseCurrencyAmounts *BalanceAmounts3 `xml:"AcctBaseCcyAmts,omitempty"`
// Valuation amounts provided in the currency of the financial instrument.
InstrumentCurrencyAmounts *BalanceAmounts3 `xml:"InstrmCcyAmts,omitempty"`
// Breakdown of the aggregate quantity reported into significant lots, for example, tax lots.
QuantityBreakdown []*QuantityBreakdown23 `xml:"QtyBrkdwn,omitempty"`
// Breakdown of the aggregate balance per meaningful sub-balances and availability.
BalanceBreakdown []*SubBalanceInformation11 `xml:"BalBrkdwn,omitempty"`
// Provides additional instrument sub-balance information on all or parts of the reported financial instrument (unregistered, tax exempt, etc.).
AdditionalBalanceBreakdown []*AdditionalBalanceInformation11 `xml:"AddtlBalBrkdwn,omitempty"`
// Breakdown of positions per place of safekeeping (and optionally per place of listing).
BalanceAtSafekeepingPlace []*AggregateBalancePerSafekeepingPlace24 `xml:"BalAtSfkpgPlc,omitempty"`
// Provides additional information on the holding.
HoldingAdditionalDetails *Max350Text `xml:"HldgAddtlDtls,omitempty"`
// Additional information that cannot be captured in the structured elements and/or any other specific block.
SupplementaryData []*SupplementaryData1 `xml:"SplmtryData,omitempty"`
}
func (a *AggregateBalanceInformation25) AddFinancialInstrumentIdentification() *SecurityIdentification14 {
a.FinancialInstrumentIdentification = new(SecurityIdentification14)
return a.FinancialInstrumentIdentification
}
func (a *AggregateBalanceInformation25) AddFinancialInstrumentAttributes() *FinancialInstrumentAttributes35 {
a.FinancialInstrumentAttributes = new(FinancialInstrumentAttributes35)
return a.FinancialInstrumentAttributes
}
func (a *AggregateBalanceInformation25) AddInvestmentFundsFinancialInstrumentAttributes() *FinancialInstrument21 {
a.InvestmentFundsFinancialInstrumentAttributes = new(FinancialInstrument21)
return a.InvestmentFundsFinancialInstrumentAttributes
}
func (a *AggregateBalanceInformation25) AddValuationHaircutDetails() *BasicCollateralValuation1Details {
a.ValuationHaircutDetails = new(BasicCollateralValuation1Details)
return a.ValuationHaircutDetails
}
func (a *AggregateBalanceInformation25) AddAggregateBalance() *Balance1 {
a.AggregateBalance = new(Balance1)
return a.AggregateBalance
}
func (a *AggregateBalanceInformation25) AddAvailableBalance() *BalanceQuantity5Choice {
a.AvailableBalance = new(BalanceQuantity5Choice)
return a.AvailableBalance
}
func (a *AggregateBalanceInformation25) AddNotAvailableBalance() *BalanceQuantity5Choice {
a.NotAvailableBalance = new(BalanceQuantity5Choice)
return a.NotAvailableBalance
}
func (a *AggregateBalanceInformation25) AddSafekeepingPlace() *SafekeepingPlaceFormat3Choice {
a.SafekeepingPlace = new(SafekeepingPlaceFormat3Choice)
return a.SafekeepingPlace
}
func (a *AggregateBalanceInformation25) SetCorporateActionOptionType(value string) {
a.CorporateActionOptionType = (*CorporateActionOption5Code)(&value)
}
func (a *AggregateBalanceInformation25) AddPriceDetails() *PriceInformation5 {
newValue := new(PriceInformation5)
a.PriceDetails = append(a.PriceDetails, newValue)
return newValue
}
func (a *AggregateBalanceInformation25) AddForeignExchangeDetails() *ForeignExchangeTerms14 {
newValue := new(ForeignExchangeTerms14)
a.ForeignExchangeDetails = append(a.ForeignExchangeDetails, newValue)
return newValue
}
func (a *AggregateBalanceInformation25) SetDaysAccrued(value string) {
a.DaysAccrued = (*Number)(&value)
}
func (a *AggregateBalanceInformation25) AddAccountBaseCurrencyAmounts() *BalanceAmounts3 {
a.AccountBaseCurrencyAmounts = new(BalanceAmounts3)
return a.AccountBaseCurrencyAmounts
}
func (a *AggregateBalanceInformation25) AddInstrumentCurrencyAmounts() *BalanceAmounts3 {
a.InstrumentCurrencyAmounts = new(BalanceAmounts3)
return a.InstrumentCurrencyAmounts
}
func (a *AggregateBalanceInformation25) AddQuantityBreakdown() *QuantityBreakdown23 {
newValue := new(QuantityBreakdown23)
a.QuantityBreakdown = append(a.QuantityBreakdown, newValue)
return newValue
}
func (a *AggregateBalanceInformation25) AddBalanceBreakdown() *SubBalanceInformation11 {
newValue := new(SubBalanceInformation11)
a.BalanceBreakdown = append(a.BalanceBreakdown, newValue)
return newValue
}
func (a *AggregateBalanceInformation25) AddAdditionalBalanceBreakdown() *AdditionalBalanceInformation11 {
newValue := new(AdditionalBalanceInformation11)
a.AdditionalBalanceBreakdown = append(a.AdditionalBalanceBreakdown, newValue)
return newValue
}
func (a *AggregateBalanceInformation25) AddBalanceAtSafekeepingPlace() *AggregateBalancePerSafekeepingPlace24 {
newValue := new(AggregateBalancePerSafekeepingPlace24)
a.BalanceAtSafekeepingPlace = append(a.BalanceAtSafekeepingPlace, newValue)
return newValue
}
func (a *AggregateBalanceInformation25) SetHoldingAdditionalDetails(value string) {
a.HoldingAdditionalDetails = (*Max350Text)(&value)
}
func (a *AggregateBalanceInformation25) AddSupplementaryData() *SupplementaryData1 {
newValue := new(SupplementaryData1)
a.SupplementaryData = append(a.SupplementaryData, newValue)
return newValue
}