{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://weverlabs.com/schemas/provider-credit-funding-test-result.schema.json",
  "title": "Provider Credit Funding Test Result",
  "type": "object",
  "required": [
    "result_id",
    "activation_id",
    "credit_funding_state",
    "settlement_receipt_state",
    "run_eligibility",
    "next_action"
  ],
  "properties": {
    "result_id": {
      "type": "string"
    },
    "activation_id": {
      "type": "string"
    },
    "credit_funding_state": {
      "type": "string",
      "enum": [
        "funded",
        "ready",
        "blocked",
        "failed"
      ]
    },
    "settlement_receipt_state": {
      "type": "string",
      "enum": [
        "issued",
        "ready",
        "blocked",
        "failed"
      ]
    },
    "run_eligibility": {
      "type": "string"
    },
    "runtime_record_id": {
      "type": "string"
    },
    "credit_funding_event_id": {
      "type": "string"
    },
    "settlement_receipt_id": {
      "type": "string"
    },
    "next_action": {
      "type": "string"
    },
    "audit_event_id": {
      "type": "string"
    }
  }
}