From 59db9c9e6d8e9ab9a45161e53fbe33e3bffaa0ca Mon Sep 17 00:00:00 2001 From: Matt Klepaczewski Date: Mon, 20 Jul 2020 14:30:20 +0100 Subject: [PATCH 1/2] Added missing City fields returned by ListCities and ListCitiesFull --- Models/City.php | 65 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/Models/City.php b/Models/City.php index 84e8e6e..9414363 100644 --- a/Models/City.php +++ b/Models/City.php @@ -31,6 +31,71 @@ class City extends AbstractModel */ protected $code = null; + /** + * @var int + */ + protected $receptionLaP; + + /** + * @var int + */ + protected $deliveryLaP; + + /** + * @var int + */ + protected $reception; + + /** + * @var int + */ + protected $foreignReceptionReturns; + + /** + * @var int + */ + protected $terminal; + + /** + * @var string + */ + protected $kladr; + + /** + * @var string + */ + protected $countryCode; + + /** + * @var string + */ + protected $uniqName; + + /** + * @var string + */ + protected $district; + + /** + * @var string + */ + protected $prefix; + + /** + * @var int + */ + protected $courierReception; + + /** + * @var int + */ + protected $courierDelivery; + + /** + * @var + */ + protected $pickupPoint; + /** * @return string */ From 48f831fbfe020ae3a555a45a2aaee82db5bdc627 Mon Sep 17 00:00:00 2001 From: Matt Klepaczewski Date: Mon, 20 Jul 2020 14:38:39 +0100 Subject: [PATCH 2/2] Added missing DeliveryPeriod field to CourierDeliveryShort --- Models/CourierDeliveryShort.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Models/CourierDeliveryShort.php b/Models/CourierDeliveryShort.php index ce5ba30..6bc71fc 100644 --- a/Models/CourierDeliveryShort.php +++ b/Models/CourierDeliveryShort.php @@ -35,6 +35,11 @@ class CourierDeliveryShort extends AbstractModel */ protected $area = null; + /** + * @var ?float + */ + protected $deliveryPeriod = null; + /** * @return string */ @@ -83,4 +88,16 @@ public function setArea($area) $this->area = $area; } + public function setDeliveryPeriod($deliveryPeriod) { + if(!is_numeric($deliveryPeriod)) { + $this->deliveryPeriod = null; + } else { + $this->deliveryPeriod = floatval($deliveryPeriod); + } + } + + public function getDeliveryPeriod() { + return $this->deliveryPeriod; + } + } \ No newline at end of file