5
5
*/
6
6
namespace Magento \SalesInventory \Model \Plugin \Order ;
7
7
8
- use Magento \CatalogInventory \Api \StockConfigurationInterface ;
9
- use Magento \SalesInventory \Model \Order \ReturnProcessor ;
10
- use Magento \Sales \Api \CreditmemoRepositoryInterface ;
11
- use Magento \Sales \Api \InvoiceRepositoryInterface ;
12
- use Magento \Sales \Api \OrderRepositoryInterface ;
13
- use Magento \Sales \Api \RefundInvoiceInterface ;
14
-
15
8
/**
16
9
* Class ReturnToStockInvoice
17
10
*/
18
11
class ReturnToStockInvoice
19
12
{
20
13
/**
21
- * @var ReturnProcessor
14
+ * @var \Magento\SalesInventory\Model\Order\ ReturnProcessor
22
15
*/
23
16
private $ returnProcessor ;
24
17
25
18
/**
26
- * @var CreditmemoRepositoryInterface
19
+ * @var \Magento\Sales\Api\ CreditmemoRepositoryInterface
27
20
*/
28
21
private $ creditmemoRepository ;
29
22
30
23
/**
31
- * @var OrderRepositoryInterface
24
+ * @var \Magento\Sales\Api\ OrderRepositoryInterface
32
25
*/
33
26
private $ orderRepository ;
34
27
35
28
/**
36
- * @var InvoiceRepositoryInterface
29
+ * @var \Magento\Sales\Api\ InvoiceRepositoryInterface
37
30
*/
38
31
private $ invoiceRepository ;
39
32
40
33
/**
41
- * @var StockConfigurationInterface
34
+ * @var \Magento\CatalogInventory\Api\ StockConfigurationInterface
42
35
*/
43
36
private $ stockConfiguration ;
44
37
45
38
/**
46
39
* ReturnToStockInvoice constructor.
47
- * @param ReturnProcessor $returnProcessor
48
- * @param CreditmemoRepositoryInterface $creditmemoRepository
49
- * @param OrderRepositoryInterface $orderRepository
50
- * @param InvoiceRepositoryInterface $invoiceRepository
51
- * @param StockConfigurationInterface $stockConfiguration
40
+ * @param \Magento\SalesInventory\Model\Order\ ReturnProcessor $returnProcessor
41
+ * @param \Magento\Sales\Api\ CreditmemoRepositoryInterface $creditmemoRepository
42
+ * @param \Magento\Sales\Api\ OrderRepositoryInterface $orderRepository
43
+ * @param \Magento\Sales\Api\ InvoiceRepositoryInterface $invoiceRepository
44
+ * @param \Magento\CatalogInventory\Api\ StockConfigurationInterface $stockConfiguration
52
45
*/
53
46
public function __construct (
54
- ReturnProcessor $ returnProcessor ,
55
- CreditmemoRepositoryInterface $ creditmemoRepository ,
56
- OrderRepositoryInterface $ orderRepository ,
57
- InvoiceRepositoryInterface $ invoiceRepository ,
58
- StockConfigurationInterface $ stockConfiguration
47
+ \ Magento \ SalesInventory \ Model \ Order \ ReturnProcessor $ returnProcessor ,
48
+ \ Magento \ Sales \ Api \ CreditmemoRepositoryInterface $ creditmemoRepository ,
49
+ \ Magento \ Sales \ Api \ OrderRepositoryInterface $ orderRepository ,
50
+ \ Magento \ Sales \ Api \ InvoiceRepositoryInterface $ invoiceRepository ,
51
+ \ Magento \ CatalogInventory \ Api \ StockConfigurationInterface $ stockConfiguration
59
52
) {
60
53
$ this ->returnProcessor = $ returnProcessor ;
61
54
$ this ->creditmemoRepository = $ creditmemoRepository ;
@@ -65,7 +58,7 @@ public function __construct(
65
58
}
66
59
67
60
/**
68
- * @param RefundInvoiceInterface $refundService
61
+ * @param \Magento\Sales\Api\ RefundInvoiceInterface $refundService
69
62
* @param int $resultEntityId
70
63
* @param int $invoiceId
71
64
* @param \Magento\Sales\Api\Data\CreditmemoItemCreationInterface[] $items
@@ -78,7 +71,7 @@ public function __construct(
78
71
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
79
72
*/
80
73
public function afterExecute (
81
- RefundInvoiceInterface $ refundService ,
74
+ \ Magento \ Sales \ Api \ RefundInvoiceInterface $ refundService ,
82
75
$ resultEntityId ,
83
76
$ invoiceId ,
84
77
array $ items = [],
0 commit comments