PHP Interface Pop\Shipping\Adapter\AdapterInterface

Author: Nick Sagona, III ([email protected])
Afficher le fichier Open project: nicksagona/PopPHP

Méthodes publiques

Méthode 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 méthode

Get service rates
public getRates ( ) : array
Résultat array

getResponse() public méthode

Get response object
public getResponse ( ) : object
Résultat object

getResponseCode() public méthode

Get response code
public getResponseCode ( ) : integer
Résultat integer

getResponseMessage() public méthode

Get response message
public getResponseMessage ( ) : string
Résultat string

isError() public méthode

Return whether the transaction is an error
public isError ( ) : boolean
Résultat boolean

isSuccess() public méthode

Return whether the transaction is a success
public isSuccess ( ) : boolean
Résultat boolean

send() public méthode

Send transaction
public send ( ) : void
Résultat void

setDimensions() public méthode

Set dimensions
public setDimensions ( array $dimensions, string $unit = null ) : mixed
$dimensions array
$unit string
Résultat mixed

setWeight() public méthode

Set dimensions
public setWeight ( string $weight, string $unit = null ) : mixed
$weight string
$unit string
Résultat mixed

shipFrom() public méthode

Set ship from
public shipFrom ( array $shipFrom ) : mixed
$shipFrom array
Résultat mixed

shipTo() public méthode

Set ship to
public shipTo ( array $shipTo ) : mixed
$shipTo array
Résultat mixed