model

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OfsDataField

type OfsDataField struct {
	OfsName    string
	MvPosition int
	SvPosition int
	Value      string
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL