-
Notifications
You must be signed in to change notification settings - Fork 0
/
catp.016.001.01.xsd.go
771 lines (625 loc) · 35.8 KB
/
catp.016.001.01.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
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
// Code generated by download. DO NOT EDIT.
package iso20022_catp_016_001_01
import (
"bytes"
"encoding/base64"
"encoding/xml"
"time"
)
type ATMConfigurationParameter1 struct {
Tp DataSetCategory7Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Tp"`
Vrsn Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Vrsn"`
}
type ATMContext18 struct {
SsnRef Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 SsnRef,omitempty"`
Svc ATMService22 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Svc"`
}
type ATMCustomer4 struct {
Prfl ATMCustomerProfile4 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Prfl,omitempty"`
SelctdLang string `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 SelctdLang,omitempty"`
Authntcn []CardholderAuthentication8 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Authntcn"`
AuthntcnRslt []TransactionVerificationResult5 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 AuthntcnRslt,omitempty"`
}
// May be one of CRDF, OREQ, PREQ
type ATMCustomerProfile1Code string
type ATMCustomerProfile4 struct {
RtrvlMd ATMCustomerProfile1Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 RtrvlMd"`
PrflRef Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 PrflRef,omitempty"`
CstmrId Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 CstmrId,omitempty"`
}
type ATMEnvironment11 struct {
Acqrr Acquirer7 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Acqrr,omitempty"`
ATMMgrId Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 ATMMgrId,omitempty"`
HstgNtty TerminalHosting1 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 HstgNtty,omitempty"`
ATM AutomatedTellerMachine9 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 ATM"`
Cstmr ATMCustomer4 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Cstmr"`
Card PaymentCard22 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Card,omitempty"`
}
type ATMEquipment1 struct {
Manfctr Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Manfctr,omitempty"`
Mdl Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Mdl,omitempty"`
SrlNb Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 SrlNb,omitempty"`
ApplPrvdr Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 ApplPrvdr,omitempty"`
ApplNm Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 ApplNm,omitempty"`
ApplVrsn Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 ApplVrsn,omitempty"`
ApprvlNb Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 ApprvlNb,omitempty"`
CfgtnParam []ATMConfigurationParameter1 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 CfgtnParam,omitempty"`
}
// May be one of CARD, COIN, CMDT, CPNS, NOTE, STMP, UDTM
type ATMMediaType1Code string
// May be one of CARD, COIN, CMDT, CPNS, NOTE, STMP, UDTM, CHCK
type ATMMediaType2Code string
type ATMMessageFunction2 struct {
Fctn MessageFunction11Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Fctn"`
ATMSvcCd Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 ATMSvcCd,omitempty"`
HstSvcCd Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 HstSvcCd,omitempty"`
}
type ATMService22 struct {
SvcRef Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 SvcRef,omitempty"`
ATMSvcCd Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 ATMSvcCd,omitempty"`
SvcTp ATMServiceType9Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 SvcTp"`
SvcVarntId []Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 SvcVarntId,omitempty"`
}
// May be one of TRFC, TRFI, TRFP
type ATMServiceType9Code string
type ATMTransaction23 struct {
TxId TransactionIdentifier1 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 TxId"`
RcncltnId Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 RcncltnId,omitempty"`
CdtrLabl Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 CdtrLabl,omitempty"`
DbtrLabl Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 DbtrLabl,omitempty"`
PmtRef Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 PmtRef,omitempty"`
AcctFr CardAccount7 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 AcctFr,omitempty"`
PrtctdAcctFr ContentInformationType10 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 PrtctdAcctFr,omitempty"`
AcctTo []CardAccount7 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 AcctTo,omitempty"`
PrtctdAcctTo ContentInformationType10 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 PrtctdAcctTo,omitempty"`
TtlReqdAmt float64 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 TtlReqdAmt,omitempty"`
DtldReqdAmt DetailedAmount17 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 DtldReqdAmt,omitempty"`
ReqdExctnDt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 ReqdExctnDt,omitempty"`
InstntTrfPrgm Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 InstntTrfPrgm,omitempty"`
RcrngTrf RecurringTransaction3 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 RcrngTrf,omitempty"`
ReqdRct bool `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 ReqdRct,omitempty"`
ICCRltdData Max10000Binary `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 ICCRltdData,omitempty"`
}
type ATMTransferRequest1 struct {
Envt ATMEnvironment11 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Envt"`
Cntxt ATMContext18 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Cntxt,omitempty"`
Tx ATMTransaction23 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Tx"`
}
type ATMTransferRequestV01 struct {
Hdr Header31 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Hdr"`
PrtctdATMTrfReq ContentInformationType10 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 PrtctdATMTrfReq,omitempty"`
ATMTrfReq ATMTransferRequest1 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 ATMTrfReq,omitempty"`
SctyTrlr ContentInformationType15 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 SctyTrlr,omitempty"`
}
// May be one of ACSL, ENTR, IMAC, IMPL, NOSL, TPSL
type AccountChoiceMethod1Code string
type AccountIdentification31Choice struct {
IBAN IBANIdentifier `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 IBAN,omitempty"`
BBAN BBANIdentifier `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 BBAN,omitempty"`
UPIC UPICIdentifier `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 UPIC,omitempty"`
DmstAcct SimpleIdentificationInformation4 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 DmstAcct,omitempty"`
}
type Acquirer7 struct {
AcqrgInstn Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 AcqrgInstn,omitempty"`
Brnch Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Brnch,omitempty"`
}
// Must match the pattern [A-Z]{3,3}
type ActiveCurrencyCode string
// May be one of ADDR, PBOX, HOME, BIZZ, MLTO, DLVY
type AddressType2Code string
// May be one of HS25, HS38, HS51, HS01
type Algorithm11Code string
// May be one of MACC, MCCS, CMA1, MCC1, CMA9, CMA5
type Algorithm12Code string
// May be one of EA2C, E3DC, DKP9, UKPT, UKA1, EA9C, EA5C
type Algorithm13Code string
// May be one of EA2C, E3DC, EA9C, EA5C
type Algorithm15Code string
// May be one of ERSA, RSAO
type Algorithm7Code string
// May be one of MGF1
type Algorithm8Code string
type AlgorithmIdentification11 struct {
Algo Algorithm7Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Algo"`
Param Parameter4 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Param,omitempty"`
}
type AlgorithmIdentification12 struct {
Algo Algorithm8Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Algo"`
Param Parameter5 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Param,omitempty"`
}
type AlgorithmIdentification13 struct {
Algo Algorithm13Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Algo"`
Param Parameter6 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Param,omitempty"`
}
type AlgorithmIdentification14 struct {
Algo Algorithm15Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Algo"`
Param Parameter6 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Param,omitempty"`
}
type AlgorithmIdentification15 struct {
Algo Algorithm12Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Algo"`
Param Parameter7 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Param,omitempty"`
}
// Must match the pattern [A-Z]{6,6}[A-Z2-9][A-NP-Z0-9]([A-Z0-9]{3,3}){0,1}
type AnyBICIdentifier string
// May be one of CNAT, LATT, OATT, OUAT, CATT
type AttributeType1Code string
type AuthenticatedData4 struct {
Vrsn float64 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Vrsn,omitempty"`
Rcpt []Recipient4Choice `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Rcpt"`
MACAlgo AlgorithmIdentification15 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 MACAlgo"`
NcpsltdCntt EncapsulatedContent3 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 NcpsltdCntt"`
MAC Max140Binary `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 MAC"`
}
// May be one of ICCD, AGNT, MERC, ACQR, ISSR, TRML
type AuthenticationEntity2Code string
// May be one of TOKA, BIOM, MOBL, OTHR, FPIN, NPIN, PSWD, SCRT, SCNL
type AuthenticationMethod7Code string
type AutomatedTellerMachine9 struct {
Id Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Id"`
AddtlId Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 AddtlId,omitempty"`
SeqNb Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 SeqNb,omitempty"`
BaseCcy ActiveCurrencyCode `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 BaseCcy"`
Lctn PostalAddress17 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Lctn,omitempty"`
LctnCtgy TransactionEnvironment2Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 LctnCtgy,omitempty"`
Cpblties PointOfInteractionCapabilities7 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Cpblties,omitempty"`
Eqpmnt ATMEquipment1 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Eqpmnt,omitempty"`
}
// Must match the pattern [a-zA-Z0-9]{1,30}
type BBANIdentifier string
// May be one of LNGT, NUL8, NULG, NULL, RAND
type BytePadding1Code string
type CardAccount7 struct {
SelctnMtd AccountChoiceMethod1Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 SelctnMtd,omitempty"`
SelctdAcctTp CardAccountType3Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 SelctdAcctTp,omitempty"`
AcctNm Max70Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 AcctNm,omitempty"`
AcctOwnr NameAndAddress3 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 AcctOwnr,omitempty"`
Ccy ActiveCurrencyCode `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Ccy,omitempty"`
AcctIdr AccountIdentification31Choice `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 AcctIdr,omitempty"`
Svcr PartyIdentification72Choice `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Svcr,omitempty"`
}
// May be one of CTDP, CHCK, CRDT, CURR, CDBT, DFLT, EPRS, HEQL, ISTL, INVS, LCDT, MBNW, MNMK, MNMC, MTGL, RTRM, RVLV, SVNG, STBD, UVRL, PRPD, FLTC
type CardAccountType3Code string
// May be one of TAGC, PHYS, BRCD, MGST, CICC, DFLE, CTLS, ECTL
type CardDataReading1Code string
// May be one of ECTL, CICC, MGST, CTLS
type CardDataReading4Code string
// May be one of FFLB, SFLB, NFLB
type CardFallback1Code string
type CardholderAuthentication8 struct {
AuthntcnMtd AuthenticationMethod7Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 AuthntcnMtd"`
TknReqd bool `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 TknReqd,omitempty"`
AuthntcnVal Max5000Binary `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 AuthntcnVal,omitempty"`
PrtctdAuthntcnVal ContentInformationType10 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 PrtctdAuthntcnVal,omitempty"`
CrdhldrOnLinePIN OnLinePIN5 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 CrdhldrOnLinePIN,omitempty"`
}
// May be one of NPIN, FCPN, FEPN, FDSG, FBIO, FBIG, PKIS, PCOD
type CardholderVerificationCapability3Code string
type CertificateIssuer1 struct {
RltvDstngshdNm []RelativeDistinguishedName1 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 RltvDstngshdNm"`
}
type ContentInformationType10 struct {
CnttTp ContentType2Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 CnttTp"`
EnvlpdData EnvelopedData4 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 EnvlpdData"`
}
type ContentInformationType15 struct {
CnttTp ContentType2Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 CnttTp"`
AuthntcdData AuthenticatedData4 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 AuthntcdData"`
}
// May be one of DATA, SIGN, EVLP, DGST, AUTH
type ContentType2Code string
// Must match the pattern [A-Z]{2,2}
type CountryCode string
// May be one of ATMC, ATMP, APPR, CRAP, CPRC, OEXR, AMNT, LOCC, MNOC
type DataSetCategory7Code string
type DetailedAmount17 struct {
AmtToTrf float64 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 AmtToTrf"`
Ccy ActiveCurrencyCode `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Ccy,omitempty"`
Fees []DetailedAmount18 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Fees,omitempty"`
Dontn []DetailedAmount18 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Dontn,omitempty"`
}
type DetailedAmount18 struct {
Amt float64 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Amt"`
Ccy ActiveCurrencyCode `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Ccy,omitempty"`
ChrgAcctTo bool `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 ChrgAcctTo,omitempty"`
Labl Max70Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Labl,omitempty"`
}
type DisplayCapabilities5 struct {
Dstn []UserInterface5Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Dstn"`
AvlblFrmt []OutputFormat1Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 AvlblFrmt,omitempty"`
NbOfLines float64 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 NbOfLines,omitempty"`
LineWidth float64 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 LineWidth,omitempty"`
AvlblLang []string `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 AvlblLang,omitempty"`
}
type Document struct {
ATMTrfReq ATMTransferRequestV01 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 ATMTrfReq"`
}
type EncapsulatedContent3 struct {
CnttTp ContentType2Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 CnttTp"`
Cntt Max100KBinary `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Cntt,omitempty"`
}
type EncryptedContent3 struct {
CnttTp ContentType2Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 CnttTp"`
CnttNcrptnAlgo AlgorithmIdentification14 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 CnttNcrptnAlgo"`
NcrptdData Max100KBinary `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 NcrptdData"`
}
// May be one of TR31, TR34
type EncryptionFormat1Code string
type EnvelopedData4 struct {
Vrsn float64 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Vrsn,omitempty"`
Rcpt []Recipient4Choice `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Rcpt"`
NcrptdCntt EncryptedContent3 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 NcrptdCntt,omitempty"`
}
// Must match the pattern [a-zA-Z0-9]{3}
type Exact3AlphaNumericText string
// Must match the pattern [0-9]{3}
type Exact3NumericText string
// May be one of YEAR, MNTH, QURT, MIAN, WEEK, DAIL, TEND
type Frequency3Code string
type GenericIdentification1 struct {
Id Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Id"`
SchmeNm Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 SchmeNm,omitempty"`
Issr Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Issr,omitempty"`
}
type GenericIdentification77 struct {
Id Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Id"`
Tp PartyType12Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Tp"`
Issr PartyType12Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Issr,omitempty"`
Ctry Min2Max3AlphaText `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Ctry,omitempty"`
ShrtNm Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 ShrtNm,omitempty"`
}
type GeographicCoordinates1 struct {
Lat Max16Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Lat"`
Long Max16Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Long"`
}
type GeographicLocation1Choice struct {
GeogcCordints GeographicCoordinates1 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 GeogcCordints,omitempty"`
UTMCordints UTMCoordinates1 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 UTMCordints,omitempty"`
}
type Header31 struct {
MsgFctn ATMMessageFunction2 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 MsgFctn"`
PrtcolVrsn Max6Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 PrtcolVrsn"`
XchgId Max3NumericText `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 XchgId"`
CreDtTm ISODateTime `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 CreDtTm"`
InitgPty Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 InitgPty"`
RcptPty Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 RcptPty,omitempty"`
PrcStat Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 PrcStat,omitempty"`
Tracblt []Traceability4 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Tracblt,omitempty"`
}
// Must match the pattern [a-zA-Z]{2,2}[0-9]{2,2}[a-zA-Z0-9]{1,30}
type IBANIdentifier 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()
}
type IssuerAndSerialNumber1 struct {
Issr CertificateIssuer1 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Issr"`
SrlNb Max35Binary `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 SrlNb"`
}
type KEK4 struct {
Vrsn float64 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Vrsn,omitempty"`
KEKId KEKIdentifier2 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 KEKId"`
KeyNcrptnAlgo AlgorithmIdentification13 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 KeyNcrptnAlgo"`
NcrptdKey Max500Binary `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 NcrptdKey"`
}
type KEKIdentifier2 struct {
KeyId Max140Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 KeyId"`
KeyVrsn Max140Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 KeyVrsn"`
SeqNb float64 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 SeqNb,omitempty"`
DerivtnId Min5Max16Binary `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 DerivtnId,omitempty"`
}
type KeyTransport4 struct {
Vrsn float64 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Vrsn,omitempty"`
RcptId Recipient5Choice `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 RcptId"`
KeyNcrptnAlgo AlgorithmIdentification11 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 KeyNcrptnAlgo"`
NcrptdKey Max5000Binary `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 NcrptdKey"`
}
type Max10000Binary []byte
func (t *Max10000Binary) UnmarshalText(text []byte) error {
return (*xsdBase64Binary)(t).UnmarshalText(text)
}
func (t Max10000Binary) MarshalText() ([]byte, error) {
return xsdBase64Binary(t).MarshalText()
}
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 104 items long
type Max104Text string
// May be no more than 10 items long
type Max10Text string
type Max140Binary []byte
func (t *Max140Binary) UnmarshalText(text []byte) error {
return (*xsdBase64Binary)(t).UnmarshalText(text)
}
func (t Max140Binary) MarshalText() ([]byte, error) {
return xsdBase64Binary(t).MarshalText()
}
// May be no more than 140 items long
type Max140Text string
// May be no more than 16 items long
type Max16Text string
type Max35Binary []byte
func (t *Max35Binary) UnmarshalText(text []byte) error {
return (*xsdBase64Binary)(t).UnmarshalText(text)
}
func (t Max35Binary) MarshalText() ([]byte, error) {
return xsdBase64Binary(t).MarshalText()
}
// May be no more than 35 items long
type Max35Text string
// May be no more than 37 items long
type Max37Text string
// Must match the pattern [0-9]{1,3}
type Max3NumericText string
// May be no more than 3 items long
type Max3Text string
// May be no more than 45 items long
type Max45Text string
type Max5000Binary []byte
func (t *Max5000Binary) UnmarshalText(text []byte) error {
return (*xsdBase64Binary)(t).UnmarshalText(text)
}
func (t Max5000Binary) MarshalText() ([]byte, error) {
return xsdBase64Binary(t).MarshalText()
}
type Max500Binary []byte
func (t *Max500Binary) UnmarshalText(text []byte) error {
return (*xsdBase64Binary)(t).UnmarshalText(text)
}
func (t Max500Binary) MarshalText() ([]byte, error) {
return xsdBase64Binary(t).MarshalText()
}
// May be no more than 500 items long
type Max500Text string
// May be no more than 6 items long
type Max6Text string
// May be no more than 70 items long
type Max70Text string
// May be no more than 76 items long
type Max76Text string
// May be one of BALN, CMPA, CMPD, ACMD, DVCC, DIAQ, DIAP, GSTS, INQQ, INQP, KYAQ, KYAP, PINQ, PINP, RJAQ, RJAP, WITV, WITK, WITQ, WITP, INQC, H2AP, H2AQ, TMOP, CSEC, DSEC, SKSC, SSTS, DPSK, DPSV, DPSQ, DPSP, EXPK, EXPV, TRFQ, TRFP, RPTC
type MessageFunction11Code string
// Must match the pattern [a-zA-Z]{2,3}
type Min2Max3AlphaText string
// Must match the pattern [0-9]{2,3}
type Min2Max3NumericText string
type Min5Max16Binary []byte
func (t *Min5Max16Binary) UnmarshalText(text []byte) error {
return (*xsdBase64Binary)(t).UnmarshalText(text)
}
func (t Min5Max16Binary) MarshalText() ([]byte, error) {
return xsdBase64Binary(t).MarshalText()
}
// Must match the pattern [0-9]{8,28}
type Min8Max28NumericText string
type NameAndAddress3 struct {
Nm Max70Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Nm"`
Adr PostalAddress1 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Adr"`
}
type OnLinePIN5 struct {
NcrptdPINBlck ContentInformationType10 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 NcrptdPINBlck"`
PINFrmt PINFormat4Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 PINFrmt"`
AddtlInpt Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 AddtlInpt,omitempty"`
}
// May be one of MREF, TEXT, HTML
type OutputFormat1Code string
// May be one of ANSI, BNCM, BKSY, DBLD, DBLC, ECI2, ECI3, EMVS, IBM3, ISO0, ISO1, ISO2, ISO3, ISO4, ISO5, VIS2, VIS3
type PINFormat4Code string
type Parameter4 struct {
NcrptnFrmt EncryptionFormat1Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 NcrptnFrmt,omitempty"`
DgstAlgo Algorithm11Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 DgstAlgo,omitempty"`
MskGnrtrAlgo AlgorithmIdentification12 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 MskGnrtrAlgo,omitempty"`
}
type Parameter5 struct {
DgstAlgo Algorithm11Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 DgstAlgo,omitempty"`
}
type Parameter6 struct {
NcrptnFrmt EncryptionFormat1Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 NcrptnFrmt,omitempty"`
InitlstnVctr Max500Binary `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 InitlstnVctr,omitempty"`
BPddg BytePadding1Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 BPddg,omitempty"`
}
type Parameter7 struct {
InitlstnVctr Max500Binary `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 InitlstnVctr,omitempty"`
BPddg BytePadding1Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 BPddg,omitempty"`
}
type PartyIdentification72Choice struct {
AnyBIC AnyBICIdentifier `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 AnyBIC,omitempty"`
PrtryId GenericIdentification1 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 PrtryId,omitempty"`
}
// May be one of ACQR, ATMG, CISP, DLIS, HSTG, ITAG, OATM
type PartyType12Code string
type PaymentCard22 struct {
CardDataNtryMd CardDataReading1Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 CardDataNtryMd"`
FllbckInd CardFallback1Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 FllbckInd,omitempty"`
PrtctdCardData ContentInformationType10 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 PrtctdCardData,omitempty"`
PlainCardData PlainCardData18 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 PlainCardData,omitempty"`
CardCtryCd Max3Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 CardCtryCd,omitempty"`
CardCcyCd Exact3AlphaNumericText `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 CardCcyCd,omitempty"`
}
type PlainCardData18 struct {
PAN Min8Max28NumericText `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 PAN,omitempty"`
CardSeqNb Min2Max3NumericText `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 CardSeqNb,omitempty"`
FctvDt Max10Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 FctvDt,omitempty"`
XpryDt Max10Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 XpryDt,omitempty"`
SvcCd Exact3NumericText `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 SvcCd,omitempty"`
Trck1 Max76Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Trck1,omitempty"`
Trck2 Max37Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Trck2,omitempty"`
Trck3 Max104Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Trck3,omitempty"`
CrdhldrNm Max45Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 CrdhldrNm,omitempty"`
}
type PointOfInteractionCapabilities7 struct {
CardRdData []CardDataReading4Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 CardRdData,omitempty"`
CardWrtData []CardDataReading4Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 CardWrtData,omitempty"`
Authntcn []CardholderVerificationCapability3Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Authntcn,omitempty"`
PINLngthCpblties float64 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 PINLngthCpblties,omitempty"`
ApprvlCdLngth float64 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 ApprvlCdLngth,omitempty"`
MxScrptLngth float64 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 MxScrptLngth,omitempty"`
CardCaptrCpbl bool `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 CardCaptrCpbl,omitempty"`
WdrwlMdia []ATMMediaType1Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 WdrwlMdia,omitempty"`
DpstdMdia []ATMMediaType2Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 DpstdMdia,omitempty"`
MsgCpblties []DisplayCapabilities5 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 MsgCpblties,omitempty"`
}
type PostalAddress1 struct {
AdrTp AddressType2Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 AdrTp,omitempty"`
AdrLine []Max70Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 AdrLine,omitempty"`
StrtNm Max70Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 StrtNm,omitempty"`
BldgNb Max16Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 BldgNb,omitempty"`
PstCd Max16Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 PstCd,omitempty"`
TwnNm Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 TwnNm,omitempty"`
CtrySubDvsn Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 CtrySubDvsn,omitempty"`
Ctry CountryCode `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Ctry"`
}
type PostalAddress17 struct {
AdrLine []Max70Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 AdrLine,omitempty"`
StrtNm Max70Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 StrtNm,omitempty"`
BldgNb Max16Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 BldgNb,omitempty"`
PstCd Max16Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 PstCd,omitempty"`
TwnNm Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 TwnNm"`
CtrySubDvsn []Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 CtrySubDvsn,omitempty"`
Ctry CountryCode `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Ctry"`
GLctn GeographicLocation1Choice `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 GLctn,omitempty"`
}
type Recipient4Choice struct {
KeyTrnsprt KeyTransport4 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 KeyTrnsprt,omitempty"`
KEK KEK4 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 KEK,omitempty"`
KeyIdr KEKIdentifier2 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 KeyIdr,omitempty"`
}
type Recipient5Choice struct {
IssrAndSrlNb IssuerAndSerialNumber1 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 IssrAndSrlNb,omitempty"`
KeyIdr KEKIdentifier2 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 KeyIdr,omitempty"`
}
type RecurringTransaction3 struct {
StartDt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 StartDt"`
NbOfOcrncs float64 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 NbOfOcrncs,omitempty"`
EndDt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 EndDt"`
PrdUnit Frequency3Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 PrdUnit,omitempty"`
IntrvlDay float64 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 IntrvlDay,omitempty"`
}
type RelativeDistinguishedName1 struct {
AttrTp AttributeType1Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 AttrTp"`
AttrVal Max140Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 AttrVal"`
}
type SimpleIdentificationInformation4 struct {
Id Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Id"`
}
type TerminalHosting1 struct {
Ctgy TransactionEnvironment3Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Ctgy,omitempty"`
Id Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Id,omitempty"`
}
type Traceability4 struct {
RlayId GenericIdentification77 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 RlayId"`
SeqNb Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 SeqNb,omitempty"`
TracDtTmIn ISODateTime `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 TracDtTmIn"`
TracDtTmOut ISODateTime `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 TracDtTmOut"`
}
// May be one of PRIV, PUBL
type TransactionEnvironment2Code string
// May be one of BRCH, MERC, OTHR
type TransactionEnvironment3Code string
type TransactionIdentifier1 struct {
TxDtTm ISODateTime `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 TxDtTm"`
TxRef Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 TxRef"`
}
type TransactionVerificationResult5 struct {
Mtd AuthenticationMethod7Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Mtd"`
VrfctnNtty AuthenticationEntity2Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 VrfctnNtty,omitempty"`
Rslt Verification1Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 Rslt,omitempty"`
AddtlRslt Max500Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 AddtlRslt,omitempty"`
AuthntcnTkn Max140Binary `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 AuthntcnTkn,omitempty"`
}
// Must match the pattern [0-9]{8,17}
type UPICIdentifier string
type UTMCoordinates1 struct {
UTMZone Max16Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 UTMZone"`
UTMEstwrd float64 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 UTMEstwrd"`
UTMNrthwrd float64 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.016.001.01 UTMNrthwrd"`
}
// May be one of CDSP, CRCP, CRDO
type UserInterface5Code string
// May be one of FAIL, MISS, NOVF, PART, SUCC, ERRR
type Verification1Code string
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
}