| @@ 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 |
|
| @@ 343-356 (lines=14) @@ | ||
| 340 | * @param string|null $corporateNegoFare |
|
| 341 | * @return PricingOptionGroup[] |
|
| 342 | */ |
|
| 343 | protected static function loadCorpNegoFare($corporateNegoFare) |
|
| 344 | { |
|
| 345 | $opt = []; |
|
| 346 | ||
| 347 | if ($corporateNegoFare !== null) { |
|
| 348 | $po = new PricingOptionGroup(PricingOptionKey::OPTION_CORPORATE_NEGOTIATED_FARES); |
|
| 349 | ||
| 350 | $po->optionDetail = new OptionDetail($corporateNegoFare); |
|
| 351 | ||
| 352 | $opt[] = $po; |
|
| 353 | } |
|
| 354 | ||
| 355 | return $opt; |
|
| 356 | } |
|
| 357 | ||
| 358 | /** |
|
| 359 | * Load corporate unifares |
|
| @@ 494-505 (lines=12) @@ | ||
| 491 | * @param string|null $pricingLogic |
|
| 492 | * @return PricingOptionGroup[] |
|
| 493 | */ |
|
| 494 | protected static function loadPricingLogic($pricingLogic) |
|
| 495 | { |
|
| 496 | $opt = []; |
|
| 497 | ||
| 498 | if (!empty($pricingLogic)) { |
|
| 499 | $po = new PricingOptionGroup(PricingOptionKey::OPTION_PRICING_LOGIC); |
|
| 500 | $po->optionDetail = new OptionDetail($pricingLogic); |
|
| 501 | $opt[] = $po; |
|
| 502 | } |
|
| 503 | ||
| 504 | return $opt; |
|
| 505 | } |
|
| 506 | ||
| 507 | /** |
|
| 508 | * @param string|null $ticketType |
|
| @@ 511-524 (lines=14) @@ | ||
| 508 | * @param string|null $ticketType |
|
| 509 | * @return PricingOptionGroup[] |
|
| 510 | */ |
|
| 511 | protected static function loadTicketType($ticketType) |
|
| 512 | { |
|
| 513 | $opt = []; |
|
| 514 | ||
| 515 | if (!empty($ticketType)) { |
|
| 516 | $po = new PricingOptionGroup(PricingOptionKey::OPTION_TICKET_TYPE); |
|
| 517 | ||
| 518 | $po->optionDetail = new OptionDetail($ticketType); |
|
| 519 | ||
| 520 | $opt[] = $po; |
|
| 521 | } |
|
| 522 | ||
| 523 | return $opt; |
|
| 524 | } |
|
| 525 | ||
| 526 | /** |
|
| 527 | * @param Tax[] $taxes |
|
| @@ 605-618 (lines=14) @@ | ||
| 602 | * @param FormOfPayment[] $formOfPayment |
|
| 603 | * @return PricingOptionGroup[] |
|
| 604 | */ |
|
| 605 | protected static function loadFormOfPayment($formOfPayment) |
|
| 606 | { |
|
| 607 | $opt = []; |
|
| 608 | ||
| 609 | if (!empty($formOfPayment)) { |
|
| 610 | $po = new PricingOptionGroup(PricingOptionKey::OPTION_FORM_OF_PAYMENT); |
|
| 611 | ||
| 612 | $po->formOfPaymentInformation = new FormOfPaymentInformation($formOfPayment); |
|
| 613 | ||
| 614 | $opt[] = $po; |
|
| 615 | } |
|
| 616 | ||
| 617 | return $opt; |
|
| 618 | } |
|
| 619 | ||
| 620 | /** |
|
| 621 | * @param PaxSegRef[] $references |
|
| @@ 624-637 (lines=14) @@ | ||
| 621 | * @param PaxSegRef[] $references |
|
| 622 | * @return PricingOptionGroup[] |
|
| 623 | */ |
|
| 624 | protected static function loadReferences($references) |
|
| 625 | { |
|
| 626 | $opt = []; |
|
| 627 | ||
| 628 | if (!empty($references)) { |
|
| 629 | $po = new PricingOptionGroup(PricingOptionKey::OPTION_PAX_SEGMENT_TST_SELECTION); |
|
| 630 | ||
| 631 | $po->paxSegTstReference = new PaxSegTstReference($references); |
|
| 632 | ||
| 633 | $opt[] = $po; |
|
| 634 | } |
|
| 635 | ||
| 636 | return $opt; |
|
| 637 | } |
|
| 638 | ||
| 639 | /** |
|
| 640 | * Load ZAP-Off |
|