| @@ 322-335 (lines=14) @@ | ||
| 319 | * @param string|null $corporateNegoFare |
|
| 320 | * @return PricingOptionGroup[] |
|
| 321 | */ |
|
| 322 | protected static function loadCorpNegoFare($corporateNegoFare) |
|
| 323 | { |
|
| 324 | $opt = []; |
|
| 325 | ||
| 326 | if ($corporateNegoFare !== null) { |
|
| 327 | $po = new PricingOptionGroup(PricingOptionKey::OPTION_CORPORATE_NEGOTIATED_FARES); |
|
| 328 | ||
| 329 | $po->optionDetail = new OptionDetail($corporateNegoFare); |
|
| 330 | ||
| 331 | $opt[] = $po; |
|
| 332 | } |
|
| 333 | ||
| 334 | return $opt; |
|
| 335 | } |
|
| 336 | ||
| 337 | /** |
|
| 338 | * Load corporate unifares |
|
| @@ 473-484 (lines=12) @@ | ||
| 470 | * @param string|null $pricingLogic |
|
| 471 | * @return PricingOptionGroup[] |
|
| 472 | */ |
|
| 473 | protected static function loadPricingLogic($pricingLogic) |
|
| 474 | { |
|
| 475 | $opt = []; |
|
| 476 | ||
| 477 | if (!empty($pricingLogic)) { |
|
| 478 | $po = new PricingOptionGroup(PricingOptionKey::OPTION_PRICING_LOGIC); |
|
| 479 | $po->optionDetail = new OptionDetail($pricingLogic); |
|
| 480 | $opt[] = $po; |
|
| 481 | } |
|
| 482 | ||
| 483 | return $opt; |
|
| 484 | } |
|
| 485 | ||
| 486 | /** |
|
| 487 | * @param string|null $ticketType |
|
| @@ 490-503 (lines=14) @@ | ||
| 487 | * @param string|null $ticketType |
|
| 488 | * @return PricingOptionGroup[] |
|
| 489 | */ |
|
| 490 | protected static function loadTicketType($ticketType) |
|
| 491 | { |
|
| 492 | $opt = []; |
|
| 493 | ||
| 494 | if (!empty($ticketType)) { |
|
| 495 | $po = new PricingOptionGroup(PricingOptionKey::OPTION_TICKET_TYPE); |
|
| 496 | ||
| 497 | $po->optionDetail = new OptionDetail($ticketType); |
|
| 498 | ||
| 499 | $opt[] = $po; |
|
| 500 | } |
|
| 501 | ||
| 502 | return $opt; |
|
| 503 | } |
|
| 504 | ||
| 505 | /** |
|
| 506 | * @param Tax[] $taxes |
|
| @@ 584-597 (lines=14) @@ | ||
| 581 | * @param FormOfPayment[] $formOfPayment |
|
| 582 | * @return PricingOptionGroup[] |
|
| 583 | */ |
|
| 584 | protected static function loadFormOfPayment($formOfPayment) |
|
| 585 | { |
|
| 586 | $opt = []; |
|
| 587 | ||
| 588 | if (!empty($formOfPayment)) { |
|
| 589 | $po = new PricingOptionGroup(PricingOptionKey::OPTION_FORM_OF_PAYMENT); |
|
| 590 | ||
| 591 | $po->formOfPaymentInformation = new FormOfPaymentInformation($formOfPayment); |
|
| 592 | ||
| 593 | $opt[] = $po; |
|
| 594 | } |
|
| 595 | ||
| 596 | return $opt; |
|
| 597 | } |
|
| 598 | ||
| 599 | /** |
|
| 600 | * @param PaxSegRef[] $references |
|
| @@ 603-616 (lines=14) @@ | ||
| 600 | * @param PaxSegRef[] $references |
|
| 601 | * @return PricingOptionGroup[] |
|
| 602 | */ |
|
| 603 | protected static function loadReferences($references) |
|
| 604 | { |
|
| 605 | $opt = []; |
|
| 606 | ||
| 607 | if (!empty($references)) { |
|
| 608 | $po = new PricingOptionGroup(PricingOptionKey::OPTION_PAX_SEGMENT_TST_SELECTION); |
|
| 609 | ||
| 610 | $po->paxSegTstReference = new PaxSegTstReference($references); |
|
| 611 | ||
| 612 | $opt[] = $po; |
|
| 613 | } |
|
| 614 | ||
| 615 | return $opt; |
|
| 616 | } |
|
| 617 | } |
|
| 618 | ||
| @@ 498-511 (lines=14) @@ | ||
| 495 | * @param string|null $waiverCode |
|
| 496 | * @return PricingOption[] |
|
| 497 | */ |
|
| 498 | protected function loadWaiverCode($waiverCode) |
|
| 499 | { |
|
| 500 | $opt = []; |
|
| 501 | ||
| 502 | if (!empty($waiverCode)) { |
|
| 503 | $po = new PricingOption(PricingOptionKey::OPTION_WAIVER_OPTION); |
|
| 504 | ||
| 505 | $po->optionDetail = new OptionDetail($waiverCode); |
|
| 506 | ||
| 507 | $opt[] = $po; |
|
| 508 | } |
|
| 509 | ||
| 510 | return $opt; |
|
| 511 | } |
|
| 512 | ||
| 513 | /** |
|
| 514 | * @param PaxSegRef[] $overrideReusableAmountRefs |
|