Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
11 | public function carrierPickupAvailability($firm,$address,$apt,$city,$state,$zip5,$zip4) |
||
12 | { |
||
13 | $carrier = new \SimpleXMLElement('<CarrierPickupAvailabilityRequest></CarrierPickupAvailabilityRequest>'); |
||
14 | $carrier->addAttribute('USERID', self::$user); |
||
15 | $carrier->addChild('FirmName' , $firm); |
||
16 | $carrier->addChild('SuiteOrApt' , $apt); |
||
17 | $carrier->addChild('Address2', $address); |
||
18 | $carrier->addChild('Urbanization'); |
||
19 | $carrier->addChild('City',$city); |
||
20 | $carrier->addChild('State',$state); |
||
21 | $carrier->addChild('ZIP5',$zip5); |
||
22 | $carrier->addChild('ZIP4',$zip4); |
||
23 | $url = self::$service . 'CarrierPickupAvailability&XML='.$carrier->asXML(); |
||
24 | return simplexml_load_file($url); |
||
25 | |||
26 | } |
||
27 | } |
||
28 |