Documentation ¶
Index ¶
- Constants
- Variables
- func HashedPassword(password string, nonceRaw string, timestamp string) string
- type AMASecurityHostedUser
- type AMASecurityHostedUserUserID
- type AddressingFrom
- type AmadeusClient
- func (client *AmadeusClient) AMATicketIgnoreRefundV030(query *AMA_TicketIgnoreRefund_v03_0.AMATicketIgnoreRefundRQ) (*AMA_TicketIgnoreRefund_v03_0.AMATicketIgnoreRefundRS, *ResponseSOAP4Header, ...)
- func (client *AmadeusClient) AMATicketInitRefundV030(query *AMA_TicketInitRefund_v03_0.AMATicketInitRefundRQ) (*AMA_TicketInitRefund_v03_0.AMATicketInitRefundRS, *ResponseSOAP4Header, error)
- func (client *AmadeusClient) AMATicketProcessRefundV030(query *AMA_TicketProcessRefund_v03_0.AMATicketProcessRefundRQ) (*AMA_TicketProcessRefund_v03_0.AMATicketProcessRefundRS, *ResponseSOAP4Header, ...)
- func (client *AmadeusClient) AirSellFromRecommendationV052(query *Air_SellFromRecommendation_v05_2.AirSellFromRecommendation) (*Air_SellFromRecommendationReply_v05_2.AirSellFromRecommendationReply, ...)
- func (client *AmadeusClient) Close() error
- func (client *AmadeusClient) CloseSession() (reply *Security_SignOutReply_v04_1.SecuritySignOutReply, err error)
- func (client *AmadeusClient) CommandCrypticV073(query *Command_Cryptic_v07_3.CommandCryptic) (*Command_CrypticReply_v07_3.CommandCrypticReply, *ResponseSOAP4Header, error)
- func (client *AmadeusClient) DocIssuanceIssueTicketV091(query *DocIssuance_IssueTicket_v09_1.DocIssuanceIssueTicket) (*DocIssuance_IssueTicketReply_v09_1.DocIssuanceIssueTicketReply, ...)
- func (client *AmadeusClient) FareCheckRulesV071(query *Fare_CheckRules_v07_1.FareCheckRules) (*Fare_CheckRulesReply_v07_1.FareCheckRulesReply, *ResponseSOAP4Header, error)
- func (client *AmadeusClient) FareInformativePricingWithoutPNRv124(...) (...)
- func (client *AmadeusClient) FareMasterPricerTravelBoardSearchV143(...) (...)
- func (client *AmadeusClient) FarePricePNRWithBookingClassV141(query *Fare_PricePNRWithBookingClass_v14_1.FarePricePNRWithBookingClass) (*Fare_PricePNRWithBookingClassReply_v14_1.FarePricePNRWithBookingClassReply, ...)
- func (client *AmadeusClient) GetSession() *Session
- func (client *AmadeusClient) IncSequenceNumber(header *ResponseSOAP4Header)
- func (client *AmadeusClient) PNRAddMultiElementsV113(query *PNR_AddMultiElements_v11_3.PNRAddMultiElements) (*PNR_Reply_v11_3.PNRReply, *ResponseSOAP4Header, error)
- func (client *AmadeusClient) PNRCancelV113(query *PNR_Cancel_v11_3.PNRCancel) (*PNR_Reply_v11_3.PNRReply, *ResponseSOAP4Header, error)
- func (client *AmadeusClient) PNRRetrieveV113(query *PNR_Retrieve_v11_3.PNRRetrieve) (*PNR_Reply_v11_3.PNRReply, *ResponseSOAP4Header, error)
- func (client *AmadeusClient) SalesReportsDisplayQueryReportV101(query *SalesReports_DisplayQueryReport_v10_1.SalesReportsDisplayQueryReport) (...)
- func (client *AmadeusClient) SecuritySignOutV041() (*Security_SignOutReply_v04_1.SecuritySignOutReply, *ResponseSOAP4Header, error)
- func (client *AmadeusClient) SessionIsClosed() bool
- func (client *AmadeusClient) SetSessionEndTransaction() bool
- func (client *AmadeusClient) TicketCancelDocumentV111(query *Ticket_CancelDocument_v11_1.TicketCancelDocument) (*Ticket_CancelDocumentReply_v11_1.TicketCancelDocumentReply, ...)
- func (client *AmadeusClient) TicketCreateTSTFromPricingV041(query *Ticket_CreateTSTFromPricing_v04_1.TicketCreateTSTFromPricing) (*Ticket_CreateTSTFromPricingReply_v04_1.TicketCreateTSTFromPricingReply, ...)
- func (client *AmadeusClient) TicketDeleteTSTv041(query *Ticket_DeleteTST_v04_1.TicketDeleteTST) (*Ticket_DeleteTSTReply_v04_1.TicketDeleteTSTReply, *ResponseSOAP4Header, error)
- func (client *AmadeusClient) TicketDisplayTSTv071(query *Ticket_DisplayTST_v07_1.TicketDisplayTST) (*Ticket_DisplayTSTReply_v07_1.TicketDisplayTSTReply, *ResponseSOAP4Header, ...)
- func (client *AmadeusClient) TicketProcessEDocV152(query *Ticket_ProcessEDoc_v15_2.TicketProcessEDoc) (*Ticket_ProcessEDocReply_v15_2.TicketProcessEDocReply, *ResponseSOAP4Header, ...)
- func (client *AmadeusClient) UpdateSession(session *Session) bool
- type RequestSOAP4Envelope
- type RequestSession
- type RequsetSOAP4Header
- type ResponseSOAP4Envelope
- type ResponseSOAP4Header
- type ResponseSOAPBody
- type SOAP4Client
- type SOAPBody
- type SOAPFault
- type SOAPHeader
- type Session
- type WSSNonce
- type WSSPassword
- type WSSSecurityHeader
- type WSSUsernameToken
- type WebServicePT
- func (service *WebServicePT) AddHeader(header interface{})
- func (service *WebServicePT) Call(soapUrl, soapAction, messageId string, query, reply interface{}, ...) (header *ResponseSOAP4Header, err error)
- func (service *WebServicePT) SetHeader(header interface{})
- func (service *WebServicePT) UpdateHeader(header interface{})
Constants ¶
View Source
const ( ActBookAirSellFromRecommendation = "ITAREQ_05_2_IA" ActBookPNRAddMultiElements = "PNRADD_11_3_1A" ActBookFarePricePNRWithBookingClass = "TPCBRQ_14_1_1A" ActBookTicketCreateTSTFromPricing = "TAUTCQ_04_1_1A" ActBookPNRCancel = "PNRXCL_11_3_1A" )
View Source
const ( SoapNs = "http://schemas.xmlsoap.org/soap/envelope/" XsiNs = "http://www.w3.org/2001/XMLSchema-instance" XsdNs = "http://www.w3.org/2001/XMLSchema" WasNs = "http://www.w3.org/2005/08/addressing" // Predefined WSS namespaces to be used in WssNsWSSE = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" WssNsWSU = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" WssNsEncodingType = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" WssNsPasswordType = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest" )
View Source
const ( ActInfoPNRRetrieve = "PNRRET_11_3_1A" ActInfoFareInformativePricingWithoutPNR = "TIPNRQ_12_4_1A" ActInfoFareCheckRules = "FARQNQ_07_1_1A" )
View Source
const ( ActRefundAMATicketIgnoreRefund = "Ticket_IgnoreRefund_3.0" ActRefundAMATicketInitRefund = "Ticket_InitRefund_3.0" ActRefundAMATicketProcessRefund = "Ticket_ProcessRefund_3.0" ActRefundTicketProcessEDoc = "TATREQ_15_2_1A" )
View Source
const ( Start = iota End Rollback InSeries Continuation Subsequent )
View Source
const ( ActVoidSalesReportsDisplayQueryReport = "TSRQRQ_10_1_1A" ActVoidTicketCancelDocument = "TRCANQ_11_1_1A" )
View Source
const (
ActIssueDocIssuanceIssueTicket = "TTKTIQ_09_1_1A"
)
View Source
const (
ActSearchFareMasterPricerTravelBoardSearch = "FMPTBQ_14_3_1A"
)
View Source
const (
ActSessionSecuritySignOut = "VLSSOQ_04_1_1A"
)
Variables ¶
View Source
var TransactionStatusCode = [...]string{
"Start",
"End",
"Rollback",
"InSeries",
"Continuation",
"Subsequent",
}
Functions ¶
Types ¶
type AMASecurityHostedUser ¶
type AMASecurityHostedUser struct { XMLName xml.Name `xml:"http://xml.amadeus.com/2010/06/Security_v1 AMA_SecurityHostedUser"` UserId AMASecurityHostedUserUserID // `xml:"UserID"` }
func NewAMASecurityHostedUser ¶
func NewAMASecurityHostedUser(agent string) *AMASecurityHostedUser
type AddressingFrom ¶
type AddressingFrom struct { // XMLName xml.Name `xml:"wsa:From"` Address string `xml:"Address"` }
type AmadeusClient ¶
type AmadeusClient struct { //session *soap4_0.Session_v3 // messageIds []string Hooks hooks.LevelHooks // contains filtered or unexported fields }
func CreateAmadeusClient ¶
func CreateAmadeusClient(url, originator, passwordRaw, officeId string) *AmadeusClient
func (*AmadeusClient) AMATicketIgnoreRefundV030 ¶
func (client *AmadeusClient) AMATicketIgnoreRefundV030(query *AMA_TicketIgnoreRefund_v03_0.AMATicketIgnoreRefundRQ) (*AMA_TicketIgnoreRefund_v03_0.AMATicketIgnoreRefundRS, *ResponseSOAP4Header, error)
func (*AmadeusClient) AMATicketInitRefundV030 ¶
func (client *AmadeusClient) AMATicketInitRefundV030(query *AMA_TicketInitRefund_v03_0.AMATicketInitRefundRQ) (*AMA_TicketInitRefund_v03_0.AMATicketInitRefundRS, *ResponseSOAP4Header, error)
func (*AmadeusClient) AMATicketProcessRefundV030 ¶
func (client *AmadeusClient) AMATicketProcessRefundV030(query *AMA_TicketProcessRefund_v03_0.AMATicketProcessRefundRQ) (*AMA_TicketProcessRefund_v03_0.AMATicketProcessRefundRS, *ResponseSOAP4Header, error)
func (*AmadeusClient) AirSellFromRecommendationV052 ¶
func (client *AmadeusClient) AirSellFromRecommendationV052(query *Air_SellFromRecommendation_v05_2.AirSellFromRecommendation) (*Air_SellFromRecommendationReply_v05_2.AirSellFromRecommendationReply, *ResponseSOAP4Header, error)
func (*AmadeusClient) Close ¶
func (client *AmadeusClient) Close() error
func (*AmadeusClient) CloseSession ¶
func (client *AmadeusClient) CloseSession() (reply *Security_SignOutReply_v04_1.SecuritySignOutReply, err error)
func (*AmadeusClient) CommandCrypticV073 ¶
func (client *AmadeusClient) CommandCrypticV073(query *Command_Cryptic_v07_3.CommandCryptic) (*Command_CrypticReply_v07_3.CommandCrypticReply, *ResponseSOAP4Header, error)
func (*AmadeusClient) DocIssuanceIssueTicketV091 ¶
func (client *AmadeusClient) DocIssuanceIssueTicketV091(query *DocIssuance_IssueTicket_v09_1.DocIssuanceIssueTicket) (*DocIssuance_IssueTicketReply_v09_1.DocIssuanceIssueTicketReply, *ResponseSOAP4Header, error)
func (*AmadeusClient) FareCheckRulesV071 ¶
func (client *AmadeusClient) FareCheckRulesV071(query *Fare_CheckRules_v07_1.FareCheckRules) (*Fare_CheckRulesReply_v07_1.FareCheckRulesReply, *ResponseSOAP4Header, error)
func (*AmadeusClient) FareInformativePricingWithoutPNRv124 ¶
func (client *AmadeusClient) FareInformativePricingWithoutPNRv124(query *Fare_InformativePricingWithoutPNR_v12_4.FareInformativePricingWithoutPNR) (*Fare_InformativePricingWithoutPNRReply_v12_4.FareInformativePricingWithoutPNRReply, *ResponseSOAP4Header, error)
func (*AmadeusClient) FareMasterPricerTravelBoardSearchV143 ¶
func (client *AmadeusClient) FareMasterPricerTravelBoardSearchV143(query *Fare_MasterPricerTravelBoardSearch_v14_3.FareMasterPricerTravelBoardSearch) (*Fare_MasterPricerTravelBoardSearchReply_v14_3.FareMasterPricerTravelBoardSearchReply, *ResponseSOAP4Header, error)
func (*AmadeusClient) FarePricePNRWithBookingClassV141 ¶
func (client *AmadeusClient) FarePricePNRWithBookingClassV141(query *Fare_PricePNRWithBookingClass_v14_1.FarePricePNRWithBookingClass) (*Fare_PricePNRWithBookingClassReply_v14_1.FarePricePNRWithBookingClassReply, *ResponseSOAP4Header, error)
func (*AmadeusClient) GetSession ¶
func (client *AmadeusClient) GetSession() *Session
func (*AmadeusClient) IncSequenceNumber ¶
func (client *AmadeusClient) IncSequenceNumber(header *ResponseSOAP4Header)
func (*AmadeusClient) PNRAddMultiElementsV113 ¶
func (client *AmadeusClient) PNRAddMultiElementsV113(query *PNR_AddMultiElements_v11_3.PNRAddMultiElements) (*PNR_Reply_v11_3.PNRReply, *ResponseSOAP4Header, error)
func (*AmadeusClient) PNRCancelV113 ¶
func (client *AmadeusClient) PNRCancelV113(query *PNR_Cancel_v11_3.PNRCancel) (*PNR_Reply_v11_3.PNRReply, *ResponseSOAP4Header, error)
func (*AmadeusClient) PNRRetrieveV113 ¶
func (client *AmadeusClient) PNRRetrieveV113(query *PNR_Retrieve_v11_3.PNRRetrieve) (*PNR_Reply_v11_3.PNRReply, *ResponseSOAP4Header, error)
func (*AmadeusClient) SalesReportsDisplayQueryReportV101 ¶
func (client *AmadeusClient) SalesReportsDisplayQueryReportV101(query *SalesReports_DisplayQueryReport_v10_1.SalesReportsDisplayQueryReport) (*SalesReports_DisplayQueryReportReply_v10_1.SalesReportsDisplayQueryReportReply, *ResponseSOAP4Header, error)
func (*AmadeusClient) SecuritySignOutV041 ¶
func (client *AmadeusClient) SecuritySignOutV041() (*Security_SignOutReply_v04_1.SecuritySignOutReply, *ResponseSOAP4Header, error)
func (*AmadeusClient) SessionIsClosed ¶
func (client *AmadeusClient) SessionIsClosed() bool
func (*AmadeusClient) SetSessionEndTransaction ¶
func (client *AmadeusClient) SetSessionEndTransaction() bool
func (*AmadeusClient) TicketCancelDocumentV111 ¶
func (client *AmadeusClient) TicketCancelDocumentV111(query *Ticket_CancelDocument_v11_1.TicketCancelDocument) (*Ticket_CancelDocumentReply_v11_1.TicketCancelDocumentReply, *ResponseSOAP4Header, error)
func (*AmadeusClient) TicketCreateTSTFromPricingV041 ¶
func (client *AmadeusClient) TicketCreateTSTFromPricingV041(query *Ticket_CreateTSTFromPricing_v04_1.TicketCreateTSTFromPricing) (*Ticket_CreateTSTFromPricingReply_v04_1.TicketCreateTSTFromPricingReply, *ResponseSOAP4Header, error)
func (*AmadeusClient) TicketDeleteTSTv041 ¶
func (client *AmadeusClient) TicketDeleteTSTv041(query *Ticket_DeleteTST_v04_1.TicketDeleteTST) (*Ticket_DeleteTSTReply_v04_1.TicketDeleteTSTReply, *ResponseSOAP4Header, error)
func (*AmadeusClient) TicketDisplayTSTv071 ¶
func (client *AmadeusClient) TicketDisplayTSTv071(query *Ticket_DisplayTST_v07_1.TicketDisplayTST) (*Ticket_DisplayTSTReply_v07_1.TicketDisplayTSTReply, *ResponseSOAP4Header, error)
func (*AmadeusClient) TicketProcessEDocV152 ¶
func (client *AmadeusClient) TicketProcessEDocV152(query *Ticket_ProcessEDoc_v15_2.TicketProcessEDoc) (*Ticket_ProcessEDocReply_v15_2.TicketProcessEDocReply, *ResponseSOAP4Header, error)
func (*AmadeusClient) UpdateSession ¶
func (client *AmadeusClient) UpdateSession(session *Session) bool
type RequestSOAP4Envelope ¶
type RequestSession ¶
type RequsetSOAP4Header ¶
type RequsetSOAP4Header struct { XMLName xml.Name `xml:"soap:Header"` WSAAttr string `xml:"xmlns:wsa,attr"` To string `xml:"wsa:To"` Action string `xml:"wsa:Action"` MessageId string `xml:"wsa:MessageID"` Security *WSSSecurityHeader // `xml:"wsse:Security"` AMASecurity *AMASecurityHostedUser // `xml:"AMA_SecurityHostedUser"` Session *RequestSession // `xml:"Session"` }
type ResponseSOAP4Envelope ¶
type ResponseSOAP4Envelope struct { // XMLName xml.Name `xml:"http://schemas.xmlsoap.org/soap/envelope/ Envelope"` Header ResponseSOAP4Header Body ResponseSOAPBody }
type ResponseSOAP4Header ¶
type ResponseSOAP4Header struct { To string `xml:"To"` From AddressingFrom `xml:"From"` Action string `xml:"Action"` MessageId string `xml:"MessageID"` // RelatesTo RelatesTo `xml:"RelatesTo"` RelatesTo string `xml:"RelatesTo"` Session Session `xml:"Session"` Items []interface{} `xml:",omitempty"` }
type ResponseSOAPBody ¶
type ResponseSOAPBody struct { XMLName xml.Name `xml:"http://schemas.xmlsoap.org/soap/envelope/ Body"` Fault *SOAPFault `xml:",omitempty"` Content interface{} `xml:",omitempty"` }
func (*ResponseSOAPBody) UnmarshalXML ¶
func (b *ResponseSOAPBody) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
type SOAP4Client ¶
type SOAP4Client struct {
// contains filtered or unexported fields
}
func NewSOAP4Client ¶
func NewSOAP4Client(url, user, pass, agent string, tls bool) *SOAP4Client
func (*SOAP4Client) AddHeader ¶
func (s *SOAP4Client) AddHeader(header interface{})
func (*SOAP4Client) Call ¶
func (s *SOAP4Client) Call(soapUrl, soapAction, messageId string, query, reply interface{}, cli *AmadeusClient) (*ResponseSOAP4Header, error)
func (*SOAP4Client) UpdateHeader ¶
func (s *SOAP4Client) UpdateHeader(header interface{})
type SOAPFault ¶
type SOAPHeader ¶
type Session ¶
type Session struct { // This attributes defines the status code of the session in a stateful flow. TransactionStatusCode string `xml:"TransactionStatusCode,attr,omitempty"` // This element defines the identifier part of the SessionId. SessionId string `xml:"SessionId,omitempty"` // This element defines the sequence number of the SessionId. SequenceNumber int `xml:"SequenceNumber,omitempty"` // This element defines the SecurityToken of the SessionId. SecurityToken string `xml:"SecurityToken,omitempty"` }
func CreateSession ¶
func CreateSession() *Session
type WSSPassword ¶
type WSSSecurityHeader ¶
type WSSSecurityHeader struct { XMLName xml.Name `xml:"wsse:Security"` XmlNSWsse string `xml:"xmlns:wsse,attr"` XmlNSWsu string `xml:"xmlns:wsu,attr"` MustUnderstand string `xml:"mustUnderstand,attr,omitempty"` Token *WSSUsernameToken `xml:",omitempty"` }
func NewWSSSecurityHeader ¶
func NewWSSSecurityHeader(user, pass, mustUnderstand string) *WSSSecurityHeader
type WSSUsernameToken ¶
type WebServicePT ¶
type WebServicePT struct {
// contains filtered or unexported fields
}
func CreateWebServicePTSOAP4Header ¶
func CreateWebServicePTSOAP4Header(url, user, pass, agent string, tls bool) *WebServicePT
func (*WebServicePT) AddHeader ¶
func (service *WebServicePT) AddHeader(header interface{})
func (*WebServicePT) Call ¶
func (service *WebServicePT) Call(soapUrl, soapAction, messageId string, query, reply interface{}, client *AmadeusClient) (header *ResponseSOAP4Header, err error)
func (*WebServicePT) SetHeader ¶
func (service *WebServicePT) SetHeader(header interface{})
Backwards-compatible function: use AddHeader instead
func (*WebServicePT) UpdateHeader ¶
func (service *WebServicePT) UpdateHeader(header interface{})
Source Files ¶
Click to show internal directories.
Click to hide internal directories.