1 | <?php |
||
8 | class TransactionSource extends Model |
||
9 | { |
||
10 | protected static $fields = TransactionFields::class; |
||
11 | |||
12 | private $type; |
||
13 | |||
14 | /** |
||
15 | * Only use this field if you are implementing an application |
||
16 | * that mixes web shopping transactions and a phone order |
||
17 | * system. You must discuss the use of this field with the ANZ |
||
18 | * eGate team. |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | private $subType; |
||
23 | |||
24 | private $types = [ |
||
25 | "INTERNET" => "Indicates an Internet transaction", |
||
26 | "MAILORDER" => "Indicates a mail order transaction", |
||
27 | "TELORDER" => "Indicates a telephone order transaction", |
||
28 | ]; |
||
29 | |||
30 | private $subTypes = [ |
||
31 | "" => "No subtype", |
||
32 | "SINGLE" => "Indicates a single payment to complete order", |
||
33 | "INSTALLMENT" => "Indicates an installment transaction", |
||
34 | "RECURRING" => "Indicates a recurring transaction", |
||
35 | ]; |
||
36 | |||
37 | 15 | public function __construct(string $type = 'INTERNET', string $subType = '') |
|
43 | |||
44 | 15 | public function validate() : void |
|
54 | |||
55 | 6 | public function toArray() : array |
|
62 | } |
||
63 |