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