forked from quickfixgo/quickfix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AllocationReportAck.generated.go
1083 lines (907 loc) · 32.4 KB
/
AllocationReportAck.generated.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
package allocationreportack
import (
"github.com/shopspring/decimal"
"time"
"github.com/Boklazhenko/quickfix"
"github.com/Boklazhenko/quickfix/gen/enum"
"github.com/Boklazhenko/quickfix/gen/field"
"github.com/Boklazhenko/quickfix/gen/fixt11"
"github.com/Boklazhenko/quickfix/gen/tag"
)
// AllocationReportAck is the fix50 AllocationReportAck type, MsgType = AT.
type AllocationReportAck struct {
fixt11.Header
*quickfix.Body
fixt11.Trailer
Message *quickfix.Message
}
// FromMessage creates a AllocationReportAck from a quickfix.Message instance.
func FromMessage(m *quickfix.Message) AllocationReportAck {
return AllocationReportAck{
Header: fixt11.Header{&m.Header},
Body: &m.Body,
Trailer: fixt11.Trailer{&m.Trailer},
Message: m,
}
}
// ToMessage returns a quickfix.Message instance.
func (m AllocationReportAck) ToMessage() *quickfix.Message {
return m.Message
}
// New returns a AllocationReportAck initialized with the required fields for AllocationReportAck.
func New(allocreportid field.AllocReportIDField, allocid field.AllocIDField) (m AllocationReportAck) {
m.Message = quickfix.NewMessage()
m.Header = fixt11.NewHeader(&m.Message.Header)
m.Body = &m.Message.Body
m.Trailer.Trailer = &m.Message.Trailer
m.Header.Set(field.NewMsgType("AT"))
m.Set(allocreportid)
m.Set(allocid)
return
}
// A RouteOut is the callback type that should be implemented for routing Message.
type RouteOut func(msg AllocationReportAck, sessionID quickfix.SessionID) quickfix.MessageRejectError
// Route returns the beginstring, message type, and MessageRoute for this Message type.
func Route(router RouteOut) (string, string, quickfix.MessageRoute) {
r := func(msg *quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
return router(FromMessage(msg), sessionID)
}
return "7", "AT", r
}
// SetQuantity sets Quantity, Tag 53.
func (m AllocationReportAck) SetQuantity(value decimal.Decimal, scale int32) {
m.Set(field.NewQuantity(value, scale))
}
// SetText sets Text, Tag 58.
func (m AllocationReportAck) SetText(v string) {
m.Set(field.NewText(v))
}
// SetTransactTime sets TransactTime, Tag 60.
func (m AllocationReportAck) SetTransactTime(v time.Time) {
m.Set(field.NewTransactTime(v))
}
// SetAllocID sets AllocID, Tag 70.
func (m AllocationReportAck) SetAllocID(v string) {
m.Set(field.NewAllocID(v))
}
// SetAllocTransType sets AllocTransType, Tag 71.
func (m AllocationReportAck) SetAllocTransType(v enum.AllocTransType) {
m.Set(field.NewAllocTransType(v))
}
// SetTradeDate sets TradeDate, Tag 75.
func (m AllocationReportAck) SetTradeDate(v string) {
m.Set(field.NewTradeDate(v))
}
// SetNoAllocs sets NoAllocs, Tag 78.
func (m AllocationReportAck) SetNoAllocs(f NoAllocsRepeatingGroup) {
m.SetGroup(f)
}
// SetAllocStatus sets AllocStatus, Tag 87.
func (m AllocationReportAck) SetAllocStatus(v enum.AllocStatus) {
m.Set(field.NewAllocStatus(v))
}
// SetAllocRejCode sets AllocRejCode, Tag 88.
func (m AllocationReportAck) SetAllocRejCode(v enum.AllocRejCode) {
m.Set(field.NewAllocRejCode(v))
}
// SetSecurityType sets SecurityType, Tag 167.
func (m AllocationReportAck) SetSecurityType(v enum.SecurityType) {
m.Set(field.NewSecurityType(v))
}
// SetEncodedTextLen sets EncodedTextLen, Tag 354.
func (m AllocationReportAck) SetEncodedTextLen(v int) {
m.Set(field.NewEncodedTextLen(v))
}
// SetEncodedText sets EncodedText, Tag 355.
func (m AllocationReportAck) SetEncodedText(v string) {
m.Set(field.NewEncodedText(v))
}
// SetNoPartyIDs sets NoPartyIDs, Tag 453.
func (m AllocationReportAck) SetNoPartyIDs(f NoPartyIDsRepeatingGroup) {
m.SetGroup(f)
}
// SetProduct sets Product, Tag 460.
func (m AllocationReportAck) SetProduct(v enum.Product) {
m.Set(field.NewProduct(v))
}
// SetMatchStatus sets MatchStatus, Tag 573.
func (m AllocationReportAck) SetMatchStatus(v enum.MatchStatus) {
m.Set(field.NewMatchStatus(v))
}
// SetClearingBusinessDate sets ClearingBusinessDate, Tag 715.
func (m AllocationReportAck) SetClearingBusinessDate(v string) {
m.Set(field.NewClearingBusinessDate(v))
}
// SetAllocReportID sets AllocReportID, Tag 755.
func (m AllocationReportAck) SetAllocReportID(v string) {
m.Set(field.NewAllocReportID(v))
}
// SetSecondaryAllocID sets SecondaryAllocID, Tag 793.
func (m AllocationReportAck) SetSecondaryAllocID(v string) {
m.Set(field.NewSecondaryAllocID(v))
}
// SetAllocReportType sets AllocReportType, Tag 794.
func (m AllocationReportAck) SetAllocReportType(v enum.AllocReportType) {
m.Set(field.NewAllocReportType(v))
}
// SetAllocIntermedReqType sets AllocIntermedReqType, Tag 808.
func (m AllocationReportAck) SetAllocIntermedReqType(v enum.AllocIntermedReqType) {
m.Set(field.NewAllocIntermedReqType(v))
}
// SetAvgPxIndicator sets AvgPxIndicator, Tag 819.
func (m AllocationReportAck) SetAvgPxIndicator(v enum.AvgPxIndicator) {
m.Set(field.NewAvgPxIndicator(v))
}
// GetQuantity gets Quantity, Tag 53.
func (m AllocationReportAck) GetQuantity() (v decimal.Decimal, err quickfix.MessageRejectError) {
var f field.QuantityField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetText gets Text, Tag 58.
func (m AllocationReportAck) GetText() (v string, err quickfix.MessageRejectError) {
var f field.TextField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetTransactTime gets TransactTime, Tag 60.
func (m AllocationReportAck) GetTransactTime() (v time.Time, err quickfix.MessageRejectError) {
var f field.TransactTimeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetAllocID gets AllocID, Tag 70.
func (m AllocationReportAck) GetAllocID() (v string, err quickfix.MessageRejectError) {
var f field.AllocIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetAllocTransType gets AllocTransType, Tag 71.
func (m AllocationReportAck) GetAllocTransType() (v enum.AllocTransType, err quickfix.MessageRejectError) {
var f field.AllocTransTypeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetTradeDate gets TradeDate, Tag 75.
func (m AllocationReportAck) GetTradeDate() (v string, err quickfix.MessageRejectError) {
var f field.TradeDateField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetNoAllocs gets NoAllocs, Tag 78.
func (m AllocationReportAck) GetNoAllocs() (NoAllocsRepeatingGroup, quickfix.MessageRejectError) {
f := NewNoAllocsRepeatingGroup()
err := m.GetGroup(f)
return f, err
}
// GetAllocStatus gets AllocStatus, Tag 87.
func (m AllocationReportAck) GetAllocStatus() (v enum.AllocStatus, err quickfix.MessageRejectError) {
var f field.AllocStatusField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetAllocRejCode gets AllocRejCode, Tag 88.
func (m AllocationReportAck) GetAllocRejCode() (v enum.AllocRejCode, err quickfix.MessageRejectError) {
var f field.AllocRejCodeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetSecurityType gets SecurityType, Tag 167.
func (m AllocationReportAck) GetSecurityType() (v enum.SecurityType, err quickfix.MessageRejectError) {
var f field.SecurityTypeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetEncodedTextLen gets EncodedTextLen, Tag 354.
func (m AllocationReportAck) GetEncodedTextLen() (v int, err quickfix.MessageRejectError) {
var f field.EncodedTextLenField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetEncodedText gets EncodedText, Tag 355.
func (m AllocationReportAck) GetEncodedText() (v string, err quickfix.MessageRejectError) {
var f field.EncodedTextField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetNoPartyIDs gets NoPartyIDs, Tag 453.
func (m AllocationReportAck) GetNoPartyIDs() (NoPartyIDsRepeatingGroup, quickfix.MessageRejectError) {
f := NewNoPartyIDsRepeatingGroup()
err := m.GetGroup(f)
return f, err
}
// GetProduct gets Product, Tag 460.
func (m AllocationReportAck) GetProduct() (v enum.Product, err quickfix.MessageRejectError) {
var f field.ProductField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetMatchStatus gets MatchStatus, Tag 573.
func (m AllocationReportAck) GetMatchStatus() (v enum.MatchStatus, err quickfix.MessageRejectError) {
var f field.MatchStatusField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetClearingBusinessDate gets ClearingBusinessDate, Tag 715.
func (m AllocationReportAck) GetClearingBusinessDate() (v string, err quickfix.MessageRejectError) {
var f field.ClearingBusinessDateField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetAllocReportID gets AllocReportID, Tag 755.
func (m AllocationReportAck) GetAllocReportID() (v string, err quickfix.MessageRejectError) {
var f field.AllocReportIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetSecondaryAllocID gets SecondaryAllocID, Tag 793.
func (m AllocationReportAck) GetSecondaryAllocID() (v string, err quickfix.MessageRejectError) {
var f field.SecondaryAllocIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetAllocReportType gets AllocReportType, Tag 794.
func (m AllocationReportAck) GetAllocReportType() (v enum.AllocReportType, err quickfix.MessageRejectError) {
var f field.AllocReportTypeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetAllocIntermedReqType gets AllocIntermedReqType, Tag 808.
func (m AllocationReportAck) GetAllocIntermedReqType() (v enum.AllocIntermedReqType, err quickfix.MessageRejectError) {
var f field.AllocIntermedReqTypeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetAvgPxIndicator gets AvgPxIndicator, Tag 819.
func (m AllocationReportAck) GetAvgPxIndicator() (v enum.AvgPxIndicator, err quickfix.MessageRejectError) {
var f field.AvgPxIndicatorField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// HasQuantity returns true if Quantity is present, Tag 53.
func (m AllocationReportAck) HasQuantity() bool {
return m.Has(tag.Quantity)
}
// HasText returns true if Text is present, Tag 58.
func (m AllocationReportAck) HasText() bool {
return m.Has(tag.Text)
}
// HasTransactTime returns true if TransactTime is present, Tag 60.
func (m AllocationReportAck) HasTransactTime() bool {
return m.Has(tag.TransactTime)
}
// HasAllocID returns true if AllocID is present, Tag 70.
func (m AllocationReportAck) HasAllocID() bool {
return m.Has(tag.AllocID)
}
// HasAllocTransType returns true if AllocTransType is present, Tag 71.
func (m AllocationReportAck) HasAllocTransType() bool {
return m.Has(tag.AllocTransType)
}
// HasTradeDate returns true if TradeDate is present, Tag 75.
func (m AllocationReportAck) HasTradeDate() bool {
return m.Has(tag.TradeDate)
}
// HasNoAllocs returns true if NoAllocs is present, Tag 78.
func (m AllocationReportAck) HasNoAllocs() bool {
return m.Has(tag.NoAllocs)
}
// HasAllocStatus returns true if AllocStatus is present, Tag 87.
func (m AllocationReportAck) HasAllocStatus() bool {
return m.Has(tag.AllocStatus)
}
// HasAllocRejCode returns true if AllocRejCode is present, Tag 88.
func (m AllocationReportAck) HasAllocRejCode() bool {
return m.Has(tag.AllocRejCode)
}
// HasSecurityType returns true if SecurityType is present, Tag 167.
func (m AllocationReportAck) HasSecurityType() bool {
return m.Has(tag.SecurityType)
}
// HasEncodedTextLen returns true if EncodedTextLen is present, Tag 354.
func (m AllocationReportAck) HasEncodedTextLen() bool {
return m.Has(tag.EncodedTextLen)
}
// HasEncodedText returns true if EncodedText is present, Tag 355.
func (m AllocationReportAck) HasEncodedText() bool {
return m.Has(tag.EncodedText)
}
// HasNoPartyIDs returns true if NoPartyIDs is present, Tag 453.
func (m AllocationReportAck) HasNoPartyIDs() bool {
return m.Has(tag.NoPartyIDs)
}
// HasProduct returns true if Product is present, Tag 460.
func (m AllocationReportAck) HasProduct() bool {
return m.Has(tag.Product)
}
// HasMatchStatus returns true if MatchStatus is present, Tag 573.
func (m AllocationReportAck) HasMatchStatus() bool {
return m.Has(tag.MatchStatus)
}
// HasClearingBusinessDate returns true if ClearingBusinessDate is present, Tag 715.
func (m AllocationReportAck) HasClearingBusinessDate() bool {
return m.Has(tag.ClearingBusinessDate)
}
// HasAllocReportID returns true if AllocReportID is present, Tag 755.
func (m AllocationReportAck) HasAllocReportID() bool {
return m.Has(tag.AllocReportID)
}
// HasSecondaryAllocID returns true if SecondaryAllocID is present, Tag 793.
func (m AllocationReportAck) HasSecondaryAllocID() bool {
return m.Has(tag.SecondaryAllocID)
}
// HasAllocReportType returns true if AllocReportType is present, Tag 794.
func (m AllocationReportAck) HasAllocReportType() bool {
return m.Has(tag.AllocReportType)
}
// HasAllocIntermedReqType returns true if AllocIntermedReqType is present, Tag 808.
func (m AllocationReportAck) HasAllocIntermedReqType() bool {
return m.Has(tag.AllocIntermedReqType)
}
// HasAvgPxIndicator returns true if AvgPxIndicator is present, Tag 819.
func (m AllocationReportAck) HasAvgPxIndicator() bool {
return m.Has(tag.AvgPxIndicator)
}
// NoAllocs is a repeating group element, Tag 78.
type NoAllocs struct {
*quickfix.Group
}
// SetAllocAccount sets AllocAccount, Tag 79.
func (m NoAllocs) SetAllocAccount(v string) {
m.Set(field.NewAllocAccount(v))
}
// SetAllocAcctIDSource sets AllocAcctIDSource, Tag 661.
func (m NoAllocs) SetAllocAcctIDSource(v int) {
m.Set(field.NewAllocAcctIDSource(v))
}
// SetAllocPrice sets AllocPrice, Tag 366.
func (m NoAllocs) SetAllocPrice(value decimal.Decimal, scale int32) {
m.Set(field.NewAllocPrice(value, scale))
}
// SetIndividualAllocID sets IndividualAllocID, Tag 467.
func (m NoAllocs) SetIndividualAllocID(v string) {
m.Set(field.NewIndividualAllocID(v))
}
// SetIndividualAllocRejCode sets IndividualAllocRejCode, Tag 776.
func (m NoAllocs) SetIndividualAllocRejCode(v int) {
m.Set(field.NewIndividualAllocRejCode(v))
}
// SetAllocText sets AllocText, Tag 161.
func (m NoAllocs) SetAllocText(v string) {
m.Set(field.NewAllocText(v))
}
// SetEncodedAllocTextLen sets EncodedAllocTextLen, Tag 360.
func (m NoAllocs) SetEncodedAllocTextLen(v int) {
m.Set(field.NewEncodedAllocTextLen(v))
}
// SetEncodedAllocText sets EncodedAllocText, Tag 361.
func (m NoAllocs) SetEncodedAllocText(v string) {
m.Set(field.NewEncodedAllocText(v))
}
// SetSecondaryIndividualAllocID sets SecondaryIndividualAllocID, Tag 989.
func (m NoAllocs) SetSecondaryIndividualAllocID(v string) {
m.Set(field.NewSecondaryIndividualAllocID(v))
}
// SetAllocCustomerCapacity sets AllocCustomerCapacity, Tag 993.
func (m NoAllocs) SetAllocCustomerCapacity(v string) {
m.Set(field.NewAllocCustomerCapacity(v))
}
// SetIndividualAllocType sets IndividualAllocType, Tag 992.
func (m NoAllocs) SetIndividualAllocType(v enum.IndividualAllocType) {
m.Set(field.NewIndividualAllocType(v))
}
// SetAllocQty sets AllocQty, Tag 80.
func (m NoAllocs) SetAllocQty(value decimal.Decimal, scale int32) {
m.Set(field.NewAllocQty(value, scale))
}
// SetNoNestedPartyIDs sets NoNestedPartyIDs, Tag 539.
func (m NoAllocs) SetNoNestedPartyIDs(f NoNestedPartyIDsRepeatingGroup) {
m.SetGroup(f)
}
// SetAllocPositionEffect sets AllocPositionEffect, Tag 1047.
func (m NoAllocs) SetAllocPositionEffect(v enum.AllocPositionEffect) {
m.Set(field.NewAllocPositionEffect(v))
}
// GetAllocAccount gets AllocAccount, Tag 79.
func (m NoAllocs) GetAllocAccount() (v string, err quickfix.MessageRejectError) {
var f field.AllocAccountField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetAllocAcctIDSource gets AllocAcctIDSource, Tag 661.
func (m NoAllocs) GetAllocAcctIDSource() (v int, err quickfix.MessageRejectError) {
var f field.AllocAcctIDSourceField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetAllocPrice gets AllocPrice, Tag 366.
func (m NoAllocs) GetAllocPrice() (v decimal.Decimal, err quickfix.MessageRejectError) {
var f field.AllocPriceField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetIndividualAllocID gets IndividualAllocID, Tag 467.
func (m NoAllocs) GetIndividualAllocID() (v string, err quickfix.MessageRejectError) {
var f field.IndividualAllocIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetIndividualAllocRejCode gets IndividualAllocRejCode, Tag 776.
func (m NoAllocs) GetIndividualAllocRejCode() (v int, err quickfix.MessageRejectError) {
var f field.IndividualAllocRejCodeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetAllocText gets AllocText, Tag 161.
func (m NoAllocs) GetAllocText() (v string, err quickfix.MessageRejectError) {
var f field.AllocTextField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetEncodedAllocTextLen gets EncodedAllocTextLen, Tag 360.
func (m NoAllocs) GetEncodedAllocTextLen() (v int, err quickfix.MessageRejectError) {
var f field.EncodedAllocTextLenField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetEncodedAllocText gets EncodedAllocText, Tag 361.
func (m NoAllocs) GetEncodedAllocText() (v string, err quickfix.MessageRejectError) {
var f field.EncodedAllocTextField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetSecondaryIndividualAllocID gets SecondaryIndividualAllocID, Tag 989.
func (m NoAllocs) GetSecondaryIndividualAllocID() (v string, err quickfix.MessageRejectError) {
var f field.SecondaryIndividualAllocIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetAllocCustomerCapacity gets AllocCustomerCapacity, Tag 993.
func (m NoAllocs) GetAllocCustomerCapacity() (v string, err quickfix.MessageRejectError) {
var f field.AllocCustomerCapacityField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetIndividualAllocType gets IndividualAllocType, Tag 992.
func (m NoAllocs) GetIndividualAllocType() (v enum.IndividualAllocType, err quickfix.MessageRejectError) {
var f field.IndividualAllocTypeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetAllocQty gets AllocQty, Tag 80.
func (m NoAllocs) GetAllocQty() (v decimal.Decimal, err quickfix.MessageRejectError) {
var f field.AllocQtyField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetNoNestedPartyIDs gets NoNestedPartyIDs, Tag 539.
func (m NoAllocs) GetNoNestedPartyIDs() (NoNestedPartyIDsRepeatingGroup, quickfix.MessageRejectError) {
f := NewNoNestedPartyIDsRepeatingGroup()
err := m.GetGroup(f)
return f, err
}
// GetAllocPositionEffect gets AllocPositionEffect, Tag 1047.
func (m NoAllocs) GetAllocPositionEffect() (v enum.AllocPositionEffect, err quickfix.MessageRejectError) {
var f field.AllocPositionEffectField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// HasAllocAccount returns true if AllocAccount is present, Tag 79.
func (m NoAllocs) HasAllocAccount() bool {
return m.Has(tag.AllocAccount)
}
// HasAllocAcctIDSource returns true if AllocAcctIDSource is present, Tag 661.
func (m NoAllocs) HasAllocAcctIDSource() bool {
return m.Has(tag.AllocAcctIDSource)
}
// HasAllocPrice returns true if AllocPrice is present, Tag 366.
func (m NoAllocs) HasAllocPrice() bool {
return m.Has(tag.AllocPrice)
}
// HasIndividualAllocID returns true if IndividualAllocID is present, Tag 467.
func (m NoAllocs) HasIndividualAllocID() bool {
return m.Has(tag.IndividualAllocID)
}
// HasIndividualAllocRejCode returns true if IndividualAllocRejCode is present, Tag 776.
func (m NoAllocs) HasIndividualAllocRejCode() bool {
return m.Has(tag.IndividualAllocRejCode)
}
// HasAllocText returns true if AllocText is present, Tag 161.
func (m NoAllocs) HasAllocText() bool {
return m.Has(tag.AllocText)
}
// HasEncodedAllocTextLen returns true if EncodedAllocTextLen is present, Tag 360.
func (m NoAllocs) HasEncodedAllocTextLen() bool {
return m.Has(tag.EncodedAllocTextLen)
}
// HasEncodedAllocText returns true if EncodedAllocText is present, Tag 361.
func (m NoAllocs) HasEncodedAllocText() bool {
return m.Has(tag.EncodedAllocText)
}
// HasSecondaryIndividualAllocID returns true if SecondaryIndividualAllocID is present, Tag 989.
func (m NoAllocs) HasSecondaryIndividualAllocID() bool {
return m.Has(tag.SecondaryIndividualAllocID)
}
// HasAllocCustomerCapacity returns true if AllocCustomerCapacity is present, Tag 993.
func (m NoAllocs) HasAllocCustomerCapacity() bool {
return m.Has(tag.AllocCustomerCapacity)
}
// HasIndividualAllocType returns true if IndividualAllocType is present, Tag 992.
func (m NoAllocs) HasIndividualAllocType() bool {
return m.Has(tag.IndividualAllocType)
}
// HasAllocQty returns true if AllocQty is present, Tag 80.
func (m NoAllocs) HasAllocQty() bool {
return m.Has(tag.AllocQty)
}
// HasNoNestedPartyIDs returns true if NoNestedPartyIDs is present, Tag 539.
func (m NoAllocs) HasNoNestedPartyIDs() bool {
return m.Has(tag.NoNestedPartyIDs)
}
// HasAllocPositionEffect returns true if AllocPositionEffect is present, Tag 1047.
func (m NoAllocs) HasAllocPositionEffect() bool {
return m.Has(tag.AllocPositionEffect)
}
// NoNestedPartyIDs is a repeating group element, Tag 539.
type NoNestedPartyIDs struct {
*quickfix.Group
}
// SetNestedPartyID sets NestedPartyID, Tag 524.
func (m NoNestedPartyIDs) SetNestedPartyID(v string) {
m.Set(field.NewNestedPartyID(v))
}
// SetNestedPartyIDSource sets NestedPartyIDSource, Tag 525.
func (m NoNestedPartyIDs) SetNestedPartyIDSource(v string) {
m.Set(field.NewNestedPartyIDSource(v))
}
// SetNestedPartyRole sets NestedPartyRole, Tag 538.
func (m NoNestedPartyIDs) SetNestedPartyRole(v int) {
m.Set(field.NewNestedPartyRole(v))
}
// SetNoNestedPartySubIDs sets NoNestedPartySubIDs, Tag 804.
func (m NoNestedPartyIDs) SetNoNestedPartySubIDs(f NoNestedPartySubIDsRepeatingGroup) {
m.SetGroup(f)
}
// GetNestedPartyID gets NestedPartyID, Tag 524.
func (m NoNestedPartyIDs) GetNestedPartyID() (v string, err quickfix.MessageRejectError) {
var f field.NestedPartyIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetNestedPartyIDSource gets NestedPartyIDSource, Tag 525.
func (m NoNestedPartyIDs) GetNestedPartyIDSource() (v string, err quickfix.MessageRejectError) {
var f field.NestedPartyIDSourceField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetNestedPartyRole gets NestedPartyRole, Tag 538.
func (m NoNestedPartyIDs) GetNestedPartyRole() (v int, err quickfix.MessageRejectError) {
var f field.NestedPartyRoleField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetNoNestedPartySubIDs gets NoNestedPartySubIDs, Tag 804.
func (m NoNestedPartyIDs) GetNoNestedPartySubIDs() (NoNestedPartySubIDsRepeatingGroup, quickfix.MessageRejectError) {
f := NewNoNestedPartySubIDsRepeatingGroup()
err := m.GetGroup(f)
return f, err
}
// HasNestedPartyID returns true if NestedPartyID is present, Tag 524.
func (m NoNestedPartyIDs) HasNestedPartyID() bool {
return m.Has(tag.NestedPartyID)
}
// HasNestedPartyIDSource returns true if NestedPartyIDSource is present, Tag 525.
func (m NoNestedPartyIDs) HasNestedPartyIDSource() bool {
return m.Has(tag.NestedPartyIDSource)
}
// HasNestedPartyRole returns true if NestedPartyRole is present, Tag 538.
func (m NoNestedPartyIDs) HasNestedPartyRole() bool {
return m.Has(tag.NestedPartyRole)
}
// HasNoNestedPartySubIDs returns true if NoNestedPartySubIDs is present, Tag 804.
func (m NoNestedPartyIDs) HasNoNestedPartySubIDs() bool {
return m.Has(tag.NoNestedPartySubIDs)
}
// NoNestedPartySubIDs is a repeating group element, Tag 804.
type NoNestedPartySubIDs struct {
*quickfix.Group
}
// SetNestedPartySubID sets NestedPartySubID, Tag 545.
func (m NoNestedPartySubIDs) SetNestedPartySubID(v string) {
m.Set(field.NewNestedPartySubID(v))
}
// SetNestedPartySubIDType sets NestedPartySubIDType, Tag 805.
func (m NoNestedPartySubIDs) SetNestedPartySubIDType(v int) {
m.Set(field.NewNestedPartySubIDType(v))
}
// GetNestedPartySubID gets NestedPartySubID, Tag 545.
func (m NoNestedPartySubIDs) GetNestedPartySubID() (v string, err quickfix.MessageRejectError) {
var f field.NestedPartySubIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetNestedPartySubIDType gets NestedPartySubIDType, Tag 805.
func (m NoNestedPartySubIDs) GetNestedPartySubIDType() (v int, err quickfix.MessageRejectError) {
var f field.NestedPartySubIDTypeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// HasNestedPartySubID returns true if NestedPartySubID is present, Tag 545.
func (m NoNestedPartySubIDs) HasNestedPartySubID() bool {
return m.Has(tag.NestedPartySubID)
}
// HasNestedPartySubIDType returns true if NestedPartySubIDType is present, Tag 805.
func (m NoNestedPartySubIDs) HasNestedPartySubIDType() bool {
return m.Has(tag.NestedPartySubIDType)
}
// NoNestedPartySubIDsRepeatingGroup is a repeating group, Tag 804.
type NoNestedPartySubIDsRepeatingGroup struct {
*quickfix.RepeatingGroup
}
// NewNoNestedPartySubIDsRepeatingGroup returns an initialized, NoNestedPartySubIDsRepeatingGroup.
func NewNoNestedPartySubIDsRepeatingGroup() NoNestedPartySubIDsRepeatingGroup {
return NoNestedPartySubIDsRepeatingGroup{
quickfix.NewRepeatingGroup(tag.NoNestedPartySubIDs,
quickfix.GroupTemplate{quickfix.GroupElement(tag.NestedPartySubID), quickfix.GroupElement(tag.NestedPartySubIDType)})}
}
// Add create and append a new NoNestedPartySubIDs to this group.
func (m NoNestedPartySubIDsRepeatingGroup) Add() NoNestedPartySubIDs {
g := m.RepeatingGroup.Add()
return NoNestedPartySubIDs{g}
}
// Get returns the ith NoNestedPartySubIDs in the NoNestedPartySubIDsRepeatinGroup.
func (m NoNestedPartySubIDsRepeatingGroup) Get(i int) NoNestedPartySubIDs {
return NoNestedPartySubIDs{m.RepeatingGroup.Get(i)}
}
// NoNestedPartyIDsRepeatingGroup is a repeating group, Tag 539.
type NoNestedPartyIDsRepeatingGroup struct {
*quickfix.RepeatingGroup
}
// NewNoNestedPartyIDsRepeatingGroup returns an initialized, NoNestedPartyIDsRepeatingGroup.
func NewNoNestedPartyIDsRepeatingGroup() NoNestedPartyIDsRepeatingGroup {
return NoNestedPartyIDsRepeatingGroup{
quickfix.NewRepeatingGroup(tag.NoNestedPartyIDs,
quickfix.GroupTemplate{quickfix.GroupElement(tag.NestedPartyID), quickfix.GroupElement(tag.NestedPartyIDSource), quickfix.GroupElement(tag.NestedPartyRole), NewNoNestedPartySubIDsRepeatingGroup()})}
}
// Add create and append a new NoNestedPartyIDs to this group.
func (m NoNestedPartyIDsRepeatingGroup) Add() NoNestedPartyIDs {
g := m.RepeatingGroup.Add()
return NoNestedPartyIDs{g}
}
// Get returns the ith NoNestedPartyIDs in the NoNestedPartyIDsRepeatinGroup.
func (m NoNestedPartyIDsRepeatingGroup) Get(i int) NoNestedPartyIDs {
return NoNestedPartyIDs{m.RepeatingGroup.Get(i)}
}
// NoAllocsRepeatingGroup is a repeating group, Tag 78.
type NoAllocsRepeatingGroup struct {
*quickfix.RepeatingGroup
}
// NewNoAllocsRepeatingGroup returns an initialized, NoAllocsRepeatingGroup.
func NewNoAllocsRepeatingGroup() NoAllocsRepeatingGroup {
return NoAllocsRepeatingGroup{
quickfix.NewRepeatingGroup(tag.NoAllocs,
quickfix.GroupTemplate{quickfix.GroupElement(tag.AllocAccount), quickfix.GroupElement(tag.AllocAcctIDSource), quickfix.GroupElement(tag.AllocPrice), quickfix.GroupElement(tag.IndividualAllocID), quickfix.GroupElement(tag.IndividualAllocRejCode), quickfix.GroupElement(tag.AllocText), quickfix.GroupElement(tag.EncodedAllocTextLen), quickfix.GroupElement(tag.EncodedAllocText), quickfix.GroupElement(tag.SecondaryIndividualAllocID), quickfix.GroupElement(tag.AllocCustomerCapacity), quickfix.GroupElement(tag.IndividualAllocType), quickfix.GroupElement(tag.AllocQty), NewNoNestedPartyIDsRepeatingGroup(), quickfix.GroupElement(tag.AllocPositionEffect)})}
}
// Add create and append a new NoAllocs to this group.
func (m NoAllocsRepeatingGroup) Add() NoAllocs {
g := m.RepeatingGroup.Add()
return NoAllocs{g}
}
// Get returns the ith NoAllocs in the NoAllocsRepeatinGroup.
func (m NoAllocsRepeatingGroup) Get(i int) NoAllocs {
return NoAllocs{m.RepeatingGroup.Get(i)}
}
// NoPartyIDs is a repeating group element, Tag 453.
type NoPartyIDs struct {
*quickfix.Group
}
// SetPartyID sets PartyID, Tag 448.
func (m NoPartyIDs) SetPartyID(v string) {
m.Set(field.NewPartyID(v))
}
// SetPartyIDSource sets PartyIDSource, Tag 447.
func (m NoPartyIDs) SetPartyIDSource(v enum.PartyIDSource) {
m.Set(field.NewPartyIDSource(v))
}
// SetPartyRole sets PartyRole, Tag 452.
func (m NoPartyIDs) SetPartyRole(v enum.PartyRole) {
m.Set(field.NewPartyRole(v))
}
// SetNoPartySubIDs sets NoPartySubIDs, Tag 802.
func (m NoPartyIDs) SetNoPartySubIDs(f NoPartySubIDsRepeatingGroup) {
m.SetGroup(f)
}
// GetPartyID gets PartyID, Tag 448.
func (m NoPartyIDs) GetPartyID() (v string, err quickfix.MessageRejectError) {
var f field.PartyIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetPartyIDSource gets PartyIDSource, Tag 447.
func (m NoPartyIDs) GetPartyIDSource() (v enum.PartyIDSource, err quickfix.MessageRejectError) {
var f field.PartyIDSourceField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetPartyRole gets PartyRole, Tag 452.
func (m NoPartyIDs) GetPartyRole() (v enum.PartyRole, err quickfix.MessageRejectError) {
var f field.PartyRoleField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
// GetNoPartySubIDs gets NoPartySubIDs, Tag 802.
func (m NoPartyIDs) GetNoPartySubIDs() (NoPartySubIDsRepeatingGroup, quickfix.MessageRejectError) {
f := NewNoPartySubIDsRepeatingGroup()
err := m.GetGroup(f)
return f, err
}
// HasPartyID returns true if PartyID is present, Tag 448.
func (m NoPartyIDs) HasPartyID() bool {
return m.Has(tag.PartyID)
}
// HasPartyIDSource returns true if PartyIDSource is present, Tag 447.
func (m NoPartyIDs) HasPartyIDSource() bool {
return m.Has(tag.PartyIDSource)
}
// HasPartyRole returns true if PartyRole is present, Tag 452.
func (m NoPartyIDs) HasPartyRole() bool {
return m.Has(tag.PartyRole)
}
// HasNoPartySubIDs returns true if NoPartySubIDs is present, Tag 802.
func (m NoPartyIDs) HasNoPartySubIDs() bool {
return m.Has(tag.NoPartySubIDs)
}
// NoPartySubIDs is a repeating group element, Tag 802.
type NoPartySubIDs struct {
*quickfix.Group
}