PHP 클래스 Pop\Shipping\Adapter\Ups

저자: Nick Sagona, III ([email protected])
상속: extends AbstractAdapter
파일 보기 프로젝트 열기: nicksagona/PopPHP

보호된 프로퍼티들

프로퍼티 타입 설명
$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

공개 메소드들

메소드 설명
__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

보호된 메소드들

메소드 설명
buildRateRequest ( ) : void Build rate request

메소드 상세

__construct() 공개 메소드

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

buildRateRequest() 보호된 메소드

Build rate request
protected buildRateRequest ( ) : void
리턴 void

getPackagingTypes() 공개 정적인 메소드

Static method to get the packaging types
public static getPackagingTypes ( ) : array
리턴 array

getPickupTypes() 공개 정적인 메소드

Static method to get the pickup types
public static getPickupTypes ( ) : array
리턴 array

getServices() 공개 정적인 메소드

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

isError() 공개 메소드

Return whether the transaction is an error
public isError ( ) : boolean
리턴 boolean

isSuccess() 공개 메소드

Return whether the transaction is a success
public isSuccess ( ) : boolean
리턴 boolean

send() 공개 메소드

Send transaction
public send ( boolean $verifyPeer = true ) : void
$verifyPeer boolean
리턴 void

setDimensions() 공개 메소드

Set dimensions
public setDimensions ( array $dimensions, string $unit = null ) : void
$dimensions array
$unit string
리턴 void

setPackage() 공개 메소드

Set package type
public setPackage ( string $code ) : void
$code string
리턴 void

setPickup() 공개 메소드

Set pickup type
public setPickup ( string $code ) : void
$code string
리턴 void

setService() 공개 메소드

Set service
public setService ( string $code ) : void
$code string
리턴 void

setWeight() 공개 메소드

Set dimensions
public setWeight ( string $weight, string $unit = null ) : void
$weight string
$unit string
리턴 void

shipFrom() 공개 메소드

Set ship from
public shipFrom ( array $shipFrom ) : void
$shipFrom array
리턴 void

shipTo() 공개 메소드

Set ship to
public shipTo ( array $shipTo ) : void
$shipTo array
리턴 void

프로퍼티 상세

$accessRequest 보호되어 있는 프로퍼티

Access Request XML
protected Dom,Pop\Dom $accessRequest
리턴 Pop\Dom\Dom

$dimensions 보호되어 있는 프로퍼티

Package dimensions
protected array $dimensions
리턴 array

$packageType 보호되어 있는 프로퍼티

Package type
protected string $packageType
리턴 string

$packagingTypes 보호되어 있는 정적으로 프로퍼티

Pickup Types
protected static array $packagingTypes
리턴 array

$pickupType 보호되어 있는 프로퍼티

Pickup type
protected string $pickupType
리턴 string

$pickupTypes 보호되어 있는 정적으로 프로퍼티

Pickup Types
protected static array $pickupTypes
리턴 array

$rateRequest 보호되어 있는 프로퍼티

Rate Request XML
protected Dom,Pop\Dom $rateRequest
리턴 Pop\Dom\Dom

$service 보호되어 있는 프로퍼티

Service
protected string $service
리턴 string

$services 보호되어 있는 정적으로 프로퍼티

Services
protected static array $services
리턴 array

$shipFrom 보호되어 있는 프로퍼티

Ship from fields
protected array $shipFrom
리턴 array

$shipTo 보호되어 있는 프로퍼티

Ship to fields
protected array $shipTo
리턴 array

$url 보호되어 있는 프로퍼티

API URL
protected string $url
리턴 string

$userId 보호되어 있는 프로퍼티

User ID
protected string $userId
리턴 string

$weight 보호되어 있는 프로퍼티

Package weight
protected array $weight
리턴 array