{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/august-health/json-schema/august-health-com-august-api-integrations-models-statements-v1-statement-search-result-schema.json",
  "title": "com.august.api.integrations.models.statements.v1.StatementSearchResult",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/august-health-billing-v1-api-openapi.yml#/components/schemas/com.august.api.integrations.models.statements.v1.StatementSearchResult",
  "properties": {
    "billingPeriod": {
      "description": "Statement billing period in YYYY-MM format (derived from endDate)",
      "type": "string"
    },
    "dueDate": {
      "format": "date",
      "type": "string"
    },
    "endDate": {
      "format": "date",
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "issueDate": {
      "format": "date",
      "type": "string"
    },
    "startDate": {
      "format": "date",
      "type": "string"
    },
    "status": {
      "$ref": "#/$defs/com.august.api.integrations.models.statements.v1.StatementStatus",
      "description": "Statement status (DUE or PAID)"
    },
    "totalAmountCents": {
      "description": "Total amount billed on the statement in cents",
      "format": "int32",
      "type": "integer"
    }
  },
  "required": [
    "id",
    "issueDate",
    "dueDate",
    "startDate",
    "endDate",
    "billingPeriod",
    "status",
    "totalAmountCents"
  ],
  "$defs": {
    "com.august.api.integrations.models.statements.v1.StatementStatus": {
      "enum": [
        "DUE",
        "PAID"
      ],
      "type": "string"
    }
  }
}