Printer
The printer node
Method | Type | Description |
---|---|---|
id | ID! |
|
pk | Int |
|
terminal | TerminalNode! |
|
name | String! |
|
connectionType | PrinterConnectionType! |
|
ipAddress | String |
|
macAddress | String |
|
port | Int! |
|
serialNumber | String |
|
registrationCode | String |
|
stripeReader | JSONString |
|
connectionTypeDisplay | String |
|
extraInfo | JSONString |
|
createdAt | DateTime! |
|
updatedAt | DateTime! |
Add a printer
mutation (
$terminalId: ID!
$name: String!
$connectionType: String! # WIFI, BLUETOOTH
$macAddress: String
$ipAddress: String
$port: Int!
$serialNumber: String
$registrationCode: String
){
createPrinter(
input: {
terminalId: $terminalId
name: $name
connectionType: $connectionType
macAddress: $macAddress
ipAddress: $ipAddress
port: $port
serialNumber: $serialNumber
registrationCode: $registrationCode
}
) {
errors
success
printer {
id
}
}
}
Update a printer
mutation (
$id: ID!
$terminalId: ID
$name: String
$connectionType: String # WIFI, BLUETOOTH
$macAddress: String
$ipAddress: String
$port: Int
$serialNumber: String
){
updatePrinter(
input: {
id: $id
terminalId: $terminalId
name: $name
connectionType: $connectionType
macAddress: $macAddress
ipAddress: $ipAddress
port: $port
serialNumber: $serialNumber
}
) {
errors
success
printer {
id
}
}
}