{
  "id": "type-h11",
  "revision": "a93614315f0dd688e1189ce6110fbfef09e654a017dbdcd82b2e9d5d57658ef5",
  "regions": [
    {
      "id": "server",
      "label": "Server",
      "parent": null
    },
    {
      "id": "external",
      "label": "External",
      "parent": null
    },
    {
      "id": "storage",
      "label": "Storage",
      "parent": null
    },
    {
      "id": "operations",
      "label": "Operations",
      "parent": null
    }
  ],
  "nodes": [
    {
      "id": "orders",
      "label": "Order event stream",
      "kind": "N24",
      "region": "server",
      "ports": [
        {
          "id": "events",
          "profile": "P04",
          "contract": "OrderPaymentKeyedEventV1",
          "polarity": "Neutral"
        }
      ]
    },
    {
      "id": "payments",
      "label": "Payment event stream",
      "kind": "N24",
      "region": "external",
      "ports": [
        {
          "id": "events",
          "profile": "P04",
          "contract": "OrderPaymentKeyedEventV1",
          "polarity": "Neutral"
        }
      ]
    },
    {
      "id": "join",
      "label": "Order-payment reconciliation",
      "kind": "N07",
      "region": "server",
      "ports": [
        {
          "id": "matched",
          "profile": "P04",
          "contract": "OrderPaymentKeyedEventV1",
          "polarity": "Require"
        },
        {
          "id": "commit",
          "profile": "P09",
          "contract": "ReconciliationWriteV1",
          "polarity": "Require"
        },
        {
          "id": "exception",
          "profile": "P04",
          "contract": "UnmatchedOrLatePaymentV1",
          "polarity": "Offer"
        }
      ]
    },
    {
      "id": "matched",
      "label": "Reconciled ledger",
      "kind": "N21",
      "region": "storage",
      "ports": [
        {
          "id": "write",
          "profile": "P09",
          "contract": "ReconciliationWriteV1",
          "polarity": "Offer"
        }
      ]
    },
    {
      "id": "exceptions",
      "label": "Unmatched payment review",
      "kind": "N20",
      "region": "operations",
      "ports": [
        {
          "id": "review",
          "profile": "P04",
          "contract": "UnmatchedOrLatePaymentV1",
          "polarity": "Require"
        }
      ]
    }
  ],
  "relations": [
    {
      "id": "join",
      "kind": "H11",
      "incidences": [
        {
          "node": "orders",
          "port": "events",
          "role": "left",
          "ordinal": 0
        },
        {
          "node": "payments",
          "port": "events",
          "role": "right",
          "ordinal": 0
        },
        {
          "node": "join",
          "port": "matched",
          "role": "result",
          "ordinal": 0
        }
      ]
    },
    {
      "id": "commit",
      "kind": "H05",
      "incidences": [
        {
          "node": "join",
          "port": "commit",
          "role": "caller",
          "ordinal": 0
        },
        {
          "node": "matched",
          "port": "write",
          "role": "callee",
          "ordinal": 0
        }
      ]
    },
    {
      "id": "late",
      "kind": "H04",
      "incidences": [
        {
          "node": "join",
          "port": "exception",
          "role": "publisher",
          "ordinal": 0
        },
        {
          "node": "exceptions",
          "port": "review",
          "role": "subscriber",
          "ordinal": 0
        }
      ]
    }
  ]
}
