Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
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;

/**
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use spaces, not tabs.

* @var string
*/
protected $DeliveryTimeStampStart = null;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Timestamp, not TimeStamp


/**
* @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_1/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_1/label/soap.wsdl';

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