Documentation ¶
Index ¶
- type OfsDataField
- type Response
- type ResponseCommon
- func NewEnqSuccessEmptyResponse(responseMessage string) ResponseCommon
- func NewEnqSuccessResponse() ResponseCommon
- func NewFailureResponse(errorMessage string) ResponseCommon
- func NewTxnFailureResponse(messageID, txnID string, status ResponseStatus, failureMessage string) ResponseCommon
- func NewTxnSuccessResponse(messageID, txnID string, status ResponseStatus) ResponseCommon
- type ResponseOfsRecord
- type ResponseStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OfsDataField ¶
type Response ¶
type Response struct { ResponseCommon ResponseCommon ResponseRecord ResponseOfsRecord }
type ResponseCommon ¶
type ResponseCommon struct { MessageID string TransactionID string Status string ErrorMessage string ErrorMessageList []string }
ResponseCommon represents a common response structure.
func NewEnqSuccessEmptyResponse ¶
func NewEnqSuccessEmptyResponse(responseMessage string) ResponseCommon
NewEnqSuccessEmptyResponse creates a new instance of ResponseCommon for an enquiry success with a response message.
func NewEnqSuccessResponse ¶
func NewEnqSuccessResponse() ResponseCommon
NewEnqSuccessResponse creates a new instance of ResponseCommon for an enquiry success.
func NewFailureResponse ¶
func NewFailureResponse(errorMessage string) ResponseCommon
NewFailureResponse creates a new instance of ResponseCommon for a failure response.
func NewTxnFailureResponse ¶
func NewTxnFailureResponse(messageID, txnID string, status ResponseStatus, failureMessage string) ResponseCommon
NewTxnFailureResponse creates a new instance of ResponseCommon for a transaction failure.
func NewTxnSuccessResponse ¶
func NewTxnSuccessResponse(messageID, txnID string, status ResponseStatus) ResponseCommon
NewTxnSuccessResponse creates a new instance of ResponseCommon for a transaction success.
type ResponseOfsRecord ¶
type ResponseOfsRecord struct { ResponseName string ResponseId string ResponseFields []OfsDataField }
func NewResponseOfsRecord ¶
func NewResponseOfsRecord(responseName string, responseId string, responseFields []OfsDataField) ResponseOfsRecord
type ResponseStatus ¶
type ResponseStatus string
const ( ResponseStatusSuccess ResponseStatus = "SUCCESS" ResponseStatusError ResponseStatus = "T24 ERROR" ResponseStatusOverride ResponseStatus = "T24 OVERRIDE" ResponseStatusOffline ResponseStatus = "T24 OFFLINE" )
func From ¶
func From(statusStr string) ResponseStatus
func FromString ¶
func FromString(value string) ResponseStatus
Click to show internal directories.
Click to hide internal directories.