-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdemand_tickets_rs.go
86 lines (70 loc) · 1.65 KB
/
demand_tickets_rs.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
package s7_api_sdk
type AirDocDisplayRS struct {
Version string `xml:"Version,attr"`
Document *Document
Response *Response
Errors *Errors
}
type TicketDocInfos struct {
TicketDocInfo []*TicketDocInfo `xml:",omitempty"`
}
type IssuingAirlineInfo struct {
AirlineName string
}
type OriginDestinationDemand struct {
Origin string
Destination string
}
type FareInfo struct {
BaseFare *BaseFare
Total *BaseFare
Taxes *Taxes
UnstructuredFareCalcInfo *UnstructuredFareCalcInfo
}
type BaseFare struct {
Amount *Total
}
type UnstructuredFareCalcInfo struct {
Info string
}
type TicketDocument struct {
TicketDocNbr string
Type *Type
NumberofBooklets int `xml:",omitempty"`
DateOfIssue string `xml:",omitempty"`
CouponInfo []*CouponInfo `xml:",omitempty"`
}
type CouponInfo struct {
CouponNumber int
FareBasisCode *StatusCode
CouponValid *CouponValid
Status *StatusCode
SoldAirlineInfo *SoldAirlineInfo
}
type CouponValid struct {
EffectiveDatePeriod *EffectiveDatePeriod
}
type EffectiveDatePeriod struct {
Expiration string
}
type SoldAirlineInfo struct {
Departure *Point
Arrival *Point
OperatingCarrier *OperatingCarrier
MarketingCarrier *Carrier
TicketedBaggageAllowance *TicketedBaggageAllowance
}
type OperatingCarrier struct {
ResBookDesigCode string
}
type TicketedBaggageAllowance struct {
AllowableBag *AllowableBag
}
type AllowableBag struct {
Type string `xml:",attr"`
Number int `xml:",attr"`
}
type Commission struct {
Amount float64
Remarks *Remarks
}