-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathAccountInterest2.go
37 lines (28 loc) · 1.02 KB
/
AccountInterest2.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
// Set of elements used to provide details of the interest that applies to the account at a particular moment in time.
type AccountInterest2 struct {
// Specifies the type of interest.
Type *InterestType1Choice `xml:"Tp,omitempty"`
// Set of elements used to qualify the interest rate.
Rate []*Rate3 `xml:"Rate,omitempty"`
// Range of time between a start date and an end date for the calculation of the interest.
FromToDate *DateTimePeriodDetails `xml:"FrToDt,omitempty"`
// Specifies the reason for the interest.
Reason *Max35Text `xml:"Rsn,omitempty"`
}
func (a *AccountInterest2) AddType() *InterestType1Choice {
a.Type = new(InterestType1Choice)
return a.Type
}
func (a *AccountInterest2) AddRate() *Rate3 {
newValue := new(Rate3)
a.Rate = append(a.Rate, newValue)
return newValue
}
func (a *AccountInterest2) AddFromToDate() *DateTimePeriodDetails {
a.FromToDate = new(DateTimePeriodDetails)
return a.FromToDate
}
func (a *AccountInterest2) SetReason(value string) {
a.Reason = (*Max35Text)(&value)
}