Issues (453)

src/Services/ShippingServiceInterface.php (4 issues)

1
<?php
2
3
/*
4
 * This file is part of PHP CS Fixer.
5
 *
6
 * (c) Fabien Potencier <[email protected]>
7
 *     Dariusz RumiƄski <[email protected]>
8
 *
9
 * This source file is subject to the MIT license that is bundled
10
 * with this source code in the file LICENSE.
11
 */
12
13
namespace Etrias\PaazlConnector\Services;
14
15
use DateTime;
16
use Etrias\PaazlConnector\SoapTypes\CancelShipmentsResponse;
17
use Etrias\PaazlConnector\SoapTypes\CancelShipmentType;
18
use Etrias\PaazlConnector\SoapTypes\DateRangeType;
19
use Etrias\PaazlConnector\SoapTypes\OrdersToShipResponse;
20
use Etrias\PaazlConnector\SoapTypes\ShippingOptionResponse;
21
use Etrias\PaazlConnector\SoapTypes\Source;
22
use RuntimeException;
23
24
interface ShippingServiceInterface
25
{
26
    /**
27
     * @throws RuntimeException
28
     */
29
    public function generateShippingManifest();
30
31
    /**
32
     * @param DateTime $date
33
     * @param null     $targetWebShop
0 ignored issues
show
Documentation Bug introduced by
Are you sure the doc-type for parameter $targetWebShop is correct as it would always require null to be passed?
Loading history...
34
     *
35
     * @return OrdersToShipResponse
36
     */
37
    public function getOrdersToShip(DateTime $date = null, $targetWebShop = null);
38
39
    /**
40
     * @param CancelShipmentType[] $barCodes
41
     * @param null                 $targetWebShop
0 ignored issues
show
Documentation Bug introduced by
Are you sure the doc-type for parameter $targetWebShop is correct as it would always require null to be passed?
Loading history...
42
     *
43
     * @return CancelShipmentsResponse
44
     */
45
    public function cancelShipments(array $barCodes, $targetWebShop = null);
46
47
    /**
48
     * @param $orderReference
49
     * @param string             $country
50
     * @param DateRangeType|null $deliveryDateRange
0 ignored issues
show
Documentation Bug introduced by
Are you sure the doc-type for parameter $postcode is correct as it would always require null to be passed?
Loading history...
Documentation Bug introduced by
Are you sure the doc-type for parameter $shippingOption is correct as it would always require null to be passed?
Loading history...
51
     * @param null               $postcode
52
     * @param bool               $extendedDeliveryDateDetails
53
     * @param null               $shippingOption
54
     * @param Source[]           $sources
55
     * @param $targetWebShop
56
     *
57
     * @return ShippingOptionResponse
58
     */
59
    public function getShippingOptions(
60
        $orderReference,
61
        $country,
62
        DateRangeType $deliveryDateRange = null,
63
        $postcode = null,
64
        $extendedDeliveryDateDetails = null,
65
        $shippingOption = null,
66
        array $sources = [],
67
        $targetWebShop = null
68
    );
69
}
70