PHP Class Pop\Shipping\Adapter\Ups

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

Protected Properties

Свойство Type Description
$accessRequest Pop\Dom\Dom Access Request XML
$dimensions array Package dimensions
$packageType string Package type
$packagingTypes array Pickup Types
$pickupType string Pickup type
$pickupTypes array Pickup Types
$rateRequest Pop\Dom\Dom Rate Request XML
$service string Service
$services array Services
$shipFrom array Ship from fields
$shipTo array Ship to fields
$url string API URL
$userId string User ID
$weight array Package weight

Méthodes publiques

Méthode Description
__construct ( string $accessKey, string $userId, string $password ) : Ups Constructor
getPackagingTypes ( ) : array Static method to get the packaging types
getPickupTypes ( ) : array Static method to get the pickup types
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 ( boolean $verifyPeer = true ) : void Send transaction
setDimensions ( array $dimensions, string $unit = null ) : void Set dimensions
setPackage ( string $code ) : void Set package type
setPickup ( string $code ) : void Set pickup type
setService ( string $code ) : void Set service
setWeight ( string $weight, string $unit = null ) : void Set dimensions
shipFrom ( array $shipFrom ) : void Set ship from
shipTo ( array $shipTo ) : void Set ship to

Méthodes protégées

Méthode Description
buildRateRequest ( ) : void Build rate request

Method Details

__construct() public méthode

Method to instantiate an UPS shipping adapter object
public __construct ( string $accessKey, string $userId, string $password ) : Ups
$accessKey string
$userId string
$password string
Résultat Ups

buildRateRequest() protected méthode

Build rate request
protected buildRateRequest ( ) : void
Résultat void

getPackagingTypes() public static méthode

Static method to get the packaging types
public static getPackagingTypes ( ) : array
Résultat array

getPickupTypes() public static méthode

Static method to get the pickup types
public static getPickupTypes ( ) : array
Résultat array

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 ( boolean $verifyPeer = true ) : void
$verifyPeer boolean
Résultat void

setDimensions() public méthode

Set dimensions
public setDimensions ( array $dimensions, string $unit = null ) : void
$dimensions array
$unit string
Résultat void

setPackage() public méthode

Set package type
public setPackage ( string $code ) : void
$code string
Résultat void

setPickup() public méthode

Set pickup type
public setPickup ( string $code ) : void
$code string
Résultat void

setService() public méthode

Set service
public setService ( string $code ) : void
$code string
Résultat void

setWeight() public méthode

Set dimensions
public setWeight ( string $weight, string $unit = null ) : void
$weight string
$unit string
Résultat void

shipFrom() public méthode

Set ship from
public shipFrom ( array $shipFrom ) : void
$shipFrom array
Résultat void

shipTo() public méthode

Set ship to
public shipTo ( array $shipTo ) : void
$shipTo array
Résultat void

Property Details

$accessRequest protected_oe property

Access Request XML
protected Dom,Pop\Dom $accessRequest
Résultat Pop\Dom\Dom

$dimensions protected_oe property

Package dimensions
protected array $dimensions
Résultat array

$packageType protected_oe property

Package type
protected string $packageType
Résultat string

$packagingTypes protected_oe static_oe property

Pickup Types
protected static array $packagingTypes
Résultat array

$pickupType protected_oe property

Pickup type
protected string $pickupType
Résultat string

$pickupTypes protected_oe static_oe property

Pickup Types
protected static array $pickupTypes
Résultat array

$rateRequest protected_oe property

Rate Request XML
protected Dom,Pop\Dom $rateRequest
Résultat Pop\Dom\Dom

$service protected_oe property

Service
protected string $service
Résultat string

$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

$url protected_oe property

API URL
protected string $url
Résultat string

$userId protected_oe property

User ID
protected string $userId
Résultat string

$weight protected_oe property

Package weight
protected array $weight
Résultat array