{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/google-wallet/refs/heads/main/json-schema/google-wallet.json", "title": "Google Wallet API Schema", "description": "JSON Schema for Google Wallet API pass class and object definitions.", "type": "object", "$defs": { "GenericClass": { "type": "object", "properties": { "id": { "type": "string", "description": "Unique identifier for the class." }, "classTemplateInfo": { "type": "object", "description": "Template information for the class." }, "imageModulesData": { "type": "array", "items": { "type": "object" } }, "textModulesData": { "type": "array", "items": { "type": "object" } }, "multipleDevicesAndHoldersAllowedStatus": { "type": "string" } } }, "GenericObject": { "type": "object", "properties": { "id": { "type": "string", "description": "Unique identifier for the object." }, "classId": { "type": "string", "description": "The class this object belongs to." }, "state": { "type": "string", "enum": ["ACTIVE", "COMPLETED", "EXPIRED", "INACTIVE"], "description": "State of the pass." }, "barcode": { "type": "object", "properties": { "type": { "type": "string" }, "value": { "type": "string" } } }, "header": { "type": "object", "properties": { "defaultValue": { "type": "object", "properties": { "language": { "type": "string" }, "value": { "type": "string" } } } } } } }, "EventTicketClass": { "type": "object", "properties": { "id": { "type": "string" }, "eventName": { "type": "object" }, "venue": { "type": "object" }, "dateTime": { "type": "object", "properties": { "start": { "type": "string" }, "end": { "type": "string" } } }, "issuerName": { "type": "string" } } }, "LoyaltyClass": { "type": "object", "properties": { "id": { "type": "string" }, "issuerName": { "type": "string" }, "programName": { "type": "string" }, "reviewStatus": { "type": "string" } } } } }