UNPKG

@unchainedshop/plugins

Version:

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

21 lines (20 loc) 606 B
import { QuotationDirector, QuotationAdapter } from '@unchainedshop/core'; const ManualOffering = { ...QuotationAdapter, key: 'shop.unchained.quotations.manual', version: '1.0.0', label: 'Manual Offerings', orderIndex: 0, isActivatedFor: () => true, actions: (params) => { return { ...QuotationAdapter.actions(params), quote: async () => { return { expires: new Date(new Date().getTime() + 3600 * 1000), }; }, }; }, }; QuotationDirector.registerAdapter(ManualOffering);