/
reply.go
66 lines (49 loc) · 2.23 KB
/
reply.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
package Ticket_DeleteTSTReply_v04_1 // ttstdr041
//import "encoding/xml"
type TicketDeleteTSTReply struct {
// XMLName xml.Name `xml:"http://xml.amadeus.com/TTSTDR_04_1_1A Ticket_DeleteTSTReply"`
// Process status after the TST delete
ProcessStatus *ResponseAnalysisDetailsTypeI `xml:"processStatus,omitempty"` // minOccurs="0"
ApplicationError *ApplicationError `xml:"applicationError,omitempty"` // minOccurs="0"
// PNR record locator information for this transaction. This PNR record locator is used for tracing purpose.
PnrLocatorData *ReservationControlInformationTypeI `xml:"pnrLocatorData,omitempty"` // minOccurs="0"
}
type ApplicationError struct {
// General error information returned by ticketing application
ApplicationErrorInfo *ApplicationErrorInformationType `xml:"applicationErrorInfo"`
// Description in free flow text of the error returned by ticketing application
ErrorText *InteractiveFreeTextTypeI `xml:"errorText,omitempty"` // minOccurs="0"
}
//
// Complex structs
//
type ApplicationErrorDetailType struct {
// Code identifying the data validation error condition.
ApplicationErrorCode string `xml:"applicationErrorCode"`
// Identification of a code list.
CodeListQualifier string `xml:"codeListQualifier,omitempty"` // minOccurs="0"
// Code identifying the agency responsible for a code list.
CodeListResponsibleAgency string `xml:"codeListResponsibleAgency,omitempty"` // minOccurs="0"
}
type ApplicationErrorInformationType struct {
// Application error details.
ApplicationErrorDetail *ApplicationErrorDetailType `xml:"applicationErrorDetail"`
}
type InteractiveFreeTextTypeI struct {
// Free flow text describing the error
ErrorFreeText string `xml:"errorFreeText,omitempty"` // minOccurs="0"
}
type ReservationControlInformationDetailsTypeI struct {
// Record locator.
ControlNumber string `xml:"controlNumber"`
}
type ReservationControlInformationTypeI struct {
// Reservation control information
ReservationInformation *ReservationControlInformationDetailsTypeI `xml:"reservationInformation"`
}
type ResponseAnalysisDetailsTypeI struct {
// Type of the response (update/cancel request)
ResponseType string `xml:"responseType"`
// Status of the process ran.
ProcessingStatus string `xml:"processingStatus"`
}