Class: PrintOption

timapi.PrintOption(recipient, printFormat, printWidth, printFlags)

Print options for a specific receipt type. Used for loginAsync.

Overview

Members-Overview

Methods-Overview

Constructor

new PrintOption(recipient, printFormat, printWidth, printFlags)

Create print option for a specific receipt type.
Parameters:
Name Type Description
recipient timapi.constants.Recipient Target of the option
printFormat timapi.constants.PrintFormat Print format
printWidth number Print width (default=40)
printFlags Array.<timapi.constants.PrintFlag> List of receipt formatting options

Member-List

printFlags (readonly) :Set.<timapi.constants.PrintFlag>

Specifies receipt formatting options

printFormat (readonly) :timapi.constants.PrintFormat

Specifies the print format

printWidth (readonly) :Number

Specifies the print width of the receipt
Default Value:
  • 40

recipient (readonly) :timapi.constants.Recipient

Target of the print option. Can be Merchant or Cardholder

Methods

toString() → {String}

Get string representation for debugging purpose.
Returns:
String representation

Type: String