\Pop\ShippingShipping

Shipping class

Summary

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

Properties

$adapter

$adapter : mixed

Shipping adapter

Type

mixed

Methods

shipTo()

shipTo(array  $shipTo) : self

Set ship to

Parameters

array $shipTo

Returns

self

shipFrom()

shipFrom(array  $shipFrom) : self

Set ship from

Parameters

array $shipFrom

Returns

self

setDimensions()

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

Set dimensions

Parameters

array $dimensions
string $unit

Returns

self

setWeight()

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

Set dimensions

Parameters

string $weight
string $unit

Returns

self

send()

send(boolean  $verifyPeer = true) : void

Send transaction

Parameters

boolean $verifyPeer

isSuccess()

isSuccess() : boolean

Return whether the transaction is success

Returns

boolean

isError()

isError() : boolean

Return whether the transaction is an error

Returns

boolean

getResponse()

getResponse() : object

Get response

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