Unity · Schema

VirtualPurchaseResult

Game DevelopmentReal-Time 3DMultiplayerGame ServicesCloud Gaming

Properties

Name Type Description
id string
purchased object
costs object
View JSON Schema on GitHub

JSON Schema

unity-virtualpurchaseresult-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/VirtualPurchaseResult",
  "title": "VirtualPurchaseResult",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "purchased": {
      "type": "object",
      "properties": {
        "currencies": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/CurrencyBalance"
          }
        },
        "inventory": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/InventoryItem"
          }
        }
      }
    },
    "costs": {
      "type": "object",
      "properties": {
        "currencies": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/CurrencyBalance"
          }
        },
        "inventory": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/InventoryItem"
          }
        }
      }
    }
  }
}