Метод |
Описание |
|
__construct ( AbstractAdapter $adapter ) : Shipping |
Constructor |
|
adapter ( ) : AbstractAdapter |
Access the adapter |
|
getRates ( ) : array |
Get service rates |
|
getResponse ( ) : object |
Get response |
|
getResponseCode ( ) : integer |
Get response code |
|
getResponseMessage ( ) : string |
Get response message |
|
isError ( ) : boolean |
Return whether the transaction is an error |
|
isSuccess ( ) : boolean |
Return whether the transaction is success |
|
send ( ) : void |
Send transaction data |
|
setDimensions ( array $dimensions, string $unit = null ) : self |
Set dimensions |
|
setWeight ( string $weight, string $unit = null ) : self |
Set dimensions |
|
shipFrom ( array $shipFrom ) : self |
Set ship from |
|
shipTo ( array $shipTo ) : self |
Set ship to |
|