Class: SalesChannelInventoryService
Constructors
constructor
• new SalesChannelInventoryService(__namedParameters
Copy to Clipboard)
Parameters
Name | Type |
---|---|
__namedParameters Copy to Clipboard | InjectedDependencies Copy to Clipboard |
Defined in
packages/medusa/src/services/sales-channel-inventory.ts:21
Properties
eventBusService_
• Protected
Copy to Clipboard Readonly
Copy to Clipboard eventBusService_: EventBusService
Copy to Clipboard
Defined in
packages/medusa/src/services/sales-channel-inventory.ts:18
inventoryService_
• Protected
Copy to Clipboard Readonly
Copy to Clipboard inventoryService_: IInventoryService
Copy to Clipboard
Defined in
packages/medusa/src/services/sales-channel-inventory.ts:19
manager_
• Protected
Copy to Clipboard manager_: EntityManager
Copy to Clipboard
Defined in
packages/medusa/src/services/sales-channel-inventory.ts:15
salesChannelLocationService_
• Protected
Copy to Clipboard Readonly
Copy to Clipboard salesChannelLocationService_: SalesChannelLocationService
Copy to Clipboard
Defined in
packages/medusa/src/services/sales-channel-inventory.ts:17
Methods
retrieveAvailableItemQuantity
▸ retrieveAvailableItemQuantity(salesChannelId
Copy to Clipboard, inventoryItemId
Copy to Clipboard): Promise
Copy to Clipboard<number
Copy to Clipboard>
Retrieves the available quantity of an item across all sales channel locations
Parameters
Name | Type | Description |
---|---|---|
salesChannelId Copy to Clipboard | string Copy to Clipboard | Sales channel id |
inventoryItemId Copy to Clipboard | string Copy to Clipboard | Item id |
Returns
Promise
Copy to Clipboard<number
Copy to Clipboard>
available quantity of item across all sales channel locations