{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ellkay/json-schema/ellkay-lkcloud-connect-contracts-charges-get-charge-status-result-schema.json",
  "title": "LKCloudConnect.Contracts.Charges.GetChargeStatusResult",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ellkay-lkcharges-api-openapi.yml#/components/schemas/LKCloudConnect.Contracts.Charges.GetChargeStatusResult",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Charge id"
    },
    "status": {
      "enum": [
        "NotFound",
        "Pending",
        "Success",
        "Error"
      ],
      "type": "string",
      "description": "Charge status"
    },
    "exceptionDetail": {
      "allOf": [
        {
          "$ref": "#/$defs/LKCloudConnect.Contracts.Charges.ChargeExceptionDetail"
        }
      ],
      "description": "Charge error detail"
    },
    "postedTransactionDetails": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/LKCloudConnect.Contracts.Charges.PostedTransactionDetail"
      },
      "description": "Charge transaction details"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "LKCloudConnect.Contracts.Charges.ChargeExceptionDetail": {
      "type": "object",
      "properties": {
        "message": {
          "type": "string",
          "description": "Exception message"
        },
        "errorCode": {
          "type": "string",
          "description": "Exception error code"
        }
      },
      "additionalProperties": false
    },
    "LKCloudConnect.Contracts.Charges.PostedTransactionDetail": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Transaction unique id"
        },
        "destinationId": {
          "type": "string",
          "description": "Transaction id in the target system"
        }
      },
      "additionalProperties": false
    }
  }
}