1 | <?php declare(strict_types=1); |
||
8 | abstract class Foreign extends Property |
||
9 | { |
||
10 | |||
11 | public const PAYMENT_STANDARD = 431008; |
||
12 | public const PAYMENT_PRIORITY = 431009; |
||
13 | |||
14 | private const TYPES_PAYMENT = [self::PAYMENT_STANDARD, self::PAYMENT_PRIORITY]; |
||
15 | |||
16 | protected $bic = ''; |
||
17 | |||
18 | protected $benefName = ''; |
||
19 | |||
20 | protected $benefStreet = ''; |
||
21 | |||
22 | protected $benefCity = ''; |
||
23 | |||
24 | protected $benefCountry = ''; |
||
25 | |||
26 | protected $remittanceInfo1 = ''; |
||
27 | |||
28 | protected $remittanceInfo2 = ''; |
||
29 | |||
30 | protected $remittanceInfo3 = ''; |
||
31 | |||
32 | protected $paymentType = 0; |
||
33 | |||
34 | |||
35 | public function __construct(Account\FioAccount $account) |
||
40 | |||
41 | |||
42 | /** |
||
43 | * @param string $accountTo ISO 13616 |
||
44 | */ |
||
45 | public function setAccountTo(string $accountTo) |
||
50 | |||
51 | |||
52 | /** |
||
53 | * @param string $bic ISO 9362 |
||
54 | */ |
||
55 | public function setBic(string $bic) |
||
60 | |||
61 | |||
62 | public function setStreet(string $street) |
||
67 | |||
68 | |||
69 | public function setCity(string $city) |
||
74 | |||
75 | |||
76 | public function setCountry(string $benefCountry) |
||
85 | |||
86 | |||
87 | public function setName(string $name) |
||
92 | |||
93 | |||
94 | public function setRemittanceInfo1(string $info) |
||
99 | |||
100 | |||
101 | public function setRemittanceInfo2(string $info) |
||
106 | |||
107 | |||
108 | public function setRemittanceInfo3(string $str) |
||
113 | |||
114 | |||
115 | public function setPaymentType(int $type) |
||
120 | |||
121 | } |
||
122 |