UNPKG

@exode-team/ofd-uz

Version:

Node.js module for interacting with OFD tax system

16 lines (15 loc) 451 B
/** * OFDClient * * @author: exode <hello@exode.ru> */ import { OFDResponse, QRPaymentInfo, Receipt } from './types'; export declare class OFDClient { private client; private privateKey; private certificate; constructor(baseURL: string, privateKeyPEM: string, certificatePEM: string); private signData; sendQRPayment(payment: QRPaymentInfo): Promise<OFDResponse>; sendReceipt(receipt: Receipt): Promise<OFDResponse>; }