/
catp.007.001.02.xsd.go
843 lines (683 loc) · 38.7 KB
/
catp.007.001.02.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
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
// Code generated by download. DO NOT EDIT.
package iso20022_catp_007_001_02
import (
"bytes"
"encoding/base64"
"encoding/xml"
"time"
)
type ATMAccountStatement1 struct {
AcctIdr AccountIdentification31Choice `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 AcctIdr"`
AcctNm Max70Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 AcctNm,omitempty"`
AcctStmt []ATMAccountStatement2 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 AcctStmt,omitempty"`
}
type ATMAccountStatement2 struct {
TxDt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 TxDt,omitempty"`
ValDt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 ValDt,omitempty"`
ShrtTxt Max70Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 ShrtTxt,omitempty"`
CdtTx bool `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 CdtTx,omitempty"`
Amt float64 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Amt"`
Ccy ActiveCurrencyCode `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Ccy,omitempty"`
LngTxt Max256Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 LngTxt,omitempty"`
}
// May be one of ABAL, ASTS, CFGT, CCNT, DISC, SNDM, RPTC
type ATMCommand4Code string
type ATMCommand7 struct {
Tp ATMCommand4Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Tp"`
Urgcy TMSContactLevel2Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Urgcy"`
DtTm ISODateTime `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 DtTm,omitempty"`
CmdId ATMCommandIdentification1 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 CmdId,omitempty"`
CmdParams ATMCommandParameters1Choice `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 CmdParams,omitempty"`
}
type ATMCommandIdentification1 struct {
Orgn Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Orgn,omitempty"`
Ref Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Ref,omitempty"`
Prcr Max140Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Prcr,omitempty"`
}
type ATMCommandParameters1Choice struct {
ATMReqrdGblSts ATMStatus1Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 ATMReqrdGblSts,omitempty"`
XpctdMsgFctn MessageFunction8Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 XpctdMsgFctn,omitempty"`
ReqrdCfgtnParam ATMConfigurationParameter1 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 ReqrdCfgtnParam,omitempty"`
}
type ATMConfigurationParameter1 struct {
Tp DataSetCategory7Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Tp"`
Vrsn Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Vrsn"`
}
type ATMContext15 struct {
SsnRef Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 SsnRef,omitempty"`
Svc ATMService16 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Svc"`
}
type ATMCustomer5 struct {
Prfl ATMCustomerProfile2 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Prfl,omitempty"`
AuthntcnRslt []TransactionVerificationResult5 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 AuthntcnRslt,omitempty"`
}
type ATMCustomerProfile2 struct {
PrflRef Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 PrflRef,omitempty"`
CstmrId Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 CstmrId,omitempty"`
}
type ATMCustomerProfile5 struct {
PrflRef Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 PrflRef,omitempty"`
CstmrId Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 CstmrId,omitempty"`
PrflDesc Max70Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 PrflDesc,omitempty"`
AllwdSvcs []ATMService17 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 AllwdSvcs,omitempty"`
}
// May be one of CDIS, DPRN, JRNL, JPRN, RPRN, RWDR
type ATMDevice1Code string
type ATMEnvironment12 struct {
Acqrr Acquirer7 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Acqrr,omitempty"`
ATMMgr Acquirer8 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 ATMMgr,omitempty"`
HstgNtty TerminalHosting1 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 HstgNtty,omitempty"`
ATM AutomatedTellerMachine2 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 ATM"`
Cstmr ATMCustomer5 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Cstmr"`
PrtctdCardData ContentInformationType10 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 PrtctdCardData,omitempty"`
PlainCardData PlainCardData19 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 PlainCardData,omitempty"`
}
type ATMInquiryResponse2 struct {
Envt ATMEnvironment12 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Envt"`
Cntxt ATMContext15 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Cntxt"`
Tx ATMTransaction21 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Tx"`
}
type ATMInquiryResponseV02 struct {
Hdr Header31 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Hdr"`
PrtctdATMNqryRspn ContentInformationType10 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 PrtctdATMNqryRspn,omitempty"`
ATMNqryRspn ATMInquiryResponse2 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 ATMNqryRspn,omitempty"`
SctyTrlr ContentInformationType15 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 SctyTrlr,omitempty"`
}
type ATMMediaMix2 struct {
Nb float64 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Nb"`
UnitVal float64 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 UnitVal"`
}
type ATMMessageFunction2 struct {
Fctn MessageFunction11Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Fctn"`
ATMSvcCd Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 ATMSvcCd,omitempty"`
HstSvcCd Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 HstSvcCd,omitempty"`
}
type ATMService16 struct {
SvcRef Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 SvcRef,omitempty"`
ATMSvcCd Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 ATMSvcCd,omitempty"`
HstSvcCd Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 HstSvcCd,omitempty"`
SvcTp ATMServiceType3Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 SvcTp"`
SvcVarntId []Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 SvcVarntId,omitempty"`
}
type ATMService17 struct {
SvcTp ATMServiceType8Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 SvcTp"`
SvcVarnt []ATMService18 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 SvcVarnt,omitempty"`
Lmts []ATMTransactionAmounts6 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Lmts,omitempty"`
PrefrdWdrwl ATMTransaction8 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 PrefrdWdrwl,omitempty"`
}
type ATMService18 struct {
Id Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Id"`
Labl Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Labl,omitempty"`
}
type ATMService19 struct {
SvcTp ATMServiceType8Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 SvcTp"`
SvcVarnt []ATMService18 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 SvcVarnt,omitempty"`
Lmts []ATMTransactionAmounts6 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Lmts,omitempty"`
}
// May be one of ASTS, CDVF, DCCS, XRTD, XRTW, EMVS, CMPF, BLCQ
type ATMServiceType3Code string
// May be one of ASTS, BLCQ, PINC, STDR, PRFL, PATH, CHSN, TRFC, TRFI, MCHG, DPSN, PINR, PINU, SPRV, DPSV, TRFP
type ATMServiceType8Code string
// May be one of INSV, OUTS
type ATMStatus1Code string
type ATMTransaction21 struct {
TxId TransactionIdentifier1 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 TxId"`
TxRspn ResponseType7 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 TxRspn"`
Actn []Action7 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Actn,omitempty"`
CstmrSvcPrfl ATMCustomerProfile5 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 CstmrSvcPrfl,omitempty"`
CcyConvs CurrencyConversion10 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 CcyConvs,omitempty"`
AcctInf []CardAccount12 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 AcctInf,omitempty"`
AcctStmtData []ATMAccountStatement1 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 AcctStmtData,omitempty"`
CcyXchg CurrencyConversion5 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 CcyXchg,omitempty"`
ICCRltdData Max10000Binary `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 ICCRltdData,omitempty"`
Cmd []ATMCommand7 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Cmd,omitempty"`
}
type ATMTransaction8 struct {
Amt float64 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Amt,omitempty"`
Ccy ActiveCurrencyCode `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Ccy,omitempty"`
RctFlg bool `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 RctFlg,omitempty"`
BalPrtFlg bool `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 BalPrtFlg,omitempty"`
MixTp Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 MixTp,omitempty"`
Mix []ATMMediaMix2 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Mix,omitempty"`
}
type ATMTransactionAmounts6 struct {
Ccy ActiveCurrencyCode `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Ccy,omitempty"`
MaxPssblAmt float64 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 MaxPssblAmt,omitempty"`
MinPssblAmt float64 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 MinPssblAmt,omitempty"`
AddtlAmt []ATMTransactionAmounts7 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 AddtlAmt,omitempty"`
}
type ATMTransactionAmounts7 struct {
Tp Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Tp"`
Amt float64 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Amt"`
Ccy ActiveCurrencyCode `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Ccy,omitempty"`
Labl Max70Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Labl,omitempty"`
}
type AccountIdentification31Choice struct {
IBAN IBANIdentifier `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 IBAN,omitempty"`
BBAN BBANIdentifier `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 BBAN,omitempty"`
UPIC UPICIdentifier `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 UPIC,omitempty"`
DmstAcct SimpleIdentificationInformation4 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 DmstAcct,omitempty"`
}
type Acquirer7 struct {
AcqrgInstn Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 AcqrgInstn,omitempty"`
Brnch Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Brnch,omitempty"`
}
type Acquirer8 struct {
Id Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Id"`
ApplVrsn Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 ApplVrsn,omitempty"`
}
type Action7 struct {
ActnTp ActionType6Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 ActnTp"`
MsgToPres ActionMessage4 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 MsgToPres,omitempty"`
ReqToPrfrm MessageFunction11Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 ReqToPrfrm,omitempty"`
}
type ActionMessage4 struct {
Frmt OutputFormat2Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Frmt,omitempty"`
Msg Max20000Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Msg,omitempty"`
Ref Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Ref,omitempty"`
Dvc ATMDevice1Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Dvc,omitempty"`
MsgCnttSgntr Max35Binary `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 MsgCnttSgntr,omitempty"`
}
type ActionMessage5 struct {
Frmt OutputFormat1Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Frmt,omitempty"`
MsgCntt Max20000Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 MsgCntt"`
}
// May be one of DCCQ, FEES, HAMT, LAMT, BUSY, CPTR, DISP, CPNS, RQST, PINL, PINR, TRCK
type ActionType6Code string
// Must match the pattern [A-Z]{3,3}
type ActiveCurrencyCode 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.007.001.02 Algo"`
Param Parameter4 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Param,omitempty"`
}
type AlgorithmIdentification12 struct {
Algo Algorithm8Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Algo"`
Param Parameter5 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Param,omitempty"`
}
type AlgorithmIdentification13 struct {
Algo Algorithm13Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Algo"`
Param Parameter6 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Param,omitempty"`
}
type AlgorithmIdentification14 struct {
Algo Algorithm15Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Algo"`
Param Parameter6 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Param,omitempty"`
}
type AlgorithmIdentification15 struct {
Algo Algorithm12Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Algo"`
Param Parameter7 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Param,omitempty"`
}
type AmountAndDirection43 struct {
Amt CurrencyAndAmount `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Amt"`
Sgn bool `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Sgn,omitempty"`
Dt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Dt,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.007.001.02 Vrsn,omitempty"`
Rcpt []Recipient4Choice `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Rcpt"`
MACAlgo AlgorithmIdentification15 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 MACAlgo"`
NcpsltdCntt EncapsulatedContent3 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 NcpsltdCntt"`
MAC Max140Binary `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 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 AutomatedTellerMachine2 struct {
Id Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Id"`
AddtlId Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 AddtlId,omitempty"`
SeqNb Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 SeqNb,omitempty"`
BaseCcy ActiveCurrencyCode `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 BaseCcy,omitempty"`
Lctn PostalAddress17 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Lctn,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 CardAccount12 struct {
AcctTp CardAccountType3Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 AcctTp,omitempty"`
AcctNm Max70Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 AcctNm,omitempty"`
Ccy ActiveCurrencyCode `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Ccy,omitempty"`
AcctIdr AccountIdentification31Choice `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 AcctIdr,omitempty"`
CdtRef Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 CdtRef,omitempty"`
Svcr PartyIdentification72Choice `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Svcr,omitempty"`
Bal AmountAndDirection43 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Bal,omitempty"`
BalDispFlg bool `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 BalDispFlg,omitempty"`
DfltAcctInd bool `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 DfltAcctInd,omitempty"`
AllwdSvc []ATMService19 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 AllwdSvc,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
type CertificateIssuer1 struct {
RltvDstngshdNm []RelativeDistinguishedName1 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 RltvDstngshdNm"`
}
type Commission18 struct {
Rate float64 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Rate"`
AddtlInf Max350Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 AddtlInf,omitempty"`
}
type Commission19 struct {
Amt float64 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Amt"`
AddtlInf Max350Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 AddtlInf,omitempty"`
}
type ContentInformationType10 struct {
CnttTp ContentType2Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 CnttTp"`
EnvlpdData EnvelopedData4 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 EnvlpdData"`
}
type ContentInformationType15 struct {
CnttTp ContentType2Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 CnttTp"`
AuthntcdData AuthenticatedData4 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 AuthntcdData"`
}
// May be one of DATA, SIGN, EVLP, DGST, AUTH
type ContentType2Code string
// Must match the pattern [A-Z]{2,2}
type CountryCode string
type CurrencyAndAmount struct {
Value float64 `xml:",chardata"`
Ccy CurrencyCode `xml:"Ccy,attr"`
}
// Must match the pattern [A-Z]{3,3}
type CurrencyCode string
type CurrencyConversion10 struct {
Rslt CurrencyConversionResponse2Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Rslt"`
RsltRsn Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 RsltRsn,omitempty"`
Convs CurrencyConversion9 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Convs,omitempty"`
}
type CurrencyConversion5 struct {
SrcCcy ActiveCurrencyCode `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 SrcCcy"`
SrcCcyNmrc ActiveCurrencyCode `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 SrcCcyNmrc"`
TrgtCcy ActiveCurrencyCode `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 TrgtCcy"`
TrgtCcyNmrc Exact3NumericText `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 TrgtCcyNmrc"`
Rate float64 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Rate"`
ClctdAmt float64 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 ClctdAmt"`
}
type CurrencyConversion9 struct {
CcyConvsId Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 CcyConvsId,omitempty"`
TrgtCcy CurrencyDetails2 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 TrgtCcy"`
RsltgAmt float64 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 RsltgAmt"`
XchgRate float64 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 XchgRate"`
NvrtdXchgRate float64 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 NvrtdXchgRate,omitempty"`
QtnDt ISODateTime `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 QtnDt,omitempty"`
VldUntil ISODateTime `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 VldUntil,omitempty"`
SrcCcy CurrencyDetails2 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 SrcCcy"`
OrgnlAmt float64 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 OrgnlAmt"`
ComssnDtls []Commission19 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 ComssnDtls,omitempty"`
MrkUpDtls []Commission18 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 MrkUpDtls,omitempty"`
DclrtnDtls ActionMessage5 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 DclrtnDtls,omitempty"`
}
// May be one of ODCC, ICRD, IPRD, IRAT, NDCC, IAMG, IATM
type CurrencyConversionResponse2Code string
type CurrencyDetails2 struct {
AlphaCd ActiveCurrencyCode `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 AlphaCd,omitempty"`
NmrcCd Exact3NumericText `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 NmrcCd,omitempty"`
Dcml float64 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Dcml,omitempty"`
Nm Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Nm,omitempty"`
}
// May be one of ATMC, ATMP, APPR, CRAP, CPRC, OEXR, AMNT, LOCC, MNOC
type DataSetCategory7Code string
type Document struct {
ATMNqryRspn ATMInquiryResponseV02 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 ATMNqryRspn"`
}
type EncapsulatedContent3 struct {
CnttTp ContentType2Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 CnttTp"`
Cntt Max100KBinary `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Cntt,omitempty"`
}
type EncryptedContent3 struct {
CnttTp ContentType2Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 CnttTp"`
CnttNcrptnAlgo AlgorithmIdentification14 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 CnttNcrptnAlgo"`
NcrptdData Max100KBinary `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 NcrptdData"`
}
// May be one of TR31, TR34
type EncryptionFormat1Code string
type EnvelopedData4 struct {
Vrsn float64 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Vrsn,omitempty"`
Rcpt []Recipient4Choice `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Rcpt"`
NcrptdCntt EncryptedContent3 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 NcrptdCntt,omitempty"`
}
// Must match the pattern [0-9]{3}
type Exact3NumericText string
type GenericIdentification1 struct {
Id Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Id"`
SchmeNm Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 SchmeNm,omitempty"`
Issr Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Issr,omitempty"`
}
type GenericIdentification77 struct {
Id Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Id"`
Tp PartyType12Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Tp"`
Issr PartyType12Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Issr,omitempty"`
Ctry Min2Max3AlphaText `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Ctry,omitempty"`
ShrtNm Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 ShrtNm,omitempty"`
}
type GeographicCoordinates1 struct {
Lat Max16Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Lat"`
Long Max16Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Long"`
}
type GeographicLocation1Choice struct {
GeogcCordints GeographicCoordinates1 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 GeogcCordints,omitempty"`
UTMCordints UTMCoordinates1 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 UTMCordints,omitempty"`
}
type Header31 struct {
MsgFctn ATMMessageFunction2 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 MsgFctn"`
PrtcolVrsn Max6Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 PrtcolVrsn"`
XchgId Max3NumericText `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 XchgId"`
CreDtTm ISODateTime `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 CreDtTm"`
InitgPty Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 InitgPty"`
RcptPty Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 RcptPty,omitempty"`
PrcStat Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 PrcStat,omitempty"`
Tracblt []Traceability4 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 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.007.001.02 Issr"`
SrlNb Max35Binary `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 SrlNb"`
}
type KEK4 struct {
Vrsn float64 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Vrsn,omitempty"`
KEKId KEKIdentifier2 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 KEKId"`
KeyNcrptnAlgo AlgorithmIdentification13 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 KeyNcrptnAlgo"`
NcrptdKey Max500Binary `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 NcrptdKey"`
}
type KEKIdentifier2 struct {
KeyId Max140Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 KeyId"`
KeyVrsn Max140Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 KeyVrsn"`
SeqNb float64 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 SeqNb,omitempty"`
DerivtnId Min5Max16Binary `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 DerivtnId,omitempty"`
}
type KeyTransport4 struct {
Vrsn float64 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Vrsn,omitempty"`
RcptId Recipient5Choice `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 RcptId"`
KeyNcrptnAlgo AlgorithmIdentification11 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 KeyNcrptnAlgo"`
NcrptdKey Max5000Binary `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 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
// May be no more than 20000 items long
type Max20000Text string
// May be no more than 256 items long
type Max256Text string
// May be no more than 350 items long
type Max350Text 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
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
// May be one of BALN, GSTS, DSEC, INQC, KEYQ, SSTS
type MessageFunction8Code 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
// May be one of MREF, TEXT, HTML
type OutputFormat1Code string
// May be one of MREF, SREF, TEXT, HTML
type OutputFormat2Code string
type Parameter4 struct {
NcrptnFrmt EncryptionFormat1Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 NcrptnFrmt,omitempty"`
DgstAlgo Algorithm11Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 DgstAlgo,omitempty"`
MskGnrtrAlgo AlgorithmIdentification12 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 MskGnrtrAlgo,omitempty"`
}
type Parameter5 struct {
DgstAlgo Algorithm11Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 DgstAlgo,omitempty"`
}
type Parameter6 struct {
NcrptnFrmt EncryptionFormat1Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 NcrptnFrmt,omitempty"`
InitlstnVctr Max500Binary `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 InitlstnVctr,omitempty"`
BPddg BytePadding1Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 BPddg,omitempty"`
}
type Parameter7 struct {
InitlstnVctr Max500Binary `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 InitlstnVctr,omitempty"`
BPddg BytePadding1Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 BPddg,omitempty"`
}
type PartyIdentification72Choice struct {
AnyBIC AnyBICIdentifier `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 AnyBIC,omitempty"`
PrtryId GenericIdentification1 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 PrtryId,omitempty"`
}
// May be one of ACQR, ATMG, CISP, DLIS, HSTG, ITAG, OATM
type PartyType12Code string
type PlainCardData19 struct {
PAN Min8Max28NumericText `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 PAN,omitempty"`
CardSeqNb Min2Max3NumericText `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 CardSeqNb,omitempty"`
FctvDt Max10Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 FctvDt,omitempty"`
XpryDt Max10Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 XpryDt,omitempty"`
Trck1 Max76Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Trck1,omitempty"`
Trck2 Max37Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Trck2,omitempty"`
Trck3 Max104Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Trck3,omitempty"`
}
type PostalAddress17 struct {
AdrLine []Max70Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 AdrLine,omitempty"`
StrtNm Max70Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 StrtNm,omitempty"`
BldgNb Max16Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 BldgNb,omitempty"`
PstCd Max16Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 PstCd,omitempty"`
TwnNm Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 TwnNm"`
CtrySubDvsn []Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 CtrySubDvsn,omitempty"`
Ctry CountryCode `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Ctry"`
GLctn GeographicLocation1Choice `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 GLctn,omitempty"`
}
type Recipient4Choice struct {
KeyTrnsprt KeyTransport4 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 KeyTrnsprt,omitempty"`
KEK KEK4 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 KEK,omitempty"`
KeyIdr KEKIdentifier2 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 KeyIdr,omitempty"`
}
type Recipient5Choice struct {
IssrAndSrlNb IssuerAndSerialNumber1 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 IssrAndSrlNb,omitempty"`
KeyIdr KEKIdentifier2 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 KeyIdr,omitempty"`
}
type RelativeDistinguishedName1 struct {
AttrTp AttributeType1Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 AttrTp"`
AttrVal Max140Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 AttrVal"`
}
// May be one of APPR, DECL, PART
type Response4Code string
type ResponseType7 struct {
Rspn Response4Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Rspn"`
RspnRsn ResultDetail4Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 RspnRsn,omitempty"`
AddtlRspnInf Max140Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 AddtlRspnInf,omitempty"`
}
// May be one of ACTF, ACQS, AMLV, AMTA, AUTH, BANK, CRDR, CRDF, ACTC, CTVG, DBER, FEES, TXNL, AMTD, NMBD, CRDX, FDCL, FMTR, TXNG, FNDI, ACPI, AMTI, ADDI, BRHI, CHDI, CRDI, CTFV, AMTO, PINV, TKKO, SGNI, TKID, TXNV, DATI, ISSP, ISSF, ISSO, ISST, ISSU, KEYS, LBLA, CRDL, MACR, MACK, ICCM, PINN, CRDA, LBLU, PINA, NPRA, OFFL, ONLP, NPRC, TXNM, OTHR, BALO, SEQO, PINC, PIND, PINS, PINX, PINE, QMAX, RECD, CRDT, SECV, SRVU, SFWE, SPCC, CRDS, SRCH, CNTC, FRDS, SYSP, SYSM, TRMI, ACTT, TTLV, TXNU, TXND, ORGF, UNBO, UNBP, UNBC, CMKY, CRDU, SVSU, VNDR, VNDF, AMTW, NMBW, CRDW, MEDI, SRVI
type ResultDetail4Code string
type SimpleIdentificationInformation4 struct {
Id Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Id"`
}
// May be one of ASAP, CRIT, DTIM, ENCS
type TMSContactLevel2Code string
type TerminalHosting1 struct {
Ctgy TransactionEnvironment3Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Ctgy,omitempty"`
Id Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Id,omitempty"`
}
type Traceability4 struct {
RlayId GenericIdentification77 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 RlayId"`
SeqNb Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 SeqNb,omitempty"`
TracDtTmIn ISODateTime `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 TracDtTmIn"`
TracDtTmOut ISODateTime `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 TracDtTmOut"`
}
// May be one of BRCH, MERC, OTHR
type TransactionEnvironment3Code string
type TransactionIdentifier1 struct {
TxDtTm ISODateTime `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 TxDtTm"`
TxRef Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 TxRef"`
}
type TransactionVerificationResult5 struct {
Mtd AuthenticationMethod7Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Mtd"`
VrfctnNtty AuthenticationEntity2Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 VrfctnNtty,omitempty"`
Rslt Verification1Code `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 Rslt,omitempty"`
AddtlRslt Max500Text `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 AddtlRslt,omitempty"`
AuthntcnTkn Max140Binary `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 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.007.001.02 UTMZone"`
UTMEstwrd float64 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 UTMEstwrd"`
UTMNrthwrd float64 `xml:"urn:iso:std:iso:20022:tech:xsd:catp.007.001.02 UTMNrthwrd"`
}
// 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
}