{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/fis/main/json-schema/fis-update-bank-transaction-response-dto-schema.json",
  "title": "UpdateBankTransactionResponseDto",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fis-bankcontrollerv2-api-openapi.yml#/components/schemas/UpdateBankTransactionResponseDto",
  "type": "object",
  "properties": {
    "connectionUuid": {
      "type": "string",
      "readOnly": true
    },
    "businessName": {
      "type": "string",
      "readOnly": true
    },
    "serviceName": {
      "type": "string",
      "readOnly": true,
      "enum": [
        "freshbooks",
        "quickbooks",
        "quickbooksDesktop",
        "xero",
        "oracleNetsuite",
        "sageBusinessCloud",
        "sageIntacct",
        "dynamicsBusinessCentral",
        "dynamics365Finance",
        "wave",
        "myob",
        "zohoBooks",
        "byod"
      ]
    },
    "pushCommunicationId": {
      "type": "string",
      "readOnly": true
    },
    "requestedOn": {
      "type": "string",
      "readOnly": true,
      "format": "date-time"
    },
    "status": {
      "type": "string",
      "readOnly": true,
      "enum": [
        "success",
        "failed",
        "pending"
      ]
    },
    "data": {
      "readOnly": true,
      "allOf": [
        {
          "$ref": "#/$defs/UpdateBankTransaction"
        }
      ]
    }
  },
  "required": [
    "connectionUuid",
    "businessName",
    "serviceName",
    "pushCommunicationId",
    "requestedOn",
    "status",
    "data"
  ],
  "$defs": {
    "AccountRefDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        }
      },
      "required": [
        "id"
      ]
    },
    "BankAccountRefDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        }
      },
      "required": [
        "id"
      ]
    },
    "BaseTaxRateRef": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        }
      },
      "required": [
        "id"
      ]
    },
    "EntityRefDto": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "customer",
            "vendor"
          ]
        },
        "id": {
          "type": "string"
        }
      },
      "required": [
        "id"
      ]
    },
    "TrackingCategoryRefV2Dto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "class",
            "department",
            "location",
            "unknown"
          ]
        }
      }
    },
    "UpdateBankTransaction": {
      "type": "object",
      "properties": {
        "passThrough": {
          "type": "object",
          "additionalProperties": true
        },
        "currencyRate": {
          "type": "number"
        },
        "currency": {
          "type": "string"
        },
        "transactionType": {
          "type": "string",
          "enum": [
            "payment",
            "refund",
            "deposit",
            "expense",
            "transfer",
            "overPayment",
            "unknown",
            "salesReturn",
            "ownerDrawings",
            "salesWithoutInvoices",
            "interestIncome",
            "otherIncome",
            "expenseRefund",
            "depositFromOtherAccounts",
            "ownersContribution"
          ]
        },
        "transactionDirection": {
          "type": "string",
          "enum": [
            "outgoing",
            "incoming"
          ]
        },
        "bankAccountRef": {
          "$ref": "#/$defs/BankAccountRefDto"
        },
        "entityRef": {
          "$ref": "#/$defs/EntityRefDto"
        },
        "totalAmount": {
          "type": "number",
          "format": "float"
        },
        "lines": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/UpdateBankTransactionLine"
          }
        },
        "memo": {
          "type": "string",
          "maxLength": 4000
        },
        "postedDate": {
          "format": "date-time",
          "type": "string"
        }
      },
      "required": [
        "transactionType"
      ]
    },
    "UpdateBankTransactionLine": {
      "type": "object",
      "properties": {
        "quantity": {
          "type": "number",
          "format": "float"
        },
        "unitAmount": {
          "type": "number",
          "format": "float"
        },
        "id": {
          "type": "string"
        },
        "description": {
          "type": "string",
          "maxLength": 4000
        },
        "accountRef": {
          "$ref": "#/$defs/AccountRefDto"
        },
        "taxRateRef": {
          "$ref": "#/$defs/BaseTaxRateRef"
        },
        "trackingCategoryRefs": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TrackingCategoryRefV2Dto"
          }
        }
      }
    }
  }
}