modify-qris
Version:
Modify QRIS Generator is a javascript based libraries that enabling flexible payments with customizable amounts for improved efficiency and user experience
30 lines (29 loc) • 1.08 kB
TypeScript
import { Config } from './config';
export declare class QRIS {
protected sourceType: string;
protected sourceValue: string;
protected merchantName: string;
protected merchantAddress: string;
protected merchantPostalCode: string;
protected amount: number | 0;
protected feeCategory: string;
protected fee: number | 0;
protected terminalLabel: string;
protected parsedString: string;
protected resultString: string;
constructor(config: Config);
setMerchantName(merchantName: string): void;
setMerchantAddress(merchantAddress: string): void;
setMerchantPostalCode(merchantPostalCode: string): void;
setAmount(amount: number): void;
setFeeCategory(feeCategory: string): void;
setFee(fee: number): void;
setTerminalLabelCategory(terminalLabel: string): void;
private sourceValueIsEmpty;
private generate;
private readQR;
generateQR(): Promise<string>;
generateQRBase64(): Promise<string>;
generateQRTerminal(): Promise<string>;
generateQRFile(output: string): Promise<string>;
}