Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
158 changes: 157 additions & 1 deletion src/ComplexTypes/Customs.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ class Customs extends BaseType
*/
protected $Currency = null;

/**
* @var string
*/
protected $EAN = null;

/**
* @var string
*/
Expand All @@ -48,45 +53,88 @@ class Customs extends BaseType
*/
protected $LicenseNr = null;

/**
* @var string
*/
protected $ProductURL = null;

/**
* @var string
*/
protected $ShipmentType = null;

/**
* @var string
*/
protected $TrustedShipperID = null;

/**
* @var string
*/
protected $ImporterReferenceCode = null;

/**
* @var string
*/
protected $TransactionCode = null;

/**
* @var string
*/
protected $TransactionDescription = null;

/**
* @param string $Certificate
* @param string $CertificateNr
* @param ArrayOfContent $Content
* @param string $Currency
* @param string $EAN
* @param string $HandleAsNonDeliverable
* @param string $Invoice
* @param string $InvoiceNr
* @param string $License
* @param string $LicenseNr
* @param string $ProductURL
* @param string $ShipmentType
* @param string $TrustedShipperID
* @param string $ImporterReferenceCode
* @param string $TransactionCode
* @param string $TransactionDescription
*/
public function __construct(
$Certificate,
$CertificateNr,
ArrayOfContent $Content,
$Currency,
$EAN,
$HandleAsNonDeliverable,
$Invoice,
$InvoiceNr,
$License,
$LicenseNr,
$ShipmentType
$ProductURL,
$ShipmentType,
$TrustedShipperID,
$ImporterReferenceCode,
$TransactionCode,
$TransactionDescription
) {
$this->setCertificate($Certificate);
$this->setCertificateNr($CertificateNr);
$this->setContent($Content);
$this->setCurrency($Currency);
$this->setEAN($EAN);
$this->setHandleAsNonDeliverable($HandleAsNonDeliverable);
$this->setInvoice($Invoice);
$this->setInvoiceNr($InvoiceNr);
$this->setLicense($License);
$this->setLicenseNr($LicenseNr);
$this->setProductURL($ProductURL);
$this->setShipmentType($ShipmentType);
$this->setTrustedShipperID($TrustedShipperID);
$this->setImporterReferenceCode($ImporterReferenceCode);
$this->setTransactionCode($TransactionCode);
$this->setTransactionDescription($TransactionDescription);
}

/**
Expand Down Expand Up @@ -161,6 +209,24 @@ public function setCurrency($Currency)
return $this;
}

/**
* @return string
*/
public function getEAN()
{
return $this->EAN;
}

/**
* @param string $EAN
* @return Customs
*/
public function setEAN($EAN)
{
$this->EAN = $EAN;
return $this;
}

/**
* @return string
*/
Expand Down Expand Up @@ -215,6 +281,24 @@ public function setInvoiceNr($InvoiceNr)
return $this;
}

/**
* @return string
*/
public function getProductURL()
{
return $this->ProductURL;
}

/**
* @param string $ProductURL
* @return Customs
*/
public function setProductURL($ProductURL)
{
$this->ProductURL = $ProductURL;
return $this;
}

/**
* @return string
*/
Expand Down Expand Up @@ -268,4 +352,76 @@ public function setShipmentType($ShipmentType)
$this->ShipmentType = $ShipmentType;
return $this;
}

/**
* @return string
*/
public function getTrustedShipperID()
{
return $this->TrustedShipperID;
}

/**
* @param string $TrustedShipperID
* @return Customs
*/
public function setTrustedShipperID($TrustedShipperID)
{
$this->TrustedShipperID = $TrustedShipperID;
return $this;
}

/**
* @return string
*/
public function getImporterReferenceCode()
{
return $this->ImporterReferenceCode;
}

/**
* @param string $ImporterReferenceCode
* @return Customs
*/
public function setImporterReferenceCode($ImporterReferenceCode)
{
$this->ImporterReferenceCode = $ImporterReferenceCode;
return $this;
}

/**
* @return string
*/
public function getTransactionCode()
{
return $this->TransactionCode;
}

/**
* @param string $TransactionCode
* @return Customs
*/
public function setTransactionCode($TransactionCode)
{
$this->TransactionCode = $TransactionCode;
return $this;
}

/**
* @return string
*/
public function getTransactionDescription()
{
return $this->TransactionDescription;
}

/**
* @param string $TransactionDescription
* @return Customs
*/
public function setTransactionDescription($TransactionDescription)
{
$this->TransactionDescription = $TransactionDescription;
return $this;
}
}
26 changes: 26 additions & 0 deletions src/ComplexTypes/ResponseShipment.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ class ResponseShipment extends BaseType
*/
protected $Barcode = null;

/**
* @var string
*/
protected $CodingText = null;

/**
* @var string
*/
Expand Down Expand Up @@ -40,6 +45,7 @@ class ResponseShipment extends BaseType

/**
* @param string $Barcode
* @param string $CodingText
* @param string $DownPartnerBarcode
* @param string $DownPartnerID
* @param string $DownPartnerLocation
Expand All @@ -49,6 +55,7 @@ class ResponseShipment extends BaseType
*/
public function __construct(
$Barcode,
$CodingText,
$DownPartnerBarcode,
$DownPartnerID,
$DownPartnerLocation,
Expand All @@ -57,6 +64,7 @@ public function __construct(
ArrayOfWarning $Warnings
) {
$this->setBarcode($Barcode);
$this->setCodingText($CodingText);
$this->setDownPartnerBarcode($DownPartnerBarcode);
$this->setDownPartnerID($DownPartnerID);
$this->setDownPartnerLocation($DownPartnerLocation);
Expand All @@ -83,6 +91,24 @@ public function setBarcode($Barcode)
return $this;
}

/**
* @return string
*/
public function getCodingText()
{
return $this->CodingText;
}

/**
* @param string $CodingText
* @return ResponseShipment
*/
public function setCodingText($CodingText)
{
$this->CodingText = $CodingText;
return $this;
}

/**
* @return string
*/
Expand Down
54 changes: 53 additions & 1 deletion src/ComplexTypes/Shipment.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,16 @@ class Shipment extends BaseType
*/
protected $ReturnReference = null;

/**
* @var string
*/
protected $DeliveryTimestampStart = null;

/**
* @var string
*/
protected $DeliveryTimestampEnd = null;

/**
* @param ArrayOfAddress $Addresses
* @param string $Barcode
Expand Down Expand Up @@ -178,6 +188,8 @@ class Shipment extends BaseType
* @param string $Remark Optional.
* @param string $ReturnBarcode Optional.
* @param string $ReturnReference Optional.
* @param string $DeliveryTimestampStart Optional.
* @param string $DeliveryTimestampEnd Optional.
*/
public function __construct(
ArrayOfAddress $Addresses,
Expand Down Expand Up @@ -208,7 +220,9 @@ public function __construct(
$ReferenceCollect = null,
$Remark = null,
$ReturnBarcode = null,
$ReturnReference = null
$ReturnReference = null,
$DeliveryTimestampStart = null,
$DeliveryTimestampEnd = null
) {
$this->setAddresses($Addresses);
$this->setBarcode($Barcode);
Expand Down Expand Up @@ -241,6 +255,8 @@ public function __construct(
$this->setRemark($Remark);
$this->setReturnBarcode($ReturnBarcode);
$this->setReturnReference($ReturnReference);
$this->setDeliveryTimestampStart($DeliveryTimestampStart);
$this->setDeliveryTimestampEnd($DeliveryTimestampEnd);
}

/**
Expand Down Expand Up @@ -764,4 +780,40 @@ public function setReturnReference($ReturnReference)
$this->ReturnReference = $ReturnReference;
return $this;
}

/**
* @return string
*/
public function getDeliveryTimestampStart()
{
return $this->DeliveryTimestampStart;
}

/**
* @param string $DeliveryTimestampStart
* @return Shipment
*/
public function setDeliveryTimestampStart($DeliveryTimestampStart)
{
$this->DeliveryTimestampStart = $DeliveryTimestampStart;
return $this;
}

/**
* @return string
*/
public function getDeliveryTimestampEnd()
{
return $this->DeliveryTimestampEnd;
}

/**
* @param string $DeliveryTimestampEnd
* @return Shipment
*/
public function setDeliveryTimestampEnd($DeliveryTimestampEnd)
{
$this->DeliveryTimestampEnd = $DeliveryTimestampEnd;
return $this;
}
}
4 changes: 2 additions & 2 deletions src/LabellingClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ class LabellingClient extends BaseClient
/**
* @var string The URL of the production WSDL.
*/
const PRODUCTION_WSDL = 'https://api.postnl.nl/shipment/v2_0/label/soap.wsdl';
const PRODUCTION_WSDL = 'https://api.postnl.nl/shipment/v2_2/label/soap.wsdl';

/**
* @var string The URL of the sandbox WSDL.
*/
const SANDBOX_WSDL = 'https://api-sandbox.postnl.nl/shipment/v2_0/label/soap.wsdl';
const SANDBOX_WSDL = 'https://api-sandbox.postnl.nl/shipment/v2_2/label/soap.wsdl';

/**
* @var array The complex types used by this client.
Expand Down