/
auth.024.001.03.xsd.go
539 lines (441 loc) · 25.6 KB
/
auth.024.001.03.xsd.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
// Code generated by download. DO NOT EDIT.
package iso20022_auth_024_001_03
import (
"bytes"
"encoding/base64"
"encoding/xml"
"time"
)
type AccountIdentification4Choice struct {
IBAN IBAN2007Identifier `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 IBAN,omitempty"`
Othr GenericAccountIdentification1 `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Othr,omitempty"`
}
type AccountSchemeName1Choice struct {
Cd ExternalAccountIdentification1Code `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Cd,omitempty"`
Prtry Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Prtry,omitempty"`
}
type ActiveCurrencyAndAmount struct {
Value float64 `xml:",chardata"`
Ccy ActiveCurrencyCode `xml:"Ccy,attr"`
}
// Must match the pattern [A-Z]{3,3}
type ActiveCurrencyCode string
// Must match the pattern [A-Z]{3,3}
type ActiveOrHistoricCurrencyCode string
// May be one of ADDR, PBOX, HOME, BIZZ, MLTO, DLVY
type AddressType2Code string
type AddressType3Choice struct {
Cd AddressType2Code `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Cd,omitempty"`
Prtry GenericIdentification30 `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Prtry,omitempty"`
}
// Must match the pattern [A-Z0-9]{4,4}[A-Z]{2,2}[A-Z0-9]{2,2}([A-Z0-9]{3,3}){0,1}
type AnyBICDec2014Identifier string
// Must match the pattern [A-Z0-9]{4,4}[A-Z]{2,2}[A-Z0-9]{2,2}([A-Z0-9]{3,3}){0,1}
type BICFIDec2014Identifier string
type BinaryFile1 struct {
MIMETp Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 MIMETp,omitempty"`
NcodgTp Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 NcodgTp,omitempty"`
CharSet Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 CharSet,omitempty"`
InclBinryObjct Max100KBinary `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 InclBinryObjct,omitempty"`
}
type BranchAndFinancialInstitutionIdentification6 struct {
FinInstnId FinancialInstitutionIdentification18 `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 FinInstnId"`
BrnchId BranchData3 `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 BrnchId,omitempty"`
}
type BranchData3 struct {
Id Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Id,omitempty"`
LEI LEIIdentifier `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 LEI,omitempty"`
Nm Max140Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Nm,omitempty"`
PstlAdr PostalAddress24 `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 PstlAdr,omitempty"`
}
type CashAccount40 struct {
Id AccountIdentification4Choice `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Id,omitempty"`
Tp CashAccountType2Choice `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Tp,omitempty"`
Ccy ActiveOrHistoricCurrencyCode `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Ccy,omitempty"`
Nm Max70Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Nm,omitempty"`
Prxy ProxyAccountIdentification1 `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Prxy,omitempty"`
}
type CashAccountType2Choice struct {
Cd ExternalCashAccountType1Code `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Cd,omitempty"`
Prtry Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Prtry,omitempty"`
}
type CertificateIdentification1 struct {
MsgId Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 MsgId,omitempty"`
AcctSvcrRef Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 AcctSvcrRef,omitempty"`
PmtInfId Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 PmtInfId,omitempty"`
InstrId Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 InstrId,omitempty"`
EndToEndId Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 EndToEndId,omitempty"`
Prtry ProprietaryReference1 `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Prtry,omitempty"`
}
type CertificateReference2 struct {
Id CertificateIdentification1 `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Id"`
Dt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Dt,omitempty"`
}
type ClearingSystemIdentification2Choice struct {
Cd ExternalClearingSystemIdentification1Code `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Cd,omitempty"`
Prtry Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Prtry,omitempty"`
}
type ClearingSystemMemberIdentification2 struct {
ClrSysId ClearingSystemIdentification2Choice `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 ClrSysId,omitempty"`
MmbId Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 MmbId"`
}
type Contact4 struct {
NmPrfx NamePrefix2Code `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 NmPrfx,omitempty"`
Nm Max140Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Nm,omitempty"`
PhneNb PhoneNumber `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 PhneNb,omitempty"`
MobNb PhoneNumber `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 MobNb,omitempty"`
FaxNb PhoneNumber `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 FaxNb,omitempty"`
EmailAdr Max2048Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 EmailAdr,omitempty"`
EmailPurp Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 EmailPurp,omitempty"`
JobTitl Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 JobTitl,omitempty"`
Rspnsblty Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Rspnsblty,omitempty"`
Dept Max70Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Dept,omitempty"`
Othr []OtherContact1 `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Othr,omitempty"`
PrefrdMtd PreferredContactMethod1Code `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 PrefrdMtd,omitempty"`
}
type ContractRegistrationReference2Choice struct {
RegdCtrctId Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 RegdCtrctId,omitempty"`
Ctrct DocumentIdentification35 `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Ctrct,omitempty"`
}
// Must match the pattern [A-Z]{2,2}
type CountryCode string
type CurrencyControlHeader5 struct {
MsgId Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 MsgId"`
CreDtTm ISODateTime `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 CreDtTm"`
NbOfItms Max15NumericText `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 NbOfItms"`
InitgPty Party40Choice `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 InitgPty"`
FwdgAgt BranchAndFinancialInstitutionIdentification6 `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 FwdgAgt,omitempty"`
}
type DateAndPlaceOfBirth1 struct {
BirthDt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 BirthDt"`
PrvcOfBirth Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 PrvcOfBirth,omitempty"`
CityOfBirth Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 CityOfBirth"`
CtryOfBirth CountryCode `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 CtryOfBirth"`
}
type Document struct {
PmtRgltryInfNtfctn PaymentRegulatoryInformationNotificationV03 `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 PmtRgltryInfNtfctn"`
}
type DocumentAmendment1 struct {
CrrctnId float64 `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 CrrctnId"`
OrgnlDocId Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 OrgnlDocId,omitempty"`
}
type DocumentGeneralInformation5 struct {
DocTp ExternalDocumentType1Code `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 DocTp"`
DocNb Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 DocNb"`
DocNm Max140Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 DocNm,omitempty"`
SndrRcvrSeqId Max140Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 SndrRcvrSeqId,omitempty"`
IsseDt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 IsseDt,omitempty"`
URL Max256Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 URL,omitempty"`
LkFileHash SignatureEnvelopeReference `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 LkFileHash,omitempty"`
AttchdBinryFile BinaryFile1 `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 AttchdBinryFile"`
}
type DocumentIdentification28 struct {
Id Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Id,omitempty"`
DtOfIsse ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 DtOfIsse"`
}
type DocumentIdentification35 struct {
Id Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Id,omitempty"`
DtOfIsse ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 DtOfIsse,omitempty"`
}
// Must match the pattern [0-9]
type Exact1NumericText string
// Must match the pattern [a-zA-Z0-9]{4}
type Exact4AlphaNumericText string
// Must match the pattern [0-9]{5}
type Exact5NumericText string
// May be no more than 4 items long
type ExternalAccountIdentification1Code string
// May be no more than 4 items long
type ExternalCashAccountType1Code string
// May be no more than 5 items long
type ExternalClearingSystemIdentification1Code string
// May be no more than 4 items long
type ExternalDocumentType1Code string
// May be no more than 4 items long
type ExternalFinancialInstitutionIdentification1Code string
// May be no more than 4 items long
type ExternalOrganisationIdentification1Code string
// May be no more than 4 items long
type ExternalPersonIdentification1Code string
// May be no more than 4 items long
type ExternalProxyAccountType1Code string
type FinancialIdentificationSchemeName1Choice struct {
Cd ExternalFinancialInstitutionIdentification1Code `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Cd,omitempty"`
Prtry Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Prtry,omitempty"`
}
type FinancialInstitutionIdentification18 struct {
BICFI BICFIDec2014Identifier `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 BICFI,omitempty"`
ClrSysMmbId ClearingSystemMemberIdentification2 `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 ClrSysMmbId,omitempty"`
LEI LEIIdentifier `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 LEI,omitempty"`
Nm Max140Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Nm,omitempty"`
PstlAdr PostalAddress24 `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 PstlAdr,omitempty"`
Othr GenericFinancialIdentification1 `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Othr,omitempty"`
}
type GenericAccountIdentification1 struct {
Id Max34Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Id"`
SchmeNm AccountSchemeName1Choice `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 SchmeNm,omitempty"`
Issr Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Issr,omitempty"`
}
type GenericFinancialIdentification1 struct {
Id Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Id"`
SchmeNm FinancialIdentificationSchemeName1Choice `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 SchmeNm,omitempty"`
Issr Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Issr,omitempty"`
}
type GenericIdentification30 struct {
Id Exact4AlphaNumericText `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Id"`
Issr Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Issr"`
SchmeNm Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 SchmeNm,omitempty"`
}
type GenericOrganisationIdentification1 struct {
Id Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Id"`
SchmeNm OrganisationIdentificationSchemeName1Choice `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 SchmeNm,omitempty"`
Issr Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Issr,omitempty"`
}
type GenericPersonIdentification1 struct {
Id Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Id"`
SchmeNm PersonIdentificationSchemeName1Choice `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 SchmeNm,omitempty"`
Issr Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Issr,omitempty"`
}
// Must match the pattern [A-Z]{2,2}[0-9]{2,2}[a-zA-Z0-9]{1,30}
type IBAN2007Identifier string
type ISODate time.Time
func (t *ISODate) UnmarshalText(text []byte) error {
return (*xsdDate)(t).UnmarshalText(text)
}
func (t ISODate) MarshalText() ([]byte, error) {
return xsdDate(t).MarshalText()
}
type ISODateTime time.Time
func (t *ISODateTime) UnmarshalText(text []byte) error {
return (*xsdDateTime)(t).UnmarshalText(text)
}
func (t ISODateTime) MarshalText() ([]byte, error) {
return xsdDateTime(t).MarshalText()
}
// Must match the pattern [A-Z0-9]{18,18}[0-9]{2,2}
type LEIIdentifier string
type Max100KBinary []byte
func (t *Max100KBinary) UnmarshalText(text []byte) error {
return (*xsdBase64Binary)(t).UnmarshalText(text)
}
func (t Max100KBinary) MarshalText() ([]byte, error) {
return xsdBase64Binary(t).MarshalText()
}
// May be no more than 1025 items long
type Max1025Text string
// May be no more than 128 items long
type Max128Text string
// May be no more than 140 items long
type Max140Text string
// Must match the pattern [0-9]{1,15}
type Max15NumericText string
// May be no more than 16 items long
type Max16Text string
// May be no more than 2048 items long
type Max2048Text string
// May be no more than 256 items long
type Max256Text string
// May be no more than 34 items long
type Max34Text string
// May be no more than 350 items long
type Max350Text string
// May be no more than 35 items long
type Max35Text string
// May be no more than 4 items long
type Max4Text string
// May be no more than 70 items long
type Max70Text string
// May be one of DOCT, MADM, MISS, MIST, MIKS
type NamePrefix2Code string
type OrganisationIdentification29 struct {
AnyBIC AnyBICDec2014Identifier `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 AnyBIC,omitempty"`
LEI LEIIdentifier `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 LEI,omitempty"`
Othr []GenericOrganisationIdentification1 `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Othr,omitempty"`
}
type OrganisationIdentificationSchemeName1Choice struct {
Cd ExternalOrganisationIdentification1Code `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Cd,omitempty"`
Prtry Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Prtry,omitempty"`
}
type OtherContact1 struct {
ChanlTp Max4Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 ChanlTp"`
Id Max128Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Id,omitempty"`
}
type Party38Choice struct {
OrgId OrganisationIdentification29 `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 OrgId,omitempty"`
PrvtId PersonIdentification13 `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 PrvtId,omitempty"`
}
type Party40Choice struct {
Pty PartyIdentification135 `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Pty,omitempty"`
Agt BranchAndFinancialInstitutionIdentification6 `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Agt,omitempty"`
}
type PartyIdentification135 struct {
Nm Max140Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Nm,omitempty"`
PstlAdr PostalAddress24 `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 PstlAdr,omitempty"`
Id Party38Choice `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Id,omitempty"`
CtryOfRes CountryCode `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 CtryOfRes,omitempty"`
CtctDtls Contact4 `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 CtctDtls,omitempty"`
}
type PaymentRegulatoryInformationNotificationV03 struct {
GrpHdr CurrencyControlHeader5 `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 GrpHdr"`
TxNtfctn []RegulatoryReportingNotification3 `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 TxNtfctn"`
SplmtryData []SupplementaryData1 `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 SplmtryData,omitempty"`
}
type PersonIdentification13 struct {
DtAndPlcOfBirth DateAndPlaceOfBirth1 `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 DtAndPlcOfBirth,omitempty"`
Othr []GenericPersonIdentification1 `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Othr,omitempty"`
}
type PersonIdentificationSchemeName1Choice struct {
Cd ExternalPersonIdentification1Code `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Cd,omitempty"`
Prtry Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Prtry,omitempty"`
}
// Must match the pattern \+[0-9]{1,3}-[0-9()+\-]{1,30}
type PhoneNumber string
type PostalAddress24 struct {
AdrTp AddressType3Choice `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 AdrTp,omitempty"`
Dept Max70Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Dept,omitempty"`
SubDept Max70Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 SubDept,omitempty"`
StrtNm Max70Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 StrtNm,omitempty"`
BldgNb Max16Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 BldgNb,omitempty"`
BldgNm Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 BldgNm,omitempty"`
Flr Max70Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Flr,omitempty"`
PstBx Max16Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 PstBx,omitempty"`
Room Max70Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Room,omitempty"`
PstCd Max16Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 PstCd,omitempty"`
TwnNm Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 TwnNm,omitempty"`
TwnLctnNm Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 TwnLctnNm,omitempty"`
DstrctNm Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 DstrctNm,omitempty"`
CtrySubDvsn Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 CtrySubDvsn,omitempty"`
Ctry CountryCode `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Ctry,omitempty"`
AdrLine []Max70Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 AdrLine,omitempty"`
}
// May be one of LETT, MAIL, PHON, FAXX, CELL
type PreferredContactMethod1Code string
type ProprietaryReference1 struct {
Tp Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Tp"`
Ref Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Ref"`
}
type ProxyAccountIdentification1 struct {
Tp ProxyAccountType1Choice `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Tp,omitempty"`
Id Max2048Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Id"`
}
type ProxyAccountType1Choice struct {
Cd ExternalProxyAccountType1Code `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Cd,omitempty"`
Prtry Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Prtry,omitempty"`
}
type RegulatoryReportingNotification3 struct {
TxNtfctnId Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 TxNtfctnId"`
AcctOwnr PartyIdentification135 `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 AcctOwnr"`
AcctSvcr BranchAndFinancialInstitutionIdentification6 `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 AcctSvcr"`
TxCert []TransactionCertificate4 `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 TxCert"`
}
type SignatureEnvelopeReference struct {
Item string `xml:",any"`
}
type SupplementaryData1 struct {
PlcAndNm Max350Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 PlcAndNm,omitempty"`
Envlp SupplementaryDataEnvelope1 `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Envlp"`
}
type SupplementaryDataEnvelope1 struct {
Item string `xml:",any"`
}
type TransactionCertificate4 struct {
TxId Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 TxId"`
Cert DocumentIdentification28 `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Cert"`
Acct CashAccount40 `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Acct,omitempty"`
BkAcctDmcltnCtry CountryCode `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 BkAcctDmcltnCtry,omitempty"`
Amdmnt DocumentAmendment1 `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Amdmnt,omitempty"`
CertRcrd []TransactionCertificateRecord2 `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 CertRcrd"`
SplmtryData []SupplementaryData1 `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 SplmtryData,omitempty"`
}
type TransactionCertificate5 struct {
RfrdDoc CertificateReference2 `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 RfrdDoc"`
TxDt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 TxDt"`
TxTp Exact1NumericText `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 TxTp,omitempty"`
LclInstrm Exact5NumericText `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 LclInstrm"`
Amt ActiveCurrencyAndAmount `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Amt"`
}
type TransactionCertificateContract2 struct {
CtrctRef ContractRegistrationReference2Choice `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 CtrctRef,omitempty"`
TxAmtInCtrctCcy ActiveCurrencyAndAmount `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 TxAmtInCtrctCcy,omitempty"`
XpctdShipmntDt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 XpctdShipmntDt,omitempty"`
XpctdAdvncPmtRtrDt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 XpctdAdvncPmtRtrDt,omitempty"`
AddtlInf Max1025Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 AddtlInf,omitempty"`
}
type TransactionCertificateRecord2 struct {
CertRcrdId Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 CertRcrdId"`
DocSubmitgPrcdr Exact1NumericText `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 DocSubmitgPrcdr,omitempty"`
Tx TransactionCertificate5 `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Tx"`
Ctrct TransactionCertificateContract2 `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Ctrct,omitempty"`
Attchmnt []DocumentGeneralInformation5 `xml:"urn:iso:std:iso:20022:tech:xsd:auth.024.001.03 Attchmnt,omitempty"`
}
type xsdBase64Binary []byte
func (b *xsdBase64Binary) UnmarshalText(text []byte) (err error) {
*b, err = base64.StdEncoding.DecodeString(string(text))
return
}
func (b xsdBase64Binary) MarshalText() ([]byte, error) {
var buf bytes.Buffer
enc := base64.NewEncoder(base64.StdEncoding, &buf)
enc.Write([]byte(b))
enc.Close()
return buf.Bytes(), nil
}
type xsdDate time.Time
func (t *xsdDate) UnmarshalText(text []byte) error {
return _unmarshalTime(text, (*time.Time)(t), "2006-01-02")
}
func (t xsdDate) MarshalText() ([]byte, error) {
return _marshalTime((time.Time)(t), "2006-01-02")
}
func (t xsdDate) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
if (time.Time)(t).IsZero() {
return nil
}
m, err := t.MarshalText()
if err != nil {
return err
}
return e.EncodeElement(m, start)
}
func (t xsdDate) MarshalXMLAttr(name xml.Name) (xml.Attr, error) {
if (time.Time)(t).IsZero() {
return xml.Attr{}, nil
}
m, err := t.MarshalText()
return xml.Attr{Name: name, Value: string(m)}, err
}
func _unmarshalTime(text []byte, t *time.Time, format string) (err error) {
s := string(bytes.TrimSpace(text))
*t, err = time.Parse(format, s)
if _, ok := err.(*time.ParseError); ok {
*t, err = time.Parse(format+"Z07:00", s)
}
return err
}
func _marshalTime(t time.Time, format string) ([]byte, error) {
return []byte(t.Format(format + "Z07:00")), nil
}
type xsdDateTime time.Time
func (t *xsdDateTime) UnmarshalText(text []byte) error {
return _unmarshalTime(text, (*time.Time)(t), "2006-01-02T15:04:05.999999999")
}
func (t xsdDateTime) MarshalText() ([]byte, error) {
return _marshalTime((time.Time)(t), "2006-01-02T15:04:05.999999999")
}
func (t xsdDateTime) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
if (time.Time)(t).IsZero() {
return nil
}
m, err := t.MarshalText()
if err != nil {
return err
}
return e.EncodeElement(m, start)
}
func (t xsdDateTime) MarshalXMLAttr(name xml.Name) (xml.Attr, error) {
if (time.Time)(t).IsZero() {
return xml.Attr{}, nil
}
m, err := t.MarshalText()
return xml.Attr{Name: name, Value: string(m)}, err
}