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
|
@@ 386-398 (lines=13) @@
|
| 383 |
|
* @param AwardPricing $awardPricing |
| 384 |
|
* @return PricingOptionGroup |
| 385 |
|
*/ |
| 386 |
|
protected static function loadAwardPricing($awardPricing) |
| 387 |
|
{ |
| 388 |
|
$po = new PricingOptionGroup(PricingOptionKey::OPTION_AWARD_PRICING); |
| 389 |
|
|
| 390 |
|
$po->carrierInformation = new CarrierInformation($awardPricing->carrier); |
| 391 |
|
|
| 392 |
|
$po->frequentFlyerInformation = new FrequentFlyerInformation(); |
| 393 |
|
$po->frequentFlyerInformation->frequentTravellerDetails[] = new FrequentTravellerDetails( |
| 394 |
|
$awardPricing->tierLevel |
| 395 |
|
); |
| 396 |
|
|
| 397 |
|
return $po; |
| 398 |
|
} |
| 399 |
|
|
| 400 |
|
/** |
| 401 |
|
* Load OB Fees |