UNPKG

@unchainedshop/plugins

Version:

Because of a Typescript issue with upstream "postfinancecheckout", the Postfinance plugin has been disabled from transpilation, import the source ts files from src and enable node_module tsc or copy over the src/payment/postfinance-checkout to your projec

46 lines (34 loc) 971 B
import { WarehousingDirector, WarehousingAdapter, IWarehousingAdapter } from '@unchainedshop/core'; import { WarehousingProviderType } from '@unchainedshop/core-warehousing'; const Store: IWarehousingAdapter = { ...WarehousingAdapter, key: 'shop.unchained.warehousing.store', label: 'Store', version: '1.0.0', orderIndex: 0, initialConfiguration: [{ key: 'name', value: 'Flagship Store' }], typeSupported: (type) => { return type === WarehousingProviderType.PHYSICAL; }, actions: (configuration, context) => { return { ...WarehousingAdapter.actions(configuration, context), isActive() { return true; }, configurationError() { return null; }, stock: async () => { return 99999; }, productionTime: async () => { return 0; }, commissioningTime: async () => { return 0; }, }; }, }; WarehousingDirector.registerAdapter(Store);