{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/fis/main/json-schema/fis-push-deposit-v1-response-dto-schema.json",
  "title": "PushDepositV1ResponseDto",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fis-deposit-api-openapi.yml#/components/schemas/PushDepositV1ResponseDto",
  "type": "object",
  "properties": {
    "pushCommunicationId": {
      "type": "string",
      "readOnly": true
    },
    "requestedOn": {
      "type": "string",
      "readOnly": true,
      "format": "date-time"
    },
    "status": {
      "type": "string",
      "readOnly": true,
      "enum": [
        "success",
        "failed",
        "pending"
      ]
    },
    "businessName": {
      "type": "string",
      "readOnly": true
    },
    "serviceName": {
      "type": "string",
      "readOnly": true,
      "enum": [
        "freshbooks",
        "quickbooks",
        "quickbooksDesktop",
        "xero",
        "oracleNetsuite",
        "sageBusinessCloud",
        "sageIntacct",
        "dynamicsBusinessCentral",
        "dynamics365Finance",
        "wave",
        "myob",
        "zohoBooks",
        "byod"
      ]
    },
    "data": {
      "readOnly": true,
      "allOf": [
        {
          "$ref": "#/$defs/PushDepositV1"
        }
      ]
    }
  },
  "required": [
    "pushCommunicationId",
    "requestedOn",
    "status",
    "businessName",
    "serviceName",
    "data"
  ],
  "$defs": {
    "PushDepositLineV1": {
      "type": "object",
      "properties": {
        "description": {
          "type": "string",
          "maxLength": 4000
        },
        "quantity": {
          "type": "number",
          "format": "float"
        },
        "unitAmount": {
          "type": "number",
          "format": "float"
        },
        "memo": {
          "type": "string",
          "maxLength": 4000,
          "deprecated": true
        },
        "accountRef": {
          "type": "string"
        },
        "taxRef": {
          "type": "string"
        },
        "subTotal": {
          "type": "number",
          "format": "float",
          "deprecated": true
        },
        "totalAmount": {
          "type": "number",
          "format": "float",
          "deprecated": true
        },
        "taxAmount": {
          "type": "number",
          "format": "float"
        }
      },
      "required": [
        "quantity",
        "unitAmount",
        "accountRef"
      ]
    },
    "PushDepositV1": {
      "type": "object",
      "properties": {
        "currencyRate": {
          "type": "number"
        },
        "memo": {
          "type": "string",
          "maxLength": 4000
        },
        "currency": {
          "type": "string"
        },
        "customerRef": {
          "type": "string"
        },
        "postedDate": {
          "type": "string",
          "format": "date"
        },
        "bankAccountRef": {
          "type": "string"
        },
        "lines": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PushDepositLineV1"
          }
        }
      },
      "required": [
        "postedDate",
        "bankAccountRef",
        "lines"
      ]
    }
  }
}