Class PostalMethods
PostalMethods service for physically mailing letters
Copyright: Copyright (c) 2011, Phillips Data, Inc.
License: The Blesta License Agreement
Link: Blesta
Located at components/delivery/postal_methods/postal_methods.php
Methods summary
public
|
|
public
|
|
public
|
#
setTestMode( boolean $test_mode )
Sets whether Postal Methods should physically mail the document, or simulate it |
public
|
|
public
|
|
public
|
#
setReplyEnvelope( boolean $include_reply_envelope )
Sets a reply envelope to be included in the mail |
public
|
#
setPerforated( boolean $perforated )
Sets whether the bottom-third of the letter sent to PostalMethods should be perforated |
public
|
#
setDescription( string $description )
Sets a description to associate with this letter in the PostalMethods account |
public
array
|
|
public
|
|
public
|
|
private
boolean
|
#
parseResponse( string $response )
Parses the SOAP response from PostalMethods, sets any errors that may have been generated |
private
|
|
private
string
|
|
private
string
|
#
buildAddressXml( array $address )
Builds the XML for addresses given the address key=>value pairs as XML fields |
public
array
|
Magic methods summary
Properties summary
private static
string
|
$url |
#
The URL to submit requests to |
private
string
|
$api_key |
#
The account API key |
private
array
|
$file |
#
An array of a file's bitstream data and file type |
private
string
|
$description |
#
An optional description to associate with this letter |
private
boolean
|
$test_mode |
#
Whether or not documents should be mailed, or simply simulated |
private
array
|
$to_address |
#
A list of address fields to send to |
private
boolean
|
$include_reply_envelope |
#
Whether or not to include a reply envelope |
private
boolean
|
$perforate_document |
#
Whether or not the bottom-third of the letter should be perforated |
private
array
|
$available_file_types |
#
An array of available file types accepted by Postal Methods NOTE: These file types are acceptable when the address is inside of the document |