Skip to content

Instantly share code, notes, and snippets.

@alessandrostein
Created March 14, 2019 15:22
Show Gist options
  • Save alessandrostein/6a7c1fc86cda303ceaca3c113afd4c5b to your computer and use it in GitHub Desktop.
Save alessandrostein/6a7c1fc86cda303ceaca3c113afd4c5b to your computer and use it in GitHub Desktop.
"Ticket" : {
"required" : [ "cost", "faceValue", "row", "seatNumber", "section", "sellPrice", "status", "stockType" ],
"type" : "object",
"properties" : {
"id" : {
"type" : "integer",
"description" : "Unique identifier of the ticket.",
"format" : "int64"
},
"seatNumber" : {
"minimum" : 1,
"type" : "integer",
"description" : "Seat number, must be numeric and passed low to high.",
"format" : "int32"
},
"fileName" : {
"maxLength" : 45,
"minLength" : 0,
"type" : "string",
"description" : "If present, a pdf file exists for this ticket."
},
"barCode" : {
"maxLength" : 45,
"minLength" : 0,
"type" : "string",
"description" : "The barcode associated with this ticket."
},
"inventoryId" : {
"type" : "integer",
"format" : "int64"
},
"invoiceLineId" : {
"type" : "integer",
"format" : "int64"
},
"purchaseLineId" : {
"type" : "integer",
"format" : "int64"
},
"section" : {
"maxLength" : 51,
"minLength" : 1,
"type" : "string"
},
"row" : {
"maxLength" : 44,
"minLength" : 1,
"type" : "string"
},
"notes" : {
"maxLength" : 1000,
"minLength" : 0,
"type" : "string"
},
"cost" : {
"type" : "number"
},
"faceValue" : {
"minimum" : 0,
"exclusiveMinimum" : false,
"type" : "number"
},
"sellPrice" : {
"minimum" : 0,
"exclusiveMinimum" : false,
"type" : "number"
},
"stockType" : {
"type" : "string",
"enum" : [ "HARD", "ELECTRONIC", "FLASH", "PAPERLESS", "PAPERLESS_CARD", "MOBILE_TRANSFER", "MOBILE_SCREENCAP" ]
},
"eventId" : {
"type" : "integer",
"format" : "int64"
},
"accountId" : {
"type" : "integer",
"format" : "int64"
},
"status" : {
"type" : "string",
"enum" : [ "AVAILABLE", "SOLD", "CANCELLED" ]
},
"base64FileBytes" : {
"type" : "string",
"description" : "Base64 encoded byte array of the ticket file. Only used in write operations."
},
"disclosures" : {
"uniqueItems" : true,
"type" : "array",
"items" : {
"type" : "string"
}
},
"attributes" : {
"type" : "array",
"description" : "List of attributes for the ticket",
"items" : {
"type" : "string",
"description" : "List of attributes for the ticket"
}
},
"createdDate" : {
"type" : "string",
"format" : "date-time"
},
"createdBy" : {
"type" : "string"
},
"lastUpdate" : {
"type" : "string",
"format" : "date-time"
},
"lastUpdateBy" : {
"type" : "string"
}
},
"description" : "An individual ticket"
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment