-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathAccountStatus2.go
70 lines (53 loc) · 2.18 KB
/
AccountStatus2.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
package iso20022
// Status of an account.
type AccountStatus2 struct {
// Account can be used for its intended purpose.
Enabled *EnabledStatusReason1Choice `xml:"Nbld,omitempty"`
// Account cannot temporarily be used for its intended purpose.
Disabled *DisabledStatusReason1Choice `xml:"Dsbld,omitempty"`
// Account change is pending approval.
Pending *PendingStatusReason1Choice `xml:"Pdg,omitempty"`
// Account opening is pending.
PendingOpening *PendingOpeningStatusReason1Choice `xml:"PdgOpng,omitempty"`
// Account is temporary and can be partially used for its intended purpose. The account will be fully available for use when the account servicer has received all relevant documents.
Proforma *ProformaStatusReason1Choice `xml:"Profrm,omitempty"`
// Account is closed.
Closed *ClosedStatusReason1Choice `xml:"Clsd,omitempty"`
// Account closure is pending.
ClosurePending *ClosurePendingStatusReason1Choice `xml:"ClsrPdg,omitempty"`
// Status is a bilaterally agreed status.
Other []*OtherAccountStatus1 `xml:"Othr,omitempty"`
}
func (a *AccountStatus2) AddEnabled() *EnabledStatusReason1Choice {
a.Enabled = new(EnabledStatusReason1Choice)
return a.Enabled
}
func (a *AccountStatus2) AddDisabled() *DisabledStatusReason1Choice {
a.Disabled = new(DisabledStatusReason1Choice)
return a.Disabled
}
func (a *AccountStatus2) AddPending() *PendingStatusReason1Choice {
a.Pending = new(PendingStatusReason1Choice)
return a.Pending
}
func (a *AccountStatus2) AddPendingOpening() *PendingOpeningStatusReason1Choice {
a.PendingOpening = new(PendingOpeningStatusReason1Choice)
return a.PendingOpening
}
func (a *AccountStatus2) AddProforma() *ProformaStatusReason1Choice {
a.Proforma = new(ProformaStatusReason1Choice)
return a.Proforma
}
func (a *AccountStatus2) AddClosed() *ClosedStatusReason1Choice {
a.Closed = new(ClosedStatusReason1Choice)
return a.Closed
}
func (a *AccountStatus2) AddClosurePending() *ClosurePendingStatusReason1Choice {
a.ClosurePending = new(ClosurePendingStatusReason1Choice)
return a.ClosurePending
}
func (a *AccountStatus2) AddOther() *OtherAccountStatus1 {
newValue := new(OtherAccountStatus1)
a.Other = append(a.Other, newValue)
return newValue
}