diff --git a/src/MyParcelComApi.php b/src/MyParcelComApi.php index 409edb8..df169ec 100644 --- a/src/MyParcelComApi.php +++ b/src/MyParcelComApi.php @@ -1001,6 +1001,7 @@ public function deleteShipmentSurcharge(ShipmentSurchargeInterface $shipmentSurc * @throws DateMalformedStringException */ public function getDeliveryDates( + string $carrierCode, string $serviceCode, AddressInterface $address, DatetimeInterface $startDate, @@ -1012,6 +1013,7 @@ public function getDeliveryDates( self::PATH_DELIVERY_DATES, 'post', [ + 'carrier_code' => $carrierCode, 'service_code' => $serviceCode, 'service_option_codes' => $serviceOptionCodes, 'address' => [ diff --git a/src/MyParcelComApiInterface.php b/src/MyParcelComApiInterface.php index 1949c59..a48b50b 100644 --- a/src/MyParcelComApiInterface.php +++ b/src/MyParcelComApiInterface.php @@ -265,6 +265,7 @@ public function generateManifestForCollection(CollectionInterface $collection): * Get delivery date time windows from a carrier for the provided service. * Accepts an optional array of `delivery-window` service option codes * + * @param string $carrierCode * @param string $serviceCode * @param AddressInterface $address * @param DateTimeInterface $startDate @@ -280,6 +281,7 @@ public function generateManifestForCollection(CollectionInterface $collection): * @throws DateMalformedStringException */ public function getDeliveryDates( + string $carrierCode, string $serviceCode, AddressInterface $address, DatetimeInterface $startDate, diff --git a/tests/Feature/MyParcelComApi/DeliveryDatesTest.php b/tests/Feature/MyParcelComApi/DeliveryDatesTest.php index 27f3367..5ff6ba3 100644 --- a/tests/Feature/MyParcelComApi/DeliveryDatesTest.php +++ b/tests/Feature/MyParcelComApi/DeliveryDatesTest.php @@ -23,6 +23,7 @@ public function testItRetrievesDeliveryDates(): void ->setStreetNumber(221); $deliveryDates = $this->api->getDeliveryDates( + 'carrier-code', 'service-code', $address, new DateTime(),