src/Amadeus/Client/Struct/Ticket/RepricePnrWithBookingClass.php 1 location
|
@@ 317-329 (lines=13) @@
|
| 314 |
|
* @param AwardPricing $awardPricing |
| 315 |
|
* @return PricingOption |
| 316 |
|
*/ |
| 317 |
|
protected function loadAwardPricing($awardPricing) |
| 318 |
|
{ |
| 319 |
|
$po = new PricingOption(PricingOptionKey::OPTION_AWARD); |
| 320 |
|
|
| 321 |
|
$po->carrierInformation = new CarrierInformation($awardPricing->carrier); |
| 322 |
|
|
| 323 |
|
$po->frequentFlyerInformation = new FrequentFlyerInformation(); |
| 324 |
|
$po->frequentFlyerInformation->frequentTravellerDetails[] = new FrequentTravellerDetails( |
| 325 |
|
$awardPricing->tierLevel |
| 326 |
|
); |
| 327 |
|
|
| 328 |
|
return $po; |
| 329 |
|
} |
| 330 |
|
|
| 331 |
|
/** |
| 332 |
|
* @param FareBasis[] $pricingsFareBasis |
src/Amadeus/Client/Struct/Fare/PricePNRWithBookingClass13.php 1 location
|
@@ 340-352 (lines=13) @@
|
| 337 |
|
* @param AwardPricing $awardPricing |
| 338 |
|
* @return PricingOptionGroup |
| 339 |
|
*/ |
| 340 |
|
protected static function loadAwardPricing($awardPricing) |
| 341 |
|
{ |
| 342 |
|
$po = new PricingOptionGroup(PricingOptionKey::OPTION_AWARD_PRICING); |
| 343 |
|
|
| 344 |
|
$po->carrierInformation = new CarrierInformation($awardPricing->carrier); |
| 345 |
|
|
| 346 |
|
$po->frequentFlyerInformation = new FrequentFlyerInformation(); |
| 347 |
|
$po->frequentFlyerInformation->frequentTravellerDetails[] = new FrequentTravellerDetails( |
| 348 |
|
$awardPricing->tierLevel |
| 349 |
|
); |
| 350 |
|
|
| 351 |
|
return $po; |
| 352 |
|
} |
| 353 |
|
|
| 354 |
|
/** |
| 355 |
|
* Load OB Fees |