-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathAggregationTransaction2.go
35 lines (26 loc) · 1.07 KB
/
AggregationTransaction2.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
package iso20022
// Payment transaction with an aggregated amount.
type AggregationTransaction2 struct {
// Date and time of the first payment.
FirstPaymentDateTime *ISODateTime `xml:"FrstPmtDtTm,omitempty"`
// Date and time of the last payment.
LastPaymentDateTime *ISODateTime `xml:"LastPmtDtTm,omitempty"`
// Total number of payments that has been aggregated.
NumberOfPayments *Number `xml:"NbOfPmts,omitempty"`
// Individual payment that has been aggregated.
IndividualPayment []*DetailedAmount14 `xml:"IndvPmt,omitempty"`
}
func (a *AggregationTransaction2) SetFirstPaymentDateTime(value string) {
a.FirstPaymentDateTime = (*ISODateTime)(&value)
}
func (a *AggregationTransaction2) SetLastPaymentDateTime(value string) {
a.LastPaymentDateTime = (*ISODateTime)(&value)
}
func (a *AggregationTransaction2) SetNumberOfPayments(value string) {
a.NumberOfPayments = (*Number)(&value)
}
func (a *AggregationTransaction2) AddIndividualPayment() *DetailedAmount14 {
newValue := new(DetailedAmount14)
a.IndividualPayment = append(a.IndividualPayment, newValue)
return newValue
}