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
|
@@ 365-377 (lines=13) @@
|
| 362 |
|
* @param AwardPricing $awardPricing |
| 363 |
|
* @return PricingOptionGroup |
| 364 |
|
*/ |
| 365 |
|
protected static function loadAwardPricing($awardPricing) |
| 366 |
|
{ |
| 367 |
|
$po = new PricingOptionGroup(PricingOptionKey::OPTION_AWARD_PRICING); |
| 368 |
|
|
| 369 |
|
$po->carrierInformation = new CarrierInformation($awardPricing->carrier); |
| 370 |
|
|
| 371 |
|
$po->frequentFlyerInformation = new FrequentFlyerInformation(); |
| 372 |
|
$po->frequentFlyerInformation->frequentTravellerDetails[] = new FrequentTravellerDetails( |
| 373 |
|
$awardPricing->tierLevel |
| 374 |
|
); |
| 375 |
|
|
| 376 |
|
return $po; |
| 377 |
|
} |
| 378 |
|
|
| 379 |
|
/** |
| 380 |
|
* Load OB Fees |