Property | Type | Description | |
---|---|---|---|
$accessRequest | Access Request XML | ||
$dimensions | array | Package dimensions | |
$packageType | string | Package type | |
$packagingTypes | array | Pickup Types | |
$pickupType | string | Pickup type | |
$pickupTypes | array | Pickup Types | |
$rateRequest | Rate Request XML | ||
$service | string | Service | |
$services | array | Services | |
$shipFrom | array | Ship from fields | |
$shipTo | array | Ship to fields | |
$url | string | API URL | |
$userId | string | User ID | |
$weight | array | Package weight |
Method | Description | |
---|---|---|
__construct ( string $accessKey, string $userId, string $password ) : |
Constructor | |
getPackagingTypes ( ) : array | Static method to get the packaging types | |
getPickupTypes ( ) : array | Static method to get the pickup types | |
getServices ( ) : array | Static method to get the services | |
isError ( ) : boolean | Return whether the transaction is an error | |
isSuccess ( ) : boolean | Return whether the transaction is a success | |
send ( boolean $verifyPeer = true ) : void | Send transaction | |
setDimensions ( array $dimensions, string $unit = null ) : void | Set dimensions | |
setPackage ( string $code ) : void | Set package type | |
setPickup ( string $code ) : void | Set pickup type | |
setService ( string $code ) : void | Set service | |
setWeight ( string $weight, string $unit = null ) : void | Set dimensions | |
shipFrom ( array $shipFrom ) : void | Set ship from | |
shipTo ( array $shipTo ) : void | Set ship to |
Method | Description | |
---|---|---|
buildRateRequest ( ) : void | Build rate request |
protected buildRateRequest ( ) : void | ||
return | void |
public static getPackagingTypes ( ) : array | ||
return | array |
public static getPickupTypes ( ) : array | ||
return | array |
public static getServices ( ) : array | ||
return | array |
public setPackage ( string $code ) : void | ||
$code | string | |
return | void |
public setService ( string $code ) : void | ||
$code | string | |
return | void |
protected Dom,Pop\Dom $accessRequest | ||
return |
protected static array $packagingTypes | ||
return | array |
protected static array $pickupTypes | ||
return | array |
protected Dom,Pop\Dom $rateRequest | ||
return |