Skip to content
Merged
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
2 changes: 2 additions & 0 deletions src/MyParcelComApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -1001,6 +1001,7 @@ public function deleteShipmentSurcharge(ShipmentSurchargeInterface $shipmentSurc
* @throws DateMalformedStringException
*/
public function getDeliveryDates(
string $carrierCode,
string $serviceCode,
AddressInterface $address,
DatetimeInterface $startDate,
Expand All @@ -1012,6 +1013,7 @@ public function getDeliveryDates(
self::PATH_DELIVERY_DATES,
'post',
[
'carrier_code' => $carrierCode,
'service_code' => $serviceCode,
'service_option_codes' => $serviceOptionCodes,
'address' => [
Expand Down
2 changes: 2 additions & 0 deletions src/MyParcelComApiInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -280,6 +281,7 @@ public function generateManifestForCollection(CollectionInterface $collection):
* @throws DateMalformedStringException
*/
public function getDeliveryDates(
string $carrierCode,
string $serviceCode,
AddressInterface $address,
DatetimeInterface $startDate,
Expand Down
1 change: 1 addition & 0 deletions tests/Feature/MyParcelComApi/DeliveryDatesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public function testItRetrievesDeliveryDates(): void
->setStreetNumber(221);

$deliveryDates = $this->api->getDeliveryDates(
'carrier-code',
'service-code',
$address,
new DateTime(),
Expand Down