Skip to main content

fixer_fix/fix44/
order_cancel_replace_request.rs

1// Code generated by fixer-gen. DO NOT EDIT.
2#![allow(clippy::new_without_default)]
3#![allow(clippy::needless_pass_by_value)]
4#![allow(clippy::too_many_arguments)]
5#![allow(unused_imports)]
6
7use fixer::message::Message;
8use fixer::fix_string::FIXString;
9use fixer::errors::MessageRejectErrorEnum;
10use fixer::session::session_id::SessionID;
11
12use rust_decimal::Decimal;
13
14
15use jiff::Timestamp;
16
17use crate::field;
18use crate::tag;
19
20/// `OrderCancelReplaceRequest` is the `fix44` `OrderCancelReplaceRequest` type, `MsgType` = G.
21pub struct OrderCancelReplaceRequest {
22    pub message: Message,
23}
24
25impl OrderCancelReplaceRequest {
26    /// Creates a new `OrderCancelReplaceRequest` with required fields.
27    pub fn new(orig_cl_ord_id: field::OrigClOrdIDField, cl_ord_id: field::ClOrdIDField, side: field::SideField, transact_time: field::TransactTimeField, ord_type: field::OrdTypeField) -> Self {
28        let mut msg = Message::new();
29        msg.header.set_field(tag::MSG_TYPE, FIXString::from("G".to_string()));
30
31        msg.body.set_field(tag::ORIG_CL_ORD_ID, orig_cl_ord_id.0);
32
33        msg.body.set_field(tag::CL_ORD_ID, cl_ord_id.0);
34
35        msg.body.set_field(tag::SIDE, side.0);
36
37        msg.body.set_field(tag::TRANSACT_TIME, transact_time.0);
38
39        msg.body.set_field(tag::ORD_TYPE, ord_type.0);
40
41        Self { message: msg }
42    }
43
44    /// Creates a `OrderCancelReplaceRequest` from an existing `Message`.
45    pub fn from_message(msg: Message) -> Self {
46        Self { message: msg }
47    }
48
49    /// Returns the underlying `Message`.
50    pub fn to_message(self) -> Message {
51        self.message
52    }
53
54
55
56
57    /// Sets `Account`, Tag 1.
58    pub fn set_account(&mut self, v: String) {
59        self.message.body.set_field(tag::ACCOUNT, FIXString::from(v));
60    }
61
62    /// Gets `Account`, Tag 1.
63    pub fn get_account(&self) -> Result<String, MessageRejectErrorEnum> {
64        let mut fld = field::AccountField::new(String::new());
65        self.message.body.get_field(tag::ACCOUNT, &mut fld.0)?;
66        Ok(fld.value().to_string())
67    }
68
69
70    /// Returns true if `Account` is present, Tag 1.
71    pub fn has_account(&self) -> bool {
72        self.message.body.has(tag::ACCOUNT)
73    }
74
75
76
77
78    /// Sets `AccountType`, Tag 581.
79    pub fn set_account_type(&mut self, v: isize) {
80        self.message.body.set_field(tag::ACCOUNT_TYPE, fixer::fix_int::FIXInt::from(v));
81    }
82
83    /// Gets `AccountType`, Tag 581.
84    pub fn get_account_type(&self) -> Result<isize, MessageRejectErrorEnum> {
85        let mut fld = field::AccountTypeField::new(0);
86        self.message.body.get_field(tag::ACCOUNT_TYPE, &mut fld.0)?;
87        Ok(fld.value())
88    }
89
90
91    /// Returns true if `AccountType` is present, Tag 581.
92    pub fn has_account_type(&self) -> bool {
93        self.message.body.has(tag::ACCOUNT_TYPE)
94    }
95
96
97
98
99    /// Sets `AcctIDSource`, Tag 660.
100    pub fn set_acct_id_source(&mut self, v: isize) {
101        self.message.body.set_field(tag::ACCT_ID_SOURCE, fixer::fix_int::FIXInt::from(v));
102    }
103
104    /// Gets `AcctIDSource`, Tag 660.
105    pub fn get_acct_id_source(&self) -> Result<isize, MessageRejectErrorEnum> {
106        let mut fld = field::AcctIDSourceField::new(0);
107        self.message.body.get_field(tag::ACCT_ID_SOURCE, &mut fld.0)?;
108        Ok(fld.value())
109    }
110
111
112    /// Returns true if `AcctIDSource` is present, Tag 660.
113    pub fn has_acct_id_source(&self) -> bool {
114        self.message.body.has(tag::ACCT_ID_SOURCE)
115    }
116
117
118
119
120    /// Sets `AgreementCurrency`, Tag 918.
121    pub fn set_agreement_currency(&mut self, v: String) {
122        self.message.body.set_field(tag::AGREEMENT_CURRENCY, FIXString::from(v));
123    }
124
125    /// Gets `AgreementCurrency`, Tag 918.
126    pub fn get_agreement_currency(&self) -> Result<String, MessageRejectErrorEnum> {
127        let mut fld = field::AgreementCurrencyField::new(String::new());
128        self.message.body.get_field(tag::AGREEMENT_CURRENCY, &mut fld.0)?;
129        Ok(fld.value().to_string())
130    }
131
132
133    /// Returns true if `AgreementCurrency` is present, Tag 918.
134    pub fn has_agreement_currency(&self) -> bool {
135        self.message.body.has(tag::AGREEMENT_CURRENCY)
136    }
137
138
139
140
141    /// Sets `AgreementDate`, Tag 915.
142    pub fn set_agreement_date(&mut self, v: String) {
143        self.message.body.set_field(tag::AGREEMENT_DATE, FIXString::from(v));
144    }
145
146    /// Gets `AgreementDate`, Tag 915.
147    pub fn get_agreement_date(&self) -> Result<String, MessageRejectErrorEnum> {
148        let mut fld = field::AgreementDateField::new(String::new());
149        self.message.body.get_field(tag::AGREEMENT_DATE, &mut fld.0)?;
150        Ok(fld.value().to_string())
151    }
152
153
154    /// Returns true if `AgreementDate` is present, Tag 915.
155    pub fn has_agreement_date(&self) -> bool {
156        self.message.body.has(tag::AGREEMENT_DATE)
157    }
158
159
160
161
162    /// Sets `AgreementDesc`, Tag 913.
163    pub fn set_agreement_desc(&mut self, v: String) {
164        self.message.body.set_field(tag::AGREEMENT_DESC, FIXString::from(v));
165    }
166
167    /// Gets `AgreementDesc`, Tag 913.
168    pub fn get_agreement_desc(&self) -> Result<String, MessageRejectErrorEnum> {
169        let mut fld = field::AgreementDescField::new(String::new());
170        self.message.body.get_field(tag::AGREEMENT_DESC, &mut fld.0)?;
171        Ok(fld.value().to_string())
172    }
173
174
175    /// Returns true if `AgreementDesc` is present, Tag 913.
176    pub fn has_agreement_desc(&self) -> bool {
177        self.message.body.has(tag::AGREEMENT_DESC)
178    }
179
180
181
182
183    /// Sets `AgreementID`, Tag 914.
184    pub fn set_agreement_id(&mut self, v: String) {
185        self.message.body.set_field(tag::AGREEMENT_ID, FIXString::from(v));
186    }
187
188    /// Gets `AgreementID`, Tag 914.
189    pub fn get_agreement_id(&self) -> Result<String, MessageRejectErrorEnum> {
190        let mut fld = field::AgreementIDField::new(String::new());
191        self.message.body.get_field(tag::AGREEMENT_ID, &mut fld.0)?;
192        Ok(fld.value().to_string())
193    }
194
195
196    /// Returns true if `AgreementID` is present, Tag 914.
197    pub fn has_agreement_id(&self) -> bool {
198        self.message.body.has(tag::AGREEMENT_ID)
199    }
200
201
202
203
204    /// Sets `AllocID`, Tag 70.
205    pub fn set_alloc_id(&mut self, v: String) {
206        self.message.body.set_field(tag::ALLOC_ID, FIXString::from(v));
207    }
208
209    /// Gets `AllocID`, Tag 70.
210    pub fn get_alloc_id(&self) -> Result<String, MessageRejectErrorEnum> {
211        let mut fld = field::AllocIDField::new(String::new());
212        self.message.body.get_field(tag::ALLOC_ID, &mut fld.0)?;
213        Ok(fld.value().to_string())
214    }
215
216
217    /// Returns true if `AllocID` is present, Tag 70.
218    pub fn has_alloc_id(&self) -> bool {
219        self.message.body.has(tag::ALLOC_ID)
220    }
221
222
223
224
225    /// Sets `BenchmarkCurveCurrency`, Tag 220.
226    pub fn set_benchmark_curve_currency(&mut self, v: String) {
227        self.message.body.set_field(tag::BENCHMARK_CURVE_CURRENCY, FIXString::from(v));
228    }
229
230    /// Gets `BenchmarkCurveCurrency`, Tag 220.
231    pub fn get_benchmark_curve_currency(&self) -> Result<String, MessageRejectErrorEnum> {
232        let mut fld = field::BenchmarkCurveCurrencyField::new(String::new());
233        self.message.body.get_field(tag::BENCHMARK_CURVE_CURRENCY, &mut fld.0)?;
234        Ok(fld.value().to_string())
235    }
236
237
238    /// Returns true if `BenchmarkCurveCurrency` is present, Tag 220.
239    pub fn has_benchmark_curve_currency(&self) -> bool {
240        self.message.body.has(tag::BENCHMARK_CURVE_CURRENCY)
241    }
242
243
244
245
246    /// Sets `BenchmarkCurveName`, Tag 221.
247    pub fn set_benchmark_curve_name(&mut self, v: String) {
248        self.message.body.set_field(tag::BENCHMARK_CURVE_NAME, FIXString::from(v));
249    }
250
251    /// Gets `BenchmarkCurveName`, Tag 221.
252    pub fn get_benchmark_curve_name(&self) -> Result<String, MessageRejectErrorEnum> {
253        let mut fld = field::BenchmarkCurveNameField::new(String::new());
254        self.message.body.get_field(tag::BENCHMARK_CURVE_NAME, &mut fld.0)?;
255        Ok(fld.value().to_string())
256    }
257
258
259    /// Returns true if `BenchmarkCurveName` is present, Tag 221.
260    pub fn has_benchmark_curve_name(&self) -> bool {
261        self.message.body.has(tag::BENCHMARK_CURVE_NAME)
262    }
263
264
265
266
267    /// Sets `BenchmarkCurvePoint`, Tag 222.
268    pub fn set_benchmark_curve_point(&mut self, v: String) {
269        self.message.body.set_field(tag::BENCHMARK_CURVE_POINT, FIXString::from(v));
270    }
271
272    /// Gets `BenchmarkCurvePoint`, Tag 222.
273    pub fn get_benchmark_curve_point(&self) -> Result<String, MessageRejectErrorEnum> {
274        let mut fld = field::BenchmarkCurvePointField::new(String::new());
275        self.message.body.get_field(tag::BENCHMARK_CURVE_POINT, &mut fld.0)?;
276        Ok(fld.value().to_string())
277    }
278
279
280    /// Returns true if `BenchmarkCurvePoint` is present, Tag 222.
281    pub fn has_benchmark_curve_point(&self) -> bool {
282        self.message.body.has(tag::BENCHMARK_CURVE_POINT)
283    }
284
285
286
287
288    /// Sets `BenchmarkPrice`, Tag 662.
289    pub fn set_benchmark_price(&mut self, val: Decimal, scale: i32) {
290        self.message.body.set_field(tag::BENCHMARK_PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
291    }
292
293    /// Gets `BenchmarkPrice`, Tag 662.
294    pub fn get_benchmark_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
295        let mut fld = field::BenchmarkPriceField::new(Decimal::ZERO, 0);
296        self.message.body.get_field(tag::BENCHMARK_PRICE, &mut fld.0)?;
297        Ok(fld.value())
298    }
299
300
301    /// Returns true if `BenchmarkPrice` is present, Tag 662.
302    pub fn has_benchmark_price(&self) -> bool {
303        self.message.body.has(tag::BENCHMARK_PRICE)
304    }
305
306
307
308
309    /// Sets `BenchmarkPriceType`, Tag 663.
310    pub fn set_benchmark_price_type(&mut self, v: isize) {
311        self.message.body.set_field(tag::BENCHMARK_PRICE_TYPE, fixer::fix_int::FIXInt::from(v));
312    }
313
314    /// Gets `BenchmarkPriceType`, Tag 663.
315    pub fn get_benchmark_price_type(&self) -> Result<isize, MessageRejectErrorEnum> {
316        let mut fld = field::BenchmarkPriceTypeField::new(0);
317        self.message.body.get_field(tag::BENCHMARK_PRICE_TYPE, &mut fld.0)?;
318        Ok(fld.value())
319    }
320
321
322    /// Returns true if `BenchmarkPriceType` is present, Tag 663.
323    pub fn has_benchmark_price_type(&self) -> bool {
324        self.message.body.has(tag::BENCHMARK_PRICE_TYPE)
325    }
326
327
328
329
330    /// Sets `BenchmarkSecurityID`, Tag 699.
331    pub fn set_benchmark_security_id(&mut self, v: String) {
332        self.message.body.set_field(tag::BENCHMARK_SECURITY_ID, FIXString::from(v));
333    }
334
335    /// Gets `BenchmarkSecurityID`, Tag 699.
336    pub fn get_benchmark_security_id(&self) -> Result<String, MessageRejectErrorEnum> {
337        let mut fld = field::BenchmarkSecurityIDField::new(String::new());
338        self.message.body.get_field(tag::BENCHMARK_SECURITY_ID, &mut fld.0)?;
339        Ok(fld.value().to_string())
340    }
341
342
343    /// Returns true if `BenchmarkSecurityID` is present, Tag 699.
344    pub fn has_benchmark_security_id(&self) -> bool {
345        self.message.body.has(tag::BENCHMARK_SECURITY_ID)
346    }
347
348
349
350
351    /// Sets `BenchmarkSecurityIDSource`, Tag 761.
352    pub fn set_benchmark_security_id_source(&mut self, v: String) {
353        self.message.body.set_field(tag::BENCHMARK_SECURITY_ID_SOURCE, FIXString::from(v));
354    }
355
356    /// Gets `BenchmarkSecurityIDSource`, Tag 761.
357    pub fn get_benchmark_security_id_source(&self) -> Result<String, MessageRejectErrorEnum> {
358        let mut fld = field::BenchmarkSecurityIDSourceField::new(String::new());
359        self.message.body.get_field(tag::BENCHMARK_SECURITY_ID_SOURCE, &mut fld.0)?;
360        Ok(fld.value().to_string())
361    }
362
363
364    /// Returns true if `BenchmarkSecurityIDSource` is present, Tag 761.
365    pub fn has_benchmark_security_id_source(&self) -> bool {
366        self.message.body.has(tag::BENCHMARK_SECURITY_ID_SOURCE)
367    }
368
369
370
371
372    /// Sets `BookingType`, Tag 775.
373    pub fn set_booking_type(&mut self, v: isize) {
374        self.message.body.set_field(tag::BOOKING_TYPE, fixer::fix_int::FIXInt::from(v));
375    }
376
377    /// Gets `BookingType`, Tag 775.
378    pub fn get_booking_type(&self) -> Result<isize, MessageRejectErrorEnum> {
379        let mut fld = field::BookingTypeField::new(0);
380        self.message.body.get_field(tag::BOOKING_TYPE, &mut fld.0)?;
381        Ok(fld.value())
382    }
383
384
385    /// Returns true if `BookingType` is present, Tag 775.
386    pub fn has_booking_type(&self) -> bool {
387        self.message.body.has(tag::BOOKING_TYPE)
388    }
389
390
391
392
393    /// Sets `BookingUnit`, Tag 590.
394    pub fn set_booking_unit(&mut self, v: String) {
395        self.message.body.set_field(tag::BOOKING_UNIT, FIXString::from(v));
396    }
397
398    /// Gets `BookingUnit`, Tag 590.
399    pub fn get_booking_unit(&self) -> Result<String, MessageRejectErrorEnum> {
400        let mut fld = field::BookingUnitField::new(String::new());
401        self.message.body.get_field(tag::BOOKING_UNIT, &mut fld.0)?;
402        Ok(fld.value().to_string())
403    }
404
405
406    /// Returns true if `BookingUnit` is present, Tag 590.
407    pub fn has_booking_unit(&self) -> bool {
408        self.message.body.has(tag::BOOKING_UNIT)
409    }
410
411
412
413
414    /// Sets `CFICode`, Tag 461.
415    pub fn set_cfi_code(&mut self, v: String) {
416        self.message.body.set_field(tag::CFI_CODE, FIXString::from(v));
417    }
418
419    /// Gets `CFICode`, Tag 461.
420    pub fn get_cfi_code(&self) -> Result<String, MessageRejectErrorEnum> {
421        let mut fld = field::CFICodeField::new(String::new());
422        self.message.body.get_field(tag::CFI_CODE, &mut fld.0)?;
423        Ok(fld.value().to_string())
424    }
425
426
427    /// Returns true if `CFICode` is present, Tag 461.
428    pub fn has_cfi_code(&self) -> bool {
429        self.message.body.has(tag::CFI_CODE)
430    }
431
432
433
434
435    /// Sets `CPProgram`, Tag 875.
436    pub fn set_cp_program(&mut self, v: isize) {
437        self.message.body.set_field(tag::CP_PROGRAM, fixer::fix_int::FIXInt::from(v));
438    }
439
440    /// Gets `CPProgram`, Tag 875.
441    pub fn get_cp_program(&self) -> Result<isize, MessageRejectErrorEnum> {
442        let mut fld = field::CPProgramField::new(0);
443        self.message.body.get_field(tag::CP_PROGRAM, &mut fld.0)?;
444        Ok(fld.value())
445    }
446
447
448    /// Returns true if `CPProgram` is present, Tag 875.
449    pub fn has_cp_program(&self) -> bool {
450        self.message.body.has(tag::CP_PROGRAM)
451    }
452
453
454
455
456    /// Sets `CPRegType`, Tag 876.
457    pub fn set_cp_reg_type(&mut self, v: String) {
458        self.message.body.set_field(tag::CP_REG_TYPE, FIXString::from(v));
459    }
460
461    /// Gets `CPRegType`, Tag 876.
462    pub fn get_cp_reg_type(&self) -> Result<String, MessageRejectErrorEnum> {
463        let mut fld = field::CPRegTypeField::new(String::new());
464        self.message.body.get_field(tag::CP_REG_TYPE, &mut fld.0)?;
465        Ok(fld.value().to_string())
466    }
467
468
469    /// Returns true if `CPRegType` is present, Tag 876.
470    pub fn has_cp_reg_type(&self) -> bool {
471        self.message.body.has(tag::CP_REG_TYPE)
472    }
473
474
475
476
477    /// Sets `CancellationRights`, Tag 480.
478    pub fn set_cancellation_rights(&mut self, v: String) {
479        self.message.body.set_field(tag::CANCELLATION_RIGHTS, FIXString::from(v));
480    }
481
482    /// Gets `CancellationRights`, Tag 480.
483    pub fn get_cancellation_rights(&self) -> Result<String, MessageRejectErrorEnum> {
484        let mut fld = field::CancellationRightsField::new(String::new());
485        self.message.body.get_field(tag::CANCELLATION_RIGHTS, &mut fld.0)?;
486        Ok(fld.value().to_string())
487    }
488
489
490    /// Returns true if `CancellationRights` is present, Tag 480.
491    pub fn has_cancellation_rights(&self) -> bool {
492        self.message.body.has(tag::CANCELLATION_RIGHTS)
493    }
494
495
496
497
498    /// Sets `CashMargin`, Tag 544.
499    pub fn set_cash_margin(&mut self, v: String) {
500        self.message.body.set_field(tag::CASH_MARGIN, FIXString::from(v));
501    }
502
503    /// Gets `CashMargin`, Tag 544.
504    pub fn get_cash_margin(&self) -> Result<String, MessageRejectErrorEnum> {
505        let mut fld = field::CashMarginField::new(String::new());
506        self.message.body.get_field(tag::CASH_MARGIN, &mut fld.0)?;
507        Ok(fld.value().to_string())
508    }
509
510
511    /// Returns true if `CashMargin` is present, Tag 544.
512    pub fn has_cash_margin(&self) -> bool {
513        self.message.body.has(tag::CASH_MARGIN)
514    }
515
516
517
518
519    /// Sets `CashOrderQty`, Tag 152.
520    pub fn set_cash_order_qty(&mut self, val: Decimal, scale: i32) {
521        self.message.body.set_field(tag::CASH_ORDER_QTY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
522    }
523
524    /// Gets `CashOrderQty`, Tag 152.
525    pub fn get_cash_order_qty(&self) -> Result<Decimal, MessageRejectErrorEnum> {
526        let mut fld = field::CashOrderQtyField::new(Decimal::ZERO, 0);
527        self.message.body.get_field(tag::CASH_ORDER_QTY, &mut fld.0)?;
528        Ok(fld.value())
529    }
530
531
532    /// Returns true if `CashOrderQty` is present, Tag 152.
533    pub fn has_cash_order_qty(&self) -> bool {
534        self.message.body.has(tag::CASH_ORDER_QTY)
535    }
536
537
538
539
540    /// Sets `ClOrdID`, Tag 11.
541    pub fn set_cl_ord_id(&mut self, v: String) {
542        self.message.body.set_field(tag::CL_ORD_ID, FIXString::from(v));
543    }
544
545    /// Gets `ClOrdID`, Tag 11.
546    pub fn get_cl_ord_id(&self) -> Result<String, MessageRejectErrorEnum> {
547        let mut fld = field::ClOrdIDField::new(String::new());
548        self.message.body.get_field(tag::CL_ORD_ID, &mut fld.0)?;
549        Ok(fld.value().to_string())
550    }
551
552
553    /// Returns true if `ClOrdID` is present, Tag 11.
554    pub fn has_cl_ord_id(&self) -> bool {
555        self.message.body.has(tag::CL_ORD_ID)
556    }
557
558
559
560
561    /// Sets `ClOrdLinkID`, Tag 583.
562    pub fn set_cl_ord_link_id(&mut self, v: String) {
563        self.message.body.set_field(tag::CL_ORD_LINK_ID, FIXString::from(v));
564    }
565
566    /// Gets `ClOrdLinkID`, Tag 583.
567    pub fn get_cl_ord_link_id(&self) -> Result<String, MessageRejectErrorEnum> {
568        let mut fld = field::ClOrdLinkIDField::new(String::new());
569        self.message.body.get_field(tag::CL_ORD_LINK_ID, &mut fld.0)?;
570        Ok(fld.value().to_string())
571    }
572
573
574    /// Returns true if `ClOrdLinkID` is present, Tag 583.
575    pub fn has_cl_ord_link_id(&self) -> bool {
576        self.message.body.has(tag::CL_ORD_LINK_ID)
577    }
578
579
580
581
582    /// Sets `ClearingFeeIndicator`, Tag 635.
583    pub fn set_clearing_fee_indicator(&mut self, v: String) {
584        self.message.body.set_field(tag::CLEARING_FEE_INDICATOR, FIXString::from(v));
585    }
586
587    /// Gets `ClearingFeeIndicator`, Tag 635.
588    pub fn get_clearing_fee_indicator(&self) -> Result<String, MessageRejectErrorEnum> {
589        let mut fld = field::ClearingFeeIndicatorField::new(String::new());
590        self.message.body.get_field(tag::CLEARING_FEE_INDICATOR, &mut fld.0)?;
591        Ok(fld.value().to_string())
592    }
593
594
595    /// Returns true if `ClearingFeeIndicator` is present, Tag 635.
596    pub fn has_clearing_fee_indicator(&self) -> bool {
597        self.message.body.has(tag::CLEARING_FEE_INDICATOR)
598    }
599
600
601
602
603    /// Sets `CommCurrency`, Tag 479.
604    pub fn set_comm_currency(&mut self, v: String) {
605        self.message.body.set_field(tag::COMM_CURRENCY, FIXString::from(v));
606    }
607
608    /// Gets `CommCurrency`, Tag 479.
609    pub fn get_comm_currency(&self) -> Result<String, MessageRejectErrorEnum> {
610        let mut fld = field::CommCurrencyField::new(String::new());
611        self.message.body.get_field(tag::COMM_CURRENCY, &mut fld.0)?;
612        Ok(fld.value().to_string())
613    }
614
615
616    /// Returns true if `CommCurrency` is present, Tag 479.
617    pub fn has_comm_currency(&self) -> bool {
618        self.message.body.has(tag::COMM_CURRENCY)
619    }
620
621
622
623
624    /// Sets `CommType`, Tag 13.
625    pub fn set_comm_type(&mut self, v: String) {
626        self.message.body.set_field(tag::COMM_TYPE, FIXString::from(v));
627    }
628
629    /// Gets `CommType`, Tag 13.
630    pub fn get_comm_type(&self) -> Result<String, MessageRejectErrorEnum> {
631        let mut fld = field::CommTypeField::new(String::new());
632        self.message.body.get_field(tag::COMM_TYPE, &mut fld.0)?;
633        Ok(fld.value().to_string())
634    }
635
636
637    /// Returns true if `CommType` is present, Tag 13.
638    pub fn has_comm_type(&self) -> bool {
639        self.message.body.has(tag::COMM_TYPE)
640    }
641
642
643
644
645    /// Sets `Commission`, Tag 12.
646    pub fn set_commission(&mut self, val: Decimal, scale: i32) {
647        self.message.body.set_field(tag::COMMISSION, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
648    }
649
650    /// Gets `Commission`, Tag 12.
651    pub fn get_commission(&self) -> Result<Decimal, MessageRejectErrorEnum> {
652        let mut fld = field::CommissionField::new(Decimal::ZERO, 0);
653        self.message.body.get_field(tag::COMMISSION, &mut fld.0)?;
654        Ok(fld.value())
655    }
656
657
658    /// Returns true if `Commission` is present, Tag 12.
659    pub fn has_commission(&self) -> bool {
660        self.message.body.has(tag::COMMISSION)
661    }
662
663
664
665
666    /// Sets `ComplianceID`, Tag 376.
667    pub fn set_compliance_id(&mut self, v: String) {
668        self.message.body.set_field(tag::COMPLIANCE_ID, FIXString::from(v));
669    }
670
671    /// Gets `ComplianceID`, Tag 376.
672    pub fn get_compliance_id(&self) -> Result<String, MessageRejectErrorEnum> {
673        let mut fld = field::ComplianceIDField::new(String::new());
674        self.message.body.get_field(tag::COMPLIANCE_ID, &mut fld.0)?;
675        Ok(fld.value().to_string())
676    }
677
678
679    /// Returns true if `ComplianceID` is present, Tag 376.
680    pub fn has_compliance_id(&self) -> bool {
681        self.message.body.has(tag::COMPLIANCE_ID)
682    }
683
684
685
686
687    /// Sets `ContractMultiplier`, Tag 231.
688    pub fn set_contract_multiplier(&mut self, val: Decimal, scale: i32) {
689        self.message.body.set_field(tag::CONTRACT_MULTIPLIER, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
690    }
691
692    /// Gets `ContractMultiplier`, Tag 231.
693    pub fn get_contract_multiplier(&self) -> Result<Decimal, MessageRejectErrorEnum> {
694        let mut fld = field::ContractMultiplierField::new(Decimal::ZERO, 0);
695        self.message.body.get_field(tag::CONTRACT_MULTIPLIER, &mut fld.0)?;
696        Ok(fld.value())
697    }
698
699
700    /// Returns true if `ContractMultiplier` is present, Tag 231.
701    pub fn has_contract_multiplier(&self) -> bool {
702        self.message.body.has(tag::CONTRACT_MULTIPLIER)
703    }
704
705
706
707
708    /// Sets `ContractSettlMonth`, Tag 667.
709    pub fn set_contract_settl_month(&mut self, v: String) {
710        self.message.body.set_field(tag::CONTRACT_SETTL_MONTH, FIXString::from(v));
711    }
712
713    /// Gets `ContractSettlMonth`, Tag 667.
714    pub fn get_contract_settl_month(&self) -> Result<String, MessageRejectErrorEnum> {
715        let mut fld = field::ContractSettlMonthField::new(String::new());
716        self.message.body.get_field(tag::CONTRACT_SETTL_MONTH, &mut fld.0)?;
717        Ok(fld.value().to_string())
718    }
719
720
721    /// Returns true if `ContractSettlMonth` is present, Tag 667.
722    pub fn has_contract_settl_month(&self) -> bool {
723        self.message.body.has(tag::CONTRACT_SETTL_MONTH)
724    }
725
726
727
728
729    /// Sets `CountryOfIssue`, Tag 470.
730    pub fn set_country_of_issue(&mut self, v: String) {
731        self.message.body.set_field(tag::COUNTRY_OF_ISSUE, FIXString::from(v));
732    }
733
734    /// Gets `CountryOfIssue`, Tag 470.
735    pub fn get_country_of_issue(&self) -> Result<String, MessageRejectErrorEnum> {
736        let mut fld = field::CountryOfIssueField::new(String::new());
737        self.message.body.get_field(tag::COUNTRY_OF_ISSUE, &mut fld.0)?;
738        Ok(fld.value().to_string())
739    }
740
741
742    /// Returns true if `CountryOfIssue` is present, Tag 470.
743    pub fn has_country_of_issue(&self) -> bool {
744        self.message.body.has(tag::COUNTRY_OF_ISSUE)
745    }
746
747
748
749
750    /// Sets `CouponPaymentDate`, Tag 224.
751    pub fn set_coupon_payment_date(&mut self, v: String) {
752        self.message.body.set_field(tag::COUPON_PAYMENT_DATE, FIXString::from(v));
753    }
754
755    /// Gets `CouponPaymentDate`, Tag 224.
756    pub fn get_coupon_payment_date(&self) -> Result<String, MessageRejectErrorEnum> {
757        let mut fld = field::CouponPaymentDateField::new(String::new());
758        self.message.body.get_field(tag::COUPON_PAYMENT_DATE, &mut fld.0)?;
759        Ok(fld.value().to_string())
760    }
761
762
763    /// Returns true if `CouponPaymentDate` is present, Tag 224.
764    pub fn has_coupon_payment_date(&self) -> bool {
765        self.message.body.has(tag::COUPON_PAYMENT_DATE)
766    }
767
768
769
770
771    /// Sets `CouponRate`, Tag 223.
772    pub fn set_coupon_rate(&mut self, val: Decimal, scale: i32) {
773        self.message.body.set_field(tag::COUPON_RATE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
774    }
775
776    /// Gets `CouponRate`, Tag 223.
777    pub fn get_coupon_rate(&self) -> Result<Decimal, MessageRejectErrorEnum> {
778        let mut fld = field::CouponRateField::new(Decimal::ZERO, 0);
779        self.message.body.get_field(tag::COUPON_RATE, &mut fld.0)?;
780        Ok(fld.value())
781    }
782
783
784    /// Returns true if `CouponRate` is present, Tag 223.
785    pub fn has_coupon_rate(&self) -> bool {
786        self.message.body.has(tag::COUPON_RATE)
787    }
788
789
790
791
792    /// Sets `CoveredOrUncovered`, Tag 203.
793    pub fn set_covered_or_uncovered(&mut self, v: isize) {
794        self.message.body.set_field(tag::COVERED_OR_UNCOVERED, fixer::fix_int::FIXInt::from(v));
795    }
796
797    /// Gets `CoveredOrUncovered`, Tag 203.
798    pub fn get_covered_or_uncovered(&self) -> Result<isize, MessageRejectErrorEnum> {
799        let mut fld = field::CoveredOrUncoveredField::new(0);
800        self.message.body.get_field(tag::COVERED_OR_UNCOVERED, &mut fld.0)?;
801        Ok(fld.value())
802    }
803
804
805    /// Returns true if `CoveredOrUncovered` is present, Tag 203.
806    pub fn has_covered_or_uncovered(&self) -> bool {
807        self.message.body.has(tag::COVERED_OR_UNCOVERED)
808    }
809
810
811
812
813    /// Sets `CreditRating`, Tag 255.
814    pub fn set_credit_rating(&mut self, v: String) {
815        self.message.body.set_field(tag::CREDIT_RATING, FIXString::from(v));
816    }
817
818    /// Gets `CreditRating`, Tag 255.
819    pub fn get_credit_rating(&self) -> Result<String, MessageRejectErrorEnum> {
820        let mut fld = field::CreditRatingField::new(String::new());
821        self.message.body.get_field(tag::CREDIT_RATING, &mut fld.0)?;
822        Ok(fld.value().to_string())
823    }
824
825
826    /// Returns true if `CreditRating` is present, Tag 255.
827    pub fn has_credit_rating(&self) -> bool {
828        self.message.body.has(tag::CREDIT_RATING)
829    }
830
831
832
833
834    /// Sets `Currency`, Tag 15.
835    pub fn set_currency(&mut self, v: String) {
836        self.message.body.set_field(tag::CURRENCY, FIXString::from(v));
837    }
838
839    /// Gets `Currency`, Tag 15.
840    pub fn get_currency(&self) -> Result<String, MessageRejectErrorEnum> {
841        let mut fld = field::CurrencyField::new(String::new());
842        self.message.body.get_field(tag::CURRENCY, &mut fld.0)?;
843        Ok(fld.value().to_string())
844    }
845
846
847    /// Returns true if `Currency` is present, Tag 15.
848    pub fn has_currency(&self) -> bool {
849        self.message.body.has(tag::CURRENCY)
850    }
851
852
853
854
855    /// Sets `CustOrderCapacity`, Tag 582.
856    pub fn set_cust_order_capacity(&mut self, v: isize) {
857        self.message.body.set_field(tag::CUST_ORDER_CAPACITY, fixer::fix_int::FIXInt::from(v));
858    }
859
860    /// Gets `CustOrderCapacity`, Tag 582.
861    pub fn get_cust_order_capacity(&self) -> Result<isize, MessageRejectErrorEnum> {
862        let mut fld = field::CustOrderCapacityField::new(0);
863        self.message.body.get_field(tag::CUST_ORDER_CAPACITY, &mut fld.0)?;
864        Ok(fld.value())
865    }
866
867
868    /// Returns true if `CustOrderCapacity` is present, Tag 582.
869    pub fn has_cust_order_capacity(&self) -> bool {
870        self.message.body.has(tag::CUST_ORDER_CAPACITY)
871    }
872
873
874
875
876    /// Sets `DatedDate`, Tag 873.
877    pub fn set_dated_date(&mut self, v: String) {
878        self.message.body.set_field(tag::DATED_DATE, FIXString::from(v));
879    }
880
881    /// Gets `DatedDate`, Tag 873.
882    pub fn get_dated_date(&self) -> Result<String, MessageRejectErrorEnum> {
883        let mut fld = field::DatedDateField::new(String::new());
884        self.message.body.get_field(tag::DATED_DATE, &mut fld.0)?;
885        Ok(fld.value().to_string())
886    }
887
888
889    /// Returns true if `DatedDate` is present, Tag 873.
890    pub fn has_dated_date(&self) -> bool {
891        self.message.body.has(tag::DATED_DATE)
892    }
893
894
895
896
897    /// Sets `DayBookingInst`, Tag 589.
898    pub fn set_day_booking_inst(&mut self, v: String) {
899        self.message.body.set_field(tag::DAY_BOOKING_INST, FIXString::from(v));
900    }
901
902    /// Gets `DayBookingInst`, Tag 589.
903    pub fn get_day_booking_inst(&self) -> Result<String, MessageRejectErrorEnum> {
904        let mut fld = field::DayBookingInstField::new(String::new());
905        self.message.body.get_field(tag::DAY_BOOKING_INST, &mut fld.0)?;
906        Ok(fld.value().to_string())
907    }
908
909
910    /// Returns true if `DayBookingInst` is present, Tag 589.
911    pub fn has_day_booking_inst(&self) -> bool {
912        self.message.body.has(tag::DAY_BOOKING_INST)
913    }
914
915
916
917
918    /// Sets `DeliveryType`, Tag 919.
919    pub fn set_delivery_type(&mut self, v: isize) {
920        self.message.body.set_field(tag::DELIVERY_TYPE, fixer::fix_int::FIXInt::from(v));
921    }
922
923    /// Gets `DeliveryType`, Tag 919.
924    pub fn get_delivery_type(&self) -> Result<isize, MessageRejectErrorEnum> {
925        let mut fld = field::DeliveryTypeField::new(0);
926        self.message.body.get_field(tag::DELIVERY_TYPE, &mut fld.0)?;
927        Ok(fld.value())
928    }
929
930
931    /// Returns true if `DeliveryType` is present, Tag 919.
932    pub fn has_delivery_type(&self) -> bool {
933        self.message.body.has(tag::DELIVERY_TYPE)
934    }
935
936
937
938
939    /// Sets `Designation`, Tag 494.
940    pub fn set_designation(&mut self, v: String) {
941        self.message.body.set_field(tag::DESIGNATION, FIXString::from(v));
942    }
943
944    /// Gets `Designation`, Tag 494.
945    pub fn get_designation(&self) -> Result<String, MessageRejectErrorEnum> {
946        let mut fld = field::DesignationField::new(String::new());
947        self.message.body.get_field(tag::DESIGNATION, &mut fld.0)?;
948        Ok(fld.value().to_string())
949    }
950
951
952    /// Returns true if `Designation` is present, Tag 494.
953    pub fn has_designation(&self) -> bool {
954        self.message.body.has(tag::DESIGNATION)
955    }
956
957
958
959
960    /// Sets `DiscretionInst`, Tag 388.
961    pub fn set_discretion_inst(&mut self, v: String) {
962        self.message.body.set_field(tag::DISCRETION_INST, FIXString::from(v));
963    }
964
965    /// Gets `DiscretionInst`, Tag 388.
966    pub fn get_discretion_inst(&self) -> Result<String, MessageRejectErrorEnum> {
967        let mut fld = field::DiscretionInstField::new(String::new());
968        self.message.body.get_field(tag::DISCRETION_INST, &mut fld.0)?;
969        Ok(fld.value().to_string())
970    }
971
972
973    /// Returns true if `DiscretionInst` is present, Tag 388.
974    pub fn has_discretion_inst(&self) -> bool {
975        self.message.body.has(tag::DISCRETION_INST)
976    }
977
978
979
980
981    /// Sets `DiscretionLimitType`, Tag 843.
982    pub fn set_discretion_limit_type(&mut self, v: isize) {
983        self.message.body.set_field(tag::DISCRETION_LIMIT_TYPE, fixer::fix_int::FIXInt::from(v));
984    }
985
986    /// Gets `DiscretionLimitType`, Tag 843.
987    pub fn get_discretion_limit_type(&self) -> Result<isize, MessageRejectErrorEnum> {
988        let mut fld = field::DiscretionLimitTypeField::new(0);
989        self.message.body.get_field(tag::DISCRETION_LIMIT_TYPE, &mut fld.0)?;
990        Ok(fld.value())
991    }
992
993
994    /// Returns true if `DiscretionLimitType` is present, Tag 843.
995    pub fn has_discretion_limit_type(&self) -> bool {
996        self.message.body.has(tag::DISCRETION_LIMIT_TYPE)
997    }
998
999
1000
1001
1002    /// Sets `DiscretionMoveType`, Tag 841.
1003    pub fn set_discretion_move_type(&mut self, v: isize) {
1004        self.message.body.set_field(tag::DISCRETION_MOVE_TYPE, fixer::fix_int::FIXInt::from(v));
1005    }
1006
1007    /// Gets `DiscretionMoveType`, Tag 841.
1008    pub fn get_discretion_move_type(&self) -> Result<isize, MessageRejectErrorEnum> {
1009        let mut fld = field::DiscretionMoveTypeField::new(0);
1010        self.message.body.get_field(tag::DISCRETION_MOVE_TYPE, &mut fld.0)?;
1011        Ok(fld.value())
1012    }
1013
1014
1015    /// Returns true if `DiscretionMoveType` is present, Tag 841.
1016    pub fn has_discretion_move_type(&self) -> bool {
1017        self.message.body.has(tag::DISCRETION_MOVE_TYPE)
1018    }
1019
1020
1021
1022
1023    /// Sets `DiscretionOffsetType`, Tag 842.
1024    pub fn set_discretion_offset_type(&mut self, v: isize) {
1025        self.message.body.set_field(tag::DISCRETION_OFFSET_TYPE, fixer::fix_int::FIXInt::from(v));
1026    }
1027
1028    /// Gets `DiscretionOffsetType`, Tag 842.
1029    pub fn get_discretion_offset_type(&self) -> Result<isize, MessageRejectErrorEnum> {
1030        let mut fld = field::DiscretionOffsetTypeField::new(0);
1031        self.message.body.get_field(tag::DISCRETION_OFFSET_TYPE, &mut fld.0)?;
1032        Ok(fld.value())
1033    }
1034
1035
1036    /// Returns true if `DiscretionOffsetType` is present, Tag 842.
1037    pub fn has_discretion_offset_type(&self) -> bool {
1038        self.message.body.has(tag::DISCRETION_OFFSET_TYPE)
1039    }
1040
1041
1042
1043
1044    /// Sets `DiscretionOffsetValue`, Tag 389.
1045    pub fn set_discretion_offset_value(&mut self, val: Decimal, scale: i32) {
1046        self.message.body.set_field(tag::DISCRETION_OFFSET_VALUE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1047    }
1048
1049    /// Gets `DiscretionOffsetValue`, Tag 389.
1050    pub fn get_discretion_offset_value(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1051        let mut fld = field::DiscretionOffsetValueField::new(Decimal::ZERO, 0);
1052        self.message.body.get_field(tag::DISCRETION_OFFSET_VALUE, &mut fld.0)?;
1053        Ok(fld.value())
1054    }
1055
1056
1057    /// Returns true if `DiscretionOffsetValue` is present, Tag 389.
1058    pub fn has_discretion_offset_value(&self) -> bool {
1059        self.message.body.has(tag::DISCRETION_OFFSET_VALUE)
1060    }
1061
1062
1063
1064
1065    /// Sets `DiscretionRoundDirection`, Tag 844.
1066    pub fn set_discretion_round_direction(&mut self, v: isize) {
1067        self.message.body.set_field(tag::DISCRETION_ROUND_DIRECTION, fixer::fix_int::FIXInt::from(v));
1068    }
1069
1070    /// Gets `DiscretionRoundDirection`, Tag 844.
1071    pub fn get_discretion_round_direction(&self) -> Result<isize, MessageRejectErrorEnum> {
1072        let mut fld = field::DiscretionRoundDirectionField::new(0);
1073        self.message.body.get_field(tag::DISCRETION_ROUND_DIRECTION, &mut fld.0)?;
1074        Ok(fld.value())
1075    }
1076
1077
1078    /// Returns true if `DiscretionRoundDirection` is present, Tag 844.
1079    pub fn has_discretion_round_direction(&self) -> bool {
1080        self.message.body.has(tag::DISCRETION_ROUND_DIRECTION)
1081    }
1082
1083
1084
1085
1086    /// Sets `DiscretionScope`, Tag 846.
1087    pub fn set_discretion_scope(&mut self, v: isize) {
1088        self.message.body.set_field(tag::DISCRETION_SCOPE, fixer::fix_int::FIXInt::from(v));
1089    }
1090
1091    /// Gets `DiscretionScope`, Tag 846.
1092    pub fn get_discretion_scope(&self) -> Result<isize, MessageRejectErrorEnum> {
1093        let mut fld = field::DiscretionScopeField::new(0);
1094        self.message.body.get_field(tag::DISCRETION_SCOPE, &mut fld.0)?;
1095        Ok(fld.value())
1096    }
1097
1098
1099    /// Returns true if `DiscretionScope` is present, Tag 846.
1100    pub fn has_discretion_scope(&self) -> bool {
1101        self.message.body.has(tag::DISCRETION_SCOPE)
1102    }
1103
1104
1105
1106
1107    /// Sets `EffectiveTime`, Tag 168.
1108    pub fn set_effective_time(&mut self, v: Timestamp) {
1109        self.message.body.set_field(tag::EFFECTIVE_TIME, fixer::fix_utc_timestamp::FIXUTCTimestamp {
1110            time: v,
1111            precision: fixer::fix_utc_timestamp::TimestampPrecision::Millis,
1112        });
1113    }
1114
1115    /// Gets `EffectiveTime`, Tag 168.
1116    pub fn get_effective_time(&self) -> Result<Timestamp, MessageRejectErrorEnum> {
1117        let mut fld = field::EffectiveTimeField::new(Timestamp::UNIX_EPOCH);
1118        self.message.body.get_field(tag::EFFECTIVE_TIME, &mut fld.0)?;
1119        Ok(fld.value())
1120    }
1121
1122
1123    /// Returns true if `EffectiveTime` is present, Tag 168.
1124    pub fn has_effective_time(&self) -> bool {
1125        self.message.body.has(tag::EFFECTIVE_TIME)
1126    }
1127
1128
1129
1130
1131    /// Sets `EncodedIssuer`, Tag 349.
1132    pub fn set_encoded_issuer(&mut self, v: String) {
1133        self.message.body.set_field(tag::ENCODED_ISSUER, FIXString::from(v));
1134    }
1135
1136    /// Gets `EncodedIssuer`, Tag 349.
1137    pub fn get_encoded_issuer(&self) -> Result<String, MessageRejectErrorEnum> {
1138        let mut fld = field::EncodedIssuerField::new(String::new());
1139        self.message.body.get_field(tag::ENCODED_ISSUER, &mut fld.0)?;
1140        Ok(fld.value().to_string())
1141    }
1142
1143
1144    /// Returns true if `EncodedIssuer` is present, Tag 349.
1145    pub fn has_encoded_issuer(&self) -> bool {
1146        self.message.body.has(tag::ENCODED_ISSUER)
1147    }
1148
1149
1150
1151
1152    /// Sets `EncodedIssuerLen`, Tag 348.
1153    pub fn set_encoded_issuer_len(&mut self, v: isize) {
1154        self.message.body.set_field(tag::ENCODED_ISSUER_LEN, fixer::fix_int::FIXInt::from(v));
1155    }
1156
1157    /// Gets `EncodedIssuerLen`, Tag 348.
1158    pub fn get_encoded_issuer_len(&self) -> Result<isize, MessageRejectErrorEnum> {
1159        let mut fld = field::EncodedIssuerLenField::new(0);
1160        self.message.body.get_field(tag::ENCODED_ISSUER_LEN, &mut fld.0)?;
1161        Ok(fld.value())
1162    }
1163
1164
1165    /// Returns true if `EncodedIssuerLen` is present, Tag 348.
1166    pub fn has_encoded_issuer_len(&self) -> bool {
1167        self.message.body.has(tag::ENCODED_ISSUER_LEN)
1168    }
1169
1170
1171
1172
1173    /// Sets `EncodedSecurityDesc`, Tag 351.
1174    pub fn set_encoded_security_desc(&mut self, v: String) {
1175        self.message.body.set_field(tag::ENCODED_SECURITY_DESC, FIXString::from(v));
1176    }
1177
1178    /// Gets `EncodedSecurityDesc`, Tag 351.
1179    pub fn get_encoded_security_desc(&self) -> Result<String, MessageRejectErrorEnum> {
1180        let mut fld = field::EncodedSecurityDescField::new(String::new());
1181        self.message.body.get_field(tag::ENCODED_SECURITY_DESC, &mut fld.0)?;
1182        Ok(fld.value().to_string())
1183    }
1184
1185
1186    /// Returns true if `EncodedSecurityDesc` is present, Tag 351.
1187    pub fn has_encoded_security_desc(&self) -> bool {
1188        self.message.body.has(tag::ENCODED_SECURITY_DESC)
1189    }
1190
1191
1192
1193
1194    /// Sets `EncodedSecurityDescLen`, Tag 350.
1195    pub fn set_encoded_security_desc_len(&mut self, v: isize) {
1196        self.message.body.set_field(tag::ENCODED_SECURITY_DESC_LEN, fixer::fix_int::FIXInt::from(v));
1197    }
1198
1199    /// Gets `EncodedSecurityDescLen`, Tag 350.
1200    pub fn get_encoded_security_desc_len(&self) -> Result<isize, MessageRejectErrorEnum> {
1201        let mut fld = field::EncodedSecurityDescLenField::new(0);
1202        self.message.body.get_field(tag::ENCODED_SECURITY_DESC_LEN, &mut fld.0)?;
1203        Ok(fld.value())
1204    }
1205
1206
1207    /// Returns true if `EncodedSecurityDescLen` is present, Tag 350.
1208    pub fn has_encoded_security_desc_len(&self) -> bool {
1209        self.message.body.has(tag::ENCODED_SECURITY_DESC_LEN)
1210    }
1211
1212
1213
1214
1215    /// Sets `EncodedText`, Tag 355.
1216    pub fn set_encoded_text(&mut self, v: String) {
1217        self.message.body.set_field(tag::ENCODED_TEXT, FIXString::from(v));
1218    }
1219
1220    /// Gets `EncodedText`, Tag 355.
1221    pub fn get_encoded_text(&self) -> Result<String, MessageRejectErrorEnum> {
1222        let mut fld = field::EncodedTextField::new(String::new());
1223        self.message.body.get_field(tag::ENCODED_TEXT, &mut fld.0)?;
1224        Ok(fld.value().to_string())
1225    }
1226
1227
1228    /// Returns true if `EncodedText` is present, Tag 355.
1229    pub fn has_encoded_text(&self) -> bool {
1230        self.message.body.has(tag::ENCODED_TEXT)
1231    }
1232
1233
1234
1235
1236    /// Sets `EncodedTextLen`, Tag 354.
1237    pub fn set_encoded_text_len(&mut self, v: isize) {
1238        self.message.body.set_field(tag::ENCODED_TEXT_LEN, fixer::fix_int::FIXInt::from(v));
1239    }
1240
1241    /// Gets `EncodedTextLen`, Tag 354.
1242    pub fn get_encoded_text_len(&self) -> Result<isize, MessageRejectErrorEnum> {
1243        let mut fld = field::EncodedTextLenField::new(0);
1244        self.message.body.get_field(tag::ENCODED_TEXT_LEN, &mut fld.0)?;
1245        Ok(fld.value())
1246    }
1247
1248
1249    /// Returns true if `EncodedTextLen` is present, Tag 354.
1250    pub fn has_encoded_text_len(&self) -> bool {
1251        self.message.body.has(tag::ENCODED_TEXT_LEN)
1252    }
1253
1254
1255
1256
1257    /// Sets `EndDate`, Tag 917.
1258    pub fn set_end_date(&mut self, v: String) {
1259        self.message.body.set_field(tag::END_DATE, FIXString::from(v));
1260    }
1261
1262    /// Gets `EndDate`, Tag 917.
1263    pub fn get_end_date(&self) -> Result<String, MessageRejectErrorEnum> {
1264        let mut fld = field::EndDateField::new(String::new());
1265        self.message.body.get_field(tag::END_DATE, &mut fld.0)?;
1266        Ok(fld.value().to_string())
1267    }
1268
1269
1270    /// Returns true if `EndDate` is present, Tag 917.
1271    pub fn has_end_date(&self) -> bool {
1272        self.message.body.has(tag::END_DATE)
1273    }
1274
1275
1276
1277
1278    /// Sets `ExDestination`, Tag 100.
1279    pub fn set_ex_destination(&mut self, v: String) {
1280        self.message.body.set_field(tag::EX_DESTINATION, FIXString::from(v));
1281    }
1282
1283    /// Gets `ExDestination`, Tag 100.
1284    pub fn get_ex_destination(&self) -> Result<String, MessageRejectErrorEnum> {
1285        let mut fld = field::ExDestinationField::new(String::new());
1286        self.message.body.get_field(tag::EX_DESTINATION, &mut fld.0)?;
1287        Ok(fld.value().to_string())
1288    }
1289
1290
1291    /// Returns true if `ExDestination` is present, Tag 100.
1292    pub fn has_ex_destination(&self) -> bool {
1293        self.message.body.has(tag::EX_DESTINATION)
1294    }
1295
1296
1297
1298
1299    /// Sets `ExecInst`, Tag 18.
1300    pub fn set_exec_inst(&mut self, v: String) {
1301        self.message.body.set_field(tag::EXEC_INST, FIXString::from(v));
1302    }
1303
1304    /// Gets `ExecInst`, Tag 18.
1305    pub fn get_exec_inst(&self) -> Result<String, MessageRejectErrorEnum> {
1306        let mut fld = field::ExecInstField::new(String::new());
1307        self.message.body.get_field(tag::EXEC_INST, &mut fld.0)?;
1308        Ok(fld.value().to_string())
1309    }
1310
1311
1312    /// Returns true if `ExecInst` is present, Tag 18.
1313    pub fn has_exec_inst(&self) -> bool {
1314        self.message.body.has(tag::EXEC_INST)
1315    }
1316
1317
1318
1319
1320    /// Sets `ExpireDate`, Tag 432.
1321    pub fn set_expire_date(&mut self, v: String) {
1322        self.message.body.set_field(tag::EXPIRE_DATE, FIXString::from(v));
1323    }
1324
1325    /// Gets `ExpireDate`, Tag 432.
1326    pub fn get_expire_date(&self) -> Result<String, MessageRejectErrorEnum> {
1327        let mut fld = field::ExpireDateField::new(String::new());
1328        self.message.body.get_field(tag::EXPIRE_DATE, &mut fld.0)?;
1329        Ok(fld.value().to_string())
1330    }
1331
1332
1333    /// Returns true if `ExpireDate` is present, Tag 432.
1334    pub fn has_expire_date(&self) -> bool {
1335        self.message.body.has(tag::EXPIRE_DATE)
1336    }
1337
1338
1339
1340
1341    /// Sets `ExpireTime`, Tag 126.
1342    pub fn set_expire_time(&mut self, v: Timestamp) {
1343        self.message.body.set_field(tag::EXPIRE_TIME, fixer::fix_utc_timestamp::FIXUTCTimestamp {
1344            time: v,
1345            precision: fixer::fix_utc_timestamp::TimestampPrecision::Millis,
1346        });
1347    }
1348
1349    /// Gets `ExpireTime`, Tag 126.
1350    pub fn get_expire_time(&self) -> Result<Timestamp, MessageRejectErrorEnum> {
1351        let mut fld = field::ExpireTimeField::new(Timestamp::UNIX_EPOCH);
1352        self.message.body.get_field(tag::EXPIRE_TIME, &mut fld.0)?;
1353        Ok(fld.value())
1354    }
1355
1356
1357    /// Returns true if `ExpireTime` is present, Tag 126.
1358    pub fn has_expire_time(&self) -> bool {
1359        self.message.body.has(tag::EXPIRE_TIME)
1360    }
1361
1362
1363
1364
1365    /// Sets `Factor`, Tag 228.
1366    pub fn set_factor(&mut self, val: Decimal, scale: i32) {
1367        self.message.body.set_field(tag::FACTOR, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1368    }
1369
1370    /// Gets `Factor`, Tag 228.
1371    pub fn get_factor(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1372        let mut fld = field::FactorField::new(Decimal::ZERO, 0);
1373        self.message.body.get_field(tag::FACTOR, &mut fld.0)?;
1374        Ok(fld.value())
1375    }
1376
1377
1378    /// Returns true if `Factor` is present, Tag 228.
1379    pub fn has_factor(&self) -> bool {
1380        self.message.body.has(tag::FACTOR)
1381    }
1382
1383
1384
1385
1386    /// Sets `ForexReq`, Tag 121.
1387    pub fn set_forex_req(&mut self, v: bool) {
1388        self.message.body.set_field(tag::FOREX_REQ, fixer::fix_boolean::FIXBoolean::from(v));
1389    }
1390
1391    /// Gets `ForexReq`, Tag 121.
1392    pub fn get_forex_req(&self) -> Result<bool, MessageRejectErrorEnum> {
1393        let mut fld = field::ForexReqField::new(false);
1394        self.message.body.get_field(tag::FOREX_REQ, &mut fld.0)?;
1395        Ok(fld.value())
1396    }
1397
1398
1399    /// Returns true if `ForexReq` is present, Tag 121.
1400    pub fn has_forex_req(&self) -> bool {
1401        self.message.body.has(tag::FOREX_REQ)
1402    }
1403
1404
1405
1406
1407    /// Sets `FundRenewWaiv`, Tag 497.
1408    pub fn set_fund_renew_waiv(&mut self, v: String) {
1409        self.message.body.set_field(tag::FUND_RENEW_WAIV, FIXString::from(v));
1410    }
1411
1412    /// Gets `FundRenewWaiv`, Tag 497.
1413    pub fn get_fund_renew_waiv(&self) -> Result<String, MessageRejectErrorEnum> {
1414        let mut fld = field::FundRenewWaivField::new(String::new());
1415        self.message.body.get_field(tag::FUND_RENEW_WAIV, &mut fld.0)?;
1416        Ok(fld.value().to_string())
1417    }
1418
1419
1420    /// Returns true if `FundRenewWaiv` is present, Tag 497.
1421    pub fn has_fund_renew_waiv(&self) -> bool {
1422        self.message.body.has(tag::FUND_RENEW_WAIV)
1423    }
1424
1425
1426
1427
1428    /// Sets `GTBookingInst`, Tag 427.
1429    pub fn set_gt_booking_inst(&mut self, v: isize) {
1430        self.message.body.set_field(tag::GT_BOOKING_INST, fixer::fix_int::FIXInt::from(v));
1431    }
1432
1433    /// Gets `GTBookingInst`, Tag 427.
1434    pub fn get_gt_booking_inst(&self) -> Result<isize, MessageRejectErrorEnum> {
1435        let mut fld = field::GTBookingInstField::new(0);
1436        self.message.body.get_field(tag::GT_BOOKING_INST, &mut fld.0)?;
1437        Ok(fld.value())
1438    }
1439
1440
1441    /// Returns true if `GTBookingInst` is present, Tag 427.
1442    pub fn has_gt_booking_inst(&self) -> bool {
1443        self.message.body.has(tag::GT_BOOKING_INST)
1444    }
1445
1446
1447
1448
1449    /// Sets `HandlInst`, Tag 21.
1450    pub fn set_handl_inst(&mut self, v: String) {
1451        self.message.body.set_field(tag::HANDL_INST, FIXString::from(v));
1452    }
1453
1454    /// Gets `HandlInst`, Tag 21.
1455    pub fn get_handl_inst(&self) -> Result<String, MessageRejectErrorEnum> {
1456        let mut fld = field::HandlInstField::new(String::new());
1457        self.message.body.get_field(tag::HANDL_INST, &mut fld.0)?;
1458        Ok(fld.value().to_string())
1459    }
1460
1461
1462    /// Returns true if `HandlInst` is present, Tag 21.
1463    pub fn has_handl_inst(&self) -> bool {
1464        self.message.body.has(tag::HANDL_INST)
1465    }
1466
1467
1468
1469
1470    /// Sets `InstrRegistry`, Tag 543.
1471    pub fn set_instr_registry(&mut self, v: String) {
1472        self.message.body.set_field(tag::INSTR_REGISTRY, FIXString::from(v));
1473    }
1474
1475    /// Gets `InstrRegistry`, Tag 543.
1476    pub fn get_instr_registry(&self) -> Result<String, MessageRejectErrorEnum> {
1477        let mut fld = field::InstrRegistryField::new(String::new());
1478        self.message.body.get_field(tag::INSTR_REGISTRY, &mut fld.0)?;
1479        Ok(fld.value().to_string())
1480    }
1481
1482
1483    /// Returns true if `InstrRegistry` is present, Tag 543.
1484    pub fn has_instr_registry(&self) -> bool {
1485        self.message.body.has(tag::INSTR_REGISTRY)
1486    }
1487
1488
1489
1490
1491    /// Sets `InterestAccrualDate`, Tag 874.
1492    pub fn set_interest_accrual_date(&mut self, v: String) {
1493        self.message.body.set_field(tag::INTEREST_ACCRUAL_DATE, FIXString::from(v));
1494    }
1495
1496    /// Gets `InterestAccrualDate`, Tag 874.
1497    pub fn get_interest_accrual_date(&self) -> Result<String, MessageRejectErrorEnum> {
1498        let mut fld = field::InterestAccrualDateField::new(String::new());
1499        self.message.body.get_field(tag::INTEREST_ACCRUAL_DATE, &mut fld.0)?;
1500        Ok(fld.value().to_string())
1501    }
1502
1503
1504    /// Returns true if `InterestAccrualDate` is present, Tag 874.
1505    pub fn has_interest_accrual_date(&self) -> bool {
1506        self.message.body.has(tag::INTEREST_ACCRUAL_DATE)
1507    }
1508
1509
1510
1511
1512    /// Sets `IssueDate`, Tag 225.
1513    pub fn set_issue_date(&mut self, v: String) {
1514        self.message.body.set_field(tag::ISSUE_DATE, FIXString::from(v));
1515    }
1516
1517    /// Gets `IssueDate`, Tag 225.
1518    pub fn get_issue_date(&self) -> Result<String, MessageRejectErrorEnum> {
1519        let mut fld = field::IssueDateField::new(String::new());
1520        self.message.body.get_field(tag::ISSUE_DATE, &mut fld.0)?;
1521        Ok(fld.value().to_string())
1522    }
1523
1524
1525    /// Returns true if `IssueDate` is present, Tag 225.
1526    pub fn has_issue_date(&self) -> bool {
1527        self.message.body.has(tag::ISSUE_DATE)
1528    }
1529
1530
1531
1532
1533    /// Sets `Issuer`, Tag 106.
1534    pub fn set_issuer(&mut self, v: String) {
1535        self.message.body.set_field(tag::ISSUER, FIXString::from(v));
1536    }
1537
1538    /// Gets `Issuer`, Tag 106.
1539    pub fn get_issuer(&self) -> Result<String, MessageRejectErrorEnum> {
1540        let mut fld = field::IssuerField::new(String::new());
1541        self.message.body.get_field(tag::ISSUER, &mut fld.0)?;
1542        Ok(fld.value().to_string())
1543    }
1544
1545
1546    /// Returns true if `Issuer` is present, Tag 106.
1547    pub fn has_issuer(&self) -> bool {
1548        self.message.body.has(tag::ISSUER)
1549    }
1550
1551
1552
1553
1554    /// Sets `ListID`, Tag 66.
1555    pub fn set_list_id(&mut self, v: String) {
1556        self.message.body.set_field(tag::LIST_ID, FIXString::from(v));
1557    }
1558
1559    /// Gets `ListID`, Tag 66.
1560    pub fn get_list_id(&self) -> Result<String, MessageRejectErrorEnum> {
1561        let mut fld = field::ListIDField::new(String::new());
1562        self.message.body.get_field(tag::LIST_ID, &mut fld.0)?;
1563        Ok(fld.value().to_string())
1564    }
1565
1566
1567    /// Returns true if `ListID` is present, Tag 66.
1568    pub fn has_list_id(&self) -> bool {
1569        self.message.body.has(tag::LIST_ID)
1570    }
1571
1572
1573
1574
1575    /// Sets `LocaleOfIssue`, Tag 472.
1576    pub fn set_locale_of_issue(&mut self, v: String) {
1577        self.message.body.set_field(tag::LOCALE_OF_ISSUE, FIXString::from(v));
1578    }
1579
1580    /// Gets `LocaleOfIssue`, Tag 472.
1581    pub fn get_locale_of_issue(&self) -> Result<String, MessageRejectErrorEnum> {
1582        let mut fld = field::LocaleOfIssueField::new(String::new());
1583        self.message.body.get_field(tag::LOCALE_OF_ISSUE, &mut fld.0)?;
1584        Ok(fld.value().to_string())
1585    }
1586
1587
1588    /// Returns true if `LocaleOfIssue` is present, Tag 472.
1589    pub fn has_locale_of_issue(&self) -> bool {
1590        self.message.body.has(tag::LOCALE_OF_ISSUE)
1591    }
1592
1593
1594
1595
1596    /// Sets `LocateReqd`, Tag 114.
1597    pub fn set_locate_reqd(&mut self, v: bool) {
1598        self.message.body.set_field(tag::LOCATE_REQD, fixer::fix_boolean::FIXBoolean::from(v));
1599    }
1600
1601    /// Gets `LocateReqd`, Tag 114.
1602    pub fn get_locate_reqd(&self) -> Result<bool, MessageRejectErrorEnum> {
1603        let mut fld = field::LocateReqdField::new(false);
1604        self.message.body.get_field(tag::LOCATE_REQD, &mut fld.0)?;
1605        Ok(fld.value())
1606    }
1607
1608
1609    /// Returns true if `LocateReqd` is present, Tag 114.
1610    pub fn has_locate_reqd(&self) -> bool {
1611        self.message.body.has(tag::LOCATE_REQD)
1612    }
1613
1614
1615
1616
1617    /// Sets `MarginRatio`, Tag 898.
1618    pub fn set_margin_ratio(&mut self, val: Decimal, scale: i32) {
1619        self.message.body.set_field(tag::MARGIN_RATIO, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1620    }
1621
1622    /// Gets `MarginRatio`, Tag 898.
1623    pub fn get_margin_ratio(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1624        let mut fld = field::MarginRatioField::new(Decimal::ZERO, 0);
1625        self.message.body.get_field(tag::MARGIN_RATIO, &mut fld.0)?;
1626        Ok(fld.value())
1627    }
1628
1629
1630    /// Returns true if `MarginRatio` is present, Tag 898.
1631    pub fn has_margin_ratio(&self) -> bool {
1632        self.message.body.has(tag::MARGIN_RATIO)
1633    }
1634
1635
1636
1637
1638    /// Sets `MaturityDate`, Tag 541.
1639    pub fn set_maturity_date(&mut self, v: String) {
1640        self.message.body.set_field(tag::MATURITY_DATE, FIXString::from(v));
1641    }
1642
1643    /// Gets `MaturityDate`, Tag 541.
1644    pub fn get_maturity_date(&self) -> Result<String, MessageRejectErrorEnum> {
1645        let mut fld = field::MaturityDateField::new(String::new());
1646        self.message.body.get_field(tag::MATURITY_DATE, &mut fld.0)?;
1647        Ok(fld.value().to_string())
1648    }
1649
1650
1651    /// Returns true if `MaturityDate` is present, Tag 541.
1652    pub fn has_maturity_date(&self) -> bool {
1653        self.message.body.has(tag::MATURITY_DATE)
1654    }
1655
1656
1657
1658
1659    /// Sets `MaturityMonthYear`, Tag 200.
1660    pub fn set_maturity_month_year(&mut self, v: String) {
1661        self.message.body.set_field(tag::MATURITY_MONTH_YEAR, FIXString::from(v));
1662    }
1663
1664    /// Gets `MaturityMonthYear`, Tag 200.
1665    pub fn get_maturity_month_year(&self) -> Result<String, MessageRejectErrorEnum> {
1666        let mut fld = field::MaturityMonthYearField::new(String::new());
1667        self.message.body.get_field(tag::MATURITY_MONTH_YEAR, &mut fld.0)?;
1668        Ok(fld.value().to_string())
1669    }
1670
1671
1672    /// Returns true if `MaturityMonthYear` is present, Tag 200.
1673    pub fn has_maturity_month_year(&self) -> bool {
1674        self.message.body.has(tag::MATURITY_MONTH_YEAR)
1675    }
1676
1677
1678
1679
1680    /// Sets `MaxFloor`, Tag 111.
1681    pub fn set_max_floor(&mut self, val: Decimal, scale: i32) {
1682        self.message.body.set_field(tag::MAX_FLOOR, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1683    }
1684
1685    /// Gets `MaxFloor`, Tag 111.
1686    pub fn get_max_floor(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1687        let mut fld = field::MaxFloorField::new(Decimal::ZERO, 0);
1688        self.message.body.get_field(tag::MAX_FLOOR, &mut fld.0)?;
1689        Ok(fld.value())
1690    }
1691
1692
1693    /// Returns true if `MaxFloor` is present, Tag 111.
1694    pub fn has_max_floor(&self) -> bool {
1695        self.message.body.has(tag::MAX_FLOOR)
1696    }
1697
1698
1699
1700
1701    /// Sets `MaxShow`, Tag 210.
1702    pub fn set_max_show(&mut self, val: Decimal, scale: i32) {
1703        self.message.body.set_field(tag::MAX_SHOW, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1704    }
1705
1706    /// Gets `MaxShow`, Tag 210.
1707    pub fn get_max_show(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1708        let mut fld = field::MaxShowField::new(Decimal::ZERO, 0);
1709        self.message.body.get_field(tag::MAX_SHOW, &mut fld.0)?;
1710        Ok(fld.value())
1711    }
1712
1713
1714    /// Returns true if `MaxShow` is present, Tag 210.
1715    pub fn has_max_show(&self) -> bool {
1716        self.message.body.has(tag::MAX_SHOW)
1717    }
1718
1719
1720
1721
1722    /// Sets `MinQty`, Tag 110.
1723    pub fn set_min_qty(&mut self, val: Decimal, scale: i32) {
1724        self.message.body.set_field(tag::MIN_QTY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1725    }
1726
1727    /// Gets `MinQty`, Tag 110.
1728    pub fn get_min_qty(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1729        let mut fld = field::MinQtyField::new(Decimal::ZERO, 0);
1730        self.message.body.get_field(tag::MIN_QTY, &mut fld.0)?;
1731        Ok(fld.value())
1732    }
1733
1734
1735    /// Returns true if `MinQty` is present, Tag 110.
1736    pub fn has_min_qty(&self) -> bool {
1737        self.message.body.has(tag::MIN_QTY)
1738    }
1739
1740
1741
1742
1743    /// Sets `MoneyLaunderingStatus`, Tag 481.
1744    pub fn set_money_laundering_status(&mut self, v: String) {
1745        self.message.body.set_field(tag::MONEY_LAUNDERING_STATUS, FIXString::from(v));
1746    }
1747
1748    /// Gets `MoneyLaunderingStatus`, Tag 481.
1749    pub fn get_money_laundering_status(&self) -> Result<String, MessageRejectErrorEnum> {
1750        let mut fld = field::MoneyLaunderingStatusField::new(String::new());
1751        self.message.body.get_field(tag::MONEY_LAUNDERING_STATUS, &mut fld.0)?;
1752        Ok(fld.value().to_string())
1753    }
1754
1755
1756    /// Returns true if `MoneyLaunderingStatus` is present, Tag 481.
1757    pub fn has_money_laundering_status(&self) -> bool {
1758        self.message.body.has(tag::MONEY_LAUNDERING_STATUS)
1759    }
1760
1761
1762
1763
1764    /// Sets `NoAllocs`, Tag 78.
1765    pub fn set_no_allocs(&mut self, v: isize) {
1766        self.message.body.set_field(tag::NO_ALLOCS, fixer::fix_int::FIXInt::from(v));
1767    }
1768
1769    /// Gets `NoAllocs`, Tag 78.
1770    pub fn get_no_allocs(&self) -> Result<isize, MessageRejectErrorEnum> {
1771        let mut fld = field::NoAllocsField::new(0);
1772        self.message.body.get_field(tag::NO_ALLOCS, &mut fld.0)?;
1773        Ok(fld.value())
1774    }
1775
1776
1777    /// Returns true if `NoAllocs` is present, Tag 78.
1778    pub fn has_no_allocs(&self) -> bool {
1779        self.message.body.has(tag::NO_ALLOCS)
1780    }
1781
1782
1783
1784
1785    /// Sets `NoEvents`, Tag 864.
1786    pub fn set_no_events(&mut self, v: isize) {
1787        self.message.body.set_field(tag::NO_EVENTS, fixer::fix_int::FIXInt::from(v));
1788    }
1789
1790    /// Gets `NoEvents`, Tag 864.
1791    pub fn get_no_events(&self) -> Result<isize, MessageRejectErrorEnum> {
1792        let mut fld = field::NoEventsField::new(0);
1793        self.message.body.get_field(tag::NO_EVENTS, &mut fld.0)?;
1794        Ok(fld.value())
1795    }
1796
1797
1798    /// Returns true if `NoEvents` is present, Tag 864.
1799    pub fn has_no_events(&self) -> bool {
1800        self.message.body.has(tag::NO_EVENTS)
1801    }
1802
1803
1804
1805
1806    /// Sets `NoPartyIDs`, Tag 453.
1807    pub fn set_no_party_i_ds(&mut self, v: isize) {
1808        self.message.body.set_field(tag::NO_PARTY_I_DS, fixer::fix_int::FIXInt::from(v));
1809    }
1810
1811    /// Gets `NoPartyIDs`, Tag 453.
1812    pub fn get_no_party_i_ds(&self) -> Result<isize, MessageRejectErrorEnum> {
1813        let mut fld = field::NoPartyIDsField::new(0);
1814        self.message.body.get_field(tag::NO_PARTY_I_DS, &mut fld.0)?;
1815        Ok(fld.value())
1816    }
1817
1818
1819    /// Returns true if `NoPartyIDs` is present, Tag 453.
1820    pub fn has_no_party_i_ds(&self) -> bool {
1821        self.message.body.has(tag::NO_PARTY_I_DS)
1822    }
1823
1824
1825
1826
1827    /// Sets `NoSecurityAltID`, Tag 454.
1828    pub fn set_no_security_alt_id(&mut self, v: isize) {
1829        self.message.body.set_field(tag::NO_SECURITY_ALT_ID, fixer::fix_int::FIXInt::from(v));
1830    }
1831
1832    /// Gets `NoSecurityAltID`, Tag 454.
1833    pub fn get_no_security_alt_id(&self) -> Result<isize, MessageRejectErrorEnum> {
1834        let mut fld = field::NoSecurityAltIDField::new(0);
1835        self.message.body.get_field(tag::NO_SECURITY_ALT_ID, &mut fld.0)?;
1836        Ok(fld.value())
1837    }
1838
1839
1840    /// Returns true if `NoSecurityAltID` is present, Tag 454.
1841    pub fn has_no_security_alt_id(&self) -> bool {
1842        self.message.body.has(tag::NO_SECURITY_ALT_ID)
1843    }
1844
1845
1846
1847
1848    /// Sets `NoTradingSessions`, Tag 386.
1849    pub fn set_no_trading_sessions(&mut self, v: isize) {
1850        self.message.body.set_field(tag::NO_TRADING_SESSIONS, fixer::fix_int::FIXInt::from(v));
1851    }
1852
1853    /// Gets `NoTradingSessions`, Tag 386.
1854    pub fn get_no_trading_sessions(&self) -> Result<isize, MessageRejectErrorEnum> {
1855        let mut fld = field::NoTradingSessionsField::new(0);
1856        self.message.body.get_field(tag::NO_TRADING_SESSIONS, &mut fld.0)?;
1857        Ok(fld.value())
1858    }
1859
1860
1861    /// Returns true if `NoTradingSessions` is present, Tag 386.
1862    pub fn has_no_trading_sessions(&self) -> bool {
1863        self.message.body.has(tag::NO_TRADING_SESSIONS)
1864    }
1865
1866
1867
1868
1869    /// Sets `NoUnderlyings`, Tag 711.
1870    pub fn set_no_underlyings(&mut self, v: isize) {
1871        self.message.body.set_field(tag::NO_UNDERLYINGS, fixer::fix_int::FIXInt::from(v));
1872    }
1873
1874    /// Gets `NoUnderlyings`, Tag 711.
1875    pub fn get_no_underlyings(&self) -> Result<isize, MessageRejectErrorEnum> {
1876        let mut fld = field::NoUnderlyingsField::new(0);
1877        self.message.body.get_field(tag::NO_UNDERLYINGS, &mut fld.0)?;
1878        Ok(fld.value())
1879    }
1880
1881
1882    /// Returns true if `NoUnderlyings` is present, Tag 711.
1883    pub fn has_no_underlyings(&self) -> bool {
1884        self.message.body.has(tag::NO_UNDERLYINGS)
1885    }
1886
1887
1888
1889
1890    /// Sets `OptAttribute`, Tag 206.
1891    pub fn set_opt_attribute(&mut self, v: String) {
1892        self.message.body.set_field(tag::OPT_ATTRIBUTE, FIXString::from(v));
1893    }
1894
1895    /// Gets `OptAttribute`, Tag 206.
1896    pub fn get_opt_attribute(&self) -> Result<String, MessageRejectErrorEnum> {
1897        let mut fld = field::OptAttributeField::new(String::new());
1898        self.message.body.get_field(tag::OPT_ATTRIBUTE, &mut fld.0)?;
1899        Ok(fld.value().to_string())
1900    }
1901
1902
1903    /// Returns true if `OptAttribute` is present, Tag 206.
1904    pub fn has_opt_attribute(&self) -> bool {
1905        self.message.body.has(tag::OPT_ATTRIBUTE)
1906    }
1907
1908
1909
1910
1911    /// Sets `OrdType`, Tag 40.
1912    pub fn set_ord_type(&mut self, v: String) {
1913        self.message.body.set_field(tag::ORD_TYPE, FIXString::from(v));
1914    }
1915
1916    /// Gets `OrdType`, Tag 40.
1917    pub fn get_ord_type(&self) -> Result<String, MessageRejectErrorEnum> {
1918        let mut fld = field::OrdTypeField::new(String::new());
1919        self.message.body.get_field(tag::ORD_TYPE, &mut fld.0)?;
1920        Ok(fld.value().to_string())
1921    }
1922
1923
1924    /// Returns true if `OrdType` is present, Tag 40.
1925    pub fn has_ord_type(&self) -> bool {
1926        self.message.body.has(tag::ORD_TYPE)
1927    }
1928
1929
1930
1931
1932    /// Sets `OrderCapacity`, Tag 528.
1933    pub fn set_order_capacity(&mut self, v: String) {
1934        self.message.body.set_field(tag::ORDER_CAPACITY, FIXString::from(v));
1935    }
1936
1937    /// Gets `OrderCapacity`, Tag 528.
1938    pub fn get_order_capacity(&self) -> Result<String, MessageRejectErrorEnum> {
1939        let mut fld = field::OrderCapacityField::new(String::new());
1940        self.message.body.get_field(tag::ORDER_CAPACITY, &mut fld.0)?;
1941        Ok(fld.value().to_string())
1942    }
1943
1944
1945    /// Returns true if `OrderCapacity` is present, Tag 528.
1946    pub fn has_order_capacity(&self) -> bool {
1947        self.message.body.has(tag::ORDER_CAPACITY)
1948    }
1949
1950
1951
1952
1953    /// Sets `OrderID`, Tag 37.
1954    pub fn set_order_id(&mut self, v: String) {
1955        self.message.body.set_field(tag::ORDER_ID, FIXString::from(v));
1956    }
1957
1958    /// Gets `OrderID`, Tag 37.
1959    pub fn get_order_id(&self) -> Result<String, MessageRejectErrorEnum> {
1960        let mut fld = field::OrderIDField::new(String::new());
1961        self.message.body.get_field(tag::ORDER_ID, &mut fld.0)?;
1962        Ok(fld.value().to_string())
1963    }
1964
1965
1966    /// Returns true if `OrderID` is present, Tag 37.
1967    pub fn has_order_id(&self) -> bool {
1968        self.message.body.has(tag::ORDER_ID)
1969    }
1970
1971
1972
1973
1974    /// Sets `OrderPercent`, Tag 516.
1975    pub fn set_order_percent(&mut self, val: Decimal, scale: i32) {
1976        self.message.body.set_field(tag::ORDER_PERCENT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1977    }
1978
1979    /// Gets `OrderPercent`, Tag 516.
1980    pub fn get_order_percent(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1981        let mut fld = field::OrderPercentField::new(Decimal::ZERO, 0);
1982        self.message.body.get_field(tag::ORDER_PERCENT, &mut fld.0)?;
1983        Ok(fld.value())
1984    }
1985
1986
1987    /// Returns true if `OrderPercent` is present, Tag 516.
1988    pub fn has_order_percent(&self) -> bool {
1989        self.message.body.has(tag::ORDER_PERCENT)
1990    }
1991
1992
1993
1994
1995    /// Sets `OrderQty`, Tag 38.
1996    pub fn set_order_qty(&mut self, val: Decimal, scale: i32) {
1997        self.message.body.set_field(tag::ORDER_QTY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1998    }
1999
2000    /// Gets `OrderQty`, Tag 38.
2001    pub fn get_order_qty(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2002        let mut fld = field::OrderQtyField::new(Decimal::ZERO, 0);
2003        self.message.body.get_field(tag::ORDER_QTY, &mut fld.0)?;
2004        Ok(fld.value())
2005    }
2006
2007
2008    /// Returns true if `OrderQty` is present, Tag 38.
2009    pub fn has_order_qty(&self) -> bool {
2010        self.message.body.has(tag::ORDER_QTY)
2011    }
2012
2013
2014
2015
2016    /// Sets `OrderQty2`, Tag 192.
2017    pub fn set_order_qty2(&mut self, val: Decimal, scale: i32) {
2018        self.message.body.set_field(tag::ORDER_QTY2, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2019    }
2020
2021    /// Gets `OrderQty2`, Tag 192.
2022    pub fn get_order_qty2(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2023        let mut fld = field::OrderQty2Field::new(Decimal::ZERO, 0);
2024        self.message.body.get_field(tag::ORDER_QTY2, &mut fld.0)?;
2025        Ok(fld.value())
2026    }
2027
2028
2029    /// Returns true if `OrderQty2` is present, Tag 192.
2030    pub fn has_order_qty2(&self) -> bool {
2031        self.message.body.has(tag::ORDER_QTY2)
2032    }
2033
2034
2035
2036
2037    /// Sets `OrderRestrictions`, Tag 529.
2038    pub fn set_order_restrictions(&mut self, v: String) {
2039        self.message.body.set_field(tag::ORDER_RESTRICTIONS, FIXString::from(v));
2040    }
2041
2042    /// Gets `OrderRestrictions`, Tag 529.
2043    pub fn get_order_restrictions(&self) -> Result<String, MessageRejectErrorEnum> {
2044        let mut fld = field::OrderRestrictionsField::new(String::new());
2045        self.message.body.get_field(tag::ORDER_RESTRICTIONS, &mut fld.0)?;
2046        Ok(fld.value().to_string())
2047    }
2048
2049
2050    /// Returns true if `OrderRestrictions` is present, Tag 529.
2051    pub fn has_order_restrictions(&self) -> bool {
2052        self.message.body.has(tag::ORDER_RESTRICTIONS)
2053    }
2054
2055
2056
2057
2058    /// Sets `OrigClOrdID`, Tag 41.
2059    pub fn set_orig_cl_ord_id(&mut self, v: String) {
2060        self.message.body.set_field(tag::ORIG_CL_ORD_ID, FIXString::from(v));
2061    }
2062
2063    /// Gets `OrigClOrdID`, Tag 41.
2064    pub fn get_orig_cl_ord_id(&self) -> Result<String, MessageRejectErrorEnum> {
2065        let mut fld = field::OrigClOrdIDField::new(String::new());
2066        self.message.body.get_field(tag::ORIG_CL_ORD_ID, &mut fld.0)?;
2067        Ok(fld.value().to_string())
2068    }
2069
2070
2071    /// Returns true if `OrigClOrdID` is present, Tag 41.
2072    pub fn has_orig_cl_ord_id(&self) -> bool {
2073        self.message.body.has(tag::ORIG_CL_ORD_ID)
2074    }
2075
2076
2077
2078
2079    /// Sets `OrigOrdModTime`, Tag 586.
2080    pub fn set_orig_ord_mod_time(&mut self, v: Timestamp) {
2081        self.message.body.set_field(tag::ORIG_ORD_MOD_TIME, fixer::fix_utc_timestamp::FIXUTCTimestamp {
2082            time: v,
2083            precision: fixer::fix_utc_timestamp::TimestampPrecision::Millis,
2084        });
2085    }
2086
2087    /// Gets `OrigOrdModTime`, Tag 586.
2088    pub fn get_orig_ord_mod_time(&self) -> Result<Timestamp, MessageRejectErrorEnum> {
2089        let mut fld = field::OrigOrdModTimeField::new(Timestamp::UNIX_EPOCH);
2090        self.message.body.get_field(tag::ORIG_ORD_MOD_TIME, &mut fld.0)?;
2091        Ok(fld.value())
2092    }
2093
2094
2095    /// Returns true if `OrigOrdModTime` is present, Tag 586.
2096    pub fn has_orig_ord_mod_time(&self) -> bool {
2097        self.message.body.has(tag::ORIG_ORD_MOD_TIME)
2098    }
2099
2100
2101
2102
2103    /// Sets `ParticipationRate`, Tag 849.
2104    pub fn set_participation_rate(&mut self, val: Decimal, scale: i32) {
2105        self.message.body.set_field(tag::PARTICIPATION_RATE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2106    }
2107
2108    /// Gets `ParticipationRate`, Tag 849.
2109    pub fn get_participation_rate(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2110        let mut fld = field::ParticipationRateField::new(Decimal::ZERO, 0);
2111        self.message.body.get_field(tag::PARTICIPATION_RATE, &mut fld.0)?;
2112        Ok(fld.value())
2113    }
2114
2115
2116    /// Returns true if `ParticipationRate` is present, Tag 849.
2117    pub fn has_participation_rate(&self) -> bool {
2118        self.message.body.has(tag::PARTICIPATION_RATE)
2119    }
2120
2121
2122
2123
2124    /// Sets `PegLimitType`, Tag 837.
2125    pub fn set_peg_limit_type(&mut self, v: isize) {
2126        self.message.body.set_field(tag::PEG_LIMIT_TYPE, fixer::fix_int::FIXInt::from(v));
2127    }
2128
2129    /// Gets `PegLimitType`, Tag 837.
2130    pub fn get_peg_limit_type(&self) -> Result<isize, MessageRejectErrorEnum> {
2131        let mut fld = field::PegLimitTypeField::new(0);
2132        self.message.body.get_field(tag::PEG_LIMIT_TYPE, &mut fld.0)?;
2133        Ok(fld.value())
2134    }
2135
2136
2137    /// Returns true if `PegLimitType` is present, Tag 837.
2138    pub fn has_peg_limit_type(&self) -> bool {
2139        self.message.body.has(tag::PEG_LIMIT_TYPE)
2140    }
2141
2142
2143
2144
2145    /// Sets `PegMoveType`, Tag 835.
2146    pub fn set_peg_move_type(&mut self, v: isize) {
2147        self.message.body.set_field(tag::PEG_MOVE_TYPE, fixer::fix_int::FIXInt::from(v));
2148    }
2149
2150    /// Gets `PegMoveType`, Tag 835.
2151    pub fn get_peg_move_type(&self) -> Result<isize, MessageRejectErrorEnum> {
2152        let mut fld = field::PegMoveTypeField::new(0);
2153        self.message.body.get_field(tag::PEG_MOVE_TYPE, &mut fld.0)?;
2154        Ok(fld.value())
2155    }
2156
2157
2158    /// Returns true if `PegMoveType` is present, Tag 835.
2159    pub fn has_peg_move_type(&self) -> bool {
2160        self.message.body.has(tag::PEG_MOVE_TYPE)
2161    }
2162
2163
2164
2165
2166    /// Sets `PegOffsetType`, Tag 836.
2167    pub fn set_peg_offset_type(&mut self, v: isize) {
2168        self.message.body.set_field(tag::PEG_OFFSET_TYPE, fixer::fix_int::FIXInt::from(v));
2169    }
2170
2171    /// Gets `PegOffsetType`, Tag 836.
2172    pub fn get_peg_offset_type(&self) -> Result<isize, MessageRejectErrorEnum> {
2173        let mut fld = field::PegOffsetTypeField::new(0);
2174        self.message.body.get_field(tag::PEG_OFFSET_TYPE, &mut fld.0)?;
2175        Ok(fld.value())
2176    }
2177
2178
2179    /// Returns true if `PegOffsetType` is present, Tag 836.
2180    pub fn has_peg_offset_type(&self) -> bool {
2181        self.message.body.has(tag::PEG_OFFSET_TYPE)
2182    }
2183
2184
2185
2186
2187    /// Sets `PegOffsetValue`, Tag 211.
2188    pub fn set_peg_offset_value(&mut self, val: Decimal, scale: i32) {
2189        self.message.body.set_field(tag::PEG_OFFSET_VALUE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2190    }
2191
2192    /// Gets `PegOffsetValue`, Tag 211.
2193    pub fn get_peg_offset_value(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2194        let mut fld = field::PegOffsetValueField::new(Decimal::ZERO, 0);
2195        self.message.body.get_field(tag::PEG_OFFSET_VALUE, &mut fld.0)?;
2196        Ok(fld.value())
2197    }
2198
2199
2200    /// Returns true if `PegOffsetValue` is present, Tag 211.
2201    pub fn has_peg_offset_value(&self) -> bool {
2202        self.message.body.has(tag::PEG_OFFSET_VALUE)
2203    }
2204
2205
2206
2207
2208    /// Sets `PegRoundDirection`, Tag 838.
2209    pub fn set_peg_round_direction(&mut self, v: isize) {
2210        self.message.body.set_field(tag::PEG_ROUND_DIRECTION, fixer::fix_int::FIXInt::from(v));
2211    }
2212
2213    /// Gets `PegRoundDirection`, Tag 838.
2214    pub fn get_peg_round_direction(&self) -> Result<isize, MessageRejectErrorEnum> {
2215        let mut fld = field::PegRoundDirectionField::new(0);
2216        self.message.body.get_field(tag::PEG_ROUND_DIRECTION, &mut fld.0)?;
2217        Ok(fld.value())
2218    }
2219
2220
2221    /// Returns true if `PegRoundDirection` is present, Tag 838.
2222    pub fn has_peg_round_direction(&self) -> bool {
2223        self.message.body.has(tag::PEG_ROUND_DIRECTION)
2224    }
2225
2226
2227
2228
2229    /// Sets `PegScope`, Tag 840.
2230    pub fn set_peg_scope(&mut self, v: isize) {
2231        self.message.body.set_field(tag::PEG_SCOPE, fixer::fix_int::FIXInt::from(v));
2232    }
2233
2234    /// Gets `PegScope`, Tag 840.
2235    pub fn get_peg_scope(&self) -> Result<isize, MessageRejectErrorEnum> {
2236        let mut fld = field::PegScopeField::new(0);
2237        self.message.body.get_field(tag::PEG_SCOPE, &mut fld.0)?;
2238        Ok(fld.value())
2239    }
2240
2241
2242    /// Returns true if `PegScope` is present, Tag 840.
2243    pub fn has_peg_scope(&self) -> bool {
2244        self.message.body.has(tag::PEG_SCOPE)
2245    }
2246
2247
2248
2249
2250    /// Sets `Pool`, Tag 691.
2251    pub fn set_pool(&mut self, v: String) {
2252        self.message.body.set_field(tag::POOL, FIXString::from(v));
2253    }
2254
2255    /// Gets `Pool`, Tag 691.
2256    pub fn get_pool(&self) -> Result<String, MessageRejectErrorEnum> {
2257        let mut fld = field::PoolField::new(String::new());
2258        self.message.body.get_field(tag::POOL, &mut fld.0)?;
2259        Ok(fld.value().to_string())
2260    }
2261
2262
2263    /// Returns true if `Pool` is present, Tag 691.
2264    pub fn has_pool(&self) -> bool {
2265        self.message.body.has(tag::POOL)
2266    }
2267
2268
2269
2270
2271    /// Sets `PositionEffect`, Tag 77.
2272    pub fn set_position_effect(&mut self, v: String) {
2273        self.message.body.set_field(tag::POSITION_EFFECT, FIXString::from(v));
2274    }
2275
2276    /// Gets `PositionEffect`, Tag 77.
2277    pub fn get_position_effect(&self) -> Result<String, MessageRejectErrorEnum> {
2278        let mut fld = field::PositionEffectField::new(String::new());
2279        self.message.body.get_field(tag::POSITION_EFFECT, &mut fld.0)?;
2280        Ok(fld.value().to_string())
2281    }
2282
2283
2284    /// Returns true if `PositionEffect` is present, Tag 77.
2285    pub fn has_position_effect(&self) -> bool {
2286        self.message.body.has(tag::POSITION_EFFECT)
2287    }
2288
2289
2290
2291
2292    /// Sets `PreallocMethod`, Tag 591.
2293    pub fn set_prealloc_method(&mut self, v: String) {
2294        self.message.body.set_field(tag::PREALLOC_METHOD, FIXString::from(v));
2295    }
2296
2297    /// Gets `PreallocMethod`, Tag 591.
2298    pub fn get_prealloc_method(&self) -> Result<String, MessageRejectErrorEnum> {
2299        let mut fld = field::PreallocMethodField::new(String::new());
2300        self.message.body.get_field(tag::PREALLOC_METHOD, &mut fld.0)?;
2301        Ok(fld.value().to_string())
2302    }
2303
2304
2305    /// Returns true if `PreallocMethod` is present, Tag 591.
2306    pub fn has_prealloc_method(&self) -> bool {
2307        self.message.body.has(tag::PREALLOC_METHOD)
2308    }
2309
2310
2311
2312
2313    /// Sets `Price`, Tag 44.
2314    pub fn set_price(&mut self, val: Decimal, scale: i32) {
2315        self.message.body.set_field(tag::PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2316    }
2317
2318    /// Gets `Price`, Tag 44.
2319    pub fn get_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2320        let mut fld = field::PriceField::new(Decimal::ZERO, 0);
2321        self.message.body.get_field(tag::PRICE, &mut fld.0)?;
2322        Ok(fld.value())
2323    }
2324
2325
2326    /// Returns true if `Price` is present, Tag 44.
2327    pub fn has_price(&self) -> bool {
2328        self.message.body.has(tag::PRICE)
2329    }
2330
2331
2332
2333
2334    /// Sets `Price2`, Tag 640.
2335    pub fn set_price2(&mut self, val: Decimal, scale: i32) {
2336        self.message.body.set_field(tag::PRICE2, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2337    }
2338
2339    /// Gets `Price2`, Tag 640.
2340    pub fn get_price2(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2341        let mut fld = field::Price2Field::new(Decimal::ZERO, 0);
2342        self.message.body.get_field(tag::PRICE2, &mut fld.0)?;
2343        Ok(fld.value())
2344    }
2345
2346
2347    /// Returns true if `Price2` is present, Tag 640.
2348    pub fn has_price2(&self) -> bool {
2349        self.message.body.has(tag::PRICE2)
2350    }
2351
2352
2353
2354
2355    /// Sets `PriceType`, Tag 423.
2356    pub fn set_price_type(&mut self, v: isize) {
2357        self.message.body.set_field(tag::PRICE_TYPE, fixer::fix_int::FIXInt::from(v));
2358    }
2359
2360    /// Gets `PriceType`, Tag 423.
2361    pub fn get_price_type(&self) -> Result<isize, MessageRejectErrorEnum> {
2362        let mut fld = field::PriceTypeField::new(0);
2363        self.message.body.get_field(tag::PRICE_TYPE, &mut fld.0)?;
2364        Ok(fld.value())
2365    }
2366
2367
2368    /// Returns true if `PriceType` is present, Tag 423.
2369    pub fn has_price_type(&self) -> bool {
2370        self.message.body.has(tag::PRICE_TYPE)
2371    }
2372
2373
2374
2375
2376    /// Sets `Product`, Tag 460.
2377    pub fn set_product(&mut self, v: isize) {
2378        self.message.body.set_field(tag::PRODUCT, fixer::fix_int::FIXInt::from(v));
2379    }
2380
2381    /// Gets `Product`, Tag 460.
2382    pub fn get_product(&self) -> Result<isize, MessageRejectErrorEnum> {
2383        let mut fld = field::ProductField::new(0);
2384        self.message.body.get_field(tag::PRODUCT, &mut fld.0)?;
2385        Ok(fld.value())
2386    }
2387
2388
2389    /// Returns true if `Product` is present, Tag 460.
2390    pub fn has_product(&self) -> bool {
2391        self.message.body.has(tag::PRODUCT)
2392    }
2393
2394
2395
2396
2397    /// Sets `QtyType`, Tag 854.
2398    pub fn set_qty_type(&mut self, v: isize) {
2399        self.message.body.set_field(tag::QTY_TYPE, fixer::fix_int::FIXInt::from(v));
2400    }
2401
2402    /// Gets `QtyType`, Tag 854.
2403    pub fn get_qty_type(&self) -> Result<isize, MessageRejectErrorEnum> {
2404        let mut fld = field::QtyTypeField::new(0);
2405        self.message.body.get_field(tag::QTY_TYPE, &mut fld.0)?;
2406        Ok(fld.value())
2407    }
2408
2409
2410    /// Returns true if `QtyType` is present, Tag 854.
2411    pub fn has_qty_type(&self) -> bool {
2412        self.message.body.has(tag::QTY_TYPE)
2413    }
2414
2415
2416
2417
2418    /// Sets `RedemptionDate`, Tag 240.
2419    pub fn set_redemption_date(&mut self, v: String) {
2420        self.message.body.set_field(tag::REDEMPTION_DATE, FIXString::from(v));
2421    }
2422
2423    /// Gets `RedemptionDate`, Tag 240.
2424    pub fn get_redemption_date(&self) -> Result<String, MessageRejectErrorEnum> {
2425        let mut fld = field::RedemptionDateField::new(String::new());
2426        self.message.body.get_field(tag::REDEMPTION_DATE, &mut fld.0)?;
2427        Ok(fld.value().to_string())
2428    }
2429
2430
2431    /// Returns true if `RedemptionDate` is present, Tag 240.
2432    pub fn has_redemption_date(&self) -> bool {
2433        self.message.body.has(tag::REDEMPTION_DATE)
2434    }
2435
2436
2437
2438
2439    /// Sets `RegistID`, Tag 513.
2440    pub fn set_regist_id(&mut self, v: String) {
2441        self.message.body.set_field(tag::REGIST_ID, FIXString::from(v));
2442    }
2443
2444    /// Gets `RegistID`, Tag 513.
2445    pub fn get_regist_id(&self) -> Result<String, MessageRejectErrorEnum> {
2446        let mut fld = field::RegistIDField::new(String::new());
2447        self.message.body.get_field(tag::REGIST_ID, &mut fld.0)?;
2448        Ok(fld.value().to_string())
2449    }
2450
2451
2452    /// Returns true if `RegistID` is present, Tag 513.
2453    pub fn has_regist_id(&self) -> bool {
2454        self.message.body.has(tag::REGIST_ID)
2455    }
2456
2457
2458
2459
2460    /// Sets `RepoCollateralSecurityType`, Tag 239.
2461    pub fn set_repo_collateral_security_type(&mut self, v: isize) {
2462        self.message.body.set_field(tag::REPO_COLLATERAL_SECURITY_TYPE, fixer::fix_int::FIXInt::from(v));
2463    }
2464
2465    /// Gets `RepoCollateralSecurityType`, Tag 239.
2466    pub fn get_repo_collateral_security_type(&self) -> Result<isize, MessageRejectErrorEnum> {
2467        let mut fld = field::RepoCollateralSecurityTypeField::new(0);
2468        self.message.body.get_field(tag::REPO_COLLATERAL_SECURITY_TYPE, &mut fld.0)?;
2469        Ok(fld.value())
2470    }
2471
2472
2473    /// Returns true if `RepoCollateralSecurityType` is present, Tag 239.
2474    pub fn has_repo_collateral_security_type(&self) -> bool {
2475        self.message.body.has(tag::REPO_COLLATERAL_SECURITY_TYPE)
2476    }
2477
2478
2479
2480
2481    /// Sets `RepurchaseRate`, Tag 227.
2482    pub fn set_repurchase_rate(&mut self, val: Decimal, scale: i32) {
2483        self.message.body.set_field(tag::REPURCHASE_RATE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2484    }
2485
2486    /// Gets `RepurchaseRate`, Tag 227.
2487    pub fn get_repurchase_rate(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2488        let mut fld = field::RepurchaseRateField::new(Decimal::ZERO, 0);
2489        self.message.body.get_field(tag::REPURCHASE_RATE, &mut fld.0)?;
2490        Ok(fld.value())
2491    }
2492
2493
2494    /// Returns true if `RepurchaseRate` is present, Tag 227.
2495    pub fn has_repurchase_rate(&self) -> bool {
2496        self.message.body.has(tag::REPURCHASE_RATE)
2497    }
2498
2499
2500
2501
2502    /// Sets `RepurchaseTerm`, Tag 226.
2503    pub fn set_repurchase_term(&mut self, v: isize) {
2504        self.message.body.set_field(tag::REPURCHASE_TERM, fixer::fix_int::FIXInt::from(v));
2505    }
2506
2507    /// Gets `RepurchaseTerm`, Tag 226.
2508    pub fn get_repurchase_term(&self) -> Result<isize, MessageRejectErrorEnum> {
2509        let mut fld = field::RepurchaseTermField::new(0);
2510        self.message.body.get_field(tag::REPURCHASE_TERM, &mut fld.0)?;
2511        Ok(fld.value())
2512    }
2513
2514
2515    /// Returns true if `RepurchaseTerm` is present, Tag 226.
2516    pub fn has_repurchase_term(&self) -> bool {
2517        self.message.body.has(tag::REPURCHASE_TERM)
2518    }
2519
2520
2521
2522
2523    /// Sets `RoundingDirection`, Tag 468.
2524    pub fn set_rounding_direction(&mut self, v: String) {
2525        self.message.body.set_field(tag::ROUNDING_DIRECTION, FIXString::from(v));
2526    }
2527
2528    /// Gets `RoundingDirection`, Tag 468.
2529    pub fn get_rounding_direction(&self) -> Result<String, MessageRejectErrorEnum> {
2530        let mut fld = field::RoundingDirectionField::new(String::new());
2531        self.message.body.get_field(tag::ROUNDING_DIRECTION, &mut fld.0)?;
2532        Ok(fld.value().to_string())
2533    }
2534
2535
2536    /// Returns true if `RoundingDirection` is present, Tag 468.
2537    pub fn has_rounding_direction(&self) -> bool {
2538        self.message.body.has(tag::ROUNDING_DIRECTION)
2539    }
2540
2541
2542
2543
2544    /// Sets `RoundingModulus`, Tag 469.
2545    pub fn set_rounding_modulus(&mut self, val: Decimal, scale: i32) {
2546        self.message.body.set_field(tag::ROUNDING_MODULUS, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2547    }
2548
2549    /// Gets `RoundingModulus`, Tag 469.
2550    pub fn get_rounding_modulus(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2551        let mut fld = field::RoundingModulusField::new(Decimal::ZERO, 0);
2552        self.message.body.get_field(tag::ROUNDING_MODULUS, &mut fld.0)?;
2553        Ok(fld.value())
2554    }
2555
2556
2557    /// Returns true if `RoundingModulus` is present, Tag 469.
2558    pub fn has_rounding_modulus(&self) -> bool {
2559        self.message.body.has(tag::ROUNDING_MODULUS)
2560    }
2561
2562
2563
2564
2565    /// Sets `SecondaryClOrdID`, Tag 526.
2566    pub fn set_secondary_cl_ord_id(&mut self, v: String) {
2567        self.message.body.set_field(tag::SECONDARY_CL_ORD_ID, FIXString::from(v));
2568    }
2569
2570    /// Gets `SecondaryClOrdID`, Tag 526.
2571    pub fn get_secondary_cl_ord_id(&self) -> Result<String, MessageRejectErrorEnum> {
2572        let mut fld = field::SecondaryClOrdIDField::new(String::new());
2573        self.message.body.get_field(tag::SECONDARY_CL_ORD_ID, &mut fld.0)?;
2574        Ok(fld.value().to_string())
2575    }
2576
2577
2578    /// Returns true if `SecondaryClOrdID` is present, Tag 526.
2579    pub fn has_secondary_cl_ord_id(&self) -> bool {
2580        self.message.body.has(tag::SECONDARY_CL_ORD_ID)
2581    }
2582
2583
2584
2585
2586    /// Sets `SecurityDesc`, Tag 107.
2587    pub fn set_security_desc(&mut self, v: String) {
2588        self.message.body.set_field(tag::SECURITY_DESC, FIXString::from(v));
2589    }
2590
2591    /// Gets `SecurityDesc`, Tag 107.
2592    pub fn get_security_desc(&self) -> Result<String, MessageRejectErrorEnum> {
2593        let mut fld = field::SecurityDescField::new(String::new());
2594        self.message.body.get_field(tag::SECURITY_DESC, &mut fld.0)?;
2595        Ok(fld.value().to_string())
2596    }
2597
2598
2599    /// Returns true if `SecurityDesc` is present, Tag 107.
2600    pub fn has_security_desc(&self) -> bool {
2601        self.message.body.has(tag::SECURITY_DESC)
2602    }
2603
2604
2605
2606
2607    /// Sets `SecurityExchange`, Tag 207.
2608    pub fn set_security_exchange(&mut self, v: String) {
2609        self.message.body.set_field(tag::SECURITY_EXCHANGE, FIXString::from(v));
2610    }
2611
2612    /// Gets `SecurityExchange`, Tag 207.
2613    pub fn get_security_exchange(&self) -> Result<String, MessageRejectErrorEnum> {
2614        let mut fld = field::SecurityExchangeField::new(String::new());
2615        self.message.body.get_field(tag::SECURITY_EXCHANGE, &mut fld.0)?;
2616        Ok(fld.value().to_string())
2617    }
2618
2619
2620    /// Returns true if `SecurityExchange` is present, Tag 207.
2621    pub fn has_security_exchange(&self) -> bool {
2622        self.message.body.has(tag::SECURITY_EXCHANGE)
2623    }
2624
2625
2626
2627
2628    /// Sets `SecurityID`, Tag 48.
2629    pub fn set_security_id(&mut self, v: String) {
2630        self.message.body.set_field(tag::SECURITY_ID, FIXString::from(v));
2631    }
2632
2633    /// Gets `SecurityID`, Tag 48.
2634    pub fn get_security_id(&self) -> Result<String, MessageRejectErrorEnum> {
2635        let mut fld = field::SecurityIDField::new(String::new());
2636        self.message.body.get_field(tag::SECURITY_ID, &mut fld.0)?;
2637        Ok(fld.value().to_string())
2638    }
2639
2640
2641    /// Returns true if `SecurityID` is present, Tag 48.
2642    pub fn has_security_id(&self) -> bool {
2643        self.message.body.has(tag::SECURITY_ID)
2644    }
2645
2646
2647
2648
2649    /// Sets `SecurityIDSource`, Tag 22.
2650    pub fn set_security_id_source(&mut self, v: String) {
2651        self.message.body.set_field(tag::SECURITY_ID_SOURCE, FIXString::from(v));
2652    }
2653
2654    /// Gets `SecurityIDSource`, Tag 22.
2655    pub fn get_security_id_source(&self) -> Result<String, MessageRejectErrorEnum> {
2656        let mut fld = field::SecurityIDSourceField::new(String::new());
2657        self.message.body.get_field(tag::SECURITY_ID_SOURCE, &mut fld.0)?;
2658        Ok(fld.value().to_string())
2659    }
2660
2661
2662    /// Returns true if `SecurityIDSource` is present, Tag 22.
2663    pub fn has_security_id_source(&self) -> bool {
2664        self.message.body.has(tag::SECURITY_ID_SOURCE)
2665    }
2666
2667
2668
2669
2670    /// Sets `SecuritySubType`, Tag 762.
2671    pub fn set_security_sub_type(&mut self, v: String) {
2672        self.message.body.set_field(tag::SECURITY_SUB_TYPE, FIXString::from(v));
2673    }
2674
2675    /// Gets `SecuritySubType`, Tag 762.
2676    pub fn get_security_sub_type(&self) -> Result<String, MessageRejectErrorEnum> {
2677        let mut fld = field::SecuritySubTypeField::new(String::new());
2678        self.message.body.get_field(tag::SECURITY_SUB_TYPE, &mut fld.0)?;
2679        Ok(fld.value().to_string())
2680    }
2681
2682
2683    /// Returns true if `SecuritySubType` is present, Tag 762.
2684    pub fn has_security_sub_type(&self) -> bool {
2685        self.message.body.has(tag::SECURITY_SUB_TYPE)
2686    }
2687
2688
2689
2690
2691    /// Sets `SecurityType`, Tag 167.
2692    pub fn set_security_type(&mut self, v: String) {
2693        self.message.body.set_field(tag::SECURITY_TYPE, FIXString::from(v));
2694    }
2695
2696    /// Gets `SecurityType`, Tag 167.
2697    pub fn get_security_type(&self) -> Result<String, MessageRejectErrorEnum> {
2698        let mut fld = field::SecurityTypeField::new(String::new());
2699        self.message.body.get_field(tag::SECURITY_TYPE, &mut fld.0)?;
2700        Ok(fld.value().to_string())
2701    }
2702
2703
2704    /// Returns true if `SecurityType` is present, Tag 167.
2705    pub fn has_security_type(&self) -> bool {
2706        self.message.body.has(tag::SECURITY_TYPE)
2707    }
2708
2709
2710
2711
2712    /// Sets `SettlCurrency`, Tag 120.
2713    pub fn set_settl_currency(&mut self, v: String) {
2714        self.message.body.set_field(tag::SETTL_CURRENCY, FIXString::from(v));
2715    }
2716
2717    /// Gets `SettlCurrency`, Tag 120.
2718    pub fn get_settl_currency(&self) -> Result<String, MessageRejectErrorEnum> {
2719        let mut fld = field::SettlCurrencyField::new(String::new());
2720        self.message.body.get_field(tag::SETTL_CURRENCY, &mut fld.0)?;
2721        Ok(fld.value().to_string())
2722    }
2723
2724
2725    /// Returns true if `SettlCurrency` is present, Tag 120.
2726    pub fn has_settl_currency(&self) -> bool {
2727        self.message.body.has(tag::SETTL_CURRENCY)
2728    }
2729
2730
2731
2732
2733    /// Sets `SettlDate`, Tag 64.
2734    pub fn set_settl_date(&mut self, v: String) {
2735        self.message.body.set_field(tag::SETTL_DATE, FIXString::from(v));
2736    }
2737
2738    /// Gets `SettlDate`, Tag 64.
2739    pub fn get_settl_date(&self) -> Result<String, MessageRejectErrorEnum> {
2740        let mut fld = field::SettlDateField::new(String::new());
2741        self.message.body.get_field(tag::SETTL_DATE, &mut fld.0)?;
2742        Ok(fld.value().to_string())
2743    }
2744
2745
2746    /// Returns true if `SettlDate` is present, Tag 64.
2747    pub fn has_settl_date(&self) -> bool {
2748        self.message.body.has(tag::SETTL_DATE)
2749    }
2750
2751
2752
2753
2754    /// Sets `SettlDate2`, Tag 193.
2755    pub fn set_settl_date2(&mut self, v: String) {
2756        self.message.body.set_field(tag::SETTL_DATE2, FIXString::from(v));
2757    }
2758
2759    /// Gets `SettlDate2`, Tag 193.
2760    pub fn get_settl_date2(&self) -> Result<String, MessageRejectErrorEnum> {
2761        let mut fld = field::SettlDate2Field::new(String::new());
2762        self.message.body.get_field(tag::SETTL_DATE2, &mut fld.0)?;
2763        Ok(fld.value().to_string())
2764    }
2765
2766
2767    /// Returns true if `SettlDate2` is present, Tag 193.
2768    pub fn has_settl_date2(&self) -> bool {
2769        self.message.body.has(tag::SETTL_DATE2)
2770    }
2771
2772
2773
2774
2775    /// Sets `SettlType`, Tag 63.
2776    pub fn set_settl_type(&mut self, v: String) {
2777        self.message.body.set_field(tag::SETTL_TYPE, FIXString::from(v));
2778    }
2779
2780    /// Gets `SettlType`, Tag 63.
2781    pub fn get_settl_type(&self) -> Result<String, MessageRejectErrorEnum> {
2782        let mut fld = field::SettlTypeField::new(String::new());
2783        self.message.body.get_field(tag::SETTL_TYPE, &mut fld.0)?;
2784        Ok(fld.value().to_string())
2785    }
2786
2787
2788    /// Returns true if `SettlType` is present, Tag 63.
2789    pub fn has_settl_type(&self) -> bool {
2790        self.message.body.has(tag::SETTL_TYPE)
2791    }
2792
2793
2794
2795
2796    /// Sets `Side`, Tag 54.
2797    pub fn set_side(&mut self, v: String) {
2798        self.message.body.set_field(tag::SIDE, FIXString::from(v));
2799    }
2800
2801    /// Gets `Side`, Tag 54.
2802    pub fn get_side(&self) -> Result<String, MessageRejectErrorEnum> {
2803        let mut fld = field::SideField::new(String::new());
2804        self.message.body.get_field(tag::SIDE, &mut fld.0)?;
2805        Ok(fld.value().to_string())
2806    }
2807
2808
2809    /// Returns true if `Side` is present, Tag 54.
2810    pub fn has_side(&self) -> bool {
2811        self.message.body.has(tag::SIDE)
2812    }
2813
2814
2815
2816
2817    /// Sets `SolicitedFlag`, Tag 377.
2818    pub fn set_solicited_flag(&mut self, v: bool) {
2819        self.message.body.set_field(tag::SOLICITED_FLAG, fixer::fix_boolean::FIXBoolean::from(v));
2820    }
2821
2822    /// Gets `SolicitedFlag`, Tag 377.
2823    pub fn get_solicited_flag(&self) -> Result<bool, MessageRejectErrorEnum> {
2824        let mut fld = field::SolicitedFlagField::new(false);
2825        self.message.body.get_field(tag::SOLICITED_FLAG, &mut fld.0)?;
2826        Ok(fld.value())
2827    }
2828
2829
2830    /// Returns true if `SolicitedFlag` is present, Tag 377.
2831    pub fn has_solicited_flag(&self) -> bool {
2832        self.message.body.has(tag::SOLICITED_FLAG)
2833    }
2834
2835
2836
2837
2838    /// Sets `Spread`, Tag 218.
2839    pub fn set_spread(&mut self, val: Decimal, scale: i32) {
2840        self.message.body.set_field(tag::SPREAD, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2841    }
2842
2843    /// Gets `Spread`, Tag 218.
2844    pub fn get_spread(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2845        let mut fld = field::SpreadField::new(Decimal::ZERO, 0);
2846        self.message.body.get_field(tag::SPREAD, &mut fld.0)?;
2847        Ok(fld.value())
2848    }
2849
2850
2851    /// Returns true if `Spread` is present, Tag 218.
2852    pub fn has_spread(&self) -> bool {
2853        self.message.body.has(tag::SPREAD)
2854    }
2855
2856
2857
2858
2859    /// Sets `StartDate`, Tag 916.
2860    pub fn set_start_date(&mut self, v: String) {
2861        self.message.body.set_field(tag::START_DATE, FIXString::from(v));
2862    }
2863
2864    /// Gets `StartDate`, Tag 916.
2865    pub fn get_start_date(&self) -> Result<String, MessageRejectErrorEnum> {
2866        let mut fld = field::StartDateField::new(String::new());
2867        self.message.body.get_field(tag::START_DATE, &mut fld.0)?;
2868        Ok(fld.value().to_string())
2869    }
2870
2871
2872    /// Returns true if `StartDate` is present, Tag 916.
2873    pub fn has_start_date(&self) -> bool {
2874        self.message.body.has(tag::START_DATE)
2875    }
2876
2877
2878
2879
2880    /// Sets `StateOrProvinceOfIssue`, Tag 471.
2881    pub fn set_state_or_province_of_issue(&mut self, v: String) {
2882        self.message.body.set_field(tag::STATE_OR_PROVINCE_OF_ISSUE, FIXString::from(v));
2883    }
2884
2885    /// Gets `StateOrProvinceOfIssue`, Tag 471.
2886    pub fn get_state_or_province_of_issue(&self) -> Result<String, MessageRejectErrorEnum> {
2887        let mut fld = field::StateOrProvinceOfIssueField::new(String::new());
2888        self.message.body.get_field(tag::STATE_OR_PROVINCE_OF_ISSUE, &mut fld.0)?;
2889        Ok(fld.value().to_string())
2890    }
2891
2892
2893    /// Returns true if `StateOrProvinceOfIssue` is present, Tag 471.
2894    pub fn has_state_or_province_of_issue(&self) -> bool {
2895        self.message.body.has(tag::STATE_OR_PROVINCE_OF_ISSUE)
2896    }
2897
2898
2899
2900
2901    /// Sets `StopPx`, Tag 99.
2902    pub fn set_stop_px(&mut self, val: Decimal, scale: i32) {
2903        self.message.body.set_field(tag::STOP_PX, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2904    }
2905
2906    /// Gets `StopPx`, Tag 99.
2907    pub fn get_stop_px(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2908        let mut fld = field::StopPxField::new(Decimal::ZERO, 0);
2909        self.message.body.get_field(tag::STOP_PX, &mut fld.0)?;
2910        Ok(fld.value())
2911    }
2912
2913
2914    /// Returns true if `StopPx` is present, Tag 99.
2915    pub fn has_stop_px(&self) -> bool {
2916        self.message.body.has(tag::STOP_PX)
2917    }
2918
2919
2920
2921
2922    /// Sets `StrikeCurrency`, Tag 947.
2923    pub fn set_strike_currency(&mut self, v: String) {
2924        self.message.body.set_field(tag::STRIKE_CURRENCY, FIXString::from(v));
2925    }
2926
2927    /// Gets `StrikeCurrency`, Tag 947.
2928    pub fn get_strike_currency(&self) -> Result<String, MessageRejectErrorEnum> {
2929        let mut fld = field::StrikeCurrencyField::new(String::new());
2930        self.message.body.get_field(tag::STRIKE_CURRENCY, &mut fld.0)?;
2931        Ok(fld.value().to_string())
2932    }
2933
2934
2935    /// Returns true if `StrikeCurrency` is present, Tag 947.
2936    pub fn has_strike_currency(&self) -> bool {
2937        self.message.body.has(tag::STRIKE_CURRENCY)
2938    }
2939
2940
2941
2942
2943    /// Sets `StrikePrice`, Tag 202.
2944    pub fn set_strike_price(&mut self, val: Decimal, scale: i32) {
2945        self.message.body.set_field(tag::STRIKE_PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2946    }
2947
2948    /// Gets `StrikePrice`, Tag 202.
2949    pub fn get_strike_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2950        let mut fld = field::StrikePriceField::new(Decimal::ZERO, 0);
2951        self.message.body.get_field(tag::STRIKE_PRICE, &mut fld.0)?;
2952        Ok(fld.value())
2953    }
2954
2955
2956    /// Returns true if `StrikePrice` is present, Tag 202.
2957    pub fn has_strike_price(&self) -> bool {
2958        self.message.body.has(tag::STRIKE_PRICE)
2959    }
2960
2961
2962
2963
2964    /// Sets `Symbol`, Tag 55.
2965    pub fn set_symbol(&mut self, v: String) {
2966        self.message.body.set_field(tag::SYMBOL, FIXString::from(v));
2967    }
2968
2969    /// Gets `Symbol`, Tag 55.
2970    pub fn get_symbol(&self) -> Result<String, MessageRejectErrorEnum> {
2971        let mut fld = field::SymbolField::new(String::new());
2972        self.message.body.get_field(tag::SYMBOL, &mut fld.0)?;
2973        Ok(fld.value().to_string())
2974    }
2975
2976
2977    /// Returns true if `Symbol` is present, Tag 55.
2978    pub fn has_symbol(&self) -> bool {
2979        self.message.body.has(tag::SYMBOL)
2980    }
2981
2982
2983
2984
2985    /// Sets `SymbolSfx`, Tag 65.
2986    pub fn set_symbol_sfx(&mut self, v: String) {
2987        self.message.body.set_field(tag::SYMBOL_SFX, FIXString::from(v));
2988    }
2989
2990    /// Gets `SymbolSfx`, Tag 65.
2991    pub fn get_symbol_sfx(&self) -> Result<String, MessageRejectErrorEnum> {
2992        let mut fld = field::SymbolSfxField::new(String::new());
2993        self.message.body.get_field(tag::SYMBOL_SFX, &mut fld.0)?;
2994        Ok(fld.value().to_string())
2995    }
2996
2997
2998    /// Returns true if `SymbolSfx` is present, Tag 65.
2999    pub fn has_symbol_sfx(&self) -> bool {
3000        self.message.body.has(tag::SYMBOL_SFX)
3001    }
3002
3003
3004
3005
3006    /// Sets `TargetStrategy`, Tag 847.
3007    pub fn set_target_strategy(&mut self, v: isize) {
3008        self.message.body.set_field(tag::TARGET_STRATEGY, fixer::fix_int::FIXInt::from(v));
3009    }
3010
3011    /// Gets `TargetStrategy`, Tag 847.
3012    pub fn get_target_strategy(&self) -> Result<isize, MessageRejectErrorEnum> {
3013        let mut fld = field::TargetStrategyField::new(0);
3014        self.message.body.get_field(tag::TARGET_STRATEGY, &mut fld.0)?;
3015        Ok(fld.value())
3016    }
3017
3018
3019    /// Returns true if `TargetStrategy` is present, Tag 847.
3020    pub fn has_target_strategy(&self) -> bool {
3021        self.message.body.has(tag::TARGET_STRATEGY)
3022    }
3023
3024
3025
3026
3027    /// Sets `TargetStrategyParameters`, Tag 848.
3028    pub fn set_target_strategy_parameters(&mut self, v: String) {
3029        self.message.body.set_field(tag::TARGET_STRATEGY_PARAMETERS, FIXString::from(v));
3030    }
3031
3032    /// Gets `TargetStrategyParameters`, Tag 848.
3033    pub fn get_target_strategy_parameters(&self) -> Result<String, MessageRejectErrorEnum> {
3034        let mut fld = field::TargetStrategyParametersField::new(String::new());
3035        self.message.body.get_field(tag::TARGET_STRATEGY_PARAMETERS, &mut fld.0)?;
3036        Ok(fld.value().to_string())
3037    }
3038
3039
3040    /// Returns true if `TargetStrategyParameters` is present, Tag 848.
3041    pub fn has_target_strategy_parameters(&self) -> bool {
3042        self.message.body.has(tag::TARGET_STRATEGY_PARAMETERS)
3043    }
3044
3045
3046
3047
3048    /// Sets `TerminationType`, Tag 788.
3049    pub fn set_termination_type(&mut self, v: isize) {
3050        self.message.body.set_field(tag::TERMINATION_TYPE, fixer::fix_int::FIXInt::from(v));
3051    }
3052
3053    /// Gets `TerminationType`, Tag 788.
3054    pub fn get_termination_type(&self) -> Result<isize, MessageRejectErrorEnum> {
3055        let mut fld = field::TerminationTypeField::new(0);
3056        self.message.body.get_field(tag::TERMINATION_TYPE, &mut fld.0)?;
3057        Ok(fld.value())
3058    }
3059
3060
3061    /// Returns true if `TerminationType` is present, Tag 788.
3062    pub fn has_termination_type(&self) -> bool {
3063        self.message.body.has(tag::TERMINATION_TYPE)
3064    }
3065
3066
3067
3068
3069    /// Sets `Text`, Tag 58.
3070    pub fn set_text(&mut self, v: String) {
3071        self.message.body.set_field(tag::TEXT, FIXString::from(v));
3072    }
3073
3074    /// Gets `Text`, Tag 58.
3075    pub fn get_text(&self) -> Result<String, MessageRejectErrorEnum> {
3076        let mut fld = field::TextField::new(String::new());
3077        self.message.body.get_field(tag::TEXT, &mut fld.0)?;
3078        Ok(fld.value().to_string())
3079    }
3080
3081
3082    /// Returns true if `Text` is present, Tag 58.
3083    pub fn has_text(&self) -> bool {
3084        self.message.body.has(tag::TEXT)
3085    }
3086
3087
3088
3089
3090    /// Sets `TimeInForce`, Tag 59.
3091    pub fn set_time_in_force(&mut self, v: String) {
3092        self.message.body.set_field(tag::TIME_IN_FORCE, FIXString::from(v));
3093    }
3094
3095    /// Gets `TimeInForce`, Tag 59.
3096    pub fn get_time_in_force(&self) -> Result<String, MessageRejectErrorEnum> {
3097        let mut fld = field::TimeInForceField::new(String::new());
3098        self.message.body.get_field(tag::TIME_IN_FORCE, &mut fld.0)?;
3099        Ok(fld.value().to_string())
3100    }
3101
3102
3103    /// Returns true if `TimeInForce` is present, Tag 59.
3104    pub fn has_time_in_force(&self) -> bool {
3105        self.message.body.has(tag::TIME_IN_FORCE)
3106    }
3107
3108
3109
3110
3111    /// Sets `TradeDate`, Tag 75.
3112    pub fn set_trade_date(&mut self, v: String) {
3113        self.message.body.set_field(tag::TRADE_DATE, FIXString::from(v));
3114    }
3115
3116    /// Gets `TradeDate`, Tag 75.
3117    pub fn get_trade_date(&self) -> Result<String, MessageRejectErrorEnum> {
3118        let mut fld = field::TradeDateField::new(String::new());
3119        self.message.body.get_field(tag::TRADE_DATE, &mut fld.0)?;
3120        Ok(fld.value().to_string())
3121    }
3122
3123
3124    /// Returns true if `TradeDate` is present, Tag 75.
3125    pub fn has_trade_date(&self) -> bool {
3126        self.message.body.has(tag::TRADE_DATE)
3127    }
3128
3129
3130
3131
3132    /// Sets `TradeOriginationDate`, Tag 229.
3133    pub fn set_trade_origination_date(&mut self, v: String) {
3134        self.message.body.set_field(tag::TRADE_ORIGINATION_DATE, FIXString::from(v));
3135    }
3136
3137    /// Gets `TradeOriginationDate`, Tag 229.
3138    pub fn get_trade_origination_date(&self) -> Result<String, MessageRejectErrorEnum> {
3139        let mut fld = field::TradeOriginationDateField::new(String::new());
3140        self.message.body.get_field(tag::TRADE_ORIGINATION_DATE, &mut fld.0)?;
3141        Ok(fld.value().to_string())
3142    }
3143
3144
3145    /// Returns true if `TradeOriginationDate` is present, Tag 229.
3146    pub fn has_trade_origination_date(&self) -> bool {
3147        self.message.body.has(tag::TRADE_ORIGINATION_DATE)
3148    }
3149
3150
3151
3152
3153    /// Sets `TransactTime`, Tag 60.
3154    pub fn set_transact_time(&mut self, v: Timestamp) {
3155        self.message.body.set_field(tag::TRANSACT_TIME, fixer::fix_utc_timestamp::FIXUTCTimestamp {
3156            time: v,
3157            precision: fixer::fix_utc_timestamp::TimestampPrecision::Millis,
3158        });
3159    }
3160
3161    /// Gets `TransactTime`, Tag 60.
3162    pub fn get_transact_time(&self) -> Result<Timestamp, MessageRejectErrorEnum> {
3163        let mut fld = field::TransactTimeField::new(Timestamp::UNIX_EPOCH);
3164        self.message.body.get_field(tag::TRANSACT_TIME, &mut fld.0)?;
3165        Ok(fld.value())
3166    }
3167
3168
3169    /// Returns true if `TransactTime` is present, Tag 60.
3170    pub fn has_transact_time(&self) -> bool {
3171        self.message.body.has(tag::TRANSACT_TIME)
3172    }
3173
3174
3175
3176
3177    /// Sets `Yield`, Tag 236.
3178    pub fn set_yield(&mut self, val: Decimal, scale: i32) {
3179        self.message.body.set_field(tag::YIELD, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
3180    }
3181
3182    /// Gets `Yield`, Tag 236.
3183    pub fn get_yield(&self) -> Result<Decimal, MessageRejectErrorEnum> {
3184        let mut fld = field::YieldField::new(Decimal::ZERO, 0);
3185        self.message.body.get_field(tag::YIELD, &mut fld.0)?;
3186        Ok(fld.value())
3187    }
3188
3189
3190    /// Returns true if `Yield` is present, Tag 236.
3191    pub fn has_yield(&self) -> bool {
3192        self.message.body.has(tag::YIELD)
3193    }
3194
3195
3196
3197
3198    /// Sets `YieldCalcDate`, Tag 701.
3199    pub fn set_yield_calc_date(&mut self, v: String) {
3200        self.message.body.set_field(tag::YIELD_CALC_DATE, FIXString::from(v));
3201    }
3202
3203    /// Gets `YieldCalcDate`, Tag 701.
3204    pub fn get_yield_calc_date(&self) -> Result<String, MessageRejectErrorEnum> {
3205        let mut fld = field::YieldCalcDateField::new(String::new());
3206        self.message.body.get_field(tag::YIELD_CALC_DATE, &mut fld.0)?;
3207        Ok(fld.value().to_string())
3208    }
3209
3210
3211    /// Returns true if `YieldCalcDate` is present, Tag 701.
3212    pub fn has_yield_calc_date(&self) -> bool {
3213        self.message.body.has(tag::YIELD_CALC_DATE)
3214    }
3215
3216
3217
3218
3219    /// Sets `YieldRedemptionDate`, Tag 696.
3220    pub fn set_yield_redemption_date(&mut self, v: String) {
3221        self.message.body.set_field(tag::YIELD_REDEMPTION_DATE, FIXString::from(v));
3222    }
3223
3224    /// Gets `YieldRedemptionDate`, Tag 696.
3225    pub fn get_yield_redemption_date(&self) -> Result<String, MessageRejectErrorEnum> {
3226        let mut fld = field::YieldRedemptionDateField::new(String::new());
3227        self.message.body.get_field(tag::YIELD_REDEMPTION_DATE, &mut fld.0)?;
3228        Ok(fld.value().to_string())
3229    }
3230
3231
3232    /// Returns true if `YieldRedemptionDate` is present, Tag 696.
3233    pub fn has_yield_redemption_date(&self) -> bool {
3234        self.message.body.has(tag::YIELD_REDEMPTION_DATE)
3235    }
3236
3237
3238
3239
3240    /// Sets `YieldRedemptionPrice`, Tag 697.
3241    pub fn set_yield_redemption_price(&mut self, val: Decimal, scale: i32) {
3242        self.message.body.set_field(tag::YIELD_REDEMPTION_PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
3243    }
3244
3245    /// Gets `YieldRedemptionPrice`, Tag 697.
3246    pub fn get_yield_redemption_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
3247        let mut fld = field::YieldRedemptionPriceField::new(Decimal::ZERO, 0);
3248        self.message.body.get_field(tag::YIELD_REDEMPTION_PRICE, &mut fld.0)?;
3249        Ok(fld.value())
3250    }
3251
3252
3253    /// Returns true if `YieldRedemptionPrice` is present, Tag 697.
3254    pub fn has_yield_redemption_price(&self) -> bool {
3255        self.message.body.has(tag::YIELD_REDEMPTION_PRICE)
3256    }
3257
3258
3259
3260
3261    /// Sets `YieldRedemptionPriceType`, Tag 698.
3262    pub fn set_yield_redemption_price_type(&mut self, v: isize) {
3263        self.message.body.set_field(tag::YIELD_REDEMPTION_PRICE_TYPE, fixer::fix_int::FIXInt::from(v));
3264    }
3265
3266    /// Gets `YieldRedemptionPriceType`, Tag 698.
3267    pub fn get_yield_redemption_price_type(&self) -> Result<isize, MessageRejectErrorEnum> {
3268        let mut fld = field::YieldRedemptionPriceTypeField::new(0);
3269        self.message.body.get_field(tag::YIELD_REDEMPTION_PRICE_TYPE, &mut fld.0)?;
3270        Ok(fld.value())
3271    }
3272
3273
3274    /// Returns true if `YieldRedemptionPriceType` is present, Tag 698.
3275    pub fn has_yield_redemption_price_type(&self) -> bool {
3276        self.message.body.has(tag::YIELD_REDEMPTION_PRICE_TYPE)
3277    }
3278
3279
3280
3281
3282    /// Sets `YieldType`, Tag 235.
3283    pub fn set_yield_type(&mut self, v: String) {
3284        self.message.body.set_field(tag::YIELD_TYPE, FIXString::from(v));
3285    }
3286
3287    /// Gets `YieldType`, Tag 235.
3288    pub fn get_yield_type(&self) -> Result<String, MessageRejectErrorEnum> {
3289        let mut fld = field::YieldTypeField::new(String::new());
3290        self.message.body.get_field(tag::YIELD_TYPE, &mut fld.0)?;
3291        Ok(fld.value().to_string())
3292    }
3293
3294
3295    /// Returns true if `YieldType` is present, Tag 235.
3296    pub fn has_yield_type(&self) -> bool {
3297        self.message.body.has(tag::YIELD_TYPE)
3298    }
3299
3300
3301}
3302
3303/// `RouteOut` is the callback type for routing `OrderCancelReplaceRequest` messages.
3304pub type RouteOut = fn(msg: OrderCancelReplaceRequest, session_id: SessionID) -> Result<(), MessageRejectErrorEnum>;
3305
3306/// Route type returned by the `route` function.
3307pub type Route = (&'static str, &'static str, Box<dyn Fn(&Message, SessionID) -> Result<(), MessageRejectErrorEnum> + Send>);
3308
3309/// Returns the begin string, message type, and route function for `OrderCancelReplaceRequest`.
3310pub fn route(router: RouteOut) -> Route {
3311    let r = move |msg: &Message, session_id: SessionID| -> Result<(), MessageRejectErrorEnum> {
3312        router(OrderCancelReplaceRequest::from_message(msg.clone()), session_id)
3313    };
3314    ("FIX.4.4", "G", Box::new(r))
3315}