PHP Class Pop\Shipping\Adapter\Fedex

Author: Nick Sagona, III ([email protected])
Inheritance: extends AbstractAdapter
Mostrar archivo Open project: nicksagona/PopPHP

Protected Properties

Property Type Description
$client SoapClient SOAP Client
$dimensions array Package dimensions
$request array Request array
$services array Services
$shipFrom array Ship from fields
$shipTo array Ship to fields
$weight array Package weight
$wsdl string FedEx WSDL File

Public Methods

Method Description
__construct ( string $key, string $password, string $account, string $meter, string $wsdl = null ) : Fedex Constructor
getServices ( ) : array Static method to get the services
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

__construct() public method

Method to instantiate an FedEx shipping adapter object
public __construct ( string $key, string $password, string $account, string $meter, string $wsdl = null ) : Fedex
$key string
$password string
$account string
$meter string
$wsdl string
return Fedex

getServices() public static method

Static method to get the services
public static getServices ( ) : array
return array

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

Property Details

$client protected_oe property

SOAP Client
protected SoapClient $client
return SoapClient

$dimensions protected_oe property

Package dimensions
protected array $dimensions
return array

$request protected_oe property

Request array
protected array $request
return array

$services protected_oe static_oe property

Services
protected static array $services
return array

$shipFrom protected_oe property

Ship from fields
protected array $shipFrom
return array

$shipTo protected_oe property

Ship to fields
protected array $shipTo
return array

$weight protected_oe property

Package weight
protected array $weight
return array

$wsdl protected_oe property

FedEx WSDL File
protected string $wsdl
return string