Class: Worldline::Connect::SDK::V1::Domain::AirlineFlightLeg

Inherits:
Domain::DataObject show all
Defined in:
lib/worldline/connect/sdk/v1/domain/airline_flight_leg.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Domain::DataObject

new_from_hash

Instance Attribute Details

#airline_classString

Returns the current value of airline_class.

Returns:

  • (String)

    the current value of airline_class



32
33
34
# File 'lib/worldline/connect/sdk/v1/domain/airline_flight_leg.rb', line 32

def airline_class
  @airline_class
end

#arrival_airportString

Returns the current value of arrival_airport.

Returns:

  • (String)

    the current value of arrival_airport



32
33
34
# File 'lib/worldline/connect/sdk/v1/domain/airline_flight_leg.rb', line 32

def arrival_airport
  @arrival_airport
end

#arrival_timeString

Returns the current value of arrival_time.

Returns:

  • (String)

    the current value of arrival_time



32
33
34
# File 'lib/worldline/connect/sdk/v1/domain/airline_flight_leg.rb', line 32

def arrival_time
  @arrival_time
end

#carrier_codeString

Returns the current value of carrier_code.

Returns:

  • (String)

    the current value of carrier_code



32
33
34
# File 'lib/worldline/connect/sdk/v1/domain/airline_flight_leg.rb', line 32

def carrier_code
  @carrier_code
end

#conjunction_ticketString

Returns the current value of conjunction_ticket.

Returns:

  • (String)

    the current value of conjunction_ticket



32
33
34
# File 'lib/worldline/connect/sdk/v1/domain/airline_flight_leg.rb', line 32

def conjunction_ticket
  @conjunction_ticket
end

#coupon_numberString

Returns the current value of coupon_number.

Returns:

  • (String)

    the current value of coupon_number



32
33
34
# File 'lib/worldline/connect/sdk/v1/domain/airline_flight_leg.rb', line 32

def coupon_number
  @coupon_number
end

#dateString

Returns the current value of date.

Returns:

  • (String)

    the current value of date



32
33
34
# File 'lib/worldline/connect/sdk/v1/domain/airline_flight_leg.rb', line 32

def date
  @date
end

#departure_timeString

Returns the current value of departure_time.

Returns:

  • (String)

    the current value of departure_time



32
33
34
# File 'lib/worldline/connect/sdk/v1/domain/airline_flight_leg.rb', line 32

def departure_time
  @departure_time
end

#endorsement_or_restrictionString

Returns the current value of endorsement_or_restriction.

Returns:

  • (String)

    the current value of endorsement_or_restriction



32
33
34
# File 'lib/worldline/connect/sdk/v1/domain/airline_flight_leg.rb', line 32

def endorsement_or_restriction
  @endorsement_or_restriction
end

#exchange_ticketString

Returns the current value of exchange_ticket.

Returns:

  • (String)

    the current value of exchange_ticket



32
33
34
# File 'lib/worldline/connect/sdk/v1/domain/airline_flight_leg.rb', line 32

def exchange_ticket
  @exchange_ticket
end

#fareString

Returns the current value of fare.

Returns:

  • (String)

    the current value of fare



32
33
34
# File 'lib/worldline/connect/sdk/v1/domain/airline_flight_leg.rb', line 32

def fare
  @fare
end

#fare_basisString

Returns the current value of fare_basis.

Returns:

  • (String)

    the current value of fare_basis



32
33
34
# File 'lib/worldline/connect/sdk/v1/domain/airline_flight_leg.rb', line 32

def fare_basis
  @fare_basis
end

#feeInteger

Returns the current value of fee.

Returns:

  • (Integer)

    the current value of fee



32
33
34
# File 'lib/worldline/connect/sdk/v1/domain/airline_flight_leg.rb', line 32

def fee
  @fee
end

#flight_numberString

Returns the current value of flight_number.

Returns:

  • (String)

    the current value of flight_number



32
33
34
# File 'lib/worldline/connect/sdk/v1/domain/airline_flight_leg.rb', line 32

def flight_number
  @flight_number
end

#numberInteger

Returns the current value of number.

Returns:

  • (Integer)

    the current value of number



32
33
34
# File 'lib/worldline/connect/sdk/v1/domain/airline_flight_leg.rb', line 32

def number
  @number
end

#origin_airportString

Returns the current value of origin_airport.

Returns:

  • (String)

    the current value of origin_airport



32
33
34
# File 'lib/worldline/connect/sdk/v1/domain/airline_flight_leg.rb', line 32

def origin_airport
  @origin_airport
end

#passenger_classString

Returns the current value of passenger_class.

Returns:

  • (String)

    the current value of passenger_class



32
33
34
# File 'lib/worldline/connect/sdk/v1/domain/airline_flight_leg.rb', line 32

def passenger_class
  @passenger_class
end

#service_classObject

Deprecated.

Use passengerClass instead



32
33
34
# File 'lib/worldline/connect/sdk/v1/domain/airline_flight_leg.rb', line 32

def service_class
  @service_class
end

#stopover_codeString

Returns the current value of stopover_code.

Returns:

  • (String)

    the current value of stopover_code



32
33
34
# File 'lib/worldline/connect/sdk/v1/domain/airline_flight_leg.rb', line 32

def stopover_code
  @stopover_code
end

#taxesInteger

Returns the current value of taxes.

Returns:

  • (Integer)

    the current value of taxes



32
33
34
# File 'lib/worldline/connect/sdk/v1/domain/airline_flight_leg.rb', line 32

def taxes
  @taxes
end

Instance Method Details

#from_hash(hash) ⇒ Object



101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
# File 'lib/worldline/connect/sdk/v1/domain/airline_flight_leg.rb', line 101

def from_hash(hash)
  super
  if hash.has_key? 'airlineClass'
    @airline_class = hash['airlineClass']
  end
  if hash.has_key? 'arrivalAirport'
    @arrival_airport = hash['arrivalAirport']
  end
  if hash.has_key? 'arrivalTime'
    @arrival_time = hash['arrivalTime']
  end
  if hash.has_key? 'carrierCode'
    @carrier_code = hash['carrierCode']
  end
  if hash.has_key? 'conjunctionTicket'
    @conjunction_ticket = hash['conjunctionTicket']
  end
  if hash.has_key? 'couponNumber'
    @coupon_number = hash['couponNumber']
  end
  if hash.has_key? 'date'
    @date = hash['date']
  end
  if hash.has_key? 'departureTime'
    @departure_time = hash['departureTime']
  end
  if hash.has_key? 'endorsementOrRestriction'
    @endorsement_or_restriction = hash['endorsementOrRestriction']
  end
  if hash.has_key? 'exchangeTicket'
    @exchange_ticket = hash['exchangeTicket']
  end
  if hash.has_key? 'fare'
    @fare = hash['fare']
  end
  if hash.has_key? 'fareBasis'
    @fare_basis = hash['fareBasis']
  end
  if hash.has_key? 'fee'
    @fee = hash['fee']
  end
  if hash.has_key? 'flightNumber'
    @flight_number = hash['flightNumber']
  end
  if hash.has_key? 'number'
    @number = hash['number']
  end
  if hash.has_key? 'originAirport'
    @origin_airport = hash['originAirport']
  end
  if hash.has_key? 'passengerClass'
    @passenger_class = hash['passengerClass']
  end
  if hash.has_key? 'serviceClass'
    @service_class = hash['serviceClass']
  end
  if hash.has_key? 'stopoverCode'
    @stopover_code = hash['stopoverCode']
  end
  if hash.has_key? 'taxes'
    @taxes = hash['taxes']
  end
end

#to_hHash

Returns:

  • (Hash)


76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# File 'lib/worldline/connect/sdk/v1/domain/airline_flight_leg.rb', line 76

def to_h
  hash = super
  hash['airlineClass'] = @airline_class unless @airline_class.nil?
  hash['arrivalAirport'] = @arrival_airport unless @arrival_airport.nil?
  hash['arrivalTime'] = @arrival_time unless @arrival_time.nil?
  hash['carrierCode'] = @carrier_code unless @carrier_code.nil?
  hash['conjunctionTicket'] = @conjunction_ticket unless @conjunction_ticket.nil?
  hash['couponNumber'] = @coupon_number unless @coupon_number.nil?
  hash['date'] = @date unless @date.nil?
  hash['departureTime'] = @departure_time unless @departure_time.nil?
  hash['endorsementOrRestriction'] = @endorsement_or_restriction unless @endorsement_or_restriction.nil?
  hash['exchangeTicket'] = @exchange_ticket unless @exchange_ticket.nil?
  hash['fare'] = @fare unless @fare.nil?
  hash['fareBasis'] = @fare_basis unless @fare_basis.nil?
  hash['fee'] = @fee unless @fee.nil?
  hash['flightNumber'] = @flight_number unless @flight_number.nil?
  hash['number'] = @number unless @number.nil?
  hash['originAirport'] = @origin_airport unless @origin_airport.nil?
  hash['passengerClass'] = @passenger_class unless @passenger_class.nil?
  hash['serviceClass'] = @service_class unless @service_class.nil?
  hash['stopoverCode'] = @stopover_code unless @stopover_code.nil?
  hash['taxes'] = @taxes unless @taxes.nil?
  hash
end