This message contains a reference number for a transaction.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field display_form . REQUIRED: Different display forms of the reference number. display_form can be only one of the following: |
|
printableString |
The string value of the reference number. Normally, this string should not contain any whitespace. When displaying this string on UI, Google may insert whitespace for better readability. There is no max length limitation. However, the user/cashier may need to type in this string. The shorter the better. Populate this field if we only need to show the reference number to the users. |
barcodeContents |
The contents to encode in a barcode. Google's UIs can represent the reference number in the Code 128 format or QR code format. Other barcode formats can be supported by request. Populate this field if we only need to show a barcode to the users. |
barcodeWithPrintableString |
Populate this field if we need to show both the reference number and a barcode to the users. |
BarcodeWithPrintableString
This message contains a printable string and a barcode contents for the reference number.
JSON representation |
---|
{ "printableString": string, "barcodeContents": string } |
Fields | |
---|---|
printableString |
REQUIRED The string value of the reference number. Normally, this string should not contain any whitespace. When displaying this string on UI, Google may insert whitespace for better readability. There is no max length limitation. However, the user/cashier may need to type in this string. The shorter the better. |
barcodeContents |
REQUIRED The contents to encode in a barcode. Google's UIs can represent the reference number in the Code 128 format or QR code format. Other barcode formats can be supported by request. |