-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathServiceAddress.php
35 lines (30 loc) · 1.33 KB
/
ServiceAddress.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
namespace Iris;
use AllowDynamicProperties;
#[AllowDynamicProperties]
class ServiceAddress {
use BaseModel;
protected $fields = array(
"City" => array("type" => "string", "required" => true),
"HouseNumber" => array("type" => "string", "required" => true),
"StreetName" => array("type" => "string", "required" => true),
"StateCode" => array("type" => "string", "required" => true),
"State" => array("type" => "string"),
"Zip" => array("type" => "string"),
"Country" => array("type" => "string"),
"County" => array("type" => "string"),
"HousePrefix" => array("type" => "string"),
"HouseSuffix" => array("type" => "string"),
"PreDirectional" => array("type" => "string"),
"StreetSuffix" => array("type" => "string"),
"PostDirectional" => array("type" => "string"),
"AddressLine2" => array("type" => "string"),
"PlusFour" => array("type" => "string"),
"AddressType" => array("type" => "string"),
// Note that UnparsedAddress is Read-Only. Additionally, UnparsedAddress cannot be used to automatically populate the ServiceAddress fields with the correct information.
"UnparsedAddress" => array("type" => "string")
);
public function __construct($data) {
$this->set_data($data);
}
}