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

54 lines 2.31 kB
import { CryptopayTransaction } from './db/CryptopayTransactions.js'; declare const configureCryptopayModule: ({ db }: { db: any; }) => { getWalletAddress: (addressId: string) => Promise<CryptopayTransaction>; updateMostRecentBlock: (currency: string, blockHeight: number) => Promise<void>; updateWalletAddress: ({ addressId, blockHeight, amount, contract, currency, decimals, }: { addressId: string; blockHeight: number; amount: string; contract: string; currency: string; decimals: number; }) => Promise<CryptopayTransaction>; mapOrderPaymentToWalletAddress: ({ addressId, contract, currency, orderPaymentId, }: { addressId: string; contract: string; currency: string; orderPaymentId: string; }) => Promise<CryptopayTransaction>; getNextDerivationNumber: (currency: string) => Promise<number>; getWalletAddressesByOrderPaymentId: (orderPaymentId: string) => Promise<CryptopayTransaction[]>; }; declare const _default: { cryptopay: { configure: ({ db }: { db: any; }) => { getWalletAddress: (addressId: string) => Promise<CryptopayTransaction>; updateMostRecentBlock: (currency: string, blockHeight: number) => Promise<void>; updateWalletAddress: ({ addressId, blockHeight, amount, contract, currency, decimals, }: { addressId: string; blockHeight: number; amount: string; contract: string; currency: string; decimals: number; }) => Promise<CryptopayTransaction>; mapOrderPaymentToWalletAddress: ({ addressId, contract, currency, orderPaymentId, }: { addressId: string; contract: string; currency: string; orderPaymentId: string; }) => Promise<CryptopayTransaction>; getNextDerivationNumber: (currency: string) => Promise<number>; getWalletAddressesByOrderPaymentId: (orderPaymentId: string) => Promise<CryptopayTransaction[]>; }; }; }; export default _default; export type CryptopayModule = { cryptopay: ReturnType<typeof configureCryptopayModule>; }; //# sourceMappingURL=module.d.ts.map