@unchainedshop/plugins
Version:
Official plugin collection for the Unchained Engine with payment, delivery, and pricing adapters
71 lines (70 loc) • 3.77 kB
TypeScript
import './countries/ch.ts';
import '../delivery/send-message.ts';
import '../delivery/stores.ts';
import '../payment/invoice-prepaid.ts';
import '../payment/paypal-checkout.ts';
import '../payment/stripe/index.ts';
import '../payment/postfinance-checkout/index.ts';
import '../payment/datatrans-v2/index.ts';
import '../payment/payrexx/index.ts';
import '../filters/strict-equal.ts';
import '../filters/local-search.ts';
import '../worker/twilio.ts';
import '../worker/bulkgate.ts';
import '../worker/budgetsms.ts';
import '../worker/push-notification.ts';
import '../worker/enrollment-order-generator.ts';
declare const modules: {
saferpayTransactions: {
configure: ({ db }: {
db: import("mongodb").Db;
}) => Promise<{
findTransactionById: (_id: import("bson").ObjectId) => Promise<import("mongodb").WithId<import("../payment/saferpay/db/SaferpayTransactionsCollection.ts").SaferpayTransaction> | null>;
createTransaction: (orderPaymentId: any) => Promise<import("bson").ObjectId>;
setToken: (_id: import("bson").ObjectId, token: string) => Promise<void>;
}>;
};
appleTransactions: {
configure: ({ db }: {
db: any;
}) => Promise<{
findTransactionById: (transactionIdentifier: string) => Promise<import("../payment/apple-iap/db/AppleTransactionsCollection.ts").AppleTransaction | null>;
createTransaction: (doc: Omit<import("../payment/apple-iap/db/AppleTransactionsCollection.ts").AppleTransaction, "_id" | "created"> & Pick<Partial<import("../payment/apple-iap/db/AppleTransactionsCollection.ts").AppleTransaction>, "_id" | "created">) => Promise<string>;
}>;
};
cryptopay: {
configure: ({ db }: {
db: any;
}) => {
getWalletAddress: (address: string, contract?: string) => Promise<import("../payment/cryptopay/db/CryptopayTransactions.ts").CryptopayTransaction | null>;
updateMostRecentBlock: (currencyCode: string, blockHeight: number) => Promise<void>;
updateWalletAddress: ({ address, blockHeight, amount, contract, currencyCode, decimals, }: {
address: string;
blockHeight: number;
amount: string | number;
contract?: string;
currencyCode: string;
decimals: number;
}) => Promise<import("../payment/cryptopay/db/CryptopayTransactions.ts").CryptopayTransaction>;
mapOrderPaymentToWalletAddress: ({ address, contract, currencyCode, orderPaymentId, }: {
address: string;
contract?: string;
currencyCode: string;
orderPaymentId: string;
}) => Promise<import("../payment/cryptopay/db/CryptopayTransactions.ts").CryptopayTransaction>;
getNextDerivationNumber: (currencyCode: string) => Promise<number>;
getWalletAddressesByOrderPaymentId: (orderPaymentId: string) => Promise<import("../payment/cryptopay/db/CryptopayTransactions.ts").CryptopayTransaction[]>;
};
};
gridfsFileUploads: {
configure: ({ db }: {
db: any;
}) => {
createWriteStream: (directoryName: any, fileId: any, fileName: any, uploadOptions: import("mongodb").GridFSBucketWriteStream["options"]) => Promise<import("mongodb").GridFSBucketWriteStream>;
getFileInfo: (directoryName: any, fileId: any) => Promise<import("mongodb").GridFSFile | null>;
createReadStream: (directoryName: any, fileId: any) => Promise<import("mongodb").GridFSBucketReadStream>;
removeFileFromBucket: (directoryName: any, fileId: any) => Promise<void>;
};
};
};
export default modules;