-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathAccountNotification6.go
91 lines (68 loc) · 3.29 KB
/
AccountNotification6.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
package iso20022
// Provides details on the account notification.
type AccountNotification6 struct {
// Unique identification, as assigned by the account owner, to unambiguously identify the account notification.
Identification *Max35Text `xml:"Id"`
// Identifies the account to be credited with the incoming amount of money.
Account *CashAccount24 `xml:"Acct,omitempty"`
// Party that legally owns the account.
AccountOwner *Party12Choice `xml:"AcctOwnr,omitempty"`
// Party that manages the account on behalf of the account owner, that is manages the registration and booking of entries on the account, calculates balances on the account and provides information about the account.
AccountServicer *BranchAndFinancialInstitutionIdentification5 `xml:"AcctSvcr,omitempty"`
// Identifies the parent account of the account to be credited with the incoming amount of money.
RelatedAccount *CashAccount24 `xml:"RltdAcct,omitempty"`
// Sum of the amounts in all the Item entries.
TotalAmount *ActiveOrHistoricCurrencyAndAmount `xml:"TtlAmt,omitempty"`
// Date on which the first agent expects the cash to be available to the final agent.
ExpectedValueDate *ISODate `xml:"XpctdValDt,omitempty"`
// Party that owes an amount of money to the (ultimate) creditor.
Debtor *Party12Choice `xml:"Dbtr,omitempty"`
// Financial institution servicing an account for the debtor.
DebtorAgent *BranchAndFinancialInstitutionIdentification5 `xml:"DbtrAgt,omitempty"`
// Agent between the debtor's agent and the creditor's agent.
IntermediaryAgent *BranchAndFinancialInstitutionIdentification5 `xml:"IntrmyAgt,omitempty"`
// Provides details of the expected amount on the account serviced by the account servicer.
Item []*NotificationItem4 `xml:"Itm"`
}
func (a *AccountNotification6) SetIdentification(value string) {
a.Identification = (*Max35Text)(&value)
}
func (a *AccountNotification6) AddAccount() *CashAccount24 {
a.Account = new(CashAccount24)
return a.Account
}
func (a *AccountNotification6) AddAccountOwner() *Party12Choice {
a.AccountOwner = new(Party12Choice)
return a.AccountOwner
}
func (a *AccountNotification6) AddAccountServicer() *BranchAndFinancialInstitutionIdentification5 {
a.AccountServicer = new(BranchAndFinancialInstitutionIdentification5)
return a.AccountServicer
}
func (a *AccountNotification6) AddRelatedAccount() *CashAccount24 {
a.RelatedAccount = new(CashAccount24)
return a.RelatedAccount
}
func (a *AccountNotification6) SetTotalAmount(value, currency string) {
a.TotalAmount = NewActiveOrHistoricCurrencyAndAmount(value, currency)
}
func (a *AccountNotification6) SetExpectedValueDate(value string) {
a.ExpectedValueDate = (*ISODate)(&value)
}
func (a *AccountNotification6) AddDebtor() *Party12Choice {
a.Debtor = new(Party12Choice)
return a.Debtor
}
func (a *AccountNotification6) AddDebtorAgent() *BranchAndFinancialInstitutionIdentification5 {
a.DebtorAgent = new(BranchAndFinancialInstitutionIdentification5)
return a.DebtorAgent
}
func (a *AccountNotification6) AddIntermediaryAgent() *BranchAndFinancialInstitutionIdentification5 {
a.IntermediaryAgent = new(BranchAndFinancialInstitutionIdentification5)
return a.IntermediaryAgent
}
func (a *AccountNotification6) AddItem() *NotificationItem4 {
newValue := new(NotificationItem4)
a.Item = append(a.Item, newValue)
return newValue
}