Completed
Push — fopcreatefop ( 43117b...97f2d4 )
by Dieter
06:06
created

FopDetails::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
c 0
b 0
f 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
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\Fop;
24
25
/**
26
 * FopDetails
27
 *
28
 * @package Amadeus\Client\Struct\Fop
29
 * @author Dieter Devlieghere <[email protected]>
30
 */
31
class FopDetails
32
{
33
    const BILLING_CASH = "CA";
34
    const BILLING_CREDIT = "CC";
35
36
    const STATUS_NEW = "N";
37
    const STATUS_OLD = "O";
38
39
40
    /**
41
     * @var string
42
     */
43
    public $fopCode;
44
45
    /**
46
     * @var string
47
     */
48
    public $fopMapTable;
49
50
    /**
51
     * self::BILLING_*
52
     *
53
     * @var string
54
     */
55
    public $fopBillingCode;
56
57
    /**
58
     * self::STATUS_*
59
     *
60
     * @var string
61
     */
62
    public $fopStatus;
63
64
    /**
65
     * AA Qantas FOP A
66
     * AC Qantas FOP ACT
67
     * BA German Market sub-element Bank Account form of payment for Insurance Application
68
     * CA Cash
69
     * CC Credit Card (plus 2 digits vendor code)
70
     * CK Check
71
     * FF Qantas FOP FFR
72
     * IN Qantas FOP INV
73
     * MC Qantas FOP MCO
74
     * MS Miscellaneous
75
     * NB Qantas Non Bankable Credit Card (plus 2 digits vendor code)
76
     * PP Qantas P FOP
77
     * PT Prepaid Ticket Advice (PTA)
78
     * QT Qantas QTA FOP
79
     * QU Qantas QU FOP
80
     * RE Qantas REC FOP
81
     * RN Qantas RND FOP
82
     * SA Iberia/Savia SF fop for cash
83
     * TD Qantas TD FOP
84
     *
85
     * @var string
86
     */
87
    public $fopEdiCode;
88
89
    /**
90
     * BR Barter (AY ATO/CTO specific)
91
     * CA Cash
92
     * CC Credit
93
     * GA Global Accounting
94
     * HO Head Office credit (BA ATO/CTO specific)
95
     * LC Local credit (BA ATO/CTO specific)
96
     * MS Miscellaneous
97
     * NR Net remit
98
     *
99
     * @var string
100
     */
101
    public $fopReportingCode;
102
103
    /**
104
     * @var string
105
     */
106
    public $fopPrintedCode;
107
108
    /**
109
     * AGT On behalf of/in exchange for a document previously issued by a Sales Agent
110
     * CA  Cash
111
     * CC  Credit Card
112
     * CK  Check
113
     * DP  Direct Deposit
114
     * GR  Government transportation request
115
     * MS  Miscellaneous
116
     * NR  Non-refundable (refund restricted)
117
     * PT  Prepaid Ticket Advice (PTA)
118
     * SGR Single government transportation request
119
     * UN  United Nations Transportation Request
120
     *
121
     * @var string
122
     */
123
    public $fopElecTicketingCode;
124
125
    /**
126
     * FopDetails constructor.
127
     *
128
     * @param string $fopCode
129
     * @param string|null status
130
     */
131
    public function __construct($fopCode, $status)
132
    {
133
        $this->fopCode = $fopCode;
134
        $this->fopStatus = $status;
135
    }
136
}
137