Properties

$response

$response : object

Response object

Type

object

$responseCode

$responseCode : integer

Response code

Type

integer

$responseMessage

$responseMessage : string

Response message

Type

string

$rates

$rates : array

Service rates

Type

array

$client

$client : \SoapClient

SOAP Client

Type

\SoapClient

$wsdl

$wsdl : string

FedEx WSDL File

Type

string

$request

$request : array

Request array

Type

array

$shipTo

$shipTo : array

Ship to fields

Type

array

$shipFrom

$shipFrom : array

Ship from fields

Type

array

$dimensions

$dimensions : array

Package dimensions

Type

array

$weight

$weight : array

Package weight

Type

array

$services

$services : array

Services

Type

array

Methods

send()

send() : void

Send transaction

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

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

__construct()

__construct(string  $key, string  $password, string  $account, string  $meter, string  $wsdl) : \Pop\Shipping\Adapter\Fedex

Constructor

Method to instantiate an FedEx shipping adapter object

Parameters

string $key
string $password
string $account
string $meter
string $wsdl

Returns

\Pop\Shipping\Adapter\Fedex

getServices()

getServices() : array

Static method to get the services

Returns

array

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

parseResponse()

parseResponse(resource  $curl) : string

Parse the curl response

Parameters

resource $curl

Returns

string