-
Notifications
You must be signed in to change notification settings - Fork 0
/
pacs.004.001.11.xsd.go
1474 lines (1289 loc) · 80.9 KB
/
pacs.004.001.11.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
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by gen. DO NOT EDIT.
package iso20022_pacs_004_001_11
import (
"bytes"
"encoding/base64"
"encoding/xml"
"time"
)
// AccountIdentification4Choice
//
// Specifies the unique identification of an account as assigned by the account servicer.
type AccountIdentification4Choice struct {
IBAN IBAN2007Identifier `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 IBAN,omitempty"`
Othr GenericAccountIdentification1 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Othr,omitempty"`
}
// AccountSchemeName1Choice
//
// Sets of elements to identify a name of the identification scheme.
type AccountSchemeName1Choice struct {
Cd ExternalAccountIdentification1Code `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Cd,omitempty"`
Prtry Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Prtry,omitempty"`
}
// ActiveCurrencyAndAmount
//
// A number of monetary units specified in an active currency where the unit of currency is explicit and compliant with ISO 4217.
type ActiveCurrencyAndAmount struct {
Value float64 `xml:",chardata"`
Ccy ActiveCurrencyCode `xml:"Ccy,attr"`
}
// Must match the pattern [A-Z]{3,3}
type ActiveCurrencyCode string
// ActiveOrHistoricCurrencyAndAmount
//
// A number of monetary units specified in an active or a historic currency where the unit of currency is explicit and compliant with ISO 4217.
type ActiveOrHistoricCurrencyAndAmount struct {
Value float64 `xml:",chardata"`
Ccy ActiveOrHistoricCurrencyCode `xml:"Ccy,attr"`
}
// Must match the pattern [A-Z]{3,3}
type ActiveOrHistoricCurrencyCode string
// May be one of ADDR, PBOX, HOME, BIZZ, MLTO, DLVY
type AddressType2Code string
// AddressType3Choice
//
// Choice of formats for the type of address.
type AddressType3Choice struct {
Cd AddressType2Code `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Cd,omitempty"`
Prtry GenericIdentification30 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Prtry,omitempty"`
}
// AmendmentInformationDetails14
//
// Provides further details on the list of direct debit mandate elements that have been modified when the amendment indicator has been set.
type AmendmentInformationDetails14 struct {
OrgnlMndtId Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 OrgnlMndtId,omitempty"`
OrgnlCdtrSchmeId PartyIdentification135 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 OrgnlCdtrSchmeId,omitempty"`
OrgnlCdtrAgt BranchAndFinancialInstitutionIdentification6 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 OrgnlCdtrAgt,omitempty"`
OrgnlCdtrAgtAcct CashAccount40 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 OrgnlCdtrAgtAcct,omitempty"`
OrgnlDbtr PartyIdentification135 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 OrgnlDbtr,omitempty"`
OrgnlDbtrAcct CashAccount40 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 OrgnlDbtrAcct,omitempty"`
OrgnlDbtrAgt BranchAndFinancialInstitutionIdentification6 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 OrgnlDbtrAgt,omitempty"`
OrgnlDbtrAgtAcct CashAccount40 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 OrgnlDbtrAgtAcct,omitempty"`
OrgnlFnlColltnDt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 OrgnlFnlColltnDt,omitempty"`
OrgnlFrqcy Frequency36Choice `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 OrgnlFrqcy,omitempty"`
OrgnlRsn MandateSetupReason1Choice `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 OrgnlRsn,omitempty"`
OrgnlTrckgDays Exact2NumericText `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 OrgnlTrckgDays,omitempty"`
}
// AmountType4Choice
//
// Specifies the amount of money to be moved between the debtor and creditor, before deduction of charges, expressed in the currency as ordered by the initiating party.
type AmountType4Choice struct {
InstdAmt ActiveOrHistoricCurrencyAndAmount `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 InstdAmt,omitempty"`
EqvtAmt EquivalentAmount2 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 EqvtAmt,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
// Authorisation1Choice
//
// Provides the details on the user identification or any user key that allows to check if the initiating party is allowed to issue the transaction.
type Authorisation1Choice struct {
Cd Authorisation1Code `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Cd,omitempty"`
Prtry Max128Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Prtry,omitempty"`
}
// May be one of AUTH, FDET, FSUM, ILEV
type Authorisation1Code 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
// BranchAndFinancialInstitutionIdentification6
//
// Unique and unambiguous identification of a financial institution or a branch of a financial institution.
type BranchAndFinancialInstitutionIdentification6 struct {
FinInstnId FinancialInstitutionIdentification18 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 FinInstnId"`
BrnchId BranchData3 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 BrnchId,omitempty"`
}
// BranchData3
//
// Information that locates and identifies a specific branch of a financial institution.
type BranchData3 struct {
Id Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Id,omitempty"`
LEI LEIIdentifier `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 LEI,omitempty"`
Nm Max140Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Nm,omitempty"`
PstlAdr PostalAddress24 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 PstlAdr,omitempty"`
}
// CashAccount40
//
// Provides the details to identify an account.
type CashAccount40 struct {
Id AccountIdentification4Choice `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Id,omitempty"`
Tp CashAccountType2Choice `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Tp,omitempty"`
Ccy ActiveOrHistoricCurrencyCode `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Ccy,omitempty"`
Nm Max70Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Nm,omitempty"`
Prxy ProxyAccountIdentification1 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Prxy,omitempty"`
}
// CashAccountType2Choice
//
// Nature or use of the account.
type CashAccountType2Choice struct {
Cd ExternalCashAccountType1Code `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Cd,omitempty"`
Prtry Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Prtry,omitempty"`
}
// CategoryPurpose1Choice
//
// Specifies the high level purpose of the instruction based on a set of pre-defined categories.
// Usage: This is used by the initiating party to provide information concerning the processing of the payment. It is likely to trigger special processing by any of the agents involved in the payment chain.
type CategoryPurpose1Choice struct {
Cd ExternalCategoryPurpose1Code `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Cd,omitempty"`
Prtry Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Prtry,omitempty"`
}
// May be one of DEBT, CRED, SHAR, SLEV
type ChargeBearerType1Code string
// Charges7
//
// Provides information on the charges related to the payment transaction.
type Charges7 struct {
Amt ActiveOrHistoricCurrencyAndAmount `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Amt"`
Agt BranchAndFinancialInstitutionIdentification6 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Agt"`
}
// May be one of RTGS, RTNS, MPNS, BOOK
type ClearingChannel2Code string
// ClearingSystemIdentification2Choice
//
// Choice of a clearing system identifier.
type ClearingSystemIdentification2Choice struct {
Cd ExternalClearingSystemIdentification1Code `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Cd,omitempty"`
Prtry Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Prtry,omitempty"`
}
// ClearingSystemIdentification3Choice
//
// Specifies the clearing system identification.
type ClearingSystemIdentification3Choice struct {
Cd ExternalCashClearingSystem1Code `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Cd,omitempty"`
Prtry Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Prtry,omitempty"`
}
// ClearingSystemMemberIdentification2
//
// Unique identification, as assigned by a clearing system, to unambiguously identify a member of the clearing system.
type ClearingSystemMemberIdentification2 struct {
ClrSysId ClearingSystemIdentification2Choice `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 ClrSysId,omitempty"`
MmbId Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 MmbId"`
}
// Contact4
//
// Specifies the details of the contact person.
type Contact4 struct {
NmPrfx NamePrefix2Code `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 NmPrfx,omitempty"`
Nm Max140Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Nm,omitempty"`
PhneNb PhoneNumber `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 PhneNb,omitempty"`
MobNb PhoneNumber `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 MobNb,omitempty"`
FaxNb PhoneNumber `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 FaxNb,omitempty"`
EmailAdr Max2048Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 EmailAdr,omitempty"`
EmailPurp Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 EmailPurp,omitempty"`
JobTitl Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 JobTitl,omitempty"`
Rspnsblty Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Rspnsblty,omitempty"`
Dept Max70Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Dept,omitempty"`
Othr []OtherContact1 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Othr,omitempty"`
PrefrdMtd PreferredContactMethod1Code `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 PrefrdMtd,omitempty"`
}
// Must match the pattern [A-Z]{2,2}
type CountryCode string
// May be one of CRDT, DBIT
type CreditDebitCode string
// CreditTransferMandateData1
//
// Provides further details related to a credit transfer mandate signed between the creditor and the debtor.
type CreditTransferMandateData1 struct {
MndtId Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 MndtId,omitempty"`
Tp MandateTypeInformation2 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Tp,omitempty"`
DtOfSgntr ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 DtOfSgntr,omitempty"`
DtOfVrfctn ISODateTime `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 DtOfVrfctn,omitempty"`
ElctrncSgntr Max10KBinary `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 ElctrncSgntr,omitempty"`
FrstPmtDt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 FrstPmtDt,omitempty"`
FnlPmtDt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 FnlPmtDt,omitempty"`
Frqcy Frequency36Choice `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Frqcy,omitempty"`
Rsn MandateSetupReason1Choice `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Rsn,omitempty"`
}
// CreditTransferTransaction52
//
// Provides further details specific to the individual transaction(s) included in the message.
type CreditTransferTransaction52 struct {
UltmtDbtr PartyIdentification135 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 UltmtDbtr,omitempty"`
InitgPty PartyIdentification135 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 InitgPty,omitempty"`
Dbtr PartyIdentification135 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Dbtr"`
DbtrAcct CashAccount40 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 DbtrAcct,omitempty"`
DbtrAgt BranchAndFinancialInstitutionIdentification6 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 DbtrAgt"`
DbtrAgtAcct CashAccount40 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 DbtrAgtAcct,omitempty"`
PrvsInstgAgt1 BranchAndFinancialInstitutionIdentification6 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 PrvsInstgAgt1,omitempty"`
PrvsInstgAgt1Acct CashAccount40 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 PrvsInstgAgt1Acct,omitempty"`
PrvsInstgAgt2 BranchAndFinancialInstitutionIdentification6 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 PrvsInstgAgt2,omitempty"`
PrvsInstgAgt2Acct CashAccount40 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 PrvsInstgAgt2Acct,omitempty"`
PrvsInstgAgt3 BranchAndFinancialInstitutionIdentification6 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 PrvsInstgAgt3,omitempty"`
PrvsInstgAgt3Acct CashAccount40 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 PrvsInstgAgt3Acct,omitempty"`
IntrmyAgt1 BranchAndFinancialInstitutionIdentification6 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 IntrmyAgt1,omitempty"`
IntrmyAgt1Acct CashAccount40 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 IntrmyAgt1Acct,omitempty"`
IntrmyAgt2 BranchAndFinancialInstitutionIdentification6 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 IntrmyAgt2,omitempty"`
IntrmyAgt2Acct CashAccount40 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 IntrmyAgt2Acct,omitempty"`
IntrmyAgt3 BranchAndFinancialInstitutionIdentification6 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 IntrmyAgt3,omitempty"`
IntrmyAgt3Acct CashAccount40 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 IntrmyAgt3Acct,omitempty"`
CdtrAgt BranchAndFinancialInstitutionIdentification6 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 CdtrAgt"`
CdtrAgtAcct CashAccount40 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 CdtrAgtAcct,omitempty"`
Cdtr PartyIdentification135 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Cdtr"`
CdtrAcct CashAccount40 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 CdtrAcct,omitempty"`
UltmtCdtr PartyIdentification135 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 UltmtCdtr,omitempty"`
InstrForCdtrAgt []InstructionForCreditorAgent3 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 InstrForCdtrAgt,omitempty"`
InstrForNxtAgt []InstructionForNextAgent1 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 InstrForNxtAgt,omitempty"`
Tax TaxInformation10 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Tax,omitempty"`
RmtInf RemittanceInformation21 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 RmtInf,omitempty"`
InstdAmt ActiveOrHistoricCurrencyAndAmount `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 InstdAmt,omitempty"`
}
// CreditorReferenceInformation2
//
// Reference information provided by the creditor to allow the identification of the underlying documents.
type CreditorReferenceInformation2 struct {
Tp CreditorReferenceType2 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Tp,omitempty"`
Ref Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Ref,omitempty"`
}
// CreditorReferenceType1Choice
//
// Specifies the type of document referred by the creditor.
type CreditorReferenceType1Choice struct {
Cd DocumentType3Code `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Cd,omitempty"`
Prtry Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Prtry,omitempty"`
}
// CreditorReferenceType2
//
// Specifies the type of creditor reference.
type CreditorReferenceType2 struct {
CdOrPrtry CreditorReferenceType1Choice `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 CdOrPrtry"`
Issr Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Issr,omitempty"`
}
// DateAndDateTime2Choice
//
// Choice between a date or a date and time format.
type DateAndDateTime2Choice struct {
Dt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Dt,omitempty"`
DtTm ISODateTime `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 DtTm,omitempty"`
}
// DateAndPlaceOfBirth1
//
// Date and place of birth of a person.
type DateAndPlaceOfBirth1 struct {
BirthDt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 BirthDt"`
PrvcOfBirth Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 PrvcOfBirth,omitempty"`
CityOfBirth Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 CityOfBirth"`
CtryOfBirth CountryCode `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 CtryOfBirth"`
}
// DatePeriod2
//
// Range of time defined by a start date and an end date.
type DatePeriod2 struct {
FrDt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 FrDt"`
ToDt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 ToDt"`
}
// DiscountAmountAndType1
//
// Specifies the amount with a specific type.
type DiscountAmountAndType1 struct {
Tp DiscountAmountType1Choice `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Tp,omitempty"`
Amt ActiveOrHistoricCurrencyAndAmount `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Amt"`
}
// DiscountAmountType1Choice
//
// Specifies the amount type.
type DiscountAmountType1Choice struct {
Cd ExternalDiscountAmountType1Code `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Cd,omitempty"`
Prtry Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Prtry,omitempty"`
}
type Document struct {
PmtRtr PaymentReturnV11 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 PmtRtr"`
}
// DocumentAdjustment1
//
// Set of elements used to provide information on the amount and reason of the document adjustment.
type DocumentAdjustment1 struct {
Amt ActiveOrHistoricCurrencyAndAmount `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Amt"`
CdtDbtInd CreditDebitCode `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 CdtDbtInd,omitempty"`
Rsn Max4Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Rsn,omitempty"`
AddtlInf Max140Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 AddtlInf,omitempty"`
}
// DocumentLineIdentification1
//
// Identifies the documents referred to in the remittance information.
type DocumentLineIdentification1 struct {
Tp DocumentLineType1 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Tp,omitempty"`
Nb Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Nb,omitempty"`
RltdDt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 RltdDt,omitempty"`
}
// DocumentLineInformation1
//
// Provides document line information.
type DocumentLineInformation1 struct {
Id []DocumentLineIdentification1 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Id"`
Desc Max2048Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Desc,omitempty"`
Amt RemittanceAmount3 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Amt,omitempty"`
}
// DocumentLineType1
//
// Specifies the type of the document line identification.
type DocumentLineType1 struct {
CdOrPrtry DocumentLineType1Choice `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 CdOrPrtry"`
Issr Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Issr,omitempty"`
}
// DocumentLineType1Choice
//
// Specifies the type of the document line identification.
type DocumentLineType1Choice struct {
Cd ExternalDocumentLineType1Code `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Cd,omitempty"`
Prtry Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Prtry,omitempty"`
}
// May be one of RADM, RPIN, FXDR, DISP, PUOR, SCOR
type DocumentType3Code string
// May be one of MSIN, CNFA, DNFA, CINV, CREN, DEBN, HIRI, SBIN, CMCN, SOAC, DISP, BOLD, VCHR, AROI, TSUT, PUOR
type DocumentType6Code string
// EquivalentAmount2
//
// Amount of money to be moved between the debtor and creditor, expressed in the currency of the debtor's account, and the currency in which the amount is to be moved.
type EquivalentAmount2 struct {
Amt ActiveOrHistoricCurrencyAndAmount `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Amt"`
CcyOfTrf ActiveOrHistoricCurrencyCode `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 CcyOfTrf"`
}
// Must match the pattern [0-9]{2}
type Exact2NumericText string
// Must match the pattern [a-zA-Z0-9]{4}
type Exact4AlphaNumericText 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 3 items long
type ExternalCashClearingSystem1Code string
// May be no more than 4 items long
type ExternalCategoryPurpose1Code string
// May be no more than 5 items long
type ExternalClearingSystemIdentification1Code string
// May be no more than 4 items long
type ExternalCreditorAgentInstruction1Code string
// May be no more than 4 items long
type ExternalDiscountAmountType1Code string
// May be no more than 4 items long
type ExternalDocumentLineType1Code string
// May be no more than 4 items long
type ExternalFinancialInstitutionIdentification1Code string
// May be no more than 4 items long
type ExternalGarnishmentType1Code string
// May be no more than 35 items long
type ExternalLocalInstrument1Code string
// May be no more than 4 items long
type ExternalMandateSetupReason1Code 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
// May be no more than 4 items long
type ExternalPurpose1Code string
// May be no more than 4 items long
type ExternalReturnReason1Code string
// May be no more than 4 items long
type ExternalServiceLevel1Code string
// May be no more than 4 items long
type ExternalTaxAmountType1Code string
// FinancialIdentificationSchemeName1Choice
//
// Sets of elements to identify a name of the organisation identification scheme.
type FinancialIdentificationSchemeName1Choice struct {
Cd ExternalFinancialInstitutionIdentification1Code `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Cd,omitempty"`
Prtry Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Prtry,omitempty"`
}
// FinancialInstitutionIdentification18
//
// Specifies the details to identify a financial institution.
type FinancialInstitutionIdentification18 struct {
BICFI BICFIDec2014Identifier `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 BICFI,omitempty"`
ClrSysMmbId ClearingSystemMemberIdentification2 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 ClrSysMmbId,omitempty"`
LEI LEIIdentifier `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 LEI,omitempty"`
Nm Max140Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Nm,omitempty"`
PstlAdr PostalAddress24 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 PstlAdr,omitempty"`
Othr GenericFinancialIdentification1 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Othr,omitempty"`
}
// Frequency36Choice
//
// Choice of format for a frequency, for example, the frequency of payment.
type Frequency36Choice struct {
Tp Frequency6Code `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Tp,omitempty"`
Prd FrequencyPeriod1 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Prd,omitempty"`
PtInTm FrequencyAndMoment1 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 PtInTm,omitempty"`
}
// May be one of YEAR, MNTH, QURT, MIAN, WEEK, DAIL, ADHO, INDA, FRTN
type Frequency6Code string
// FrequencyAndMoment1
//
// Defines a frequency in terms a specific moment within a specified period type.
type FrequencyAndMoment1 struct {
Tp Frequency6Code `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Tp"`
PtInTm Exact2NumericText `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 PtInTm"`
}
// FrequencyPeriod1
//
// Defines a frequency in terms on counts per period for a specific period type.
type FrequencyPeriod1 struct {
Tp Frequency6Code `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Tp"`
CntPerPrd float64 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 CntPerPrd"`
}
// Garnishment3
//
// Provides remittance information about a payment for garnishment-related purposes.
type Garnishment3 struct {
Tp GarnishmentType1 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Tp"`
Grnshee PartyIdentification135 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Grnshee,omitempty"`
GrnshmtAdmstr PartyIdentification135 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 GrnshmtAdmstr,omitempty"`
RefNb Max140Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 RefNb,omitempty"`
Dt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Dt,omitempty"`
RmtdAmt ActiveOrHistoricCurrencyAndAmount `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 RmtdAmt,omitempty"`
FmlyMdclInsrncInd bool `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 FmlyMdclInsrncInd,omitempty"`
MplyeeTermntnInd bool `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 MplyeeTermntnInd,omitempty"`
}
// GarnishmentType1
//
// Specifies the type of garnishment.
type GarnishmentType1 struct {
CdOrPrtry GarnishmentType1Choice `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 CdOrPrtry"`
Issr Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Issr,omitempty"`
}
// GarnishmentType1Choice
//
// Specifies the type of garnishment.
type GarnishmentType1Choice struct {
Cd ExternalGarnishmentType1Code `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Cd,omitempty"`
Prtry Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Prtry,omitempty"`
}
// GenericAccountIdentification1
//
// Information related to a generic account identification.
type GenericAccountIdentification1 struct {
Id Max34Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Id"`
SchmeNm AccountSchemeName1Choice `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 SchmeNm,omitempty"`
Issr Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Issr,omitempty"`
}
// GenericFinancialIdentification1
//
// Information related to an identification of a financial institution.
type GenericFinancialIdentification1 struct {
Id Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Id"`
SchmeNm FinancialIdentificationSchemeName1Choice `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 SchmeNm,omitempty"`
Issr Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Issr,omitempty"`
}
// GenericIdentification30
//
// Information related to an identification, for example, party identification or account identification.
type GenericIdentification30 struct {
Id Exact4AlphaNumericText `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Id"`
Issr Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Issr"`
SchmeNm Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 SchmeNm,omitempty"`
}
// GenericOrganisationIdentification1
//
// Information related to an identification of an organisation.
type GenericOrganisationIdentification1 struct {
Id Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Id"`
SchmeNm OrganisationIdentificationSchemeName1Choice `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 SchmeNm,omitempty"`
Issr Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Issr,omitempty"`
}
// GenericPersonIdentification1
//
// Information related to an identification of a person.
type GenericPersonIdentification1 struct {
Id Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Id"`
SchmeNm PersonIdentificationSchemeName1Choice `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 SchmeNm,omitempty"`
Issr Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Issr,omitempty"`
}
// GroupHeader99
//
// Set of characteristics shared by all individual transactions included in the message.
type GroupHeader99 struct {
MsgId Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 MsgId"`
CreDtTm ISODateTime `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 CreDtTm"`
Authstn []Authorisation1Choice `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Authstn,omitempty"`
BtchBookg bool `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 BtchBookg,omitempty"`
NbOfTxs Max15NumericText `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 NbOfTxs"`
CtrlSum float64 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 CtrlSum,omitempty"`
GrpRtr bool `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 GrpRtr,omitempty"`
TtlRtrdIntrBkSttlmAmt ActiveCurrencyAndAmount `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 TtlRtrdIntrBkSttlmAmt,omitempty"`
IntrBkSttlmDt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 IntrBkSttlmDt,omitempty"`
SttlmInf SettlementInstruction11 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 SttlmInf"`
PmtTpInf PaymentTypeInformation28 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 PmtTpInf,omitempty"`
InstgAgt BranchAndFinancialInstitutionIdentification6 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 InstgAgt,omitempty"`
InstdAgt BranchAndFinancialInstitutionIdentification6 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 InstdAgt,omitempty"`
}
// Must match the pattern [A-Z]{2,2}[0-9]{2,2}[a-zA-Z0-9]{1,30}
type IBAN2007Identifier string
// ISODate
//
// A particular point in the progression of time in a calendar year expressed in the YYYY-MM-DD format. This representation is defined in "XML Schema Part 2: Datatypes Second Edition - W3C Recommendation 28 October 2004" which is aligned with ISO 8601.
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()
}
// ISODateTime
//
// A particular point in the progression of time defined by a mandatory date and a mandatory time component, expressed in either UTC time format (YYYY-MM-DDThh:mm:ss.sssZ), local time with UTC offset format (YYYY-MM-DDThh:mm:ss.sss+/-hh:mm), or local time format (YYYY-MM-DDThh:mm:ss.sss). These representations are defined in "XML Schema Part 2: Datatypes Second Edition - W3C Recommendation 28 October 2004" which is aligned with ISO 8601.
// Note on the time format:
// 1) beginning / end of calendar day
// 00:00:00 = the beginning of a calendar day
// 24:00:00 = the end of a calendar day
// 2) fractions of second in time format
// Decimal fractions of seconds may be included. In this case, the involved parties shall agree on the maximum number of digits that are allowed.
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()
}
// ISOTime
//
// A particular point in the progression of time in a calendar day expressed in either UTC time format (hh:mm:ss.sssZ), local time with UTC offset format (hh:mm:ss.sss+/-hh:mm), or local time format (hh:mm:ss.sss). These representations are defined in "XML Schema Part 2: Datatypes Second Edition - W3C Recommendation 28 October 2004" which is aligned with ISO 8601.
// Note on the time format:
// 1) beginning / end of calendar day
// 00:00:00 = the beginning of a calendar day
// 24:00:00 = the end of a calendar day
// 2) fractions of second in time format
// Decimal fractions of seconds may be included. In this case, the involved parties shall agree on the maximum number of digits that are allowed.
type ISOTime time.Time
func (t *ISOTime) UnmarshalText(text []byte) error {
return (*xsdTime)(t).UnmarshalText(text)
}
func (t ISOTime) MarshalText() ([]byte, error) {
return xsdTime(t).MarshalText()
}
// ISOYear
//
// Year represented by YYYY (ISO 8601).
type ISOYear time.Time
func (t *ISOYear) UnmarshalText(text []byte) error {
return (*xsdGYear)(t).UnmarshalText(text)
}
func (t ISOYear) MarshalText() ([]byte, error) {
return xsdGYear(t).MarshalText()
}
// May be one of PHOA, TELA
type Instruction4Code string
// InstructionForCreditorAgent3
//
// Further information related to the processing of the payment instruction that may need to be acted upon by the creditor's agent. The instruction may relate to a level of service, or may be an instruction that has to be executed by the creditor's agent, or may be information required by the creditor's agent.
type InstructionForCreditorAgent3 struct {
Cd ExternalCreditorAgentInstruction1Code `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Cd,omitempty"`
InstrInf Max140Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 InstrInf,omitempty"`
}
// InstructionForNextAgent1
//
// Further information related to the processing of the payment instruction that may need to be acted upon by an other agent. The instruction may relate to a level of service, or may be an instruction that has to be executed by the creditor's agent, or may be information required by the other agent.
type InstructionForNextAgent1 struct {
Cd Instruction4Code `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Cd,omitempty"`
InstrInf Max140Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 InstrInf,omitempty"`
}
// Must match the pattern [A-Z0-9]{18,18}[0-9]{2,2}
type LEIIdentifier string
// LocalInstrument2Choice
//
// Set of elements that further identifies the type of local instruments being requested by the initiating party.
type LocalInstrument2Choice struct {
Cd ExternalLocalInstrument1Code `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Cd,omitempty"`
Prtry Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Prtry,omitempty"`
}
// MandateClassification1Choice
//
// Specifies the high level purpose of the instruction based on a set of pre-defined categories.
// Usage: This is used by the initiating party to provide information concerning the processing of the payment. It is likely to trigger special processing by any of the agents involved in the payment chain.
type MandateClassification1Choice struct {
Cd MandateClassification1Code `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Cd,omitempty"`
Prtry Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Prtry,omitempty"`
}
// May be one of FIXE, USGB, VARI
type MandateClassification1Code string
// MandateRelatedData2Choice
//
// Choice of mandate related information.
type MandateRelatedData2Choice struct {
DrctDbtMndt MandateRelatedInformation15 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 DrctDbtMndt,omitempty"`
CdtTrfMndt CreditTransferMandateData1 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 CdtTrfMndt,omitempty"`
}
// MandateRelatedInformation15
//
// Provides further details related to a direct debit mandate signed between the creditor and the debtor.
type MandateRelatedInformation15 struct {
MndtId Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 MndtId,omitempty"`
DtOfSgntr ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 DtOfSgntr,omitempty"`
AmdmntInd bool `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 AmdmntInd,omitempty"`
AmdmntInfDtls AmendmentInformationDetails14 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 AmdmntInfDtls,omitempty"`
ElctrncSgntr Max1025Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 ElctrncSgntr,omitempty"`
FrstColltnDt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 FrstColltnDt,omitempty"`
FnlColltnDt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 FnlColltnDt,omitempty"`
Frqcy Frequency36Choice `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Frqcy,omitempty"`
Rsn MandateSetupReason1Choice `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Rsn,omitempty"`
TrckgDays Exact2NumericText `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 TrckgDays,omitempty"`
}
// MandateSetupReason1Choice
//
// Specifies the reason for the setup of the mandate.
type MandateSetupReason1Choice struct {
Cd ExternalMandateSetupReason1Code `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Cd,omitempty"`
Prtry Max70Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Prtry,omitempty"`
}
// MandateTypeInformation2
//
// Set of elements used to further detail the information related to the type of payment.
type MandateTypeInformation2 struct {
SvcLvl ServiceLevel8Choice `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 SvcLvl,omitempty"`
LclInstrm LocalInstrument2Choice `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 LclInstrm,omitempty"`
CtgyPurp CategoryPurpose1Choice `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 CtgyPurp,omitempty"`
Clssfctn MandateClassification1Choice `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Clssfctn,omitempty"`
}
// May be no more than 1025 items long
type Max1025Text string
// May be no more than 105 items long
type Max105Text string
// Max10KBinary
//
// Binary data of 10K maximum.
type Max10KBinary []byte
func (t *Max10KBinary) UnmarshalText(text []byte) error {
return (*xsdBase64Binary)(t).UnmarshalText(text)
}
func (t Max10KBinary) MarshalText() ([]byte, error) {
return xsdBase64Binary(t).MarshalText()
}
// 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 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
// OrganisationIdentification29
//
// Unique and unambiguous way to identify an organisation.
type OrganisationIdentification29 struct {
AnyBIC AnyBICDec2014Identifier `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 AnyBIC,omitempty"`
LEI LEIIdentifier `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 LEI,omitempty"`
Othr []GenericOrganisationIdentification1 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Othr,omitempty"`
}
// OrganisationIdentificationSchemeName1Choice
//
// Sets of elements to identify a name of the organisation identification scheme.
type OrganisationIdentificationSchemeName1Choice struct {
Cd ExternalOrganisationIdentification1Code `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Cd,omitempty"`
Prtry Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Prtry,omitempty"`
}
// OriginalGroupHeader18
//
// Provides information on the original group, to which the message refers.
type OriginalGroupHeader18 struct {
OrgnlMsgId Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 OrgnlMsgId"`
OrgnlMsgNmId Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 OrgnlMsgNmId"`
OrgnlCreDtTm ISODateTime `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 OrgnlCreDtTm,omitempty"`
RtrRsnInf []PaymentReturnReason6 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 RtrRsnInf,omitempty"`
}
// OriginalGroupInformation29
//
// Unique and unambiguous identifier of the group of transactions as assigned by the original instructing party.
type OriginalGroupInformation29 struct {
OrgnlMsgId Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 OrgnlMsgId"`
OrgnlMsgNmId Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 OrgnlMsgNmId"`
OrgnlCreDtTm ISODateTime `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 OrgnlCreDtTm,omitempty"`
}
// OriginalTransactionReference36
//
// Specifies key elements as defined in the original transaction.
type OriginalTransactionReference36 struct {
IntrBkSttlmAmt ActiveOrHistoricCurrencyAndAmount `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 IntrBkSttlmAmt,omitempty"`
Amt AmountType4Choice `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Amt,omitempty"`
IntrBkSttlmDt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 IntrBkSttlmDt,omitempty"`
ReqdColltnDt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 ReqdColltnDt,omitempty"`
ReqdExctnDt DateAndDateTime2Choice `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 ReqdExctnDt,omitempty"`
CdtrSchmeId PartyIdentification135 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 CdtrSchmeId,omitempty"`
SttlmInf SettlementInstruction11 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 SttlmInf,omitempty"`
PmtTpInf PaymentTypeInformation27 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 PmtTpInf,omitempty"`
PmtMtd PaymentMethod4Code `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 PmtMtd,omitempty"`
MndtRltdInf MandateRelatedData2Choice `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 MndtRltdInf,omitempty"`
RmtInf RemittanceInformation21 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 RmtInf,omitempty"`
UltmtDbtr Party40Choice `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 UltmtDbtr,omitempty"`
Dbtr Party40Choice `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Dbtr,omitempty"`
DbtrAcct CashAccount40 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 DbtrAcct,omitempty"`
DbtrAgt BranchAndFinancialInstitutionIdentification6 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 DbtrAgt,omitempty"`
DbtrAgtAcct CashAccount40 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 DbtrAgtAcct,omitempty"`
CdtrAgt BranchAndFinancialInstitutionIdentification6 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 CdtrAgt,omitempty"`
CdtrAgtAcct CashAccount40 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 CdtrAgtAcct,omitempty"`
Cdtr Party40Choice `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Cdtr,omitempty"`
CdtrAcct CashAccount40 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 CdtrAcct,omitempty"`
UltmtCdtr Party40Choice `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 UltmtCdtr,omitempty"`
Purp Purpose2Choice `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Purp,omitempty"`
UndrlygCstmrCdtTrf CreditTransferTransaction52 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 UndrlygCstmrCdtTrf,omitempty"`
}
// OtherContact1
//
// Communication device number or electronic address used for communication.
type OtherContact1 struct {
ChanlTp Max4Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 ChanlTp"`
Id Max128Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Id,omitempty"`
}
// Party38Choice
//
// Nature or use of the account.
type Party38Choice struct {
OrgId OrganisationIdentification29 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 OrgId,omitempty"`
PrvtId PersonIdentification13 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 PrvtId,omitempty"`
}
// Party40Choice
//
// Identification of a person, an organisation or a financial institution.
type Party40Choice struct {
Pty PartyIdentification135 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Pty,omitempty"`
Agt BranchAndFinancialInstitutionIdentification6 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Agt,omitempty"`
}
// PartyIdentification135
//
// Specifies the identification of a person or an organisation.
type PartyIdentification135 struct {
Nm Max140Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Nm,omitempty"`
PstlAdr PostalAddress24 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 PstlAdr,omitempty"`
Id Party38Choice `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Id,omitempty"`
CtryOfRes CountryCode `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 CtryOfRes,omitempty"`
CtctDtls Contact4 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 CtctDtls,omitempty"`
}
// May be one of CHK, TRF, DD, TRA
type PaymentMethod4Code string
// PaymentReturnReason6
//
// Provides further details on the reason of the return of the transaction.
type PaymentReturnReason6 struct {
Orgtr PartyIdentification135 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Orgtr,omitempty"`
Rsn ReturnReason5Choice `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Rsn,omitempty"`
AddtlInf []Max105Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 AddtlInf,omitempty"`
}
// PaymentReturnV11
//
// Scope
// The PaymentReturn message is sent by an agent to the previous agent in the payment chain to undo a payment previously settled.
// Usage
// The PaymentReturn message is exchanged between agents to return funds after settlement of credit transfer instructions (that is FIToFICustomerCreditTransfer message and FinancialInstitutionCreditTransfer message) or direct debit instructions (FIToFICustomerDirectDebit message).
// The PaymentReturn message should not be used between agents and non-financial institution customers. Non-financial institution customers will be informed about a debit or a credit on their account(s) through a BankToCustomerDebitCreditNotification message ('notification') and/or BankToCustomerAccountReport/BankToCustomerStatement message ('statement').
// The PaymentReturn message can be used to return single instructions or multiple instructions from one or different files.
// The PaymentReturn message can be used in domestic and cross-border scenarios.
// The PaymentReturn message refers to the original instruction(s) by means of references only or by means of references and a set of elements from the original instruction.
type PaymentReturnV11 struct {
GrpHdr GroupHeader99 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 GrpHdr"`
OrgnlGrpInf OriginalGroupHeader18 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 OrgnlGrpInf,omitempty"`
TxInf []PaymentTransaction133 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 TxInf,omitempty"`
SplmtryData []SupplementaryData1 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 SplmtryData,omitempty"`
}
// PaymentTransaction133
//
// Provides further details on the reference and status on the original transactions, included in the original instruction, to which the return message applies.
type PaymentTransaction133 struct {
RtrId Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 RtrId,omitempty"`
OrgnlGrpInf OriginalGroupInformation29 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 OrgnlGrpInf,omitempty"`
OrgnlInstrId Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 OrgnlInstrId,omitempty"`
OrgnlEndToEndId Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 OrgnlEndToEndId,omitempty"`
OrgnlTxId Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 OrgnlTxId,omitempty"`
OrgnlUETR UUIDv4Identifier `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 OrgnlUETR,omitempty"`
OrgnlClrSysRef Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 OrgnlClrSysRef,omitempty"`
OrgnlIntrBkSttlmAmt ActiveOrHistoricCurrencyAndAmount `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 OrgnlIntrBkSttlmAmt,omitempty"`
OrgnlIntrBkSttlmDt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 OrgnlIntrBkSttlmDt,omitempty"`
PmtTpInf PaymentTypeInformation28 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 PmtTpInf,omitempty"`
RtrdIntrBkSttlmAmt ActiveCurrencyAndAmount `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 RtrdIntrBkSttlmAmt"`
IntrBkSttlmDt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 IntrBkSttlmDt,omitempty"`
SttlmPrty Priority3Code `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 SttlmPrty,omitempty"`
SttlmTmIndctn SettlementDateTimeIndication1 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 SttlmTmIndctn,omitempty"`
SttlmTmReq SettlementTimeRequest2 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 SttlmTmReq,omitempty"`
RtrdInstdAmt ActiveOrHistoricCurrencyAndAmount `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 RtrdInstdAmt,omitempty"`
XchgRate float64 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 XchgRate,omitempty"`
CompstnAmt ActiveOrHistoricCurrencyAndAmount `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 CompstnAmt,omitempty"`
ChrgBr ChargeBearerType1Code `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 ChrgBr,omitempty"`
ChrgsInf []Charges7 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 ChrgsInf,omitempty"`
ClrSysRef Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 ClrSysRef,omitempty"`
InstgAgt BranchAndFinancialInstitutionIdentification6 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 InstgAgt,omitempty"`
InstdAgt BranchAndFinancialInstitutionIdentification6 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 InstdAgt,omitempty"`
RtrChain TransactionParties10 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 RtrChain,omitempty"`
RtrRsnInf []PaymentReturnReason6 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 RtrRsnInf,omitempty"`
OrgnlTxRef OriginalTransactionReference36 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 OrgnlTxRef,omitempty"`
SplmtryData []SupplementaryData1 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 SplmtryData,omitempty"`
}
// PaymentTypeInformation27
//
// Provides further details of the type of payment.
type PaymentTypeInformation27 struct {
InstrPrty Priority2Code `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 InstrPrty,omitempty"`
ClrChanl ClearingChannel2Code `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 ClrChanl,omitempty"`
SvcLvl []ServiceLevel8Choice `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 SvcLvl,omitempty"`
LclInstrm LocalInstrument2Choice `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 LclInstrm,omitempty"`
SeqTp SequenceType3Code `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 SeqTp,omitempty"`
CtgyPurp CategoryPurpose1Choice `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 CtgyPurp,omitempty"`
}
// PaymentTypeInformation28
//
// Provides further details of the type of payment.
type PaymentTypeInformation28 struct {
InstrPrty Priority2Code `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 InstrPrty,omitempty"`
ClrChanl ClearingChannel2Code `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 ClrChanl,omitempty"`
SvcLvl []ServiceLevel8Choice `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 SvcLvl,omitempty"`
LclInstrm LocalInstrument2Choice `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 LclInstrm,omitempty"`
CtgyPurp CategoryPurpose1Choice `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 CtgyPurp,omitempty"`
}
// PersonIdentification13
//
// Unique and unambiguous way to identify a person.
type PersonIdentification13 struct {
DtAndPlcOfBirth DateAndPlaceOfBirth1 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 DtAndPlcOfBirth,omitempty"`
Othr []GenericPersonIdentification1 `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Othr,omitempty"`
}
// PersonIdentificationSchemeName1Choice
//
// Sets of elements to identify a name of the identification scheme.
type PersonIdentificationSchemeName1Choice struct {
Cd ExternalPersonIdentification1Code `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Cd,omitempty"`
Prtry Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 Prtry,omitempty"`
}
// Must match the pattern \+[0-9]{1,3}-[0-9()+\-]{1,30}
type PhoneNumber string
// PostalAddress24
//
// Information that locates and identifies a specific address, as defined by postal services.
type PostalAddress24 struct {
AdrTp AddressType3Choice `xml:"urn:iso:std:iso:20022:tech:xsd:pacs.004.001.11 AdrTp,omitempty"`