lib_gc_fts_helper

package
v0.0.0-...-e28984d Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AVAILREQUESTID = iota // 0
	REQUESTXML            // 1
	RESPONSEXML           // 2
	PRELOCATOR            // 3
	LOCATOR               // 4
	CUSTOMERID            // 5
	RESPONSESTATUS        // 6
	SUPPLIERID            // 7
	LINKREQUESTID         // 8

	RTYPE       // 9
	ATTEMPS     // 10
	TARGETQUEUE // 11
	TOPIC       // 12
)

Variables

View Source
var FTSOperation map[Requesttype]string = map[Requesttype]string{
	ACCOMODATION_AVAIL:   "AVAIL",
	ACCOMODATION_BOOKING: "BOOKING",
	CONFIRM:              "CONFIRM",
	CANCEL:               "CANCEL",
}

Functions

This section is empty.

Types

type AuditTrack

type AuditTrack struct {
	Attempts            int    `json:"attempts"`       // Always set to zero
	Application         string `json:"application"`    // Application to be tracked. This name is unique for app
	TargetQueue         string `json:"targetQueue"`    // It will be 'auditXmlQueue' always
	AvailRequestId      string `json:"availRequestId"` // Booking flux unique ID
	PreLocator          string `json:"preLocator"`     // Booking action locator
	Locator             string `json:"locator"`        // Confirm action locator
	LinkRequestId       string `json:"linkRequestId"`
	Type                string `json:"type"`                // AVAIL,BOOKING,CONFIRM,CANCEL segun el caso
	Origin              string `json:"origin"`              // INTEGRATION
	CustomerId          string `json:"customerId"`          // ClientId
	SupplierId          string `json:"supplierId"`          // Supplier ID
	XmlRequest          string `json:"xmlRequest"`          // Leave empty
	XmlResponse         string `json:"xmlResponse"`         // Leave empty
	ExternalXmlRequest  string `json:"externalXmlRequest"`  // Request XML serialized as string
	ExternalXmlResponse string `json:"externalXmlResponse"` // Response XML serialized as string
	ResponseStatus      string `json:"responseStatus"`      // Operation result status element value (0,0009, ...)
	DateTime            string `json:"dateTime"`            // Timestamp
	Backup              string `json:"backup"`              // Always set to false
	External            string `json:"external"`            // Always set to false
}

type FTSTrackMessage

type FTSTrackMessage struct {
	Rtype          Requesttype
	Attempts       int
	Application    string
	Targetqueue    string
	Topic          string
	RequestXML     string
	ResponseXML    string
	AvailRequestId string
	PreLocator     string
	Locator        string
	CustomerId     string
	ResponseStatus string
	LinkRequestId  string
	SupplierID     string
}

type H_FtsMessageMaker_I

type H_FtsMessageMaker_I interface {
	MakeFTSTrackMessage(track *FTSTrackMessage) ([]byte, error)
}
var H_FtsMessageMaker H_FtsMessageMaker_I

type Requesttype

type Requesttype string
const (
	ACCOMODATION_AVAIL   Requesttype = "ACCOMODATION_AVAIL"   // Avail request
	ACCOMODATION_BOOKING Requesttype = "ACCOMODATION_BOOKING" // Booking request
	CONFIRM              Requesttype = "CONFIRM"              // Confirm request
	CANCEL               Requesttype = "CANCEL"               // Cancel request
)

Jump to

Keyboard shortcuts

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