Skip to main content

fixer_fix/fix50sp2/
order_status_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 crate::field;
16use crate::tag;
17
18/// `OrderStatusRequest` is the `fix50sp2` `OrderStatusRequest` type, `MsgType` = H.
19pub struct OrderStatusRequest {
20    pub message: Message,
21}
22
23impl OrderStatusRequest {
24    /// Creates a new `OrderStatusRequest` with required fields.
25    pub fn new(side: field::SideField) -> Self {
26        let mut msg = Message::new();
27        msg.header.set_field(tag::MSG_TYPE, FIXString::from("H".to_string()));
28
29        msg.body.set_field(tag::SIDE, side.0);
30
31        Self { message: msg }
32    }
33
34    /// Creates a `OrderStatusRequest` from an existing `Message`.
35    pub fn from_message(msg: Message) -> Self {
36        Self { message: msg }
37    }
38
39    /// Returns the underlying `Message`.
40    pub fn to_message(self) -> Message {
41        self.message
42    }
43
44
45
46
47    /// Sets `Account`, Tag 1.
48    pub fn set_account(&mut self, v: String) {
49        self.message.body.set_field(tag::ACCOUNT, FIXString::from(v));
50    }
51
52    /// Gets `Account`, Tag 1.
53    pub fn get_account(&self) -> Result<String, MessageRejectErrorEnum> {
54        let mut fld = field::AccountField::new(String::new());
55        self.message.body.get_field(tag::ACCOUNT, &mut fld.0)?;
56        Ok(fld.value().to_string())
57    }
58
59
60    /// Returns true if `Account` is present, Tag 1.
61    pub fn has_account(&self) -> bool {
62        self.message.body.has(tag::ACCOUNT)
63    }
64
65
66
67
68    /// Sets `AcctIDSource`, Tag 660.
69    pub fn set_acct_id_source(&mut self, v: isize) {
70        self.message.body.set_field(tag::ACCT_ID_SOURCE, fixer::fix_int::FIXInt::from(v));
71    }
72
73    /// Gets `AcctIDSource`, Tag 660.
74    pub fn get_acct_id_source(&self) -> Result<isize, MessageRejectErrorEnum> {
75        let mut fld = field::AcctIDSourceField::new(0);
76        self.message.body.get_field(tag::ACCT_ID_SOURCE, &mut fld.0)?;
77        Ok(fld.value())
78    }
79
80
81    /// Returns true if `AcctIDSource` is present, Tag 660.
82    pub fn has_acct_id_source(&self) -> bool {
83        self.message.body.has(tag::ACCT_ID_SOURCE)
84    }
85
86
87
88
89    /// Sets `AgreementCurrency`, Tag 918.
90    pub fn set_agreement_currency(&mut self, v: String) {
91        self.message.body.set_field(tag::AGREEMENT_CURRENCY, FIXString::from(v));
92    }
93
94    /// Gets `AgreementCurrency`, Tag 918.
95    pub fn get_agreement_currency(&self) -> Result<String, MessageRejectErrorEnum> {
96        let mut fld = field::AgreementCurrencyField::new(String::new());
97        self.message.body.get_field(tag::AGREEMENT_CURRENCY, &mut fld.0)?;
98        Ok(fld.value().to_string())
99    }
100
101
102    /// Returns true if `AgreementCurrency` is present, Tag 918.
103    pub fn has_agreement_currency(&self) -> bool {
104        self.message.body.has(tag::AGREEMENT_CURRENCY)
105    }
106
107
108
109
110    /// Sets `AgreementDate`, Tag 915.
111    pub fn set_agreement_date(&mut self, v: String) {
112        self.message.body.set_field(tag::AGREEMENT_DATE, FIXString::from(v));
113    }
114
115    /// Gets `AgreementDate`, Tag 915.
116    pub fn get_agreement_date(&self) -> Result<String, MessageRejectErrorEnum> {
117        let mut fld = field::AgreementDateField::new(String::new());
118        self.message.body.get_field(tag::AGREEMENT_DATE, &mut fld.0)?;
119        Ok(fld.value().to_string())
120    }
121
122
123    /// Returns true if `AgreementDate` is present, Tag 915.
124    pub fn has_agreement_date(&self) -> bool {
125        self.message.body.has(tag::AGREEMENT_DATE)
126    }
127
128
129
130
131    /// Sets `AgreementDesc`, Tag 913.
132    pub fn set_agreement_desc(&mut self, v: String) {
133        self.message.body.set_field(tag::AGREEMENT_DESC, FIXString::from(v));
134    }
135
136    /// Gets `AgreementDesc`, Tag 913.
137    pub fn get_agreement_desc(&self) -> Result<String, MessageRejectErrorEnum> {
138        let mut fld = field::AgreementDescField::new(String::new());
139        self.message.body.get_field(tag::AGREEMENT_DESC, &mut fld.0)?;
140        Ok(fld.value().to_string())
141    }
142
143
144    /// Returns true if `AgreementDesc` is present, Tag 913.
145    pub fn has_agreement_desc(&self) -> bool {
146        self.message.body.has(tag::AGREEMENT_DESC)
147    }
148
149
150
151
152    /// Sets `AgreementID`, Tag 914.
153    pub fn set_agreement_id(&mut self, v: String) {
154        self.message.body.set_field(tag::AGREEMENT_ID, FIXString::from(v));
155    }
156
157    /// Gets `AgreementID`, Tag 914.
158    pub fn get_agreement_id(&self) -> Result<String, MessageRejectErrorEnum> {
159        let mut fld = field::AgreementIDField::new(String::new());
160        self.message.body.get_field(tag::AGREEMENT_ID, &mut fld.0)?;
161        Ok(fld.value().to_string())
162    }
163
164
165    /// Returns true if `AgreementID` is present, Tag 914.
166    pub fn has_agreement_id(&self) -> bool {
167        self.message.body.has(tag::AGREEMENT_ID)
168    }
169
170
171
172
173    /// Sets `AttachmentPoint`, Tag 1457.
174    pub fn set_attachment_point(&mut self, val: Decimal, scale: i32) {
175        self.message.body.set_field(tag::ATTACHMENT_POINT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
176    }
177
178    /// Gets `AttachmentPoint`, Tag 1457.
179    pub fn get_attachment_point(&self) -> Result<Decimal, MessageRejectErrorEnum> {
180        let mut fld = field::AttachmentPointField::new(Decimal::ZERO, 0);
181        self.message.body.get_field(tag::ATTACHMENT_POINT, &mut fld.0)?;
182        Ok(fld.value())
183    }
184
185
186    /// Returns true if `AttachmentPoint` is present, Tag 1457.
187    pub fn has_attachment_point(&self) -> bool {
188        self.message.body.has(tag::ATTACHMENT_POINT)
189    }
190
191
192
193
194    /// Sets `CFICode`, Tag 461.
195    pub fn set_cfi_code(&mut self, v: String) {
196        self.message.body.set_field(tag::CFI_CODE, FIXString::from(v));
197    }
198
199    /// Gets `CFICode`, Tag 461.
200    pub fn get_cfi_code(&self) -> Result<String, MessageRejectErrorEnum> {
201        let mut fld = field::CFICodeField::new(String::new());
202        self.message.body.get_field(tag::CFI_CODE, &mut fld.0)?;
203        Ok(fld.value().to_string())
204    }
205
206
207    /// Returns true if `CFICode` is present, Tag 461.
208    pub fn has_cfi_code(&self) -> bool {
209        self.message.body.has(tag::CFI_CODE)
210    }
211
212
213
214
215    /// Sets `CPProgram`, Tag 875.
216    pub fn set_cp_program(&mut self, v: isize) {
217        self.message.body.set_field(tag::CP_PROGRAM, fixer::fix_int::FIXInt::from(v));
218    }
219
220    /// Gets `CPProgram`, Tag 875.
221    pub fn get_cp_program(&self) -> Result<isize, MessageRejectErrorEnum> {
222        let mut fld = field::CPProgramField::new(0);
223        self.message.body.get_field(tag::CP_PROGRAM, &mut fld.0)?;
224        Ok(fld.value())
225    }
226
227
228    /// Returns true if `CPProgram` is present, Tag 875.
229    pub fn has_cp_program(&self) -> bool {
230        self.message.body.has(tag::CP_PROGRAM)
231    }
232
233
234
235
236    /// Sets `CPRegType`, Tag 876.
237    pub fn set_cp_reg_type(&mut self, v: String) {
238        self.message.body.set_field(tag::CP_REG_TYPE, FIXString::from(v));
239    }
240
241    /// Gets `CPRegType`, Tag 876.
242    pub fn get_cp_reg_type(&self) -> Result<String, MessageRejectErrorEnum> {
243        let mut fld = field::CPRegTypeField::new(String::new());
244        self.message.body.get_field(tag::CP_REG_TYPE, &mut fld.0)?;
245        Ok(fld.value().to_string())
246    }
247
248
249    /// Returns true if `CPRegType` is present, Tag 876.
250    pub fn has_cp_reg_type(&self) -> bool {
251        self.message.body.has(tag::CP_REG_TYPE)
252    }
253
254
255
256
257    /// Sets `CapPrice`, Tag 1199.
258    pub fn set_cap_price(&mut self, val: Decimal, scale: i32) {
259        self.message.body.set_field(tag::CAP_PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
260    }
261
262    /// Gets `CapPrice`, Tag 1199.
263    pub fn get_cap_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
264        let mut fld = field::CapPriceField::new(Decimal::ZERO, 0);
265        self.message.body.get_field(tag::CAP_PRICE, &mut fld.0)?;
266        Ok(fld.value())
267    }
268
269
270    /// Returns true if `CapPrice` is present, Tag 1199.
271    pub fn has_cap_price(&self) -> bool {
272        self.message.body.has(tag::CAP_PRICE)
273    }
274
275
276
277
278    /// Sets `ClOrdID`, Tag 11.
279    pub fn set_cl_ord_id(&mut self, v: String) {
280        self.message.body.set_field(tag::CL_ORD_ID, FIXString::from(v));
281    }
282
283    /// Gets `ClOrdID`, Tag 11.
284    pub fn get_cl_ord_id(&self) -> Result<String, MessageRejectErrorEnum> {
285        let mut fld = field::ClOrdIDField::new(String::new());
286        self.message.body.get_field(tag::CL_ORD_ID, &mut fld.0)?;
287        Ok(fld.value().to_string())
288    }
289
290
291    /// Returns true if `ClOrdID` is present, Tag 11.
292    pub fn has_cl_ord_id(&self) -> bool {
293        self.message.body.has(tag::CL_ORD_ID)
294    }
295
296
297
298
299    /// Sets `ClOrdLinkID`, Tag 583.
300    pub fn set_cl_ord_link_id(&mut self, v: String) {
301        self.message.body.set_field(tag::CL_ORD_LINK_ID, FIXString::from(v));
302    }
303
304    /// Gets `ClOrdLinkID`, Tag 583.
305    pub fn get_cl_ord_link_id(&self) -> Result<String, MessageRejectErrorEnum> {
306        let mut fld = field::ClOrdLinkIDField::new(String::new());
307        self.message.body.get_field(tag::CL_ORD_LINK_ID, &mut fld.0)?;
308        Ok(fld.value().to_string())
309    }
310
311
312    /// Returns true if `ClOrdLinkID` is present, Tag 583.
313    pub fn has_cl_ord_link_id(&self) -> bool {
314        self.message.body.has(tag::CL_ORD_LINK_ID)
315    }
316
317
318
319
320    /// Sets `ContractMultiplier`, Tag 231.
321    pub fn set_contract_multiplier(&mut self, val: Decimal, scale: i32) {
322        self.message.body.set_field(tag::CONTRACT_MULTIPLIER, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
323    }
324
325    /// Gets `ContractMultiplier`, Tag 231.
326    pub fn get_contract_multiplier(&self) -> Result<Decimal, MessageRejectErrorEnum> {
327        let mut fld = field::ContractMultiplierField::new(Decimal::ZERO, 0);
328        self.message.body.get_field(tag::CONTRACT_MULTIPLIER, &mut fld.0)?;
329        Ok(fld.value())
330    }
331
332
333    /// Returns true if `ContractMultiplier` is present, Tag 231.
334    pub fn has_contract_multiplier(&self) -> bool {
335        self.message.body.has(tag::CONTRACT_MULTIPLIER)
336    }
337
338
339
340
341    /// Sets `ContractMultiplierUnit`, Tag 1435.
342    pub fn set_contract_multiplier_unit(&mut self, v: isize) {
343        self.message.body.set_field(tag::CONTRACT_MULTIPLIER_UNIT, fixer::fix_int::FIXInt::from(v));
344    }
345
346    /// Gets `ContractMultiplierUnit`, Tag 1435.
347    pub fn get_contract_multiplier_unit(&self) -> Result<isize, MessageRejectErrorEnum> {
348        let mut fld = field::ContractMultiplierUnitField::new(0);
349        self.message.body.get_field(tag::CONTRACT_MULTIPLIER_UNIT, &mut fld.0)?;
350        Ok(fld.value())
351    }
352
353
354    /// Returns true if `ContractMultiplierUnit` is present, Tag 1435.
355    pub fn has_contract_multiplier_unit(&self) -> bool {
356        self.message.body.has(tag::CONTRACT_MULTIPLIER_UNIT)
357    }
358
359
360
361
362    /// Sets `ContractSettlMonth`, Tag 667.
363    pub fn set_contract_settl_month(&mut self, v: String) {
364        self.message.body.set_field(tag::CONTRACT_SETTL_MONTH, FIXString::from(v));
365    }
366
367    /// Gets `ContractSettlMonth`, Tag 667.
368    pub fn get_contract_settl_month(&self) -> Result<String, MessageRejectErrorEnum> {
369        let mut fld = field::ContractSettlMonthField::new(String::new());
370        self.message.body.get_field(tag::CONTRACT_SETTL_MONTH, &mut fld.0)?;
371        Ok(fld.value().to_string())
372    }
373
374
375    /// Returns true if `ContractSettlMonth` is present, Tag 667.
376    pub fn has_contract_settl_month(&self) -> bool {
377        self.message.body.has(tag::CONTRACT_SETTL_MONTH)
378    }
379
380
381
382
383    /// Sets `CountryOfIssue`, Tag 470.
384    pub fn set_country_of_issue(&mut self, v: String) {
385        self.message.body.set_field(tag::COUNTRY_OF_ISSUE, FIXString::from(v));
386    }
387
388    /// Gets `CountryOfIssue`, Tag 470.
389    pub fn get_country_of_issue(&self) -> Result<String, MessageRejectErrorEnum> {
390        let mut fld = field::CountryOfIssueField::new(String::new());
391        self.message.body.get_field(tag::COUNTRY_OF_ISSUE, &mut fld.0)?;
392        Ok(fld.value().to_string())
393    }
394
395
396    /// Returns true if `CountryOfIssue` is present, Tag 470.
397    pub fn has_country_of_issue(&self) -> bool {
398        self.message.body.has(tag::COUNTRY_OF_ISSUE)
399    }
400
401
402
403
404    /// Sets `CouponPaymentDate`, Tag 224.
405    pub fn set_coupon_payment_date(&mut self, v: String) {
406        self.message.body.set_field(tag::COUPON_PAYMENT_DATE, FIXString::from(v));
407    }
408
409    /// Gets `CouponPaymentDate`, Tag 224.
410    pub fn get_coupon_payment_date(&self) -> Result<String, MessageRejectErrorEnum> {
411        let mut fld = field::CouponPaymentDateField::new(String::new());
412        self.message.body.get_field(tag::COUPON_PAYMENT_DATE, &mut fld.0)?;
413        Ok(fld.value().to_string())
414    }
415
416
417    /// Returns true if `CouponPaymentDate` is present, Tag 224.
418    pub fn has_coupon_payment_date(&self) -> bool {
419        self.message.body.has(tag::COUPON_PAYMENT_DATE)
420    }
421
422
423
424
425    /// Sets `CouponRate`, Tag 223.
426    pub fn set_coupon_rate(&mut self, val: Decimal, scale: i32) {
427        self.message.body.set_field(tag::COUPON_RATE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
428    }
429
430    /// Gets `CouponRate`, Tag 223.
431    pub fn get_coupon_rate(&self) -> Result<Decimal, MessageRejectErrorEnum> {
432        let mut fld = field::CouponRateField::new(Decimal::ZERO, 0);
433        self.message.body.get_field(tag::COUPON_RATE, &mut fld.0)?;
434        Ok(fld.value())
435    }
436
437
438    /// Returns true if `CouponRate` is present, Tag 223.
439    pub fn has_coupon_rate(&self) -> bool {
440        self.message.body.has(tag::COUPON_RATE)
441    }
442
443
444
445
446    /// Sets `CreditRating`, Tag 255.
447    pub fn set_credit_rating(&mut self, v: String) {
448        self.message.body.set_field(tag::CREDIT_RATING, FIXString::from(v));
449    }
450
451    /// Gets `CreditRating`, Tag 255.
452    pub fn get_credit_rating(&self) -> Result<String, MessageRejectErrorEnum> {
453        let mut fld = field::CreditRatingField::new(String::new());
454        self.message.body.get_field(tag::CREDIT_RATING, &mut fld.0)?;
455        Ok(fld.value().to_string())
456    }
457
458
459    /// Returns true if `CreditRating` is present, Tag 255.
460    pub fn has_credit_rating(&self) -> bool {
461        self.message.body.has(tag::CREDIT_RATING)
462    }
463
464
465
466
467    /// Sets `DatedDate`, Tag 873.
468    pub fn set_dated_date(&mut self, v: String) {
469        self.message.body.set_field(tag::DATED_DATE, FIXString::from(v));
470    }
471
472    /// Gets `DatedDate`, Tag 873.
473    pub fn get_dated_date(&self) -> Result<String, MessageRejectErrorEnum> {
474        let mut fld = field::DatedDateField::new(String::new());
475        self.message.body.get_field(tag::DATED_DATE, &mut fld.0)?;
476        Ok(fld.value().to_string())
477    }
478
479
480    /// Returns true if `DatedDate` is present, Tag 873.
481    pub fn has_dated_date(&self) -> bool {
482        self.message.body.has(tag::DATED_DATE)
483    }
484
485
486
487
488    /// Sets `DeliveryType`, Tag 919.
489    pub fn set_delivery_type(&mut self, v: isize) {
490        self.message.body.set_field(tag::DELIVERY_TYPE, fixer::fix_int::FIXInt::from(v));
491    }
492
493    /// Gets `DeliveryType`, Tag 919.
494    pub fn get_delivery_type(&self) -> Result<isize, MessageRejectErrorEnum> {
495        let mut fld = field::DeliveryTypeField::new(0);
496        self.message.body.get_field(tag::DELIVERY_TYPE, &mut fld.0)?;
497        Ok(fld.value())
498    }
499
500
501    /// Returns true if `DeliveryType` is present, Tag 919.
502    pub fn has_delivery_type(&self) -> bool {
503        self.message.body.has(tag::DELIVERY_TYPE)
504    }
505
506
507
508
509    /// Sets `DetachmentPoint`, Tag 1458.
510    pub fn set_detachment_point(&mut self, val: Decimal, scale: i32) {
511        self.message.body.set_field(tag::DETACHMENT_POINT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
512    }
513
514    /// Gets `DetachmentPoint`, Tag 1458.
515    pub fn get_detachment_point(&self) -> Result<Decimal, MessageRejectErrorEnum> {
516        let mut fld = field::DetachmentPointField::new(Decimal::ZERO, 0);
517        self.message.body.get_field(tag::DETACHMENT_POINT, &mut fld.0)?;
518        Ok(fld.value())
519    }
520
521
522    /// Returns true if `DetachmentPoint` is present, Tag 1458.
523    pub fn has_detachment_point(&self) -> bool {
524        self.message.body.has(tag::DETACHMENT_POINT)
525    }
526
527
528
529
530    /// Sets `EncodedIssuer`, Tag 349.
531    pub fn set_encoded_issuer(&mut self, v: String) {
532        self.message.body.set_field(tag::ENCODED_ISSUER, FIXString::from(v));
533    }
534
535    /// Gets `EncodedIssuer`, Tag 349.
536    pub fn get_encoded_issuer(&self) -> Result<String, MessageRejectErrorEnum> {
537        let mut fld = field::EncodedIssuerField::new(String::new());
538        self.message.body.get_field(tag::ENCODED_ISSUER, &mut fld.0)?;
539        Ok(fld.value().to_string())
540    }
541
542
543    /// Returns true if `EncodedIssuer` is present, Tag 349.
544    pub fn has_encoded_issuer(&self) -> bool {
545        self.message.body.has(tag::ENCODED_ISSUER)
546    }
547
548
549
550
551    /// Sets `EncodedIssuerLen`, Tag 348.
552    pub fn set_encoded_issuer_len(&mut self, v: isize) {
553        self.message.body.set_field(tag::ENCODED_ISSUER_LEN, fixer::fix_int::FIXInt::from(v));
554    }
555
556    /// Gets `EncodedIssuerLen`, Tag 348.
557    pub fn get_encoded_issuer_len(&self) -> Result<isize, MessageRejectErrorEnum> {
558        let mut fld = field::EncodedIssuerLenField::new(0);
559        self.message.body.get_field(tag::ENCODED_ISSUER_LEN, &mut fld.0)?;
560        Ok(fld.value())
561    }
562
563
564    /// Returns true if `EncodedIssuerLen` is present, Tag 348.
565    pub fn has_encoded_issuer_len(&self) -> bool {
566        self.message.body.has(tag::ENCODED_ISSUER_LEN)
567    }
568
569
570
571
572    /// Sets `EncodedSecurityDesc`, Tag 351.
573    pub fn set_encoded_security_desc(&mut self, v: String) {
574        self.message.body.set_field(tag::ENCODED_SECURITY_DESC, FIXString::from(v));
575    }
576
577    /// Gets `EncodedSecurityDesc`, Tag 351.
578    pub fn get_encoded_security_desc(&self) -> Result<String, MessageRejectErrorEnum> {
579        let mut fld = field::EncodedSecurityDescField::new(String::new());
580        self.message.body.get_field(tag::ENCODED_SECURITY_DESC, &mut fld.0)?;
581        Ok(fld.value().to_string())
582    }
583
584
585    /// Returns true if `EncodedSecurityDesc` is present, Tag 351.
586    pub fn has_encoded_security_desc(&self) -> bool {
587        self.message.body.has(tag::ENCODED_SECURITY_DESC)
588    }
589
590
591
592
593    /// Sets `EncodedSecurityDescLen`, Tag 350.
594    pub fn set_encoded_security_desc_len(&mut self, v: isize) {
595        self.message.body.set_field(tag::ENCODED_SECURITY_DESC_LEN, fixer::fix_int::FIXInt::from(v));
596    }
597
598    /// Gets `EncodedSecurityDescLen`, Tag 350.
599    pub fn get_encoded_security_desc_len(&self) -> Result<isize, MessageRejectErrorEnum> {
600        let mut fld = field::EncodedSecurityDescLenField::new(0);
601        self.message.body.get_field(tag::ENCODED_SECURITY_DESC_LEN, &mut fld.0)?;
602        Ok(fld.value())
603    }
604
605
606    /// Returns true if `EncodedSecurityDescLen` is present, Tag 350.
607    pub fn has_encoded_security_desc_len(&self) -> bool {
608        self.message.body.has(tag::ENCODED_SECURITY_DESC_LEN)
609    }
610
611
612
613
614    /// Sets `EndDate`, Tag 917.
615    pub fn set_end_date(&mut self, v: String) {
616        self.message.body.set_field(tag::END_DATE, FIXString::from(v));
617    }
618
619    /// Gets `EndDate`, Tag 917.
620    pub fn get_end_date(&self) -> Result<String, MessageRejectErrorEnum> {
621        let mut fld = field::EndDateField::new(String::new());
622        self.message.body.get_field(tag::END_DATE, &mut fld.0)?;
623        Ok(fld.value().to_string())
624    }
625
626
627    /// Returns true if `EndDate` is present, Tag 917.
628    pub fn has_end_date(&self) -> bool {
629        self.message.body.has(tag::END_DATE)
630    }
631
632
633
634
635    /// Sets `ExerciseStyle`, Tag 1194.
636    pub fn set_exercise_style(&mut self, v: isize) {
637        self.message.body.set_field(tag::EXERCISE_STYLE, fixer::fix_int::FIXInt::from(v));
638    }
639
640    /// Gets `ExerciseStyle`, Tag 1194.
641    pub fn get_exercise_style(&self) -> Result<isize, MessageRejectErrorEnum> {
642        let mut fld = field::ExerciseStyleField::new(0);
643        self.message.body.get_field(tag::EXERCISE_STYLE, &mut fld.0)?;
644        Ok(fld.value())
645    }
646
647
648    /// Returns true if `ExerciseStyle` is present, Tag 1194.
649    pub fn has_exercise_style(&self) -> bool {
650        self.message.body.has(tag::EXERCISE_STYLE)
651    }
652
653
654
655
656    /// Sets `Factor`, Tag 228.
657    pub fn set_factor(&mut self, val: Decimal, scale: i32) {
658        self.message.body.set_field(tag::FACTOR, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
659    }
660
661    /// Gets `Factor`, Tag 228.
662    pub fn get_factor(&self) -> Result<Decimal, MessageRejectErrorEnum> {
663        let mut fld = field::FactorField::new(Decimal::ZERO, 0);
664        self.message.body.get_field(tag::FACTOR, &mut fld.0)?;
665        Ok(fld.value())
666    }
667
668
669    /// Returns true if `Factor` is present, Tag 228.
670    pub fn has_factor(&self) -> bool {
671        self.message.body.has(tag::FACTOR)
672    }
673
674
675
676
677    /// Sets `FlexProductEligibilityIndicator`, Tag 1242.
678    pub fn set_flex_product_eligibility_indicator(&mut self, v: bool) {
679        self.message.body.set_field(tag::FLEX_PRODUCT_ELIGIBILITY_INDICATOR, fixer::fix_boolean::FIXBoolean::from(v));
680    }
681
682    /// Gets `FlexProductEligibilityIndicator`, Tag 1242.
683    pub fn get_flex_product_eligibility_indicator(&self) -> Result<bool, MessageRejectErrorEnum> {
684        let mut fld = field::FlexProductEligibilityIndicatorField::new(false);
685        self.message.body.get_field(tag::FLEX_PRODUCT_ELIGIBILITY_INDICATOR, &mut fld.0)?;
686        Ok(fld.value())
687    }
688
689
690    /// Returns true if `FlexProductEligibilityIndicator` is present, Tag 1242.
691    pub fn has_flex_product_eligibility_indicator(&self) -> bool {
692        self.message.body.has(tag::FLEX_PRODUCT_ELIGIBILITY_INDICATOR)
693    }
694
695
696
697
698    /// Sets `FlexibleIndicator`, Tag 1244.
699    pub fn set_flexible_indicator(&mut self, v: bool) {
700        self.message.body.set_field(tag::FLEXIBLE_INDICATOR, fixer::fix_boolean::FIXBoolean::from(v));
701    }
702
703    /// Gets `FlexibleIndicator`, Tag 1244.
704    pub fn get_flexible_indicator(&self) -> Result<bool, MessageRejectErrorEnum> {
705        let mut fld = field::FlexibleIndicatorField::new(false);
706        self.message.body.get_field(tag::FLEXIBLE_INDICATOR, &mut fld.0)?;
707        Ok(fld.value())
708    }
709
710
711    /// Returns true if `FlexibleIndicator` is present, Tag 1244.
712    pub fn has_flexible_indicator(&self) -> bool {
713        self.message.body.has(tag::FLEXIBLE_INDICATOR)
714    }
715
716
717
718
719    /// Sets `FloorPrice`, Tag 1200.
720    pub fn set_floor_price(&mut self, val: Decimal, scale: i32) {
721        self.message.body.set_field(tag::FLOOR_PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
722    }
723
724    /// Gets `FloorPrice`, Tag 1200.
725    pub fn get_floor_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
726        let mut fld = field::FloorPriceField::new(Decimal::ZERO, 0);
727        self.message.body.get_field(tag::FLOOR_PRICE, &mut fld.0)?;
728        Ok(fld.value())
729    }
730
731
732    /// Returns true if `FloorPrice` is present, Tag 1200.
733    pub fn has_floor_price(&self) -> bool {
734        self.message.body.has(tag::FLOOR_PRICE)
735    }
736
737
738
739
740    /// Sets `FlowScheduleType`, Tag 1439.
741    pub fn set_flow_schedule_type(&mut self, v: isize) {
742        self.message.body.set_field(tag::FLOW_SCHEDULE_TYPE, fixer::fix_int::FIXInt::from(v));
743    }
744
745    /// Gets `FlowScheduleType`, Tag 1439.
746    pub fn get_flow_schedule_type(&self) -> Result<isize, MessageRejectErrorEnum> {
747        let mut fld = field::FlowScheduleTypeField::new(0);
748        self.message.body.get_field(tag::FLOW_SCHEDULE_TYPE, &mut fld.0)?;
749        Ok(fld.value())
750    }
751
752
753    /// Returns true if `FlowScheduleType` is present, Tag 1439.
754    pub fn has_flow_schedule_type(&self) -> bool {
755        self.message.body.has(tag::FLOW_SCHEDULE_TYPE)
756    }
757
758
759
760
761    /// Sets `InstrRegistry`, Tag 543.
762    pub fn set_instr_registry(&mut self, v: String) {
763        self.message.body.set_field(tag::INSTR_REGISTRY, FIXString::from(v));
764    }
765
766    /// Gets `InstrRegistry`, Tag 543.
767    pub fn get_instr_registry(&self) -> Result<String, MessageRejectErrorEnum> {
768        let mut fld = field::InstrRegistryField::new(String::new());
769        self.message.body.get_field(tag::INSTR_REGISTRY, &mut fld.0)?;
770        Ok(fld.value().to_string())
771    }
772
773
774    /// Returns true if `InstrRegistry` is present, Tag 543.
775    pub fn has_instr_registry(&self) -> bool {
776        self.message.body.has(tag::INSTR_REGISTRY)
777    }
778
779
780
781
782    /// Sets `InstrmtAssignmentMethod`, Tag 1049.
783    pub fn set_instrmt_assignment_method(&mut self, v: String) {
784        self.message.body.set_field(tag::INSTRMT_ASSIGNMENT_METHOD, FIXString::from(v));
785    }
786
787    /// Gets `InstrmtAssignmentMethod`, Tag 1049.
788    pub fn get_instrmt_assignment_method(&self) -> Result<String, MessageRejectErrorEnum> {
789        let mut fld = field::InstrmtAssignmentMethodField::new(String::new());
790        self.message.body.get_field(tag::INSTRMT_ASSIGNMENT_METHOD, &mut fld.0)?;
791        Ok(fld.value().to_string())
792    }
793
794
795    /// Returns true if `InstrmtAssignmentMethod` is present, Tag 1049.
796    pub fn has_instrmt_assignment_method(&self) -> bool {
797        self.message.body.has(tag::INSTRMT_ASSIGNMENT_METHOD)
798    }
799
800
801
802
803    /// Sets `InterestAccrualDate`, Tag 874.
804    pub fn set_interest_accrual_date(&mut self, v: String) {
805        self.message.body.set_field(tag::INTEREST_ACCRUAL_DATE, FIXString::from(v));
806    }
807
808    /// Gets `InterestAccrualDate`, Tag 874.
809    pub fn get_interest_accrual_date(&self) -> Result<String, MessageRejectErrorEnum> {
810        let mut fld = field::InterestAccrualDateField::new(String::new());
811        self.message.body.get_field(tag::INTEREST_ACCRUAL_DATE, &mut fld.0)?;
812        Ok(fld.value().to_string())
813    }
814
815
816    /// Returns true if `InterestAccrualDate` is present, Tag 874.
817    pub fn has_interest_accrual_date(&self) -> bool {
818        self.message.body.has(tag::INTEREST_ACCRUAL_DATE)
819    }
820
821
822
823
824    /// Sets `IssueDate`, Tag 225.
825    pub fn set_issue_date(&mut self, v: String) {
826        self.message.body.set_field(tag::ISSUE_DATE, FIXString::from(v));
827    }
828
829    /// Gets `IssueDate`, Tag 225.
830    pub fn get_issue_date(&self) -> Result<String, MessageRejectErrorEnum> {
831        let mut fld = field::IssueDateField::new(String::new());
832        self.message.body.get_field(tag::ISSUE_DATE, &mut fld.0)?;
833        Ok(fld.value().to_string())
834    }
835
836
837    /// Returns true if `IssueDate` is present, Tag 225.
838    pub fn has_issue_date(&self) -> bool {
839        self.message.body.has(tag::ISSUE_DATE)
840    }
841
842
843
844
845    /// Sets `Issuer`, Tag 106.
846    pub fn set_issuer(&mut self, v: String) {
847        self.message.body.set_field(tag::ISSUER, FIXString::from(v));
848    }
849
850    /// Gets `Issuer`, Tag 106.
851    pub fn get_issuer(&self) -> Result<String, MessageRejectErrorEnum> {
852        let mut fld = field::IssuerField::new(String::new());
853        self.message.body.get_field(tag::ISSUER, &mut fld.0)?;
854        Ok(fld.value().to_string())
855    }
856
857
858    /// Returns true if `Issuer` is present, Tag 106.
859    pub fn has_issuer(&self) -> bool {
860        self.message.body.has(tag::ISSUER)
861    }
862
863
864
865
866    /// Sets `ListMethod`, Tag 1198.
867    pub fn set_list_method(&mut self, v: isize) {
868        self.message.body.set_field(tag::LIST_METHOD, fixer::fix_int::FIXInt::from(v));
869    }
870
871    /// Gets `ListMethod`, Tag 1198.
872    pub fn get_list_method(&self) -> Result<isize, MessageRejectErrorEnum> {
873        let mut fld = field::ListMethodField::new(0);
874        self.message.body.get_field(tag::LIST_METHOD, &mut fld.0)?;
875        Ok(fld.value())
876    }
877
878
879    /// Returns true if `ListMethod` is present, Tag 1198.
880    pub fn has_list_method(&self) -> bool {
881        self.message.body.has(tag::LIST_METHOD)
882    }
883
884
885
886
887    /// Sets `LocaleOfIssue`, Tag 472.
888    pub fn set_locale_of_issue(&mut self, v: String) {
889        self.message.body.set_field(tag::LOCALE_OF_ISSUE, FIXString::from(v));
890    }
891
892    /// Gets `LocaleOfIssue`, Tag 472.
893    pub fn get_locale_of_issue(&self) -> Result<String, MessageRejectErrorEnum> {
894        let mut fld = field::LocaleOfIssueField::new(String::new());
895        self.message.body.get_field(tag::LOCALE_OF_ISSUE, &mut fld.0)?;
896        Ok(fld.value().to_string())
897    }
898
899
900    /// Returns true if `LocaleOfIssue` is present, Tag 472.
901    pub fn has_locale_of_issue(&self) -> bool {
902        self.message.body.has(tag::LOCALE_OF_ISSUE)
903    }
904
905
906
907
908    /// Sets `MarginRatio`, Tag 898.
909    pub fn set_margin_ratio(&mut self, val: Decimal, scale: i32) {
910        self.message.body.set_field(tag::MARGIN_RATIO, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
911    }
912
913    /// Gets `MarginRatio`, Tag 898.
914    pub fn get_margin_ratio(&self) -> Result<Decimal, MessageRejectErrorEnum> {
915        let mut fld = field::MarginRatioField::new(Decimal::ZERO, 0);
916        self.message.body.get_field(tag::MARGIN_RATIO, &mut fld.0)?;
917        Ok(fld.value())
918    }
919
920
921    /// Returns true if `MarginRatio` is present, Tag 898.
922    pub fn has_margin_ratio(&self) -> bool {
923        self.message.body.has(tag::MARGIN_RATIO)
924    }
925
926
927
928
929    /// Sets `MaturityDate`, Tag 541.
930    pub fn set_maturity_date(&mut self, v: String) {
931        self.message.body.set_field(tag::MATURITY_DATE, FIXString::from(v));
932    }
933
934    /// Gets `MaturityDate`, Tag 541.
935    pub fn get_maturity_date(&self) -> Result<String, MessageRejectErrorEnum> {
936        let mut fld = field::MaturityDateField::new(String::new());
937        self.message.body.get_field(tag::MATURITY_DATE, &mut fld.0)?;
938        Ok(fld.value().to_string())
939    }
940
941
942    /// Returns true if `MaturityDate` is present, Tag 541.
943    pub fn has_maturity_date(&self) -> bool {
944        self.message.body.has(tag::MATURITY_DATE)
945    }
946
947
948
949
950    /// Sets `MaturityMonthYear`, Tag 200.
951    pub fn set_maturity_month_year(&mut self, v: String) {
952        self.message.body.set_field(tag::MATURITY_MONTH_YEAR, FIXString::from(v));
953    }
954
955    /// Gets `MaturityMonthYear`, Tag 200.
956    pub fn get_maturity_month_year(&self) -> Result<String, MessageRejectErrorEnum> {
957        let mut fld = field::MaturityMonthYearField::new(String::new());
958        self.message.body.get_field(tag::MATURITY_MONTH_YEAR, &mut fld.0)?;
959        Ok(fld.value().to_string())
960    }
961
962
963    /// Returns true if `MaturityMonthYear` is present, Tag 200.
964    pub fn has_maturity_month_year(&self) -> bool {
965        self.message.body.has(tag::MATURITY_MONTH_YEAR)
966    }
967
968
969
970
971    /// Sets `MaturityTime`, Tag 1079.
972    pub fn set_maturity_time(&mut self, v: String) {
973        self.message.body.set_field(tag::MATURITY_TIME, FIXString::from(v));
974    }
975
976    /// Gets `MaturityTime`, Tag 1079.
977    pub fn get_maturity_time(&self) -> Result<String, MessageRejectErrorEnum> {
978        let mut fld = field::MaturityTimeField::new(String::new());
979        self.message.body.get_field(tag::MATURITY_TIME, &mut fld.0)?;
980        Ok(fld.value().to_string())
981    }
982
983
984    /// Returns true if `MaturityTime` is present, Tag 1079.
985    pub fn has_maturity_time(&self) -> bool {
986        self.message.body.has(tag::MATURITY_TIME)
987    }
988
989
990
991
992    /// Sets `MinPriceIncrement`, Tag 969.
993    pub fn set_min_price_increment(&mut self, val: Decimal, scale: i32) {
994        self.message.body.set_field(tag::MIN_PRICE_INCREMENT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
995    }
996
997    /// Gets `MinPriceIncrement`, Tag 969.
998    pub fn get_min_price_increment(&self) -> Result<Decimal, MessageRejectErrorEnum> {
999        let mut fld = field::MinPriceIncrementField::new(Decimal::ZERO, 0);
1000        self.message.body.get_field(tag::MIN_PRICE_INCREMENT, &mut fld.0)?;
1001        Ok(fld.value())
1002    }
1003
1004
1005    /// Returns true if `MinPriceIncrement` is present, Tag 969.
1006    pub fn has_min_price_increment(&self) -> bool {
1007        self.message.body.has(tag::MIN_PRICE_INCREMENT)
1008    }
1009
1010
1011
1012
1013    /// Sets `MinPriceIncrementAmount`, Tag 1146.
1014    pub fn set_min_price_increment_amount(&mut self, val: Decimal, scale: i32) {
1015        self.message.body.set_field(tag::MIN_PRICE_INCREMENT_AMOUNT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1016    }
1017
1018    /// Gets `MinPriceIncrementAmount`, Tag 1146.
1019    pub fn get_min_price_increment_amount(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1020        let mut fld = field::MinPriceIncrementAmountField::new(Decimal::ZERO, 0);
1021        self.message.body.get_field(tag::MIN_PRICE_INCREMENT_AMOUNT, &mut fld.0)?;
1022        Ok(fld.value())
1023    }
1024
1025
1026    /// Returns true if `MinPriceIncrementAmount` is present, Tag 1146.
1027    pub fn has_min_price_increment_amount(&self) -> bool {
1028        self.message.body.has(tag::MIN_PRICE_INCREMENT_AMOUNT)
1029    }
1030
1031
1032
1033
1034    /// Sets `NTPositionLimit`, Tag 971.
1035    pub fn set_nt_position_limit(&mut self, v: isize) {
1036        self.message.body.set_field(tag::NT_POSITION_LIMIT, fixer::fix_int::FIXInt::from(v));
1037    }
1038
1039    /// Gets `NTPositionLimit`, Tag 971.
1040    pub fn get_nt_position_limit(&self) -> Result<isize, MessageRejectErrorEnum> {
1041        let mut fld = field::NTPositionLimitField::new(0);
1042        self.message.body.get_field(tag::NT_POSITION_LIMIT, &mut fld.0)?;
1043        Ok(fld.value())
1044    }
1045
1046
1047    /// Returns true if `NTPositionLimit` is present, Tag 971.
1048    pub fn has_nt_position_limit(&self) -> bool {
1049        self.message.body.has(tag::NT_POSITION_LIMIT)
1050    }
1051
1052
1053
1054
1055    /// Sets `NoComplexEvents`, Tag 1483.
1056    pub fn set_no_complex_events(&mut self, v: isize) {
1057        self.message.body.set_field(tag::NO_COMPLEX_EVENTS, fixer::fix_int::FIXInt::from(v));
1058    }
1059
1060    /// Gets `NoComplexEvents`, Tag 1483.
1061    pub fn get_no_complex_events(&self) -> Result<isize, MessageRejectErrorEnum> {
1062        let mut fld = field::NoComplexEventsField::new(0);
1063        self.message.body.get_field(tag::NO_COMPLEX_EVENTS, &mut fld.0)?;
1064        Ok(fld.value())
1065    }
1066
1067
1068    /// Returns true if `NoComplexEvents` is present, Tag 1483.
1069    pub fn has_no_complex_events(&self) -> bool {
1070        self.message.body.has(tag::NO_COMPLEX_EVENTS)
1071    }
1072
1073
1074
1075
1076    /// Sets `NoEvents`, Tag 864.
1077    pub fn set_no_events(&mut self, v: isize) {
1078        self.message.body.set_field(tag::NO_EVENTS, fixer::fix_int::FIXInt::from(v));
1079    }
1080
1081    /// Gets `NoEvents`, Tag 864.
1082    pub fn get_no_events(&self) -> Result<isize, MessageRejectErrorEnum> {
1083        let mut fld = field::NoEventsField::new(0);
1084        self.message.body.get_field(tag::NO_EVENTS, &mut fld.0)?;
1085        Ok(fld.value())
1086    }
1087
1088
1089    /// Returns true if `NoEvents` is present, Tag 864.
1090    pub fn has_no_events(&self) -> bool {
1091        self.message.body.has(tag::NO_EVENTS)
1092    }
1093
1094
1095
1096
1097    /// Sets `NoInstrumentParties`, Tag 1018.
1098    pub fn set_no_instrument_parties(&mut self, v: isize) {
1099        self.message.body.set_field(tag::NO_INSTRUMENT_PARTIES, fixer::fix_int::FIXInt::from(v));
1100    }
1101
1102    /// Gets `NoInstrumentParties`, Tag 1018.
1103    pub fn get_no_instrument_parties(&self) -> Result<isize, MessageRejectErrorEnum> {
1104        let mut fld = field::NoInstrumentPartiesField::new(0);
1105        self.message.body.get_field(tag::NO_INSTRUMENT_PARTIES, &mut fld.0)?;
1106        Ok(fld.value())
1107    }
1108
1109
1110    /// Returns true if `NoInstrumentParties` is present, Tag 1018.
1111    pub fn has_no_instrument_parties(&self) -> bool {
1112        self.message.body.has(tag::NO_INSTRUMENT_PARTIES)
1113    }
1114
1115
1116
1117
1118    /// Sets `NoPartyIDs`, Tag 453.
1119    pub fn set_no_party_i_ds(&mut self, v: isize) {
1120        self.message.body.set_field(tag::NO_PARTY_I_DS, fixer::fix_int::FIXInt::from(v));
1121    }
1122
1123    /// Gets `NoPartyIDs`, Tag 453.
1124    pub fn get_no_party_i_ds(&self) -> Result<isize, MessageRejectErrorEnum> {
1125        let mut fld = field::NoPartyIDsField::new(0);
1126        self.message.body.get_field(tag::NO_PARTY_I_DS, &mut fld.0)?;
1127        Ok(fld.value())
1128    }
1129
1130
1131    /// Returns true if `NoPartyIDs` is present, Tag 453.
1132    pub fn has_no_party_i_ds(&self) -> bool {
1133        self.message.body.has(tag::NO_PARTY_I_DS)
1134    }
1135
1136
1137
1138
1139    /// Sets `NoSecurityAltID`, Tag 454.
1140    pub fn set_no_security_alt_id(&mut self, v: isize) {
1141        self.message.body.set_field(tag::NO_SECURITY_ALT_ID, fixer::fix_int::FIXInt::from(v));
1142    }
1143
1144    /// Gets `NoSecurityAltID`, Tag 454.
1145    pub fn get_no_security_alt_id(&self) -> Result<isize, MessageRejectErrorEnum> {
1146        let mut fld = field::NoSecurityAltIDField::new(0);
1147        self.message.body.get_field(tag::NO_SECURITY_ALT_ID, &mut fld.0)?;
1148        Ok(fld.value())
1149    }
1150
1151
1152    /// Returns true if `NoSecurityAltID` is present, Tag 454.
1153    pub fn has_no_security_alt_id(&self) -> bool {
1154        self.message.body.has(tag::NO_SECURITY_ALT_ID)
1155    }
1156
1157
1158
1159
1160    /// Sets `NoUnderlyings`, Tag 711.
1161    pub fn set_no_underlyings(&mut self, v: isize) {
1162        self.message.body.set_field(tag::NO_UNDERLYINGS, fixer::fix_int::FIXInt::from(v));
1163    }
1164
1165    /// Gets `NoUnderlyings`, Tag 711.
1166    pub fn get_no_underlyings(&self) -> Result<isize, MessageRejectErrorEnum> {
1167        let mut fld = field::NoUnderlyingsField::new(0);
1168        self.message.body.get_field(tag::NO_UNDERLYINGS, &mut fld.0)?;
1169        Ok(fld.value())
1170    }
1171
1172
1173    /// Returns true if `NoUnderlyings` is present, Tag 711.
1174    pub fn has_no_underlyings(&self) -> bool {
1175        self.message.body.has(tag::NO_UNDERLYINGS)
1176    }
1177
1178
1179
1180
1181    /// Sets `NotionalPercentageOutstanding`, Tag 1451.
1182    pub fn set_notional_percentage_outstanding(&mut self, val: Decimal, scale: i32) {
1183        self.message.body.set_field(tag::NOTIONAL_PERCENTAGE_OUTSTANDING, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1184    }
1185
1186    /// Gets `NotionalPercentageOutstanding`, Tag 1451.
1187    pub fn get_notional_percentage_outstanding(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1188        let mut fld = field::NotionalPercentageOutstandingField::new(Decimal::ZERO, 0);
1189        self.message.body.get_field(tag::NOTIONAL_PERCENTAGE_OUTSTANDING, &mut fld.0)?;
1190        Ok(fld.value())
1191    }
1192
1193
1194    /// Returns true if `NotionalPercentageOutstanding` is present, Tag 1451.
1195    pub fn has_notional_percentage_outstanding(&self) -> bool {
1196        self.message.body.has(tag::NOTIONAL_PERCENTAGE_OUTSTANDING)
1197    }
1198
1199
1200
1201
1202    /// Sets `OptAttribute`, Tag 206.
1203    pub fn set_opt_attribute(&mut self, v: String) {
1204        self.message.body.set_field(tag::OPT_ATTRIBUTE, FIXString::from(v));
1205    }
1206
1207    /// Gets `OptAttribute`, Tag 206.
1208    pub fn get_opt_attribute(&self) -> Result<String, MessageRejectErrorEnum> {
1209        let mut fld = field::OptAttributeField::new(String::new());
1210        self.message.body.get_field(tag::OPT_ATTRIBUTE, &mut fld.0)?;
1211        Ok(fld.value().to_string())
1212    }
1213
1214
1215    /// Returns true if `OptAttribute` is present, Tag 206.
1216    pub fn has_opt_attribute(&self) -> bool {
1217        self.message.body.has(tag::OPT_ATTRIBUTE)
1218    }
1219
1220
1221
1222
1223    /// Sets `OptPayoutAmount`, Tag 1195.
1224    pub fn set_opt_payout_amount(&mut self, val: Decimal, scale: i32) {
1225        self.message.body.set_field(tag::OPT_PAYOUT_AMOUNT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1226    }
1227
1228    /// Gets `OptPayoutAmount`, Tag 1195.
1229    pub fn get_opt_payout_amount(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1230        let mut fld = field::OptPayoutAmountField::new(Decimal::ZERO, 0);
1231        self.message.body.get_field(tag::OPT_PAYOUT_AMOUNT, &mut fld.0)?;
1232        Ok(fld.value())
1233    }
1234
1235
1236    /// Returns true if `OptPayoutAmount` is present, Tag 1195.
1237    pub fn has_opt_payout_amount(&self) -> bool {
1238        self.message.body.has(tag::OPT_PAYOUT_AMOUNT)
1239    }
1240
1241
1242
1243
1244    /// Sets `OptPayoutType`, Tag 1482.
1245    pub fn set_opt_payout_type(&mut self, v: isize) {
1246        self.message.body.set_field(tag::OPT_PAYOUT_TYPE, fixer::fix_int::FIXInt::from(v));
1247    }
1248
1249    /// Gets `OptPayoutType`, Tag 1482.
1250    pub fn get_opt_payout_type(&self) -> Result<isize, MessageRejectErrorEnum> {
1251        let mut fld = field::OptPayoutTypeField::new(0);
1252        self.message.body.get_field(tag::OPT_PAYOUT_TYPE, &mut fld.0)?;
1253        Ok(fld.value())
1254    }
1255
1256
1257    /// Returns true if `OptPayoutType` is present, Tag 1482.
1258    pub fn has_opt_payout_type(&self) -> bool {
1259        self.message.body.has(tag::OPT_PAYOUT_TYPE)
1260    }
1261
1262
1263
1264
1265    /// Sets `OrdStatusReqID`, Tag 790.
1266    pub fn set_ord_status_req_id(&mut self, v: String) {
1267        self.message.body.set_field(tag::ORD_STATUS_REQ_ID, FIXString::from(v));
1268    }
1269
1270    /// Gets `OrdStatusReqID`, Tag 790.
1271    pub fn get_ord_status_req_id(&self) -> Result<String, MessageRejectErrorEnum> {
1272        let mut fld = field::OrdStatusReqIDField::new(String::new());
1273        self.message.body.get_field(tag::ORD_STATUS_REQ_ID, &mut fld.0)?;
1274        Ok(fld.value().to_string())
1275    }
1276
1277
1278    /// Returns true if `OrdStatusReqID` is present, Tag 790.
1279    pub fn has_ord_status_req_id(&self) -> bool {
1280        self.message.body.has(tag::ORD_STATUS_REQ_ID)
1281    }
1282
1283
1284
1285
1286    /// Sets `OrderID`, Tag 37.
1287    pub fn set_order_id(&mut self, v: String) {
1288        self.message.body.set_field(tag::ORDER_ID, FIXString::from(v));
1289    }
1290
1291    /// Gets `OrderID`, Tag 37.
1292    pub fn get_order_id(&self) -> Result<String, MessageRejectErrorEnum> {
1293        let mut fld = field::OrderIDField::new(String::new());
1294        self.message.body.get_field(tag::ORDER_ID, &mut fld.0)?;
1295        Ok(fld.value().to_string())
1296    }
1297
1298
1299    /// Returns true if `OrderID` is present, Tag 37.
1300    pub fn has_order_id(&self) -> bool {
1301        self.message.body.has(tag::ORDER_ID)
1302    }
1303
1304
1305
1306
1307    /// Sets `OriginalNotionalPercentageOutstanding`, Tag 1452.
1308    pub fn set_original_notional_percentage_outstanding(&mut self, val: Decimal, scale: i32) {
1309        self.message.body.set_field(tag::ORIGINAL_NOTIONAL_PERCENTAGE_OUTSTANDING, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1310    }
1311
1312    /// Gets `OriginalNotionalPercentageOutstanding`, Tag 1452.
1313    pub fn get_original_notional_percentage_outstanding(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1314        let mut fld = field::OriginalNotionalPercentageOutstandingField::new(Decimal::ZERO, 0);
1315        self.message.body.get_field(tag::ORIGINAL_NOTIONAL_PERCENTAGE_OUTSTANDING, &mut fld.0)?;
1316        Ok(fld.value())
1317    }
1318
1319
1320    /// Returns true if `OriginalNotionalPercentageOutstanding` is present, Tag 1452.
1321    pub fn has_original_notional_percentage_outstanding(&self) -> bool {
1322        self.message.body.has(tag::ORIGINAL_NOTIONAL_PERCENTAGE_OUTSTANDING)
1323    }
1324
1325
1326
1327
1328    /// Sets `Pool`, Tag 691.
1329    pub fn set_pool(&mut self, v: String) {
1330        self.message.body.set_field(tag::POOL, FIXString::from(v));
1331    }
1332
1333    /// Gets `Pool`, Tag 691.
1334    pub fn get_pool(&self) -> Result<String, MessageRejectErrorEnum> {
1335        let mut fld = field::PoolField::new(String::new());
1336        self.message.body.get_field(tag::POOL, &mut fld.0)?;
1337        Ok(fld.value().to_string())
1338    }
1339
1340
1341    /// Returns true if `Pool` is present, Tag 691.
1342    pub fn has_pool(&self) -> bool {
1343        self.message.body.has(tag::POOL)
1344    }
1345
1346
1347
1348
1349    /// Sets `PositionLimit`, Tag 970.
1350    pub fn set_position_limit(&mut self, v: isize) {
1351        self.message.body.set_field(tag::POSITION_LIMIT, fixer::fix_int::FIXInt::from(v));
1352    }
1353
1354    /// Gets `PositionLimit`, Tag 970.
1355    pub fn get_position_limit(&self) -> Result<isize, MessageRejectErrorEnum> {
1356        let mut fld = field::PositionLimitField::new(0);
1357        self.message.body.get_field(tag::POSITION_LIMIT, &mut fld.0)?;
1358        Ok(fld.value())
1359    }
1360
1361
1362    /// Returns true if `PositionLimit` is present, Tag 970.
1363    pub fn has_position_limit(&self) -> bool {
1364        self.message.body.has(tag::POSITION_LIMIT)
1365    }
1366
1367
1368
1369
1370    /// Sets `PriceQuoteMethod`, Tag 1196.
1371    pub fn set_price_quote_method(&mut self, v: String) {
1372        self.message.body.set_field(tag::PRICE_QUOTE_METHOD, FIXString::from(v));
1373    }
1374
1375    /// Gets `PriceQuoteMethod`, Tag 1196.
1376    pub fn get_price_quote_method(&self) -> Result<String, MessageRejectErrorEnum> {
1377        let mut fld = field::PriceQuoteMethodField::new(String::new());
1378        self.message.body.get_field(tag::PRICE_QUOTE_METHOD, &mut fld.0)?;
1379        Ok(fld.value().to_string())
1380    }
1381
1382
1383    /// Returns true if `PriceQuoteMethod` is present, Tag 1196.
1384    pub fn has_price_quote_method(&self) -> bool {
1385        self.message.body.has(tag::PRICE_QUOTE_METHOD)
1386    }
1387
1388
1389
1390
1391    /// Sets `PriceUnitOfMeasure`, Tag 1191.
1392    pub fn set_price_unit_of_measure(&mut self, v: String) {
1393        self.message.body.set_field(tag::PRICE_UNIT_OF_MEASURE, FIXString::from(v));
1394    }
1395
1396    /// Gets `PriceUnitOfMeasure`, Tag 1191.
1397    pub fn get_price_unit_of_measure(&self) -> Result<String, MessageRejectErrorEnum> {
1398        let mut fld = field::PriceUnitOfMeasureField::new(String::new());
1399        self.message.body.get_field(tag::PRICE_UNIT_OF_MEASURE, &mut fld.0)?;
1400        Ok(fld.value().to_string())
1401    }
1402
1403
1404    /// Returns true if `PriceUnitOfMeasure` is present, Tag 1191.
1405    pub fn has_price_unit_of_measure(&self) -> bool {
1406        self.message.body.has(tag::PRICE_UNIT_OF_MEASURE)
1407    }
1408
1409
1410
1411
1412    /// Sets `PriceUnitOfMeasureQty`, Tag 1192.
1413    pub fn set_price_unit_of_measure_qty(&mut self, val: Decimal, scale: i32) {
1414        self.message.body.set_field(tag::PRICE_UNIT_OF_MEASURE_QTY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1415    }
1416
1417    /// Gets `PriceUnitOfMeasureQty`, Tag 1192.
1418    pub fn get_price_unit_of_measure_qty(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1419        let mut fld = field::PriceUnitOfMeasureQtyField::new(Decimal::ZERO, 0);
1420        self.message.body.get_field(tag::PRICE_UNIT_OF_MEASURE_QTY, &mut fld.0)?;
1421        Ok(fld.value())
1422    }
1423
1424
1425    /// Returns true if `PriceUnitOfMeasureQty` is present, Tag 1192.
1426    pub fn has_price_unit_of_measure_qty(&self) -> bool {
1427        self.message.body.has(tag::PRICE_UNIT_OF_MEASURE_QTY)
1428    }
1429
1430
1431
1432
1433    /// Sets `Product`, Tag 460.
1434    pub fn set_product(&mut self, v: isize) {
1435        self.message.body.set_field(tag::PRODUCT, fixer::fix_int::FIXInt::from(v));
1436    }
1437
1438    /// Gets `Product`, Tag 460.
1439    pub fn get_product(&self) -> Result<isize, MessageRejectErrorEnum> {
1440        let mut fld = field::ProductField::new(0);
1441        self.message.body.get_field(tag::PRODUCT, &mut fld.0)?;
1442        Ok(fld.value())
1443    }
1444
1445
1446    /// Returns true if `Product` is present, Tag 460.
1447    pub fn has_product(&self) -> bool {
1448        self.message.body.has(tag::PRODUCT)
1449    }
1450
1451
1452
1453
1454    /// Sets `ProductComplex`, Tag 1227.
1455    pub fn set_product_complex(&mut self, v: String) {
1456        self.message.body.set_field(tag::PRODUCT_COMPLEX, FIXString::from(v));
1457    }
1458
1459    /// Gets `ProductComplex`, Tag 1227.
1460    pub fn get_product_complex(&self) -> Result<String, MessageRejectErrorEnum> {
1461        let mut fld = field::ProductComplexField::new(String::new());
1462        self.message.body.get_field(tag::PRODUCT_COMPLEX, &mut fld.0)?;
1463        Ok(fld.value().to_string())
1464    }
1465
1466
1467    /// Returns true if `ProductComplex` is present, Tag 1227.
1468    pub fn has_product_complex(&self) -> bool {
1469        self.message.body.has(tag::PRODUCT_COMPLEX)
1470    }
1471
1472
1473
1474
1475    /// Sets `PutOrCall`, Tag 201.
1476    pub fn set_put_or_call(&mut self, v: isize) {
1477        self.message.body.set_field(tag::PUT_OR_CALL, fixer::fix_int::FIXInt::from(v));
1478    }
1479
1480    /// Gets `PutOrCall`, Tag 201.
1481    pub fn get_put_or_call(&self) -> Result<isize, MessageRejectErrorEnum> {
1482        let mut fld = field::PutOrCallField::new(0);
1483        self.message.body.get_field(tag::PUT_OR_CALL, &mut fld.0)?;
1484        Ok(fld.value())
1485    }
1486
1487
1488    /// Returns true if `PutOrCall` is present, Tag 201.
1489    pub fn has_put_or_call(&self) -> bool {
1490        self.message.body.has(tag::PUT_OR_CALL)
1491    }
1492
1493
1494
1495
1496    /// Sets `RedemptionDate`, Tag 240.
1497    pub fn set_redemption_date(&mut self, v: String) {
1498        self.message.body.set_field(tag::REDEMPTION_DATE, FIXString::from(v));
1499    }
1500
1501    /// Gets `RedemptionDate`, Tag 240.
1502    pub fn get_redemption_date(&self) -> Result<String, MessageRejectErrorEnum> {
1503        let mut fld = field::RedemptionDateField::new(String::new());
1504        self.message.body.get_field(tag::REDEMPTION_DATE, &mut fld.0)?;
1505        Ok(fld.value().to_string())
1506    }
1507
1508
1509    /// Returns true if `RedemptionDate` is present, Tag 240.
1510    pub fn has_redemption_date(&self) -> bool {
1511        self.message.body.has(tag::REDEMPTION_DATE)
1512    }
1513
1514
1515
1516
1517    /// Sets `RepoCollateralSecurityType`, Tag 239.
1518    pub fn set_repo_collateral_security_type(&mut self, v: isize) {
1519        self.message.body.set_field(tag::REPO_COLLATERAL_SECURITY_TYPE, fixer::fix_int::FIXInt::from(v));
1520    }
1521
1522    /// Gets `RepoCollateralSecurityType`, Tag 239.
1523    pub fn get_repo_collateral_security_type(&self) -> Result<isize, MessageRejectErrorEnum> {
1524        let mut fld = field::RepoCollateralSecurityTypeField::new(0);
1525        self.message.body.get_field(tag::REPO_COLLATERAL_SECURITY_TYPE, &mut fld.0)?;
1526        Ok(fld.value())
1527    }
1528
1529
1530    /// Returns true if `RepoCollateralSecurityType` is present, Tag 239.
1531    pub fn has_repo_collateral_security_type(&self) -> bool {
1532        self.message.body.has(tag::REPO_COLLATERAL_SECURITY_TYPE)
1533    }
1534
1535
1536
1537
1538    /// Sets `RepurchaseRate`, Tag 227.
1539    pub fn set_repurchase_rate(&mut self, val: Decimal, scale: i32) {
1540        self.message.body.set_field(tag::REPURCHASE_RATE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1541    }
1542
1543    /// Gets `RepurchaseRate`, Tag 227.
1544    pub fn get_repurchase_rate(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1545        let mut fld = field::RepurchaseRateField::new(Decimal::ZERO, 0);
1546        self.message.body.get_field(tag::REPURCHASE_RATE, &mut fld.0)?;
1547        Ok(fld.value())
1548    }
1549
1550
1551    /// Returns true if `RepurchaseRate` is present, Tag 227.
1552    pub fn has_repurchase_rate(&self) -> bool {
1553        self.message.body.has(tag::REPURCHASE_RATE)
1554    }
1555
1556
1557
1558
1559    /// Sets `RepurchaseTerm`, Tag 226.
1560    pub fn set_repurchase_term(&mut self, v: isize) {
1561        self.message.body.set_field(tag::REPURCHASE_TERM, fixer::fix_int::FIXInt::from(v));
1562    }
1563
1564    /// Gets `RepurchaseTerm`, Tag 226.
1565    pub fn get_repurchase_term(&self) -> Result<isize, MessageRejectErrorEnum> {
1566        let mut fld = field::RepurchaseTermField::new(0);
1567        self.message.body.get_field(tag::REPURCHASE_TERM, &mut fld.0)?;
1568        Ok(fld.value())
1569    }
1570
1571
1572    /// Returns true if `RepurchaseTerm` is present, Tag 226.
1573    pub fn has_repurchase_term(&self) -> bool {
1574        self.message.body.has(tag::REPURCHASE_TERM)
1575    }
1576
1577
1578
1579
1580    /// Sets `RestructuringType`, Tag 1449.
1581    pub fn set_restructuring_type(&mut self, v: String) {
1582        self.message.body.set_field(tag::RESTRUCTURING_TYPE, FIXString::from(v));
1583    }
1584
1585    /// Gets `RestructuringType`, Tag 1449.
1586    pub fn get_restructuring_type(&self) -> Result<String, MessageRejectErrorEnum> {
1587        let mut fld = field::RestructuringTypeField::new(String::new());
1588        self.message.body.get_field(tag::RESTRUCTURING_TYPE, &mut fld.0)?;
1589        Ok(fld.value().to_string())
1590    }
1591
1592
1593    /// Returns true if `RestructuringType` is present, Tag 1449.
1594    pub fn has_restructuring_type(&self) -> bool {
1595        self.message.body.has(tag::RESTRUCTURING_TYPE)
1596    }
1597
1598
1599
1600
1601    /// Sets `SecondaryClOrdID`, Tag 526.
1602    pub fn set_secondary_cl_ord_id(&mut self, v: String) {
1603        self.message.body.set_field(tag::SECONDARY_CL_ORD_ID, FIXString::from(v));
1604    }
1605
1606    /// Gets `SecondaryClOrdID`, Tag 526.
1607    pub fn get_secondary_cl_ord_id(&self) -> Result<String, MessageRejectErrorEnum> {
1608        let mut fld = field::SecondaryClOrdIDField::new(String::new());
1609        self.message.body.get_field(tag::SECONDARY_CL_ORD_ID, &mut fld.0)?;
1610        Ok(fld.value().to_string())
1611    }
1612
1613
1614    /// Returns true if `SecondaryClOrdID` is present, Tag 526.
1615    pub fn has_secondary_cl_ord_id(&self) -> bool {
1616        self.message.body.has(tag::SECONDARY_CL_ORD_ID)
1617    }
1618
1619
1620
1621
1622    /// Sets `SecurityDesc`, Tag 107.
1623    pub fn set_security_desc(&mut self, v: String) {
1624        self.message.body.set_field(tag::SECURITY_DESC, FIXString::from(v));
1625    }
1626
1627    /// Gets `SecurityDesc`, Tag 107.
1628    pub fn get_security_desc(&self) -> Result<String, MessageRejectErrorEnum> {
1629        let mut fld = field::SecurityDescField::new(String::new());
1630        self.message.body.get_field(tag::SECURITY_DESC, &mut fld.0)?;
1631        Ok(fld.value().to_string())
1632    }
1633
1634
1635    /// Returns true if `SecurityDesc` is present, Tag 107.
1636    pub fn has_security_desc(&self) -> bool {
1637        self.message.body.has(tag::SECURITY_DESC)
1638    }
1639
1640
1641
1642
1643    /// Sets `SecurityExchange`, Tag 207.
1644    pub fn set_security_exchange(&mut self, v: String) {
1645        self.message.body.set_field(tag::SECURITY_EXCHANGE, FIXString::from(v));
1646    }
1647
1648    /// Gets `SecurityExchange`, Tag 207.
1649    pub fn get_security_exchange(&self) -> Result<String, MessageRejectErrorEnum> {
1650        let mut fld = field::SecurityExchangeField::new(String::new());
1651        self.message.body.get_field(tag::SECURITY_EXCHANGE, &mut fld.0)?;
1652        Ok(fld.value().to_string())
1653    }
1654
1655
1656    /// Returns true if `SecurityExchange` is present, Tag 207.
1657    pub fn has_security_exchange(&self) -> bool {
1658        self.message.body.has(tag::SECURITY_EXCHANGE)
1659    }
1660
1661
1662
1663
1664    /// Sets `SecurityGroup`, Tag 1151.
1665    pub fn set_security_group(&mut self, v: String) {
1666        self.message.body.set_field(tag::SECURITY_GROUP, FIXString::from(v));
1667    }
1668
1669    /// Gets `SecurityGroup`, Tag 1151.
1670    pub fn get_security_group(&self) -> Result<String, MessageRejectErrorEnum> {
1671        let mut fld = field::SecurityGroupField::new(String::new());
1672        self.message.body.get_field(tag::SECURITY_GROUP, &mut fld.0)?;
1673        Ok(fld.value().to_string())
1674    }
1675
1676
1677    /// Returns true if `SecurityGroup` is present, Tag 1151.
1678    pub fn has_security_group(&self) -> bool {
1679        self.message.body.has(tag::SECURITY_GROUP)
1680    }
1681
1682
1683
1684
1685    /// Sets `SecurityID`, Tag 48.
1686    pub fn set_security_id(&mut self, v: String) {
1687        self.message.body.set_field(tag::SECURITY_ID, FIXString::from(v));
1688    }
1689
1690    /// Gets `SecurityID`, Tag 48.
1691    pub fn get_security_id(&self) -> Result<String, MessageRejectErrorEnum> {
1692        let mut fld = field::SecurityIDField::new(String::new());
1693        self.message.body.get_field(tag::SECURITY_ID, &mut fld.0)?;
1694        Ok(fld.value().to_string())
1695    }
1696
1697
1698    /// Returns true if `SecurityID` is present, Tag 48.
1699    pub fn has_security_id(&self) -> bool {
1700        self.message.body.has(tag::SECURITY_ID)
1701    }
1702
1703
1704
1705
1706    /// Sets `SecurityIDSource`, Tag 22.
1707    pub fn set_security_id_source(&mut self, v: String) {
1708        self.message.body.set_field(tag::SECURITY_ID_SOURCE, FIXString::from(v));
1709    }
1710
1711    /// Gets `SecurityIDSource`, Tag 22.
1712    pub fn get_security_id_source(&self) -> Result<String, MessageRejectErrorEnum> {
1713        let mut fld = field::SecurityIDSourceField::new(String::new());
1714        self.message.body.get_field(tag::SECURITY_ID_SOURCE, &mut fld.0)?;
1715        Ok(fld.value().to_string())
1716    }
1717
1718
1719    /// Returns true if `SecurityIDSource` is present, Tag 22.
1720    pub fn has_security_id_source(&self) -> bool {
1721        self.message.body.has(tag::SECURITY_ID_SOURCE)
1722    }
1723
1724
1725
1726
1727    /// Sets `SecurityStatus`, Tag 965.
1728    pub fn set_security_status(&mut self, v: String) {
1729        self.message.body.set_field(tag::SECURITY_STATUS, FIXString::from(v));
1730    }
1731
1732    /// Gets `SecurityStatus`, Tag 965.
1733    pub fn get_security_status(&self) -> Result<String, MessageRejectErrorEnum> {
1734        let mut fld = field::SecurityStatusField::new(String::new());
1735        self.message.body.get_field(tag::SECURITY_STATUS, &mut fld.0)?;
1736        Ok(fld.value().to_string())
1737    }
1738
1739
1740    /// Returns true if `SecurityStatus` is present, Tag 965.
1741    pub fn has_security_status(&self) -> bool {
1742        self.message.body.has(tag::SECURITY_STATUS)
1743    }
1744
1745
1746
1747
1748    /// Sets `SecuritySubType`, Tag 762.
1749    pub fn set_security_sub_type(&mut self, v: String) {
1750        self.message.body.set_field(tag::SECURITY_SUB_TYPE, FIXString::from(v));
1751    }
1752
1753    /// Gets `SecuritySubType`, Tag 762.
1754    pub fn get_security_sub_type(&self) -> Result<String, MessageRejectErrorEnum> {
1755        let mut fld = field::SecuritySubTypeField::new(String::new());
1756        self.message.body.get_field(tag::SECURITY_SUB_TYPE, &mut fld.0)?;
1757        Ok(fld.value().to_string())
1758    }
1759
1760
1761    /// Returns true if `SecuritySubType` is present, Tag 762.
1762    pub fn has_security_sub_type(&self) -> bool {
1763        self.message.body.has(tag::SECURITY_SUB_TYPE)
1764    }
1765
1766
1767
1768
1769    /// Sets `SecurityType`, Tag 167.
1770    pub fn set_security_type(&mut self, v: String) {
1771        self.message.body.set_field(tag::SECURITY_TYPE, FIXString::from(v));
1772    }
1773
1774    /// Gets `SecurityType`, Tag 167.
1775    pub fn get_security_type(&self) -> Result<String, MessageRejectErrorEnum> {
1776        let mut fld = field::SecurityTypeField::new(String::new());
1777        self.message.body.get_field(tag::SECURITY_TYPE, &mut fld.0)?;
1778        Ok(fld.value().to_string())
1779    }
1780
1781
1782    /// Returns true if `SecurityType` is present, Tag 167.
1783    pub fn has_security_type(&self) -> bool {
1784        self.message.body.has(tag::SECURITY_TYPE)
1785    }
1786
1787
1788
1789
1790    /// Sets `SecurityXML`, Tag 1185.
1791    pub fn set_security_xml(&mut self, v: String) {
1792        self.message.body.set_field(tag::SECURITY_XML, FIXString::from(v));
1793    }
1794
1795    /// Gets `SecurityXML`, Tag 1185.
1796    pub fn get_security_xml(&self) -> Result<String, MessageRejectErrorEnum> {
1797        let mut fld = field::SecurityXMLField::new(String::new());
1798        self.message.body.get_field(tag::SECURITY_XML, &mut fld.0)?;
1799        Ok(fld.value().to_string())
1800    }
1801
1802
1803    /// Returns true if `SecurityXML` is present, Tag 1185.
1804    pub fn has_security_xml(&self) -> bool {
1805        self.message.body.has(tag::SECURITY_XML)
1806    }
1807
1808
1809
1810
1811    /// Sets `SecurityXMLLen`, Tag 1184.
1812    pub fn set_security_xml_len(&mut self, v: isize) {
1813        self.message.body.set_field(tag::SECURITY_XML_LEN, fixer::fix_int::FIXInt::from(v));
1814    }
1815
1816    /// Gets `SecurityXMLLen`, Tag 1184.
1817    pub fn get_security_xml_len(&self) -> Result<isize, MessageRejectErrorEnum> {
1818        let mut fld = field::SecurityXMLLenField::new(0);
1819        self.message.body.get_field(tag::SECURITY_XML_LEN, &mut fld.0)?;
1820        Ok(fld.value())
1821    }
1822
1823
1824    /// Returns true if `SecurityXMLLen` is present, Tag 1184.
1825    pub fn has_security_xml_len(&self) -> bool {
1826        self.message.body.has(tag::SECURITY_XML_LEN)
1827    }
1828
1829
1830
1831
1832    /// Sets `SecurityXMLSchema`, Tag 1186.
1833    pub fn set_security_xml_schema(&mut self, v: String) {
1834        self.message.body.set_field(tag::SECURITY_XML_SCHEMA, FIXString::from(v));
1835    }
1836
1837    /// Gets `SecurityXMLSchema`, Tag 1186.
1838    pub fn get_security_xml_schema(&self) -> Result<String, MessageRejectErrorEnum> {
1839        let mut fld = field::SecurityXMLSchemaField::new(String::new());
1840        self.message.body.get_field(tag::SECURITY_XML_SCHEMA, &mut fld.0)?;
1841        Ok(fld.value().to_string())
1842    }
1843
1844
1845    /// Returns true if `SecurityXMLSchema` is present, Tag 1186.
1846    pub fn has_security_xml_schema(&self) -> bool {
1847        self.message.body.has(tag::SECURITY_XML_SCHEMA)
1848    }
1849
1850
1851
1852
1853    /// Sets `Seniority`, Tag 1450.
1854    pub fn set_seniority(&mut self, v: String) {
1855        self.message.body.set_field(tag::SENIORITY, FIXString::from(v));
1856    }
1857
1858    /// Gets `Seniority`, Tag 1450.
1859    pub fn get_seniority(&self) -> Result<String, MessageRejectErrorEnum> {
1860        let mut fld = field::SeniorityField::new(String::new());
1861        self.message.body.get_field(tag::SENIORITY, &mut fld.0)?;
1862        Ok(fld.value().to_string())
1863    }
1864
1865
1866    /// Returns true if `Seniority` is present, Tag 1450.
1867    pub fn has_seniority(&self) -> bool {
1868        self.message.body.has(tag::SENIORITY)
1869    }
1870
1871
1872
1873
1874    /// Sets `SettlMethod`, Tag 1193.
1875    pub fn set_settl_method(&mut self, v: String) {
1876        self.message.body.set_field(tag::SETTL_METHOD, FIXString::from(v));
1877    }
1878
1879    /// Gets `SettlMethod`, Tag 1193.
1880    pub fn get_settl_method(&self) -> Result<String, MessageRejectErrorEnum> {
1881        let mut fld = field::SettlMethodField::new(String::new());
1882        self.message.body.get_field(tag::SETTL_METHOD, &mut fld.0)?;
1883        Ok(fld.value().to_string())
1884    }
1885
1886
1887    /// Returns true if `SettlMethod` is present, Tag 1193.
1888    pub fn has_settl_method(&self) -> bool {
1889        self.message.body.has(tag::SETTL_METHOD)
1890    }
1891
1892
1893
1894
1895    /// Sets `SettleOnOpenFlag`, Tag 966.
1896    pub fn set_settle_on_open_flag(&mut self, v: String) {
1897        self.message.body.set_field(tag::SETTLE_ON_OPEN_FLAG, FIXString::from(v));
1898    }
1899
1900    /// Gets `SettleOnOpenFlag`, Tag 966.
1901    pub fn get_settle_on_open_flag(&self) -> Result<String, MessageRejectErrorEnum> {
1902        let mut fld = field::SettleOnOpenFlagField::new(String::new());
1903        self.message.body.get_field(tag::SETTLE_ON_OPEN_FLAG, &mut fld.0)?;
1904        Ok(fld.value().to_string())
1905    }
1906
1907
1908    /// Returns true if `SettleOnOpenFlag` is present, Tag 966.
1909    pub fn has_settle_on_open_flag(&self) -> bool {
1910        self.message.body.has(tag::SETTLE_ON_OPEN_FLAG)
1911    }
1912
1913
1914
1915
1916    /// Sets `Side`, Tag 54.
1917    pub fn set_side(&mut self, v: String) {
1918        self.message.body.set_field(tag::SIDE, FIXString::from(v));
1919    }
1920
1921    /// Gets `Side`, Tag 54.
1922    pub fn get_side(&self) -> Result<String, MessageRejectErrorEnum> {
1923        let mut fld = field::SideField::new(String::new());
1924        self.message.body.get_field(tag::SIDE, &mut fld.0)?;
1925        Ok(fld.value().to_string())
1926    }
1927
1928
1929    /// Returns true if `Side` is present, Tag 54.
1930    pub fn has_side(&self) -> bool {
1931        self.message.body.has(tag::SIDE)
1932    }
1933
1934
1935
1936
1937    /// Sets `StartDate`, Tag 916.
1938    pub fn set_start_date(&mut self, v: String) {
1939        self.message.body.set_field(tag::START_DATE, FIXString::from(v));
1940    }
1941
1942    /// Gets `StartDate`, Tag 916.
1943    pub fn get_start_date(&self) -> Result<String, MessageRejectErrorEnum> {
1944        let mut fld = field::StartDateField::new(String::new());
1945        self.message.body.get_field(tag::START_DATE, &mut fld.0)?;
1946        Ok(fld.value().to_string())
1947    }
1948
1949
1950    /// Returns true if `StartDate` is present, Tag 916.
1951    pub fn has_start_date(&self) -> bool {
1952        self.message.body.has(tag::START_DATE)
1953    }
1954
1955
1956
1957
1958    /// Sets `StateOrProvinceOfIssue`, Tag 471.
1959    pub fn set_state_or_province_of_issue(&mut self, v: String) {
1960        self.message.body.set_field(tag::STATE_OR_PROVINCE_OF_ISSUE, FIXString::from(v));
1961    }
1962
1963    /// Gets `StateOrProvinceOfIssue`, Tag 471.
1964    pub fn get_state_or_province_of_issue(&self) -> Result<String, MessageRejectErrorEnum> {
1965        let mut fld = field::StateOrProvinceOfIssueField::new(String::new());
1966        self.message.body.get_field(tag::STATE_OR_PROVINCE_OF_ISSUE, &mut fld.0)?;
1967        Ok(fld.value().to_string())
1968    }
1969
1970
1971    /// Returns true if `StateOrProvinceOfIssue` is present, Tag 471.
1972    pub fn has_state_or_province_of_issue(&self) -> bool {
1973        self.message.body.has(tag::STATE_OR_PROVINCE_OF_ISSUE)
1974    }
1975
1976
1977
1978
1979    /// Sets `StrikeCurrency`, Tag 947.
1980    pub fn set_strike_currency(&mut self, v: String) {
1981        self.message.body.set_field(tag::STRIKE_CURRENCY, FIXString::from(v));
1982    }
1983
1984    /// Gets `StrikeCurrency`, Tag 947.
1985    pub fn get_strike_currency(&self) -> Result<String, MessageRejectErrorEnum> {
1986        let mut fld = field::StrikeCurrencyField::new(String::new());
1987        self.message.body.get_field(tag::STRIKE_CURRENCY, &mut fld.0)?;
1988        Ok(fld.value().to_string())
1989    }
1990
1991
1992    /// Returns true if `StrikeCurrency` is present, Tag 947.
1993    pub fn has_strike_currency(&self) -> bool {
1994        self.message.body.has(tag::STRIKE_CURRENCY)
1995    }
1996
1997
1998
1999
2000    /// Sets `StrikeMultiplier`, Tag 967.
2001    pub fn set_strike_multiplier(&mut self, val: Decimal, scale: i32) {
2002        self.message.body.set_field(tag::STRIKE_MULTIPLIER, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2003    }
2004
2005    /// Gets `StrikeMultiplier`, Tag 967.
2006    pub fn get_strike_multiplier(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2007        let mut fld = field::StrikeMultiplierField::new(Decimal::ZERO, 0);
2008        self.message.body.get_field(tag::STRIKE_MULTIPLIER, &mut fld.0)?;
2009        Ok(fld.value())
2010    }
2011
2012
2013    /// Returns true if `StrikeMultiplier` is present, Tag 967.
2014    pub fn has_strike_multiplier(&self) -> bool {
2015        self.message.body.has(tag::STRIKE_MULTIPLIER)
2016    }
2017
2018
2019
2020
2021    /// Sets `StrikePrice`, Tag 202.
2022    pub fn set_strike_price(&mut self, val: Decimal, scale: i32) {
2023        self.message.body.set_field(tag::STRIKE_PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2024    }
2025
2026    /// Gets `StrikePrice`, Tag 202.
2027    pub fn get_strike_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2028        let mut fld = field::StrikePriceField::new(Decimal::ZERO, 0);
2029        self.message.body.get_field(tag::STRIKE_PRICE, &mut fld.0)?;
2030        Ok(fld.value())
2031    }
2032
2033
2034    /// Returns true if `StrikePrice` is present, Tag 202.
2035    pub fn has_strike_price(&self) -> bool {
2036        self.message.body.has(tag::STRIKE_PRICE)
2037    }
2038
2039
2040
2041
2042    /// Sets `StrikePriceBoundaryMethod`, Tag 1479.
2043    pub fn set_strike_price_boundary_method(&mut self, v: isize) {
2044        self.message.body.set_field(tag::STRIKE_PRICE_BOUNDARY_METHOD, fixer::fix_int::FIXInt::from(v));
2045    }
2046
2047    /// Gets `StrikePriceBoundaryMethod`, Tag 1479.
2048    pub fn get_strike_price_boundary_method(&self) -> Result<isize, MessageRejectErrorEnum> {
2049        let mut fld = field::StrikePriceBoundaryMethodField::new(0);
2050        self.message.body.get_field(tag::STRIKE_PRICE_BOUNDARY_METHOD, &mut fld.0)?;
2051        Ok(fld.value())
2052    }
2053
2054
2055    /// Returns true if `StrikePriceBoundaryMethod` is present, Tag 1479.
2056    pub fn has_strike_price_boundary_method(&self) -> bool {
2057        self.message.body.has(tag::STRIKE_PRICE_BOUNDARY_METHOD)
2058    }
2059
2060
2061
2062
2063    /// Sets `StrikePriceBoundaryPrecision`, Tag 1480.
2064    pub fn set_strike_price_boundary_precision(&mut self, val: Decimal, scale: i32) {
2065        self.message.body.set_field(tag::STRIKE_PRICE_BOUNDARY_PRECISION, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2066    }
2067
2068    /// Gets `StrikePriceBoundaryPrecision`, Tag 1480.
2069    pub fn get_strike_price_boundary_precision(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2070        let mut fld = field::StrikePriceBoundaryPrecisionField::new(Decimal::ZERO, 0);
2071        self.message.body.get_field(tag::STRIKE_PRICE_BOUNDARY_PRECISION, &mut fld.0)?;
2072        Ok(fld.value())
2073    }
2074
2075
2076    /// Returns true if `StrikePriceBoundaryPrecision` is present, Tag 1480.
2077    pub fn has_strike_price_boundary_precision(&self) -> bool {
2078        self.message.body.has(tag::STRIKE_PRICE_BOUNDARY_PRECISION)
2079    }
2080
2081
2082
2083
2084    /// Sets `StrikePriceDeterminationMethod`, Tag 1478.
2085    pub fn set_strike_price_determination_method(&mut self, v: isize) {
2086        self.message.body.set_field(tag::STRIKE_PRICE_DETERMINATION_METHOD, fixer::fix_int::FIXInt::from(v));
2087    }
2088
2089    /// Gets `StrikePriceDeterminationMethod`, Tag 1478.
2090    pub fn get_strike_price_determination_method(&self) -> Result<isize, MessageRejectErrorEnum> {
2091        let mut fld = field::StrikePriceDeterminationMethodField::new(0);
2092        self.message.body.get_field(tag::STRIKE_PRICE_DETERMINATION_METHOD, &mut fld.0)?;
2093        Ok(fld.value())
2094    }
2095
2096
2097    /// Returns true if `StrikePriceDeterminationMethod` is present, Tag 1478.
2098    pub fn has_strike_price_determination_method(&self) -> bool {
2099        self.message.body.has(tag::STRIKE_PRICE_DETERMINATION_METHOD)
2100    }
2101
2102
2103
2104
2105    /// Sets `StrikeValue`, Tag 968.
2106    pub fn set_strike_value(&mut self, val: Decimal, scale: i32) {
2107        self.message.body.set_field(tag::STRIKE_VALUE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2108    }
2109
2110    /// Gets `StrikeValue`, Tag 968.
2111    pub fn get_strike_value(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2112        let mut fld = field::StrikeValueField::new(Decimal::ZERO, 0);
2113        self.message.body.get_field(tag::STRIKE_VALUE, &mut fld.0)?;
2114        Ok(fld.value())
2115    }
2116
2117
2118    /// Returns true if `StrikeValue` is present, Tag 968.
2119    pub fn has_strike_value(&self) -> bool {
2120        self.message.body.has(tag::STRIKE_VALUE)
2121    }
2122
2123
2124
2125
2126    /// Sets `Symbol`, Tag 55.
2127    pub fn set_symbol(&mut self, v: String) {
2128        self.message.body.set_field(tag::SYMBOL, FIXString::from(v));
2129    }
2130
2131    /// Gets `Symbol`, Tag 55.
2132    pub fn get_symbol(&self) -> Result<String, MessageRejectErrorEnum> {
2133        let mut fld = field::SymbolField::new(String::new());
2134        self.message.body.get_field(tag::SYMBOL, &mut fld.0)?;
2135        Ok(fld.value().to_string())
2136    }
2137
2138
2139    /// Returns true if `Symbol` is present, Tag 55.
2140    pub fn has_symbol(&self) -> bool {
2141        self.message.body.has(tag::SYMBOL)
2142    }
2143
2144
2145
2146
2147    /// Sets `SymbolSfx`, Tag 65.
2148    pub fn set_symbol_sfx(&mut self, v: String) {
2149        self.message.body.set_field(tag::SYMBOL_SFX, FIXString::from(v));
2150    }
2151
2152    /// Gets `SymbolSfx`, Tag 65.
2153    pub fn get_symbol_sfx(&self) -> Result<String, MessageRejectErrorEnum> {
2154        let mut fld = field::SymbolSfxField::new(String::new());
2155        self.message.body.get_field(tag::SYMBOL_SFX, &mut fld.0)?;
2156        Ok(fld.value().to_string())
2157    }
2158
2159
2160    /// Returns true if `SymbolSfx` is present, Tag 65.
2161    pub fn has_symbol_sfx(&self) -> bool {
2162        self.message.body.has(tag::SYMBOL_SFX)
2163    }
2164
2165
2166
2167
2168    /// Sets `TerminationType`, Tag 788.
2169    pub fn set_termination_type(&mut self, v: isize) {
2170        self.message.body.set_field(tag::TERMINATION_TYPE, fixer::fix_int::FIXInt::from(v));
2171    }
2172
2173    /// Gets `TerminationType`, Tag 788.
2174    pub fn get_termination_type(&self) -> Result<isize, MessageRejectErrorEnum> {
2175        let mut fld = field::TerminationTypeField::new(0);
2176        self.message.body.get_field(tag::TERMINATION_TYPE, &mut fld.0)?;
2177        Ok(fld.value())
2178    }
2179
2180
2181    /// Returns true if `TerminationType` is present, Tag 788.
2182    pub fn has_termination_type(&self) -> bool {
2183        self.message.body.has(tag::TERMINATION_TYPE)
2184    }
2185
2186
2187
2188
2189    /// Sets `TimeUnit`, Tag 997.
2190    pub fn set_time_unit(&mut self, v: String) {
2191        self.message.body.set_field(tag::TIME_UNIT, FIXString::from(v));
2192    }
2193
2194    /// Gets `TimeUnit`, Tag 997.
2195    pub fn get_time_unit(&self) -> Result<String, MessageRejectErrorEnum> {
2196        let mut fld = field::TimeUnitField::new(String::new());
2197        self.message.body.get_field(tag::TIME_UNIT, &mut fld.0)?;
2198        Ok(fld.value().to_string())
2199    }
2200
2201
2202    /// Returns true if `TimeUnit` is present, Tag 997.
2203    pub fn has_time_unit(&self) -> bool {
2204        self.message.body.has(tag::TIME_UNIT)
2205    }
2206
2207
2208
2209
2210    /// Sets `UnderlyingPriceDeterminationMethod`, Tag 1481.
2211    pub fn set_underlying_price_determination_method(&mut self, v: isize) {
2212        self.message.body.set_field(tag::UNDERLYING_PRICE_DETERMINATION_METHOD, fixer::fix_int::FIXInt::from(v));
2213    }
2214
2215    /// Gets `UnderlyingPriceDeterminationMethod`, Tag 1481.
2216    pub fn get_underlying_price_determination_method(&self) -> Result<isize, MessageRejectErrorEnum> {
2217        let mut fld = field::UnderlyingPriceDeterminationMethodField::new(0);
2218        self.message.body.get_field(tag::UNDERLYING_PRICE_DETERMINATION_METHOD, &mut fld.0)?;
2219        Ok(fld.value())
2220    }
2221
2222
2223    /// Returns true if `UnderlyingPriceDeterminationMethod` is present, Tag 1481.
2224    pub fn has_underlying_price_determination_method(&self) -> bool {
2225        self.message.body.has(tag::UNDERLYING_PRICE_DETERMINATION_METHOD)
2226    }
2227
2228
2229
2230
2231    /// Sets `UnitOfMeasure`, Tag 996.
2232    pub fn set_unit_of_measure(&mut self, v: String) {
2233        self.message.body.set_field(tag::UNIT_OF_MEASURE, FIXString::from(v));
2234    }
2235
2236    /// Gets `UnitOfMeasure`, Tag 996.
2237    pub fn get_unit_of_measure(&self) -> Result<String, MessageRejectErrorEnum> {
2238        let mut fld = field::UnitOfMeasureField::new(String::new());
2239        self.message.body.get_field(tag::UNIT_OF_MEASURE, &mut fld.0)?;
2240        Ok(fld.value().to_string())
2241    }
2242
2243
2244    /// Returns true if `UnitOfMeasure` is present, Tag 996.
2245    pub fn has_unit_of_measure(&self) -> bool {
2246        self.message.body.has(tag::UNIT_OF_MEASURE)
2247    }
2248
2249
2250
2251
2252    /// Sets `UnitOfMeasureQty`, Tag 1147.
2253    pub fn set_unit_of_measure_qty(&mut self, val: Decimal, scale: i32) {
2254        self.message.body.set_field(tag::UNIT_OF_MEASURE_QTY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2255    }
2256
2257    /// Gets `UnitOfMeasureQty`, Tag 1147.
2258    pub fn get_unit_of_measure_qty(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2259        let mut fld = field::UnitOfMeasureQtyField::new(Decimal::ZERO, 0);
2260        self.message.body.get_field(tag::UNIT_OF_MEASURE_QTY, &mut fld.0)?;
2261        Ok(fld.value())
2262    }
2263
2264
2265    /// Returns true if `UnitOfMeasureQty` is present, Tag 1147.
2266    pub fn has_unit_of_measure_qty(&self) -> bool {
2267        self.message.body.has(tag::UNIT_OF_MEASURE_QTY)
2268    }
2269
2270
2271
2272
2273    /// Sets `ValuationMethod`, Tag 1197.
2274    pub fn set_valuation_method(&mut self, v: String) {
2275        self.message.body.set_field(tag::VALUATION_METHOD, FIXString::from(v));
2276    }
2277
2278    /// Gets `ValuationMethod`, Tag 1197.
2279    pub fn get_valuation_method(&self) -> Result<String, MessageRejectErrorEnum> {
2280        let mut fld = field::ValuationMethodField::new(String::new());
2281        self.message.body.get_field(tag::VALUATION_METHOD, &mut fld.0)?;
2282        Ok(fld.value().to_string())
2283    }
2284
2285
2286    /// Returns true if `ValuationMethod` is present, Tag 1197.
2287    pub fn has_valuation_method(&self) -> bool {
2288        self.message.body.has(tag::VALUATION_METHOD)
2289    }
2290
2291
2292}
2293
2294/// `RouteOut` is the callback type for routing `OrderStatusRequest` messages.
2295pub type RouteOut = fn(msg: OrderStatusRequest, session_id: SessionID) -> Result<(), MessageRejectErrorEnum>;
2296
2297/// Route type returned by the `route` function.
2298pub type Route = (&'static str, &'static str, Box<dyn Fn(&Message, SessionID) -> Result<(), MessageRejectErrorEnum> + Send>);
2299
2300/// Returns the begin string, message type, and route function for `OrderStatusRequest`.
2301pub fn route(router: RouteOut) -> Route {
2302    let r = move |msg: &Message, session_id: SessionID| -> Result<(), MessageRejectErrorEnum> {
2303        router(OrderStatusRequest::from_message(msg.clone()), session_id)
2304    };
2305    ("9", "H", Box::new(r))
2306}