UNPKG

@unchainedshop/plugins

Version:

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

24 lines (23 loc) 1.11 kB
import { mongodb } from '@unchainedshop/mongodb'; declare const configureSaferpayTransactionsModule: ({ db }: { db: mongodb.Db; }) => Promise<{ findTransactionById: (_id: mongodb.ObjectId) => Promise<mongodb.WithId<import("./db/SaferpayTransactionsCollection.ts").SaferpayTransaction> | null>; createTransaction: (orderPaymentId: any) => Promise<mongodb.BSON.ObjectId>; setToken: (_id: mongodb.ObjectId, token: string) => Promise<void>; }>; declare const _default: { saferpayTransactions: { configure: ({ db }: { db: mongodb.Db; }) => Promise<{ findTransactionById: (_id: mongodb.ObjectId) => Promise<mongodb.WithId<import("./db/SaferpayTransactionsCollection.ts").SaferpayTransaction> | null>; createTransaction: (orderPaymentId: any) => Promise<mongodb.BSON.ObjectId>; setToken: (_id: mongodb.ObjectId, token: string) => Promise<void>; }>; }; }; export default _default; export interface SaferpayTransactionsModule { saferpayTransactions: Awaited<ReturnType<typeof configureSaferpayTransactionsModule>>; }