@@ -17,70 +17,70 @@ import (
17
17
}*/
18
18
19
19
func mockFEDWireMessage () wire.FEDWireMessage {
20
- fwm := wire .NewFEDWireMessage ()
20
+ fwm := wire.FEDWireMessage {}
21
21
fwm .ID = "12345"
22
22
23
23
// Mandatory Fields
24
24
ss := wire .NewSenderSupplied ()
25
25
ss .UserRequestCorrelation = "User Req"
26
26
ss .MessageDuplicationCode = wire .MessageDuplicationOriginal
27
- fwm .SetSenderSupplied ( ss )
27
+ fwm .SenderSupplied = ss
28
28
29
29
tst := wire .NewTypeSubType ()
30
30
tst .TypeCode = wire .FundsTransfer
31
31
tst .SubTypeCode = wire .BasicFundsTransfer
32
- fwm .SetTypeSubType ( tst )
32
+ fwm .TypeSubType = tst
33
33
34
34
imad := wire .NewInputMessageAccountabilityData ()
35
35
imad .InputCycleDate = time .Now ().Format ("20060102" )
36
36
imad .InputSource = "Source08"
37
37
imad .InputSequenceNumber = "000001"
38
- fwm .SetInputMessageAccountabilityData ( imad )
38
+ fwm .InputMessageAccountabilityData = imad
39
39
40
40
amt := wire .NewAmount ()
41
41
amt .Amount = "000001234567"
42
- fwm .SetAmount ( amt )
42
+ fwm .Amount = amt
43
43
44
44
sdi := wire .NewSenderDepositoryInstitution ()
45
45
sdi .SenderABANumber = "121042882"
46
46
sdi .SenderShortName = "Wells Fargo NA"
47
- fwm .SetSenderDepositoryInstitution ( sdi )
47
+ fwm .SenderDepositoryInstitution = sdi
48
48
49
49
rdi := wire .NewReceiverDepositoryInstitution ()
50
50
rdi .ReceiverABANumber = "231380104"
51
51
rdi .ReceiverShortName = "Citadel"
52
- fwm .SetReceiverDepositoryInstitution ( rdi )
52
+ fwm .ReceiverDepositoryInstitution = rdi
53
53
54
54
bfc := wire .NewBusinessFunctionCode ()
55
55
bfc .BusinessFunctionCode = wire .CustomerTransfer
56
56
bfc .TransactionTypeCode = " "
57
- fwm .SetBusinessFunctionCode ( bfc )
57
+ fwm .BusinessFunctionCode = bfc
58
58
59
59
// Other Transfer Information
60
60
sr := wire .NewSenderReference ()
61
61
sr .SenderReference = "Sender Reference"
62
- fwm .SetSenderReference ( sr )
62
+ fwm .SenderReference = sr
63
63
64
64
pmi := wire .NewPreviousMessageIdentifier ()
65
65
pmi .PreviousMessageIdentifier = "Previous Message Ident"
66
- fwm .SetPreviousMessageIdentifier ( pmi )
66
+ fwm .PreviousMessageIdentifier = pmi
67
67
68
68
c := wire .NewCharges ()
69
69
c .ChargeDetails = "B"
70
70
c .SendersChargesOne = "USD0,99"
71
71
c .SendersChargesTwo = "USD2,99"
72
72
c .SendersChargesThree = "USD3,99"
73
73
c .SendersChargesFour = "USD1,00"
74
- fwm .SetCharges ( c )
74
+ fwm .Charges = c
75
75
76
76
ia := wire .NewInstructedAmount ()
77
77
ia .CurrencyCode = "USD"
78
78
ia .Amount = "4567,89"
79
- fwm .SetInstructedAmount ( ia )
79
+ fwm .InstructedAmount = ia
80
80
81
81
eRate := wire .NewExchangeRate ()
82
82
eRate .ExchangeRate = "1,2345"
83
- fwm .SetExchangeRate ( eRate )
83
+ fwm .ExchangeRate = eRate
84
84
85
85
// Beneficiary
86
86
bifi := wire .NewBeneficiaryIntermediaryFI ()
@@ -90,7 +90,7 @@ func mockFEDWireMessage() wire.FEDWireMessage {
90
90
bifi .FinancialInstitution .Address .AddressLineOne = "Address One"
91
91
bifi .FinancialInstitution .Address .AddressLineTwo = "Address Two"
92
92
bifi .FinancialInstitution .Address .AddressLineThree = "Address Three"
93
- fwm .SetBeneficiaryIntermediaryFI ( bifi )
93
+ fwm .BeneficiaryIntermediaryFI = bifi
94
94
95
95
bfi := wire .NewBeneficiaryFI ()
96
96
bfi .FinancialInstitution .IdentificationCode = wire .DemandDepositAccountNumber
@@ -99,7 +99,7 @@ func mockFEDWireMessage() wire.FEDWireMessage {
99
99
bfi .FinancialInstitution .Address .AddressLineOne = "Address One"
100
100
bfi .FinancialInstitution .Address .AddressLineTwo = "Address Two"
101
101
bfi .FinancialInstitution .Address .AddressLineThree = "Address Three"
102
- fwm .SetBeneficiaryFI ( bfi )
102
+ fwm .BeneficiaryFI = bfi
103
103
104
104
ben := wire .NewBeneficiary ()
105
105
ben .Personal .IdentificationCode = wire .DriversLicenseNumber
@@ -108,11 +108,11 @@ func mockFEDWireMessage() wire.FEDWireMessage {
108
108
ben .Personal .Address .AddressLineOne = "Address One"
109
109
ben .Personal .Address .AddressLineTwo = "Address Two"
110
110
ben .Personal .Address .AddressLineThree = "Address Three"
111
- fwm .SetBeneficiary ( ben )
111
+ fwm .Beneficiary = ben
112
112
113
113
br := wire .NewBeneficiaryReference ()
114
114
br .BeneficiaryReference = "Reference"
115
- fwm .SetBeneficiaryReference ( br )
115
+ fwm .BeneficiaryReference = br
116
116
117
117
// Originator
118
118
o := wire .NewOriginator ()
@@ -122,7 +122,7 @@ func mockFEDWireMessage() wire.FEDWireMessage {
122
122
o .Personal .Address .AddressLineOne = "Address One"
123
123
o .Personal .Address .AddressLineTwo = "Address Two"
124
124
o .Personal .Address .AddressLineThree = "Address Three"
125
- fwm .SetOriginator ( o )
125
+ fwm .Originator = o
126
126
127
127
ofi := wire .NewOriginatorFI ()
128
128
ofi .FinancialInstitution .IdentificationCode = wire .DemandDepositAccountNumber
@@ -131,7 +131,7 @@ func mockFEDWireMessage() wire.FEDWireMessage {
131
131
ofi .FinancialInstitution .Address .AddressLineOne = "Address One"
132
132
ofi .FinancialInstitution .Address .AddressLineTwo = "Address Two"
133
133
ofi .FinancialInstitution .Address .AddressLineThree = "Address Three"
134
- fwm .SetOriginatorFI ( ofi )
134
+ fwm .OriginatorFI = ofi
135
135
136
136
ifi := wire .NewInstructingFI ()
137
137
ifi .FinancialInstitution .IdentificationCode = wire .DemandDepositAccountNumber
@@ -140,14 +140,14 @@ func mockFEDWireMessage() wire.FEDWireMessage {
140
140
ifi .FinancialInstitution .Address .AddressLineOne = "Address One"
141
141
ifi .FinancialInstitution .Address .AddressLineTwo = "Address Two"
142
142
ifi .FinancialInstitution .Address .AddressLineThree = "Address Three"
143
- fwm .SetInstructingFI ( ifi )
143
+ fwm .InstructingFI = ifi
144
144
145
145
ob := wire .NewOriginatorToBeneficiary ()
146
146
ob .LineOne = "LineOne"
147
147
ob .LineTwo = "LineTwo"
148
148
ob .LineThree = "LineThree"
149
149
ob .LineFour = "LineFour"
150
- fwm .SetOriginatorToBeneficiary ( ob )
150
+ fwm .OriginatorToBeneficiary = ob
151
151
152
152
// FI to FI
153
153
firfi := wire .NewFIReceiverFI ()
@@ -157,7 +157,7 @@ func mockFEDWireMessage() wire.FEDWireMessage {
157
157
firfi .FIToFI .LineOne = "Line Four"
158
158
firfi .FIToFI .LineOne = "Line Five"
159
159
firfi .FIToFI .LineOne = "Line Six"
160
- fwm .SetFIReceiverFI ( firfi )
160
+ fwm .FIReceiverFI = firfi
161
161
162
162
fiifi := wire .NewFIIntermediaryFI ()
163
163
fiifi .FIToFI .LineOne = "Line One"
@@ -166,7 +166,7 @@ func mockFEDWireMessage() wire.FEDWireMessage {
166
166
fiifi .FIToFI .LineOne = "Line Four"
167
167
fiifi .FIToFI .LineOne = "Line Five"
168
168
fiifi .FIToFI .LineOne = "Line Six"
169
- fwm .SetFIIntermediaryFI ( fiifi )
169
+ fwm .FIIntermediaryFI = fiifi
170
170
171
171
fiifia := wire .NewFIIntermediaryFIAdvice ()
172
172
fiifia .Advice .AdviceCode = wire .AdviceCodeLetter
@@ -176,7 +176,7 @@ func mockFEDWireMessage() wire.FEDWireMessage {
176
176
fiifia .Advice .LineFour = "Line Four"
177
177
fiifia .Advice .LineFive = "Line Five"
178
178
fiifia .Advice .LineSix = "Line Six"
179
- fwm .SetFIIntermediaryFIAdvice ( fiifia )
179
+ fwm .FIIntermediaryFIAdvice = fiifia
180
180
181
181
fibfi := wire .NewFIBeneficiaryFI ()
182
182
fibfi .FIToFI .LineOne = "Line One"
@@ -185,7 +185,7 @@ func mockFEDWireMessage() wire.FEDWireMessage {
185
185
fibfi .FIToFI .LineFour = "Line Four"
186
186
fibfi .FIToFI .LineFive = "Line Five"
187
187
fibfi .FIToFI .LineSix = "Line Six"
188
- fwm .SetFIBeneficiaryFI ( fibfi )
188
+ fwm .FIBeneficiaryFI = fibfi
189
189
190
190
fibfia := wire .NewFIBeneficiaryFIAdvice ()
191
191
fibfia .Advice .AdviceCode = wire .AdviceCodeTelex
@@ -195,7 +195,7 @@ func mockFEDWireMessage() wire.FEDWireMessage {
195
195
fibfia .Advice .LineFour = "Line Four"
196
196
fibfia .Advice .LineFive = "Line Five"
197
197
fibfia .Advice .LineSix = "Line Six"
198
- fwm .SetFIBeneficiaryFIAdvice ( fibfia )
198
+ fwm .FIBeneficiaryFIAdvice = fibfia
199
199
200
200
fib := wire .NewFIBeneficiary ()
201
201
fib .FIToFI .LineOne = "Line One"
@@ -204,7 +204,7 @@ func mockFEDWireMessage() wire.FEDWireMessage {
204
204
fib .FIToFI .LineFour = "Line Four"
205
205
fib .FIToFI .LineFive = "Line Five"
206
206
fib .FIToFI .LineSix = "Line Six"
207
- fwm .SetFIBeneficiary ( fib )
207
+ fwm .FIBeneficiary = fib
208
208
209
209
fiba := wire .NewFIBeneficiaryAdvice ()
210
210
fiba .Advice .AdviceCode = wire .AdviceCodeLetter
@@ -214,11 +214,11 @@ func mockFEDWireMessage() wire.FEDWireMessage {
214
214
fiba .Advice .LineFour = "Line Four"
215
215
fiba .Advice .LineFive = "Line Five"
216
216
fiba .Advice .LineSix = "Line Six"
217
- fwm .SetFIBeneficiaryAdvice ( fiba )
217
+ fwm .FIBeneficiaryAdvice = fiba
218
218
219
219
pm := wire .NewFIPaymentMethodToBeneficiary ()
220
220
pm .AdditionalInformation = "Additional Information"
221
- fwm .SetFIPaymentMethodToBeneficiary ( pm )
221
+ fwm .FIPaymentMethodToBeneficiary = pm
222
222
223
223
fifi := wire .NewFIAdditionalFIToFI ()
224
224
fifi .AdditionalFIToFI .LineOne = "Line One"
@@ -227,7 +227,7 @@ func mockFEDWireMessage() wire.FEDWireMessage {
227
227
fifi .AdditionalFIToFI .LineFour = "Line Four"
228
228
fifi .AdditionalFIToFI .LineFive = "Line Five"
229
229
fifi .AdditionalFIToFI .LineSix = "Line Six"
230
- fwm .SetFIAdditionalFIToFI ( fifi )
230
+ fwm .FIAdditionalFIToFI = fifi
231
231
232
232
return fwm
233
233
}
0 commit comments