removedInput schema / properties / receipt
Removed value: -{
- "anyOf": [
- {
- "properties": {
- "actor_class": {
- "description": "for which actor class (never a person)",
- "type": "string"
- },
- "decided_at": {
- "type": "string"
- },
- "decision_id": {
- "description": "the id the issuing door gave the decision",
- "pattern": "^dec_[a-f0-9]{16,40}$",
- "type": "string"
- },
- "issuing_door": {
- "type": "string"
- },
- "object": {
- "description": "what was cleared: a GTIN, an ISIN, a product id",
- "properties": {
- "id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "isin",
- "ticker",
- "lei",
- "cmr",
- "gtin",
- "product",
- "identifier"
- ],
- "type": "string"
- }
- },
- "required": [
- "type",
- "id"
- ],
- "type": "object"
- },
- "records_read": {
- "description": "the records read, each with its signature (or null where the record carries none)",
- "items": {
- "properties": {
- "as_of": {
- "type": [
- "string",
- "null"
- ]
- },
- "sha256": {
- "type": [
- "string",
- "null"
- ]
- },
- "signature": {
- "type": [
- "object",
- "null"
- ]
- },
- "url": {
- "type": "string"
- }
- },
- "required": [
- "url"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "rule": {
- "description": "the rule object and version the decision was made under",
- "properties": {
- "id": {
- "type": "string"
- },
- "version": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "version"
- ],
- "type": "object"
- },
- "signal": {
- "pattern": "^ACM-(000|200|300|403|404|451|500)$",
- "type": "string"
- },
- "signature": {
- "description": "the issuing door's detached JWS (EdDSA) over the receipt's canonical JSON (keys sorted, compact) without signature, signature_check, ledger, receipt_url, page",
- "properties": {
- "alg": {
- "type": "string"
- },
- "jws": {
- "type": "string"
- },
- "keyring": {
- "type": "string"
- },
- "kid": {
- "type": "string"
- }
- },
- "type": "object"
- }
- },
- "required": [
- "decision_id",
- "object",
- "actor_class",
- "rule",
- "records_read",
- "signal",
- "decided_at",
- "issuing_door",
- "signature"
- ],
- "type": "object"
- },
- {
- "properties": {
- "actor_class": {
- "type": "string"
- },
- "decided_at": {
- "type": "string"
- },
- "decision_id": {
- "description": "the hub gate decision id",
- "pattern": "^gate_[a-f0-9]{16,40}$",
- "type": "string"
- },
- "gtin": {
- "pattern": "^[0-9]{14}$",
- "type": "string"
- },
- "hub": {
- "enum": [
- "a2a-grocery",
- "a2a-cosmetics",
- "a2a-peptides"
- ],
- "type": "string"
- },
- "hub_signature": {
- "description": "the hub's detached JWS over the receipt (keys sorted, compact JSON), verified against the hub keyring",
- "properties": {
- "alg": {
- "type": "string"
- },
- "jws": {
- "type": "string"
- },
- "kid": {
- "type": "string"
- }
- },
- "type": [
- "object",
- "null"
- ]
- },
- "market": {
- "pattern": "^[A-Z]{2}$",
- "type": "string"
- },
- "reason_code": {
- "type": "string"
- },
- "record": {
- "description": "the gtinfetch answer the decision read: source_page, fetch_date, status, kid",
- "properties": {
- "fetch_date": {
- "type": [
- "string",
- "null"
- ]
- },
- "kid": {
- "type": [
- "string",
- "null"
- ]
- },
- "source_page": {
- "type": [
- "string",
- "null"
- ]
- },
- "status": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "type": [
- "object",
- "null"
- ]
- },
- "result": {
- "type": "string"
- },
- "rule_set": {
- "properties": {
- "id": {
- "type": "string"
- },
- "version": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "id"
- ],
- "type": "object"
- }
- },
- "required": [
- "decision_id",
- "hub",
- "gtin",
- "market",
- "actor_class",
- "result",
- "reason_code",
- "rule_set",
- "decided_at"
- ],
- "type": "object"
- }
- ],
- "description": "a door receipt (dec_ id, x-door-key) or a hub receipt (gate_ id, x-hub-key)",
- "type": "object"
-}