1 | <?php |
||
13 | class ShippingAddress extends BaseType |
||
14 | { |
||
15 | /** |
||
16 | * @var array |
||
17 | */ |
||
18 | static protected $requiredParams = ['country_code', 'state', 'city', 'street_line1', 'street_line2', 'post_code']; |
||
19 | |||
20 | /** |
||
21 | * @var array |
||
22 | */ |
||
23 | static protected $map = [ |
||
24 | 'country_code' => true, |
||
25 | 'state' => true, |
||
26 | 'city' => true, |
||
27 | 'street_line1' => true, |
||
28 | 'street_line2' => true, |
||
29 | 'post_code' => true, |
||
30 | ]; |
||
31 | |||
32 | /** |
||
33 | * ISO 3166-1 alpha-2 country code |
||
34 | * |
||
35 | * @var string |
||
36 | */ |
||
37 | protected $countryCode; |
||
38 | |||
39 | /** |
||
40 | * State, if applicable |
||
41 | * |
||
42 | * @var string |
||
43 | */ |
||
44 | protected $state; |
||
45 | |||
46 | /** |
||
47 | * City |
||
48 | * |
||
49 | * @var string |
||
50 | */ |
||
51 | protected $city; |
||
52 | |||
53 | /** |
||
54 | * First line for the address |
||
55 | * |
||
56 | * @var string |
||
57 | */ |
||
58 | protected $streetLine1; |
||
59 | |||
60 | /** |
||
61 | * Second line for the address |
||
62 | * |
||
63 | * @var integer |
||
64 | */ |
||
65 | protected $streetLine2; |
||
66 | |||
67 | /** |
||
68 | * Address post code |
||
69 | * |
||
70 | * @var integer |
||
71 | */ |
||
72 | protected $postCode; |
||
73 | |||
74 | /** |
||
75 | * @author MY |
||
76 | * @return string |
||
77 | */ |
||
78 | public function getCountryCode() |
||
82 | |||
83 | /** |
||
84 | * @author MY |
||
85 | * @param string $countryCode |
||
86 | */ |
||
87 | public function setCountryCode($countryCode) |
||
91 | |||
92 | /** |
||
93 | * @author MY |
||
94 | * @return string |
||
95 | */ |
||
96 | public function getState() |
||
100 | |||
101 | /** |
||
102 | * @author MY |
||
103 | * @param string $state |
||
104 | */ |
||
105 | public function setState($state) |
||
109 | |||
110 | /** |
||
111 | * @author MY |
||
112 | * @return string |
||
113 | */ |
||
114 | public function getCity() |
||
118 | |||
119 | /** |
||
120 | * @author MY |
||
121 | * @param string $city |
||
122 | */ |
||
123 | public function setCity($city) |
||
127 | |||
128 | /** |
||
129 | * @author MY |
||
130 | * @return string |
||
131 | */ |
||
132 | public function getStreetLine1() |
||
136 | |||
137 | /** |
||
138 | * @author MY |
||
139 | * @param string $streetLine1 |
||
140 | */ |
||
141 | public function setStreetLine1($streetLine1) |
||
145 | |||
146 | /** |
||
147 | * @author MY |
||
148 | * @return int |
||
149 | */ |
||
150 | public function getStreetLine2() |
||
154 | |||
155 | /** |
||
156 | * @author MY |
||
157 | * @param int $streetLine2 |
||
158 | */ |
||
159 | public function setStreetLine2($streetLine2) |
||
163 | |||
164 | /** |
||
165 | * @author MY |
||
166 | * @return int |
||
167 | */ |
||
168 | public function getPostCode() |
||
172 | |||
173 | /** |
||
174 | * @author MY |
||
175 | * @param int $postCode |
||
176 | */ |
||
177 | public function setPostCode($postCode) |
||
181 | } |
||
182 |