{
  "x-generator": "NSwag v14.7.1.0 (NJsonSchema v11.6.1.0 (Newtonsoft.Json v13.0.0.0))",
  "openapi": "3.0.0",
  "info": {
    "title": "Financing API",
    "contact": {
      "name": "Financing API",
      "url": "https://api.enablenow.nl",
      "email": ""
    },
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://api.enablenow.nl"
    }
  ],
  "paths": {
    "/Lenders": {
      "get": {
        "tags": [
          "Lenders"
        ],
        "summary": "Retrieve a list of lenders",
        "operationId": "Lenders_GetLenders",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Page number to retrieve (optional) (defaults to 1)",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            },
            "x-position": 1
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Number of results to retrieve per page (optional) (defaults to 50)",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            },
            "x-position": 2
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a list of lenders",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedApiResponseOfLender"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetailsMetadata"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/financing-applications": {
      "get": {
        "tags": [
          "FinancingApplications"
        ],
        "summary": "Retrieve a list of financing applications",
        "operationId": "FinancingApplications_GetFinancingApplications",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Page number to retrieve (optional) (defaults to 1)",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            },
            "x-position": 1
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Number of results to retrieve per page (optional) (defaults to 50)",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            },
            "x-position": 2
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a list of financing applications",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedApiResponseOfFinancingApplication"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetailsMetadata"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "FinancingApplications"
        ],
        "summary": "Create a new financing application",
        "operationId": "FinancingApplications_CreateFinancingApplication",
        "requestBody": {
          "x-name": "model",
          "description": "The financing application to create",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateFinancingApplication"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "Returns the created financing application",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FinancingApplication"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetailsMetadata"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/financing-applications/{id}": {
      "get": {
        "tags": [
          "FinancingApplications"
        ],
        "summary": "Retrieve a financing application by its identifier",
        "operationId": "FinancingApplications_GetFinancingApplicationById",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the financing application",
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the financing application",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FinancingApplication"
                }
              }
            }
          },
          "404": {
            "description": "No financing application was found with the given identifier",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/financing-applications/{id}/documents": {
      "get": {
        "tags": [
          "FinancingApplications"
        ],
        "summary": "Retrieve documents attached to a financing application",
        "operationId": "FinancingApplications_GetFinancingApplicationDocuments",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the financing application",
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the documents attached to the financing application",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FinancingDocument"
                  }
                }
              }
            }
          },
          "404": {
            "description": "No financing application was found with the given identifier",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "FinancingApplications"
        ],
        "summary": "Attach a document to a financing application",
        "operationId": "FinancingApplications_CreateFinancingApplicationDocument",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the financing application",
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "File": {
                    "type": "string",
                    "format": "binary",
                    "nullable": true
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the created document metadata",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FinancingDocument"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetailsMetadata"
                }
              }
            }
          },
          "404": {
            "description": "No financing application was found with the given identifier",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "The financing application cannot be changed from its current status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/financing-applications/{id}/documents/{documentId}": {
      "delete": {
        "tags": [
          "FinancingApplications"
        ],
        "summary": "Delete a document attached to a financing application",
        "operationId": "FinancingApplications_DeleteFinancingApplicationDocument",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the financing application",
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          },
          {
            "name": "documentId",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the document",
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 2
          }
        ],
        "responses": {
          "204": {
            "description": "The document was deleted"
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetailsMetadata"
                }
              }
            }
          },
          "404": {
            "description": "No financing application or document was found with the given identifier",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "The financing application cannot be changed from its current status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/financing-applications/{id}/submit": {
      "post": {
        "tags": [
          "FinancingApplications"
        ],
        "summary": "Submit a financing application for processing",
        "operationId": "FinancingApplications_Submit",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the financing application",
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the submitted financing application",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FinancingApplication"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetailsMetadata"
                }
              }
            }
          },
          "404": {
            "description": "No financing application was found with the given identifier",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "The financing application cannot be submitted from its current status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/financing-applications/{id}/approve": {
      "post": {
        "tags": [
          "FinancingApplications"
        ],
        "summary": "Approve a financing application",
        "operationId": "FinancingApplications_Approve",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the financing application",
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the approved financing application",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FinancingApplication"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetailsMetadata"
                }
              }
            }
          },
          "404": {
            "description": "No financing application was found with the given identifier",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "The financing application cannot be approved from its current status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/financing-applications/{id}/reject": {
      "post": {
        "tags": [
          "FinancingApplications"
        ],
        "summary": "Reject a financing application",
        "operationId": "FinancingApplications_Reject",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the financing application",
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the rejected financing application",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FinancingApplication"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetailsMetadata"
                }
              }
            }
          },
          "404": {
            "description": "No financing application was found with the given identifier",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "The financing application cannot be rejected from its current status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "PagedApiResponseOfLender": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ApiResponseOfIEnumerableOfLender"
          },
          {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "_pagination"
            ],
            "properties": {
              "_pagination": {
                "description": "The pagination metadata",
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/PaginationMetadata"
                  }
                ]
              }
            }
          }
        ]
      },
      "PaginationMetadata": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "page": {
            "type": "integer",
            "description": "The page number of the results.",
            "format": "int32"
          },
          "size": {
            "type": "integer",
            "description": "The number of results per page.",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "description": "The total number of results.",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "description": "The total number of pages.",
            "format": "int32"
          }
        }
      },
      "ApiResponseOfIEnumerableOfLender": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "array",
            "description": "The API result object",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/Lender"
            }
          }
        }
      },
      "Lender": {
        "type": "object",
        "description": "The Lender Entity",
        "additionalProperties": false,
        "properties": {
          "key": {
            "type": "string",
            "description": "The unique identifier of this lender."
          },
          "name": {
            "type": "string",
            "description": "The name of this lender."
          }
        }
      },
      "ValidationProblemDetailsMetadata": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "type": {
            "type": "string",
            "description": "A URI reference [RFC3986] that identifies the problem type. This specification\nencourages that, when dereferenced, it provide human-readable documentation for\nthe problem type (e.g., using HTML [W3C.REC-html5-20141028]). When this member\nis not present, its value is assumed to be \"about:blank\".",
            "nullable": true
          },
          "title": {
            "type": "string",
            "description": "A short, human-readable summary of the problem type.It SHOULD NOT change from\noccurrence to occurrence of the problem, except for purposes of localization(e.g.,\nusing proactive content negotiation; see[RFC7231], Section 3.4).",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "description": "The HTTP status code([RFC7231], Section 6) generated by the origin server for\nthis occurrence of the problem.",
            "format": "int32"
          },
          "traceId": {
            "type": "string",
            "description": "Unique Trace Id for this request",
            "nullable": true
          },
          "errors": {
            "type": "object",
            "description": "The errors associated with this request.",
            "nullable": true,
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        }
      },
      "PagedApiResponseOfFinancingApplication": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ApiResponseOfIEnumerableOfFinancingApplication"
          },
          {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "_pagination"
            ],
            "properties": {
              "_pagination": {
                "description": "The pagination metadata",
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/PaginationMetadata"
                  }
                ]
              }
            }
          }
        ]
      },
      "ApiResponseOfIEnumerableOfFinancingApplication": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "array",
            "description": "The API result object",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/FinancingApplication"
            }
          }
        }
      },
      "FinancingApplication": {
        "type": "object",
        "description": "Represents a financing application.",
        "additionalProperties": false,
        "required": [
          "id",
          "lenderKey",
          "status",
          "investmentAmount",
          "investmentCurrency",
          "purpose",
          "purposeDescription",
          "communication",
          "company",
          "applicant",
          "advisor",
          "accounts",
          "created"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier of this financing application.",
            "format": "guid"
          },
          "lenderKey": {
            "type": "string",
            "description": "The key of the lender selected for this application."
          },
          "status": {
            "description": "The current lifecycle status.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/FinancingStatus"
              }
            ]
          },
          "investmentAmount": {
            "type": "number",
            "description": "The amount requested for financing.",
            "format": "decimal"
          },
          "investmentCurrency": {
            "type": "string",
            "description": "The ISO 4217 currency of the investment amount."
          },
          "purpose": {
            "description": "The purpose of the requested financing.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/FinancingPurpose"
              }
            ]
          },
          "purposeDescription": {
            "type": "string",
            "description": "The additional description of the financing purpose."
          },
          "communication": {
            "description": "The parties with whom application communication is shared.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/FinancingCommunication"
              }
            ]
          },
          "company": {
            "description": "The company applying for financing.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/FinancingCompany"
              }
            ]
          },
          "applicant": {
            "description": "The applicant's contact information.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/FinancingApplicant"
              }
            ]
          },
          "advisor": {
            "description": "The advisor's contact information.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/FinancingAdvisor"
              }
            ]
          },
          "accounts": {
            "type": "array",
            "description": "The EnableNow accounts.",
            "items": {
              "$ref": "#/components/schemas/FinancingAccount"
            }
          },
          "created": {
            "type": "string",
            "description": "When this application was created.",
            "format": "date-time"
          },
          "lastModified": {
            "type": "string",
            "description": "When this application was last modified.",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "FinancingStatus": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "Draft",
          "Submitted",
          "Approved",
          "Rejected"
        ],
        "enum": [
          "Draft",
          "Submitted",
          "Approved",
          "Rejected"
        ]
      },
      "FinancingPurpose": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "WorkingCapital",
          "Stock",
          "Growth",
          "Vehicles",
          "Machines",
          "RealEstate",
          "Refinancing",
          "Factoring",
          "Tax",
          "Personnel",
          "Other"
        ],
        "enum": [
          "WorkingCapital",
          "Stock",
          "Growth",
          "Vehicles",
          "Machines",
          "RealEstate",
          "Refinancing",
          "Factoring",
          "Tax",
          "Personnel",
          "Other"
        ]
      },
      "FinancingCommunication": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "None",
          "AdvisorOnly",
          "ApplicantOnly",
          "Both"
        ],
        "enum": [
          "None",
          "AdvisorOnly",
          "ApplicantOnly",
          "Both"
        ]
      },
      "FinancingCompany": {
        "type": "object",
        "description": "Represents the applying company's details of a financing application.",
        "additionalProperties": false,
        "required": [
          "name",
          "description",
          "chamberOfCommerceNumber",
          "foundedDate",
          "annualRevenue",
          "address"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "The company name."
          },
          "description": {
            "type": "string",
            "description": "The company description."
          },
          "chamberOfCommerceNumber": {
            "type": "string",
            "description": "The company KVK-registration number."
          },
          "foundedDate": {
            "type": "string",
            "description": "The company founded date.",
            "format": "date"
          },
          "annualRevenue": {
            "type": "number",
            "description": "The company annual revenue.",
            "format": "decimal"
          },
          "annualProfit": {
            "type": "number",
            "description": "The company annual profit.",
            "format": "decimal",
            "nullable": true
          },
          "address": {
            "description": "The company address.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/FinancingAddress"
              }
            ]
          }
        }
      },
      "FinancingAddress": {
        "type": "object",
        "description": "Represents the address details of a financing application party.",
        "additionalProperties": false,
        "required": [
          "houseNumber",
          "street",
          "postalCode",
          "city",
          "country"
        ],
        "properties": {
          "houseNumber": {
            "type": "string",
            "description": "The house number."
          },
          "street": {
            "type": "string",
            "description": "The street name."
          },
          "postalCode": {
            "type": "string",
            "description": "The postalcode."
          },
          "city": {
            "type": "string",
            "description": "The city name."
          },
          "country": {
            "type": "string",
            "description": "The country name."
          }
        }
      },
      "FinancingApplicant": {
        "type": "object",
        "description": "Represents the applicant's contact and address details.",
        "additionalProperties": false,
        "required": [
          "firstName",
          "lastName",
          "phoneNumber",
          "emailAddress",
          "address"
        ],
        "properties": {
          "firstName": {
            "type": "string",
            "description": "The applicant's first name."
          },
          "lastName": {
            "type": "string",
            "description": "The applicant's last name."
          },
          "phoneNumber": {
            "type": "string",
            "description": "The applicant's phone number."
          },
          "emailAddress": {
            "type": "string",
            "description": "The applicant's email address."
          },
          "address": {
            "description": "The applicant's address.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/FinancingAddress"
              }
            ]
          }
        }
      },
      "FinancingAdvisor": {
        "type": "object",
        "description": "Represents the advisor's contact details.",
        "additionalProperties": false,
        "required": [
          "firstName",
          "lastName",
          "phoneNumber",
          "emailAddress"
        ],
        "properties": {
          "firstName": {
            "type": "string",
            "description": "The advisor's first name."
          },
          "lastName": {
            "type": "string",
            "description": "The advisor's last name."
          },
          "phoneNumber": {
            "type": "string",
            "description": "The advisor's phone number."
          },
          "emailAddress": {
            "type": "string",
            "description": "The advisor's email address."
          }
        }
      },
      "FinancingAccount": {
        "type": "object",
        "description": "Represents the EnableNow account for the financing.",
        "additionalProperties": false,
        "required": [
          "accountId",
          "type"
        ],
        "properties": {
          "accountId": {
            "type": "string",
            "description": "The EnableNow Account Identifier",
            "format": "guid"
          },
          "type": {
            "description": "The account type",
            "oneOf": [
              {
                "$ref": "#/components/schemas/FinancingAccountTypes"
              }
            ]
          }
        }
      },
      "FinancingAccountTypes": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "Retail",
          "Corporate"
        ],
        "enum": [
          "Retail",
          "Corporate"
        ]
      },
      "ProblemDetails": {
        "type": "object",
        "additionalProperties": {
          "nullable": true
        },
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          },
          "extensions": {
            "type": "object",
            "additionalProperties": {}
          }
        }
      },
      "FinancingDocument": {
        "type": "object",
        "description": "Represents metadata for a document attached to a financing application.",
        "additionalProperties": false,
        "required": [
          "id",
          "fileName",
          "contentType",
          "created"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier of this document.",
            "format": "guid"
          },
          "fileName": {
            "type": "string",
            "description": "The original file name of this document."
          },
          "contentType": {
            "type": "string",
            "description": "The MIME content type of this document."
          },
          "created": {
            "type": "string",
            "description": "When this document was created.",
            "format": "date-time"
          },
          "lastModified": {
            "type": "string",
            "description": "When this document was last modified.",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "CreateFinancingApplication": {
        "type": "object",
        "description": "Represents the data required to create a new financing application.",
        "additionalProperties": false,
        "required": [
          "lenderKey",
          "investmentAmount",
          "investmentCurrency",
          "purpose",
          "purposeDescription",
          "communication",
          "company",
          "applicant",
          "advisor",
          "accounts"
        ],
        "properties": {
          "lenderKey": {
            "type": "string",
            "description": "The key of the lender selected for this application."
          },
          "investmentAmount": {
            "type": "number",
            "description": "The amount requested for financing.",
            "format": "decimal"
          },
          "investmentCurrency": {
            "type": "string",
            "description": "The ISO 4217 currency of the investment amount."
          },
          "purpose": {
            "description": "The purpose of the requested financing.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/FinancingPurpose"
              }
            ]
          },
          "purposeDescription": {
            "type": "string",
            "description": "The additional description of the financing purpose."
          },
          "communication": {
            "description": "The parties with whom application communication is shared.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/FinancingCommunication"
              }
            ]
          },
          "company": {
            "description": "The company applying for financing.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/FinancingCompany"
              }
            ]
          },
          "applicant": {
            "description": "The applicant's contact information.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/FinancingApplicant"
              }
            ]
          },
          "advisor": {
            "description": "The advisor's contact information.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/FinancingAdvisor"
              }
            ]
          },
          "accounts": {
            "type": "array",
            "description": "The EnableNow accounts.",
            "items": {
              "$ref": "#/components/schemas/FinancingAccount"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "bearer": {
        "type": "oauth2",
        "name": "Authorization",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "/connect/token",
            "scopes": {
              "customer-api": "Customer API"
            }
          }
        }
      }
    }
  }
}