fixer-fix 0.10.1

Generated FIX protocol types for fixer
Documentation
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
// Code generated by fixer-gen. DO NOT EDIT.
#![allow(clippy::new_without_default)]
#![allow(clippy::needless_pass_by_value)]
#![allow(clippy::too_many_arguments)]
#![allow(unused_imports)]

use fixer::message::Message;
use fixer::fix_string::FIXString;
use fixer::errors::MessageRejectErrorEnum;
use fixer::session::session_id::SessionID;

use rust_decimal::Decimal;


use crate::field;
use crate::tag;

/// `DerivativeSecurityListRequest` is the `fix44` `DerivativeSecurityListRequest` type, `MsgType` = z.
pub struct DerivativeSecurityListRequest {
    pub message: Message,
}

impl DerivativeSecurityListRequest {
    /// Creates a new `DerivativeSecurityListRequest` with required fields.
    pub fn new(security_req_id: field::SecurityReqIDField, security_list_request_type: field::SecurityListRequestTypeField) -> Self {
        let mut msg = Message::new();
        msg.header.set_field(tag::MSG_TYPE, FIXString::from("z".to_string()));

        msg.body.set_field(tag::SECURITY_REQ_ID, security_req_id.0);

        msg.body.set_field(tag::SECURITY_LIST_REQUEST_TYPE, security_list_request_type.0);

        Self { message: msg }
    }

    /// Creates a `DerivativeSecurityListRequest` from an existing `Message`.
    pub fn from_message(msg: Message) -> Self {
        Self { message: msg }
    }

    /// Returns the underlying `Message`.
    pub fn to_message(self) -> Message {
        self.message
    }




    /// Sets `Currency`, Tag 15.
    pub fn set_currency(&mut self, v: String) {
        self.message.body.set_field(tag::CURRENCY, FIXString::from(v));
    }

    /// Gets `Currency`, Tag 15.
    pub fn get_currency(&self) -> Result<String, MessageRejectErrorEnum> {
        let mut fld = field::CurrencyField::new(String::new());
        self.message.body.get_field(tag::CURRENCY, &mut fld.0)?;
        Ok(fld.value().to_string())
    }


    /// Returns true if `Currency` is present, Tag 15.
    pub fn has_currency(&self) -> bool {
        self.message.body.has(tag::CURRENCY)
    }




    /// Sets `EncodedText`, Tag 355.
    pub fn set_encoded_text(&mut self, v: String) {
        self.message.body.set_field(tag::ENCODED_TEXT, FIXString::from(v));
    }

    /// Gets `EncodedText`, Tag 355.
    pub fn get_encoded_text(&self) -> Result<String, MessageRejectErrorEnum> {
        let mut fld = field::EncodedTextField::new(String::new());
        self.message.body.get_field(tag::ENCODED_TEXT, &mut fld.0)?;
        Ok(fld.value().to_string())
    }


    /// Returns true if `EncodedText` is present, Tag 355.
    pub fn has_encoded_text(&self) -> bool {
        self.message.body.has(tag::ENCODED_TEXT)
    }




    /// Sets `EncodedTextLen`, Tag 354.
    pub fn set_encoded_text_len(&mut self, v: isize) {
        self.message.body.set_field(tag::ENCODED_TEXT_LEN, fixer::fix_int::FIXInt::from(v));
    }

    /// Gets `EncodedTextLen`, Tag 354.
    pub fn get_encoded_text_len(&self) -> Result<isize, MessageRejectErrorEnum> {
        let mut fld = field::EncodedTextLenField::new(0);
        self.message.body.get_field(tag::ENCODED_TEXT_LEN, &mut fld.0)?;
        Ok(fld.value())
    }


    /// Returns true if `EncodedTextLen` is present, Tag 354.
    pub fn has_encoded_text_len(&self) -> bool {
        self.message.body.has(tag::ENCODED_TEXT_LEN)
    }




    /// Sets `EncodedUnderlyingIssuer`, Tag 363.
    pub fn set_encoded_underlying_issuer(&mut self, v: String) {
        self.message.body.set_field(tag::ENCODED_UNDERLYING_ISSUER, FIXString::from(v));
    }

    /// Gets `EncodedUnderlyingIssuer`, Tag 363.
    pub fn get_encoded_underlying_issuer(&self) -> Result<String, MessageRejectErrorEnum> {
        let mut fld = field::EncodedUnderlyingIssuerField::new(String::new());
        self.message.body.get_field(tag::ENCODED_UNDERLYING_ISSUER, &mut fld.0)?;
        Ok(fld.value().to_string())
    }


    /// Returns true if `EncodedUnderlyingIssuer` is present, Tag 363.
    pub fn has_encoded_underlying_issuer(&self) -> bool {
        self.message.body.has(tag::ENCODED_UNDERLYING_ISSUER)
    }




    /// Sets `EncodedUnderlyingIssuerLen`, Tag 362.
    pub fn set_encoded_underlying_issuer_len(&mut self, v: isize) {
        self.message.body.set_field(tag::ENCODED_UNDERLYING_ISSUER_LEN, fixer::fix_int::FIXInt::from(v));
    }

    /// Gets `EncodedUnderlyingIssuerLen`, Tag 362.
    pub fn get_encoded_underlying_issuer_len(&self) -> Result<isize, MessageRejectErrorEnum> {
        let mut fld = field::EncodedUnderlyingIssuerLenField::new(0);
        self.message.body.get_field(tag::ENCODED_UNDERLYING_ISSUER_LEN, &mut fld.0)?;
        Ok(fld.value())
    }


    /// Returns true if `EncodedUnderlyingIssuerLen` is present, Tag 362.
    pub fn has_encoded_underlying_issuer_len(&self) -> bool {
        self.message.body.has(tag::ENCODED_UNDERLYING_ISSUER_LEN)
    }




    /// Sets `EncodedUnderlyingSecurityDesc`, Tag 365.
    pub fn set_encoded_underlying_security_desc(&mut self, v: String) {
        self.message.body.set_field(tag::ENCODED_UNDERLYING_SECURITY_DESC, FIXString::from(v));
    }

    /// Gets `EncodedUnderlyingSecurityDesc`, Tag 365.
    pub fn get_encoded_underlying_security_desc(&self) -> Result<String, MessageRejectErrorEnum> {
        let mut fld = field::EncodedUnderlyingSecurityDescField::new(String::new());
        self.message.body.get_field(tag::ENCODED_UNDERLYING_SECURITY_DESC, &mut fld.0)?;
        Ok(fld.value().to_string())
    }


    /// Returns true if `EncodedUnderlyingSecurityDesc` is present, Tag 365.
    pub fn has_encoded_underlying_security_desc(&self) -> bool {
        self.message.body.has(tag::ENCODED_UNDERLYING_SECURITY_DESC)
    }




    /// Sets `EncodedUnderlyingSecurityDescLen`, Tag 364.
    pub fn set_encoded_underlying_security_desc_len(&mut self, v: isize) {
        self.message.body.set_field(tag::ENCODED_UNDERLYING_SECURITY_DESC_LEN, fixer::fix_int::FIXInt::from(v));
    }

    /// Gets `EncodedUnderlyingSecurityDescLen`, Tag 364.
    pub fn get_encoded_underlying_security_desc_len(&self) -> Result<isize, MessageRejectErrorEnum> {
        let mut fld = field::EncodedUnderlyingSecurityDescLenField::new(0);
        self.message.body.get_field(tag::ENCODED_UNDERLYING_SECURITY_DESC_LEN, &mut fld.0)?;
        Ok(fld.value())
    }


    /// Returns true if `EncodedUnderlyingSecurityDescLen` is present, Tag 364.
    pub fn has_encoded_underlying_security_desc_len(&self) -> bool {
        self.message.body.has(tag::ENCODED_UNDERLYING_SECURITY_DESC_LEN)
    }




    /// Sets `NoUnderlyingSecurityAltID`, Tag 457.
    pub fn set_no_underlying_security_alt_id(&mut self, v: isize) {
        self.message.body.set_field(tag::NO_UNDERLYING_SECURITY_ALT_ID, fixer::fix_int::FIXInt::from(v));
    }

    /// Gets `NoUnderlyingSecurityAltID`, Tag 457.
    pub fn get_no_underlying_security_alt_id(&self) -> Result<isize, MessageRejectErrorEnum> {
        let mut fld = field::NoUnderlyingSecurityAltIDField::new(0);
        self.message.body.get_field(tag::NO_UNDERLYING_SECURITY_ALT_ID, &mut fld.0)?;
        Ok(fld.value())
    }


    /// Returns true if `NoUnderlyingSecurityAltID` is present, Tag 457.
    pub fn has_no_underlying_security_alt_id(&self) -> bool {
        self.message.body.has(tag::NO_UNDERLYING_SECURITY_ALT_ID)
    }




    /// Sets `NoUnderlyingStips`, Tag 887.
    pub fn set_no_underlying_stips(&mut self, v: isize) {
        self.message.body.set_field(tag::NO_UNDERLYING_STIPS, fixer::fix_int::FIXInt::from(v));
    }

    /// Gets `NoUnderlyingStips`, Tag 887.
    pub fn get_no_underlying_stips(&self) -> Result<isize, MessageRejectErrorEnum> {
        let mut fld = field::NoUnderlyingStipsField::new(0);
        self.message.body.get_field(tag::NO_UNDERLYING_STIPS, &mut fld.0)?;
        Ok(fld.value())
    }


    /// Returns true if `NoUnderlyingStips` is present, Tag 887.
    pub fn has_no_underlying_stips(&self) -> bool {
        self.message.body.has(tag::NO_UNDERLYING_STIPS)
    }




    /// Sets `SecurityListRequestType`, Tag 559.
    pub fn set_security_list_request_type(&mut self, v: isize) {
        self.message.body.set_field(tag::SECURITY_LIST_REQUEST_TYPE, fixer::fix_int::FIXInt::from(v));
    }

    /// Gets `SecurityListRequestType`, Tag 559.
    pub fn get_security_list_request_type(&self) -> Result<isize, MessageRejectErrorEnum> {
        let mut fld = field::SecurityListRequestTypeField::new(0);
        self.message.body.get_field(tag::SECURITY_LIST_REQUEST_TYPE, &mut fld.0)?;
        Ok(fld.value())
    }


    /// Returns true if `SecurityListRequestType` is present, Tag 559.
    pub fn has_security_list_request_type(&self) -> bool {
        self.message.body.has(tag::SECURITY_LIST_REQUEST_TYPE)
    }




    /// Sets `SecurityReqID`, Tag 320.
    pub fn set_security_req_id(&mut self, v: String) {
        self.message.body.set_field(tag::SECURITY_REQ_ID, FIXString::from(v));
    }

    /// Gets `SecurityReqID`, Tag 320.
    pub fn get_security_req_id(&self) -> Result<String, MessageRejectErrorEnum> {
        let mut fld = field::SecurityReqIDField::new(String::new());
        self.message.body.get_field(tag::SECURITY_REQ_ID, &mut fld.0)?;
        Ok(fld.value().to_string())
    }


    /// Returns true if `SecurityReqID` is present, Tag 320.
    pub fn has_security_req_id(&self) -> bool {
        self.message.body.has(tag::SECURITY_REQ_ID)
    }




    /// Sets `SecuritySubType`, Tag 762.
    pub fn set_security_sub_type(&mut self, v: String) {
        self.message.body.set_field(tag::SECURITY_SUB_TYPE, FIXString::from(v));
    }

    /// Gets `SecuritySubType`, Tag 762.
    pub fn get_security_sub_type(&self) -> Result<String, MessageRejectErrorEnum> {
        let mut fld = field::SecuritySubTypeField::new(String::new());
        self.message.body.get_field(tag::SECURITY_SUB_TYPE, &mut fld.0)?;
        Ok(fld.value().to_string())
    }


    /// Returns true if `SecuritySubType` is present, Tag 762.
    pub fn has_security_sub_type(&self) -> bool {
        self.message.body.has(tag::SECURITY_SUB_TYPE)
    }




    /// Sets `SubscriptionRequestType`, Tag 263.
    pub fn set_subscription_request_type(&mut self, v: String) {
        self.message.body.set_field(tag::SUBSCRIPTION_REQUEST_TYPE, FIXString::from(v));
    }

    /// Gets `SubscriptionRequestType`, Tag 263.
    pub fn get_subscription_request_type(&self) -> Result<String, MessageRejectErrorEnum> {
        let mut fld = field::SubscriptionRequestTypeField::new(String::new());
        self.message.body.get_field(tag::SUBSCRIPTION_REQUEST_TYPE, &mut fld.0)?;
        Ok(fld.value().to_string())
    }


    /// Returns true if `SubscriptionRequestType` is present, Tag 263.
    pub fn has_subscription_request_type(&self) -> bool {
        self.message.body.has(tag::SUBSCRIPTION_REQUEST_TYPE)
    }




    /// Sets `Text`, Tag 58.
    pub fn set_text(&mut self, v: String) {
        self.message.body.set_field(tag::TEXT, FIXString::from(v));
    }

    /// Gets `Text`, Tag 58.
    pub fn get_text(&self) -> Result<String, MessageRejectErrorEnum> {
        let mut fld = field::TextField::new(String::new());
        self.message.body.get_field(tag::TEXT, &mut fld.0)?;
        Ok(fld.value().to_string())
    }


    /// Returns true if `Text` is present, Tag 58.
    pub fn has_text(&self) -> bool {
        self.message.body.has(tag::TEXT)
    }




    /// Sets `TradingSessionID`, Tag 336.
    pub fn set_trading_session_id(&mut self, v: String) {
        self.message.body.set_field(tag::TRADING_SESSION_ID, FIXString::from(v));
    }

    /// Gets `TradingSessionID`, Tag 336.
    pub fn get_trading_session_id(&self) -> Result<String, MessageRejectErrorEnum> {
        let mut fld = field::TradingSessionIDField::new(String::new());
        self.message.body.get_field(tag::TRADING_SESSION_ID, &mut fld.0)?;
        Ok(fld.value().to_string())
    }


    /// Returns true if `TradingSessionID` is present, Tag 336.
    pub fn has_trading_session_id(&self) -> bool {
        self.message.body.has(tag::TRADING_SESSION_ID)
    }




    /// Sets `TradingSessionSubID`, Tag 625.
    pub fn set_trading_session_sub_id(&mut self, v: String) {
        self.message.body.set_field(tag::TRADING_SESSION_SUB_ID, FIXString::from(v));
    }

    /// Gets `TradingSessionSubID`, Tag 625.
    pub fn get_trading_session_sub_id(&self) -> Result<String, MessageRejectErrorEnum> {
        let mut fld = field::TradingSessionSubIDField::new(String::new());
        self.message.body.get_field(tag::TRADING_SESSION_SUB_ID, &mut fld.0)?;
        Ok(fld.value().to_string())
    }


    /// Returns true if `TradingSessionSubID` is present, Tag 625.
    pub fn has_trading_session_sub_id(&self) -> bool {
        self.message.body.has(tag::TRADING_SESSION_SUB_ID)
    }




    /// Sets `UnderlyingCFICode`, Tag 463.
    pub fn set_underlying_cfi_code(&mut self, v: String) {
        self.message.body.set_field(tag::UNDERLYING_CFI_CODE, FIXString::from(v));
    }

    /// Gets `UnderlyingCFICode`, Tag 463.
    pub fn get_underlying_cfi_code(&self) -> Result<String, MessageRejectErrorEnum> {
        let mut fld = field::UnderlyingCFICodeField::new(String::new());
        self.message.body.get_field(tag::UNDERLYING_CFI_CODE, &mut fld.0)?;
        Ok(fld.value().to_string())
    }


    /// Returns true if `UnderlyingCFICode` is present, Tag 463.
    pub fn has_underlying_cfi_code(&self) -> bool {
        self.message.body.has(tag::UNDERLYING_CFI_CODE)
    }




    /// Sets `UnderlyingCPProgram`, Tag 877.
    pub fn set_underlying_cp_program(&mut self, v: String) {
        self.message.body.set_field(tag::UNDERLYING_CP_PROGRAM, FIXString::from(v));
    }

    /// Gets `UnderlyingCPProgram`, Tag 877.
    pub fn get_underlying_cp_program(&self) -> Result<String, MessageRejectErrorEnum> {
        let mut fld = field::UnderlyingCPProgramField::new(String::new());
        self.message.body.get_field(tag::UNDERLYING_CP_PROGRAM, &mut fld.0)?;
        Ok(fld.value().to_string())
    }


    /// Returns true if `UnderlyingCPProgram` is present, Tag 877.
    pub fn has_underlying_cp_program(&self) -> bool {
        self.message.body.has(tag::UNDERLYING_CP_PROGRAM)
    }




    /// Sets `UnderlyingCPRegType`, Tag 878.
    pub fn set_underlying_cp_reg_type(&mut self, v: String) {
        self.message.body.set_field(tag::UNDERLYING_CP_REG_TYPE, FIXString::from(v));
    }

    /// Gets `UnderlyingCPRegType`, Tag 878.
    pub fn get_underlying_cp_reg_type(&self) -> Result<String, MessageRejectErrorEnum> {
        let mut fld = field::UnderlyingCPRegTypeField::new(String::new());
        self.message.body.get_field(tag::UNDERLYING_CP_REG_TYPE, &mut fld.0)?;
        Ok(fld.value().to_string())
    }


    /// Returns true if `UnderlyingCPRegType` is present, Tag 878.
    pub fn has_underlying_cp_reg_type(&self) -> bool {
        self.message.body.has(tag::UNDERLYING_CP_REG_TYPE)
    }




    /// Sets `UnderlyingContractMultiplier`, Tag 436.
    pub fn set_underlying_contract_multiplier(&mut self, val: Decimal, scale: i32) {
        self.message.body.set_field(tag::UNDERLYING_CONTRACT_MULTIPLIER, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
    }

    /// Gets `UnderlyingContractMultiplier`, Tag 436.
    pub fn get_underlying_contract_multiplier(&self) -> Result<Decimal, MessageRejectErrorEnum> {
        let mut fld = field::UnderlyingContractMultiplierField::new(Decimal::ZERO, 0);
        self.message.body.get_field(tag::UNDERLYING_CONTRACT_MULTIPLIER, &mut fld.0)?;
        Ok(fld.value())
    }


    /// Returns true if `UnderlyingContractMultiplier` is present, Tag 436.
    pub fn has_underlying_contract_multiplier(&self) -> bool {
        self.message.body.has(tag::UNDERLYING_CONTRACT_MULTIPLIER)
    }




    /// Sets `UnderlyingCountryOfIssue`, Tag 592.
    pub fn set_underlying_country_of_issue(&mut self, v: String) {
        self.message.body.set_field(tag::UNDERLYING_COUNTRY_OF_ISSUE, FIXString::from(v));
    }

    /// Gets `UnderlyingCountryOfIssue`, Tag 592.
    pub fn get_underlying_country_of_issue(&self) -> Result<String, MessageRejectErrorEnum> {
        let mut fld = field::UnderlyingCountryOfIssueField::new(String::new());
        self.message.body.get_field(tag::UNDERLYING_COUNTRY_OF_ISSUE, &mut fld.0)?;
        Ok(fld.value().to_string())
    }


    /// Returns true if `UnderlyingCountryOfIssue` is present, Tag 592.
    pub fn has_underlying_country_of_issue(&self) -> bool {
        self.message.body.has(tag::UNDERLYING_COUNTRY_OF_ISSUE)
    }




    /// Sets `UnderlyingCouponPaymentDate`, Tag 241.
    pub fn set_underlying_coupon_payment_date(&mut self, v: String) {
        self.message.body.set_field(tag::UNDERLYING_COUPON_PAYMENT_DATE, FIXString::from(v));
    }

    /// Gets `UnderlyingCouponPaymentDate`, Tag 241.
    pub fn get_underlying_coupon_payment_date(&self) -> Result<String, MessageRejectErrorEnum> {
        let mut fld = field::UnderlyingCouponPaymentDateField::new(String::new());
        self.message.body.get_field(tag::UNDERLYING_COUPON_PAYMENT_DATE, &mut fld.0)?;
        Ok(fld.value().to_string())
    }


    /// Returns true if `UnderlyingCouponPaymentDate` is present, Tag 241.
    pub fn has_underlying_coupon_payment_date(&self) -> bool {
        self.message.body.has(tag::UNDERLYING_COUPON_PAYMENT_DATE)
    }




    /// Sets `UnderlyingCouponRate`, Tag 435.
    pub fn set_underlying_coupon_rate(&mut self, val: Decimal, scale: i32) {
        self.message.body.set_field(tag::UNDERLYING_COUPON_RATE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
    }

    /// Gets `UnderlyingCouponRate`, Tag 435.
    pub fn get_underlying_coupon_rate(&self) -> Result<Decimal, MessageRejectErrorEnum> {
        let mut fld = field::UnderlyingCouponRateField::new(Decimal::ZERO, 0);
        self.message.body.get_field(tag::UNDERLYING_COUPON_RATE, &mut fld.0)?;
        Ok(fld.value())
    }


    /// Returns true if `UnderlyingCouponRate` is present, Tag 435.
    pub fn has_underlying_coupon_rate(&self) -> bool {
        self.message.body.has(tag::UNDERLYING_COUPON_RATE)
    }




    /// Sets `UnderlyingCreditRating`, Tag 256.
    pub fn set_underlying_credit_rating(&mut self, v: String) {
        self.message.body.set_field(tag::UNDERLYING_CREDIT_RATING, FIXString::from(v));
    }

    /// Gets `UnderlyingCreditRating`, Tag 256.
    pub fn get_underlying_credit_rating(&self) -> Result<String, MessageRejectErrorEnum> {
        let mut fld = field::UnderlyingCreditRatingField::new(String::new());
        self.message.body.get_field(tag::UNDERLYING_CREDIT_RATING, &mut fld.0)?;
        Ok(fld.value().to_string())
    }


    /// Returns true if `UnderlyingCreditRating` is present, Tag 256.
    pub fn has_underlying_credit_rating(&self) -> bool {
        self.message.body.has(tag::UNDERLYING_CREDIT_RATING)
    }




    /// Sets `UnderlyingCurrency`, Tag 318.
    pub fn set_underlying_currency(&mut self, v: String) {
        self.message.body.set_field(tag::UNDERLYING_CURRENCY, FIXString::from(v));
    }

    /// Gets `UnderlyingCurrency`, Tag 318.
    pub fn get_underlying_currency(&self) -> Result<String, MessageRejectErrorEnum> {
        let mut fld = field::UnderlyingCurrencyField::new(String::new());
        self.message.body.get_field(tag::UNDERLYING_CURRENCY, &mut fld.0)?;
        Ok(fld.value().to_string())
    }


    /// Returns true if `UnderlyingCurrency` is present, Tag 318.
    pub fn has_underlying_currency(&self) -> bool {
        self.message.body.has(tag::UNDERLYING_CURRENCY)
    }




    /// Sets `UnderlyingCurrentValue`, Tag 885.
    pub fn set_underlying_current_value(&mut self, val: Decimal, scale: i32) {
        self.message.body.set_field(tag::UNDERLYING_CURRENT_VALUE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
    }

    /// Gets `UnderlyingCurrentValue`, Tag 885.
    pub fn get_underlying_current_value(&self) -> Result<Decimal, MessageRejectErrorEnum> {
        let mut fld = field::UnderlyingCurrentValueField::new(Decimal::ZERO, 0);
        self.message.body.get_field(tag::UNDERLYING_CURRENT_VALUE, &mut fld.0)?;
        Ok(fld.value())
    }


    /// Returns true if `UnderlyingCurrentValue` is present, Tag 885.
    pub fn has_underlying_current_value(&self) -> bool {
        self.message.body.has(tag::UNDERLYING_CURRENT_VALUE)
    }




    /// Sets `UnderlyingDirtyPrice`, Tag 882.
    pub fn set_underlying_dirty_price(&mut self, val: Decimal, scale: i32) {
        self.message.body.set_field(tag::UNDERLYING_DIRTY_PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
    }

    /// Gets `UnderlyingDirtyPrice`, Tag 882.
    pub fn get_underlying_dirty_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
        let mut fld = field::UnderlyingDirtyPriceField::new(Decimal::ZERO, 0);
        self.message.body.get_field(tag::UNDERLYING_DIRTY_PRICE, &mut fld.0)?;
        Ok(fld.value())
    }


    /// Returns true if `UnderlyingDirtyPrice` is present, Tag 882.
    pub fn has_underlying_dirty_price(&self) -> bool {
        self.message.body.has(tag::UNDERLYING_DIRTY_PRICE)
    }




    /// Sets `UnderlyingEndPrice`, Tag 883.
    pub fn set_underlying_end_price(&mut self, val: Decimal, scale: i32) {
        self.message.body.set_field(tag::UNDERLYING_END_PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
    }

    /// Gets `UnderlyingEndPrice`, Tag 883.
    pub fn get_underlying_end_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
        let mut fld = field::UnderlyingEndPriceField::new(Decimal::ZERO, 0);
        self.message.body.get_field(tag::UNDERLYING_END_PRICE, &mut fld.0)?;
        Ok(fld.value())
    }


    /// Returns true if `UnderlyingEndPrice` is present, Tag 883.
    pub fn has_underlying_end_price(&self) -> bool {
        self.message.body.has(tag::UNDERLYING_END_PRICE)
    }




    /// Sets `UnderlyingEndValue`, Tag 886.
    pub fn set_underlying_end_value(&mut self, val: Decimal, scale: i32) {
        self.message.body.set_field(tag::UNDERLYING_END_VALUE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
    }

    /// Gets `UnderlyingEndValue`, Tag 886.
    pub fn get_underlying_end_value(&self) -> Result<Decimal, MessageRejectErrorEnum> {
        let mut fld = field::UnderlyingEndValueField::new(Decimal::ZERO, 0);
        self.message.body.get_field(tag::UNDERLYING_END_VALUE, &mut fld.0)?;
        Ok(fld.value())
    }


    /// Returns true if `UnderlyingEndValue` is present, Tag 886.
    pub fn has_underlying_end_value(&self) -> bool {
        self.message.body.has(tag::UNDERLYING_END_VALUE)
    }




    /// Sets `UnderlyingFactor`, Tag 246.
    pub fn set_underlying_factor(&mut self, val: Decimal, scale: i32) {
        self.message.body.set_field(tag::UNDERLYING_FACTOR, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
    }

    /// Gets `UnderlyingFactor`, Tag 246.
    pub fn get_underlying_factor(&self) -> Result<Decimal, MessageRejectErrorEnum> {
        let mut fld = field::UnderlyingFactorField::new(Decimal::ZERO, 0);
        self.message.body.get_field(tag::UNDERLYING_FACTOR, &mut fld.0)?;
        Ok(fld.value())
    }


    /// Returns true if `UnderlyingFactor` is present, Tag 246.
    pub fn has_underlying_factor(&self) -> bool {
        self.message.body.has(tag::UNDERLYING_FACTOR)
    }




    /// Sets `UnderlyingInstrRegistry`, Tag 595.
    pub fn set_underlying_instr_registry(&mut self, v: String) {
        self.message.body.set_field(tag::UNDERLYING_INSTR_REGISTRY, FIXString::from(v));
    }

    /// Gets `UnderlyingInstrRegistry`, Tag 595.
    pub fn get_underlying_instr_registry(&self) -> Result<String, MessageRejectErrorEnum> {
        let mut fld = field::UnderlyingInstrRegistryField::new(String::new());
        self.message.body.get_field(tag::UNDERLYING_INSTR_REGISTRY, &mut fld.0)?;
        Ok(fld.value().to_string())
    }


    /// Returns true if `UnderlyingInstrRegistry` is present, Tag 595.
    pub fn has_underlying_instr_registry(&self) -> bool {
        self.message.body.has(tag::UNDERLYING_INSTR_REGISTRY)
    }




    /// Sets `UnderlyingIssueDate`, Tag 242.
    pub fn set_underlying_issue_date(&mut self, v: String) {
        self.message.body.set_field(tag::UNDERLYING_ISSUE_DATE, FIXString::from(v));
    }

    /// Gets `UnderlyingIssueDate`, Tag 242.
    pub fn get_underlying_issue_date(&self) -> Result<String, MessageRejectErrorEnum> {
        let mut fld = field::UnderlyingIssueDateField::new(String::new());
        self.message.body.get_field(tag::UNDERLYING_ISSUE_DATE, &mut fld.0)?;
        Ok(fld.value().to_string())
    }


    /// Returns true if `UnderlyingIssueDate` is present, Tag 242.
    pub fn has_underlying_issue_date(&self) -> bool {
        self.message.body.has(tag::UNDERLYING_ISSUE_DATE)
    }




    /// Sets `UnderlyingIssuer`, Tag 306.
    pub fn set_underlying_issuer(&mut self, v: String) {
        self.message.body.set_field(tag::UNDERLYING_ISSUER, FIXString::from(v));
    }

    /// Gets `UnderlyingIssuer`, Tag 306.
    pub fn get_underlying_issuer(&self) -> Result<String, MessageRejectErrorEnum> {
        let mut fld = field::UnderlyingIssuerField::new(String::new());
        self.message.body.get_field(tag::UNDERLYING_ISSUER, &mut fld.0)?;
        Ok(fld.value().to_string())
    }


    /// Returns true if `UnderlyingIssuer` is present, Tag 306.
    pub fn has_underlying_issuer(&self) -> bool {
        self.message.body.has(tag::UNDERLYING_ISSUER)
    }




    /// Sets `UnderlyingLocaleOfIssue`, Tag 594.
    pub fn set_underlying_locale_of_issue(&mut self, v: String) {
        self.message.body.set_field(tag::UNDERLYING_LOCALE_OF_ISSUE, FIXString::from(v));
    }

    /// Gets `UnderlyingLocaleOfIssue`, Tag 594.
    pub fn get_underlying_locale_of_issue(&self) -> Result<String, MessageRejectErrorEnum> {
        let mut fld = field::UnderlyingLocaleOfIssueField::new(String::new());
        self.message.body.get_field(tag::UNDERLYING_LOCALE_OF_ISSUE, &mut fld.0)?;
        Ok(fld.value().to_string())
    }


    /// Returns true if `UnderlyingLocaleOfIssue` is present, Tag 594.
    pub fn has_underlying_locale_of_issue(&self) -> bool {
        self.message.body.has(tag::UNDERLYING_LOCALE_OF_ISSUE)
    }




    /// Sets `UnderlyingMaturityDate`, Tag 542.
    pub fn set_underlying_maturity_date(&mut self, v: String) {
        self.message.body.set_field(tag::UNDERLYING_MATURITY_DATE, FIXString::from(v));
    }

    /// Gets `UnderlyingMaturityDate`, Tag 542.
    pub fn get_underlying_maturity_date(&self) -> Result<String, MessageRejectErrorEnum> {
        let mut fld = field::UnderlyingMaturityDateField::new(String::new());
        self.message.body.get_field(tag::UNDERLYING_MATURITY_DATE, &mut fld.0)?;
        Ok(fld.value().to_string())
    }


    /// Returns true if `UnderlyingMaturityDate` is present, Tag 542.
    pub fn has_underlying_maturity_date(&self) -> bool {
        self.message.body.has(tag::UNDERLYING_MATURITY_DATE)
    }




    /// Sets `UnderlyingMaturityMonthYear`, Tag 313.
    pub fn set_underlying_maturity_month_year(&mut self, v: String) {
        self.message.body.set_field(tag::UNDERLYING_MATURITY_MONTH_YEAR, FIXString::from(v));
    }

    /// Gets `UnderlyingMaturityMonthYear`, Tag 313.
    pub fn get_underlying_maturity_month_year(&self) -> Result<String, MessageRejectErrorEnum> {
        let mut fld = field::UnderlyingMaturityMonthYearField::new(String::new());
        self.message.body.get_field(tag::UNDERLYING_MATURITY_MONTH_YEAR, &mut fld.0)?;
        Ok(fld.value().to_string())
    }


    /// Returns true if `UnderlyingMaturityMonthYear` is present, Tag 313.
    pub fn has_underlying_maturity_month_year(&self) -> bool {
        self.message.body.has(tag::UNDERLYING_MATURITY_MONTH_YEAR)
    }




    /// Sets `UnderlyingOptAttribute`, Tag 317.
    pub fn set_underlying_opt_attribute(&mut self, v: String) {
        self.message.body.set_field(tag::UNDERLYING_OPT_ATTRIBUTE, FIXString::from(v));
    }

    /// Gets `UnderlyingOptAttribute`, Tag 317.
    pub fn get_underlying_opt_attribute(&self) -> Result<String, MessageRejectErrorEnum> {
        let mut fld = field::UnderlyingOptAttributeField::new(String::new());
        self.message.body.get_field(tag::UNDERLYING_OPT_ATTRIBUTE, &mut fld.0)?;
        Ok(fld.value().to_string())
    }


    /// Returns true if `UnderlyingOptAttribute` is present, Tag 317.
    pub fn has_underlying_opt_attribute(&self) -> bool {
        self.message.body.has(tag::UNDERLYING_OPT_ATTRIBUTE)
    }




    /// Sets `UnderlyingProduct`, Tag 462.
    pub fn set_underlying_product(&mut self, v: isize) {
        self.message.body.set_field(tag::UNDERLYING_PRODUCT, fixer::fix_int::FIXInt::from(v));
    }

    /// Gets `UnderlyingProduct`, Tag 462.
    pub fn get_underlying_product(&self) -> Result<isize, MessageRejectErrorEnum> {
        let mut fld = field::UnderlyingProductField::new(0);
        self.message.body.get_field(tag::UNDERLYING_PRODUCT, &mut fld.0)?;
        Ok(fld.value())
    }


    /// Returns true if `UnderlyingProduct` is present, Tag 462.
    pub fn has_underlying_product(&self) -> bool {
        self.message.body.has(tag::UNDERLYING_PRODUCT)
    }




    /// Sets `UnderlyingPx`, Tag 810.
    pub fn set_underlying_px(&mut self, val: Decimal, scale: i32) {
        self.message.body.set_field(tag::UNDERLYING_PX, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
    }

    /// Gets `UnderlyingPx`, Tag 810.
    pub fn get_underlying_px(&self) -> Result<Decimal, MessageRejectErrorEnum> {
        let mut fld = field::UnderlyingPxField::new(Decimal::ZERO, 0);
        self.message.body.get_field(tag::UNDERLYING_PX, &mut fld.0)?;
        Ok(fld.value())
    }


    /// Returns true if `UnderlyingPx` is present, Tag 810.
    pub fn has_underlying_px(&self) -> bool {
        self.message.body.has(tag::UNDERLYING_PX)
    }




    /// Sets `UnderlyingQty`, Tag 879.
    pub fn set_underlying_qty(&mut self, val: Decimal, scale: i32) {
        self.message.body.set_field(tag::UNDERLYING_QTY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
    }

    /// Gets `UnderlyingQty`, Tag 879.
    pub fn get_underlying_qty(&self) -> Result<Decimal, MessageRejectErrorEnum> {
        let mut fld = field::UnderlyingQtyField::new(Decimal::ZERO, 0);
        self.message.body.get_field(tag::UNDERLYING_QTY, &mut fld.0)?;
        Ok(fld.value())
    }


    /// Returns true if `UnderlyingQty` is present, Tag 879.
    pub fn has_underlying_qty(&self) -> bool {
        self.message.body.has(tag::UNDERLYING_QTY)
    }




    /// Sets `UnderlyingRedemptionDate`, Tag 247.
    pub fn set_underlying_redemption_date(&mut self, v: String) {
        self.message.body.set_field(tag::UNDERLYING_REDEMPTION_DATE, FIXString::from(v));
    }

    /// Gets `UnderlyingRedemptionDate`, Tag 247.
    pub fn get_underlying_redemption_date(&self) -> Result<String, MessageRejectErrorEnum> {
        let mut fld = field::UnderlyingRedemptionDateField::new(String::new());
        self.message.body.get_field(tag::UNDERLYING_REDEMPTION_DATE, &mut fld.0)?;
        Ok(fld.value().to_string())
    }


    /// Returns true if `UnderlyingRedemptionDate` is present, Tag 247.
    pub fn has_underlying_redemption_date(&self) -> bool {
        self.message.body.has(tag::UNDERLYING_REDEMPTION_DATE)
    }




    /// Sets `UnderlyingRepoCollateralSecurityType`, Tag 243.
    pub fn set_underlying_repo_collateral_security_type(&mut self, v: isize) {
        self.message.body.set_field(tag::UNDERLYING_REPO_COLLATERAL_SECURITY_TYPE, fixer::fix_int::FIXInt::from(v));
    }

    /// Gets `UnderlyingRepoCollateralSecurityType`, Tag 243.
    pub fn get_underlying_repo_collateral_security_type(&self) -> Result<isize, MessageRejectErrorEnum> {
        let mut fld = field::UnderlyingRepoCollateralSecurityTypeField::new(0);
        self.message.body.get_field(tag::UNDERLYING_REPO_COLLATERAL_SECURITY_TYPE, &mut fld.0)?;
        Ok(fld.value())
    }


    /// Returns true if `UnderlyingRepoCollateralSecurityType` is present, Tag 243.
    pub fn has_underlying_repo_collateral_security_type(&self) -> bool {
        self.message.body.has(tag::UNDERLYING_REPO_COLLATERAL_SECURITY_TYPE)
    }




    /// Sets `UnderlyingRepurchaseRate`, Tag 245.
    pub fn set_underlying_repurchase_rate(&mut self, val: Decimal, scale: i32) {
        self.message.body.set_field(tag::UNDERLYING_REPURCHASE_RATE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
    }

    /// Gets `UnderlyingRepurchaseRate`, Tag 245.
    pub fn get_underlying_repurchase_rate(&self) -> Result<Decimal, MessageRejectErrorEnum> {
        let mut fld = field::UnderlyingRepurchaseRateField::new(Decimal::ZERO, 0);
        self.message.body.get_field(tag::UNDERLYING_REPURCHASE_RATE, &mut fld.0)?;
        Ok(fld.value())
    }


    /// Returns true if `UnderlyingRepurchaseRate` is present, Tag 245.
    pub fn has_underlying_repurchase_rate(&self) -> bool {
        self.message.body.has(tag::UNDERLYING_REPURCHASE_RATE)
    }




    /// Sets `UnderlyingRepurchaseTerm`, Tag 244.
    pub fn set_underlying_repurchase_term(&mut self, v: isize) {
        self.message.body.set_field(tag::UNDERLYING_REPURCHASE_TERM, fixer::fix_int::FIXInt::from(v));
    }

    /// Gets `UnderlyingRepurchaseTerm`, Tag 244.
    pub fn get_underlying_repurchase_term(&self) -> Result<isize, MessageRejectErrorEnum> {
        let mut fld = field::UnderlyingRepurchaseTermField::new(0);
        self.message.body.get_field(tag::UNDERLYING_REPURCHASE_TERM, &mut fld.0)?;
        Ok(fld.value())
    }


    /// Returns true if `UnderlyingRepurchaseTerm` is present, Tag 244.
    pub fn has_underlying_repurchase_term(&self) -> bool {
        self.message.body.has(tag::UNDERLYING_REPURCHASE_TERM)
    }




    /// Sets `UnderlyingSecurityDesc`, Tag 307.
    pub fn set_underlying_security_desc(&mut self, v: String) {
        self.message.body.set_field(tag::UNDERLYING_SECURITY_DESC, FIXString::from(v));
    }

    /// Gets `UnderlyingSecurityDesc`, Tag 307.
    pub fn get_underlying_security_desc(&self) -> Result<String, MessageRejectErrorEnum> {
        let mut fld = field::UnderlyingSecurityDescField::new(String::new());
        self.message.body.get_field(tag::UNDERLYING_SECURITY_DESC, &mut fld.0)?;
        Ok(fld.value().to_string())
    }


    /// Returns true if `UnderlyingSecurityDesc` is present, Tag 307.
    pub fn has_underlying_security_desc(&self) -> bool {
        self.message.body.has(tag::UNDERLYING_SECURITY_DESC)
    }




    /// Sets `UnderlyingSecurityExchange`, Tag 308.
    pub fn set_underlying_security_exchange(&mut self, v: String) {
        self.message.body.set_field(tag::UNDERLYING_SECURITY_EXCHANGE, FIXString::from(v));
    }

    /// Gets `UnderlyingSecurityExchange`, Tag 308.
    pub fn get_underlying_security_exchange(&self) -> Result<String, MessageRejectErrorEnum> {
        let mut fld = field::UnderlyingSecurityExchangeField::new(String::new());
        self.message.body.get_field(tag::UNDERLYING_SECURITY_EXCHANGE, &mut fld.0)?;
        Ok(fld.value().to_string())
    }


    /// Returns true if `UnderlyingSecurityExchange` is present, Tag 308.
    pub fn has_underlying_security_exchange(&self) -> bool {
        self.message.body.has(tag::UNDERLYING_SECURITY_EXCHANGE)
    }




    /// Sets `UnderlyingSecurityID`, Tag 309.
    pub fn set_underlying_security_id(&mut self, v: String) {
        self.message.body.set_field(tag::UNDERLYING_SECURITY_ID, FIXString::from(v));
    }

    /// Gets `UnderlyingSecurityID`, Tag 309.
    pub fn get_underlying_security_id(&self) -> Result<String, MessageRejectErrorEnum> {
        let mut fld = field::UnderlyingSecurityIDField::new(String::new());
        self.message.body.get_field(tag::UNDERLYING_SECURITY_ID, &mut fld.0)?;
        Ok(fld.value().to_string())
    }


    /// Returns true if `UnderlyingSecurityID` is present, Tag 309.
    pub fn has_underlying_security_id(&self) -> bool {
        self.message.body.has(tag::UNDERLYING_SECURITY_ID)
    }




    /// Sets `UnderlyingSecurityIDSource`, Tag 305.
    pub fn set_underlying_security_id_source(&mut self, v: String) {
        self.message.body.set_field(tag::UNDERLYING_SECURITY_ID_SOURCE, FIXString::from(v));
    }

    /// Gets `UnderlyingSecurityIDSource`, Tag 305.
    pub fn get_underlying_security_id_source(&self) -> Result<String, MessageRejectErrorEnum> {
        let mut fld = field::UnderlyingSecurityIDSourceField::new(String::new());
        self.message.body.get_field(tag::UNDERLYING_SECURITY_ID_SOURCE, &mut fld.0)?;
        Ok(fld.value().to_string())
    }


    /// Returns true if `UnderlyingSecurityIDSource` is present, Tag 305.
    pub fn has_underlying_security_id_source(&self) -> bool {
        self.message.body.has(tag::UNDERLYING_SECURITY_ID_SOURCE)
    }




    /// Sets `UnderlyingSecuritySubType`, Tag 763.
    pub fn set_underlying_security_sub_type(&mut self, v: String) {
        self.message.body.set_field(tag::UNDERLYING_SECURITY_SUB_TYPE, FIXString::from(v));
    }

    /// Gets `UnderlyingSecuritySubType`, Tag 763.
    pub fn get_underlying_security_sub_type(&self) -> Result<String, MessageRejectErrorEnum> {
        let mut fld = field::UnderlyingSecuritySubTypeField::new(String::new());
        self.message.body.get_field(tag::UNDERLYING_SECURITY_SUB_TYPE, &mut fld.0)?;
        Ok(fld.value().to_string())
    }


    /// Returns true if `UnderlyingSecuritySubType` is present, Tag 763.
    pub fn has_underlying_security_sub_type(&self) -> bool {
        self.message.body.has(tag::UNDERLYING_SECURITY_SUB_TYPE)
    }




    /// Sets `UnderlyingSecurityType`, Tag 310.
    pub fn set_underlying_security_type(&mut self, v: String) {
        self.message.body.set_field(tag::UNDERLYING_SECURITY_TYPE, FIXString::from(v));
    }

    /// Gets `UnderlyingSecurityType`, Tag 310.
    pub fn get_underlying_security_type(&self) -> Result<String, MessageRejectErrorEnum> {
        let mut fld = field::UnderlyingSecurityTypeField::new(String::new());
        self.message.body.get_field(tag::UNDERLYING_SECURITY_TYPE, &mut fld.0)?;
        Ok(fld.value().to_string())
    }


    /// Returns true if `UnderlyingSecurityType` is present, Tag 310.
    pub fn has_underlying_security_type(&self) -> bool {
        self.message.body.has(tag::UNDERLYING_SECURITY_TYPE)
    }




    /// Sets `UnderlyingStartValue`, Tag 884.
    pub fn set_underlying_start_value(&mut self, val: Decimal, scale: i32) {
        self.message.body.set_field(tag::UNDERLYING_START_VALUE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
    }

    /// Gets `UnderlyingStartValue`, Tag 884.
    pub fn get_underlying_start_value(&self) -> Result<Decimal, MessageRejectErrorEnum> {
        let mut fld = field::UnderlyingStartValueField::new(Decimal::ZERO, 0);
        self.message.body.get_field(tag::UNDERLYING_START_VALUE, &mut fld.0)?;
        Ok(fld.value())
    }


    /// Returns true if `UnderlyingStartValue` is present, Tag 884.
    pub fn has_underlying_start_value(&self) -> bool {
        self.message.body.has(tag::UNDERLYING_START_VALUE)
    }




    /// Sets `UnderlyingStateOrProvinceOfIssue`, Tag 593.
    pub fn set_underlying_state_or_province_of_issue(&mut self, v: String) {
        self.message.body.set_field(tag::UNDERLYING_STATE_OR_PROVINCE_OF_ISSUE, FIXString::from(v));
    }

    /// Gets `UnderlyingStateOrProvinceOfIssue`, Tag 593.
    pub fn get_underlying_state_or_province_of_issue(&self) -> Result<String, MessageRejectErrorEnum> {
        let mut fld = field::UnderlyingStateOrProvinceOfIssueField::new(String::new());
        self.message.body.get_field(tag::UNDERLYING_STATE_OR_PROVINCE_OF_ISSUE, &mut fld.0)?;
        Ok(fld.value().to_string())
    }


    /// Returns true if `UnderlyingStateOrProvinceOfIssue` is present, Tag 593.
    pub fn has_underlying_state_or_province_of_issue(&self) -> bool {
        self.message.body.has(tag::UNDERLYING_STATE_OR_PROVINCE_OF_ISSUE)
    }




    /// Sets `UnderlyingStrikeCurrency`, Tag 941.
    pub fn set_underlying_strike_currency(&mut self, v: String) {
        self.message.body.set_field(tag::UNDERLYING_STRIKE_CURRENCY, FIXString::from(v));
    }

    /// Gets `UnderlyingStrikeCurrency`, Tag 941.
    pub fn get_underlying_strike_currency(&self) -> Result<String, MessageRejectErrorEnum> {
        let mut fld = field::UnderlyingStrikeCurrencyField::new(String::new());
        self.message.body.get_field(tag::UNDERLYING_STRIKE_CURRENCY, &mut fld.0)?;
        Ok(fld.value().to_string())
    }


    /// Returns true if `UnderlyingStrikeCurrency` is present, Tag 941.
    pub fn has_underlying_strike_currency(&self) -> bool {
        self.message.body.has(tag::UNDERLYING_STRIKE_CURRENCY)
    }




    /// Sets `UnderlyingStrikePrice`, Tag 316.
    pub fn set_underlying_strike_price(&mut self, val: Decimal, scale: i32) {
        self.message.body.set_field(tag::UNDERLYING_STRIKE_PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
    }

    /// Gets `UnderlyingStrikePrice`, Tag 316.
    pub fn get_underlying_strike_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
        let mut fld = field::UnderlyingStrikePriceField::new(Decimal::ZERO, 0);
        self.message.body.get_field(tag::UNDERLYING_STRIKE_PRICE, &mut fld.0)?;
        Ok(fld.value())
    }


    /// Returns true if `UnderlyingStrikePrice` is present, Tag 316.
    pub fn has_underlying_strike_price(&self) -> bool {
        self.message.body.has(tag::UNDERLYING_STRIKE_PRICE)
    }




    /// Sets `UnderlyingSymbol`, Tag 311.
    pub fn set_underlying_symbol(&mut self, v: String) {
        self.message.body.set_field(tag::UNDERLYING_SYMBOL, FIXString::from(v));
    }

    /// Gets `UnderlyingSymbol`, Tag 311.
    pub fn get_underlying_symbol(&self) -> Result<String, MessageRejectErrorEnum> {
        let mut fld = field::UnderlyingSymbolField::new(String::new());
        self.message.body.get_field(tag::UNDERLYING_SYMBOL, &mut fld.0)?;
        Ok(fld.value().to_string())
    }


    /// Returns true if `UnderlyingSymbol` is present, Tag 311.
    pub fn has_underlying_symbol(&self) -> bool {
        self.message.body.has(tag::UNDERLYING_SYMBOL)
    }




    /// Sets `UnderlyingSymbolSfx`, Tag 312.
    pub fn set_underlying_symbol_sfx(&mut self, v: String) {
        self.message.body.set_field(tag::UNDERLYING_SYMBOL_SFX, FIXString::from(v));
    }

    /// Gets `UnderlyingSymbolSfx`, Tag 312.
    pub fn get_underlying_symbol_sfx(&self) -> Result<String, MessageRejectErrorEnum> {
        let mut fld = field::UnderlyingSymbolSfxField::new(String::new());
        self.message.body.get_field(tag::UNDERLYING_SYMBOL_SFX, &mut fld.0)?;
        Ok(fld.value().to_string())
    }


    /// Returns true if `UnderlyingSymbolSfx` is present, Tag 312.
    pub fn has_underlying_symbol_sfx(&self) -> bool {
        self.message.body.has(tag::UNDERLYING_SYMBOL_SFX)
    }


}

/// `RouteOut` is the callback type for routing `DerivativeSecurityListRequest` messages.
pub type RouteOut = fn(msg: DerivativeSecurityListRequest, session_id: SessionID) -> Result<(), MessageRejectErrorEnum>;

/// Route type returned by the `route` function.
pub type Route = (&'static str, &'static str, Box<dyn Fn(&Message, SessionID) -> Result<(), MessageRejectErrorEnum> + Send>);

/// Returns the begin string, message type, and route function for `DerivativeSecurityListRequest`.
pub fn route(router: RouteOut) -> Route {
    let r = move |msg: &Message, session_id: SessionID| -> Result<(), MessageRejectErrorEnum> {
        router(DerivativeSecurityListRequest::from_message(msg.clone()), session_id)
    };
    ("FIX.4.4", "z", Box::new(r))
}