DHL-PHP-SDK  v0.4
A wrapper for the DHL-XML-API Version 2
ExportDocPosition Class Reference

Public Member Functions

 __construct ($description, $countryCodeOrigin, $customsTariffNumber, $amount, $netWeightInKG, $customsValue)
 
 __destruct ()
 
 getDescription ()
 
 getCountryCodeOrigin ()
 
 getCustomsTariffNumber ()
 
 getAmount ()
 
 getNetWeightInKG ()
 
 getCustomsValue ()
 
 getExportDocPositionClass_v2 ()
 

Protected Member Functions

 getExportDocPositionClass_v1 ()
 

Detailed Description

Definition at line 25 of file ExportDocPosition.php.

Constructor & Destructor Documentation

§ __construct()

__construct (   $description,
  $countryCodeOrigin,
  $customsTariffNumber,
  $amount,
  $netWeightInKG,
  $customsValue 
)

ExportDocPosition constructor.

Parameters
string$description- Description of the unit / position
string$countryCodeOrigin- Origin Country-ISO-Code
string | null$customsTariffNumber- Customs tariff number of the unit / position (HS-code) or null for none
int$amount- Quantity of the unit / position
int | float$netWeightInKG- Net weight of the unit / position
int | float$customsValue- Customs value amount of the unit / position

Definition at line 87 of file ExportDocPosition.php.

§ __destruct()

__destruct ( )

Clears Memory

Definition at line 107 of file ExportDocPosition.php.

Member Function Documentation

§ getAmount()

getAmount ( )

Get the Amount

Returns
int|null - Amount or null on failure

Definition at line 175 of file ExportDocPosition.php.

§ getCountryCodeOrigin()

getCountryCodeOrigin ( )

Get the Country Code Origin

Returns
string|null - Country Code Origin or null on failure

Definition at line 139 of file ExportDocPosition.php.

§ getCustomsTariffNumber()

getCustomsTariffNumber ( )

Get the Custom Tariff Number

Returns
float|int|string|null - Custom Tariff Number or null for none

Definition at line 157 of file ExportDocPosition.php.

§ getCustomsValue()

getCustomsValue ( )

Get the Customs Value for the Unit / Package

Returns
float|null - Custom Value for the Unit / Package or null on failure

Definition at line 211 of file ExportDocPosition.php.

§ getDescription()

getDescription ( )

Get the Description

Returns
string|null - Description or null on failure

Definition at line 121 of file ExportDocPosition.php.

§ getExportDocPositionClass_v1()

getExportDocPositionClass_v1 ( )
protected

Returns a Class for ExportDocPosition

Returns
StdClass - DHL-ExportDocPosition-Class
Deprecated:
  • DHL-API-Version 1 Method

Definition at line 231 of file ExportDocPosition.php.

§ getExportDocPositionClass_v2()

getExportDocPositionClass_v2 ( )

Returns a Class for ExportDocPosition

Returns
StdClass - DHL-ExportDocPosition-Class

Definition at line 245 of file ExportDocPosition.php.

§ getNetWeightInKG()

getNetWeightInKG ( )

Get the Weight in KG

Returns
float|null - Weight in KG or null on failure

Definition at line 193 of file ExportDocPosition.php.


The documentation for this class was generated from the following file: