return $this->
fmap(fn (OrderDeliveryEntity
$orderDelivery) =>
$orderDelivery->
getShippingMethodId());
} public function filterByShippingMethodId(string
$id): self
{ return $this->
filter(fn (OrderDeliveryEntity
$orderDelivery) =>
$orderDelivery->
getShippingMethodId() ===
$id);
} public function getShippingAddress(): OrderAddressCollection
{ return new OrderAddressCollection( $this->
fmap(fn (OrderDeliveryEntity
$orderDelivery) =>
$orderDelivery->
getShippingOrderAddress()) );
} public function getShippingMethods(): ShippingMethodCollection
{ return new ShippingMethodCollection( $this->
fmap(fn (OrderDeliveryEntity
$orderDelivery) =>
$orderDelivery->
getShippingMethod()) );
} public function getApiAlias(): string
{