{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/getmattered/json-schema/getmattered-native-store-consumable-verify-request-schema.json",
  "title": "NativeStoreConsumableVerifyRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/getmattered-billing-api-openapi.yml#/components/schemas/NativeStoreConsumableVerifyRequest",
  "oneOf": [
    {
      "$ref": "#/$defs/AppleNativeStoreConsumableVerifyRequest"
    },
    {
      "$ref": "#/$defs/GoogleNativeStoreConsumableVerifyRequest"
    }
  ],
  "$defs": {
    "AppleNativeStoreConsumableVerifyRequest": {
      "type": "object",
      "properties": {
        "provider": {
          "type": "string",
          "enum": [
            "apple_app_store"
          ]
        },
        "transactionId": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "provider",
        "transactionId"
      ],
      "additionalProperties": false
    },
    "GoogleNativeStoreConsumableVerifyRequest": {
      "type": "object",
      "properties": {
        "packageName": {
          "type": "string",
          "minLength": 1,
          "description": "Fixed application package name, authenticated against provider configuration"
        },
        "provider": {
          "type": "string",
          "enum": [
            "google_play"
          ]
        },
        "productId": {
          "type": "string",
          "minLength": 1
        },
        "purchaseToken": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "packageName",
        "provider",
        "productId",
        "purchaseToken"
      ],
      "additionalProperties": false
    }
  }
}