|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
/** |
|
4
|
|
|
* Apache OSL-2 |
|
5
|
|
|
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. |
|
6
|
|
|
*/ |
|
7
|
|
|
|
|
8
|
|
|
namespace SprykerEco\Client\AmazonPay; |
|
9
|
|
|
|
|
10
|
|
|
use Generated\Shared\Transfer\QuoteTransfer; |
|
|
|
|
|
|
11
|
|
|
use Spryker\Client\Kernel\AbstractClient; |
|
12
|
|
|
|
|
13
|
|
|
/** |
|
14
|
|
|
* @method \SprykerEco\Client\AmazonPay\AmazonPayFactory getFactory() |
|
15
|
|
|
*/ |
|
16
|
|
|
class AmazonPayClient extends AbstractClient implements AmazonPayClientInterface |
|
17
|
|
|
{ |
|
18
|
|
|
/** |
|
19
|
|
|
* {@inheritdoc} |
|
20
|
|
|
* |
|
21
|
|
|
* @api |
|
22
|
|
|
* |
|
23
|
|
|
* @param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer |
|
24
|
|
|
* |
|
25
|
|
|
* @return \Generated\Shared\Transfer\QuoteTransfer |
|
26
|
|
|
*/ |
|
27
|
|
|
public function handleCartWithAmazonPay(QuoteTransfer $quoteTransfer) |
|
28
|
|
|
{ |
|
29
|
|
|
return $this->getFactory()->createZedStub()->handleCartWithAmazonPay($quoteTransfer); |
|
|
|
|
|
|
30
|
|
|
} |
|
31
|
|
|
|
|
32
|
|
|
/** |
|
33
|
|
|
* {@inheritdoc} |
|
34
|
|
|
* |
|
35
|
|
|
* @api |
|
36
|
|
|
* |
|
37
|
|
|
* @param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer |
|
38
|
|
|
* |
|
39
|
|
|
* @return \Generated\Shared\Transfer\QuoteTransfer |
|
40
|
|
|
*/ |
|
41
|
|
|
public function addSelectedAddressToQuote(QuoteTransfer $quoteTransfer) |
|
42
|
|
|
{ |
|
43
|
|
|
return $this->getFactory()->createZedStub()->addSelectedAddressToQuote($quoteTransfer); |
|
|
|
|
|
|
44
|
|
|
} |
|
45
|
|
|
|
|
46
|
|
|
/** |
|
47
|
|
|
* {@inheritdoc} |
|
48
|
|
|
* |
|
49
|
|
|
* @api |
|
50
|
|
|
* |
|
51
|
|
|
* @param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer |
|
52
|
|
|
* |
|
53
|
|
|
* @return \Generated\Shared\Transfer\QuoteTransfer |
|
54
|
|
|
*/ |
|
55
|
|
|
public function addSelectedShipmentMethodToQuote(QuoteTransfer $quoteTransfer) |
|
56
|
|
|
{ |
|
57
|
|
|
return $this->getFactory()->createZedStub()->addSelectedShipmentMethodToQuote($quoteTransfer); |
|
|
|
|
|
|
58
|
|
|
} |
|
59
|
|
|
|
|
60
|
|
|
/** |
|
61
|
|
|
* {@inheritdoc} |
|
62
|
|
|
* |
|
63
|
|
|
* @api |
|
64
|
|
|
* |
|
65
|
|
|
* @param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer |
|
66
|
|
|
* |
|
67
|
|
|
* @return \Generated\Shared\Transfer\QuoteTransfer |
|
68
|
|
|
*/ |
|
69
|
|
|
public function confirmPurchase(QuoteTransfer $quoteTransfer): QuoteTransfer |
|
70
|
|
|
{ |
|
71
|
|
|
return $this->getFactory()->createZedStub()->confirmPurchase($quoteTransfer); |
|
72
|
|
|
} |
|
73
|
|
|
|
|
74
|
|
|
/** |
|
75
|
|
|
* {@inheritdoc} |
|
76
|
|
|
* |
|
77
|
|
|
* @api |
|
78
|
|
|
* |
|
79
|
|
|
* @param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer |
|
80
|
|
|
* |
|
81
|
|
|
* @return \Generated\Shared\Transfer\QuoteTransfer |
|
82
|
|
|
*/ |
|
83
|
|
|
public function authorizeOrder(QuoteTransfer $quoteTransfer): QuoteTransfer |
|
84
|
|
|
{ |
|
85
|
|
|
return $this->getFactory()->createZedStub()->authorizeOrder($quoteTransfer); |
|
86
|
|
|
} |
|
87
|
|
|
} |
|
88
|
|
|
|
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