-
Notifications
You must be signed in to change notification settings - Fork 0
/
seev.033.001.11.xsd.go
698 lines (572 loc) · 37.4 KB
/
seev.033.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
// Code generated by download. DO NOT EDIT.
package iso20022_seev_033_001_11
import (
"bytes"
"encoding/xml"
"time"
)
type AccountAndBalance41 struct {
SfkpgAcct Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 SfkpgAcct"`
AcctOwnr PartyIdentification127Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 AcctOwnr,omitempty"`
SfkpgPlc SafekeepingPlaceFormat28Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 SfkpgPlc,omitempty"`
Bal CorporateActionBalanceDetails32 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Bal,omitempty"`
}
type ActiveCurrencyAnd13DecimalAmount struct {
Value float64 `xml:",chardata"`
Ccy ActiveCurrencyCode `xml:"Ccy,attr"`
}
type ActiveCurrencyAndAmount struct {
Value float64 `xml:",chardata"`
Ccy ActiveCurrencyCode `xml:"Ccy,attr"`
}
// Must match the pattern [A-Z]{3,3}
type ActiveCurrencyCode string
// Must match the pattern [A-Z]{3,3}
type ActiveOrHistoricCurrencyCode string
// May be one of ADDR, PBOX, HOME, BIZZ, MLTO, DLVY
type AddressType2Code string
type AlternatePartyIdentification7 struct {
IdTp IdentificationType42Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 IdTp"`
Ctry CountryCode `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Ctry"`
AltrnId Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 AltrnId"`
}
type AmountPrice3 struct {
AmtPricTp AmountPriceType1Code `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 AmtPricTp"`
PricVal ActiveCurrencyAnd13DecimalAmount `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 PricVal"`
}
type AmountPricePerAmount2 struct {
AmtPricTp AmountPriceType1Code `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 AmtPricTp"`
PricVal ActiveCurrencyAnd13DecimalAmount `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 PricVal"`
Amt ActiveCurrencyAnd13DecimalAmount `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Amt"`
}
type AmountPricePerFinancialInstrumentQuantity6 struct {
AmtPricTp AmountPriceType1Code `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 AmtPricTp"`
PricVal ActiveCurrencyAnd13DecimalAmount `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 PricVal"`
FinInstrmQty FinancialInstrumentQuantity1Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 FinInstrmQty"`
}
// May be one of ACTU, DISC, PLOT, PREM
type AmountPriceType1Code 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 AnyBICDec2014Identifier string
type BalanceFormat5Choice struct {
Bal SignedQuantityFormat7 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Bal,omitempty"`
ElgblBal SignedQuantityFormat6 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 ElgblBal,omitempty"`
NotElgblBal SignedQuantityFormat6 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 NotElgblBal,omitempty"`
}
type BeneficiaryCertificationType10Choice struct {
Cd BeneficiaryCertificationType5Code `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Cd,omitempty"`
Prtry GenericIdentification30 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Prtry,omitempty"`
}
// May be one of ACCI, NCOM, QIBB
type BeneficiaryCertificationType5Code string
// Must match the pattern [A-Z]{6,6}
type CFIOct2015Identifier string
type ClassificationType32Choice struct {
ClssfctnFinInstrm CFIOct2015Identifier `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 ClssfctnFinInstrm,omitempty"`
AltrnClssfctn GenericIdentification36 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 AltrnClssfctn,omitempty"`
}
type CorporateActionBalanceDetails32 struct {
TtlElgblBal Quantity17Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 TtlElgblBal,omitempty"`
BlckdBal BalanceFormat5Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 BlckdBal,omitempty"`
BrrwdBal BalanceFormat5Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 BrrwdBal,omitempty"`
CollInBal BalanceFormat5Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 CollInBal,omitempty"`
CollOutBal BalanceFormat5Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 CollOutBal,omitempty"`
OnLnBal BalanceFormat5Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 OnLnBal,omitempty"`
PdgDlvryBal []BalanceFormat5Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 PdgDlvryBal,omitempty"`
PdgRctBal []BalanceFormat5Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 PdgRctBal,omitempty"`
OutForRegnBal BalanceFormat5Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 OutForRegnBal,omitempty"`
SttlmPosBal BalanceFormat5Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 SttlmPosBal,omitempty"`
StrtPosBal BalanceFormat5Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 StrtPosBal,omitempty"`
TradDtPosBal BalanceFormat5Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 TradDtPosBal,omitempty"`
InTrnsShipmntBal BalanceFormat5Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 InTrnsShipmntBal,omitempty"`
RegdBal BalanceFormat5Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 RegdBal,omitempty"`
}
// May be one of BERE, CERT, DEPH, GPPH, GTGP, GTPH, NAME, PHDE, REBE, TERM
type CorporateActionChangeType2Code string
type CorporateActionChangeTypeFormat6Choice struct {
Cd CorporateActionChangeType2Code `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Cd,omitempty"`
Prtry GenericIdentification30 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Prtry,omitempty"`
}
type CorporateActionEventReference3 struct {
EvtId CorporateActionEventReference3Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 EvtId"`
LkgTp ProcessingPosition7Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 LkgTp,omitempty"`
}
type CorporateActionEventReference3Choice struct {
LkdOffclCorpActnEvtId Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 LkdOffclCorpActnEvtId,omitempty"`
LkdCorpActnId Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 LkdCorpActnId,omitempty"`
}
type CorporateActionEventType102Choice struct {
Cd CorporateActionEventType34Code `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Cd,omitempty"`
Prtry GenericIdentification30 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Prtry,omitempty"`
}
// May be one of ACTV, ATTI, BRUP, DFLT, BONU, EXRI, CAPD, CAPG, CAPI, DRCA, DVCA, CHAN, COOP, CLSA, CONS, CONV, CREV, DECR, DETI, DSCL, DVOP, DRIP, DRAW, DTCH, EXOF, REDM, MCAL, INCR, PPMT, INTR, RHDI, LIQU, EXTM, MRGR, NOOF, CERT, ODLT, OTHR, PARI, PCAL, PRED, PINK, PLAC, PDEF, PRIO, BPUT, REDO, REMK, BIDS, SPLR, RHTS, DVSC, SHPR, SMAL, SOFF, DVSE, SPLF, TREC, TEND, DLST, SUSP, EXWA, WTRC, WRTH, ACCU
type CorporateActionEventType34Code string
type CorporateActionGeneralInformation156 struct {
CorpActnEvtId Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 CorpActnEvtId"`
OffclCorpActnEvtId Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 OffclCorpActnEvtId,omitempty"`
EvtTp CorporateActionEventType102Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 EvtTp"`
UndrlygScty FinancialInstrumentAttributes81 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 UndrlygScty,omitempty"`
}
type CorporateActionInstructionV11 struct {
ChngInstrInd bool `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 ChngInstrInd,omitempty"`
CancInstrId DocumentIdentification31 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 CancInstrId,omitempty"`
InstrCxlReqId DocumentIdentification31 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 InstrCxlReqId,omitempty"`
OthrDocId []DocumentIdentification32 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 OthrDocId,omitempty"`
EvtsLkg []CorporateActionEventReference3 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 EvtsLkg,omitempty"`
CorpActnGnlInf CorporateActionGeneralInformation156 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 CorpActnGnlInf"`
AcctDtls AccountAndBalance41 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 AcctDtls"`
BnfclOwnrDtls []PartyIdentification236 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 BnfclOwnrDtls,omitempty"`
CorpActnInstr CorporateActionOption180 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 CorpActnInstr"`
PrtctInstr ProtectInstruction1 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 PrtctInstr,omitempty"`
AddtlInf CorporateActionNarrative30 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 AddtlInf,omitempty"`
SplmtryData []SupplementaryData1 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 SplmtryData,omitempty"`
}
type CorporateActionNarrative30 struct {
RegnDtls []Max350Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 RegnDtls,omitempty"`
PtyCtctNrrtv []Max350Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 PtyCtctNrrtv,omitempty"`
CertfctnBrkdwn []Max350Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 CertfctnBrkdwn,omitempty"`
}
type CorporateActionNarrative32 struct {
InfToCmplyWth []Max350Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 InfToCmplyWth,omitempty"`
DlvryDtls []Max350Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 DlvryDtls,omitempty"`
FXInstrsAddtlInf []Max350Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 FXInstrsAddtlInf,omitempty"`
InstrAddtlInf []Max350Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 InstrAddtlInf,omitempty"`
}
// May be one of ABST, BSPL, BUYA, CASE, CASH, CERT, CEXC, CONN, CONY, CTEN, EXER, LAPS, MKDW, MKUP, MPUT, NOAC, NOQU, OFFR, OTHR, OVER, QINV, SECU, SLLE, TAXI, PRUN, BOBD
type CorporateActionOption16Code string
type CorporateActionOption180 struct {
OptnNb OptionNumber1Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 OptnNb"`
OptnTp CorporateActionOption40Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 OptnTp"`
OptnFeatrs OptionFeaturesFormat25Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 OptnFeatrs,omitempty"`
FrctnDspstn FractionDispositionType28Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 FrctnDspstn,omitempty"`
ChngTp []CorporateActionChangeTypeFormat6Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 ChngTp,omitempty"`
ElgblForCollInd bool `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 ElgblForCollInd,omitempty"`
SlctnDealrFeeInd bool `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 SlctnDealrFeeInd,omitempty"`
CcyToBuy ActiveCurrencyCode `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 CcyToBuy,omitempty"`
CcyToSell ActiveCurrencyCode `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 CcyToSell,omitempty"`
CcyOptn ActiveCurrencyCode `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 CcyOptn,omitempty"`
SctyId SecurityIdentification19 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 SctyId,omitempty"`
SctiesQtyOrInstdAmt SecuritiesQuantityOrAmount4Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 SctiesQtyOrInstdAmt"`
ExctnReqdDtTm DateAndDateTime2Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 ExctnReqdDtTm,omitempty"`
RateAndAmtDtls CorporateActionRate71 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 RateAndAmtDtls,omitempty"`
PricDtls CorporateActionPrice60 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 PricDtls,omitempty"`
ShrhldrNb Max25Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 ShrhldrNb,omitempty"`
AddtlInf CorporateActionNarrative32 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 AddtlInf,omitempty"`
}
type CorporateActionOption40Choice struct {
Cd CorporateActionOption16Code `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Cd,omitempty"`
Prtry GenericIdentification30 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Prtry,omitempty"`
}
type CorporateActionPrice60 struct {
IndctvOrMktPric IndicativeOrMarketPrice8Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 IndctvOrMktPric,omitempty"`
IssePric PriceFormat50Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 IssePric,omitempty"`
GncCshPricRcvdPerPdct PriceFormat49Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 GncCshPricRcvdPerPdct,omitempty"`
GncCshPricPdPerPdct PriceFormat50Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 GncCshPricPdPerPdct,omitempty"`
}
type CorporateActionRate71 struct {
PropsdRate float64 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 PropsdRate,omitempty"`
OvrsbcptRate RateAndAmountFormat39Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 OvrsbcptRate,omitempty"`
ReqdWhldgTaxRate []RateAndAmountFormat40Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 ReqdWhldgTaxRate,omitempty"`
ReqdScndLvlTaxRate []RateAndAmountFormat40Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 ReqdScndLvlTaxRate,omitempty"`
}
// Must match the pattern [A-Z]{2,2}
type CountryCode string
type DateAndDateTime2Choice struct {
Dt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Dt,omitempty"`
DtTm ISODateTime `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 DtTm,omitempty"`
}
type Document struct {
CorpActnInstr CorporateActionInstructionV11 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 CorpActnInstr"`
}
type DocumentIdentification31 struct {
Id Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Id"`
LkgTp ProcessingPosition7Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 LkgTp,omitempty"`
}
type DocumentIdentification32 struct {
Id DocumentIdentification3Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Id"`
DocNb DocumentNumber5Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 DocNb,omitempty"`
LkgTp ProcessingPosition7Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 LkgTp,omitempty"`
}
type DocumentIdentification3Choice struct {
AcctSvcrDocId Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 AcctSvcrDocId,omitempty"`
AcctOwnrDocId Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 AcctOwnrDocId,omitempty"`
}
type DocumentNumber5Choice struct {
ShrtNb Exact3NumericText `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 ShrtNb,omitempty"`
LngNb ISO20022MessageIdentificationText `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 LngNb,omitempty"`
PrtryNb GenericIdentification36 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 PrtryNb,omitempty"`
}
// Must match the pattern [0-9]{3}
type Exact3NumericText string
// Must match the pattern [a-zA-Z0-9]{4}
type Exact4AlphaNumericText string
// May be no more than 4 items long
type ExternalFinancialInstrumentIdentificationType1Code string
type FinancialInstrumentAttributes81 struct {
FinInstrmId SecurityIdentification19 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 FinInstrmId,omitempty"`
PlcOfListg MarketIdentification3Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 PlcOfListg,omitempty"`
DayCntBsis InterestComputationMethodFormat4Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 DayCntBsis,omitempty"`
ClssfctnTp ClassificationType32Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 ClssfctnTp,omitempty"`
DnmtnCcy ActiveOrHistoricCurrencyCode `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 DnmtnCcy,omitempty"`
NxtCpnDt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 NxtCpnDt,omitempty"`
XpryDt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 XpryDt,omitempty"`
FltgRateFxgDt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 FltgRateFxgDt,omitempty"`
MtrtyDt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 MtrtyDt,omitempty"`
IsseDt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 IsseDt,omitempty"`
NxtCllblDt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 NxtCllblDt,omitempty"`
PutblDt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 PutblDt,omitempty"`
DtdDt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 DtdDt,omitempty"`
ConvsDt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 ConvsDt,omitempty"`
PrvsFctr float64 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 PrvsFctr,omitempty"`
NxtFctr float64 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 NxtFctr,omitempty"`
IntrstRate float64 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 IntrstRate,omitempty"`
NxtIntrstRate float64 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 NxtIntrstRate,omitempty"`
MinNmnlQty FinancialInstrumentQuantity1Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 MinNmnlQty,omitempty"`
CtrctSz FinancialInstrumentQuantity1Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 CtrctSz,omitempty"`
}
type FinancialInstrumentQuantity1Choice struct {
Unit float64 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Unit,omitempty"`
FaceAmt float64 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 FaceAmt,omitempty"`
AmtsdVal float64 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 AmtsdVal,omitempty"`
}
// May be one of BUYU, CINL, EXPI, DIST
type FractionDispositionType10Code string
type FractionDispositionType28Choice struct {
Cd FractionDispositionType10Code `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Cd,omitempty"`
Prtry GenericIdentification30 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Prtry,omitempty"`
}
type GenericIdentification30 struct {
Id Exact4AlphaNumericText `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Id"`
Issr Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Issr"`
SchmeNm Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 SchmeNm,omitempty"`
}
type GenericIdentification36 struct {
Id Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Id"`
Issr Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Issr"`
SchmeNm Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 SchmeNm,omitempty"`
}
type GenericIdentification78 struct {
Tp GenericIdentification30 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Tp"`
Id Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Id,omitempty"`
}
// Must match the pattern [A-Z]{2,2}[A-Z0-9]{9,9}[0-9]{1,1}
type ISINOct2015Identifier string
// Must match the pattern [a-z]{4}\.[0-9]{3}\.[0-9]{3}\.[0-9]{2}
type ISO20022MessageIdentificationText 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 IdentificationSource3Choice struct {
Cd ExternalFinancialInstrumentIdentificationType1Code `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Cd,omitempty"`
Prtry Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Prtry,omitempty"`
}
type IdentificationType42Choice struct {
Cd TypeOfIdentification1Code `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Cd,omitempty"`
Prtry GenericIdentification30 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Prtry,omitempty"`
}
type IndicativeOrMarketPrice8Choice struct {
IndctvPric PriceFormat50Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 IndctvPric,omitempty"`
MktPric PriceFormat50Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 MktPric,omitempty"`
}
// May be one of A001, A002, A003, A004, A005, A006, A007, A008, A009, A010, A011, A012, A013, A014, NARR
type InterestComputationMethod2Code string
type InterestComputationMethodFormat4Choice struct {
Cd InterestComputationMethod2Code `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Cd,omitempty"`
Prtry GenericIdentification30 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Prtry,omitempty"`
}
// Must match the pattern [A-Z0-9]{18,18}[0-9]{2,2}
type LEIIdentifier string
// Must match the pattern [A-Z0-9]{4,4}
type MICIdentifier string
type MarketIdentification3Choice struct {
MktIdrCd MICIdentifier `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 MktIdrCd,omitempty"`
Desc Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Desc,omitempty"`
}
// May be no more than 140 items long
type Max140Text string
// May be no more than 15 items long
type Max15Text string
// May be no more than 16 items long
type Max16Text string
// May be no more than 25 items long
type Max25Text 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 70 items long
type Max70Text string
type NameAndAddress5 struct {
Nm Max350Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Nm"`
Adr PostalAddress1 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Adr,omitempty"`
}
// May be one of OPLF
type OptionFeatures12Code string
type OptionFeaturesFormat25Choice struct {
Cd OptionFeatures12Code `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Cd,omitempty"`
Prtry GenericIdentification30 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Prtry,omitempty"`
}
type OptionNumber1Choice struct {
Nb Exact3NumericText `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Nb,omitempty"`
Cd OptionNumber1Code `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Cd,omitempty"`
}
// May be one of UNSO
type OptionNumber1Code string
type OriginalAndCurrentQuantities1 struct {
FaceAmt float64 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 FaceAmt"`
AmtsdVal float64 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 AmtsdVal"`
}
type OriginalAndCurrentQuantities6 struct {
ShrtLngPos ShortLong1Code `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 ShrtLngPos"`
FaceAmt float64 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 FaceAmt"`
AmtsdVal float64 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 AmtsdVal"`
}
type OtherIdentification1 struct {
Id Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Id"`
Sfx Max16Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Sfx,omitempty"`
Tp IdentificationSource3Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Tp"`
}
type PartyIdentification127Choice struct {
AnyBIC AnyBICDec2014Identifier `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 AnyBIC,omitempty"`
PrtryId GenericIdentification36 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 PrtryId,omitempty"`
}
type PartyIdentification229Choice struct {
AnyBIC AnyBICDec2014Identifier `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 AnyBIC,omitempty"`
PrtryId GenericIdentification36 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 PrtryId,omitempty"`
NmAndAdr NameAndAddress5 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 NmAndAdr,omitempty"`
IndvOwnrId AlternatePartyIdentification7 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 IndvOwnrId,omitempty"`
}
type PartyIdentification236 struct {
OwnrId PartyIdentification229Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 OwnrId"`
LEIId LEIIdentifier `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 LEIId,omitempty"`
AltrnId []AlternatePartyIdentification7 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 AltrnId,omitempty"`
DmclCtry CountryCode `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 DmclCtry,omitempty"`
NonDmclCtry []CountryCode `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 NonDmclCtry,omitempty"`
OwndSctiesQty FinancialInstrumentQuantity1Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 OwndSctiesQty"`
CertfctnTp []BeneficiaryCertificationType10Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 CertfctnTp,omitempty"`
WhldgTaxRate RateAndAmountFormat37Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 WhldgTaxRate,omitempty"`
CertfctnBrkdwn []Max350Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 CertfctnBrkdwn,omitempty"`
}
type PercentagePrice1 struct {
PctgPricTp PriceRateType3Code `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 PctgPricTp"`
PricVal float64 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 PricVal"`
}
type PostalAddress1 struct {
AdrTp AddressType2Code `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 AdrTp,omitempty"`
AdrLine []Max70Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 AdrLine,omitempty"`
StrtNm Max70Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 StrtNm,omitempty"`
BldgNb Max16Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 BldgNb,omitempty"`
PstCd Max16Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 PstCd,omitempty"`
TwnNm Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 TwnNm,omitempty"`
CtrySubDvsn Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 CtrySubDvsn,omitempty"`
Ctry CountryCode `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Ctry"`
}
type PriceFormat49Choice struct {
PctgPric PercentagePrice1 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 PctgPric,omitempty"`
AmtPric AmountPrice3 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 AmtPric,omitempty"`
NotSpcfdPric PriceValueType9Code `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 NotSpcfdPric,omitempty"`
AmtPricPerFinInstrmQty AmountPricePerFinancialInstrumentQuantity6 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 AmtPricPerFinInstrmQty,omitempty"`
AmtPricPerAmt AmountPricePerAmount2 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 AmtPricPerAmt,omitempty"`
IndxPts float64 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 IndxPts,omitempty"`
}
type PriceFormat50Choice struct {
PctgPric PercentagePrice1 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 PctgPric,omitempty"`
AmtPric AmountPrice3 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 AmtPric,omitempty"`
}
// May be one of DISC, PREM, PRCT, YIEL
type PriceRateType3Code string
// May be one of TBSP, UNSP, UKWN
type PriceValueType9Code string
// May be one of AFTE, WITH, BEFO, INFO
type ProcessingPosition3Code string
type ProcessingPosition7Choice struct {
Cd ProcessingPosition3Code `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Cd,omitempty"`
Prtry GenericIdentification30 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Prtry,omitempty"`
}
type ProprietaryQuantity7 struct {
ShrtLngPos ShortLong1Code `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 ShrtLngPos,omitempty"`
Qty float64 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Qty"`
QtyTp Exact4AlphaNumericText `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 QtyTp"`
Issr Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Issr"`
SchmeNm Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 SchmeNm,omitempty"`
}
type ProprietaryQuantity8 struct {
Qty float64 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Qty"`
QtyTp Exact4AlphaNumericText `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 QtyTp"`
Issr Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Issr"`
SchmeNm Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 SchmeNm,omitempty"`
}
type ProtectInstruction1 struct {
TxTp ProtectTransactionType2Code `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 TxTp"`
TxId Max15Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 TxId,omitempty"`
PrtctSfkpgAcct Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 PrtctSfkpgAcct,omitempty"`
PrtctDt ISODate `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 PrtctDt,omitempty"`
}
// May be one of PROT, COVP, COVR
type ProtectTransactionType2Code string
type Quantity17Choice struct {
QtyChc Quantity18Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 QtyChc,omitempty"`
PrtryQty ProprietaryQuantity7 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 PrtryQty,omitempty"`
}
type Quantity18Choice struct {
OrgnlAndCurFaceAmt OriginalAndCurrentQuantities6 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 OrgnlAndCurFaceAmt,omitempty"`
SgndQty SignedQuantityFormat6 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 SgndQty,omitempty"`
}
type Quantity19Choice struct {
Qty FinancialInstrumentQuantity1Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Qty,omitempty"`
PrtryQty ProprietaryQuantity8 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 PrtryQty,omitempty"`
}
// May be one of QALL
type Quantity1Code string
type Quantity20Choice struct {
Cd Quantity1Code `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Cd,omitempty"`
OrgnlAndCurFaceAmt OriginalAndCurrentQuantities1 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 OrgnlAndCurFaceAmt,omitempty"`
Qty FinancialInstrumentQuantity1Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Qty,omitempty"`
}
type RateAndAmountFormat37Choice struct {
Rate float64 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Rate,omitempty"`
NotSpcfdRate RateValueType7Code `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 NotSpcfdRate,omitempty"`
Amt ActiveCurrencyAnd13DecimalAmount `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Amt,omitempty"`
}
type RateAndAmountFormat39Choice struct {
Rate float64 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Rate,omitempty"`
Amt ActiveCurrencyAnd13DecimalAmount `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Amt,omitempty"`
}
type RateAndAmountFormat40Choice struct {
Rate float64 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Rate,omitempty"`
Amt ActiveCurrencyAnd13DecimalAmount `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Amt,omitempty"`
RateTpAndRate RateTypeAndPercentageRate8 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 RateTpAndRate,omitempty"`
}
type RateType42Choice struct {
Cd WithholdingTaxRateType1Code `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Cd,omitempty"`
Prtry GenericIdentification30 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Prtry,omitempty"`
}
type RateTypeAndPercentageRate8 struct {
RateTp RateType42Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 RateTp"`
Rate float64 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Rate"`
}
// May be one of UKWN
type RateValueType7Code string
// May be one of CUST, ICSD, NCSD, SHHE
type SafekeepingPlace1Code string
// May be one of SHHE, ALLP
type SafekeepingPlace2Code string
type SafekeepingPlaceFormat28Choice struct {
Id SafekeepingPlaceTypeAndText6 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Id,omitempty"`
Ctry CountryCode `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Ctry,omitempty"`
TpAndId SafekeepingPlaceTypeAndIdentification1 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 TpAndId,omitempty"`
Prtry GenericIdentification78 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Prtry,omitempty"`
}
type SafekeepingPlaceTypeAndIdentification1 struct {
SfkpgPlcTp SafekeepingPlace1Code `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 SfkpgPlcTp"`
Id AnyBICDec2014Identifier `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Id"`
}
type SafekeepingPlaceTypeAndText6 struct {
SfkpgPlcTp SafekeepingPlace2Code `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 SfkpgPlcTp"`
Id Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Id,omitempty"`
}
type SecuritiesOption72 struct {
CondlQty FinancialInstrumentQuantity1Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 CondlQty,omitempty"`
InstdQty Quantity20Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 InstdQty"`
AddtlRndUpQty FinancialInstrumentQuantity1Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 AddtlRndUpQty,omitempty"`
}
type SecuritiesQuantityOrAmount4Choice struct {
SctiesQty SecuritiesOption72 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 SctiesQty,omitempty"`
InstdAmt ActiveCurrencyAndAmount `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 InstdAmt,omitempty"`
}
type SecurityIdentification19 struct {
ISIN ISINOct2015Identifier `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 ISIN,omitempty"`
OthrId []OtherIdentification1 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 OthrId,omitempty"`
Desc Max140Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Desc,omitempty"`
}
// May be one of SHOR, LONG
type ShortLong1Code string
type SignedQuantityFormat6 struct {
ShrtLngPos ShortLong1Code `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 ShrtLngPos"`
Qty FinancialInstrumentQuantity1Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Qty"`
}
type SignedQuantityFormat7 struct {
ShrtLngPos ShortLong1Code `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 ShrtLngPos"`
QtyChc Quantity19Choice `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 QtyChc"`
}
type SupplementaryData1 struct {
PlcAndNm Max350Text `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 PlcAndNm,omitempty"`
Envlp SupplementaryDataEnvelope1 `xml:"urn:iso:std:iso:20022:tech:xsd:seev.033.001.11 Envlp"`
}
type SupplementaryDataEnvelope1 struct {
Item string `xml:",any"`
}
// May be one of ARNU, CCPT, CHTY, CORP, DRLC, FIIN, TXID
type TypeOfIdentification1Code string
// May be one of BWIT, FTCA, NRAT
type WithholdingTaxRateType1Code string
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
}