1 | <?php |
||
2 | |||
3 | /** |
||
4 | * MIT License |
||
5 | * For full license information, please view the LICENSE file that was distributed with this source code. |
||
6 | */ |
||
7 | |||
8 | namespace SprykerEco\Service\CrefoPay; |
||
9 | |||
10 | use Generated\Shared\Transfer\ItemTransfer; |
||
11 | use Generated\Shared\Transfer\QuoteTransfer; |
||
0 ignored issues
–
show
|
|||
12 | |||
13 | interface CrefoPayServiceInterface |
||
14 | { |
||
15 | /** |
||
16 | * Specification: |
||
17 | * - Generates unique identifier for order id in CrefoPay system. |
||
18 | * - If `QuoteTransfer.customerReference` is set, uses it as a base. |
||
19 | * |
||
20 | * @api |
||
21 | * |
||
22 | * @param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer |
||
23 | * |
||
24 | * @return string |
||
25 | */ |
||
26 | public function generateCrefoPayOrderId(QuoteTransfer $quoteTransfer): string; |
||
27 | |||
28 | /** |
||
29 | * Specification: |
||
30 | * - If `ItemTransfer.sku` is set and length is lower than max length, returns `ItemTransfer.sku`. |
||
31 | * - Otherwise, generates unique basket item ID based on `ItemTransfer.sku`. |
||
32 | * |
||
33 | * @api |
||
34 | * |
||
35 | * @param \Generated\Shared\Transfer\ItemTransfer $itemTransfer |
||
36 | * |
||
37 | * @return string |
||
38 | */ |
||
39 | public function generateCrefoPayBasketItemId(ItemTransfer $itemTransfer): string; |
||
40 | |||
41 | /** |
||
42 | * Specification: |
||
43 | * - Requires `QuoteTransfer.customer` transfer property to be set. |
||
44 | * - Generates unique user ID for CrefoPay system. |
||
45 | * - If `QuoteTransfer.customerReference` is provided and the customer is not a guest, uses `QuoteTransfer.customerReference` for ID generation. |
||
46 | * - Otherwise, generates ID using guest user pattern. |
||
47 | * |
||
48 | * @api |
||
49 | * |
||
50 | * @param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer |
||
51 | * |
||
52 | * @return string |
||
53 | */ |
||
54 | public function generateCrefoPayUserId(QuoteTransfer $quoteTransfer): string; |
||
55 | } |
||
56 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths