Skip to main content

Class: SalesChannelInventoryService

Constructors

constructor

new SalesChannelInventoryService(__namedParametersCopy to Clipboard)

Parameters

NameType
__namedParametersCopy to ClipboardInjectedDependenciesCopy to Clipboard

Defined in

packages/medusa/src/services/sales-channel-inventory.ts:21

Properties

eventBusService_

ProtectedCopy to Clipboard ReadonlyCopy to Clipboard eventBusService_: EventBusServiceCopy to Clipboard

Defined in

packages/medusa/src/services/sales-channel-inventory.ts:18


inventoryService_

ProtectedCopy to Clipboard ReadonlyCopy to Clipboard inventoryService_: IInventoryServiceCopy to Clipboard

Defined in

packages/medusa/src/services/sales-channel-inventory.ts:19


manager_

ProtectedCopy to Clipboard manager_: EntityManagerCopy to Clipboard

Defined in

packages/medusa/src/services/sales-channel-inventory.ts:15


salesChannelLocationService_

ProtectedCopy to Clipboard ReadonlyCopy to Clipboard salesChannelLocationService_: SalesChannelLocationServiceCopy to Clipboard

Defined in

packages/medusa/src/services/sales-channel-inventory.ts:17

Methods

retrieveAvailableItemQuantity

retrieveAvailableItemQuantity(salesChannelIdCopy to Clipboard, inventoryItemIdCopy to Clipboard): PromiseCopy to Clipboard<numberCopy to Clipboard>

Retrieves the available quantity of an item across all sales channel locations

Parameters

NameTypeDescription
salesChannelIdCopy to ClipboardstringCopy to ClipboardSales channel id
inventoryItemIdCopy to ClipboardstringCopy to ClipboardItem id

Returns

PromiseCopy to Clipboard<numberCopy to Clipboard>

available quantity of item across all sales channel locations

Defined in

packages/medusa/src/services/sales-channel-inventory.ts:39