3232import static com .lmax .nanofix .fields .Tags .ClOrdID ;
3333import static com .lmax .nanofix .fields .Tags .EncryptMethod ;
3434import static com .lmax .nanofix .fields .Tags .EndSeqNo ;
35+ import static com .lmax .nanofix .fields .Tags .GapFill ;
3536import static com .lmax .nanofix .fields .Tags .HeartBtInt ;
3637import static com .lmax .nanofix .fields .Tags .MsgSeqNum ;
38+ import static com .lmax .nanofix .fields .Tags .NewSeqNo ;
3739import static com .lmax .nanofix .fields .Tags .OrdType ;
3840import static com .lmax .nanofix .fields .Tags .OrderQty ;
3941import static com .lmax .nanofix .fields .Tags .OrigSendingTime ;
5254import static com .lmax .nanofix .fields .Tags .Symbol ;
5355import static com .lmax .nanofix .fields .Tags .TargetCompID ;
5456import static com .lmax .nanofix .fields .Tags .TestReqID ;
57+ import static com .lmax .nanofix .fields .Tags .TimeInForce ;
5558import static com .lmax .nanofix .fields .Tags .TransactTime ;
5659import static com .lmax .nanofix .fields .Tags .Username ;
5760
@@ -92,7 +95,7 @@ public FixMessageBuilder(final String version) {
9295 * @param messageLengthOverride The value of the (9) message length tag.
9396 * @return FixMessageBuilder
9497 */
95- public FixMessageBuilder overrideMessageLength (final String messageLengthOverride ) {
98+ public FixMessageBuilder overrideMessageLength (String messageLengthOverride ) {
9699 this .messageLengthOverride = messageLengthOverride ;
97100 return this ;
98101 }
@@ -109,20 +112,17 @@ public FixMessageBuilder overrideChecksum(final String checksumOverride) {
109112 }
110113
111114 public FixMessageBuilder messageType (final String type ) {
112- if (MsgType .knownMsgType (type )) {
113- throw new RuntimeException ("Please use the MsgType enumeration" );
114- }
115115 return addTag (Tags .MsgType .getTag (), type );
116116 }
117117
118- public FixMessageBuilder account (final String account ) {
119- return addTag (Tags .Account .getTag (), account );
120- }
121-
122118 public FixMessageBuilder messageType (final MsgType type ) {
123119 return addTag (Tags .MsgType .getTag (), type .getCode ());
124120 }
125121
122+ public FixMessageBuilder account (final String account ) {
123+ return addTag (Tags .Account .getTag (), account );
124+ }
125+
126126 public FixMessageBuilder senderCompID (final String senderCompID ) {
127127 return addTag (SenderCompID .getTag (), senderCompID );
128128 }
@@ -244,6 +244,17 @@ public FixMessageBuilder origSendingTime(final ZonedDateTime origSendingTime) {
244244 return addTag (OrigSendingTime .getTag (), com .lmax .nanofix .FixUtil .DATE_TIME_FORMATTER .format (origSendingTime ));
245245 }
246246
247+ public FixMessageBuilder timeInForce (final String tag ) {
248+ return addTag (TimeInForce .getTag (), tag );
249+ }
250+
251+ public FixMessageBuilder newSeqNo (final int newSequenceNum ) {
252+ return addTag (NewSeqNo .getTag (), Integer .toString (newSequenceNum ));
253+ }
254+
255+ public FixMessageBuilder gapFill (final String value ) {
256+ return addTag (GapFill .getTag (), value );
257+ }
247258
248259 public FixMessageBuilder append (final int tag , final String value ) {
249260 return addTag (tag , value );
0 commit comments