-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathAccountNotification2.go
107 lines (80 loc) · 3.91 KB
/
AccountNotification2.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
package iso20022
// Set of elements used to provide details of the account notification.
type AccountNotification2 struct {
// Unique identification, as assigned by the account servicer, to unambiguously identify the account notification.
Identification *Max35Text `xml:"Id"`
// Sequential number of the notification, as assigned by the account servicer.
// Usage: The sequential number is increased incrementally for each notification sent electronically.
ElectronicSequenceNumber *Number `xml:"ElctrncSeqNb,omitempty"`
// Legal sequential number of the notification, as assigned by the account servicer. It is increased incrementally for each notification sent.
LegalSequenceNumber *Number `xml:"LglSeqNb,omitempty"`
// Date and time at which the message was created.
CreationDateTime *ISODateTime `xml:"CreDtTm"`
// Range of time between a start date and an end date for which the account notification is issued.
FromToDate *DateTimePeriodDetails `xml:"FrToDt,omitempty"`
// Indicates whether the document is a copy, a duplicate, or a duplicate of a copy.
CopyDuplicateIndicator *CopyDuplicate1Code `xml:"CpyDplctInd,omitempty"`
// Specifies the application used to generate the reporting.
ReportingSource *ReportingSource1Choice `xml:"RptgSrc,omitempty"`
// Unambiguous identification of the account to which credit and debit entries are made.
Account *CashAccount20 `xml:"Acct"`
// Identifies the parent account of the account for which the notification has been issued.
RelatedAccount *CashAccount16 `xml:"RltdAcct,omitempty"`
// Set of elements used to provide general interest information that applies to the account at a particular moment in time.
Interest []*AccountInterest2 `xml:"Intrst,omitempty"`
// Set of elements used to provide summary information on entries.
TransactionsSummary *TotalTransactions2 `xml:"TxsSummry,omitempty"`
// Set of elements used to specify an entry in the debit credit notification.
// Usage: At least one reference must be provided to identify the entry and its underlying transaction(s).
Entry []*ReportEntry2 `xml:"Ntry,omitempty"`
// Further details of the account notification.
AdditionalNotificationInformation *Max500Text `xml:"AddtlNtfctnInf,omitempty"`
}
func (a *AccountNotification2) SetIdentification(value string) {
a.Identification = (*Max35Text)(&value)
}
func (a *AccountNotification2) SetElectronicSequenceNumber(value string) {
a.ElectronicSequenceNumber = (*Number)(&value)
}
func (a *AccountNotification2) SetLegalSequenceNumber(value string) {
a.LegalSequenceNumber = (*Number)(&value)
}
func (a *AccountNotification2) SetCreationDateTime(value string) {
a.CreationDateTime = (*ISODateTime)(&value)
}
func (a *AccountNotification2) AddFromToDate() *DateTimePeriodDetails {
a.FromToDate = new(DateTimePeriodDetails)
return a.FromToDate
}
func (a *AccountNotification2) SetCopyDuplicateIndicator(value string) {
a.CopyDuplicateIndicator = (*CopyDuplicate1Code)(&value)
}
func (a *AccountNotification2) AddReportingSource() *ReportingSource1Choice {
a.ReportingSource = new(ReportingSource1Choice)
return a.ReportingSource
}
func (a *AccountNotification2) AddAccount() *CashAccount20 {
a.Account = new(CashAccount20)
return a.Account
}
func (a *AccountNotification2) AddRelatedAccount() *CashAccount16 {
a.RelatedAccount = new(CashAccount16)
return a.RelatedAccount
}
func (a *AccountNotification2) AddInterest() *AccountInterest2 {
newValue := new(AccountInterest2)
a.Interest = append(a.Interest, newValue)
return newValue
}
func (a *AccountNotification2) AddTransactionsSummary() *TotalTransactions2 {
a.TransactionsSummary = new(TotalTransactions2)
return a.TransactionsSummary
}
func (a *AccountNotification2) AddEntry() *ReportEntry2 {
newValue := new(ReportEntry2)
a.Entry = append(a.Entry, newValue)
return newValue
}
func (a *AccountNotification2) SetAdditionalNotificationInformation(value string) {
a.AdditionalNotificationInformation = (*Max500Text)(&value)
}