-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Chris Busbey
committed
Oct 6, 2017
0 parents
commit 8edfb15
Showing
93 changed files
with
355,386 additions
and
0 deletions.
There are no files selected for viewing
2,060 changes: 2,060 additions & 0 deletions
2,060
adjustedpositionreport/AdjustedPositionReport.generated.go
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
7,841 changes: 7,841 additions & 0 deletions
7,841
allocationinstruction/AllocationInstruction.generated.go
Large diffs are not rendered by default.
Oops, something went wrong.
988 changes: 988 additions & 0 deletions
988
allocationinstructionack/AllocationInstructionAck.generated.go
Large diffs are not rendered by default.
Oops, something went wrong.
7,841 changes: 7,841 additions & 0 deletions
7,841
allocationinstructionalert/AllocationInstructionAlert.generated.go
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
1,083 changes: 1,083 additions & 0 deletions
1,083
allocationreportack/AllocationReportAck.generated.go
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
190 changes: 190 additions & 0 deletions
190
businessmessagereject/BusinessMessageReject.generated.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,190 @@ | ||
package businessmessagereject | ||
|
||
import ( | ||
"github.com/quickfixgo/enum" | ||
"github.com/quickfixgo/field" | ||
"github.com/quickfixgo/fixt11" | ||
"github.com/quickfixgo/quickfix" | ||
"github.com/quickfixgo/tag" | ||
) | ||
|
||
//BusinessMessageReject is the fix50 BusinessMessageReject type, MsgType = j | ||
type BusinessMessageReject struct { | ||
fixt11.Header | ||
*quickfix.Body | ||
fixt11.Trailer | ||
Message *quickfix.Message | ||
} | ||
|
||
//FromMessage creates a BusinessMessageReject from a quickfix.Message instance | ||
func FromMessage(m *quickfix.Message) BusinessMessageReject { | ||
return BusinessMessageReject{ | ||
Header: fixt11.Header{&m.Header}, | ||
Body: &m.Body, | ||
Trailer: fixt11.Trailer{&m.Trailer}, | ||
Message: m, | ||
} | ||
} | ||
|
||
//ToMessage returns a quickfix.Message instance | ||
func (m BusinessMessageReject) ToMessage() *quickfix.Message { | ||
return m.Message | ||
} | ||
|
||
//New returns a BusinessMessageReject initialized with the required fields for BusinessMessageReject | ||
func New(refmsgtype field.RefMsgTypeField, businessrejectreason field.BusinessRejectReasonField) (m BusinessMessageReject) { | ||
m.Message = quickfix.NewMessage() | ||
m.Header = fixt11.NewHeader(&m.Message.Header) | ||
m.Body = &m.Message.Body | ||
m.Trailer.Trailer = &m.Message.Trailer | ||
|
||
m.Header.Set(field.NewMsgType("j")) | ||
m.Set(refmsgtype) | ||
m.Set(businessrejectreason) | ||
|
||
return | ||
} | ||
|
||
//A RouteOut is the callback type that should be implemented for routing Message | ||
type RouteOut func(msg BusinessMessageReject, sessionID quickfix.SessionID) quickfix.MessageRejectError | ||
|
||
//Route returns the beginstring, message type, and MessageRoute for this Message type | ||
func Route(router RouteOut) (string, string, quickfix.MessageRoute) { | ||
r := func(msg *quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError { | ||
return router(FromMessage(msg), sessionID) | ||
} | ||
return "7", "j", r | ||
} | ||
|
||
//SetRefSeqNum sets RefSeqNum, Tag 45 | ||
func (m BusinessMessageReject) SetRefSeqNum(v int) { | ||
m.Set(field.NewRefSeqNum(v)) | ||
} | ||
|
||
//SetText sets Text, Tag 58 | ||
func (m BusinessMessageReject) SetText(v string) { | ||
m.Set(field.NewText(v)) | ||
} | ||
|
||
//SetEncodedTextLen sets EncodedTextLen, Tag 354 | ||
func (m BusinessMessageReject) SetEncodedTextLen(v int) { | ||
m.Set(field.NewEncodedTextLen(v)) | ||
} | ||
|
||
//SetEncodedText sets EncodedText, Tag 355 | ||
func (m BusinessMessageReject) SetEncodedText(v string) { | ||
m.Set(field.NewEncodedText(v)) | ||
} | ||
|
||
//SetRefMsgType sets RefMsgType, Tag 372 | ||
func (m BusinessMessageReject) SetRefMsgType(v string) { | ||
m.Set(field.NewRefMsgType(v)) | ||
} | ||
|
||
//SetBusinessRejectRefID sets BusinessRejectRefID, Tag 379 | ||
func (m BusinessMessageReject) SetBusinessRejectRefID(v string) { | ||
m.Set(field.NewBusinessRejectRefID(v)) | ||
} | ||
|
||
//SetBusinessRejectReason sets BusinessRejectReason, Tag 380 | ||
func (m BusinessMessageReject) SetBusinessRejectReason(v enum.BusinessRejectReason) { | ||
m.Set(field.NewBusinessRejectReason(v)) | ||
} | ||
|
||
//GetRefSeqNum gets RefSeqNum, Tag 45 | ||
func (m BusinessMessageReject) GetRefSeqNum() (v int, err quickfix.MessageRejectError) { | ||
var f field.RefSeqNumField | ||
if err = m.Get(&f); err == nil { | ||
v = f.Value() | ||
} | ||
return | ||
} | ||
|
||
//GetText gets Text, Tag 58 | ||
func (m BusinessMessageReject) GetText() (v string, err quickfix.MessageRejectError) { | ||
var f field.TextField | ||
if err = m.Get(&f); err == nil { | ||
v = f.Value() | ||
} | ||
return | ||
} | ||
|
||
//GetEncodedTextLen gets EncodedTextLen, Tag 354 | ||
func (m BusinessMessageReject) GetEncodedTextLen() (v int, err quickfix.MessageRejectError) { | ||
var f field.EncodedTextLenField | ||
if err = m.Get(&f); err == nil { | ||
v = f.Value() | ||
} | ||
return | ||
} | ||
|
||
//GetEncodedText gets EncodedText, Tag 355 | ||
func (m BusinessMessageReject) GetEncodedText() (v string, err quickfix.MessageRejectError) { | ||
var f field.EncodedTextField | ||
if err = m.Get(&f); err == nil { | ||
v = f.Value() | ||
} | ||
return | ||
} | ||
|
||
//GetRefMsgType gets RefMsgType, Tag 372 | ||
func (m BusinessMessageReject) GetRefMsgType() (v string, err quickfix.MessageRejectError) { | ||
var f field.RefMsgTypeField | ||
if err = m.Get(&f); err == nil { | ||
v = f.Value() | ||
} | ||
return | ||
} | ||
|
||
//GetBusinessRejectRefID gets BusinessRejectRefID, Tag 379 | ||
func (m BusinessMessageReject) GetBusinessRejectRefID() (v string, err quickfix.MessageRejectError) { | ||
var f field.BusinessRejectRefIDField | ||
if err = m.Get(&f); err == nil { | ||
v = f.Value() | ||
} | ||
return | ||
} | ||
|
||
//GetBusinessRejectReason gets BusinessRejectReason, Tag 380 | ||
func (m BusinessMessageReject) GetBusinessRejectReason() (v enum.BusinessRejectReason, err quickfix.MessageRejectError) { | ||
var f field.BusinessRejectReasonField | ||
if err = m.Get(&f); err == nil { | ||
v = f.Value() | ||
} | ||
return | ||
} | ||
|
||
//HasRefSeqNum returns true if RefSeqNum is present, Tag 45 | ||
func (m BusinessMessageReject) HasRefSeqNum() bool { | ||
return m.Has(tag.RefSeqNum) | ||
} | ||
|
||
//HasText returns true if Text is present, Tag 58 | ||
func (m BusinessMessageReject) HasText() bool { | ||
return m.Has(tag.Text) | ||
} | ||
|
||
//HasEncodedTextLen returns true if EncodedTextLen is present, Tag 354 | ||
func (m BusinessMessageReject) HasEncodedTextLen() bool { | ||
return m.Has(tag.EncodedTextLen) | ||
} | ||
|
||
//HasEncodedText returns true if EncodedText is present, Tag 355 | ||
func (m BusinessMessageReject) HasEncodedText() bool { | ||
return m.Has(tag.EncodedText) | ||
} | ||
|
||
//HasRefMsgType returns true if RefMsgType is present, Tag 372 | ||
func (m BusinessMessageReject) HasRefMsgType() bool { | ||
return m.Has(tag.RefMsgType) | ||
} | ||
|
||
//HasBusinessRejectRefID returns true if BusinessRejectRefID is present, Tag 379 | ||
func (m BusinessMessageReject) HasBusinessRejectRefID() bool { | ||
return m.Has(tag.BusinessRejectRefID) | ||
} | ||
|
||
//HasBusinessRejectReason returns true if BusinessRejectReason is present, Tag 380 | ||
func (m BusinessMessageReject) HasBusinessRejectReason() bool { | ||
return m.Has(tag.BusinessRejectReason) | ||
} |
Oops, something went wrong.