{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/remote-com/json-schema/remote-com-scheduled-invoice-envelope-schema.json",
  "title": "ScheduledInvoiceEnvelope",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/remote-com-scheduled-invoices-api-openapi.yml#/components/schemas/ScheduledInvoiceEnvelope",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "scheduled_contractor_invoice": {
          "$ref": "#/$defs/ScheduledInvoice"
        }
      }
    }
  },
  "$defs": {
    "ScheduledInvoice": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "employment_id": {
          "type": "string",
          "format": "uuid"
        },
        "amount": {
          "type": "integer"
        },
        "currency": {
          "type": "string"
        },
        "recurrence": {
          "type": "string",
          "enum": [
            "one_time",
            "weekly",
            "biweekly",
            "monthly"
          ]
        },
        "next_run_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}