PHP Interface Pop\Shipping\Adapter\AdapterInterface

Author: Nick Sagona, III ([email protected])
Exibir arquivo Open project: nicksagona/PopPHP

Public Methods

Method Description
getRates ( ) : array Get service rates
getResponse ( ) : object Get response object
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 a success
send ( ) : void Send transaction
setDimensions ( array $dimensions, string $unit = null ) : mixed Set dimensions
setWeight ( string $weight, string $unit = null ) : mixed Set dimensions
shipFrom ( array $shipFrom ) : mixed Set ship from
shipTo ( array $shipTo ) : mixed Set ship to

Method Details

getRates() public method

Get service rates
public getRates ( ) : array
return array

getResponse() public method

Get response object
public getResponse ( ) : object
return object

getResponseCode() public method

Get response code
public getResponseCode ( ) : integer
return integer

getResponseMessage() public method

Get response message
public getResponseMessage ( ) : string
return string

isError() public method

Return whether the transaction is an error
public isError ( ) : boolean
return boolean

isSuccess() public method

Return whether the transaction is a success
public isSuccess ( ) : boolean
return boolean

send() public method

Send transaction
public send ( ) : void
return void

setDimensions() public method

Set dimensions
public setDimensions ( array $dimensions, string $unit = null ) : mixed
$dimensions array
$unit string
return mixed

setWeight() public method

Set dimensions
public setWeight ( string $weight, string $unit = null ) : mixed
$weight string
$unit string
return mixed

shipFrom() public method

Set ship from
public shipFrom ( array $shipFrom ) : mixed
$shipFrom array
return mixed

shipTo() public method

Set ship to
public shipTo ( array $shipTo ) : mixed
$shipTo array
return mixed