-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathAggregationTransaction1.go
35 lines (26 loc) · 1.07 KB
/
AggregationTransaction1.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 AggregationTransaction1 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 []*DetailedAmount6 `xml:"IndvPmt,omitempty"`
}
func (a *AggregationTransaction1) SetFirstPaymentDateTime(value string) {
a.FirstPaymentDateTime = (*ISODateTime)(&value)
}
func (a *AggregationTransaction1) SetLastPaymentDateTime(value string) {
a.LastPaymentDateTime = (*ISODateTime)(&value)
}
func (a *AggregationTransaction1) SetNumberOfPayments(value string) {
a.NumberOfPayments = (*Number)(&value)
}
func (a *AggregationTransaction1) AddIndividualPayment() *DetailedAmount6 {
newValue := new(DetailedAmount6)
a.IndividualPayment = append(a.IndividualPayment, newValue)
return newValue
}