UNPKG

@unchainedshop/plugins

Version:

Official plugin collection for the Unchained Engine with payment, delivery, and pricing adapters

24 lines (23 loc) 678 B
import { DeliveryAdapter, DeliveryDirector } from '@unchainedshop/core'; import { DeliveryProviderType } from '@unchainedshop/core-delivery'; const Post = { ...DeliveryAdapter, key: 'shop.unchained.post', label: 'Manual', version: '1.0.0', typeSupported: (type) => { return type === DeliveryProviderType.SHIPPING; }, actions: (config, context) => { return { ...DeliveryAdapter.actions(config, context), isActive: () => { return true; }, configurationError: () => { return null; }, }; }, }; DeliveryDirector.registerAdapter(Post);