Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-inventory-source-deduction-api
Model
SourceDeductionRequest.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
namespace
Magento\InventorySourceDeductionApi\Model
;
9
10
use
Magento\InventorySalesApi\Api\Data\SalesEventInterface
;
11
use
Magento\InventorySalesApi\Api\Data\SalesChannelInterface
;
12
16
class
SourceDeductionRequest
implements
SourceDeductionRequestInterface
17
{
21
private
$sourceCode;
22
26
private
$items;
27
31
private
$salesChannel;
32
36
private
$salesEvent;
37
44
public
function
__construct
(
45
string
$sourceCode,
46
array $items,
47
SalesChannelInterface
$salesChannel,
48
SalesEventInterface
$salesEvent
49
) {
50
$this->sourceCode =
$sourceCode
;
51
$this->items =
$items
;
52
$this->salesChannel = $salesChannel;
53
$this->salesEvent = $salesEvent;
54
}
55
59
public
function
getSourceCode
(): string
60
{
61
return
$this->sourceCode;
62
}
63
67
public
function
getItems
(): array
68
{
69
return
$this->items;
70
}
71
75
public
function
getSalesChannel
():
SalesChannelInterface
76
{
77
return
$this->salesChannel;
78
}
79
83
public
function
getSalesEvent
():
SalesEventInterface
84
{
85
return
$this->salesEvent;
86
}
87
}
Magento\InventorySourceDeductionApi\Model
Definition:
GetSourceItemBySourceCodeAndSku.php:8
Magento\InventorySourceDeductionApi\Model\SourceDeductionRequest\getSalesEvent
getSalesEvent()
Definition:
SourceDeductionRequest.php:83
Magento\InventorySourceDeductionApi\Model\SourceDeductionRequestInterface
Definition:
SourceDeductionRequestInterface.php:18
Magento\InventorySourceDeductionApi\Model\SourceDeductionRequest\getSalesChannel
getSalesChannel()
Definition:
SourceDeductionRequest.php:75
Magento\InventorySourceDeductionApi\Model\SourceDeductionRequest\getItems
getItems()
Definition:
SourceDeductionRequest.php:67
$sourceCode
$sourceCode
Definition:
inventory.phtml:11
Magento\InventorySalesApi\Api\Data\SalesChannelInterface
Definition:
SalesChannelInterface.php:17
Magento\InventorySourceDeductionApi\Model\SourceDeductionRequest\__construct
__construct(string $sourceCode, array $items, SalesChannelInterface $salesChannel, SalesEventInterface $salesEvent)
Definition:
SourceDeductionRequest.php:44
Magento\InventorySourceDeductionApi\Model\SourceDeductionRequest
Definition:
SourceDeductionRequest.php:16
Magento\InventorySourceDeductionApi\Model\SourceDeductionRequest\getSourceCode
getSourceCode()
Definition:
SourceDeductionRequest.php:59
Magento\InventorySalesApi\Api\Data\SalesEventInterface
Definition:
SalesEventInterface.php:15
$items
$items
Definition:
order_rollback.php:21