Completed
Push — master ( 8f168b...4b1795 )
by Dieter
09:49
created

PricingOptionKey::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
/**
3
 * amadeus-ws-client
4
 *
5
 * Copyright 2015 Amadeus Benelux NV
6
 *
7
 * Licensed under the Apache License, Version 2.0 (the "License");
8
 * you may not use this file except in compliance with the License.
9
 * You may obtain a copy of the License at
10
 *
11
 * http://www.apache.org/licenses/LICENSE-2.0
12
 *
13
 * Unless required by applicable law or agreed to in writing, software
14
 * distributed under the License is distributed on an "AS IS" BASIS,
15
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
 * See the License for the specific language governing permissions and
17
 * limitations under the License.
18
 *
19
 * @package Amadeus
20
 * @license https://opensource.org/licenses/Apache-2.0 Apache 2.0
21
 */
22
23
namespace Amadeus\Client\Struct\Service\IntegratedPricing;
24
25
/**
26
 * PricingOptionKey
27
 *
28
 * @package Amadeus\Client\Struct\Service\IntegratedPricing
29
 * @author Dieter Devlieghere <[email protected]>
30
 */
31
class PricingOptionKey
32
{
33
    const OVERRIDE_ACCOUNT_CODE = "ACC";
34
    const OVERRIDE_PRICING_ALL_SERVICES = "ALL";
35
    const OVERRIDE_AWARD = "AWD";
36
    const OVERRIDE_CODE_SELECTION = "COD";
37
    const OVERRIDE_CORPORATION_NUMBER = "CRP";
38
    const OVERRIDE_PRICING_DATE = "DAT";
39
    const OVERRIDE_CURRENCY = "FCO";
40
    const OVERRIDE_INFANT_PROCESSING = "INF";
41
    const OVERRIDE_JOURNEY_TURNAROUND_POINT = "JTP";
42
    const OVERRIDE_NO_BREAK_POINT = "NBP";
43
    const OVERRIDE_NO_JOURNEY_TURNAROUND_POINT = "NJT";
44
    const OVERRIDE_NO_OPTION = "NOP";
45
    const OVERRIDE_NON_TRUSTED_REQUEST = "NTR";
46
    const OVERRIDE_ORIGIN_DESTINATION = "OD";
47
    const OVERRIDE_PASSENGER_DISCOUNT_PTC = "PAX";
48
    const OVERRIDE_POINT_OF_SALE = "POS";
49
    const OVERRIDE_PTCONLY = "PTC";
50
    const OVERRIDE_SHOW_COMMERCIAL_DESCRIPTION = "SCD";
51
    const OVERRIDE_PAX_SEG_ELEMENT_SELECTION = "SEL";
52
    const OVERRIDE_SHOW_PRICING_DESCRIPTION = "SPD";
53
    const OVERRIDE_TICKET_DESIGNATOR = "TKD";
54
    const OVERRIDE_VALIDATING_CARRIER = "VC ";
55
56
    /**
57
     * self::OVERRIDE_*
58
     *
59
     * ACC   Account Code
60
     * ALL   Pricing all services
61
     * AWD   Award
62
     * COD   Code selection
63
     * CRP   Corporation number
64
     * DAT   Pricing Date
65
     * FCO   Fare currency override
66
     * INF   Infant processing
67
     * JTP   Journey turnaround point
68
     * NBP   No break point
69
     * NJT   No journey turnaround point
70
     * NOP   No option
71
     * NTR   Non trusted request
72
     * OD    Origin and destination option
73
     * PAX   Passenger discount/PTC
74
     * POS   Point of sale
75
     * PTC   PTC only
76
     * SCD   Show commercial description
77
     * SEL   Passenger/Segment/Element selection
78
     * SPD   Show pricing description
79
     * TKD   Ticket designator
80
     * VC    Validating carrier
81
     *
82
     * @var string
83
     */
84
    public $pricingOptionKey;
85
86
    /**
87
     * PricingOptionKey constructor.
88
     *
89
     * @param string $key self::OVERRIDE_*
90
     */
91 12
    public function __construct($key)
92
    {
93 12
        $this->pricingOptionKey = $key;
94 12
    }
95
}
96