{
  "name": "GetInvoice",
  "plane": "control",
  "terraformEligible": false,
  "subProduct": "runner",
  "protocol": {
    "kind": "cloudJson",
    "target": "CloudDeploy.Runner.GetInvoice",
    "service": "deploy"
  },
  "requestBody": "typed",
  "responseBody": "typed",
  "requestSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "additionalProperties": false,
    "properties": {
      "period": {
        "type": "string"
      }
    },
    "required": [
      "period"
    ],
    "title": "GetInvoiceRequest",
    "type": "object"
  },
  "responseSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "definitions": {
      "InvoiceLine": {
        "properties": {
          "amountUsdCents": {
            "format": "uint64",
            "minimum": 0.0,
            "type": "integer"
          },
          "kind": {
            "type": "string"
          }
        },
        "required": [
          "amountUsdCents",
          "kind"
        ],
        "type": "object"
      }
    },
    "properties": {
      "lines": {
        "items": {
          "$ref": "#/definitions/InvoiceLine"
        },
        "type": "array"
      },
      "period": {
        "type": "string"
      },
      "sealed": {
        "type": "boolean"
      },
      "totalUsdCents": {
        "format": "uint64",
        "minimum": 0.0,
        "type": "integer"
      }
    },
    "required": [
      "lines",
      "period",
      "sealed",
      "totalUsdCents"
    ],
    "title": "InvoiceResponse",
    "type": "object"
  }
}
