Property | Type | Description | |
---|---|---|---|
$container | string | Container type | |
$containerSize | string | Container size | |
$dimensions | array | Package dimensions | |
$liveUrl | string | Live API URL | |
$machinable | string | Machinable flag | |
$request | Request XML | ||
$shipFrom | string | Ship from fields | |
$shipTo | array | Ship to fields | |
$testMode | boolean | Test mode flag | |
$testUrl | string | Test API URL | |
$weight | array | Package weight |
Method | Description | |
---|---|---|
__construct ( string $username, string $password, boolean $test = false ) : |
Constructor | |
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 | |
setContainer ( string $container = 'RECTANGULAR' ) : void | Set container | |
setDimensions ( array $dimensions, string $unit = null ) : void | Set dimensions | |
setMachinable ( boolean $machinable = false ) : void | Set machinable flag | |
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 | |
---|---|---|
buildRequest ( ) : void | Build rate request |
public setContainer ( string $container = 'RECTANGULAR' ) : void | ||
$container | string | |
return | void |
public setMachinable ( boolean $machinable = false ) : void | ||
$machinable | boolean | |
return | void |