Documentation

FlightOffer extends Resource
in package
implements ResourceInterface

A FlightOffer object as returned by the Flight Offers Search API, Flight Choice Prediction API.

Tags
see
FlightOffers::get()
see
FlightOffers::post()
see
Prediction::post()
see
Prediction::postWithFlightOffers()
link
https://developers.amadeus.com/self-service/category/air/api-doc/flight-offers-search/api-reference
link
https://developers.amadeus.com/self-service/category/air/api-doc/flight-choice-prediction/api-reference

Interfaces, Classes, Traits and Enums

ResourceInterface

Table of Contents

$choiceProbability  : string|null
$disablePricing  : bool|null
$fareRules  : object|null
$id  : string|null
$instantTicketingRequired  : bool|null
$itineraries  : array<string|int, mixed>|null
$lastTicketingDate  : string|null
$nonHomogeneous  : bool|null
$numberOfBookableSeats  : int|null
$oneWay  : bool|null
$paymentCardRequired  : bool|null
$price  : object|null
$pricingOptions  : object|null
$response  : Response|null
$source  : string|null
$travelerPricings  : array<string|int, mixed>|null
$type  : string|null
$validatingAirlineCodes  : array<string|int, mixed>|null
__set()  : void
__toString()  : string
fromArray()  : array<string|int, mixed>
fromObject()  : object
getChoiceProbability()  : string|null
getDisablePricing()  : bool|null
getFareRules()  : FareRules|null
getId()  : string|null
getInstantTicketingRequired()  : bool|null
getItineraries()  : array<string|int, FlightItineraries>|null
getLastTicketingDate()  : string|null
getNonHomogeneous()  : bool|null
getNumberOfBookableSeats()  : int|null
getOneWay()  : bool|null
getPaymentCardRequired()  : bool|null
getPrice()  : FlightPrice|null
getPricingOptions()  : FlightPricingOptions|null
getResponse()  : Response|null
getSource()  : string|null
getTravelerPricings()  : array<string|int, TravelerPricing>|null
getType()  : string|null
getValidatingAirlineCodes()  : array<string|int, mixed>|null
toArray()  : array<string|int, mixed>
For fitting into the Laravel framework Transform the resource into an array.
toResourceArray()  : array<string|int, mixed>
toResourceObject()  : object
toString()  : string

Properties

$choiceProbability

private string|null $choiceProbability = null

$disablePricing

private bool|null $disablePricing = null

$instantTicketingRequired

private bool|null $instantTicketingRequired = null

$itineraries

private array<string|int, mixed>|null $itineraries = null

$lastTicketingDate

private string|null $lastTicketingDate = null

$nonHomogeneous

private bool|null $nonHomogeneous = null

$numberOfBookableSeats

private int|null $numberOfBookableSeats = null

$paymentCardRequired

private bool|null $paymentCardRequired = null

$pricingOptions

private object|null $pricingOptions = null

$travelerPricings

private array<string|int, mixed>|null $travelerPricings = null

$validatingAirlineCodes

private array<string|int, mixed>|null $validatingAirlineCodes = null

Methods

__set()

public __set(mixed $name, mixed $value) : void
Parameters
$name : mixed
$value : mixed
Return values
void

__toString()

public __toString() : string
Return values
string

fromArray()

public static fromArray(Response $response, string $class) : array<string|int, mixed>
Parameters
$response : Response
$class : string
Return values
array<string|int, mixed>

fromObject()

public static fromObject(Response $response, string $class) : object
Parameters
$response : Response
$class : string
Return values
object

getChoiceProbability()

public getChoiceProbability() : string|null
Return values
string|null

getDisablePricing()

public getDisablePricing() : bool|null
Return values
bool|null

getId()

public getId() : string|null
Return values
string|null

getInstantTicketingRequired()

public getInstantTicketingRequired() : bool|null
Return values
bool|null

getLastTicketingDate()

public getLastTicketingDate() : string|null
Return values
string|null

getNonHomogeneous()

public getNonHomogeneous() : bool|null
Return values
bool|null

getNumberOfBookableSeats()

public getNumberOfBookableSeats() : int|null
Return values
int|null

getOneWay()

public getOneWay() : bool|null
Return values
bool|null

getPaymentCardRequired()

public getPaymentCardRequired() : bool|null
Return values
bool|null

getSource()

public getSource() : string|null
Return values
string|null

getType()

public getType() : string|null
Return values
string|null

getValidatingAirlineCodes()

public getValidatingAirlineCodes() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

toArray()

For fitting into the Laravel framework Transform the resource into an array.

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

toResourceArray()

public static toResourceArray(array<string|int, mixed> $array, string $class) : array<string|int, mixed>
Parameters
$array : array<string|int, mixed>
$class : string
Return values
array<string|int, mixed>

toResourceObject()

public static toResourceObject(object $object, string $class) : object
Parameters
$object : object
$class : string
Return values
object

toString()

public static toString( $array) : string
Parameters
$array :
Return values
string

Search results