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
26 changes: 25 additions & 1 deletion src/ComplexTypes/CutOffTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,20 @@ class CutOffTime extends BaseType
*/
protected $Time = null;

/**
* @var boolean
*/
protected $Available = false;

/**
* @param string $Day
* @param string $Time
*/
public function __construct($Day, $Time)
public function __construct($Day, $Time, $Available)
{
$this->setDay($Day);
$this->setTime($Time);
$this->setAvailable($Available);
}

/**
Expand Down Expand Up @@ -58,4 +64,22 @@ public function setTime($Time)
$this->Time = $Time;
return $this;
}

/**
* @return boolean
*/
public function getAvailable()
{
return $this->Available;
}

/**
* @param boolean $Available
* @return CutOffTime
*/
public function setAvailable($Available)
{
$this->Available = $Available;
return $this;
}
}
28 changes: 27 additions & 1 deletion src/ComplexTypes/GetDeliveryDate.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ class GetDeliveryDate extends BaseType
*/
protected $Street = null;

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

/**
* @param string $AllowSundaySorting
* @param string $City
Expand All @@ -70,6 +75,7 @@ class GetDeliveryDate extends BaseType
* @param string $ShippingDate
* @param string $ShippingDuration
* @param string $Street
* @param string $OriginCountryCode
*/
public function __construct(
$AllowSundaySorting,
Expand All @@ -82,7 +88,8 @@ public function __construct(
$PostalCode,
$ShippingDate,
$ShippingDuration,
$Street
$Street,
$OriginCountryCode
) {
$this->setAllowSundaySorting($AllowSundaySorting);
$this->setCity($City);
Expand All @@ -95,6 +102,7 @@ public function __construct(
$this->setShippingDate($ShippingDate);
$this->setShippingDuration($ShippingDuration);
$this->setStreet($Street);
$this->setOriginCountryCode($OriginCountryCode);
}

/**
Expand Down Expand Up @@ -294,4 +302,22 @@ public function setStreet($Street)
$this->Street = $Street;
return $this;
}

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

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

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

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