Skip to main content

fixer_fix/fix44/
confirmation.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/// `Confirmation` is the `fix44` `Confirmation` type, `MsgType` = AK.
21pub struct Confirmation {
22    pub message: Message,
23}
24
25impl Confirmation {
26    /// Creates a new `Confirmation` with required fields.
27    pub fn new(confirm_id: field::ConfirmIDField, confirm_trans_type: field::ConfirmTransTypeField, confirm_type: field::ConfirmTypeField, confirm_status: field::ConfirmStatusField, transact_time: field::TransactTimeField, trade_date: field::TradeDateField, no_underlyings: field::NoUnderlyingsField, no_legs: field::NoLegsField, alloc_qty: field::AllocQtyField, side: field::SideField, no_capacities: field::NoCapacitiesField, alloc_account: field::AllocAccountField, avg_px: field::AvgPxField, gross_trade_amt: field::GrossTradeAmtField, net_money: field::NetMoneyField) -> Self {
28        let mut msg = Message::new();
29        msg.header.set_field(tag::MSG_TYPE, FIXString::from("AK".to_string()));
30
31        msg.body.set_field(tag::CONFIRM_ID, confirm_id.0);
32
33        msg.body.set_field(tag::CONFIRM_TRANS_TYPE, confirm_trans_type.0);
34
35        msg.body.set_field(tag::CONFIRM_TYPE, confirm_type.0);
36
37        msg.body.set_field(tag::CONFIRM_STATUS, confirm_status.0);
38
39        msg.body.set_field(tag::TRANSACT_TIME, transact_time.0);
40
41        msg.body.set_field(tag::TRADE_DATE, trade_date.0);
42
43        msg.body.set_field(tag::NO_UNDERLYINGS, no_underlyings.0);
44
45        msg.body.set_field(tag::NO_LEGS, no_legs.0);
46
47        msg.body.set_field(tag::ALLOC_QTY, alloc_qty.0);
48
49        msg.body.set_field(tag::SIDE, side.0);
50
51        msg.body.set_field(tag::NO_CAPACITIES, no_capacities.0);
52
53        msg.body.set_field(tag::ALLOC_ACCOUNT, alloc_account.0);
54
55        msg.body.set_field(tag::AVG_PX, avg_px.0);
56
57        msg.body.set_field(tag::GROSS_TRADE_AMT, gross_trade_amt.0);
58
59        msg.body.set_field(tag::NET_MONEY, net_money.0);
60
61        Self { message: msg }
62    }
63
64    /// Creates a `Confirmation` from an existing `Message`.
65    pub fn from_message(msg: Message) -> Self {
66        Self { message: msg }
67    }
68
69    /// Returns the underlying `Message`.
70    pub fn to_message(self) -> Message {
71        self.message
72    }
73
74
75
76
77    /// Sets `AccruedInterestAmt`, Tag 159.
78    pub fn set_accrued_interest_amt(&mut self, val: Decimal, scale: i32) {
79        self.message.body.set_field(tag::ACCRUED_INTEREST_AMT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
80    }
81
82    /// Gets `AccruedInterestAmt`, Tag 159.
83    pub fn get_accrued_interest_amt(&self) -> Result<Decimal, MessageRejectErrorEnum> {
84        let mut fld = field::AccruedInterestAmtField::new(Decimal::ZERO, 0);
85        self.message.body.get_field(tag::ACCRUED_INTEREST_AMT, &mut fld.0)?;
86        Ok(fld.value())
87    }
88
89
90    /// Returns true if `AccruedInterestAmt` is present, Tag 159.
91    pub fn has_accrued_interest_amt(&self) -> bool {
92        self.message.body.has(tag::ACCRUED_INTEREST_AMT)
93    }
94
95
96
97
98    /// Sets `AccruedInterestRate`, Tag 158.
99    pub fn set_accrued_interest_rate(&mut self, val: Decimal, scale: i32) {
100        self.message.body.set_field(tag::ACCRUED_INTEREST_RATE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
101    }
102
103    /// Gets `AccruedInterestRate`, Tag 158.
104    pub fn get_accrued_interest_rate(&self) -> Result<Decimal, MessageRejectErrorEnum> {
105        let mut fld = field::AccruedInterestRateField::new(Decimal::ZERO, 0);
106        self.message.body.get_field(tag::ACCRUED_INTEREST_RATE, &mut fld.0)?;
107        Ok(fld.value())
108    }
109
110
111    /// Returns true if `AccruedInterestRate` is present, Tag 158.
112    pub fn has_accrued_interest_rate(&self) -> bool {
113        self.message.body.has(tag::ACCRUED_INTEREST_RATE)
114    }
115
116
117
118
119    /// Sets `AgreementCurrency`, Tag 918.
120    pub fn set_agreement_currency(&mut self, v: String) {
121        self.message.body.set_field(tag::AGREEMENT_CURRENCY, FIXString::from(v));
122    }
123
124    /// Gets `AgreementCurrency`, Tag 918.
125    pub fn get_agreement_currency(&self) -> Result<String, MessageRejectErrorEnum> {
126        let mut fld = field::AgreementCurrencyField::new(String::new());
127        self.message.body.get_field(tag::AGREEMENT_CURRENCY, &mut fld.0)?;
128        Ok(fld.value().to_string())
129    }
130
131
132    /// Returns true if `AgreementCurrency` is present, Tag 918.
133    pub fn has_agreement_currency(&self) -> bool {
134        self.message.body.has(tag::AGREEMENT_CURRENCY)
135    }
136
137
138
139
140    /// Sets `AgreementDate`, Tag 915.
141    pub fn set_agreement_date(&mut self, v: String) {
142        self.message.body.set_field(tag::AGREEMENT_DATE, FIXString::from(v));
143    }
144
145    /// Gets `AgreementDate`, Tag 915.
146    pub fn get_agreement_date(&self) -> Result<String, MessageRejectErrorEnum> {
147        let mut fld = field::AgreementDateField::new(String::new());
148        self.message.body.get_field(tag::AGREEMENT_DATE, &mut fld.0)?;
149        Ok(fld.value().to_string())
150    }
151
152
153    /// Returns true if `AgreementDate` is present, Tag 915.
154    pub fn has_agreement_date(&self) -> bool {
155        self.message.body.has(tag::AGREEMENT_DATE)
156    }
157
158
159
160
161    /// Sets `AgreementDesc`, Tag 913.
162    pub fn set_agreement_desc(&mut self, v: String) {
163        self.message.body.set_field(tag::AGREEMENT_DESC, FIXString::from(v));
164    }
165
166    /// Gets `AgreementDesc`, Tag 913.
167    pub fn get_agreement_desc(&self) -> Result<String, MessageRejectErrorEnum> {
168        let mut fld = field::AgreementDescField::new(String::new());
169        self.message.body.get_field(tag::AGREEMENT_DESC, &mut fld.0)?;
170        Ok(fld.value().to_string())
171    }
172
173
174    /// Returns true if `AgreementDesc` is present, Tag 913.
175    pub fn has_agreement_desc(&self) -> bool {
176        self.message.body.has(tag::AGREEMENT_DESC)
177    }
178
179
180
181
182    /// Sets `AgreementID`, Tag 914.
183    pub fn set_agreement_id(&mut self, v: String) {
184        self.message.body.set_field(tag::AGREEMENT_ID, FIXString::from(v));
185    }
186
187    /// Gets `AgreementID`, Tag 914.
188    pub fn get_agreement_id(&self) -> Result<String, MessageRejectErrorEnum> {
189        let mut fld = field::AgreementIDField::new(String::new());
190        self.message.body.get_field(tag::AGREEMENT_ID, &mut fld.0)?;
191        Ok(fld.value().to_string())
192    }
193
194
195    /// Returns true if `AgreementID` is present, Tag 914.
196    pub fn has_agreement_id(&self) -> bool {
197        self.message.body.has(tag::AGREEMENT_ID)
198    }
199
200
201
202
203    /// Sets `AllocAccount`, Tag 79.
204    pub fn set_alloc_account(&mut self, v: String) {
205        self.message.body.set_field(tag::ALLOC_ACCOUNT, FIXString::from(v));
206    }
207
208    /// Gets `AllocAccount`, Tag 79.
209    pub fn get_alloc_account(&self) -> Result<String, MessageRejectErrorEnum> {
210        let mut fld = field::AllocAccountField::new(String::new());
211        self.message.body.get_field(tag::ALLOC_ACCOUNT, &mut fld.0)?;
212        Ok(fld.value().to_string())
213    }
214
215
216    /// Returns true if `AllocAccount` is present, Tag 79.
217    pub fn has_alloc_account(&self) -> bool {
218        self.message.body.has(tag::ALLOC_ACCOUNT)
219    }
220
221
222
223
224    /// Sets `AllocAccountType`, Tag 798.
225    pub fn set_alloc_account_type(&mut self, v: isize) {
226        self.message.body.set_field(tag::ALLOC_ACCOUNT_TYPE, fixer::fix_int::FIXInt::from(v));
227    }
228
229    /// Gets `AllocAccountType`, Tag 798.
230    pub fn get_alloc_account_type(&self) -> Result<isize, MessageRejectErrorEnum> {
231        let mut fld = field::AllocAccountTypeField::new(0);
232        self.message.body.get_field(tag::ALLOC_ACCOUNT_TYPE, &mut fld.0)?;
233        Ok(fld.value())
234    }
235
236
237    /// Returns true if `AllocAccountType` is present, Tag 798.
238    pub fn has_alloc_account_type(&self) -> bool {
239        self.message.body.has(tag::ALLOC_ACCOUNT_TYPE)
240    }
241
242
243
244
245    /// Sets `AllocAcctIDSource`, Tag 661.
246    pub fn set_alloc_acct_id_source(&mut self, v: isize) {
247        self.message.body.set_field(tag::ALLOC_ACCT_ID_SOURCE, fixer::fix_int::FIXInt::from(v));
248    }
249
250    /// Gets `AllocAcctIDSource`, Tag 661.
251    pub fn get_alloc_acct_id_source(&self) -> Result<isize, MessageRejectErrorEnum> {
252        let mut fld = field::AllocAcctIDSourceField::new(0);
253        self.message.body.get_field(tag::ALLOC_ACCT_ID_SOURCE, &mut fld.0)?;
254        Ok(fld.value())
255    }
256
257
258    /// Returns true if `AllocAcctIDSource` is present, Tag 661.
259    pub fn has_alloc_acct_id_source(&self) -> bool {
260        self.message.body.has(tag::ALLOC_ACCT_ID_SOURCE)
261    }
262
263
264
265
266    /// Sets `AllocID`, Tag 70.
267    pub fn set_alloc_id(&mut self, v: String) {
268        self.message.body.set_field(tag::ALLOC_ID, FIXString::from(v));
269    }
270
271    /// Gets `AllocID`, Tag 70.
272    pub fn get_alloc_id(&self) -> Result<String, MessageRejectErrorEnum> {
273        let mut fld = field::AllocIDField::new(String::new());
274        self.message.body.get_field(tag::ALLOC_ID, &mut fld.0)?;
275        Ok(fld.value().to_string())
276    }
277
278
279    /// Returns true if `AllocID` is present, Tag 70.
280    pub fn has_alloc_id(&self) -> bool {
281        self.message.body.has(tag::ALLOC_ID)
282    }
283
284
285
286
287    /// Sets `AllocQty`, Tag 80.
288    pub fn set_alloc_qty(&mut self, val: Decimal, scale: i32) {
289        self.message.body.set_field(tag::ALLOC_QTY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
290    }
291
292    /// Gets `AllocQty`, Tag 80.
293    pub fn get_alloc_qty(&self) -> Result<Decimal, MessageRejectErrorEnum> {
294        let mut fld = field::AllocQtyField::new(Decimal::ZERO, 0);
295        self.message.body.get_field(tag::ALLOC_QTY, &mut fld.0)?;
296        Ok(fld.value())
297    }
298
299
300    /// Returns true if `AllocQty` is present, Tag 80.
301    pub fn has_alloc_qty(&self) -> bool {
302        self.message.body.has(tag::ALLOC_QTY)
303    }
304
305
306
307
308    /// Sets `AvgParPx`, Tag 860.
309    pub fn set_avg_par_px(&mut self, val: Decimal, scale: i32) {
310        self.message.body.set_field(tag::AVG_PAR_PX, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
311    }
312
313    /// Gets `AvgParPx`, Tag 860.
314    pub fn get_avg_par_px(&self) -> Result<Decimal, MessageRejectErrorEnum> {
315        let mut fld = field::AvgParPxField::new(Decimal::ZERO, 0);
316        self.message.body.get_field(tag::AVG_PAR_PX, &mut fld.0)?;
317        Ok(fld.value())
318    }
319
320
321    /// Returns true if `AvgParPx` is present, Tag 860.
322    pub fn has_avg_par_px(&self) -> bool {
323        self.message.body.has(tag::AVG_PAR_PX)
324    }
325
326
327
328
329    /// Sets `AvgPx`, Tag 6.
330    pub fn set_avg_px(&mut self, val: Decimal, scale: i32) {
331        self.message.body.set_field(tag::AVG_PX, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
332    }
333
334    /// Gets `AvgPx`, Tag 6.
335    pub fn get_avg_px(&self) -> Result<Decimal, MessageRejectErrorEnum> {
336        let mut fld = field::AvgPxField::new(Decimal::ZERO, 0);
337        self.message.body.get_field(tag::AVG_PX, &mut fld.0)?;
338        Ok(fld.value())
339    }
340
341
342    /// Returns true if `AvgPx` is present, Tag 6.
343    pub fn has_avg_px(&self) -> bool {
344        self.message.body.has(tag::AVG_PX)
345    }
346
347
348
349
350    /// Sets `AvgPxPrecision`, Tag 74.
351    pub fn set_avg_px_precision(&mut self, v: isize) {
352        self.message.body.set_field(tag::AVG_PX_PRECISION, fixer::fix_int::FIXInt::from(v));
353    }
354
355    /// Gets `AvgPxPrecision`, Tag 74.
356    pub fn get_avg_px_precision(&self) -> Result<isize, MessageRejectErrorEnum> {
357        let mut fld = field::AvgPxPrecisionField::new(0);
358        self.message.body.get_field(tag::AVG_PX_PRECISION, &mut fld.0)?;
359        Ok(fld.value())
360    }
361
362
363    /// Returns true if `AvgPxPrecision` is present, Tag 74.
364    pub fn has_avg_px_precision(&self) -> bool {
365        self.message.body.has(tag::AVG_PX_PRECISION)
366    }
367
368
369
370
371    /// Sets `BenchmarkCurveCurrency`, Tag 220.
372    pub fn set_benchmark_curve_currency(&mut self, v: String) {
373        self.message.body.set_field(tag::BENCHMARK_CURVE_CURRENCY, FIXString::from(v));
374    }
375
376    /// Gets `BenchmarkCurveCurrency`, Tag 220.
377    pub fn get_benchmark_curve_currency(&self) -> Result<String, MessageRejectErrorEnum> {
378        let mut fld = field::BenchmarkCurveCurrencyField::new(String::new());
379        self.message.body.get_field(tag::BENCHMARK_CURVE_CURRENCY, &mut fld.0)?;
380        Ok(fld.value().to_string())
381    }
382
383
384    /// Returns true if `BenchmarkCurveCurrency` is present, Tag 220.
385    pub fn has_benchmark_curve_currency(&self) -> bool {
386        self.message.body.has(tag::BENCHMARK_CURVE_CURRENCY)
387    }
388
389
390
391
392    /// Sets `BenchmarkCurveName`, Tag 221.
393    pub fn set_benchmark_curve_name(&mut self, v: String) {
394        self.message.body.set_field(tag::BENCHMARK_CURVE_NAME, FIXString::from(v));
395    }
396
397    /// Gets `BenchmarkCurveName`, Tag 221.
398    pub fn get_benchmark_curve_name(&self) -> Result<String, MessageRejectErrorEnum> {
399        let mut fld = field::BenchmarkCurveNameField::new(String::new());
400        self.message.body.get_field(tag::BENCHMARK_CURVE_NAME, &mut fld.0)?;
401        Ok(fld.value().to_string())
402    }
403
404
405    /// Returns true if `BenchmarkCurveName` is present, Tag 221.
406    pub fn has_benchmark_curve_name(&self) -> bool {
407        self.message.body.has(tag::BENCHMARK_CURVE_NAME)
408    }
409
410
411
412
413    /// Sets `BenchmarkCurvePoint`, Tag 222.
414    pub fn set_benchmark_curve_point(&mut self, v: String) {
415        self.message.body.set_field(tag::BENCHMARK_CURVE_POINT, FIXString::from(v));
416    }
417
418    /// Gets `BenchmarkCurvePoint`, Tag 222.
419    pub fn get_benchmark_curve_point(&self) -> Result<String, MessageRejectErrorEnum> {
420        let mut fld = field::BenchmarkCurvePointField::new(String::new());
421        self.message.body.get_field(tag::BENCHMARK_CURVE_POINT, &mut fld.0)?;
422        Ok(fld.value().to_string())
423    }
424
425
426    /// Returns true if `BenchmarkCurvePoint` is present, Tag 222.
427    pub fn has_benchmark_curve_point(&self) -> bool {
428        self.message.body.has(tag::BENCHMARK_CURVE_POINT)
429    }
430
431
432
433
434    /// Sets `BenchmarkPrice`, Tag 662.
435    pub fn set_benchmark_price(&mut self, val: Decimal, scale: i32) {
436        self.message.body.set_field(tag::BENCHMARK_PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
437    }
438
439    /// Gets `BenchmarkPrice`, Tag 662.
440    pub fn get_benchmark_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
441        let mut fld = field::BenchmarkPriceField::new(Decimal::ZERO, 0);
442        self.message.body.get_field(tag::BENCHMARK_PRICE, &mut fld.0)?;
443        Ok(fld.value())
444    }
445
446
447    /// Returns true if `BenchmarkPrice` is present, Tag 662.
448    pub fn has_benchmark_price(&self) -> bool {
449        self.message.body.has(tag::BENCHMARK_PRICE)
450    }
451
452
453
454
455    /// Sets `BenchmarkPriceType`, Tag 663.
456    pub fn set_benchmark_price_type(&mut self, v: isize) {
457        self.message.body.set_field(tag::BENCHMARK_PRICE_TYPE, fixer::fix_int::FIXInt::from(v));
458    }
459
460    /// Gets `BenchmarkPriceType`, Tag 663.
461    pub fn get_benchmark_price_type(&self) -> Result<isize, MessageRejectErrorEnum> {
462        let mut fld = field::BenchmarkPriceTypeField::new(0);
463        self.message.body.get_field(tag::BENCHMARK_PRICE_TYPE, &mut fld.0)?;
464        Ok(fld.value())
465    }
466
467
468    /// Returns true if `BenchmarkPriceType` is present, Tag 663.
469    pub fn has_benchmark_price_type(&self) -> bool {
470        self.message.body.has(tag::BENCHMARK_PRICE_TYPE)
471    }
472
473
474
475
476    /// Sets `BenchmarkSecurityID`, Tag 699.
477    pub fn set_benchmark_security_id(&mut self, v: String) {
478        self.message.body.set_field(tag::BENCHMARK_SECURITY_ID, FIXString::from(v));
479    }
480
481    /// Gets `BenchmarkSecurityID`, Tag 699.
482    pub fn get_benchmark_security_id(&self) -> Result<String, MessageRejectErrorEnum> {
483        let mut fld = field::BenchmarkSecurityIDField::new(String::new());
484        self.message.body.get_field(tag::BENCHMARK_SECURITY_ID, &mut fld.0)?;
485        Ok(fld.value().to_string())
486    }
487
488
489    /// Returns true if `BenchmarkSecurityID` is present, Tag 699.
490    pub fn has_benchmark_security_id(&self) -> bool {
491        self.message.body.has(tag::BENCHMARK_SECURITY_ID)
492    }
493
494
495
496
497    /// Sets `BenchmarkSecurityIDSource`, Tag 761.
498    pub fn set_benchmark_security_id_source(&mut self, v: String) {
499        self.message.body.set_field(tag::BENCHMARK_SECURITY_ID_SOURCE, FIXString::from(v));
500    }
501
502    /// Gets `BenchmarkSecurityIDSource`, Tag 761.
503    pub fn get_benchmark_security_id_source(&self) -> Result<String, MessageRejectErrorEnum> {
504        let mut fld = field::BenchmarkSecurityIDSourceField::new(String::new());
505        self.message.body.get_field(tag::BENCHMARK_SECURITY_ID_SOURCE, &mut fld.0)?;
506        Ok(fld.value().to_string())
507    }
508
509
510    /// Returns true if `BenchmarkSecurityIDSource` is present, Tag 761.
511    pub fn has_benchmark_security_id_source(&self) -> bool {
512        self.message.body.has(tag::BENCHMARK_SECURITY_ID_SOURCE)
513    }
514
515
516
517
518    /// Sets `CFICode`, Tag 461.
519    pub fn set_cfi_code(&mut self, v: String) {
520        self.message.body.set_field(tag::CFI_CODE, FIXString::from(v));
521    }
522
523    /// Gets `CFICode`, Tag 461.
524    pub fn get_cfi_code(&self) -> Result<String, MessageRejectErrorEnum> {
525        let mut fld = field::CFICodeField::new(String::new());
526        self.message.body.get_field(tag::CFI_CODE, &mut fld.0)?;
527        Ok(fld.value().to_string())
528    }
529
530
531    /// Returns true if `CFICode` is present, Tag 461.
532    pub fn has_cfi_code(&self) -> bool {
533        self.message.body.has(tag::CFI_CODE)
534    }
535
536
537
538
539    /// Sets `CPProgram`, Tag 875.
540    pub fn set_cp_program(&mut self, v: isize) {
541        self.message.body.set_field(tag::CP_PROGRAM, fixer::fix_int::FIXInt::from(v));
542    }
543
544    /// Gets `CPProgram`, Tag 875.
545    pub fn get_cp_program(&self) -> Result<isize, MessageRejectErrorEnum> {
546        let mut fld = field::CPProgramField::new(0);
547        self.message.body.get_field(tag::CP_PROGRAM, &mut fld.0)?;
548        Ok(fld.value())
549    }
550
551
552    /// Returns true if `CPProgram` is present, Tag 875.
553    pub fn has_cp_program(&self) -> bool {
554        self.message.body.has(tag::CP_PROGRAM)
555    }
556
557
558
559
560    /// Sets `CPRegType`, Tag 876.
561    pub fn set_cp_reg_type(&mut self, v: String) {
562        self.message.body.set_field(tag::CP_REG_TYPE, FIXString::from(v));
563    }
564
565    /// Gets `CPRegType`, Tag 876.
566    pub fn get_cp_reg_type(&self) -> Result<String, MessageRejectErrorEnum> {
567        let mut fld = field::CPRegTypeField::new(String::new());
568        self.message.body.get_field(tag::CP_REG_TYPE, &mut fld.0)?;
569        Ok(fld.value().to_string())
570    }
571
572
573    /// Returns true if `CPRegType` is present, Tag 876.
574    pub fn has_cp_reg_type(&self) -> bool {
575        self.message.body.has(tag::CP_REG_TYPE)
576    }
577
578
579
580
581    /// Sets `CommCurrency`, Tag 479.
582    pub fn set_comm_currency(&mut self, v: String) {
583        self.message.body.set_field(tag::COMM_CURRENCY, FIXString::from(v));
584    }
585
586    /// Gets `CommCurrency`, Tag 479.
587    pub fn get_comm_currency(&self) -> Result<String, MessageRejectErrorEnum> {
588        let mut fld = field::CommCurrencyField::new(String::new());
589        self.message.body.get_field(tag::COMM_CURRENCY, &mut fld.0)?;
590        Ok(fld.value().to_string())
591    }
592
593
594    /// Returns true if `CommCurrency` is present, Tag 479.
595    pub fn has_comm_currency(&self) -> bool {
596        self.message.body.has(tag::COMM_CURRENCY)
597    }
598
599
600
601
602    /// Sets `CommType`, Tag 13.
603    pub fn set_comm_type(&mut self, v: String) {
604        self.message.body.set_field(tag::COMM_TYPE, FIXString::from(v));
605    }
606
607    /// Gets `CommType`, Tag 13.
608    pub fn get_comm_type(&self) -> Result<String, MessageRejectErrorEnum> {
609        let mut fld = field::CommTypeField::new(String::new());
610        self.message.body.get_field(tag::COMM_TYPE, &mut fld.0)?;
611        Ok(fld.value().to_string())
612    }
613
614
615    /// Returns true if `CommType` is present, Tag 13.
616    pub fn has_comm_type(&self) -> bool {
617        self.message.body.has(tag::COMM_TYPE)
618    }
619
620
621
622
623    /// Sets `Commission`, Tag 12.
624    pub fn set_commission(&mut self, val: Decimal, scale: i32) {
625        self.message.body.set_field(tag::COMMISSION, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
626    }
627
628    /// Gets `Commission`, Tag 12.
629    pub fn get_commission(&self) -> Result<Decimal, MessageRejectErrorEnum> {
630        let mut fld = field::CommissionField::new(Decimal::ZERO, 0);
631        self.message.body.get_field(tag::COMMISSION, &mut fld.0)?;
632        Ok(fld.value())
633    }
634
635
636    /// Returns true if `Commission` is present, Tag 12.
637    pub fn has_commission(&self) -> bool {
638        self.message.body.has(tag::COMMISSION)
639    }
640
641
642
643
644    /// Sets `Concession`, Tag 238.
645    pub fn set_concession(&mut self, val: Decimal, scale: i32) {
646        self.message.body.set_field(tag::CONCESSION, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
647    }
648
649    /// Gets `Concession`, Tag 238.
650    pub fn get_concession(&self) -> Result<Decimal, MessageRejectErrorEnum> {
651        let mut fld = field::ConcessionField::new(Decimal::ZERO, 0);
652        self.message.body.get_field(tag::CONCESSION, &mut fld.0)?;
653        Ok(fld.value())
654    }
655
656
657    /// Returns true if `Concession` is present, Tag 238.
658    pub fn has_concession(&self) -> bool {
659        self.message.body.has(tag::CONCESSION)
660    }
661
662
663
664
665    /// Sets `ConfirmID`, Tag 664.
666    pub fn set_confirm_id(&mut self, v: String) {
667        self.message.body.set_field(tag::CONFIRM_ID, FIXString::from(v));
668    }
669
670    /// Gets `ConfirmID`, Tag 664.
671    pub fn get_confirm_id(&self) -> Result<String, MessageRejectErrorEnum> {
672        let mut fld = field::ConfirmIDField::new(String::new());
673        self.message.body.get_field(tag::CONFIRM_ID, &mut fld.0)?;
674        Ok(fld.value().to_string())
675    }
676
677
678    /// Returns true if `ConfirmID` is present, Tag 664.
679    pub fn has_confirm_id(&self) -> bool {
680        self.message.body.has(tag::CONFIRM_ID)
681    }
682
683
684
685
686    /// Sets `ConfirmRefID`, Tag 772.
687    pub fn set_confirm_ref_id(&mut self, v: String) {
688        self.message.body.set_field(tag::CONFIRM_REF_ID, FIXString::from(v));
689    }
690
691    /// Gets `ConfirmRefID`, Tag 772.
692    pub fn get_confirm_ref_id(&self) -> Result<String, MessageRejectErrorEnum> {
693        let mut fld = field::ConfirmRefIDField::new(String::new());
694        self.message.body.get_field(tag::CONFIRM_REF_ID, &mut fld.0)?;
695        Ok(fld.value().to_string())
696    }
697
698
699    /// Returns true if `ConfirmRefID` is present, Tag 772.
700    pub fn has_confirm_ref_id(&self) -> bool {
701        self.message.body.has(tag::CONFIRM_REF_ID)
702    }
703
704
705
706
707    /// Sets `ConfirmReqID`, Tag 859.
708    pub fn set_confirm_req_id(&mut self, v: String) {
709        self.message.body.set_field(tag::CONFIRM_REQ_ID, FIXString::from(v));
710    }
711
712    /// Gets `ConfirmReqID`, Tag 859.
713    pub fn get_confirm_req_id(&self) -> Result<String, MessageRejectErrorEnum> {
714        let mut fld = field::ConfirmReqIDField::new(String::new());
715        self.message.body.get_field(tag::CONFIRM_REQ_ID, &mut fld.0)?;
716        Ok(fld.value().to_string())
717    }
718
719
720    /// Returns true if `ConfirmReqID` is present, Tag 859.
721    pub fn has_confirm_req_id(&self) -> bool {
722        self.message.body.has(tag::CONFIRM_REQ_ID)
723    }
724
725
726
727
728    /// Sets `ConfirmStatus`, Tag 665.
729    pub fn set_confirm_status(&mut self, v: isize) {
730        self.message.body.set_field(tag::CONFIRM_STATUS, fixer::fix_int::FIXInt::from(v));
731    }
732
733    /// Gets `ConfirmStatus`, Tag 665.
734    pub fn get_confirm_status(&self) -> Result<isize, MessageRejectErrorEnum> {
735        let mut fld = field::ConfirmStatusField::new(0);
736        self.message.body.get_field(tag::CONFIRM_STATUS, &mut fld.0)?;
737        Ok(fld.value())
738    }
739
740
741    /// Returns true if `ConfirmStatus` is present, Tag 665.
742    pub fn has_confirm_status(&self) -> bool {
743        self.message.body.has(tag::CONFIRM_STATUS)
744    }
745
746
747
748
749    /// Sets `ConfirmTransType`, Tag 666.
750    pub fn set_confirm_trans_type(&mut self, v: isize) {
751        self.message.body.set_field(tag::CONFIRM_TRANS_TYPE, fixer::fix_int::FIXInt::from(v));
752    }
753
754    /// Gets `ConfirmTransType`, Tag 666.
755    pub fn get_confirm_trans_type(&self) -> Result<isize, MessageRejectErrorEnum> {
756        let mut fld = field::ConfirmTransTypeField::new(0);
757        self.message.body.get_field(tag::CONFIRM_TRANS_TYPE, &mut fld.0)?;
758        Ok(fld.value())
759    }
760
761
762    /// Returns true if `ConfirmTransType` is present, Tag 666.
763    pub fn has_confirm_trans_type(&self) -> bool {
764        self.message.body.has(tag::CONFIRM_TRANS_TYPE)
765    }
766
767
768
769
770    /// Sets `ConfirmType`, Tag 773.
771    pub fn set_confirm_type(&mut self, v: isize) {
772        self.message.body.set_field(tag::CONFIRM_TYPE, fixer::fix_int::FIXInt::from(v));
773    }
774
775    /// Gets `ConfirmType`, Tag 773.
776    pub fn get_confirm_type(&self) -> Result<isize, MessageRejectErrorEnum> {
777        let mut fld = field::ConfirmTypeField::new(0);
778        self.message.body.get_field(tag::CONFIRM_TYPE, &mut fld.0)?;
779        Ok(fld.value())
780    }
781
782
783    /// Returns true if `ConfirmType` is present, Tag 773.
784    pub fn has_confirm_type(&self) -> bool {
785        self.message.body.has(tag::CONFIRM_TYPE)
786    }
787
788
789
790
791    /// Sets `ContractMultiplier`, Tag 231.
792    pub fn set_contract_multiplier(&mut self, val: Decimal, scale: i32) {
793        self.message.body.set_field(tag::CONTRACT_MULTIPLIER, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
794    }
795
796    /// Gets `ContractMultiplier`, Tag 231.
797    pub fn get_contract_multiplier(&self) -> Result<Decimal, MessageRejectErrorEnum> {
798        let mut fld = field::ContractMultiplierField::new(Decimal::ZERO, 0);
799        self.message.body.get_field(tag::CONTRACT_MULTIPLIER, &mut fld.0)?;
800        Ok(fld.value())
801    }
802
803
804    /// Returns true if `ContractMultiplier` is present, Tag 231.
805    pub fn has_contract_multiplier(&self) -> bool {
806        self.message.body.has(tag::CONTRACT_MULTIPLIER)
807    }
808
809
810
811
812    /// Sets `ContractSettlMonth`, Tag 667.
813    pub fn set_contract_settl_month(&mut self, v: String) {
814        self.message.body.set_field(tag::CONTRACT_SETTL_MONTH, FIXString::from(v));
815    }
816
817    /// Gets `ContractSettlMonth`, Tag 667.
818    pub fn get_contract_settl_month(&self) -> Result<String, MessageRejectErrorEnum> {
819        let mut fld = field::ContractSettlMonthField::new(String::new());
820        self.message.body.get_field(tag::CONTRACT_SETTL_MONTH, &mut fld.0)?;
821        Ok(fld.value().to_string())
822    }
823
824
825    /// Returns true if `ContractSettlMonth` is present, Tag 667.
826    pub fn has_contract_settl_month(&self) -> bool {
827        self.message.body.has(tag::CONTRACT_SETTL_MONTH)
828    }
829
830
831
832
833    /// Sets `CopyMsgIndicator`, Tag 797.
834    pub fn set_copy_msg_indicator(&mut self, v: bool) {
835        self.message.body.set_field(tag::COPY_MSG_INDICATOR, fixer::fix_boolean::FIXBoolean::from(v));
836    }
837
838    /// Gets `CopyMsgIndicator`, Tag 797.
839    pub fn get_copy_msg_indicator(&self) -> Result<bool, MessageRejectErrorEnum> {
840        let mut fld = field::CopyMsgIndicatorField::new(false);
841        self.message.body.get_field(tag::COPY_MSG_INDICATOR, &mut fld.0)?;
842        Ok(fld.value())
843    }
844
845
846    /// Returns true if `CopyMsgIndicator` is present, Tag 797.
847    pub fn has_copy_msg_indicator(&self) -> bool {
848        self.message.body.has(tag::COPY_MSG_INDICATOR)
849    }
850
851
852
853
854    /// Sets `CountryOfIssue`, Tag 470.
855    pub fn set_country_of_issue(&mut self, v: String) {
856        self.message.body.set_field(tag::COUNTRY_OF_ISSUE, FIXString::from(v));
857    }
858
859    /// Gets `CountryOfIssue`, Tag 470.
860    pub fn get_country_of_issue(&self) -> Result<String, MessageRejectErrorEnum> {
861        let mut fld = field::CountryOfIssueField::new(String::new());
862        self.message.body.get_field(tag::COUNTRY_OF_ISSUE, &mut fld.0)?;
863        Ok(fld.value().to_string())
864    }
865
866
867    /// Returns true if `CountryOfIssue` is present, Tag 470.
868    pub fn has_country_of_issue(&self) -> bool {
869        self.message.body.has(tag::COUNTRY_OF_ISSUE)
870    }
871
872
873
874
875    /// Sets `CouponPaymentDate`, Tag 224.
876    pub fn set_coupon_payment_date(&mut self, v: String) {
877        self.message.body.set_field(tag::COUPON_PAYMENT_DATE, FIXString::from(v));
878    }
879
880    /// Gets `CouponPaymentDate`, Tag 224.
881    pub fn get_coupon_payment_date(&self) -> Result<String, MessageRejectErrorEnum> {
882        let mut fld = field::CouponPaymentDateField::new(String::new());
883        self.message.body.get_field(tag::COUPON_PAYMENT_DATE, &mut fld.0)?;
884        Ok(fld.value().to_string())
885    }
886
887
888    /// Returns true if `CouponPaymentDate` is present, Tag 224.
889    pub fn has_coupon_payment_date(&self) -> bool {
890        self.message.body.has(tag::COUPON_PAYMENT_DATE)
891    }
892
893
894
895
896    /// Sets `CouponRate`, Tag 223.
897    pub fn set_coupon_rate(&mut self, val: Decimal, scale: i32) {
898        self.message.body.set_field(tag::COUPON_RATE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
899    }
900
901    /// Gets `CouponRate`, Tag 223.
902    pub fn get_coupon_rate(&self) -> Result<Decimal, MessageRejectErrorEnum> {
903        let mut fld = field::CouponRateField::new(Decimal::ZERO, 0);
904        self.message.body.get_field(tag::COUPON_RATE, &mut fld.0)?;
905        Ok(fld.value())
906    }
907
908
909    /// Returns true if `CouponRate` is present, Tag 223.
910    pub fn has_coupon_rate(&self) -> bool {
911        self.message.body.has(tag::COUPON_RATE)
912    }
913
914
915
916
917    /// Sets `CreditRating`, Tag 255.
918    pub fn set_credit_rating(&mut self, v: String) {
919        self.message.body.set_field(tag::CREDIT_RATING, FIXString::from(v));
920    }
921
922    /// Gets `CreditRating`, Tag 255.
923    pub fn get_credit_rating(&self) -> Result<String, MessageRejectErrorEnum> {
924        let mut fld = field::CreditRatingField::new(String::new());
925        self.message.body.get_field(tag::CREDIT_RATING, &mut fld.0)?;
926        Ok(fld.value().to_string())
927    }
928
929
930    /// Returns true if `CreditRating` is present, Tag 255.
931    pub fn has_credit_rating(&self) -> bool {
932        self.message.body.has(tag::CREDIT_RATING)
933    }
934
935
936
937
938    /// Sets `Currency`, Tag 15.
939    pub fn set_currency(&mut self, v: String) {
940        self.message.body.set_field(tag::CURRENCY, FIXString::from(v));
941    }
942
943    /// Gets `Currency`, Tag 15.
944    pub fn get_currency(&self) -> Result<String, MessageRejectErrorEnum> {
945        let mut fld = field::CurrencyField::new(String::new());
946        self.message.body.get_field(tag::CURRENCY, &mut fld.0)?;
947        Ok(fld.value().to_string())
948    }
949
950
951    /// Returns true if `Currency` is present, Tag 15.
952    pub fn has_currency(&self) -> bool {
953        self.message.body.has(tag::CURRENCY)
954    }
955
956
957
958
959    /// Sets `DatedDate`, Tag 873.
960    pub fn set_dated_date(&mut self, v: String) {
961        self.message.body.set_field(tag::DATED_DATE, FIXString::from(v));
962    }
963
964    /// Gets `DatedDate`, Tag 873.
965    pub fn get_dated_date(&self) -> Result<String, MessageRejectErrorEnum> {
966        let mut fld = field::DatedDateField::new(String::new());
967        self.message.body.get_field(tag::DATED_DATE, &mut fld.0)?;
968        Ok(fld.value().to_string())
969    }
970
971
972    /// Returns true if `DatedDate` is present, Tag 873.
973    pub fn has_dated_date(&self) -> bool {
974        self.message.body.has(tag::DATED_DATE)
975    }
976
977
978
979
980    /// Sets `DeliveryForm`, Tag 668.
981    pub fn set_delivery_form(&mut self, v: isize) {
982        self.message.body.set_field(tag::DELIVERY_FORM, fixer::fix_int::FIXInt::from(v));
983    }
984
985    /// Gets `DeliveryForm`, Tag 668.
986    pub fn get_delivery_form(&self) -> Result<isize, MessageRejectErrorEnum> {
987        let mut fld = field::DeliveryFormField::new(0);
988        self.message.body.get_field(tag::DELIVERY_FORM, &mut fld.0)?;
989        Ok(fld.value())
990    }
991
992
993    /// Returns true if `DeliveryForm` is present, Tag 668.
994    pub fn has_delivery_form(&self) -> bool {
995        self.message.body.has(tag::DELIVERY_FORM)
996    }
997
998
999
1000
1001    /// Sets `DeliveryType`, Tag 919.
1002    pub fn set_delivery_type(&mut self, v: isize) {
1003        self.message.body.set_field(tag::DELIVERY_TYPE, fixer::fix_int::FIXInt::from(v));
1004    }
1005
1006    /// Gets `DeliveryType`, Tag 919.
1007    pub fn get_delivery_type(&self) -> Result<isize, MessageRejectErrorEnum> {
1008        let mut fld = field::DeliveryTypeField::new(0);
1009        self.message.body.get_field(tag::DELIVERY_TYPE, &mut fld.0)?;
1010        Ok(fld.value())
1011    }
1012
1013
1014    /// Returns true if `DeliveryType` is present, Tag 919.
1015    pub fn has_delivery_type(&self) -> bool {
1016        self.message.body.has(tag::DELIVERY_TYPE)
1017    }
1018
1019
1020
1021
1022    /// Sets `EncodedIssuer`, Tag 349.
1023    pub fn set_encoded_issuer(&mut self, v: String) {
1024        self.message.body.set_field(tag::ENCODED_ISSUER, FIXString::from(v));
1025    }
1026
1027    /// Gets `EncodedIssuer`, Tag 349.
1028    pub fn get_encoded_issuer(&self) -> Result<String, MessageRejectErrorEnum> {
1029        let mut fld = field::EncodedIssuerField::new(String::new());
1030        self.message.body.get_field(tag::ENCODED_ISSUER, &mut fld.0)?;
1031        Ok(fld.value().to_string())
1032    }
1033
1034
1035    /// Returns true if `EncodedIssuer` is present, Tag 349.
1036    pub fn has_encoded_issuer(&self) -> bool {
1037        self.message.body.has(tag::ENCODED_ISSUER)
1038    }
1039
1040
1041
1042
1043    /// Sets `EncodedIssuerLen`, Tag 348.
1044    pub fn set_encoded_issuer_len(&mut self, v: isize) {
1045        self.message.body.set_field(tag::ENCODED_ISSUER_LEN, fixer::fix_int::FIXInt::from(v));
1046    }
1047
1048    /// Gets `EncodedIssuerLen`, Tag 348.
1049    pub fn get_encoded_issuer_len(&self) -> Result<isize, MessageRejectErrorEnum> {
1050        let mut fld = field::EncodedIssuerLenField::new(0);
1051        self.message.body.get_field(tag::ENCODED_ISSUER_LEN, &mut fld.0)?;
1052        Ok(fld.value())
1053    }
1054
1055
1056    /// Returns true if `EncodedIssuerLen` is present, Tag 348.
1057    pub fn has_encoded_issuer_len(&self) -> bool {
1058        self.message.body.has(tag::ENCODED_ISSUER_LEN)
1059    }
1060
1061
1062
1063
1064    /// Sets `EncodedSecurityDesc`, Tag 351.
1065    pub fn set_encoded_security_desc(&mut self, v: String) {
1066        self.message.body.set_field(tag::ENCODED_SECURITY_DESC, FIXString::from(v));
1067    }
1068
1069    /// Gets `EncodedSecurityDesc`, Tag 351.
1070    pub fn get_encoded_security_desc(&self) -> Result<String, MessageRejectErrorEnum> {
1071        let mut fld = field::EncodedSecurityDescField::new(String::new());
1072        self.message.body.get_field(tag::ENCODED_SECURITY_DESC, &mut fld.0)?;
1073        Ok(fld.value().to_string())
1074    }
1075
1076
1077    /// Returns true if `EncodedSecurityDesc` is present, Tag 351.
1078    pub fn has_encoded_security_desc(&self) -> bool {
1079        self.message.body.has(tag::ENCODED_SECURITY_DESC)
1080    }
1081
1082
1083
1084
1085    /// Sets `EncodedSecurityDescLen`, Tag 350.
1086    pub fn set_encoded_security_desc_len(&mut self, v: isize) {
1087        self.message.body.set_field(tag::ENCODED_SECURITY_DESC_LEN, fixer::fix_int::FIXInt::from(v));
1088    }
1089
1090    /// Gets `EncodedSecurityDescLen`, Tag 350.
1091    pub fn get_encoded_security_desc_len(&self) -> Result<isize, MessageRejectErrorEnum> {
1092        let mut fld = field::EncodedSecurityDescLenField::new(0);
1093        self.message.body.get_field(tag::ENCODED_SECURITY_DESC_LEN, &mut fld.0)?;
1094        Ok(fld.value())
1095    }
1096
1097
1098    /// Returns true if `EncodedSecurityDescLen` is present, Tag 350.
1099    pub fn has_encoded_security_desc_len(&self) -> bool {
1100        self.message.body.has(tag::ENCODED_SECURITY_DESC_LEN)
1101    }
1102
1103
1104
1105
1106    /// Sets `EncodedText`, Tag 355.
1107    pub fn set_encoded_text(&mut self, v: String) {
1108        self.message.body.set_field(tag::ENCODED_TEXT, FIXString::from(v));
1109    }
1110
1111    /// Gets `EncodedText`, Tag 355.
1112    pub fn get_encoded_text(&self) -> Result<String, MessageRejectErrorEnum> {
1113        let mut fld = field::EncodedTextField::new(String::new());
1114        self.message.body.get_field(tag::ENCODED_TEXT, &mut fld.0)?;
1115        Ok(fld.value().to_string())
1116    }
1117
1118
1119    /// Returns true if `EncodedText` is present, Tag 355.
1120    pub fn has_encoded_text(&self) -> bool {
1121        self.message.body.has(tag::ENCODED_TEXT)
1122    }
1123
1124
1125
1126
1127    /// Sets `EncodedTextLen`, Tag 354.
1128    pub fn set_encoded_text_len(&mut self, v: isize) {
1129        self.message.body.set_field(tag::ENCODED_TEXT_LEN, fixer::fix_int::FIXInt::from(v));
1130    }
1131
1132    /// Gets `EncodedTextLen`, Tag 354.
1133    pub fn get_encoded_text_len(&self) -> Result<isize, MessageRejectErrorEnum> {
1134        let mut fld = field::EncodedTextLenField::new(0);
1135        self.message.body.get_field(tag::ENCODED_TEXT_LEN, &mut fld.0)?;
1136        Ok(fld.value())
1137    }
1138
1139
1140    /// Returns true if `EncodedTextLen` is present, Tag 354.
1141    pub fn has_encoded_text_len(&self) -> bool {
1142        self.message.body.has(tag::ENCODED_TEXT_LEN)
1143    }
1144
1145
1146
1147
1148    /// Sets `EndAccruedInterestAmt`, Tag 920.
1149    pub fn set_end_accrued_interest_amt(&mut self, val: Decimal, scale: i32) {
1150        self.message.body.set_field(tag::END_ACCRUED_INTEREST_AMT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1151    }
1152
1153    /// Gets `EndAccruedInterestAmt`, Tag 920.
1154    pub fn get_end_accrued_interest_amt(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1155        let mut fld = field::EndAccruedInterestAmtField::new(Decimal::ZERO, 0);
1156        self.message.body.get_field(tag::END_ACCRUED_INTEREST_AMT, &mut fld.0)?;
1157        Ok(fld.value())
1158    }
1159
1160
1161    /// Returns true if `EndAccruedInterestAmt` is present, Tag 920.
1162    pub fn has_end_accrued_interest_amt(&self) -> bool {
1163        self.message.body.has(tag::END_ACCRUED_INTEREST_AMT)
1164    }
1165
1166
1167
1168
1169    /// Sets `EndCash`, Tag 922.
1170    pub fn set_end_cash(&mut self, val: Decimal, scale: i32) {
1171        self.message.body.set_field(tag::END_CASH, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1172    }
1173
1174    /// Gets `EndCash`, Tag 922.
1175    pub fn get_end_cash(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1176        let mut fld = field::EndCashField::new(Decimal::ZERO, 0);
1177        self.message.body.get_field(tag::END_CASH, &mut fld.0)?;
1178        Ok(fld.value())
1179    }
1180
1181
1182    /// Returns true if `EndCash` is present, Tag 922.
1183    pub fn has_end_cash(&self) -> bool {
1184        self.message.body.has(tag::END_CASH)
1185    }
1186
1187
1188
1189
1190    /// Sets `EndDate`, Tag 917.
1191    pub fn set_end_date(&mut self, v: String) {
1192        self.message.body.set_field(tag::END_DATE, FIXString::from(v));
1193    }
1194
1195    /// Gets `EndDate`, Tag 917.
1196    pub fn get_end_date(&self) -> Result<String, MessageRejectErrorEnum> {
1197        let mut fld = field::EndDateField::new(String::new());
1198        self.message.body.get_field(tag::END_DATE, &mut fld.0)?;
1199        Ok(fld.value().to_string())
1200    }
1201
1202
1203    /// Returns true if `EndDate` is present, Tag 917.
1204    pub fn has_end_date(&self) -> bool {
1205        self.message.body.has(tag::END_DATE)
1206    }
1207
1208
1209
1210
1211    /// Sets `ExDate`, Tag 230.
1212    pub fn set_ex_date(&mut self, v: String) {
1213        self.message.body.set_field(tag::EX_DATE, FIXString::from(v));
1214    }
1215
1216    /// Gets `ExDate`, Tag 230.
1217    pub fn get_ex_date(&self) -> Result<String, MessageRejectErrorEnum> {
1218        let mut fld = field::ExDateField::new(String::new());
1219        self.message.body.get_field(tag::EX_DATE, &mut fld.0)?;
1220        Ok(fld.value().to_string())
1221    }
1222
1223
1224    /// Returns true if `ExDate` is present, Tag 230.
1225    pub fn has_ex_date(&self) -> bool {
1226        self.message.body.has(tag::EX_DATE)
1227    }
1228
1229
1230
1231
1232    /// Sets `Factor`, Tag 228.
1233    pub fn set_factor(&mut self, val: Decimal, scale: i32) {
1234        self.message.body.set_field(tag::FACTOR, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1235    }
1236
1237    /// Gets `Factor`, Tag 228.
1238    pub fn get_factor(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1239        let mut fld = field::FactorField::new(Decimal::ZERO, 0);
1240        self.message.body.get_field(tag::FACTOR, &mut fld.0)?;
1241        Ok(fld.value())
1242    }
1243
1244
1245    /// Returns true if `Factor` is present, Tag 228.
1246    pub fn has_factor(&self) -> bool {
1247        self.message.body.has(tag::FACTOR)
1248    }
1249
1250
1251
1252
1253    /// Sets `FundRenewWaiv`, Tag 497.
1254    pub fn set_fund_renew_waiv(&mut self, v: String) {
1255        self.message.body.set_field(tag::FUND_RENEW_WAIV, FIXString::from(v));
1256    }
1257
1258    /// Gets `FundRenewWaiv`, Tag 497.
1259    pub fn get_fund_renew_waiv(&self) -> Result<String, MessageRejectErrorEnum> {
1260        let mut fld = field::FundRenewWaivField::new(String::new());
1261        self.message.body.get_field(tag::FUND_RENEW_WAIV, &mut fld.0)?;
1262        Ok(fld.value().to_string())
1263    }
1264
1265
1266    /// Returns true if `FundRenewWaiv` is present, Tag 497.
1267    pub fn has_fund_renew_waiv(&self) -> bool {
1268        self.message.body.has(tag::FUND_RENEW_WAIV)
1269    }
1270
1271
1272
1273
1274    /// Sets `GrossTradeAmt`, Tag 381.
1275    pub fn set_gross_trade_amt(&mut self, val: Decimal, scale: i32) {
1276        self.message.body.set_field(tag::GROSS_TRADE_AMT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1277    }
1278
1279    /// Gets `GrossTradeAmt`, Tag 381.
1280    pub fn get_gross_trade_amt(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1281        let mut fld = field::GrossTradeAmtField::new(Decimal::ZERO, 0);
1282        self.message.body.get_field(tag::GROSS_TRADE_AMT, &mut fld.0)?;
1283        Ok(fld.value())
1284    }
1285
1286
1287    /// Returns true if `GrossTradeAmt` is present, Tag 381.
1288    pub fn has_gross_trade_amt(&self) -> bool {
1289        self.message.body.has(tag::GROSS_TRADE_AMT)
1290    }
1291
1292
1293
1294
1295    /// Sets `IndividualAllocID`, Tag 467.
1296    pub fn set_individual_alloc_id(&mut self, v: String) {
1297        self.message.body.set_field(tag::INDIVIDUAL_ALLOC_ID, FIXString::from(v));
1298    }
1299
1300    /// Gets `IndividualAllocID`, Tag 467.
1301    pub fn get_individual_alloc_id(&self) -> Result<String, MessageRejectErrorEnum> {
1302        let mut fld = field::IndividualAllocIDField::new(String::new());
1303        self.message.body.get_field(tag::INDIVIDUAL_ALLOC_ID, &mut fld.0)?;
1304        Ok(fld.value().to_string())
1305    }
1306
1307
1308    /// Returns true if `IndividualAllocID` is present, Tag 467.
1309    pub fn has_individual_alloc_id(&self) -> bool {
1310        self.message.body.has(tag::INDIVIDUAL_ALLOC_ID)
1311    }
1312
1313
1314
1315
1316    /// Sets `InstrRegistry`, Tag 543.
1317    pub fn set_instr_registry(&mut self, v: String) {
1318        self.message.body.set_field(tag::INSTR_REGISTRY, FIXString::from(v));
1319    }
1320
1321    /// Gets `InstrRegistry`, Tag 543.
1322    pub fn get_instr_registry(&self) -> Result<String, MessageRejectErrorEnum> {
1323        let mut fld = field::InstrRegistryField::new(String::new());
1324        self.message.body.get_field(tag::INSTR_REGISTRY, &mut fld.0)?;
1325        Ok(fld.value().to_string())
1326    }
1327
1328
1329    /// Returns true if `InstrRegistry` is present, Tag 543.
1330    pub fn has_instr_registry(&self) -> bool {
1331        self.message.body.has(tag::INSTR_REGISTRY)
1332    }
1333
1334
1335
1336
1337    /// Sets `InterestAccrualDate`, Tag 874.
1338    pub fn set_interest_accrual_date(&mut self, v: String) {
1339        self.message.body.set_field(tag::INTEREST_ACCRUAL_DATE, FIXString::from(v));
1340    }
1341
1342    /// Gets `InterestAccrualDate`, Tag 874.
1343    pub fn get_interest_accrual_date(&self) -> Result<String, MessageRejectErrorEnum> {
1344        let mut fld = field::InterestAccrualDateField::new(String::new());
1345        self.message.body.get_field(tag::INTEREST_ACCRUAL_DATE, &mut fld.0)?;
1346        Ok(fld.value().to_string())
1347    }
1348
1349
1350    /// Returns true if `InterestAccrualDate` is present, Tag 874.
1351    pub fn has_interest_accrual_date(&self) -> bool {
1352        self.message.body.has(tag::INTEREST_ACCRUAL_DATE)
1353    }
1354
1355
1356
1357
1358    /// Sets `InterestAtMaturity`, Tag 738.
1359    pub fn set_interest_at_maturity(&mut self, val: Decimal, scale: i32) {
1360        self.message.body.set_field(tag::INTEREST_AT_MATURITY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1361    }
1362
1363    /// Gets `InterestAtMaturity`, Tag 738.
1364    pub fn get_interest_at_maturity(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1365        let mut fld = field::InterestAtMaturityField::new(Decimal::ZERO, 0);
1366        self.message.body.get_field(tag::INTEREST_AT_MATURITY, &mut fld.0)?;
1367        Ok(fld.value())
1368    }
1369
1370
1371    /// Returns true if `InterestAtMaturity` is present, Tag 738.
1372    pub fn has_interest_at_maturity(&self) -> bool {
1373        self.message.body.has(tag::INTEREST_AT_MATURITY)
1374    }
1375
1376
1377
1378
1379    /// Sets `IssueDate`, Tag 225.
1380    pub fn set_issue_date(&mut self, v: String) {
1381        self.message.body.set_field(tag::ISSUE_DATE, FIXString::from(v));
1382    }
1383
1384    /// Gets `IssueDate`, Tag 225.
1385    pub fn get_issue_date(&self) -> Result<String, MessageRejectErrorEnum> {
1386        let mut fld = field::IssueDateField::new(String::new());
1387        self.message.body.get_field(tag::ISSUE_DATE, &mut fld.0)?;
1388        Ok(fld.value().to_string())
1389    }
1390
1391
1392    /// Returns true if `IssueDate` is present, Tag 225.
1393    pub fn has_issue_date(&self) -> bool {
1394        self.message.body.has(tag::ISSUE_DATE)
1395    }
1396
1397
1398
1399
1400    /// Sets `Issuer`, Tag 106.
1401    pub fn set_issuer(&mut self, v: String) {
1402        self.message.body.set_field(tag::ISSUER, FIXString::from(v));
1403    }
1404
1405    /// Gets `Issuer`, Tag 106.
1406    pub fn get_issuer(&self) -> Result<String, MessageRejectErrorEnum> {
1407        let mut fld = field::IssuerField::new(String::new());
1408        self.message.body.get_field(tag::ISSUER, &mut fld.0)?;
1409        Ok(fld.value().to_string())
1410    }
1411
1412
1413    /// Returns true if `Issuer` is present, Tag 106.
1414    pub fn has_issuer(&self) -> bool {
1415        self.message.body.has(tag::ISSUER)
1416    }
1417
1418
1419
1420
1421    /// Sets `LastMkt`, Tag 30.
1422    pub fn set_last_mkt(&mut self, v: String) {
1423        self.message.body.set_field(tag::LAST_MKT, FIXString::from(v));
1424    }
1425
1426    /// Gets `LastMkt`, Tag 30.
1427    pub fn get_last_mkt(&self) -> Result<String, MessageRejectErrorEnum> {
1428        let mut fld = field::LastMktField::new(String::new());
1429        self.message.body.get_field(tag::LAST_MKT, &mut fld.0)?;
1430        Ok(fld.value().to_string())
1431    }
1432
1433
1434    /// Returns true if `LastMkt` is present, Tag 30.
1435    pub fn has_last_mkt(&self) -> bool {
1436        self.message.body.has(tag::LAST_MKT)
1437    }
1438
1439
1440
1441
1442    /// Sets `LegalConfirm`, Tag 650.
1443    pub fn set_legal_confirm(&mut self, v: bool) {
1444        self.message.body.set_field(tag::LEGAL_CONFIRM, fixer::fix_boolean::FIXBoolean::from(v));
1445    }
1446
1447    /// Gets `LegalConfirm`, Tag 650.
1448    pub fn get_legal_confirm(&self) -> Result<bool, MessageRejectErrorEnum> {
1449        let mut fld = field::LegalConfirmField::new(false);
1450        self.message.body.get_field(tag::LEGAL_CONFIRM, &mut fld.0)?;
1451        Ok(fld.value())
1452    }
1453
1454
1455    /// Returns true if `LegalConfirm` is present, Tag 650.
1456    pub fn has_legal_confirm(&self) -> bool {
1457        self.message.body.has(tag::LEGAL_CONFIRM)
1458    }
1459
1460
1461
1462
1463    /// Sets `LocaleOfIssue`, Tag 472.
1464    pub fn set_locale_of_issue(&mut self, v: String) {
1465        self.message.body.set_field(tag::LOCALE_OF_ISSUE, FIXString::from(v));
1466    }
1467
1468    /// Gets `LocaleOfIssue`, Tag 472.
1469    pub fn get_locale_of_issue(&self) -> Result<String, MessageRejectErrorEnum> {
1470        let mut fld = field::LocaleOfIssueField::new(String::new());
1471        self.message.body.get_field(tag::LOCALE_OF_ISSUE, &mut fld.0)?;
1472        Ok(fld.value().to_string())
1473    }
1474
1475
1476    /// Returns true if `LocaleOfIssue` is present, Tag 472.
1477    pub fn has_locale_of_issue(&self) -> bool {
1478        self.message.body.has(tag::LOCALE_OF_ISSUE)
1479    }
1480
1481
1482
1483
1484    /// Sets `MarginRatio`, Tag 898.
1485    pub fn set_margin_ratio(&mut self, val: Decimal, scale: i32) {
1486        self.message.body.set_field(tag::MARGIN_RATIO, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1487    }
1488
1489    /// Gets `MarginRatio`, Tag 898.
1490    pub fn get_margin_ratio(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1491        let mut fld = field::MarginRatioField::new(Decimal::ZERO, 0);
1492        self.message.body.get_field(tag::MARGIN_RATIO, &mut fld.0)?;
1493        Ok(fld.value())
1494    }
1495
1496
1497    /// Returns true if `MarginRatio` is present, Tag 898.
1498    pub fn has_margin_ratio(&self) -> bool {
1499        self.message.body.has(tag::MARGIN_RATIO)
1500    }
1501
1502
1503
1504
1505    /// Sets `MaturityDate`, Tag 541.
1506    pub fn set_maturity_date(&mut self, v: String) {
1507        self.message.body.set_field(tag::MATURITY_DATE, FIXString::from(v));
1508    }
1509
1510    /// Gets `MaturityDate`, Tag 541.
1511    pub fn get_maturity_date(&self) -> Result<String, MessageRejectErrorEnum> {
1512        let mut fld = field::MaturityDateField::new(String::new());
1513        self.message.body.get_field(tag::MATURITY_DATE, &mut fld.0)?;
1514        Ok(fld.value().to_string())
1515    }
1516
1517
1518    /// Returns true if `MaturityDate` is present, Tag 541.
1519    pub fn has_maturity_date(&self) -> bool {
1520        self.message.body.has(tag::MATURITY_DATE)
1521    }
1522
1523
1524
1525
1526    /// Sets `MaturityMonthYear`, Tag 200.
1527    pub fn set_maturity_month_year(&mut self, v: String) {
1528        self.message.body.set_field(tag::MATURITY_MONTH_YEAR, FIXString::from(v));
1529    }
1530
1531    /// Gets `MaturityMonthYear`, Tag 200.
1532    pub fn get_maturity_month_year(&self) -> Result<String, MessageRejectErrorEnum> {
1533        let mut fld = field::MaturityMonthYearField::new(String::new());
1534        self.message.body.get_field(tag::MATURITY_MONTH_YEAR, &mut fld.0)?;
1535        Ok(fld.value().to_string())
1536    }
1537
1538
1539    /// Returns true if `MaturityMonthYear` is present, Tag 200.
1540    pub fn has_maturity_month_year(&self) -> bool {
1541        self.message.body.has(tag::MATURITY_MONTH_YEAR)
1542    }
1543
1544
1545
1546
1547    /// Sets `MaturityNetMoney`, Tag 890.
1548    pub fn set_maturity_net_money(&mut self, val: Decimal, scale: i32) {
1549        self.message.body.set_field(tag::MATURITY_NET_MONEY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1550    }
1551
1552    /// Gets `MaturityNetMoney`, Tag 890.
1553    pub fn get_maturity_net_money(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1554        let mut fld = field::MaturityNetMoneyField::new(Decimal::ZERO, 0);
1555        self.message.body.get_field(tag::MATURITY_NET_MONEY, &mut fld.0)?;
1556        Ok(fld.value())
1557    }
1558
1559
1560    /// Returns true if `MaturityNetMoney` is present, Tag 890.
1561    pub fn has_maturity_net_money(&self) -> bool {
1562        self.message.body.has(tag::MATURITY_NET_MONEY)
1563    }
1564
1565
1566
1567
1568    /// Sets `NetMoney`, Tag 118.
1569    pub fn set_net_money(&mut self, val: Decimal, scale: i32) {
1570        self.message.body.set_field(tag::NET_MONEY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1571    }
1572
1573    /// Gets `NetMoney`, Tag 118.
1574    pub fn get_net_money(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1575        let mut fld = field::NetMoneyField::new(Decimal::ZERO, 0);
1576        self.message.body.get_field(tag::NET_MONEY, &mut fld.0)?;
1577        Ok(fld.value())
1578    }
1579
1580
1581    /// Returns true if `NetMoney` is present, Tag 118.
1582    pub fn has_net_money(&self) -> bool {
1583        self.message.body.has(tag::NET_MONEY)
1584    }
1585
1586
1587
1588
1589    /// Sets `NoCapacities`, Tag 862.
1590    pub fn set_no_capacities(&mut self, v: isize) {
1591        self.message.body.set_field(tag::NO_CAPACITIES, fixer::fix_int::FIXInt::from(v));
1592    }
1593
1594    /// Gets `NoCapacities`, Tag 862.
1595    pub fn get_no_capacities(&self) -> Result<isize, MessageRejectErrorEnum> {
1596        let mut fld = field::NoCapacitiesField::new(0);
1597        self.message.body.get_field(tag::NO_CAPACITIES, &mut fld.0)?;
1598        Ok(fld.value())
1599    }
1600
1601
1602    /// Returns true if `NoCapacities` is present, Tag 862.
1603    pub fn has_no_capacities(&self) -> bool {
1604        self.message.body.has(tag::NO_CAPACITIES)
1605    }
1606
1607
1608
1609
1610    /// Sets `NoDlvyInst`, Tag 85.
1611    pub fn set_no_dlvy_inst(&mut self, v: isize) {
1612        self.message.body.set_field(tag::NO_DLVY_INST, fixer::fix_int::FIXInt::from(v));
1613    }
1614
1615    /// Gets `NoDlvyInst`, Tag 85.
1616    pub fn get_no_dlvy_inst(&self) -> Result<isize, MessageRejectErrorEnum> {
1617        let mut fld = field::NoDlvyInstField::new(0);
1618        self.message.body.get_field(tag::NO_DLVY_INST, &mut fld.0)?;
1619        Ok(fld.value())
1620    }
1621
1622
1623    /// Returns true if `NoDlvyInst` is present, Tag 85.
1624    pub fn has_no_dlvy_inst(&self) -> bool {
1625        self.message.body.has(tag::NO_DLVY_INST)
1626    }
1627
1628
1629
1630
1631    /// Sets `NoEvents`, Tag 864.
1632    pub fn set_no_events(&mut self, v: isize) {
1633        self.message.body.set_field(tag::NO_EVENTS, fixer::fix_int::FIXInt::from(v));
1634    }
1635
1636    /// Gets `NoEvents`, Tag 864.
1637    pub fn get_no_events(&self) -> Result<isize, MessageRejectErrorEnum> {
1638        let mut fld = field::NoEventsField::new(0);
1639        self.message.body.get_field(tag::NO_EVENTS, &mut fld.0)?;
1640        Ok(fld.value())
1641    }
1642
1643
1644    /// Returns true if `NoEvents` is present, Tag 864.
1645    pub fn has_no_events(&self) -> bool {
1646        self.message.body.has(tag::NO_EVENTS)
1647    }
1648
1649
1650
1651
1652    /// Sets `NoInstrAttrib`, Tag 870.
1653    pub fn set_no_instr_attrib(&mut self, v: isize) {
1654        self.message.body.set_field(tag::NO_INSTR_ATTRIB, fixer::fix_int::FIXInt::from(v));
1655    }
1656
1657    /// Gets `NoInstrAttrib`, Tag 870.
1658    pub fn get_no_instr_attrib(&self) -> Result<isize, MessageRejectErrorEnum> {
1659        let mut fld = field::NoInstrAttribField::new(0);
1660        self.message.body.get_field(tag::NO_INSTR_ATTRIB, &mut fld.0)?;
1661        Ok(fld.value())
1662    }
1663
1664
1665    /// Returns true if `NoInstrAttrib` is present, Tag 870.
1666    pub fn has_no_instr_attrib(&self) -> bool {
1667        self.message.body.has(tag::NO_INSTR_ATTRIB)
1668    }
1669
1670
1671
1672
1673    /// Sets `NoLegs`, Tag 555.
1674    pub fn set_no_legs(&mut self, v: isize) {
1675        self.message.body.set_field(tag::NO_LEGS, fixer::fix_int::FIXInt::from(v));
1676    }
1677
1678    /// Gets `NoLegs`, Tag 555.
1679    pub fn get_no_legs(&self) -> Result<isize, MessageRejectErrorEnum> {
1680        let mut fld = field::NoLegsField::new(0);
1681        self.message.body.get_field(tag::NO_LEGS, &mut fld.0)?;
1682        Ok(fld.value())
1683    }
1684
1685
1686    /// Returns true if `NoLegs` is present, Tag 555.
1687    pub fn has_no_legs(&self) -> bool {
1688        self.message.body.has(tag::NO_LEGS)
1689    }
1690
1691
1692
1693
1694    /// Sets `NoMiscFees`, Tag 136.
1695    pub fn set_no_misc_fees(&mut self, v: isize) {
1696        self.message.body.set_field(tag::NO_MISC_FEES, fixer::fix_int::FIXInt::from(v));
1697    }
1698
1699    /// Gets `NoMiscFees`, Tag 136.
1700    pub fn get_no_misc_fees(&self) -> Result<isize, MessageRejectErrorEnum> {
1701        let mut fld = field::NoMiscFeesField::new(0);
1702        self.message.body.get_field(tag::NO_MISC_FEES, &mut fld.0)?;
1703        Ok(fld.value())
1704    }
1705
1706
1707    /// Returns true if `NoMiscFees` is present, Tag 136.
1708    pub fn has_no_misc_fees(&self) -> bool {
1709        self.message.body.has(tag::NO_MISC_FEES)
1710    }
1711
1712
1713
1714
1715    /// Sets `NoOrders`, Tag 73.
1716    pub fn set_no_orders(&mut self, v: isize) {
1717        self.message.body.set_field(tag::NO_ORDERS, fixer::fix_int::FIXInt::from(v));
1718    }
1719
1720    /// Gets `NoOrders`, Tag 73.
1721    pub fn get_no_orders(&self) -> Result<isize, MessageRejectErrorEnum> {
1722        let mut fld = field::NoOrdersField::new(0);
1723        self.message.body.get_field(tag::NO_ORDERS, &mut fld.0)?;
1724        Ok(fld.value())
1725    }
1726
1727
1728    /// Returns true if `NoOrders` is present, Tag 73.
1729    pub fn has_no_orders(&self) -> bool {
1730        self.message.body.has(tag::NO_ORDERS)
1731    }
1732
1733
1734
1735
1736    /// Sets `NoPartyIDs`, Tag 453.
1737    pub fn set_no_party_i_ds(&mut self, v: isize) {
1738        self.message.body.set_field(tag::NO_PARTY_I_DS, fixer::fix_int::FIXInt::from(v));
1739    }
1740
1741    /// Gets `NoPartyIDs`, Tag 453.
1742    pub fn get_no_party_i_ds(&self) -> Result<isize, MessageRejectErrorEnum> {
1743        let mut fld = field::NoPartyIDsField::new(0);
1744        self.message.body.get_field(tag::NO_PARTY_I_DS, &mut fld.0)?;
1745        Ok(fld.value())
1746    }
1747
1748
1749    /// Returns true if `NoPartyIDs` is present, Tag 453.
1750    pub fn has_no_party_i_ds(&self) -> bool {
1751        self.message.body.has(tag::NO_PARTY_I_DS)
1752    }
1753
1754
1755
1756
1757    /// Sets `NoSecurityAltID`, Tag 454.
1758    pub fn set_no_security_alt_id(&mut self, v: isize) {
1759        self.message.body.set_field(tag::NO_SECURITY_ALT_ID, fixer::fix_int::FIXInt::from(v));
1760    }
1761
1762    /// Gets `NoSecurityAltID`, Tag 454.
1763    pub fn get_no_security_alt_id(&self) -> Result<isize, MessageRejectErrorEnum> {
1764        let mut fld = field::NoSecurityAltIDField::new(0);
1765        self.message.body.get_field(tag::NO_SECURITY_ALT_ID, &mut fld.0)?;
1766        Ok(fld.value())
1767    }
1768
1769
1770    /// Returns true if `NoSecurityAltID` is present, Tag 454.
1771    pub fn has_no_security_alt_id(&self) -> bool {
1772        self.message.body.has(tag::NO_SECURITY_ALT_ID)
1773    }
1774
1775
1776
1777
1778    /// Sets `NoStipulations`, Tag 232.
1779    pub fn set_no_stipulations(&mut self, v: isize) {
1780        self.message.body.set_field(tag::NO_STIPULATIONS, fixer::fix_int::FIXInt::from(v));
1781    }
1782
1783    /// Gets `NoStipulations`, Tag 232.
1784    pub fn get_no_stipulations(&self) -> Result<isize, MessageRejectErrorEnum> {
1785        let mut fld = field::NoStipulationsField::new(0);
1786        self.message.body.get_field(tag::NO_STIPULATIONS, &mut fld.0)?;
1787        Ok(fld.value())
1788    }
1789
1790
1791    /// Returns true if `NoStipulations` is present, Tag 232.
1792    pub fn has_no_stipulations(&self) -> bool {
1793        self.message.body.has(tag::NO_STIPULATIONS)
1794    }
1795
1796
1797
1798
1799    /// Sets `NoTrdRegTimestamps`, Tag 768.
1800    pub fn set_no_trd_reg_timestamps(&mut self, v: isize) {
1801        self.message.body.set_field(tag::NO_TRD_REG_TIMESTAMPS, fixer::fix_int::FIXInt::from(v));
1802    }
1803
1804    /// Gets `NoTrdRegTimestamps`, Tag 768.
1805    pub fn get_no_trd_reg_timestamps(&self) -> Result<isize, MessageRejectErrorEnum> {
1806        let mut fld = field::NoTrdRegTimestampsField::new(0);
1807        self.message.body.get_field(tag::NO_TRD_REG_TIMESTAMPS, &mut fld.0)?;
1808        Ok(fld.value())
1809    }
1810
1811
1812    /// Returns true if `NoTrdRegTimestamps` is present, Tag 768.
1813    pub fn has_no_trd_reg_timestamps(&self) -> bool {
1814        self.message.body.has(tag::NO_TRD_REG_TIMESTAMPS)
1815    }
1816
1817
1818
1819
1820    /// Sets `NoUnderlyings`, Tag 711.
1821    pub fn set_no_underlyings(&mut self, v: isize) {
1822        self.message.body.set_field(tag::NO_UNDERLYINGS, fixer::fix_int::FIXInt::from(v));
1823    }
1824
1825    /// Gets `NoUnderlyings`, Tag 711.
1826    pub fn get_no_underlyings(&self) -> Result<isize, MessageRejectErrorEnum> {
1827        let mut fld = field::NoUnderlyingsField::new(0);
1828        self.message.body.get_field(tag::NO_UNDERLYINGS, &mut fld.0)?;
1829        Ok(fld.value())
1830    }
1831
1832
1833    /// Returns true if `NoUnderlyings` is present, Tag 711.
1834    pub fn has_no_underlyings(&self) -> bool {
1835        self.message.body.has(tag::NO_UNDERLYINGS)
1836    }
1837
1838
1839
1840
1841    /// Sets `NumDaysInterest`, Tag 157.
1842    pub fn set_num_days_interest(&mut self, v: isize) {
1843        self.message.body.set_field(tag::NUM_DAYS_INTEREST, fixer::fix_int::FIXInt::from(v));
1844    }
1845
1846    /// Gets `NumDaysInterest`, Tag 157.
1847    pub fn get_num_days_interest(&self) -> Result<isize, MessageRejectErrorEnum> {
1848        let mut fld = field::NumDaysInterestField::new(0);
1849        self.message.body.get_field(tag::NUM_DAYS_INTEREST, &mut fld.0)?;
1850        Ok(fld.value())
1851    }
1852
1853
1854    /// Returns true if `NumDaysInterest` is present, Tag 157.
1855    pub fn has_num_days_interest(&self) -> bool {
1856        self.message.body.has(tag::NUM_DAYS_INTEREST)
1857    }
1858
1859
1860
1861
1862    /// Sets `OptAttribute`, Tag 206.
1863    pub fn set_opt_attribute(&mut self, v: String) {
1864        self.message.body.set_field(tag::OPT_ATTRIBUTE, FIXString::from(v));
1865    }
1866
1867    /// Gets `OptAttribute`, Tag 206.
1868    pub fn get_opt_attribute(&self) -> Result<String, MessageRejectErrorEnum> {
1869        let mut fld = field::OptAttributeField::new(String::new());
1870        self.message.body.get_field(tag::OPT_ATTRIBUTE, &mut fld.0)?;
1871        Ok(fld.value().to_string())
1872    }
1873
1874
1875    /// Returns true if `OptAttribute` is present, Tag 206.
1876    pub fn has_opt_attribute(&self) -> bool {
1877        self.message.body.has(tag::OPT_ATTRIBUTE)
1878    }
1879
1880
1881
1882
1883    /// Sets `PctAtRisk`, Tag 869.
1884    pub fn set_pct_at_risk(&mut self, val: Decimal, scale: i32) {
1885        self.message.body.set_field(tag::PCT_AT_RISK, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1886    }
1887
1888    /// Gets `PctAtRisk`, Tag 869.
1889    pub fn get_pct_at_risk(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1890        let mut fld = field::PctAtRiskField::new(Decimal::ZERO, 0);
1891        self.message.body.get_field(tag::PCT_AT_RISK, &mut fld.0)?;
1892        Ok(fld.value())
1893    }
1894
1895
1896    /// Returns true if `PctAtRisk` is present, Tag 869.
1897    pub fn has_pct_at_risk(&self) -> bool {
1898        self.message.body.has(tag::PCT_AT_RISK)
1899    }
1900
1901
1902
1903
1904    /// Sets `Pool`, Tag 691.
1905    pub fn set_pool(&mut self, v: String) {
1906        self.message.body.set_field(tag::POOL, FIXString::from(v));
1907    }
1908
1909    /// Gets `Pool`, Tag 691.
1910    pub fn get_pool(&self) -> Result<String, MessageRejectErrorEnum> {
1911        let mut fld = field::PoolField::new(String::new());
1912        self.message.body.get_field(tag::POOL, &mut fld.0)?;
1913        Ok(fld.value().to_string())
1914    }
1915
1916
1917    /// Returns true if `Pool` is present, Tag 691.
1918    pub fn has_pool(&self) -> bool {
1919        self.message.body.has(tag::POOL)
1920    }
1921
1922
1923
1924
1925    /// Sets `PriceType`, Tag 423.
1926    pub fn set_price_type(&mut self, v: isize) {
1927        self.message.body.set_field(tag::PRICE_TYPE, fixer::fix_int::FIXInt::from(v));
1928    }
1929
1930    /// Gets `PriceType`, Tag 423.
1931    pub fn get_price_type(&self) -> Result<isize, MessageRejectErrorEnum> {
1932        let mut fld = field::PriceTypeField::new(0);
1933        self.message.body.get_field(tag::PRICE_TYPE, &mut fld.0)?;
1934        Ok(fld.value())
1935    }
1936
1937
1938    /// Returns true if `PriceType` is present, Tag 423.
1939    pub fn has_price_type(&self) -> bool {
1940        self.message.body.has(tag::PRICE_TYPE)
1941    }
1942
1943
1944
1945
1946    /// Sets `ProcessCode`, Tag 81.
1947    pub fn set_process_code(&mut self, v: String) {
1948        self.message.body.set_field(tag::PROCESS_CODE, FIXString::from(v));
1949    }
1950
1951    /// Gets `ProcessCode`, Tag 81.
1952    pub fn get_process_code(&self) -> Result<String, MessageRejectErrorEnum> {
1953        let mut fld = field::ProcessCodeField::new(String::new());
1954        self.message.body.get_field(tag::PROCESS_CODE, &mut fld.0)?;
1955        Ok(fld.value().to_string())
1956    }
1957
1958
1959    /// Returns true if `ProcessCode` is present, Tag 81.
1960    pub fn has_process_code(&self) -> bool {
1961        self.message.body.has(tag::PROCESS_CODE)
1962    }
1963
1964
1965
1966
1967    /// Sets `Product`, Tag 460.
1968    pub fn set_product(&mut self, v: isize) {
1969        self.message.body.set_field(tag::PRODUCT, fixer::fix_int::FIXInt::from(v));
1970    }
1971
1972    /// Gets `Product`, Tag 460.
1973    pub fn get_product(&self) -> Result<isize, MessageRejectErrorEnum> {
1974        let mut fld = field::ProductField::new(0);
1975        self.message.body.get_field(tag::PRODUCT, &mut fld.0)?;
1976        Ok(fld.value())
1977    }
1978
1979
1980    /// Returns true if `Product` is present, Tag 460.
1981    pub fn has_product(&self) -> bool {
1982        self.message.body.has(tag::PRODUCT)
1983    }
1984
1985
1986
1987
1988    /// Sets `QtyType`, Tag 854.
1989    pub fn set_qty_type(&mut self, v: isize) {
1990        self.message.body.set_field(tag::QTY_TYPE, fixer::fix_int::FIXInt::from(v));
1991    }
1992
1993    /// Gets `QtyType`, Tag 854.
1994    pub fn get_qty_type(&self) -> Result<isize, MessageRejectErrorEnum> {
1995        let mut fld = field::QtyTypeField::new(0);
1996        self.message.body.get_field(tag::QTY_TYPE, &mut fld.0)?;
1997        Ok(fld.value())
1998    }
1999
2000
2001    /// Returns true if `QtyType` is present, Tag 854.
2002    pub fn has_qty_type(&self) -> bool {
2003        self.message.body.has(tag::QTY_TYPE)
2004    }
2005
2006
2007
2008
2009    /// Sets `RedemptionDate`, Tag 240.
2010    pub fn set_redemption_date(&mut self, v: String) {
2011        self.message.body.set_field(tag::REDEMPTION_DATE, FIXString::from(v));
2012    }
2013
2014    /// Gets `RedemptionDate`, Tag 240.
2015    pub fn get_redemption_date(&self) -> Result<String, MessageRejectErrorEnum> {
2016        let mut fld = field::RedemptionDateField::new(String::new());
2017        self.message.body.get_field(tag::REDEMPTION_DATE, &mut fld.0)?;
2018        Ok(fld.value().to_string())
2019    }
2020
2021
2022    /// Returns true if `RedemptionDate` is present, Tag 240.
2023    pub fn has_redemption_date(&self) -> bool {
2024        self.message.body.has(tag::REDEMPTION_DATE)
2025    }
2026
2027
2028
2029
2030    /// Sets `RepoCollateralSecurityType`, Tag 239.
2031    pub fn set_repo_collateral_security_type(&mut self, v: isize) {
2032        self.message.body.set_field(tag::REPO_COLLATERAL_SECURITY_TYPE, fixer::fix_int::FIXInt::from(v));
2033    }
2034
2035    /// Gets `RepoCollateralSecurityType`, Tag 239.
2036    pub fn get_repo_collateral_security_type(&self) -> Result<isize, MessageRejectErrorEnum> {
2037        let mut fld = field::RepoCollateralSecurityTypeField::new(0);
2038        self.message.body.get_field(tag::REPO_COLLATERAL_SECURITY_TYPE, &mut fld.0)?;
2039        Ok(fld.value())
2040    }
2041
2042
2043    /// Returns true if `RepoCollateralSecurityType` is present, Tag 239.
2044    pub fn has_repo_collateral_security_type(&self) -> bool {
2045        self.message.body.has(tag::REPO_COLLATERAL_SECURITY_TYPE)
2046    }
2047
2048
2049
2050
2051    /// Sets `ReportedPx`, Tag 861.
2052    pub fn set_reported_px(&mut self, val: Decimal, scale: i32) {
2053        self.message.body.set_field(tag::REPORTED_PX, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2054    }
2055
2056    /// Gets `ReportedPx`, Tag 861.
2057    pub fn get_reported_px(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2058        let mut fld = field::ReportedPxField::new(Decimal::ZERO, 0);
2059        self.message.body.get_field(tag::REPORTED_PX, &mut fld.0)?;
2060        Ok(fld.value())
2061    }
2062
2063
2064    /// Returns true if `ReportedPx` is present, Tag 861.
2065    pub fn has_reported_px(&self) -> bool {
2066        self.message.body.has(tag::REPORTED_PX)
2067    }
2068
2069
2070
2071
2072    /// Sets `RepurchaseRate`, Tag 227.
2073    pub fn set_repurchase_rate(&mut self, val: Decimal, scale: i32) {
2074        self.message.body.set_field(tag::REPURCHASE_RATE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2075    }
2076
2077    /// Gets `RepurchaseRate`, Tag 227.
2078    pub fn get_repurchase_rate(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2079        let mut fld = field::RepurchaseRateField::new(Decimal::ZERO, 0);
2080        self.message.body.get_field(tag::REPURCHASE_RATE, &mut fld.0)?;
2081        Ok(fld.value())
2082    }
2083
2084
2085    /// Returns true if `RepurchaseRate` is present, Tag 227.
2086    pub fn has_repurchase_rate(&self) -> bool {
2087        self.message.body.has(tag::REPURCHASE_RATE)
2088    }
2089
2090
2091
2092
2093    /// Sets `RepurchaseTerm`, Tag 226.
2094    pub fn set_repurchase_term(&mut self, v: isize) {
2095        self.message.body.set_field(tag::REPURCHASE_TERM, fixer::fix_int::FIXInt::from(v));
2096    }
2097
2098    /// Gets `RepurchaseTerm`, Tag 226.
2099    pub fn get_repurchase_term(&self) -> Result<isize, MessageRejectErrorEnum> {
2100        let mut fld = field::RepurchaseTermField::new(0);
2101        self.message.body.get_field(tag::REPURCHASE_TERM, &mut fld.0)?;
2102        Ok(fld.value())
2103    }
2104
2105
2106    /// Returns true if `RepurchaseTerm` is present, Tag 226.
2107    pub fn has_repurchase_term(&self) -> bool {
2108        self.message.body.has(tag::REPURCHASE_TERM)
2109    }
2110
2111
2112
2113
2114    /// Sets `SecondaryAllocID`, Tag 793.
2115    pub fn set_secondary_alloc_id(&mut self, v: String) {
2116        self.message.body.set_field(tag::SECONDARY_ALLOC_ID, FIXString::from(v));
2117    }
2118
2119    /// Gets `SecondaryAllocID`, Tag 793.
2120    pub fn get_secondary_alloc_id(&self) -> Result<String, MessageRejectErrorEnum> {
2121        let mut fld = field::SecondaryAllocIDField::new(String::new());
2122        self.message.body.get_field(tag::SECONDARY_ALLOC_ID, &mut fld.0)?;
2123        Ok(fld.value().to_string())
2124    }
2125
2126
2127    /// Returns true if `SecondaryAllocID` is present, Tag 793.
2128    pub fn has_secondary_alloc_id(&self) -> bool {
2129        self.message.body.has(tag::SECONDARY_ALLOC_ID)
2130    }
2131
2132
2133
2134
2135    /// Sets `SecurityDesc`, Tag 107.
2136    pub fn set_security_desc(&mut self, v: String) {
2137        self.message.body.set_field(tag::SECURITY_DESC, FIXString::from(v));
2138    }
2139
2140    /// Gets `SecurityDesc`, Tag 107.
2141    pub fn get_security_desc(&self) -> Result<String, MessageRejectErrorEnum> {
2142        let mut fld = field::SecurityDescField::new(String::new());
2143        self.message.body.get_field(tag::SECURITY_DESC, &mut fld.0)?;
2144        Ok(fld.value().to_string())
2145    }
2146
2147
2148    /// Returns true if `SecurityDesc` is present, Tag 107.
2149    pub fn has_security_desc(&self) -> bool {
2150        self.message.body.has(tag::SECURITY_DESC)
2151    }
2152
2153
2154
2155
2156    /// Sets `SecurityExchange`, Tag 207.
2157    pub fn set_security_exchange(&mut self, v: String) {
2158        self.message.body.set_field(tag::SECURITY_EXCHANGE, FIXString::from(v));
2159    }
2160
2161    /// Gets `SecurityExchange`, Tag 207.
2162    pub fn get_security_exchange(&self) -> Result<String, MessageRejectErrorEnum> {
2163        let mut fld = field::SecurityExchangeField::new(String::new());
2164        self.message.body.get_field(tag::SECURITY_EXCHANGE, &mut fld.0)?;
2165        Ok(fld.value().to_string())
2166    }
2167
2168
2169    /// Returns true if `SecurityExchange` is present, Tag 207.
2170    pub fn has_security_exchange(&self) -> bool {
2171        self.message.body.has(tag::SECURITY_EXCHANGE)
2172    }
2173
2174
2175
2176
2177    /// Sets `SecurityID`, Tag 48.
2178    pub fn set_security_id(&mut self, v: String) {
2179        self.message.body.set_field(tag::SECURITY_ID, FIXString::from(v));
2180    }
2181
2182    /// Gets `SecurityID`, Tag 48.
2183    pub fn get_security_id(&self) -> Result<String, MessageRejectErrorEnum> {
2184        let mut fld = field::SecurityIDField::new(String::new());
2185        self.message.body.get_field(tag::SECURITY_ID, &mut fld.0)?;
2186        Ok(fld.value().to_string())
2187    }
2188
2189
2190    /// Returns true if `SecurityID` is present, Tag 48.
2191    pub fn has_security_id(&self) -> bool {
2192        self.message.body.has(tag::SECURITY_ID)
2193    }
2194
2195
2196
2197
2198    /// Sets `SecurityIDSource`, Tag 22.
2199    pub fn set_security_id_source(&mut self, v: String) {
2200        self.message.body.set_field(tag::SECURITY_ID_SOURCE, FIXString::from(v));
2201    }
2202
2203    /// Gets `SecurityIDSource`, Tag 22.
2204    pub fn get_security_id_source(&self) -> Result<String, MessageRejectErrorEnum> {
2205        let mut fld = field::SecurityIDSourceField::new(String::new());
2206        self.message.body.get_field(tag::SECURITY_ID_SOURCE, &mut fld.0)?;
2207        Ok(fld.value().to_string())
2208    }
2209
2210
2211    /// Returns true if `SecurityIDSource` is present, Tag 22.
2212    pub fn has_security_id_source(&self) -> bool {
2213        self.message.body.has(tag::SECURITY_ID_SOURCE)
2214    }
2215
2216
2217
2218
2219    /// Sets `SecuritySubType`, Tag 762.
2220    pub fn set_security_sub_type(&mut self, v: String) {
2221        self.message.body.set_field(tag::SECURITY_SUB_TYPE, FIXString::from(v));
2222    }
2223
2224    /// Gets `SecuritySubType`, Tag 762.
2225    pub fn get_security_sub_type(&self) -> Result<String, MessageRejectErrorEnum> {
2226        let mut fld = field::SecuritySubTypeField::new(String::new());
2227        self.message.body.get_field(tag::SECURITY_SUB_TYPE, &mut fld.0)?;
2228        Ok(fld.value().to_string())
2229    }
2230
2231
2232    /// Returns true if `SecuritySubType` is present, Tag 762.
2233    pub fn has_security_sub_type(&self) -> bool {
2234        self.message.body.has(tag::SECURITY_SUB_TYPE)
2235    }
2236
2237
2238
2239
2240    /// Sets `SecurityType`, Tag 167.
2241    pub fn set_security_type(&mut self, v: String) {
2242        self.message.body.set_field(tag::SECURITY_TYPE, FIXString::from(v));
2243    }
2244
2245    /// Gets `SecurityType`, Tag 167.
2246    pub fn get_security_type(&self) -> Result<String, MessageRejectErrorEnum> {
2247        let mut fld = field::SecurityTypeField::new(String::new());
2248        self.message.body.get_field(tag::SECURITY_TYPE, &mut fld.0)?;
2249        Ok(fld.value().to_string())
2250    }
2251
2252
2253    /// Returns true if `SecurityType` is present, Tag 167.
2254    pub fn has_security_type(&self) -> bool {
2255        self.message.body.has(tag::SECURITY_TYPE)
2256    }
2257
2258
2259
2260
2261    /// Sets `SettlCurrAmt`, Tag 119.
2262    pub fn set_settl_curr_amt(&mut self, val: Decimal, scale: i32) {
2263        self.message.body.set_field(tag::SETTL_CURR_AMT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2264    }
2265
2266    /// Gets `SettlCurrAmt`, Tag 119.
2267    pub fn get_settl_curr_amt(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2268        let mut fld = field::SettlCurrAmtField::new(Decimal::ZERO, 0);
2269        self.message.body.get_field(tag::SETTL_CURR_AMT, &mut fld.0)?;
2270        Ok(fld.value())
2271    }
2272
2273
2274    /// Returns true if `SettlCurrAmt` is present, Tag 119.
2275    pub fn has_settl_curr_amt(&self) -> bool {
2276        self.message.body.has(tag::SETTL_CURR_AMT)
2277    }
2278
2279
2280
2281
2282    /// Sets `SettlCurrFxRate`, Tag 155.
2283    pub fn set_settl_curr_fx_rate(&mut self, val: Decimal, scale: i32) {
2284        self.message.body.set_field(tag::SETTL_CURR_FX_RATE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2285    }
2286
2287    /// Gets `SettlCurrFxRate`, Tag 155.
2288    pub fn get_settl_curr_fx_rate(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2289        let mut fld = field::SettlCurrFxRateField::new(Decimal::ZERO, 0);
2290        self.message.body.get_field(tag::SETTL_CURR_FX_RATE, &mut fld.0)?;
2291        Ok(fld.value())
2292    }
2293
2294
2295    /// Returns true if `SettlCurrFxRate` is present, Tag 155.
2296    pub fn has_settl_curr_fx_rate(&self) -> bool {
2297        self.message.body.has(tag::SETTL_CURR_FX_RATE)
2298    }
2299
2300
2301
2302
2303    /// Sets `SettlCurrFxRateCalc`, Tag 156.
2304    pub fn set_settl_curr_fx_rate_calc(&mut self, v: String) {
2305        self.message.body.set_field(tag::SETTL_CURR_FX_RATE_CALC, FIXString::from(v));
2306    }
2307
2308    /// Gets `SettlCurrFxRateCalc`, Tag 156.
2309    pub fn get_settl_curr_fx_rate_calc(&self) -> Result<String, MessageRejectErrorEnum> {
2310        let mut fld = field::SettlCurrFxRateCalcField::new(String::new());
2311        self.message.body.get_field(tag::SETTL_CURR_FX_RATE_CALC, &mut fld.0)?;
2312        Ok(fld.value().to_string())
2313    }
2314
2315
2316    /// Returns true if `SettlCurrFxRateCalc` is present, Tag 156.
2317    pub fn has_settl_curr_fx_rate_calc(&self) -> bool {
2318        self.message.body.has(tag::SETTL_CURR_FX_RATE_CALC)
2319    }
2320
2321
2322
2323
2324    /// Sets `SettlCurrency`, Tag 120.
2325    pub fn set_settl_currency(&mut self, v: String) {
2326        self.message.body.set_field(tag::SETTL_CURRENCY, FIXString::from(v));
2327    }
2328
2329    /// Gets `SettlCurrency`, Tag 120.
2330    pub fn get_settl_currency(&self) -> Result<String, MessageRejectErrorEnum> {
2331        let mut fld = field::SettlCurrencyField::new(String::new());
2332        self.message.body.get_field(tag::SETTL_CURRENCY, &mut fld.0)?;
2333        Ok(fld.value().to_string())
2334    }
2335
2336
2337    /// Returns true if `SettlCurrency` is present, Tag 120.
2338    pub fn has_settl_currency(&self) -> bool {
2339        self.message.body.has(tag::SETTL_CURRENCY)
2340    }
2341
2342
2343
2344
2345    /// Sets `SettlDate`, Tag 64.
2346    pub fn set_settl_date(&mut self, v: String) {
2347        self.message.body.set_field(tag::SETTL_DATE, FIXString::from(v));
2348    }
2349
2350    /// Gets `SettlDate`, Tag 64.
2351    pub fn get_settl_date(&self) -> Result<String, MessageRejectErrorEnum> {
2352        let mut fld = field::SettlDateField::new(String::new());
2353        self.message.body.get_field(tag::SETTL_DATE, &mut fld.0)?;
2354        Ok(fld.value().to_string())
2355    }
2356
2357
2358    /// Returns true if `SettlDate` is present, Tag 64.
2359    pub fn has_settl_date(&self) -> bool {
2360        self.message.body.has(tag::SETTL_DATE)
2361    }
2362
2363
2364
2365
2366    /// Sets `SettlDeliveryType`, Tag 172.
2367    pub fn set_settl_delivery_type(&mut self, v: isize) {
2368        self.message.body.set_field(tag::SETTL_DELIVERY_TYPE, fixer::fix_int::FIXInt::from(v));
2369    }
2370
2371    /// Gets `SettlDeliveryType`, Tag 172.
2372    pub fn get_settl_delivery_type(&self) -> Result<isize, MessageRejectErrorEnum> {
2373        let mut fld = field::SettlDeliveryTypeField::new(0);
2374        self.message.body.get_field(tag::SETTL_DELIVERY_TYPE, &mut fld.0)?;
2375        Ok(fld.value())
2376    }
2377
2378
2379    /// Returns true if `SettlDeliveryType` is present, Tag 172.
2380    pub fn has_settl_delivery_type(&self) -> bool {
2381        self.message.body.has(tag::SETTL_DELIVERY_TYPE)
2382    }
2383
2384
2385
2386
2387    /// Sets `SettlType`, Tag 63.
2388    pub fn set_settl_type(&mut self, v: String) {
2389        self.message.body.set_field(tag::SETTL_TYPE, FIXString::from(v));
2390    }
2391
2392    /// Gets `SettlType`, Tag 63.
2393    pub fn get_settl_type(&self) -> Result<String, MessageRejectErrorEnum> {
2394        let mut fld = field::SettlTypeField::new(String::new());
2395        self.message.body.get_field(tag::SETTL_TYPE, &mut fld.0)?;
2396        Ok(fld.value().to_string())
2397    }
2398
2399
2400    /// Returns true if `SettlType` is present, Tag 63.
2401    pub fn has_settl_type(&self) -> bool {
2402        self.message.body.has(tag::SETTL_TYPE)
2403    }
2404
2405
2406
2407
2408    /// Sets `SharedCommission`, Tag 858.
2409    pub fn set_shared_commission(&mut self, val: Decimal, scale: i32) {
2410        self.message.body.set_field(tag::SHARED_COMMISSION, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2411    }
2412
2413    /// Gets `SharedCommission`, Tag 858.
2414    pub fn get_shared_commission(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2415        let mut fld = field::SharedCommissionField::new(Decimal::ZERO, 0);
2416        self.message.body.get_field(tag::SHARED_COMMISSION, &mut fld.0)?;
2417        Ok(fld.value())
2418    }
2419
2420
2421    /// Returns true if `SharedCommission` is present, Tag 858.
2422    pub fn has_shared_commission(&self) -> bool {
2423        self.message.body.has(tag::SHARED_COMMISSION)
2424    }
2425
2426
2427
2428
2429    /// Sets `Side`, Tag 54.
2430    pub fn set_side(&mut self, v: String) {
2431        self.message.body.set_field(tag::SIDE, FIXString::from(v));
2432    }
2433
2434    /// Gets `Side`, Tag 54.
2435    pub fn get_side(&self) -> Result<String, MessageRejectErrorEnum> {
2436        let mut fld = field::SideField::new(String::new());
2437        self.message.body.get_field(tag::SIDE, &mut fld.0)?;
2438        Ok(fld.value().to_string())
2439    }
2440
2441
2442    /// Returns true if `Side` is present, Tag 54.
2443    pub fn has_side(&self) -> bool {
2444        self.message.body.has(tag::SIDE)
2445    }
2446
2447
2448
2449
2450    /// Sets `Spread`, Tag 218.
2451    pub fn set_spread(&mut self, val: Decimal, scale: i32) {
2452        self.message.body.set_field(tag::SPREAD, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2453    }
2454
2455    /// Gets `Spread`, Tag 218.
2456    pub fn get_spread(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2457        let mut fld = field::SpreadField::new(Decimal::ZERO, 0);
2458        self.message.body.get_field(tag::SPREAD, &mut fld.0)?;
2459        Ok(fld.value())
2460    }
2461
2462
2463    /// Returns true if `Spread` is present, Tag 218.
2464    pub fn has_spread(&self) -> bool {
2465        self.message.body.has(tag::SPREAD)
2466    }
2467
2468
2469
2470
2471    /// Sets `StandInstDbID`, Tag 171.
2472    pub fn set_stand_inst_db_id(&mut self, v: String) {
2473        self.message.body.set_field(tag::STAND_INST_DB_ID, FIXString::from(v));
2474    }
2475
2476    /// Gets `StandInstDbID`, Tag 171.
2477    pub fn get_stand_inst_db_id(&self) -> Result<String, MessageRejectErrorEnum> {
2478        let mut fld = field::StandInstDbIDField::new(String::new());
2479        self.message.body.get_field(tag::STAND_INST_DB_ID, &mut fld.0)?;
2480        Ok(fld.value().to_string())
2481    }
2482
2483
2484    /// Returns true if `StandInstDbID` is present, Tag 171.
2485    pub fn has_stand_inst_db_id(&self) -> bool {
2486        self.message.body.has(tag::STAND_INST_DB_ID)
2487    }
2488
2489
2490
2491
2492    /// Sets `StandInstDbName`, Tag 170.
2493    pub fn set_stand_inst_db_name(&mut self, v: String) {
2494        self.message.body.set_field(tag::STAND_INST_DB_NAME, FIXString::from(v));
2495    }
2496
2497    /// Gets `StandInstDbName`, Tag 170.
2498    pub fn get_stand_inst_db_name(&self) -> Result<String, MessageRejectErrorEnum> {
2499        let mut fld = field::StandInstDbNameField::new(String::new());
2500        self.message.body.get_field(tag::STAND_INST_DB_NAME, &mut fld.0)?;
2501        Ok(fld.value().to_string())
2502    }
2503
2504
2505    /// Returns true if `StandInstDbName` is present, Tag 170.
2506    pub fn has_stand_inst_db_name(&self) -> bool {
2507        self.message.body.has(tag::STAND_INST_DB_NAME)
2508    }
2509
2510
2511
2512
2513    /// Sets `StandInstDbType`, Tag 169.
2514    pub fn set_stand_inst_db_type(&mut self, v: isize) {
2515        self.message.body.set_field(tag::STAND_INST_DB_TYPE, fixer::fix_int::FIXInt::from(v));
2516    }
2517
2518    /// Gets `StandInstDbType`, Tag 169.
2519    pub fn get_stand_inst_db_type(&self) -> Result<isize, MessageRejectErrorEnum> {
2520        let mut fld = field::StandInstDbTypeField::new(0);
2521        self.message.body.get_field(tag::STAND_INST_DB_TYPE, &mut fld.0)?;
2522        Ok(fld.value())
2523    }
2524
2525
2526    /// Returns true if `StandInstDbType` is present, Tag 169.
2527    pub fn has_stand_inst_db_type(&self) -> bool {
2528        self.message.body.has(tag::STAND_INST_DB_TYPE)
2529    }
2530
2531
2532
2533
2534    /// Sets `StartCash`, Tag 921.
2535    pub fn set_start_cash(&mut self, val: Decimal, scale: i32) {
2536        self.message.body.set_field(tag::START_CASH, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2537    }
2538
2539    /// Gets `StartCash`, Tag 921.
2540    pub fn get_start_cash(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2541        let mut fld = field::StartCashField::new(Decimal::ZERO, 0);
2542        self.message.body.get_field(tag::START_CASH, &mut fld.0)?;
2543        Ok(fld.value())
2544    }
2545
2546
2547    /// Returns true if `StartCash` is present, Tag 921.
2548    pub fn has_start_cash(&self) -> bool {
2549        self.message.body.has(tag::START_CASH)
2550    }
2551
2552
2553
2554
2555    /// Sets `StartDate`, Tag 916.
2556    pub fn set_start_date(&mut self, v: String) {
2557        self.message.body.set_field(tag::START_DATE, FIXString::from(v));
2558    }
2559
2560    /// Gets `StartDate`, Tag 916.
2561    pub fn get_start_date(&self) -> Result<String, MessageRejectErrorEnum> {
2562        let mut fld = field::StartDateField::new(String::new());
2563        self.message.body.get_field(tag::START_DATE, &mut fld.0)?;
2564        Ok(fld.value().to_string())
2565    }
2566
2567
2568    /// Returns true if `StartDate` is present, Tag 916.
2569    pub fn has_start_date(&self) -> bool {
2570        self.message.body.has(tag::START_DATE)
2571    }
2572
2573
2574
2575
2576    /// Sets `StateOrProvinceOfIssue`, Tag 471.
2577    pub fn set_state_or_province_of_issue(&mut self, v: String) {
2578        self.message.body.set_field(tag::STATE_OR_PROVINCE_OF_ISSUE, FIXString::from(v));
2579    }
2580
2581    /// Gets `StateOrProvinceOfIssue`, Tag 471.
2582    pub fn get_state_or_province_of_issue(&self) -> Result<String, MessageRejectErrorEnum> {
2583        let mut fld = field::StateOrProvinceOfIssueField::new(String::new());
2584        self.message.body.get_field(tag::STATE_OR_PROVINCE_OF_ISSUE, &mut fld.0)?;
2585        Ok(fld.value().to_string())
2586    }
2587
2588
2589    /// Returns true if `StateOrProvinceOfIssue` is present, Tag 471.
2590    pub fn has_state_or_province_of_issue(&self) -> bool {
2591        self.message.body.has(tag::STATE_OR_PROVINCE_OF_ISSUE)
2592    }
2593
2594
2595
2596
2597    /// Sets `StrikeCurrency`, Tag 947.
2598    pub fn set_strike_currency(&mut self, v: String) {
2599        self.message.body.set_field(tag::STRIKE_CURRENCY, FIXString::from(v));
2600    }
2601
2602    /// Gets `StrikeCurrency`, Tag 947.
2603    pub fn get_strike_currency(&self) -> Result<String, MessageRejectErrorEnum> {
2604        let mut fld = field::StrikeCurrencyField::new(String::new());
2605        self.message.body.get_field(tag::STRIKE_CURRENCY, &mut fld.0)?;
2606        Ok(fld.value().to_string())
2607    }
2608
2609
2610    /// Returns true if `StrikeCurrency` is present, Tag 947.
2611    pub fn has_strike_currency(&self) -> bool {
2612        self.message.body.has(tag::STRIKE_CURRENCY)
2613    }
2614
2615
2616
2617
2618    /// Sets `StrikePrice`, Tag 202.
2619    pub fn set_strike_price(&mut self, val: Decimal, scale: i32) {
2620        self.message.body.set_field(tag::STRIKE_PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2621    }
2622
2623    /// Gets `StrikePrice`, Tag 202.
2624    pub fn get_strike_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2625        let mut fld = field::StrikePriceField::new(Decimal::ZERO, 0);
2626        self.message.body.get_field(tag::STRIKE_PRICE, &mut fld.0)?;
2627        Ok(fld.value())
2628    }
2629
2630
2631    /// Returns true if `StrikePrice` is present, Tag 202.
2632    pub fn has_strike_price(&self) -> bool {
2633        self.message.body.has(tag::STRIKE_PRICE)
2634    }
2635
2636
2637
2638
2639    /// Sets `Symbol`, Tag 55.
2640    pub fn set_symbol(&mut self, v: String) {
2641        self.message.body.set_field(tag::SYMBOL, FIXString::from(v));
2642    }
2643
2644    /// Gets `Symbol`, Tag 55.
2645    pub fn get_symbol(&self) -> Result<String, MessageRejectErrorEnum> {
2646        let mut fld = field::SymbolField::new(String::new());
2647        self.message.body.get_field(tag::SYMBOL, &mut fld.0)?;
2648        Ok(fld.value().to_string())
2649    }
2650
2651
2652    /// Returns true if `Symbol` is present, Tag 55.
2653    pub fn has_symbol(&self) -> bool {
2654        self.message.body.has(tag::SYMBOL)
2655    }
2656
2657
2658
2659
2660    /// Sets `SymbolSfx`, Tag 65.
2661    pub fn set_symbol_sfx(&mut self, v: String) {
2662        self.message.body.set_field(tag::SYMBOL_SFX, FIXString::from(v));
2663    }
2664
2665    /// Gets `SymbolSfx`, Tag 65.
2666    pub fn get_symbol_sfx(&self) -> Result<String, MessageRejectErrorEnum> {
2667        let mut fld = field::SymbolSfxField::new(String::new());
2668        self.message.body.get_field(tag::SYMBOL_SFX, &mut fld.0)?;
2669        Ok(fld.value().to_string())
2670    }
2671
2672
2673    /// Returns true if `SymbolSfx` is present, Tag 65.
2674    pub fn has_symbol_sfx(&self) -> bool {
2675        self.message.body.has(tag::SYMBOL_SFX)
2676    }
2677
2678
2679
2680
2681    /// Sets `TerminationType`, Tag 788.
2682    pub fn set_termination_type(&mut self, v: isize) {
2683        self.message.body.set_field(tag::TERMINATION_TYPE, fixer::fix_int::FIXInt::from(v));
2684    }
2685
2686    /// Gets `TerminationType`, Tag 788.
2687    pub fn get_termination_type(&self) -> Result<isize, MessageRejectErrorEnum> {
2688        let mut fld = field::TerminationTypeField::new(0);
2689        self.message.body.get_field(tag::TERMINATION_TYPE, &mut fld.0)?;
2690        Ok(fld.value())
2691    }
2692
2693
2694    /// Returns true if `TerminationType` is present, Tag 788.
2695    pub fn has_termination_type(&self) -> bool {
2696        self.message.body.has(tag::TERMINATION_TYPE)
2697    }
2698
2699
2700
2701
2702    /// Sets `Text`, Tag 58.
2703    pub fn set_text(&mut self, v: String) {
2704        self.message.body.set_field(tag::TEXT, FIXString::from(v));
2705    }
2706
2707    /// Gets `Text`, Tag 58.
2708    pub fn get_text(&self) -> Result<String, MessageRejectErrorEnum> {
2709        let mut fld = field::TextField::new(String::new());
2710        self.message.body.get_field(tag::TEXT, &mut fld.0)?;
2711        Ok(fld.value().to_string())
2712    }
2713
2714
2715    /// Returns true if `Text` is present, Tag 58.
2716    pub fn has_text(&self) -> bool {
2717        self.message.body.has(tag::TEXT)
2718    }
2719
2720
2721
2722
2723    /// Sets `TotalTakedown`, Tag 237.
2724    pub fn set_total_takedown(&mut self, val: Decimal, scale: i32) {
2725        self.message.body.set_field(tag::TOTAL_TAKEDOWN, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2726    }
2727
2728    /// Gets `TotalTakedown`, Tag 237.
2729    pub fn get_total_takedown(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2730        let mut fld = field::TotalTakedownField::new(Decimal::ZERO, 0);
2731        self.message.body.get_field(tag::TOTAL_TAKEDOWN, &mut fld.0)?;
2732        Ok(fld.value())
2733    }
2734
2735
2736    /// Returns true if `TotalTakedown` is present, Tag 237.
2737    pub fn has_total_takedown(&self) -> bool {
2738        self.message.body.has(tag::TOTAL_TAKEDOWN)
2739    }
2740
2741
2742
2743
2744    /// Sets `TradeDate`, Tag 75.
2745    pub fn set_trade_date(&mut self, v: String) {
2746        self.message.body.set_field(tag::TRADE_DATE, FIXString::from(v));
2747    }
2748
2749    /// Gets `TradeDate`, Tag 75.
2750    pub fn get_trade_date(&self) -> Result<String, MessageRejectErrorEnum> {
2751        let mut fld = field::TradeDateField::new(String::new());
2752        self.message.body.get_field(tag::TRADE_DATE, &mut fld.0)?;
2753        Ok(fld.value().to_string())
2754    }
2755
2756
2757    /// Returns true if `TradeDate` is present, Tag 75.
2758    pub fn has_trade_date(&self) -> bool {
2759        self.message.body.has(tag::TRADE_DATE)
2760    }
2761
2762
2763
2764
2765    /// Sets `TransactTime`, Tag 60.
2766    pub fn set_transact_time(&mut self, v: Timestamp) {
2767        self.message.body.set_field(tag::TRANSACT_TIME, fixer::fix_utc_timestamp::FIXUTCTimestamp {
2768            time: v,
2769            precision: fixer::fix_utc_timestamp::TimestampPrecision::Millis,
2770        });
2771    }
2772
2773    /// Gets `TransactTime`, Tag 60.
2774    pub fn get_transact_time(&self) -> Result<Timestamp, MessageRejectErrorEnum> {
2775        let mut fld = field::TransactTimeField::new(Timestamp::UNIX_EPOCH);
2776        self.message.body.get_field(tag::TRANSACT_TIME, &mut fld.0)?;
2777        Ok(fld.value())
2778    }
2779
2780
2781    /// Returns true if `TransactTime` is present, Tag 60.
2782    pub fn has_transact_time(&self) -> bool {
2783        self.message.body.has(tag::TRANSACT_TIME)
2784    }
2785
2786
2787
2788
2789    /// Sets `Yield`, Tag 236.
2790    pub fn set_yield(&mut self, val: Decimal, scale: i32) {
2791        self.message.body.set_field(tag::YIELD, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2792    }
2793
2794    /// Gets `Yield`, Tag 236.
2795    pub fn get_yield(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2796        let mut fld = field::YieldField::new(Decimal::ZERO, 0);
2797        self.message.body.get_field(tag::YIELD, &mut fld.0)?;
2798        Ok(fld.value())
2799    }
2800
2801
2802    /// Returns true if `Yield` is present, Tag 236.
2803    pub fn has_yield(&self) -> bool {
2804        self.message.body.has(tag::YIELD)
2805    }
2806
2807
2808
2809
2810    /// Sets `YieldCalcDate`, Tag 701.
2811    pub fn set_yield_calc_date(&mut self, v: String) {
2812        self.message.body.set_field(tag::YIELD_CALC_DATE, FIXString::from(v));
2813    }
2814
2815    /// Gets `YieldCalcDate`, Tag 701.
2816    pub fn get_yield_calc_date(&self) -> Result<String, MessageRejectErrorEnum> {
2817        let mut fld = field::YieldCalcDateField::new(String::new());
2818        self.message.body.get_field(tag::YIELD_CALC_DATE, &mut fld.0)?;
2819        Ok(fld.value().to_string())
2820    }
2821
2822
2823    /// Returns true if `YieldCalcDate` is present, Tag 701.
2824    pub fn has_yield_calc_date(&self) -> bool {
2825        self.message.body.has(tag::YIELD_CALC_DATE)
2826    }
2827
2828
2829
2830
2831    /// Sets `YieldRedemptionDate`, Tag 696.
2832    pub fn set_yield_redemption_date(&mut self, v: String) {
2833        self.message.body.set_field(tag::YIELD_REDEMPTION_DATE, FIXString::from(v));
2834    }
2835
2836    /// Gets `YieldRedemptionDate`, Tag 696.
2837    pub fn get_yield_redemption_date(&self) -> Result<String, MessageRejectErrorEnum> {
2838        let mut fld = field::YieldRedemptionDateField::new(String::new());
2839        self.message.body.get_field(tag::YIELD_REDEMPTION_DATE, &mut fld.0)?;
2840        Ok(fld.value().to_string())
2841    }
2842
2843
2844    /// Returns true if `YieldRedemptionDate` is present, Tag 696.
2845    pub fn has_yield_redemption_date(&self) -> bool {
2846        self.message.body.has(tag::YIELD_REDEMPTION_DATE)
2847    }
2848
2849
2850
2851
2852    /// Sets `YieldRedemptionPrice`, Tag 697.
2853    pub fn set_yield_redemption_price(&mut self, val: Decimal, scale: i32) {
2854        self.message.body.set_field(tag::YIELD_REDEMPTION_PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2855    }
2856
2857    /// Gets `YieldRedemptionPrice`, Tag 697.
2858    pub fn get_yield_redemption_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2859        let mut fld = field::YieldRedemptionPriceField::new(Decimal::ZERO, 0);
2860        self.message.body.get_field(tag::YIELD_REDEMPTION_PRICE, &mut fld.0)?;
2861        Ok(fld.value())
2862    }
2863
2864
2865    /// Returns true if `YieldRedemptionPrice` is present, Tag 697.
2866    pub fn has_yield_redemption_price(&self) -> bool {
2867        self.message.body.has(tag::YIELD_REDEMPTION_PRICE)
2868    }
2869
2870
2871
2872
2873    /// Sets `YieldRedemptionPriceType`, Tag 698.
2874    pub fn set_yield_redemption_price_type(&mut self, v: isize) {
2875        self.message.body.set_field(tag::YIELD_REDEMPTION_PRICE_TYPE, fixer::fix_int::FIXInt::from(v));
2876    }
2877
2878    /// Gets `YieldRedemptionPriceType`, Tag 698.
2879    pub fn get_yield_redemption_price_type(&self) -> Result<isize, MessageRejectErrorEnum> {
2880        let mut fld = field::YieldRedemptionPriceTypeField::new(0);
2881        self.message.body.get_field(tag::YIELD_REDEMPTION_PRICE_TYPE, &mut fld.0)?;
2882        Ok(fld.value())
2883    }
2884
2885
2886    /// Returns true if `YieldRedemptionPriceType` is present, Tag 698.
2887    pub fn has_yield_redemption_price_type(&self) -> bool {
2888        self.message.body.has(tag::YIELD_REDEMPTION_PRICE_TYPE)
2889    }
2890
2891
2892
2893
2894    /// Sets `YieldType`, Tag 235.
2895    pub fn set_yield_type(&mut self, v: String) {
2896        self.message.body.set_field(tag::YIELD_TYPE, FIXString::from(v));
2897    }
2898
2899    /// Gets `YieldType`, Tag 235.
2900    pub fn get_yield_type(&self) -> Result<String, MessageRejectErrorEnum> {
2901        let mut fld = field::YieldTypeField::new(String::new());
2902        self.message.body.get_field(tag::YIELD_TYPE, &mut fld.0)?;
2903        Ok(fld.value().to_string())
2904    }
2905
2906
2907    /// Returns true if `YieldType` is present, Tag 235.
2908    pub fn has_yield_type(&self) -> bool {
2909        self.message.body.has(tag::YIELD_TYPE)
2910    }
2911
2912
2913}
2914
2915/// `RouteOut` is the callback type for routing `Confirmation` messages.
2916pub type RouteOut = fn(msg: Confirmation, session_id: SessionID) -> Result<(), MessageRejectErrorEnum>;
2917
2918/// Route type returned by the `route` function.
2919pub type Route = (&'static str, &'static str, Box<dyn Fn(&Message, SessionID) -> Result<(), MessageRejectErrorEnum> + Send>);
2920
2921/// Returns the begin string, message type, and route function for `Confirmation`.
2922pub fn route(router: RouteOut) -> Route {
2923    let r = move |msg: &Message, session_id: SessionID| -> Result<(), MessageRejectErrorEnum> {
2924        router(Confirmation::from_message(msg.clone()), session_id)
2925    };
2926    ("FIX.4.4", "AK", Box::new(r))
2927}