|
@@ -23,11 +23,6 @@ does not take channels into account, update your VendureConfig to use to <a href
|
|
|
|
|
|
|
|
```ts title="Signature"
|
|
```ts title="Signature"
|
|
|
class MultiChannelStockLocationStrategy extends BaseStockLocationStrategy {
|
|
class MultiChannelStockLocationStrategy extends BaseStockLocationStrategy {
|
|
|
- protected cacheService: CacheService;
|
|
|
|
|
- protected channelIdCache: Cache;
|
|
|
|
|
- protected eventBus: EventBus;
|
|
|
|
|
- protected globalSettingsService: GlobalSettingsService;
|
|
|
|
|
- protected requestContextCache: RequestContextCacheService;
|
|
|
|
|
getAvailableStock(ctx: RequestContext, productVariantId: ID, stockLevels: StockLevel[]) => Promise<AvailableStock>;
|
|
getAvailableStock(ctx: RequestContext, productVariantId: ID, stockLevels: StockLevel[]) => Promise<AvailableStock>;
|
|
|
forAllocation(ctx: RequestContext, stockLocations: StockLocation[], orderLine: OrderLine, quantity: number) => Promise<LocationWithQuantity[]>;
|
|
forAllocation(ctx: RequestContext, stockLocations: StockLocation[], orderLine: OrderLine, quantity: number) => Promise<LocationWithQuantity[]>;
|
|
|
}
|
|
}
|
|
@@ -38,31 +33,6 @@ class MultiChannelStockLocationStrategy extends BaseStockLocationStrategy {
|
|
|
|
|
|
|
|
<div className="members-wrapper">
|
|
<div className="members-wrapper">
|
|
|
|
|
|
|
|
-### cacheService
|
|
|
|
|
-
|
|
|
|
|
-<MemberInfo kind="property" type={`<a href='/reference/typescript-api/cache/cache-service#cacheservice'>CacheService</a>`} />
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-### channelIdCache
|
|
|
|
|
-
|
|
|
|
|
-<MemberInfo kind="property" type={`<a href='/reference/typescript-api/cache/#cache'>Cache</a>`} />
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-### eventBus
|
|
|
|
|
-
|
|
|
|
|
-<MemberInfo kind="property" type={`<a href='/reference/typescript-api/events/event-bus#eventbus'>EventBus</a>`} />
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-### globalSettingsService
|
|
|
|
|
-
|
|
|
|
|
-<MemberInfo kind="property" type={`<a href='/reference/typescript-api/services/global-settings-service#globalsettingsservice'>GlobalSettingsService</a>`} />
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-### requestContextCache
|
|
|
|
|
-
|
|
|
|
|
-<MemberInfo kind="property" type={`<a href='/reference/typescript-api/cache/request-context-cache-service#requestcontextcacheservice'>RequestContextCacheService</a>`} />
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
### getAvailableStock
|
|
### getAvailableStock
|
|
|
|
|
|
|
|
<MemberInfo kind="method" type={`(ctx: <a href='/reference/typescript-api/request/request-context#requestcontext'>RequestContext</a>, productVariantId: <a href='/reference/typescript-api/common/id#id'>ID</a>, stockLevels: <a href='/reference/typescript-api/entities/stock-level#stocklevel'>StockLevel</a>[]) => Promise<<a href='/reference/typescript-api/products-stock/stock-location-strategy#availablestock'>AvailableStock</a>>`} />
|
|
<MemberInfo kind="method" type={`(ctx: <a href='/reference/typescript-api/request/request-context#requestcontext'>RequestContext</a>, productVariantId: <a href='/reference/typescript-api/common/id#id'>ID</a>, stockLevels: <a href='/reference/typescript-api/entities/stock-level#stocklevel'>StockLevel</a>[]) => Promise<<a href='/reference/typescript-api/products-stock/stock-location-strategy#availablestock'>AvailableStock</a>>`} />
|