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\Glue\FirstData\Plugin\CheckoutRestApi; |
9
|
|
|
|
10
|
|
|
use Generated\Shared\Transfer\RestCheckoutDataResponseAttributesTransfer; |
|
|
|
|
11
|
|
|
use Generated\Shared\Transfer\RestCheckoutDataTransfer; |
|
|
|
|
12
|
|
|
use Generated\Shared\Transfer\RestCheckoutRequestAttributesTransfer; |
|
|
|
|
13
|
|
|
use Spryker\Glue\CheckoutRestApiExtension\Dependency\Plugin\CheckoutDataResponseMapperPluginInterface; |
|
|
|
|
14
|
|
|
use Spryker\Glue\Kernel\AbstractPlugin; |
|
|
|
|
15
|
|
|
|
16
|
|
|
/** |
17
|
|
|
* @method \SprykerEco\Glue\FirstData\FirstDataFactory getFactory() |
18
|
|
|
*/ |
19
|
|
|
class FirstDataAuthorizeSessionParametersCheckoutDataResponseMapperPlugin extends AbstractPlugin implements CheckoutDataResponseMapperPluginInterface |
20
|
|
|
{ |
21
|
|
|
/** |
22
|
|
|
* {@inheritDoc} |
23
|
|
|
* - Maps `AuthorizeSessionResponseTransfer` to `RestCheckoutDataResponseAttributesTransfer.firstDataAuthorizeSessionParameters`. |
24
|
|
|
* |
25
|
|
|
* @api |
26
|
|
|
* |
27
|
|
|
* @param \Generated\Shared\Transfer\RestCheckoutDataTransfer $restCheckoutDataTransfer |
28
|
|
|
* @param \Generated\Shared\Transfer\RestCheckoutRequestAttributesTransfer $restCheckoutRequestAttributesTransfer |
29
|
|
|
* @param \Generated\Shared\Transfer\RestCheckoutDataResponseAttributesTransfer $restCheckoutResponseAttributesTransfer |
30
|
|
|
* |
31
|
|
|
* @return \Generated\Shared\Transfer\RestCheckoutDataResponseAttributesTransfer |
32
|
|
|
*/ |
33
|
|
|
public function mapRestCheckoutDataResponseTransferToRestCheckoutDataResponseAttributesTransfer( |
34
|
|
|
RestCheckoutDataTransfer $restCheckoutDataTransfer, |
35
|
|
|
RestCheckoutRequestAttributesTransfer $restCheckoutRequestAttributesTransfer, |
36
|
|
|
RestCheckoutDataResponseAttributesTransfer $restCheckoutResponseAttributesTransfer |
37
|
|
|
): RestCheckoutDataResponseAttributesTransfer { |
38
|
|
|
return $this->getFactory() |
39
|
|
|
->createFirstDataAuthorizeSessionParametersMapper() |
40
|
|
|
->mapFirstDataAuthorizeSessionParametersTransferToRestCheckoutDataResponseAttributesTransfer( |
41
|
|
|
$restCheckoutResponseAttributesTransfer, |
42
|
|
|
$restCheckoutDataTransfer |
43
|
|
|
); |
44
|
|
|
} |
45
|
|
|
} |
46
|
|
|
|
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