Australia Post

Class Methods

The following methods can be invoked on instances of this class.

getTrackingURL()

getTrackingURLSupportsInjection()

pricingRequiresDimensions()

pricingRequiresWeight()

calculate(array arrPricingConfiguration)

Calculates shipping using the PAC API
Requires fields: pac_domestic_service_code pac_international_service_code

getPossibleServices(mixed strLetterOrParcel, mixed strDomesticOrIntl, mixed arrParams)

Returns a list of service codes via the PAC API

makePACAPICall(mixed strLetterOrParcel, mixed strDomesticOrIntl, mixed strFunction, array arrQueryParams)

Makes an API call to the PAC PCS API
https://auspost.com.au/devcentre/assets/pdfs/pac-pcs-technical-specification.pdf

getIcon()

Returns an icon for the third party application

getSupportsShipmentPush()

Returns whether this company can push consignments to an API

getCompanyConfigurationForm()

Returns the form for configuring this provider

getMethodConfigurationForm()

Returns the form for configuring this provider

getPricingConfigurationForm()

Returns the form for configuring the pricing

getTopLinks()

Returns the top menu links for this provider

getConfiguration()

Returns the shipping company's configuration

calculateAdjustment(mixed arrShippingConfiguration, mixed fAmount)

Makes the adjustments to the API result

__call(mixed strName, array arrArguments)

Magic function to trap calls to undefined functions and throw an exception rather than
a fatal error.

__callStatic(mixed strName, array arrArguments)

Magic function to trap static calls to undefined functions and throw an exception rather
than a fatal error.

classGetFolder()

Returns the folder where the class exists

__set_state(mixed arrValues)

classGetFolderResources()

Returns the folder where the class's resources exist

classGetSrcFile()

Returns the folder where the class exists

classGetSrcHash()

Returns the folder where the class exists

classGetReflection()

Returns the reflection data for the current class

classGetReflectionAnnotation(string strField)

Returns a specific class annotation for the current class