Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct ( $reservationId, int $stockId, string $sku, float $quantity, $metadata=null) | |
getReservationId () | |
getStockId () | |
getSku () | |
getQuantity () | |
getMetadata () | |
Additional Inherited Members | |
![]() | |
const | RESERVATION_ID = 'reservation_id' |
const | STOCK_ID = 'stock_id' |
const | SKU = 'sku' |
const | QUANTITY = 'quantity' |
const | METADATA = 'metadata' |
__construct | ( | $reservationId, | |
int | $stockId, | ||
string | $sku, | ||
float | $quantity, | ||
$metadata = null |
|||
) |
int | null | $reservationId | |
int | $stockId | |
string | $sku | |
float | $quantity | |
null | $metadata |
Definition at line 51 of file Reservation.php.
getMetadata | ( | ) |
Get Reservation MetadataMetadata is used to store serialized data that encapsulates the semantic of a Reservation.
Implements ReservationInterface.
Definition at line 102 of file Reservation.php.
getQuantity | ( | ) |
Get Product QtyThis value can be positive (>0) or negative (<0) depending on the Reservation semantic.For example, when an Order is placed, a Reservation with negative quantity is appended. When that Order is processed and the SourceItems related to ordered products are updated, a Reservation with positive quantity is appended to neglect the first one.
Implements ReservationInterface.
Definition at line 94 of file Reservation.php.
getReservationId | ( | ) |
Get Reservation Id
Implements ReservationInterface.
Definition at line 68 of file Reservation.php.
getSku | ( | ) |
Get Product SKU
Implements ReservationInterface.
Definition at line 86 of file Reservation.php.
getStockId | ( | ) |
Get Stock Id
Implements ReservationInterface.
Definition at line 78 of file Reservation.php.