This article deals with the coupon object ("coupon") within the document object.
A complete description of the RetailForce DOM (Document Object Model), as well as a description of the individual elements, can be found in the downloads area of the RetailForce website (Object model documentation.pdf) in the respective version directory.
The "coupon" object is used to attach additional textual and graphic elements to a document. This function was primarily developed to control RT devices ("printers") from EPSON and enables additional lines of text, graphics, barcodes and QR codes to be added to the header and footer of printouts.
coupon-object
The following coupon object contains sample data.
"coupon": {
"header": [
{
"text": "string",
"barcodeType": "ean8",
"barcode": "string"
}
],
"graphic": "string",
"footer": [
{
"text": "string",
"barcodeType": "ean8",
"barcode": "string"
}
]
},
The coupon object contains the following information.
Information in "Type" column:
- M ... mandatory / requird
- M* ... mandatory / requird in certain countries or under certain conditions
- R ... recommended
- O... optional
Elements | Type | Description | ||
coupon | O | |||
header | O | Additional elements in the header area of a document | ||
text | O | Free text element | ||
barcodeType | O |
Definition of barcode type:
|
||
barcode | O | Barcode data | ||
graphic | O | base64-encoded image data as a string | ||
footer | O | Additional elements in the footer area of a document | ||
text | O | Free text element | ||
barcodeType | O |
Definition of barcode type:
|
||
barcode | O | Barcode data |
Comments
0 comments
Please sign in to leave a comment.