프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$apiVersion | - the api version used for this type of call | ||
$fields | - route added so far. |
메소드 | 설명 | |
---|---|---|
createLabel ( ) : string | Perform the API call. | |
getConfirmationNumber ( ) : string | boolean | Return the USPS confirmation/tracking number if we have one. | |
getLabelContents ( ) : string | boolean | Return the USPS label as a base64 encoded string. | |
getPostFields ( ) : array | returns array of all fields added. | |
setField ( integer $position, string $key, string $value ) : object | Set any other requried string make sure you set the correct position as well as the position of the items matters. | |
setFromAddress ( string $firstName, string $lastName, string $company, string $address, string $city, string $state, string $zip, string $address2 = null, string $zip4 = null ) : object | Set the from address. | |
setToAddress ( string $company, string $address, string $city, string $state, string $zip, string $address2 = null, string $zip4 = null ) : object | Set the to address. | |
setWeightOunces ( $weight ) | Set package weight in ounces. | |
setWeightPounds ( $weight ) | Set package weight in ounces. |
메소드 | 설명 | |
---|---|---|
addMissingRequired ( ) : void | Add missing required elements. |
protected addMissingRequired ( ) : void | ||
리턴 | void |
public getConfirmationNumber ( ) : string | boolean | ||
리턴 | string | boolean |
public getLabelContents ( ) : string | boolean | ||
리턴 | string | boolean |
public setFromAddress ( string $firstName, string $lastName, string $company, string $address, string $city, string $state, string $zip, string $address2 = null, string $zip4 = null ) : object | ||
$firstName | string | |
$lastName | string | |
$company | string | |
$address | string | |
$city | string | |
$state | string | |
$zip | string | |
$address2 | string | |
$zip4 | string | |
리턴 | object |