{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/damdafa-com/json-schema/damdafa-com-purchase-request-schema.json",
  "title": "PurchaseRequest",
  "description": "Request schema for processing a purchase.",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/foto-damdafa-com-openapi.json#/components/schemas/PurchaseRequest",
  "properties": {
    "os": {
      "type": "string",
      "title": "Os",
      "description": "Operating system: 'ios' or 'android'"
    },
    "productId": {
      "type": "string",
      "title": "Productid",
      "description": "Product/subscription ID"
    },
    "purchaseToken": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Purchasetoken",
      "description": "Google Play purchase token"
    },
    "transactionId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Transactionid",
      "description": "Transaction ID"
    },
    "originalTransactionId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Originaltransactionid",
      "description": "Original transaction ID"
    },
    "promoCode": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Promocode",
      "description": "Optional promo code for bonuses"
    }
  },
  "type": "object",
  "required": [
    "os",
    "productId"
  ]
}