{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://rctp.dev/schemas/checkout.schema.json",
  "title": "Business-signed checkout (claims)",
  "description": "Claims of the compact JWS (typ rctp-checkout+jwt) an accepted offer becomes (INV-6; binding 5.3). Single use; its Deal Terms are fixed.",
  "type": "object",
  "properties": {
    "iss": {
      "type": "string",
      "minLength": 1,
      "maxLength": 256
    },
    "offer_id": {
      "$ref": "common.schema.json#/$defs/OfferId"
    },
    "negotiation_id": {
      "$ref": "common.schema.json#/$defs/NegotiationId"
    },
    "listing_id": {
      "$ref": "common.schema.json#/$defs/ListingId"
    },
    "listing_hash": {
      "$ref": "common.schema.json#/$defs/Digest"
    },
    "deal_terms": {
      "$ref": "deal-terms.schema.json"
    },
    "buyer_jkt": {
      "$ref": "common.schema.json#/$defs/Thumbprint"
    },
    "nonce": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{22,}$"
    },
    "iat": {
      "type": "integer"
    },
    "exp": {
      "type": "integer"
    }
  },
  "additionalProperties": false,
  "required": [
    "iss",
    "offer_id",
    "negotiation_id",
    "listing_id",
    "listing_hash",
    "deal_terms",
    "buyer_jkt",
    "nonce",
    "iat",
    "exp"
  ]
}
