-
Notifications
You must be signed in to change notification settings - Fork 10
/
structs.go
70 lines (47 loc) · 1.9 KB
/
structs.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
67
68
69
70
package security_signout_reply
//import "encoding/xml"
type SecuritySignOutReply struct {
// XMLName xml.Name `xml:"http://xml.amadeus.com/VLSSOR_04_1_1A Security_SignOutReply"`
ErrorSection *ErrorSection `xml:"errorSection,omitempty"` // minOccurs="0"
// This segment is only used if process is OK. In that case P is specified.
ProcessStatus *ResponseAnalysisDetailsType `xml:"processStatus,omitempty"` // minOccurs="0"
}
type ErrorSection struct {
// Application Error
ApplicationError *ApplicationErrorInformationType `xml:"applicationError"`
// Supplementary Info on the Error.
InteractiveFreeText *InteractiveFreeTextTypeI `xml:"interactiveFreeText,omitempty"` // minOccurs="0"
}
//
// Complex structs
//
type ApplicationErrorDetailType struct {
// Code identifying the data validation error condition.
ErrorCode string `xml:"errorCode"`
// Identification of a code list.
ErrorCategory string `xml:"errorCategory,omitempty"` // minOccurs="0"
// Code identifying the agency responsible for a code list.
ErrorCodeOwner string `xml:"errorCodeOwner,omitempty"` // minOccurs="0"
}
type ApplicationErrorInformationType struct {
// Application error details.
ErrorDetails *ApplicationErrorDetailType `xml:"errorDetails"`
}
type FreeTextQualificationTypeI struct {
// Subject
TextSubjectQualifier string `xml:"textSubjectQualifier"`
// Info Type
InformationType string `xml:"informationType,omitempty"` // minOccurs="0"
// Language
Language string `xml:"language,omitempty"` // minOccurs="0"
}
type InteractiveFreeTextTypeI struct {
// Free Text Qualifier
FreeTextQualification *FreeTextQualificationTypeI `xml:"freeTextQualification,omitempty"` // minOccurs="0"
// Free Text
FreeText []string `xml:"freeText,omitempty"` // minOccurs="0" maxOccurs="99"
}
type ResponseAnalysisDetailsType struct {
// P must be specified when status of the process is OK.
StatusCode string `xml:"statusCode"`
}