\Pop\Shipping\AdapterAdapterInterface

Shipping adapter interface

Summary

Methods
Constants
shipTo()
shipFrom()
setDimensions()
setWeight()
send()
isSuccess()
isError()
getResponse()
getResponseCode()
getResponseMessage()
getRates()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

shipTo()

shipTo(array  $shipTo) : mixed

Set ship to

Parameters

array $shipTo

Returns

mixed

shipFrom()

shipFrom(array  $shipFrom) : mixed

Set ship from

Parameters

array $shipFrom

Returns

mixed

setDimensions()

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

Set dimensions

Parameters

array $dimensions
string $unit

Returns

mixed

setWeight()

setWeight(string  $weight, string  $unit = null) : mixed

Set dimensions

Parameters

string $weight
string $unit

Returns

mixed

send()

send(boolean  $verifyPeer = true) : void

Send transaction

Parameters

boolean $verifyPeer

isSuccess()

isSuccess() : boolean

Return whether the transaction is a success

Returns

boolean

isError()

isError() : boolean

Return whether the transaction is an error

Returns

boolean

getResponse()

getResponse() : object

Get response object

Returns

object

getResponseCode()

getResponseCode() : integer

Get response code

Returns

integer

getResponseMessage()

getResponseMessage() : string

Get response message

Returns

string

getRates()

getRates() : array

Get service rates

Returns

array