{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lynx/json-schema/lynx-achactivity-response-doc-schema.json",
  "title": "ACHActivityResponseDoc",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lynx-transactions-api-openapi.yml#/components/schemas/ACHActivityResponseDoc",
  "type": "object",
  "properties": {
    "clientOrg": {
      "$ref": "#/$defs/ClientOrgDto"
    },
    "clientOrgAccount": {
      "$ref": "#/$defs/ClientOrgAccountIdDto"
    },
    "product": {
      "$ref": "#/$defs/ProductNameDTO"
    },
    "clientOrgTransactions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ACHActivityDoc"
      }
    }
  },
  "$defs": {
    "ACHActivityDoc": {
      "type": "object",
      "properties": {
        "clientOrgBankAccount": {
          "$ref": "#/$defs/ExternalBankAccountId"
        },
        "type": {
          "type": "string",
          "description": "Type of transaction"
        },
        "referenceIdentifier": {
          "type": "string",
          "description": "Transaction reference identifier"
        },
        "status": {
          "type": "string",
          "description": "Status of this transaction"
        },
        "shortMemo": {
          "type": "string",
          "description": "10 character memo"
        },
        "longMemo": {
          "type": "string",
          "description": "Long descriptions Max 100 characters"
        },
        "settlementStatus": {
          "type": "string",
          "description": "Settlement status of the ACH Push Request"
        },
        "amount": {
          "type": "number",
          "description": "The amount of the transaction"
        },
        "contributionDate": {
          "type": "string",
          "format": "date-time",
          "description": "Date of service that triggered this transaction"
        },
        "disbursementDate": {
          "type": "string",
          "format": "date-time",
          "description": "Date of service that triggered this transaction"
        }
      },
      "required": [
        "amount",
        "longMemo",
        "referenceIdentifier",
        "settlementStatus",
        "shortMemo",
        "status",
        "type"
      ]
    },
    "ClientOrgAccountIdDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "description": "UUID of the client organization's FBO account"
        }
      },
      "required": [
        "id"
      ]
    },
    "ClientOrgDto": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the client organization"
        }
      },
      "required": [
        "name"
      ]
    },
    "ExternalBankAccountId": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "description": "Unique identifier of the bank account"
        }
      },
      "required": [
        "id"
      ]
    },
    "ProductNameDTO": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the product"
        }
      },
      "required": [
        "name"
      ]
    }
  }
}