{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lynx/json-schema/lynx-add-receipt-response-schema.json",
  "title": "AddReceiptResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lynx-member-expense-controller-api-openapi.yml#/components/schemas/AddReceiptResponse",
  "type": "object",
  "properties": {
    "clientOrg": {
      "$ref": "#/$defs/ClientOrgDto"
    },
    "member": {
      "$ref": "#/$defs/BaseMember"
    },
    "expenseNumber": {
      "type": "string"
    },
    "receipts": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ReceiptData"
      }
    }
  },
  "required": [
    "clientOrg",
    "expenseNumber",
    "member",
    "receipts"
  ],
  "$defs": {
    "BaseMember": {
      "type": "object",
      "properties": {
        "clientMemberId": {
          "type": "string",
          "description": "Unique client-side identifier for the member"
        }
      },
      "required": [
        "clientMemberId"
      ]
    },
    "ClientOrgDto": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the client organization"
        }
      },
      "required": [
        "name"
      ]
    },
    "ReceiptData": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "description": "Id"
        },
        "s3Path": {
          "type": "string",
          "description": "s3 path to the file"
        }
      },
      "required": [
        "id",
        "s3Path"
      ]
    }
  }
}