Skip to content

Instantly share code, notes, and snippets.

@alessandrostein
Created March 14, 2019 15:25
Show Gist options
  • Save alessandrostein/b49d4ee1b73df363d47b86903ef9abff to your computer and use it in GitHub Desktop.
Save alessandrostein/b49d4ee1b73df363d47b86903ef9abff to your computer and use it in GitHub Desktop.
"Inventory" : {
"required" : [ "cost", "eventId", "quantity", "row", "seatType", "section", "splitType", "stockType" ],
"type" : "object",
"properties" : {
"inHandDate" : {
"type" : "string",
"description" : "The date that the tickets will be in hand",
"format" : "date"
},
"id" : {
"type" : "integer",
"description" : "Required for updates, ignored on inserts.",
"format" : "int64"
},
"accountId" : {
"type" : "integer",
"format" : "int64"
},
"eventId" : {
"type" : "integer",
"description" : "Required on inserts if event mapping is empty.",
"format" : "int64"
},
"quantity" : {
"minimum" : 1,
"type" : "integer",
"description" : "Number of tickets available, implied from tickets array if present.",
"format" : "int32"
},
"notes" : {
"maxLength" : 1000,
"minLength" : 0,
"type" : "string"
},
"section" : {
"maxLength" : 51,
"minLength" : 1,
"type" : "string"
},
"row" : {
"maxLength" : 44,
"minLength" : 1,
"type" : "string"
},
"secondRow" : {
"maxLength" : 44,
"minLength" : 1,
"type" : "string"
},
"lowSeat" : {
"minimum" : 1,
"type" : "integer",
"description" : "Required on inserts if tickets array is empty.",
"format" : "int32"
},
"highSeat" : {
"type" : "integer",
"description" : "Required on inserts if tickets array is empty.",
"format" : "int32"
},
"cost" : {
"minimum" : 0,
"type" : "number"
},
"faceValue" : {
"minimum" : 0,
"type" : "number"
},
"tickets" : {
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/Ticket"
}
},
"ticketIds" : {
"type" : "array",
"items" : {
"type" : "integer",
"format" : "int64"
}
},
"stockType" : {
"type" : "string",
"enum" : [ "HARD", "ELECTRONIC", "FLASH", "PAPERLESS", "PAPERLESS_CARD", "MOBILE_TRANSFER", "MOBILE_SCREENCAP" ]
},
"splitType" : {
"type" : "string",
"description" : "How the tickets may be split",
"enum" : [ "DEFAULT", "ANY", "CUSTOM", "NEVERLEAVEONE" ]
},
"customSplit" : {
"pattern" : "^\\d*(,\\d*)*$",
"type" : "string"
},
"listPrice" : {
"minimum" : 0.00,
"exclusiveMinimum" : false,
"type" : "number"
},
"expectedValue" : {
"minimum" : 0.00,
"exclusiveMinimum" : false,
"type" : "number"
},
"publicNotes" : {
"maxLength" : 1000,
"minLength" : 0,
"type" : "string"
},
"attributes" : {
"type" : "array",
"items" : {
"type" : "string"
}
},
"status" : {
"type" : "string",
"enum" : [ "AVAILABLE", "ON_HOLD", "DEPLETED" ]
},
"inHandDaysBeforeEvent" : {
"type" : "integer",
"format" : "int32"
},
"lastPriceUpdate" : {
"type" : "string",
"format" : "date-time"
},
"createdBy" : {
"type" : "string"
},
"lastUpdateBy" : {
"type" : "string"
},
"version" : {
"type" : "integer",
"format" : "int64"
},
"tags" : {
"type" : "string"
},
"seatType" : {
"type" : "string",
"description" : "Seat type.",
"enum" : [ "CONSECUTIVE", "ALTERNATING", "GA", "PIGGYBACK" ]
},
"eventMapping" : {
"$ref" : "#/components/schemas/EventMapping"
},
"mappingId" : {
"type" : "integer",
"description" : "Mapping id if this inventory was sent to mapping. Read-only.",
"format" : "int64"
},
"exchangePosId" : {
"type" : "integer",
"description" : "Id to provide to exchanges for listing delete and regeneration compatibility. This id is automatically regenerated when files or bar codes are edited or remove and section or rows get updated. Read-only.",
"format" : "int64"
},
"broadcast" : {
"type" : "boolean",
"description" : "Broadcast."
},
"zoneSeating" : {
"type" : "boolean",
"description" : "Zone seating"
},
"electronicTransfer" : {
"type" : "boolean"
},
"optOutAutoPrice" : {
"type" : "boolean"
},
"hideSeatNumbers" : {
"type" : "boolean",
"description" : "Hide seat numbers from exchanges."
},
"vsrOption" : {
"type" : "string",
"enum" : [ "ALL", "EVENT_INVENTORY", "OTHER", "NONE" ]
},
"replenishmentGroupId" : {
"type" : "integer",
"format" : "int64"
},
"replenishmentGroup" : {
"type" : "string"
},
"shownQuantity" : {
"minimum" : 1,
"type" : "integer",
"format" : "int32"
}
},
"description" : "The inventory item, if the line item is Inventory. Required for purchase type inserts, ignored otherwise."
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment