@danidoble/webserial-vending-commands
Version:
WebSerial Vending Commands
41 lines • 1.31 kB
TypeScript
type makeSaleOptions = {
amount?: number;
reference?: string | null;
};
type getVoucherOptions = {
folio?: number | string | null;
};
type refundOptions = {
amount?: number;
folio?: number | string | null;
auth?: number | string | null;
};
declare class PinPax {
static append: string;
static instance: PinPax;
build(data: string): Uint8Array<ArrayBufferLike>;
static connection(): Uint8Array;
static connect(): Uint8Array;
static custom(str: string): Uint8Array;
static readQR({ type }?: {
type?: string;
}): Uint8Array;
static forceHide(): Uint8Array;
static forceShow(): Uint8Array;
static makeSale({ amount, reference, }?: makeSaleOptions): Uint8Array;
static getVoucher({ folio }?: getVoucherOptions): Uint8Array;
static info(): Uint8Array;
static keepAlive(): Uint8Array;
static restartApp(): Uint8Array;
static getConfig(): Uint8Array;
static hideButtons(): Uint8Array;
static showButtons(): Uint8Array;
static demo(): Uint8Array;
static refund({ amount, folio, auth, }?: refundOptions): Uint8Array;
static exit(): Uint8Array;
static init(): Uint8Array;
static stop(): Uint8Array;
static verifyNetwork(): Uint8Array;
}
export { PinPax };
//# sourceMappingURL=pinpax.d.ts.map