custom-pos-plugin
v1.2.3
Published
customizable pos printer
Readme
custom-pos-plugin
customizable pos printer
Install
npm install custom-pos-plugin
npx cap syncAPI
echo(...)
echo(options: { value: string; }) => Promise<{ value: string; }>| Param | Type |
| ------------- | ------------------------------- |
| options | { value: string; } |
Returns: Promise<{ value: string; }>
testPrint()
testPrint() => Promise<{ value: string; }>Returns: Promise<{ value: string; }>
connectToDevice(...)
connectToDevice(options: { address: string; }) => Promise<{ value: string; success: string; error: string; }>| Param | Type |
| ------------- | --------------------------------- |
| options | { address: string; } |
Returns: Promise<{ value: string; success: string; error: string; }>
printTicket(...)
printTicket(options: { firstName: string; drawDate: string; datePrinted: string; qrcode: string; games: string; total: string; drawTime: string; agentCode: string; maxSize: number; betTime: string; betDate: string; area: string; gameType: string; }) => Promise<{ success: string; error: string; }>| Param | Type |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| options | { firstName: string; drawDate: string; datePrinted: string; qrcode: string; games: string; total: string; drawTime: string; agentCode: string; maxSize: number; betTime: string; betDate: string; area: string; gameType: string; } |
Returns: Promise<{ success: string; error: string; }>
connectBluetooth(...)
connectBluetooth(options: { macAddress: string; }) => Promise<void>| Param | Type |
| ------------- | ------------------------------------ |
| options | { macAddress: string; } |
