public class QRBill
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
QRBill.BillFormat
The output size of the QR bill
|
static class |
QRBill.GraphicsFormat
Graphics format of generated QR bill.
|
| Constructor and Description |
|---|
QRBill() |
| Modifier and Type | Method and Description |
|---|---|
static Bill |
decodeQrCodeText(java.lang.String text)
Decodes the text embedded in the QR code and fills it into a
Bill data structure. |
static byte[] |
generate(Bill bill,
QRBill.BillFormat billFormat,
QRBill.GraphicsFormat graphicsFormat)
Generates a QR bill.
|
static java.lang.String |
generateQrCodeText(Bill bill)
Generates the text that is embedded in the QR code.
|
static ValidationResult |
validate(Bill bill)
Validates the bill data.
|
public static ValidationResult validate(Bill bill)
The validation result contains the error and warning messages (if any).
bill - bill datapublic static byte[] generate(Bill bill, QRBill.BillFormat billFormat, QRBill.GraphicsFormat graphicsFormat)
If the bill data does not validate, a QRBillValidationError is thrown,
which contains the validation result.
bill - the bill databillFormat - the bill's output formatgraphicsFormat - the bill's output sizepublic static java.lang.String generateQrCodeText(Bill bill)
If the bill data does not validate, a QRBillValidationError is thrown,
which contains the validation result.
bill - the bill data