PHP 클래스 Pop\Shipping\Adapter\Usps

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

보호된 프로퍼티들

프로퍼티 타입 설명
$container string Container type
$containerSize string Container size
$dimensions array Package dimensions
$liveUrl string Live API URL
$machinable string Machinable flag
$request Pop\Dom\Dom Request XML
$shipFrom string Ship from fields
$shipTo array Ship to fields
$testMode boolean Test mode flag
$testUrl string Test API URL
$weight array Package weight

공개 메소드들

메소드 설명
__construct ( string $username, string $password, boolean $test = false ) : Usps Constructor
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
setContainer ( string $container = 'RECTANGULAR' ) : void Set container
setDimensions ( array $dimensions, string $unit = null ) : void Set dimensions
setMachinable ( boolean $machinable = false ) : void Set machinable flag
setWeight ( string $weight, string $unit = null ) : void Set dimensions
shipFrom ( array $shipFrom ) : void Set ship from
shipTo ( array $shipTo ) : void Set ship to

보호된 메소드들

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

메소드 상세

__construct() 공개 메소드

Method to instantiate an USPS shipping adapter object
public __construct ( string $username, string $password, boolean $test = false ) : Usps
$username string
$password string
$test boolean
리턴 Usps

buildRequest() 보호된 메소드

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

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

setContainer() 공개 메소드

Set container
public setContainer ( string $container = 'RECTANGULAR' ) : void
$container string
리턴 void

setDimensions() 공개 메소드

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

setMachinable() 공개 메소드

Set machinable flag
public setMachinable ( boolean $machinable = false ) : void
$machinable boolean
리턴 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

프로퍼티 상세

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

Container type
protected string $container
리턴 string

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

Container size
protected string $containerSize
리턴 string

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

Package dimensions
protected array $dimensions
리턴 array

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

Live API URL
protected string $liveUrl
리턴 string

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

Machinable flag
protected string $machinable
리턴 string

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

Request XML
protected Dom,Pop\Dom $request
리턴 Pop\Dom\Dom

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

Ship from fields
protected string $shipFrom
리턴 string

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

Ship to fields
protected array $shipTo
리턴 array

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

Test mode flag
protected bool $testMode
리턴 boolean

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

Test API URL
protected string $testUrl
리턴 string

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

Package weight
protected array $weight
리턴 array