@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
35 lines • 1.09 kB
JavaScript
import { WarehousingDirector, WarehousingAdapter } from '@unchainedshop/core';
import { WarehousingProviderType } from '@unchainedshop/core-warehousing';
const Store = {
...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);
//# sourceMappingURL=store.js.map