PHP Class Pop\Shipping\Adapter\Fedex

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

Protected Properties

Свойство 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

Méthodes publiques

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

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
Résultat Fedex

getServices() public static méthode

Static method to get the services
public static getServices ( ) : array
Résultat array

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

Property Details

$client protected_oe property

SOAP Client
protected SoapClient $client
Résultat SoapClient

$dimensions protected_oe property

Package dimensions
protected array $dimensions
Résultat array

$request protected_oe property

Request array
protected array $request
Résultat array

$services protected_oe static_oe property

Services
protected static array $services
Résultat array

$shipFrom protected_oe property

Ship from fields
protected array $shipFrom
Résultat array

$shipTo protected_oe property

Ship to fields
protected array $shipTo
Résultat array

$weight protected_oe property

Package weight
protected array $weight
Résultat array

$wsdl protected_oe property

FedEx WSDL File
protected string $wsdl
Résultat string