{
  "key": "deposit_invoice",
  "title": "Pay the deposit invoice",
  "variables": {},
  "start": "send_invoice",
  "steps": [
    {
      "id": "send_invoice",
      "owner": "team",
      "instruction": "Send the deposit invoice so work can begin.",
      "primary": {
        "label": "Invoice sent",
        "to": "pay"
      }
    },
    {
      "id": "pay",
      "owner": "client",
      "instruction": "The deposit lets us start right away. Move this along as the invoice arrives and clears — we can see where it is up to.",
      "primary": {
        "label": "Paid",
        "to": "confirm"
      },
      "alternatives": [
        {
          "key": "trouble",
          "label": "Having trouble",
          "kind": "flag",
          "tone": "attention"
        }
      ],
      "states": [
        "Waiting on invoice",
        "Invoice received",
        "Paid"
      ]
    },
    {
      "id": "confirm",
      "owner": "team",
      "instruction": "Confirm the payment landed.",
      "primary": {
        "label": "Payment received",
        "to": "$done"
      },
      "alternatives": [
        {
          "key": "not_seen",
          "label": "Not seen yet — back to the client",
          "kind": "jump",
          "to": "pay"
        }
      ]
    }
  ]
}
