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

27 lines (20 loc) 582 B
import { IQuotationAdapter, QuotationDirector, QuotationAdapter } from '@unchainedshop/core'; const ManualOffering: IQuotationAdapter = { ...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);