{
  "openapi": "3.0.4",
  "info": {
    "title": "EOS.Api",
    "version": "1.0"
  },
  "paths": {
    "/api/v1/Account/Login": {
      "post": {
        "tags": [
          "Account"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/Account/Login2Fa": {
      "post": {
        "tags": [
          "Account"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Login2FaRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Login2FaRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Login2FaRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/Account/Refresh": {
      "post": {
        "tags": [
          "Account"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiRefreshRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiRefreshRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ApiRefreshRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/Account/Logout": {
      "post": {
        "tags": [
          "Account"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiLogoutRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiLogoutRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ApiLogoutRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/Account/Session": {
      "get": {
        "tags": [
          "Account"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/Account/TwoFactorConfirm": {
      "post": {
        "tags": [
          "Account"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TwoFactorConfirmRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TwoFactorConfirmRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TwoFactorConfirmRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/Account/ChangeUserPassword/changepassword": {
      "post": {
        "tags": [
          "Account"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangePasswordRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangePasswordRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ChangePasswordRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/Account/ForgotPassword": {
      "post": {
        "tags": [
          "Account"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ForgotPasswordRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ForgotPasswordRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ForgotPasswordRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/Account/ResetPassword": {
      "post": {
        "tags": [
          "Account"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResetPasswordRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ResetPasswordRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ResetPasswordRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/Account/CompleteRegistration": {
      "post": {
        "tags": [
          "Account"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompleteRegistrationRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CompleteRegistrationRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CompleteRegistrationRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/Account/ValidateResetLink": {
      "post": {
        "tags": [
          "Account"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateEmailedLinkRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateEmailedLinkRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateEmailedLinkRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/Account/ValidateRegistrationLink": {
      "post": {
        "tags": [
          "Account"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateEmailedLinkRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateEmailedLinkRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateEmailedLinkRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/Account/TwoFactorSetup": {
      "post": {
        "tags": [
          "Account"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TwoFactorSetupResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TwoFactorSetupResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TwoFactorSetupResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Account/TwoFactorDisable": {
      "post": {
        "tags": [
          "Account"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TwoFactorDisableRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TwoFactorDisableRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TwoFactorDisableRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/address/postcode/{postcode}": {
      "get": {
        "tags": [
          "Address"
        ],
        "parameters": [
          {
            "name": "postcode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/address/search": {
      "get": {
        "tags": [
          "Address"
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "postcode",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/Admin/doctors": {
      "get": {
        "tags": [
          "Admin"
        ],
        "parameters": [
          {
            "name": "queryinput",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AdminAllDoctorDetailsDtoPagedResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminAllDoctorDetailsDtoPagedResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminAllDoctorDetailsDtoPagedResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Admin/Customers": {
      "get": {
        "tags": [
          "Admin"
        ],
        "parameters": [
          {
            "name": "queryinput",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AdminAllCustomerDetailsDtoPagedResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminAllCustomerDetailsDtoPagedResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminAllCustomerDetailsDtoPagedResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Admin/Users/{userId}/Customers": {
      "get": {
        "tags": [
          "Admin"
        ],
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AdminAllCustomerDetailsDtoPagedResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminAllCustomerDetailsDtoPagedResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminAllCustomerDetailsDtoPagedResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Admin/banks": {
      "get": {
        "tags": [
          "Admin"
        ],
        "parameters": [
          {
            "name": "queryinput",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AdminAllBankDetailsDtoPagedResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminAllBankDetailsDtoPagedResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminAllBankDetailsDtoPagedResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Admin/benefits": {
      "get": {
        "tags": [
          "Admin"
        ],
        "parameters": [
          {
            "name": "queryinput",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AdminAllBenefitDetailsDtoPagedResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminAllBenefitDetailsDtoPagedResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminAllBenefitDetailsDtoPagedResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Admin/brokers": {
      "get": {
        "tags": [
          "Admin"
        ],
        "parameters": [
          {
            "name": "queryinput",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AdminAllBrokerDetailsDtoPagedResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminAllBrokerDetailsDtoPagedResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminAllBrokerDetailsDtoPagedResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Admin/brokers2": {
      "get": {
        "tags": [
          "Admin"
        ],
        "parameters": [
          {
            "name": "queryinput",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            }
          },
          {
            "name": "brokerEntityType",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/BrokerEntityType"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BrokerListDetailsDtoPagedResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrokerListDetailsDtoPagedResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrokerListDetailsDtoPagedResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Admin/Users/{userId}/Brokers": {
      "get": {
        "tags": [
          "Admin"
        ],
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BrokerListDetailsDtoPagedResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrokerListDetailsDtoPagedResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrokerListDetailsDtoPagedResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Admin/policies": {
      "get": {
        "tags": [
          "Admin"
        ],
        "parameters": [
          {
            "name": "queryinput",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AdminAllPolicesDetailsDtoPagedResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminAllPolicesDetailsDtoPagedResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminAllPolicesDetailsDtoPagedResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Admin/policies/counts": {
      "get": {
        "tags": [
          "Admin"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AdminPolicyCountsDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminPolicyCountsDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminPolicyCountsDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Admin/policies/details": {
      "get": {
        "tags": [
          "Admin"
        ],
        "parameters": [
          {
            "name": "queryinput",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            }
          },
          {
            "name": "customerId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/FullPolicyDetailsDisplayPagedResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FullPolicyDetailsDisplayPagedResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/FullPolicyDetailsDisplayPagedResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Admin/uws": {
      "get": {
        "tags": [
          "Admin"
        ],
        "parameters": [
          {
            "name": "queryinput",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AdminAllUWDetailsDtoPagedResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminAllUWDetailsDtoPagedResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminAllUWDetailsDtoPagedResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Admin/policypaymentmandates": {
      "get": {
        "tags": [
          "Admin"
        ],
        "parameters": [
          {
            "name": "queryinput",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AdminAllPolicyPaymentMandateDtoPagedResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminAllPolicyPaymentMandateDtoPagedResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminAllPolicyPaymentMandateDtoPagedResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Admin/diaryeventtypes": {
      "get": {
        "tags": [
          "Admin"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DiaryEventTypeDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DiaryEventTypeDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DiaryEventTypeDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ai/admin/usage": {
      "get": {
        "tags": [
          "AiAdmin"
        ],
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AiUsageSummaryDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiUsageSummaryDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiUsageSummaryDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ai/admin/conversations": {
      "get": {
        "tags": [
          "AiAdmin"
        ],
        "parameters": [
          {
            "name": "user",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AiConversationPageDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiConversationPageDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiConversationPageDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ai/admin/conversations/{id}": {
      "get": {
        "tags": [
          "AiAdmin"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AiConversationDetailDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiConversationDetailDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiConversationDetailDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ai/admin/abilities": {
      "get": {
        "tags": [
          "AiAdmin"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AiAbilityDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AiAbilityDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AiAbilityDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ai/admin/abilities/{name}": {
      "put": {
        "tags": [
          "AiAdmin"
        ],
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetAiAbilityRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SetAiAbilityRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SetAiAbilityRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/ai/assistant/status": {
      "get": {
        "tags": [
          "AiAssistant"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AssistantStatusResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssistantStatusResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssistantStatusResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ai/assistant/chat": {
      "post": {
        "tags": [
          "AiAssistant"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AssistantChatRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AssistantChatRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AssistantChatRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AssistantChatResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssistantChatResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssistantChatResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/journeys/applications": {
      "get": {
        "tags": [
          "ApplicationJourneys"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ApplicationJourneySummaryResponse"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ApplicationJourneySummaryResponse"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ApplicationJourneySummaryResponse"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/journeys/applications/commission-options": {
      "get": {
        "tags": [
          "ApplicationJourneys"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CommissionOptionsResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommissionOptionsResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommissionOptionsResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/journeys/applications/start": {
      "post": {
        "tags": [
          "ApplicationJourneys"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StartApplicationJourneyRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/StartApplicationJourneyRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/StartApplicationJourneyRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/StartApplicationJourneyResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StartApplicationJourneyResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/StartApplicationJourneyResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/journeys/applications/buy-now-load": {
      "post": {
        "tags": [
          "ApplicationJourneys"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BuyNowLoadRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BuyNowLoadRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BuyNowLoadRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BuyNowLoadResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BuyNowLoadResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BuyNowLoadResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/journeys/applications/{applicationJourneyId}": {
      "get": {
        "tags": [
          "ApplicationJourneys"
        ],
        "parameters": [
          {
            "name": "applicationJourneyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicationJourneyResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicationJourneyResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicationJourneyResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/journeys/applications/{applicationJourneyId}/nb-submit": {
      "post": {
        "tags": [
          "ApplicationJourneys"
        ],
        "parameters": [
          {
            "name": "applicationJourneyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NbSubmitRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/NbSubmitRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/NbSubmitRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NbSubmitResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NbSubmitResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NbSubmitResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/journeys/applications/{applicationJourneyId}/medical-screening": {
      "post": {
        "tags": [
          "ApplicationJourneys"
        ],
        "parameters": [
          {
            "name": "applicationJourneyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveReferralScreeningRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveReferralScreeningRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SaveReferralScreeningRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SaveJourneyStepResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SaveJourneyStepResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SaveJourneyStepResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/journeys/applications/{applicationJourneyId}/products/start-dates": {
      "post": {
        "tags": [
          "ApplicationJourneys"
        ],
        "parameters": [
          {
            "name": "applicationJourneyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveProductStartDatesRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveProductStartDatesRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SaveProductStartDatesRequest"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          }
        }
      }
    },
    "/api/v1/journeys/applications/{applicationJourneyId}/client-details": {
      "post": {
        "tags": [
          "ApplicationJourneys"
        ],
        "parameters": [
          {
            "name": "applicationJourneyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveClientDetailsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveClientDetailsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SaveClientDetailsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/journeys/applications/{applicationJourneyId}/product-details": {
      "post": {
        "tags": [
          "ApplicationJourneys"
        ],
        "parameters": [
          {
            "name": "applicationJourneyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveProductDetailsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveProductDetailsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SaveProductDetailsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/journeys/applications/{applicationJourneyId}/product-details/draft": {
      "post": {
        "tags": [
          "ApplicationJourneys"
        ],
        "parameters": [
          {
            "name": "applicationJourneyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveProductDetailsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveProductDetailsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SaveProductDetailsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/journeys/applications/{applicationJourneyId}/medical-history": {
      "post": {
        "tags": [
          "ApplicationJourneys"
        ],
        "parameters": [
          {
            "name": "applicationJourneyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveMedicalHistoryRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveMedicalHistoryRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SaveMedicalHistoryRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/journeys/applications/{applicationJourneyId}/eamra-consent": {
      "post": {
        "tags": [
          "ApplicationJourneys"
        ],
        "parameters": [
          {
            "name": "applicationJourneyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveEamraConsentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveEamraConsentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SaveEamraConsentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/journeys/applications/{applicationJourneyId}/doctor-details": {
      "post": {
        "tags": [
          "ApplicationJourneys"
        ],
        "parameters": [
          {
            "name": "applicationJourneyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveDoctorDetailsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveDoctorDetailsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SaveDoctorDetailsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/journeys/applications/{applicationJourneyId}/decision/quote": {
      "post": {
        "tags": [
          "ApplicationJourneys"
        ],
        "parameters": [
          {
            "name": "applicationJourneyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DecisionQuoteResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DecisionQuoteResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DecisionQuoteResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/journeys/applications/{applicationJourneyId}/decision": {
      "post": {
        "tags": [
          "ApplicationJourneys"
        ],
        "parameters": [
          {
            "name": "applicationJourneyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveDecisionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveDecisionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SaveDecisionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/journeys/applications/{applicationJourneyId}/products/invalidate-quotes": {
      "post": {
        "tags": [
          "ApplicationJourneys"
        ],
        "parameters": [
          {
            "name": "applicationJourneyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          }
        }
      }
    },
    "/api/v1/journeys/applications/{applicationJourneyId}/return-to/{step}": {
      "post": {
        "tags": [
          "ApplicationJourneys"
        ],
        "parameters": [
          {
            "name": "applicationJourneyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "step",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/journeys/applications/{applicationJourneyId}/checkout": {
      "post": {
        "tags": [
          "ApplicationJourneys"
        ],
        "parameters": [
          {
            "name": "applicationJourneyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/journeys/applications/{applicationJourneyId}/products/requote": {
      "post": {
        "tags": [
          "ApplicationJourneys"
        ],
        "parameters": [
          {
            "name": "applicationJourneyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          }
        }
      }
    },
    "/api/v1/journeys/applications/{applicationJourneyId}/products/{productSelectionId}/requote": {
      "post": {
        "tags": [
          "ApplicationJourneys"
        ],
        "parameters": [
          {
            "name": "applicationJourneyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "productSelectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          }
        }
      }
    },
    "/api/v1/journeys/applications/{applicationJourneyId}/products/{productSelectionId}/basket": {
      "post": {
        "tags": [
          "ApplicationJourneys"
        ],
        "parameters": [
          {
            "name": "applicationJourneyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "productSelectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "tier",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          }
        }
      }
    },
    "/api/v1/journeys/applications/bank-details/check": {
      "get": {
        "tags": [
          "ApplicationJourneys"
        ],
        "parameters": [
          {
            "name": "sortCode",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "accountNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/journeys/applications/{applicationJourneyId}/bank-details": {
      "post": {
        "tags": [
          "ApplicationJourneys"
        ],
        "parameters": [
          {
            "name": "applicationJourneyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveBankDetailsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveBankDetailsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SaveBankDetailsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/journeys/applications/{applicationJourneyId}/client-declaration": {
      "post": {
        "tags": [
          "ApplicationJourneys"
        ],
        "parameters": [
          {
            "name": "applicationJourneyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveClientDeclarationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveClientDeclarationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SaveClientDeclarationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/bacs/returns-coverage": {
      "get": {
        "tags": [
          "BacsReturnsCoverage"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ReturnsCoverageDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReturnsCoverageDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReturnsCoverageDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/bacs/returns-coverage/confirmations": {
      "post": {
        "tags": [
          "BacsReturnsCoverage"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecordReturnsDayConfirmationDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RecordReturnsDayConfirmationDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RecordReturnsDayConfirmationDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ReturnsDayConfirmationResultDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReturnsDayConfirmationResultDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReturnsDayConfirmationResultDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/bacs/returns-coverage/confirmations/{id}/approve": {
      "post": {
        "tags": [
          "BacsReturnsCoverage"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ReturnsDayConfirmationResultDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReturnsDayConfirmationResultDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReturnsDayConfirmationResultDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/bacs/returns-coverage/confirmations/{id}/reject": {
      "post": {
        "tags": [
          "BacsReturnsCoverage"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RejectReturnsDayConfirmationDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RejectReturnsDayConfirmationDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RejectReturnsDayConfirmationDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ReturnsDayConfirmationResultDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReturnsDayConfirmationResultDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReturnsDayConfirmationResultDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/simulation/bacs/files": {
      "get": {
        "tags": [
          "BacsSimulator"
        ],
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 30
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SubmittedPaymentFileDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SubmittedPaymentFileDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SubmittedPaymentFileDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/simulation/bacs/codes": {
      "get": {
        "tags": [
          "BacsSimulator"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BacsReasonCodesDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BacsReasonCodesDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BacsReasonCodesDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/simulation/bacs/files/{fileId}": {
      "get": {
        "tags": [
          "BacsSimulator"
        ],
        "parameters": [
          {
            "name": "fileId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SubmittedPaymentFileDetailDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmittedPaymentFileDetailDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmittedPaymentFileDetailDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/simulation/bacs/arudd": {
      "post": {
        "tags": [
          "BacsSimulator"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SimulateReturnsRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SimulateReturnsRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SimulateReturnsRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SimulatedReportDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SimulatedReportDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SimulatedReportDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/simulation/bacs/arudd/percent": {
      "post": {
        "tags": [
          "BacsSimulator"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SimulatePercentReturnsRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SimulatePercentReturnsRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SimulatePercentReturnsRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SimulatedReportDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SimulatedReportDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SimulatedReportDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/simulation/bacs/clean-day": {
      "post": {
        "tags": [
          "BacsSimulator"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SimulateCleanDayRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SimulateCleanDayRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SimulateCleanDayRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SimulatedReportDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SimulatedReportDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SimulatedReportDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/simulation/bacs/auddis": {
      "post": {
        "tags": [
          "BacsSimulator"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SimulateRejectionsRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SimulateRejectionsRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SimulateRejectionsRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SimulatedReportDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SimulatedReportDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SimulatedReportDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/simulation/bacs/addacs": {
      "post": {
        "tags": [
          "BacsSimulator"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SimulateMandateEventsRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SimulateMandateEventsRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SimulateMandateEventsRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SimulatedReportDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SimulatedReportDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SimulatedReportDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/bank/{BankDetailsId}": {
      "get": {
        "tags": [
          "Bank"
        ],
        "parameters": [
          {
            "name": "BankDetailsId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankDetailsResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankDetailsResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankDetailsResponseDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Bank"
        ],
        "parameters": [
          {
            "name": "BankDetailsId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BankDetailsRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BankDetailsRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BankDetailsRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/bank/modulus-check": {
      "get": {
        "tags": [
          "Bank"
        ],
        "parameters": [
          {
            "name": "sortCode",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "accountNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/bank": {
      "post": {
        "tags": [
          "Bank"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BankDetailsRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BankDetailsRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BankDetailsRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "get": {
        "tags": [
          "Bank"
        ],
        "parameters": [
          {
            "name": "BankDetailsIds",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "format": "int32"
              }
            }
          },
          {
            "name": "IncludeMissing",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BankDetailsBatchResponseDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BankDetailsBatchResponseDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BankDetailsBatchResponseDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/bank/ApplyToAllPolicies/{sourceBankId}": {
      "put": {
        "tags": [
          "Bank"
        ],
        "parameters": [
          {
            "name": "sourceBankId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BankApplyAllRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BankApplyAllRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BankApplyAllRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/batch/jobs": {
      "get": {
        "tags": [
          "Batch"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BatchJobDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BatchJobDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BatchJobDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/batch/run": {
      "post": {
        "tags": [
          "Batch"
        ],
        "parameters": [
          {
            "name": "dryRun",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BatchSweepDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchSweepDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchSweepDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/batch/run/{jobKey}": {
      "post": {
        "tags": [
          "Batch"
        ],
        "parameters": [
          {
            "name": "jobKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dryRun",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BatchRunOutcomeDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchRunOutcomeDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchRunOutcomeDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/batch/runs": {
      "get": {
        "tags": [
          "Batch"
        ],
        "parameters": [
          {
            "name": "jobKey",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BatchRunDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BatchRunDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BatchRunDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/batch/runs/{id}": {
      "get": {
        "tags": [
          "Batch"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BatchRunDetailDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchRunDetailDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchRunDetailDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/benefits/{BenefitDetailsId}": {
      "get": {
        "tags": [
          "Benefit"
        ],
        "parameters": [
          {
            "name": "BenefitDetailsId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BenefitDetailsDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BenefitDetailsDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BenefitDetailsDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Benefit"
        ],
        "parameters": [
          {
            "name": "BenefitDetailsId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BenefitDetailsRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BenefitDetailsRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BenefitDetailsRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/benefits": {
      "post": {
        "tags": [
          "Benefit"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BenefitDetailsRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BenefitDetailsRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BenefitDetailsRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "get": {
        "tags": [
          "Benefit"
        ],
        "parameters": [
          {
            "name": "BenefitDetailsIds",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "format": "int32"
              }
            }
          },
          {
            "name": "IncludeMissing",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BenefitDetailsBatchResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BenefitDetailsBatchResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BenefitDetailsBatchResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/policies/{policyId}/commissions": {
      "get": {
        "tags": [
          "BenefitCommission"
        ],
        "parameters": [
          {
            "name": "policyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BenefitCommissionDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BenefitCommissionDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BenefitCommissionDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/policies/{policyId}/commissions/benefit/{benefitDetailsId}": {
      "get": {
        "tags": [
          "BenefitCommission"
        ],
        "parameters": [
          {
            "name": "policyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "benefitDetailsId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BenefitCommissionDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BenefitCommissionDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BenefitCommissionDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/broker/{broker_details_id}": {
      "get": {
        "tags": [
          "Broker"
        ],
        "parameters": [
          {
            "name": "broker_details_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BrokerDetailsDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrokerDetailsDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrokerDetailsDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Broker"
        ],
        "parameters": [
          {
            "name": "broker_details_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BrokerDetailsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BrokerDetailsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BrokerDetailsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/broker": {
      "post": {
        "tags": [
          "Broker"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BrokerDetailsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BrokerDetailsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BrokerDetailsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "get": {
        "tags": [
          "Broker"
        ],
        "parameters": [
          {
            "name": "brokerDetailsIds",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "format": "int32"
              }
            }
          },
          {
            "name": "includeMissing",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BrokerDetailsDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BrokerDetailsDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BrokerDetailsDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/broker/statuses": {
      "get": {
        "tags": [
          "Broker"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "string"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "string"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/broker/brokerRoles": {
      "get": {
        "tags": [
          "Broker"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "string"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "string"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/broker/withUserProfile": {
      "post": {
        "tags": [
          "Broker"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BrokerWithUserProfileCreateDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BrokerWithUserProfileCreateDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BrokerWithUserProfileCreateDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/broker/{broker_details_id}/login": {
      "post": {
        "tags": [
          "Broker"
        ],
        "parameters": [
          {
            "name": "broker_details_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BrokerLoginCreateRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BrokerLoginCreateRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BrokerLoginCreateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/broker/{broker_details_id}/welcomeEmail": {
      "post": {
        "tags": [
          "Broker"
        ],
        "parameters": [
          {
            "name": "broker_details_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/broker/{broker_details_id}/users": {
      "get": {
        "tags": [
          "Broker"
        ],
        "parameters": [
          {
            "name": "broker_details_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UserDtoPagedResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserDtoPagedResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserDtoPagedResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/broker/list": {
      "get": {
        "tags": [
          "Broker"
        ],
        "parameters": [
          {
            "name": "brokerId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "queryinput",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            }
          },
          {
            "name": "brokerEntityType",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/BrokerEntityType"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BrokerListDetailsDtoPagedResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrokerListDetailsDtoPagedResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrokerListDetailsDtoPagedResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/broker/{brokerId}/oib/policies": {
      "get": {
        "tags": [
          "Broker"
        ],
        "parameters": [
          {
            "name": "brokerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "queryinput",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "statusId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "dateFrom",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "dateTo",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BrokerPolicyListItemDtoPagedResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrokerPolicyListItemDtoPagedResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrokerPolicyListItemDtoPagedResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/broker/{brokerId}/life/policies": {
      "get": {
        "tags": [
          "Broker"
        ],
        "parameters": [
          {
            "name": "brokerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "queryinput",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "statusId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "dateFrom",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "dateTo",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BrokerPolicyListItemDtoPagedResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrokerPolicyListItemDtoPagedResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrokerPolicyListItemDtoPagedResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/commission/premiums/clear": {
      "post": {
        "tags": [
          "CommissionOperations"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ClearPremiumsRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ClearPremiumsRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ClearPremiumsRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ClearPremiumsResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClearPremiumsResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClearPremiumsResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/commission/clearance-sweep": {
      "post": {
        "tags": [
          "CommissionOperations"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ClearanceSweepResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClearanceSweepResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClearanceSweepResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/commission/accrual-run": {
      "post": {
        "tags": [
          "CommissionOperations"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AccrualRunResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccrualRunResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccrualRunResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/commission/payment-run": {
      "post": {
        "tags": [
          "CommissionOperations"
        ],
        "parameters": [
          {
            "name": "preview",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentRunResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentRunResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentRunResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/commission/remittances": {
      "get": {
        "tags": [
          "CommissionOperations"
        ],
        "parameters": [
          {
            "name": "brokerCompanyId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CommissionRemittanceDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CommissionRemittanceDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CommissionRemittanceDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/commission/payment-runs": {
      "get": {
        "tags": [
          "CommissionOperations"
        ],
        "parameters": [
          {
            "name": "take",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PaymentRunHistoryDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PaymentRunHistoryDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PaymentRunHistoryDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/commission/recipients": {
      "get": {
        "tags": [
          "CommissionOperations"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CommissionRecipientAccountDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CommissionRecipientAccountDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CommissionRecipientAccountDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/commission/recipients/{accountId}": {
      "get": {
        "tags": [
          "CommissionOperations"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CommissionRecipientStatementDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommissionRecipientStatementDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommissionRecipientStatementDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/commission/policies/{policyId}": {
      "get": {
        "tags": [
          "CommissionOperations"
        ],
        "parameters": [
          {
            "name": "policyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BenefitCommissionPositionDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BenefitCommissionPositionDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BenefitCommissionPositionDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/commission/policies": {
      "get": {
        "tags": [
          "CommissionOperations"
        ],
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CommissionPolicySummaryDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CommissionPolicySummaryDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CommissionPolicySummaryDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/commission/policies/{policyId}/summary": {
      "get": {
        "tags": [
          "CommissionOperations"
        ],
        "parameters": [
          {
            "name": "policyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CommissionPolicySummaryDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommissionPolicySummaryDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommissionPolicySummaryDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/commission/policies/by-number/{policyNo}": {
      "get": {
        "tags": [
          "CommissionOperations"
        ],
        "parameters": [
          {
            "name": "policyNo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BenefitCommissionPositionDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BenefitCommissionPositionDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BenefitCommissionPositionDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/companies": {
      "get": {
        "tags": [
          "Company"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BrokerCompanyDetailsDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BrokerCompanyDetailsDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BrokerCompanyDetailsDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Company"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BrokerCompanyDetailsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BrokerCompanyDetailsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BrokerCompanyDetailsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/companies/available": {
      "get": {
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "name": "networkId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "mortgageClubId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "companyId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BrokerCompanyDetailsDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BrokerCompanyDetailsDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BrokerCompanyDetailsDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/companies/networks": {
      "get": {
        "tags": [
          "Company"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BrokerCompanyDetailsDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BrokerCompanyDetailsDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BrokerCompanyDetailsDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/companies/mortgageClubs": {
      "get": {
        "tags": [
          "Company"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BrokerCompanyDetailsDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BrokerCompanyDetailsDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BrokerCompanyDetailsDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/companies/{CompanyId}": {
      "get": {
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "name": "CompanyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BrokerCompanyDetailsDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrokerCompanyDetailsDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrokerCompanyDetailsDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Company"
        ],
        "parameters": [
          {
            "name": "CompanyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BrokerCompanyDetailsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BrokerCompanyDetailsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BrokerCompanyDetailsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/companies/statuses": {
      "get": {
        "tags": [
          "Company"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "string"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "string"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/companies/{companyId}/commissions": {
      "get": {
        "tags": [
          "CompanyCommission"
        ],
        "parameters": [
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "includeHistory",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BrokerCommissionResponseDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BrokerCommissionResponseDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BrokerCommissionResponseDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "CompanyCommission"
        ],
        "parameters": [
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BrokerCommissionDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BrokerCommissionDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BrokerCommissionDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/companies/{companyId}/commissions/{commissionId}": {
      "put": {
        "tags": [
          "CompanyCommission"
        ],
        "parameters": [
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "commissionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BrokerCommissionDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BrokerCommissionDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BrokerCommissionDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "CompanyCommission"
        ],
        "parameters": [
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "commissionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/Customers/{Customer_details_id}": {
      "get": {
        "tags": [
          "Customer"
        ],
        "parameters": [
          {
            "name": "Customer_details_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerDetailsDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerDetailsDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerDetailsDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Customer"
        ],
        "parameters": [
          {
            "name": "Customer_details_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerUpdateDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerUpdateDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerUpdateDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/Customers/{customerId}/bankDetails": {
      "get": {
        "tags": [
          "Customer"
        ],
        "parameters": [
          {
            "name": "customerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BankDetailsResponseDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BankDetailsResponseDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BankDetailsResponseDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Customers": {
      "post": {
        "tags": [
          "Customer"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerDetailsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerDetailsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerDetailsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/Customers/ApplyContactToAllPolicies/{sourceCustomerId}": {
      "put": {
        "tags": [
          "Customer"
        ],
        "parameters": [
          {
            "name": "sourceCustomerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerApplyAllRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerApplyAllRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerApplyAllRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/Customers/{CustomerId}/Users": {
      "get": {
        "tags": [
          "Customer"
        ],
        "parameters": [
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "CustomerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/customer-match-review/pending-count": {
      "get": {
        "tags": [
          "CustomerMatchReview"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "application/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "text/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/customer-match-review": {
      "get": {
        "tags": [
          "CustomerMatchReview"
        ],
        "parameters": [
          {
            "name": "statusId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CustomerMatchReviewListItemDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CustomerMatchReviewListItemDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CustomerMatchReviewListItemDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/customer-match-review/{id}": {
      "get": {
        "tags": [
          "CustomerMatchReview"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerMatchReviewDetailDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerMatchReviewDetailDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerMatchReviewDetailDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/customer-match-review/{id}/confirm": {
      "post": {
        "tags": [
          "CustomerMatchReview"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DecisionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DecisionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DecisionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/customer-match-review/{id}/merge": {
      "post": {
        "tags": [
          "CustomerMatchReview"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DecisionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DecisionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DecisionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/customer-match-review/{id}/reject": {
      "post": {
        "tags": [
          "CustomerMatchReview"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DecisionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DecisionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DecisionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/customer-match-review/{id}/defer": {
      "post": {
        "tags": [
          "CustomerMatchReview"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DecisionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DecisionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DecisionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/my-portfolio/availability": {
      "get": {
        "tags": [
          "CustomerPortfolio"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerPortfolioAvailabilityDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerPortfolioAvailabilityDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerPortfolioAvailabilityDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/CustomerServiceDiary/ByCustomerId/{CustomerDetailsId}": {
      "get": {
        "tags": [
          "CustomerServiceDiary"
        ],
        "parameters": [
          {
            "name": "QueryInput",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "CustomerDetailsId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "DateFrom",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "DateTo",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "PageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerServiceDiaryEntryDtoServiceDiaryPageResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerServiceDiaryEntryDtoServiceDiaryPageResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerServiceDiaryEntryDtoServiceDiaryPageResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/CustomerServiceDiary/ByUserId/{UserId}": {
      "get": {
        "tags": [
          "CustomerServiceDiary"
        ],
        "parameters": [
          {
            "name": "QueryInput",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "UserId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerServiceDiaryEntryDtoServiceDiaryPageResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerServiceDiaryEntryDtoServiceDiaryPageResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerServiceDiaryEntryDtoServiceDiaryPageResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/CustomerServiceDiary/ById/{PolicyId}": {
      "get": {
        "tags": [
          "CustomerServiceDiary"
        ],
        "parameters": [
          {
            "name": "QueryInput",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PolicyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerServiceDiaryEntryDtoServiceDiaryPageResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerServiceDiaryEntryDtoServiceDiaryPageResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerServiceDiaryEntryDtoServiceDiaryPageResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/CustomerServiceDiary": {
      "get": {
        "tags": [
          "CustomerServiceDiary"
        ],
        "parameters": [
          {
            "name": "QueryInput",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerServiceDiaryEntryDtoPagedResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerServiceDiaryEntryDtoPagedResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerServiceDiaryEntryDtoPagedResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/CustomerServiceDiary/Create": {
      "post": {
        "tags": [
          "CustomerServiceDiary"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerServiceDiaryEntryDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerServiceDiaryEntryDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerServiceDiaryEntryDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/CustomerServiceDiary/EnsureStatus": {
      "post": {
        "tags": [
          "CustomerServiceDiary"
        ],
        "parameters": [
          {
            "name": "name",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/CustomerServiceDiary/Create/Document": {
      "post": {
        "tags": [
          "CustomerServiceDiary"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerServiceDiaryFileDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerServiceDiaryFileDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerServiceDiaryFileDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/CustomerServiceDiary/{CustomerServiceDiaryEntryId}": {
      "put": {
        "tags": [
          "CustomerServiceDiary"
        ],
        "parameters": [
          {
            "name": "CustomerServiceDiaryEntryId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerServiceDiaryEntryDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerServiceDiaryEntryDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerServiceDiaryEntryDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/diagnostics/error": {
      "post": {
        "tags": [
          "Diagnostics"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ErrorLogRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ErrorLogRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ErrorLogRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/DiaryEventTypes/{Id}": {
      "get": {
        "tags": [
          "DiaryEventTypes"
        ],
        "parameters": [
          {
            "name": "Id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DiaryEventType"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DiaryEventType"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DiaryEventType"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/DiaryEventTypes/EnsureByName": {
      "post": {
        "tags": [
          "DiaryEventTypes"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DiaryEventTypeNameDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DiaryEventTypeNameDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DiaryEventTypeNameDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/DiaryEventTypes": {
      "post": {
        "tags": [
          "DiaryEventTypes"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DiaryEventType"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DiaryEventType"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DiaryEventType"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/quote-direct/quotes": {
      "get": {
        "tags": [
          "DirectQuotes"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DirectQuoteSummaryResponse"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DirectQuoteSummaryResponse"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DirectQuoteSummaryResponse"
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "DirectQuotes"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveDirectQuoteRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveDirectQuoteRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SaveDirectQuoteRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SaveDirectQuoteResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SaveDirectQuoteResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SaveDirectQuoteResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/quote-direct/quotes/{directQuoteId}": {
      "get": {
        "tags": [
          "DirectQuotes"
        ],
        "parameters": [
          {
            "name": "directQuoteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DirectQuoteResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DirectQuoteResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DirectQuoteResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "DirectQuotes"
        ],
        "parameters": [
          {
            "name": "directQuoteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/quote-direct/quotes/{directQuoteId}/applied": {
      "post": {
        "tags": [
          "DirectQuotes"
        ],
        "parameters": [
          {
            "name": "directQuoteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/quote-direct/quotes/price": {
      "post": {
        "tags": [
          "DirectQuotes"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PriceDirectQuoteRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PriceDirectQuoteRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PriceDirectQuoteRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PriceDirectQuoteResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PriceDirectQuoteResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PriceDirectQuoteResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway"
          }
        }
      }
    },
    "/api/v1/display/user/{user_id}/Customers": {
      "get": {
        "tags": [
          "Display"
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "integer",
                    "format": "int32"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "integer",
                    "format": "int32"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "integer",
                    "format": "int32"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/display/user/{UserId}/details": {
      "get": {
        "tags": [
          "Display"
        ],
        "parameters": [
          {
            "name": "UserId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/FullUserDetailsDisplay"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FullUserDetailsDisplay"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/FullUserDetailsDisplay"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/display/Customer/{Customer_id}/details/documents/{documents}": {
      "get": {
        "tags": [
          "Display"
        ],
        "parameters": [
          {
            "name": "Customer_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "documents",
            "in": "path",
            "required": true,
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/FullUserDetailsDisplay"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FullUserDetailsDisplay"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/FullUserDetailsDisplay"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/display/Customer/{CustomerDetailsId}": {
      "get": {
        "tags": [
          "Display"
        ],
        "parameters": [
          {
            "name": "CustomerDetailsId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/FullPolicyDetailsDisplay"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FullPolicyDetailsDisplay"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/FullPolicyDetailsDisplay"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/doctors/{doctors_details_id}": {
      "get": {
        "tags": [
          "Doctor"
        ],
        "parameters": [
          {
            "name": "doctors_details_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DoctorDetailsDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DoctorDetailsDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DoctorDetailsDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/doctors/{id}/Customer/{cid}": {
      "get": {
        "tags": [
          "Doctor"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "cid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DoctorDetailsDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DoctorDetailsDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DoctorDetailsDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/doctors/{doctor_details_id}": {
      "put": {
        "tags": [
          "Doctor"
        ],
        "parameters": [
          {
            "name": "doctor_details_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DoctorDetailsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DoctorDetailsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DoctorDetailsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/doctors/ApplyToAllPolicies/{sourceDoctorId}": {
      "put": {
        "tags": [
          "Doctor"
        ],
        "parameters": [
          {
            "name": "sourceDoctorId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DoctorApplyAllRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DoctorApplyAllRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DoctorApplyAllRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/doctors": {
      "post": {
        "tags": [
          "Doctor"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DoctorDetailsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DoctorDetailsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DoctorDetailsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "get": {
        "tags": [
          "Doctor"
        ],
        "parameters": [
          {
            "name": "doctorDetailsIds",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "format": "int32"
              }
            }
          },
          {
            "name": "includeMissing",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DoctorDetailsDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DoctorDetailsDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DoctorDetailsDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/documents/{templateKey}": {
      "get": {
        "tags": [
          "DocumentTemplates"
        ],
        "parameters": [
          {
            "name": "templateKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "brand",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ResolvedDocumentTemplateDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResolvedDocumentTemplateDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResolvedDocumentTemplateDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/bank/{id}/share-checks": {
      "get": {
        "tags": [
          "GlBank"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BankShareCheckDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BankShareCheckDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BankShareCheckDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/bank/share-checks/run": {
      "post": {
        "tags": [
          "GlBank"
        ],
        "parameters": [
          {
            "name": "date",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "bankAccountId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankShareCheckRunResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankShareCheckRunResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankShareCheckRunResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankShareCheckRunResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankShareCheckRunResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankShareCheckRunResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/bank/{id}/share-checks/{checkId}/acknowledge": {
      "post": {
        "tags": [
          "GlBank"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "checkId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BankMatchReasonRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BankMatchReasonRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BankMatchReasonRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankShareCheckMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankShareCheckMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankShareCheckMutationResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankShareCheckMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankShareCheckMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankShareCheckMutationResult"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankShareCheckMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankShareCheckMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankShareCheckMutationResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankShareCheckMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankShareCheckMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankShareCheckMutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/bank/{id}/reconciliation": {
      "get": {
        "tags": [
          "GlBank"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "date",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankReconciliationReportDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankReconciliationReportDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankReconciliationReportDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/bank/{id}/reconciliations": {
      "get": {
        "tags": [
          "GlBank"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BankReconciliationDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BankReconciliationDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BankReconciliationDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "GlBank"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BankReconciliationPrepareRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BankReconciliationPrepareRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BankReconciliationPrepareRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankReconciliationMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankReconciliationMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankReconciliationMutationResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankReconciliationMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankReconciliationMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankReconciliationMutationResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankReconciliationMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankReconciliationMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankReconciliationMutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/bank/{id}/reconciliations/{reconciliationId}/sign-off": {
      "post": {
        "tags": [
          "GlBank"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "reconciliationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankReconciliationMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankReconciliationMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankReconciliationMutationResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankReconciliationMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankReconciliationMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankReconciliationMutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/bank/{id}/reconciliations/{reconciliationId}/reopen": {
      "post": {
        "tags": [
          "GlBank"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "reconciliationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BankMatchReasonRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BankMatchReasonRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BankMatchReasonRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankReconciliationMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankReconciliationMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankReconciliationMutationResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankReconciliationMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankReconciliationMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankReconciliationMutationResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankReconciliationMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankReconciliationMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankReconciliationMutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/bank/{id}/match": {
      "get": {
        "tags": [
          "GlBank"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchWorkbenchDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchWorkbenchDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchWorkbenchDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "GlBank"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BankManualMatchRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BankManualMatchRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BankManualMatchRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/bank/{id}/match/auto": {
      "post": {
        "tags": [
          "GlBank"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankAutoMatchResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankAutoMatchResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankAutoMatchResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankAutoMatchResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankAutoMatchResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankAutoMatchResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/bank/{id}/match/suggestions/{statementLineId}/{journalLineId}": {
      "post": {
        "tags": [
          "GlBank"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "statementLineId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "journalLineId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/bank/{id}/match/groups/{groupId}/unmatch": {
      "post": {
        "tags": [
          "GlBank"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "groupId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BankMatchReasonRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BankMatchReasonRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BankMatchReasonRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/bank/{id}/statement-lines/{lineId}/exclude": {
      "post": {
        "tags": [
          "GlBank"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "lineId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BankMatchReasonRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BankMatchReasonRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BankMatchReasonRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/bank/{id}/statement-lines/{lineId}/include": {
      "post": {
        "tags": [
          "GlBank"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "lineId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BankMatchReasonRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BankMatchReasonRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BankMatchReasonRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/bank/{id}/statement-lines/{lineId}/journal": {
      "post": {
        "tags": [
          "GlBank"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "lineId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BankLineJournalRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BankLineJournalRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BankLineJournalRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankMatchMutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/bank": {
      "get": {
        "tags": [
          "GlBank"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BankAccountSummaryDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BankAccountSummaryDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BankAccountSummaryDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "GlBank"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BankAccountInput"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BankAccountInput"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BankAccountInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankAccountMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankAccountMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankAccountMutationResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankAccountMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankAccountMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankAccountMutationResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankAccountMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankAccountMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankAccountMutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/bank/{id}": {
      "get": {
        "tags": [
          "GlBank"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankAccountDetailDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankAccountDetailDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankAccountDetailDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "GlBank"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BankAccountUpdateInput"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BankAccountUpdateInput"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BankAccountUpdateInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankAccountMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankAccountMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankAccountMutationResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankAccountMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankAccountMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankAccountMutationResult"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankAccountMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankAccountMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankAccountMutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/bank/{id}/mappable-nominals": {
      "get": {
        "tags": [
          "GlBank"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MappableNominalDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MappableNominalDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MappableNominalDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/bank/by-nominal/{accountId}": {
      "get": {
        "tags": [
          "GlBank"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NominalBankLinkDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NominalBankLinkDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NominalBankLinkDto"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          }
        }
      }
    },
    "/api/v1/gl/bank/{id}/nominals": {
      "post": {
        "tags": [
          "GlBank"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BankAccountNominalInput"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BankAccountNominalInput"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BankAccountNominalInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankAccountMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankAccountMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankAccountMutationResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankAccountMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankAccountMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankAccountMutationResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankAccountMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankAccountMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankAccountMutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/bank/{id}/statements": {
      "get": {
        "tags": [
          "GlBank"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BankStatementSummaryDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BankStatementSummaryDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BankStatementSummaryDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "GlBank"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BankStatementUploadRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BankStatementUploadRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BankStatementUploadRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankStatementImportResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankStatementImportResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankStatementImportResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankStatementImportResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankStatementImportResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankStatementImportResult"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankStatementImportResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankStatementImportResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankStatementImportResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankStatementImportResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankStatementImportResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankStatementImportResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/bank/{id}/statements/{statementId}": {
      "get": {
        "tags": [
          "GlBank"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "statementId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankStatementDetailDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankStatementDetailDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankStatementDetailDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/bank/{id}/nominals/{mappingId}/end": {
      "post": {
        "tags": [
          "GlBank"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "mappingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "effectiveTo",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankAccountMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankAccountMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankAccountMutationResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankAccountMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankAccountMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankAccountMutationResult"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BankAccountMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankAccountMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankAccountMutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/dimensions/legal-entities": {
      "get": {
        "tags": [
          "GlDimensions"
        ],
        "parameters": [
          {
            "name": "includeInactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LegalEntityDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LegalEntityDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LegalEntityDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "GlDimensions"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LegalEntityInput"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LegalEntityInput"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LegalEntityInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GlDimensionMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlDimensionMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlDimensionMutationResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GlDimensionMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlDimensionMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlDimensionMutationResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GlDimensionMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlDimensionMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlDimensionMutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/dimensions/legal-entities/{id}/active": {
      "post": {
        "tags": [
          "GlDimensions"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "isActive",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GlDimensionMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlDimensionMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlDimensionMutationResult"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GlDimensionMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlDimensionMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlDimensionMutationResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GlDimensionMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlDimensionMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlDimensionMutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/dimensions/legal-entities/{id}/fy-start-month": {
      "post": {
        "tags": [
          "GlDimensions"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "fyStartMonth",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GlDimensionMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlDimensionMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlDimensionMutationResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GlDimensionMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlDimensionMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlDimensionMutationResult"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GlDimensionMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlDimensionMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlDimensionMutationResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GlDimensionMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlDimensionMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlDimensionMutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/dimensions/funds": {
      "get": {
        "tags": [
          "GlDimensions"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FundDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FundDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FundDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "GlDimensions"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FundInput"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/FundInput"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/FundInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GlDimensionMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlDimensionMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlDimensionMutationResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GlDimensionMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlDimensionMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlDimensionMutationResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GlDimensionMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlDimensionMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlDimensionMutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/reports/profit-and-loss": {
      "get": {
        "tags": [
          "GlFinancialStatements"
        ],
        "parameters": [
          {
            "name": "ledgerId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "accountingPeriodId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProfitAndLossDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfitAndLossDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfitAndLossDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/reports/balance-sheet": {
      "get": {
        "tags": [
          "GlFinancialStatements"
        ],
        "parameters": [
          {
            "name": "ledgerId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "accountingPeriodId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BalanceSheetDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BalanceSheetDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BalanceSheetDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/journals/{id}": {
      "get": {
        "tags": [
          "GlJournals"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JournalDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JournalDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JournalDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "GlJournals"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateJournalRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateJournalRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateJournalRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "GlJournals"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/journals/approval-queue": {
      "get": {
        "tags": [
          "GlJournals"
        ],
        "parameters": [
          {
            "name": "ledgerId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/JournalSummaryDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/JournalSummaryDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/JournalSummaryDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/journals": {
      "get": {
        "tags": [
          "GlJournals"
        ],
        "parameters": [
          {
            "name": "statusId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "ledgerId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "mine",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/JournalSummaryDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/JournalSummaryDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/JournalSummaryDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "GlJournals"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateJournalRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateJournalRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateJournalRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/journals/{id}/submit": {
      "post": {
        "tags": [
          "GlJournals"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/journals/{id}/recall": {
      "post": {
        "tags": [
          "GlJournals"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/journals/{id}/approve": {
      "post": {
        "tags": [
          "GlJournals"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/journals/{id}/reject": {
      "post": {
        "tags": [
          "GlJournals"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RejectRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RejectRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RejectRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/journals/{id}/reverse": {
      "post": {
        "tags": [
          "GlJournals"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReverseJournalRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ReverseJournalRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ReverseJournalRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/JournalMutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/ledgers": {
      "get": {
        "tags": [
          "GlLedgers"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LedgerSummaryDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LedgerSummaryDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LedgerSummaryDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "GlLedgers"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateLedgerRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateLedgerRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateLedgerRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CreateLedgerResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateLedgerResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateLedgerResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CreateLedgerResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateLedgerResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateLedgerResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/ledgers/{id}": {
      "get": {
        "tags": [
          "GlLedgers"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/LedgerDetailDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LedgerDetailDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/LedgerDetailDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/ledgers/templates": {
      "post": {
        "tags": [
          "GlLedgers"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CoaTemplateInput"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CoaTemplateInput"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CoaTemplateInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CoaMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoaMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoaMutationResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CoaMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoaMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoaMutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/ledgers/templates/{templateId}/versions": {
      "post": {
        "tags": [
          "GlLedgers"
        ],
        "parameters": [
          {
            "name": "templateId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CreateTemplateVersionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateTemplateVersionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateTemplateVersionResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CreateTemplateVersionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateTemplateVersionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateTemplateVersionResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/ledgers/templates/{templateId}": {
      "get": {
        "tags": [
          "GlLedgers"
        ],
        "parameters": [
          {
            "name": "templateId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CoaTemplateDetailDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoaTemplateDetailDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoaTemplateDetailDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/ledgers/templates/{templateId}/accounts": {
      "post": {
        "tags": [
          "GlLedgers"
        ],
        "parameters": [
          {
            "name": "templateId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TemplateAccountInput"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TemplateAccountInput"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TemplateAccountInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CoaMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoaMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoaMutationResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CoaMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoaMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoaMutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/ledgers/templates/{templateId}/accounts/{accountCode}": {
      "delete": {
        "tags": [
          "GlLedgers"
        ],
        "parameters": [
          {
            "name": "templateId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "accountCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CoaMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoaMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoaMutationResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CoaMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoaMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoaMutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/ledgers/{id}/accounts": {
      "post": {
        "tags": [
          "GlLedgers"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LedgerAccountInput"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LedgerAccountInput"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LedgerAccountInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CoaMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoaMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoaMutationResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CoaMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoaMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoaMutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/ledgers/{id}/accounts/{accountId}/active": {
      "post": {
        "tags": [
          "GlLedgers"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "boolean"
              }
            },
            "text/json": {
              "schema": {
                "type": "boolean"
              }
            },
            "application/*+json": {
              "schema": {
                "type": "boolean"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CoaMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoaMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoaMutationResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CoaMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoaMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoaMutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/lookups": {
      "get": {
        "tags": [
          "GlLookups"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GlLookupsDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlLookupsDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlLookupsDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/opening-balance/status": {
      "get": {
        "tags": [
          "GlOpeningBalance"
        ],
        "parameters": [
          {
            "name": "ledgerId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpeningBalanceStatusDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpeningBalanceStatusDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpeningBalanceStatusDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/opening-balance/load": {
      "post": {
        "tags": [
          "GlOpeningBalance"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OpeningBalanceLoadRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/OpeningBalanceLoadRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/OpeningBalanceLoadRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpeningBalanceResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpeningBalanceResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpeningBalanceResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpeningBalanceResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpeningBalanceResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpeningBalanceResult"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpeningBalanceResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpeningBalanceResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpeningBalanceResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpeningBalanceResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpeningBalanceResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpeningBalanceResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/opening-balance/{ledgerId}/approve": {
      "post": {
        "tags": [
          "GlOpeningBalance"
        ],
        "parameters": [
          {
            "name": "ledgerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpeningBalanceResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpeningBalanceResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpeningBalanceResult"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpeningBalanceResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpeningBalanceResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpeningBalanceResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpeningBalanceResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpeningBalanceResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpeningBalanceResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/opening-balance/{ledgerId}/reject": {
      "post": {
        "tags": [
          "GlOpeningBalance"
        ],
        "parameters": [
          {
            "name": "ledgerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RejectOpeningBalanceRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RejectOpeningBalanceRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RejectOpeningBalanceRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpeningBalanceResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpeningBalanceResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpeningBalanceResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpeningBalanceResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpeningBalanceResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpeningBalanceResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OpeningBalanceResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpeningBalanceResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpeningBalanceResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/sales-ledger": {
      "get": {
        "tags": [
          "GlPartyLedgers"
        ],
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PartyLedgerAccountDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PartyLedgerAccountDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PartyLedgerAccountDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/sales-ledger/{id}": {
      "get": {
        "tags": [
          "GlPartyLedgers"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PartyLedgerStatementDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartyLedgerStatementDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartyLedgerStatementDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/sales-ledger/customers": {
      "get": {
        "tags": [
          "GlPartyLedgers"
        ],
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SalesLedgerCustomerDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SalesLedgerCustomerDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SalesLedgerCustomerDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/sales-ledger/customers/{cinNo}": {
      "get": {
        "tags": [
          "GlPartyLedgers"
        ],
        "parameters": [
          {
            "name": "cinNo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SalesLedgerCustomerDetailDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalesLedgerCustomerDetailDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalesLedgerCustomerDetailDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/purchase-ledger": {
      "get": {
        "tags": [
          "GlPartyLedgers"
        ],
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PartyLedgerAccountDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PartyLedgerAccountDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PartyLedgerAccountDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/purchase-ledger/{id}": {
      "get": {
        "tags": [
          "GlPartyLedgers"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PartyLedgerStatementDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartyLedgerStatementDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartyLedgerStatementDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/sales-ledger/{accountId}/tag-line": {
      "post": {
        "tags": [
          "GlPartyLedgers"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "journalLineId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PartyLedgerMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartyLedgerMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartyLedgerMutationResult"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PartyLedgerMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartyLedgerMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartyLedgerMutationResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PartyLedgerMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartyLedgerMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartyLedgerMutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/purchase-ledger/{accountId}/tag-line": {
      "post": {
        "tags": [
          "GlPartyLedgers"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "journalLineId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PartyLedgerMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartyLedgerMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartyLedgerMutationResult"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PartyLedgerMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartyLedgerMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartyLedgerMutationResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PartyLedgerMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartyLedgerMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartyLedgerMutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/party-ledgers/backfill": {
      "post": {
        "tags": [
          "GlPartyLedgers"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PartyLedgerBackfillResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartyLedgerBackfillResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartyLedgerBackfillResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/periods": {
      "get": {
        "tags": [
          "GlPeriods"
        ],
        "parameters": [
          {
            "name": "ledgerId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AccountingPeriodDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AccountingPeriodDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AccountingPeriodDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/periods/{id}/close-checklist": {
      "get": {
        "tags": [
          "GlPeriods"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CloseChecklistDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CloseChecklistDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CloseChecklistDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/periods/{id}/close": {
      "post": {
        "tags": [
          "GlPeriods"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PeriodMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PeriodMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PeriodMutationResult"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PeriodMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PeriodMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PeriodMutationResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PeriodMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PeriodMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PeriodMutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/periods/{id}/lock": {
      "post": {
        "tags": [
          "GlPeriods"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PeriodMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PeriodMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PeriodMutationResult"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PeriodMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PeriodMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PeriodMutationResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PeriodMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PeriodMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PeriodMutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/periods/{id}/reopen": {
      "post": {
        "tags": [
          "GlPeriods"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PeriodMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PeriodMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PeriodMutationResult"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PeriodMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PeriodMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PeriodMutationResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PeriodMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PeriodMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PeriodMutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/periods/open-due": {
      "post": {
        "tags": [
          "GlPeriods"
        ],
        "parameters": [
          {
            "name": "ledgerId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "application/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "text/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/periods/year-end": {
      "get": {
        "tags": [
          "GlPeriods"
        ],
        "parameters": [
          {
            "name": "ledgerId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "financialYear",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndStatusDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndStatusDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndStatusDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/periods/year-end/checklist": {
      "get": {
        "tags": [
          "GlPeriods"
        ],
        "parameters": [
          {
            "name": "ledgerId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "financialYear",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CloseChecklistDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CloseChecklistDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CloseChecklistDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/periods/year-end/start": {
      "post": {
        "tags": [
          "GlPeriods"
        ],
        "parameters": [
          {
            "name": "ledgerId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "financialYear",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndResult"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/periods/year-end/approve": {
      "post": {
        "tags": [
          "GlPeriods"
        ],
        "parameters": [
          {
            "name": "ledgerId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "financialYear",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndResult"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/periods/year-end/reject": {
      "post": {
        "tags": [
          "GlPeriods"
        ],
        "parameters": [
          {
            "name": "ledgerId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "financialYear",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "string"
              }
            },
            "text/json": {
              "schema": {
                "type": "string"
              }
            },
            "application/*+json": {
              "schema": {
                "type": "string"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/periods/year-end/unroll/request": {
      "post": {
        "tags": [
          "GlPeriods"
        ],
        "parameters": [
          {
            "name": "ledgerId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "financialYear",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "string"
              }
            },
            "text/json": {
              "schema": {
                "type": "string"
              }
            },
            "application/*+json": {
              "schema": {
                "type": "string"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndUnrollResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndUnrollResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndUnrollResult"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndUnrollResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndUnrollResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndUnrollResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndUnrollResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndUnrollResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndUnrollResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/periods/year-end/unroll/approve": {
      "post": {
        "tags": [
          "GlPeriods"
        ],
        "parameters": [
          {
            "name": "ledgerId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "financialYear",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndUnrollResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndUnrollResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndUnrollResult"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndUnrollResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndUnrollResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndUnrollResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndUnrollResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndUnrollResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndUnrollResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/periods/year-end/unroll/reject": {
      "post": {
        "tags": [
          "GlPeriods"
        ],
        "parameters": [
          {
            "name": "ledgerId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "financialYear",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "string"
              }
            },
            "text/json": {
              "schema": {
                "type": "string"
              }
            },
            "application/*+json": {
              "schema": {
                "type": "string"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndUnrollResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndUnrollResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndUnrollResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndUnrollResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndUnrollResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/YearEndUnrollResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/postings/exceptions": {
      "get": {
        "tags": [
          "GlPostingExceptions"
        ],
        "parameters": [
          {
            "name": "statusId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "ledgerId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PostingExceptionSummaryDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PostingExceptionSummaryDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PostingExceptionSummaryDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/postings/exceptions/{id}": {
      "get": {
        "tags": [
          "GlPostingExceptions"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PostingExceptionDetailDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingExceptionDetailDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingExceptionDetailDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/postings/exceptions/{id}/replay": {
      "post": {
        "tags": [
          "GlPostingExceptions"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PostingExceptionActionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingExceptionActionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingExceptionActionResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PostingExceptionActionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingExceptionActionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingExceptionActionResult"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PostingExceptionActionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingExceptionActionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingExceptionActionResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PostingExceptionActionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingExceptionActionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingExceptionActionResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/postings/exceptions/{id}/dismiss": {
      "post": {
        "tags": [
          "GlPostingExceptions"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DismissPostingExceptionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DismissPostingExceptionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DismissPostingExceptionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PostingExceptionActionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingExceptionActionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingExceptionActionResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PostingExceptionActionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingExceptionActionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingExceptionActionResult"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PostingExceptionActionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingExceptionActionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingExceptionActionResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PostingExceptionActionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingExceptionActionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingExceptionActionResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/posting-map": {
      "get": {
        "tags": [
          "GlPostingMap"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PostingMapRowDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PostingMapRowDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PostingMapRowDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/posting-map/export": {
      "get": {
        "tags": [
          "GlPostingMap"
        ],
        "parameters": [
          {
            "name": "name",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MappingPack"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MappingPack"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MappingPack"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/posting-map/import": {
      "post": {
        "tags": [
          "GlPostingMap"
        ],
        "parameters": [
          {
            "name": "retireUnlisted",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MappingPack"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/MappingPack"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/MappingPack"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MappingPackImportResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MappingPackImportResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MappingPackImportResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/posting-map/approve": {
      "post": {
        "tags": [
          "GlPostingMap"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ReviewedChange"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ReviewedChange"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ReviewedChange"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MappingApprovalOutcome"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MappingApprovalOutcome"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MappingApprovalOutcome"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/posting-rules": {
      "get": {
        "tags": [
          "GlPostingRules"
        ],
        "parameters": [
          {
            "name": "eventTypeId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "includeInactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PostingRuleDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PostingRuleDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PostingRuleDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/posting-rules/{id}": {
      "get": {
        "tags": [
          "GlPostingRules"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/posting-rules/changes": {
      "get": {
        "tags": [
          "GlPostingRules"
        ],
        "parameters": [
          {
            "name": "statusId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PostingRuleChangeSummaryDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PostingRuleChangeSummaryDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PostingRuleChangeSummaryDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "GlPostingRules"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePostingRuleChangeRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePostingRuleChangeRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePostingRuleChangeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/posting-rules/changes/{id}": {
      "get": {
        "tags": [
          "GlPostingRules"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleChangeDetailDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleChangeDetailDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleChangeDetailDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "GlPostingRules"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostingRuleInput"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PostingRuleInput"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PostingRuleInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "GlPostingRules"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/posting-rules/changes/{id}/submit": {
      "post": {
        "tags": [
          "GlPostingRules"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/posting-rules/changes/{id}/recall": {
      "post": {
        "tags": [
          "GlPostingRules"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/posting-rules/changes/{id}/approve": {
      "post": {
        "tags": [
          "GlPostingRules"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "reviewedSubmissionStamp",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/posting-rules/changes/{id}/reject": {
      "post": {
        "tags": [
          "GlPostingRules"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RejectPostingRuleChangeRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RejectPostingRuleChangeRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RejectPostingRuleChangeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostingRuleMutationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/statutory/mappings": {
      "get": {
        "tags": [
          "GlStatutoryExport"
        ],
        "parameters": [
          {
            "name": "ledgerId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/StatutoryMappingListDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatutoryMappingListDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatutoryMappingListDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "GlStatutoryExport"
        ],
        "parameters": [
          {
            "name": "ledgerId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StatutoryMappingInput"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/StatutoryMappingInput"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/StatutoryMappingInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/StatutoryExportResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatutoryExportResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatutoryExportResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/StatutoryExportResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatutoryExportResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatutoryExportResult"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/StatutoryExportResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatutoryExportResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatutoryExportResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/StatutoryExportResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatutoryExportResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatutoryExportResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/statutory/export": {
      "get": {
        "tags": [
          "GlStatutoryExport"
        ],
        "parameters": [
          {
            "name": "ledgerId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "periodId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/StatutoryExportResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatutoryExportResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatutoryExportResult"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/StatutoryExportResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatutoryExportResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatutoryExportResult"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/StatutoryExportResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatutoryExportResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatutoryExportResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/trial-balance": {
      "get": {
        "tags": [
          "GlTrialBalance"
        ],
        "parameters": [
          {
            "name": "ledgerId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "accountingPeriodId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "comparativePeriodId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TrialBalanceDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrialBalanceDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrialBalanceDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/trial-balance/accounts/{accountId}/activity": {
      "get": {
        "tags": [
          "GlTrialBalance"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "accountingPeriodId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NominalActivityDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NominalActivityDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NominalActivityDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gl/trial-balance/accounts/{accountId}/periods": {
      "get": {
        "tags": [
          "GlTrialBalance"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "financialYear",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AccountPeriodSummaryDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountPeriodSummaryDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountPeriodSummaryDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/history/tables": {
      "get": {
        "tags": [
          "History"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/VersionedTable"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/VersionedTable"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/VersionedTable"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/history/changes": {
      "get": {
        "tags": [
          "History"
        ],
        "parameters": [
          {
            "name": "fromUtc",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "toUtc",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "changedBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "record",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "happened",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "max",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AllTablesChanges"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AllTablesChanges"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AllTablesChanges"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/history/table/{schema}/{table}": {
      "get": {
        "tags": [
          "History"
        ],
        "parameters": [
          {
            "name": "schema",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "table",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fromUtc",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "toUtc",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "changedBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "field",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "record",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "searchColumn",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "searchValue",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "happened",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "max",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RecordChangeEvent"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RecordChangeEvent"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RecordChangeEvent"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/history/table/{schema}/{table}/columns": {
      "get": {
        "tags": [
          "History"
        ],
        "parameters": [
          {
            "name": "schema",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "table",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "forSearch",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/history/table/{schema}/{table}/{id}": {
      "get": {
        "tags": [
          "History"
        ],
        "parameters": [
          {
            "name": "schema",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "table",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RecordHistory"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecordHistory"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecordHistory"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/fees/settings": {
      "get": {
        "tags": [
          "LifeProtectionAdminFees"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/FeeSettingsPageDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FeeSettingsPageDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/FeeSettingsPageDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "LifeProtectionAdminFees"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FeeSettingsUpdateDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/FeeSettingsUpdateDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/FeeSettingsUpdateDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/fees/monthly-runs": {
      "get": {
        "tags": [
          "LifeProtectionAdminFees"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MonthlyFeeRunDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MonthlyFeeRunDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MonthlyFeeRunDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "LifeProtectionAdminFees"
        ],
        "parameters": [
          {
            "name": "preview",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MonthlyFeeRunResultDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonthlyFeeRunResultDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonthlyFeeRunResultDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/reinsurance/settings": {
      "get": {
        "tags": [
          "LifeReinsurance"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ReinsuranceSettingsPageDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReinsuranceSettingsPageDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReinsuranceSettingsPageDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "LifeReinsurance"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReinsuranceSettingsUpdateDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ReinsuranceSettingsUpdateDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ReinsuranceSettingsUpdateDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/reinsurance/runs": {
      "get": {
        "tags": [
          "LifeReinsurance"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ReinsuranceRunDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ReinsuranceRunDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ReinsuranceRunDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "LifeReinsurance"
        ],
        "parameters": [
          {
            "name": "preview",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ReinsuranceRunResultDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReinsuranceRunResultDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReinsuranceRunResultDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/reinsurance/runs/{id}": {
      "get": {
        "tags": [
          "LifeReinsurance"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "kind",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ReinsuranceRunDetailDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReinsuranceRunDetailDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReinsuranceRunDetailDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/reinsurance/runs/{id}/export": {
      "get": {
        "tags": [
          "LifeReinsurance"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/mi/embed/firm": {
      "get": {
        "tags": [
          "Mi"
        ],
        "parameters": [
          {
            "name": "brokerId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MiEmbedConfig"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MiEmbedConfig"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MiEmbedConfig"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway"
          }
        }
      }
    },
    "/api/v1/mi/embed/internal": {
      "get": {
        "tags": [
          "Mi"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MiEmbedConfig"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MiEmbedConfig"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MiEmbedConfig"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway"
          }
        }
      }
    },
    "/api/v1/mi/refresh": {
      "get": {
        "tags": [
          "Mi"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MiRefreshStatus"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MiRefreshStatus"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MiRefreshStatus"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway"
          }
        }
      },
      "post": {
        "tags": [
          "Mi"
        ],
        "responses": {
          "202": {
            "description": "Accepted"
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MiRefreshStatus"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MiRefreshStatus"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MiRefreshStatus"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway"
          }
        }
      }
    },
    "/api/v1/banking/modulus-rule-sets": {
      "get": {
        "tags": [
          "ModulusRuleSets"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ModulusRuleSetListDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModulusRuleSetListDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModulusRuleSetListDto"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "ModulusRuleSets"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ModulusRuleSetUploadRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ModulusRuleSetUploadRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ModulusRuleSetUploadRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ModulusRuleSetUploadResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModulusRuleSetUploadResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModulusRuleSetUploadResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/newbusiness": {
      "post": {
        "tags": [
          "Newbusiness"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateNewBusinessRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateNewBusinessRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateNewBusinessRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Notifications/templates": {
      "get": {
        "tags": [
          "Notifications"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmailTemplateListItemDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmailTemplateListItemDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmailTemplateListItemDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Notifications/send-email": {
      "post": {
        "tags": [
          "Notifications"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendEmailRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SendEmailRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SendEmailRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Notifications/send-customer-service": {
      "post": {
        "tags": [
          "Notifications"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerServiceEmailRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerServiceEmailRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerServiceEmailRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Notifications/send-template-email": {
      "post": {
        "tags": [
          "Notifications"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendTemplateEmailRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SendTemplateEmailRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SendTemplateEmailRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/occupation/search": {
      "get": {
        "tags": [
          "Occupation"
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OccupationSearchResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OccupationSearchResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OccupationSearchResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/occupation/match": {
      "get": {
        "tags": [
          "Occupation"
        ],
        "parameters": [
          {
            "name": "name",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "code",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OccupationDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OccupationDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OccupationDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/payments/payees/accounts": {
      "get": {
        "tags": [
          "Payees"
        ],
        "parameters": [
          {
            "name": "statusId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PayeeAccountSummary"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PayeeAccountSummary"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PayeeAccountSummary"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Payees"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EnterPayeeAccountRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/EnterPayeeAccountRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/EnterPayeeAccountRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/payments/payees/broker-companies/{brokerCompanyId}": {
      "get": {
        "tags": [
          "Payees"
        ],
        "parameters": [
          {
            "name": "brokerCompanyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PayeeDetail"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PayeeDetail"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PayeeDetail"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/payments/payees/broker-companies": {
      "get": {
        "tags": [
          "Payees"
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BrokerCompanyRef"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BrokerCompanyRef"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BrokerCompanyRef"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/payments/payees/accounts/{id}/verification": {
      "get": {
        "tags": [
          "Payees"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PayeeAccountVerificationView"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PayeeAccountVerificationView"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PayeeAccountVerificationView"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/payments/payees/accounts/{id}/approve": {
      "post": {
        "tags": [
          "Payees"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApprovePayeeAccountRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ApprovePayeeAccountRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ApprovePayeeAccountRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/payments/payees/accounts/{id}/withdraw": {
      "post": {
        "tags": [
          "Payees"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReasonRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ReasonRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ReasonRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/payments/payees/accounts/{id}/reject": {
      "post": {
        "tags": [
          "Payees"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReasonRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ReasonRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ReasonRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/payments/payees/accounts/{id}/call-back": {
      "post": {
        "tags": [
          "Payees"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecordCallBackRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RecordCallBackRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RecordCallBackRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/payments/payees/accounts/{id}/suspend": {
      "post": {
        "tags": [
          "Payees"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReasonRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ReasonRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ReasonRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/payments/batches": {
      "get": {
        "tags": [
          "PaymentBatches"
        ],
        "parameters": [
          {
            "name": "StatusId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OriginatorId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "EntryDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "Take",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PaymentBatchDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PaymentBatchDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PaymentBatchDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/payments/batches/{id}": {
      "get": {
        "tags": [
          "PaymentBatches"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentBatchDetailDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentBatchDetailDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentBatchDetailDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/payments/batches/assemble": {
      "post": {
        "tags": [
          "PaymentBatches"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AssembleBatchRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AssembleBatchRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AssembleBatchRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/payments/batches/{id}/approve": {
      "post": {
        "tags": [
          "PaymentBatches"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApproveBatchRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ApproveBatchRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ApproveBatchRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/payments/batches/{id}/release": {
      "post": {
        "tags": [
          "PaymentBatches"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApproveBatchRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ApproveBatchRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ApproveBatchRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/payments/batches/{id}/file-rejection": {
      "post": {
        "tags": [
          "PaymentBatches"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReasonRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ReasonRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ReasonRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/payments/batches/{id}/withdraw": {
      "post": {
        "tags": [
          "PaymentBatches"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReasonRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ReasonRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ReasonRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/payments/batches/{id}/reject": {
      "post": {
        "tags": [
          "PaymentBatches"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReasonRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ReasonRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ReasonRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/payments/files/{id}/download": {
      "post": {
        "tags": [
          "PaymentFiles"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/payments/files/{id}/submit": {
      "post": {
        "tags": [
          "PaymentFiles"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitFileRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitFileRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitFileRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/payments/files/{id}/void": {
      "post": {
        "tags": [
          "PaymentFiles"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReasonRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ReasonRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ReasonRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/payments/instructions": {
      "get": {
        "tags": [
          "PaymentInstructions"
        ],
        "parameters": [
          {
            "name": "StatusId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OriginatorId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "DirectionId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "EntryDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "SourceSystem",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SourceReference",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Take",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PaymentInstructionDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PaymentInstructionDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PaymentInstructionDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/payments/instructions/lookups": {
      "get": {
        "tags": [
          "PaymentInstructions"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentsLookupsDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentsLookupsDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentsLookupsDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/payments/instructions/{id}": {
      "get": {
        "tags": [
          "PaymentInstructions"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentInstructionDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentInstructionDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentInstructionDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/payments/instructions/{id}/cancel": {
      "post": {
        "tags": [
          "PaymentInstructions"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReasonRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ReasonRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ReasonRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/payments/instructions/{id}/hold": {
      "post": {
        "tags": [
          "PaymentInstructions"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReasonRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ReasonRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ReasonRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/payments/instructions/{id}/release-hold": {
      "post": {
        "tags": [
          "PaymentInstructions"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReasonRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ReasonRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ReasonRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/payments/instructions/{id}/redate": {
      "post": {
        "tags": [
          "PaymentInstructions"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReasonRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ReasonRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ReasonRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/payments/instructions/{id}/returned": {
      "post": {
        "tags": [
          "PaymentInstructions"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecordLineOutcomeRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RecordLineOutcomeRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RecordLineOutcomeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/payments/instructions/{id}/record-rejected": {
      "post": {
        "tags": [
          "PaymentInstructions"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecordLineOutcomeRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RecordLineOutcomeRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RecordLineOutcomeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/payments/dashboard": {
      "get": {
        "tags": [
          "PaymentsDashboard"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentsDashboardDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentsDashboardDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentsDashboardDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/payments/lookups": {
      "get": {
        "tags": [
          "PaymentsLookups"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentsLookupsDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentsLookupsDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentsLookupsDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/person-titles": {
      "get": {
        "tags": [
          "PersonTitles"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PersonTitlesDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PersonTitlesDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PersonTitlesDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/person-titles/{id}": {
      "get": {
        "tags": [
          "PersonTitles"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PersonTitlesDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PersonTitlesDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PersonTitlesDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/policies/statuses": {
      "get": {
        "tags": [
          "Policies"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "string"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "string"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/policies/{policy_id}": {
      "get": {
        "tags": [
          "Policies"
        ],
        "parameters": [
          {
            "name": "policy_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Policies"
        ],
        "parameters": [
          {
            "name": "policy_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PolicyDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PolicyDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PolicyDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/policies/{policy_id}/details": {
      "get": {
        "tags": [
          "Policies"
        ],
        "parameters": [
          {
            "name": "policy_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyWithDocumentsDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyWithDocumentsDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyWithDocumentsDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/policies": {
      "post": {
        "tags": [
          "Policies"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PolicyDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PolicyDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PolicyDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "get": {
        "tags": [
          "Policies"
        ],
        "parameters": [
          {
            "name": "policyIds",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "format": "int64"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PolicyDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PolicyDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PolicyDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/Details": {
      "get": {
        "tags": [
          "Policies"
        ],
        "parameters": [
          {
            "name": "PolicyIds",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "format": "int32"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FullPolicyDetailsDisplay"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FullPolicyDetailsDisplay"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FullPolicyDetailsDisplay"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/PoliciesByCustomerDetailsId/{CustomerDetailsId}": {
      "get": {
        "tags": [
          "Policies"
        ],
        "parameters": [
          {
            "name": "CustomerDetailsId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PolicyDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PolicyDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PolicyDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/policies/CheckByCustomer": {
      "post": {
        "tags": [
          "Policies"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CheckPolicyDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CheckPolicyDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CheckPolicyDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              },
              "text/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/policies/CheckByCustomerPolicyNo": {
      "post": {
        "tags": [
          "Policies"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CheckPolicyDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CheckPolicyDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CheckPolicyDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              },
              "text/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/policies/CanAccess": {
      "get": {
        "tags": [
          "Policies"
        ],
        "parameters": [
          {
            "name": "policyNo",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              },
              "text/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/policies/CheckByBroker": {
      "get": {
        "tags": [
          "Policies"
        ],
        "parameters": [
          {
            "name": "policyNo",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              },
              "text/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/policies/{policyId}/fees": {
      "get": {
        "tags": [
          "PolicyFeeCharge"
        ],
        "parameters": [
          {
            "name": "policyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyFeesDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyFeesDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyFeesDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/lapse/settings": {
      "get": {
        "tags": [
          "PolicyLapse"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyLapseSettingsPageDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyLapseSettingsPageDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyLapseSettingsPageDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "PolicyLapse"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PolicyLapseSettingsUpdateDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PolicyLapseSettingsUpdateDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PolicyLapseSettingsUpdateDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/lapse/preview": {
      "get": {
        "tags": [
          "PolicyLapse"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyLapseRunResultDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyLapseRunResultDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyLapseRunResultDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/lapse-runs": {
      "get": {
        "tags": [
          "PolicyLapse"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PolicyLapseRunDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PolicyLapseRunDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PolicyLapseRunDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "PolicyLapse"
        ],
        "parameters": [
          {
            "name": "preview",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyLapseRunResultDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyLapseRunResultDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyLapseRunResultDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/policylink/{id}": {
      "get": {
        "tags": [
          "PolicyLink"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyLinkDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyLinkDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyLinkDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/policylink": {
      "post": {
        "tags": [
          "PolicyLink"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePolicyLinkDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePolicyLinkDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePolicyLinkDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CreatePolicyLinkDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatePolicyLinkDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatePolicyLinkDto"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "PolicyLink"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PolicyLinkDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PolicyLinkDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PolicyLinkDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/policylink/by-Customer/{Customer_details_id}": {
      "get": {
        "tags": [
          "PolicyLink"
        ],
        "parameters": [
          {
            "name": "Customer_details_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PolicyLinkDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PolicyLinkDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PolicyLinkDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/policylink/ByUserId/{UserProfileId}": {
      "get": {
        "tags": [
          "PolicyLink"
        ],
        "parameters": [
          {
            "name": "UserProfileId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PolicyLinkDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PolicyLinkDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PolicyLinkDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/policypaymentmandate/{policyId}": {
      "get": {
        "tags": [
          "PolicyPaymentMandates"
        ],
        "parameters": [
          {
            "name": "policyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyPaymentMandateDetailsDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyPaymentMandateDetailsDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyPaymentMandateDetailsDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/policypaymentmandate/{policy_payment_mandate_id}": {
      "put": {
        "tags": [
          "PolicyPaymentMandates"
        ],
        "parameters": [
          {
            "name": "policy_payment_mandate_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PolicyPaymentMandateDetailsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PolicyPaymentMandateDetailsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PolicyPaymentMandateDetailsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/policypaymentmandate": {
      "post": {
        "tags": [
          "PolicyPaymentMandates"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PolicyPaymentMandateDetailsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PolicyPaymentMandateDetailsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PolicyPaymentMandateDetailsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/policies/{policyId}/termination": {
      "get": {
        "tags": [
          "PolicyTermination"
        ],
        "parameters": [
          {
            "name": "policyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyTerminationDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyTerminationDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyTerminationDto"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "PolicyTermination"
        ],
        "parameters": [
          {
            "name": "policyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PolicyCancellationRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PolicyCancellationRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PolicyCancellationRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyTerminationRecordDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyTerminationRecordDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyTerminationRecordDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/policy-terminations/refunds-due": {
      "get": {
        "tags": [
          "PolicyTermination"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RefundDueDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RefundDueDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RefundDueDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/policy-terminations/commission-reclaim-catch-up": {
      "get": {
        "tags": [
          "PolicyTermination"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CommissionReclaimCatchUpDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommissionReclaimCatchUpDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommissionReclaimCatchUpDto"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "PolicyTermination"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CommissionReclaimCatchUpDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommissionReclaimCatchUpDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommissionReclaimCatchUpDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/products/protection": {
      "get": {
        "tags": [
          "ProtectionProducts"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProtectionProductDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProtectionProductDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProtectionProductDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/products/protection/term-range": {
      "get": {
        "tags": [
          "ProtectionProducts"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProtectionTermRange"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProtectionTermRange"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProtectionTermRange"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/products/protection/families": {
      "get": {
        "tags": [
          "ProtectionProducts"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProtectionProductFamilyDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProtectionProductFamilyDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProtectionProductFamilyDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/products/protection/admin": {
      "get": {
        "tags": [
          "ProtectionProducts"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProtectionProductAdminDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProtectionProductAdminDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProtectionProductAdminDto"
                  }
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "ProtectionProducts"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ProtectionProductUpdateDto"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ProtectionProductUpdateDto"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ProtectionProductUpdateDto"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/reports/sales-and-quotes": {
      "get": {
        "tags": [
          "Reports"
        ],
        "parameters": [
          {
            "name": "fromUtc",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "toUtc",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SalesAndQuotesDailyRow"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SalesAndQuotesDailyRow"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SalesAndQuotesDailyRow"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Security/Ip/List": {
      "get": {
        "tags": [
          "Security"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/IpAddressSettingDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/IpAddressSettingDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/IpAddressSettingDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Security/Ip/{IpAddressId}": {
      "get": {
        "tags": [
          "Security"
        ],
        "parameters": [
          {
            "name": "IpAddressId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/IpAddressSetting"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IpAddressSetting"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/IpAddressSetting"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Security/Ip/Create": {
      "post": {
        "tags": [
          "Security"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IpAddressSettingDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/IpAddressSettingDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/IpAddressSettingDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "application/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "text/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Security/Ip/Update": {
      "put": {
        "tags": [
          "Security"
        ],
        "parameters": [
          {
            "name": "Id",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Ip",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "IpRangeEnd",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "IsIpRange",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "IsSingleIpOrCidr",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "Type",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/IpAddressActionType"
            }
          },
          {
            "name": "SettingsType",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/IpAddressSettingType"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "application/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "text/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Security/Ip/{IpId}/Delete": {
      "delete": {
        "tags": [
          "Security"
        ],
        "parameters": [
          {
            "name": "IpId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              },
              "text/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Security/Ip/Log": {
      "post": {
        "tags": [
          "Security"
        ],
        "parameters": [
          {
            "name": "Id",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Ip",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "UserProfileId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "application/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "text/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Security/Ip/Check": {
      "post": {
        "tags": [
          "Security"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IpCheckDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/IpCheckDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/IpCheckDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              },
              "text/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Role/{RoleId}": {
      "get": {
        "tags": [
          "Security"
        ],
        "parameters": [
          {
            "name": "RoleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RoleDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RoleDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RoleDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Roles": {
      "get": {
        "tags": [
          "Security"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/Roles/Relations": {
      "get": {
        "tags": [
          "Security"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/Roles/Names": {
      "get": {
        "tags": [
          "Security"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/Roles/Embody": {
      "get": {
        "tags": [
          "Security"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/Roles/Permissions": {
      "get": {
        "tags": [
          "Security"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/Roles/Permissions/Grouped": {
      "get": {
        "tags": [
          "Security"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/Role/New/Create": {
      "post": {
        "tags": [
          "Security"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/Role/{RoleId}/Edit": {
      "put": {
        "tags": [
          "Security"
        ],
        "parameters": [
          {
            "name": "RoleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/Role/{RoleId}/Delete": {
      "delete": {
        "tags": [
          "Security"
        ],
        "parameters": [
          {
            "name": "RoleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/simulation/clock": {
      "get": {
        "tags": [
          "SimulationClock"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SimulationClockStatus"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SimulationClockStatus"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SimulationClockStatus"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/simulation/clock/day": {
      "get": {
        "tags": [
          "SimulationClock"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SimulationDayStatus"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SimulationDayStatus"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SimulationDayStatus"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/simulation/clock/advance-to-next-working-day": {
      "post": {
        "tags": [
          "SimulationClock"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/NextWorkingDayResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NextWorkingDayResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/NextWorkingDayResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/simulation/clock/run-day": {
      "post": {
        "tags": [
          "SimulationClock"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RunDayResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunDayResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunDayResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/simulation/clock/run-forward": {
      "get": {
        "tags": [
          "SimulationClock"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SimulationRunForwardStatus"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SimulationRunForwardStatus"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SimulationRunForwardStatus"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "SimulationClock"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunForwardRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RunForwardRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RunForwardRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SimulationRunForwardStatus"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SimulationRunForwardStatus"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SimulationRunForwardStatus"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/simulation/clock/run-forward/stop": {
      "post": {
        "tags": [
          "SimulationClock"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SimulationRunForwardStatus"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SimulationRunForwardStatus"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SimulationRunForwardStatus"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/simulation/restore-points": {
      "get": {
        "tags": [
          "SimulationRestorePoints"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RestorePointsStatus"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestorePointsStatus"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestorePointsStatus"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "SimulationRestorePoints"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/simulation/restore-points/{id}/restore": {
      "post": {
        "tags": [
          "SimulationRestorePoints"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RestoreRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RestoreRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RestoreRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/simulation/restore-points/{id}": {
      "delete": {
        "tags": [
          "SimulationRestorePoints"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/support/cases": {
      "post": {
        "tags": [
          "Support"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSupportCaseDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSupportCaseDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSupportCaseDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SupportCaseCreatedDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SupportCaseCreatedDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SupportCaseCreatedDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support/cases/{reference}": {
      "get": {
        "tags": [
          "Support"
        ],
        "parameters": [
          {
            "name": "reference",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SupportCaseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SupportCaseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SupportCaseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support/review-queue": {
      "get": {
        "tags": [
          "Support"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SupportReviewItemDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SupportReviewItemDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SupportReviewItemDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support/graph-probe": {
      "get": {
        "tags": [
          "Support"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/support/review-queue/{id}/link": {
      "post": {
        "tags": [
          "Support"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LinkReviewDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LinkReviewDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LinkReviewDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/admin/templates/documents": {
      "get": {
        "tags": [
          "TemplatesAdmin"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "TemplatesAdmin"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DocumentTemplateAdminDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DocumentTemplateAdminDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DocumentTemplateAdminDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/admin/templates/documents/{id}": {
      "get": {
        "tags": [
          "TemplatesAdmin"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "TemplatesAdmin"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DocumentTemplateAdminDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DocumentTemplateAdminDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DocumentTemplateAdminDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/admin/templates/letterheads": {
      "get": {
        "tags": [
          "TemplatesAdmin"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "TemplatesAdmin"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DocumentLetterheadAdminDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DocumentLetterheadAdminDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DocumentLetterheadAdminDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/admin/templates/letterheads/{id}": {
      "get": {
        "tags": [
          "TemplatesAdmin"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "TemplatesAdmin"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DocumentLetterheadAdminDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DocumentLetterheadAdminDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DocumentLetterheadAdminDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/admin/templates/emails": {
      "get": {
        "tags": [
          "TemplatesAdmin"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "TemplatesAdmin"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailTemplateAdminDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailTemplateAdminDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/EmailTemplateAdminDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/admin/templates/emails/{id}": {
      "get": {
        "tags": [
          "TemplatesAdmin"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "TemplatesAdmin"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailTemplateAdminDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailTemplateAdminDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/EmailTemplateAdminDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/testing/four-eyes-bypass": {
      "get": {
        "tags": [
          "TesterBypass"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TesterBypassStatusDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TesterBypassStatusDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TesterBypassStatusDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/User/Create": {
      "post": {
        "tags": [
          "User"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateUserRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateUserRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateUserRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/User/Roles": {
      "get": {
        "tags": [
          "User"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/User/Roles/Assign": {
      "post": {
        "tags": [
          "User"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AssignRolesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AssignRolesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AssignRolesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/User/{user_id}/BrokerCopies": {
      "get": {
        "tags": [
          "User"
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "brokerIds",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "format": "int32"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BrokerLinkCopy"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BrokerLinkCopy"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BrokerLinkCopy"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/User/Profile": {
      "get": {
        "tags": [
          "User"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/Users/PortalAccess": {
      "get": {
        "tags": [
          "User"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PermissionDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PermissionDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PermissionDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/Users/All": {
      "get": {
        "tags": [
          "User"
        ],
        "parameters": [
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "QueryInput",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PortalAccess",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/User/Get": {
      "get": {
        "tags": [
          "User"
        ],
        "parameters": [
          {
            "name": "Id",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/User/Update": {
      "post": {
        "tags": [
          "User"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserEditDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UserEditDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UserEditDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/User/DisableTwoFactor": {
      "post": {
        "tags": [
          "User"
        ],
        "parameters": [
          {
            "name": "Id",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/User/{user_id}": {
      "get": {
        "tags": [
          "User"
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/User/{user_id}/Embody": {
      "get": {
        "tags": [
          "User"
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/UserSearch/{query}": {
      "get": {
        "tags": [
          "User"
        ],
        "parameters": [
          {
            "name": "query",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/UserSearch/{query}/Embody": {
      "get": {
        "tags": [
          "User"
        ],
        "parameters": [
          {
            "name": "query",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/useractivity/eventtypes": {
      "get": {
        "tags": [
          "UserActivity"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/useractivity": {
      "get": {
        "tags": [
          "UserActivity"
        ],
        "parameters": [
          {
            "name": "userId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "user",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "eventType",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "performedBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fromUtc",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "toUtc",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UserActivityItemPagedResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserActivityItemPagedResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserActivityItemPagedResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/uw/{uw_details_id}": {
      "get": {
        "tags": [
          "UW"
        ],
        "parameters": [
          {
            "name": "uw_details_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UWDetailsDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UWDetailsDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UWDetailsDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "UW"
        ],
        "parameters": [
          {
            "name": "uw_details_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UWDetailsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UWDetailsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UWDetailsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/uw": {
      "post": {
        "tags": [
          "UW"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UWDetailsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UWDetailsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UWDetailsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "get": {
        "tags": [
          "UW"
        ],
        "parameters": [
          {
            "name": "uwDetailsIds",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "format": "int32"
              }
            }
          },
          {
            "name": "includeMissing",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UWDetailsDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UWDetailsDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UWDetailsDto"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AccountPeriodRowDto": {
        "type": "object",
        "properties": {
          "accountingPeriodId": {
            "type": "integer",
            "format": "int32"
          },
          "periodNo": {
            "type": "integer",
            "format": "int32"
          },
          "startDate": {
            "type": "string",
            "format": "date-time"
          },
          "endDate": {
            "type": "string",
            "format": "date-time"
          },
          "statusId": {
            "type": "integer",
            "format": "int32"
          },
          "openingBalance": {
            "type": "number",
            "format": "double"
          },
          "periodDebit": {
            "type": "number",
            "format": "double"
          },
          "periodCredit": {
            "type": "number",
            "format": "double"
          },
          "closingBalance": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "AccountPeriodSummaryDto": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "integer",
            "format": "int32"
          },
          "accountCode": {
            "type": "string",
            "nullable": true
          },
          "accountName": {
            "type": "string",
            "nullable": true
          },
          "accountClassId": {
            "type": "integer",
            "format": "int32"
          },
          "isControlAccount": {
            "type": "boolean"
          },
          "ledgerId": {
            "type": "integer",
            "format": "int32"
          },
          "ledgerCode": {
            "type": "string",
            "nullable": true
          },
          "ledgerName": {
            "type": "string",
            "nullable": true
          },
          "financialYear": {
            "type": "integer",
            "format": "int32"
          },
          "financialYears": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          },
          "currentPeriodId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "broughtForward": {
            "type": "number",
            "format": "double"
          },
          "periods": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AccountPeriodRowDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AccountingPeriodDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "ledgerId": {
            "type": "integer",
            "format": "int32"
          },
          "financialYear": {
            "type": "integer",
            "format": "int32"
          },
          "periodNo": {
            "type": "integer",
            "format": "int32"
          },
          "startDate": {
            "type": "string",
            "format": "date-time"
          },
          "endDate": {
            "type": "string",
            "format": "date-time"
          },
          "statusId": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "AccrualRunResponseDto": {
        "type": "object",
        "properties": {
          "debtsOpened": {
            "type": "integer",
            "format": "int32"
          },
          "advancedTotal": {
            "type": "number",
            "format": "double"
          },
          "recoveries": {
            "type": "integer",
            "format": "int32"
          },
          "reversals": {
            "type": "integer",
            "format": "int32"
          },
          "recoveredTotal": {
            "type": "number",
            "format": "double"
          },
          "debtsSettled": {
            "type": "integer",
            "format": "int32"
          },
          "nonIndemnityAdjustments": {
            "type": "integer",
            "format": "int32"
          },
          "nonIndemnityCreditedTotal": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "AddressDto": {
        "type": "object",
        "properties": {
          "addressLine1": {
            "type": "string",
            "nullable": true
          },
          "addressLine2": {
            "type": "string",
            "nullable": true
          },
          "addressLine3": {
            "type": "string",
            "nullable": true
          },
          "townCity": {
            "type": "string",
            "nullable": true
          },
          "country": {
            "type": "string",
            "nullable": true
          },
          "postCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdminAllBankDetailsDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "policyId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "accountNumber": {
            "type": "string",
            "nullable": true
          },
          "accountName": {
            "type": "string",
            "nullable": true
          },
          "sortCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdminAllBankDetailsDtoPagedResult": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminAllBankDetailsDto"
            },
            "nullable": true
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "AdminAllBenefitDetailsDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "productType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "groupType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "planType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "paymentFrequency": {
            "type": "string",
            "nullable": true
          },
          "paymentAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdminAllBenefitDetailsDtoPagedResult": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminAllBenefitDetailsDto"
            },
            "nullable": true
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "AdminAllBrokerDetailsDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "brokerCompanyId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "networkId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "mortgageclubId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "fcaNo": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "firstnames": {
            "type": "string",
            "nullable": true
          },
          "surname": {
            "type": "string",
            "nullable": true
          },
          "brokerCompany": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdminAllBrokerDetailsDtoPagedResult": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminAllBrokerDetailsDto"
            },
            "nullable": true
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "AdminAllCustomerDetailsDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "fullname": {
            "type": "string",
            "nullable": true
          },
          "surname": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "postCode": {
            "type": "string",
            "nullable": true
          },
          "createdOnUTC": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "hasUserAccount": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "AdminAllCustomerDetailsDtoPagedResult": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminAllCustomerDetailsDto"
            },
            "nullable": true
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "AdminAllDoctorDetailsDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "surgeryName": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "firstnames": {
            "type": "string",
            "nullable": true
          },
          "surname": {
            "type": "string",
            "nullable": true
          },
          "address1": {
            "type": "string",
            "nullable": true
          },
          "address2": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "workTelephone": {
            "type": "string",
            "nullable": true
          },
          "mobileTelephone": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdminAllDoctorDetailsDtoPagedResult": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminAllDoctorDetailsDto"
            },
            "nullable": true
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "AdminAllPolicesDetailsDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "policyNumber": {
            "type": "string",
            "nullable": true
          },
          "statusId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "brokerDetailsId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "bankDetailsId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdminAllPolicesDetailsDtoPagedResult": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminAllPolicesDetailsDto"
            },
            "nullable": true
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "AdminAllPolicyPaymentMandateDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "statusId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "premiumAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "collectionDayOfMonth": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdminAllPolicyPaymentMandateDtoPagedResult": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminAllPolicyPaymentMandateDto"
            },
            "nullable": true
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "AdminAllUWDetailsDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "refNo": {
            "type": "string",
            "nullable": true
          },
          "statusId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "statusName": {
            "type": "string",
            "nullable": true
          },
          "enquiryId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdminAllUWDetailsDtoPagedResult": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminAllUWDetailsDto"
            },
            "nullable": true
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "AdminPolicyCountsDto": {
        "type": "object",
        "properties": {
          "bond": {
            "type": "integer",
            "format": "int32"
          },
          "life": {
            "type": "integer",
            "format": "int32"
          },
          "total": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "AiAbilityDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "audiences": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "permission": {
            "type": "string",
            "nullable": true
          },
          "enabled": {
            "type": "boolean"
          },
          "changedBy": {
            "type": "string",
            "nullable": true
          },
          "changedUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AiConversationDetailDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "userName": {
            "type": "string",
            "nullable": true
          },
          "audience": {
            "type": "string",
            "nullable": true
          },
          "startedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "lastActivityUtc": {
            "type": "string",
            "format": "date-time"
          },
          "messages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AiMessageDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AiConversationListItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "userName": {
            "type": "string",
            "nullable": true
          },
          "audience": {
            "type": "string",
            "nullable": true
          },
          "startedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "lastActivityUtc": {
            "type": "string",
            "format": "date-time"
          },
          "questions": {
            "type": "integer",
            "format": "int32"
          },
          "firstQuestion": {
            "type": "string",
            "nullable": true
          },
          "inputTokens": {
            "type": "integer",
            "format": "int64"
          },
          "outputTokens": {
            "type": "integer",
            "format": "int64"
          }
        },
        "additionalProperties": false
      },
      "AiConversationPageDto": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AiConversationListItemDto"
            },
            "nullable": true
          },
          "total": {
            "type": "integer",
            "format": "int32"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "AiMessageDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "role": {
            "type": "string",
            "nullable": true
          },
          "content": {
            "type": "string",
            "nullable": true
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "model": {
            "type": "string",
            "nullable": true
          },
          "stopReason": {
            "type": "string",
            "nullable": true
          },
          "inputTokens": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "outputTokens": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "durationMs": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "toolCalls": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AiToolCallDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AiToolCallDto": {
        "type": "object",
        "properties": {
          "toolName": {
            "type": "string",
            "nullable": true
          },
          "arguments": {
            "type": "string",
            "nullable": true
          },
          "requestPath": {
            "type": "string",
            "nullable": true
          },
          "httpStatus": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "succeeded": {
            "type": "boolean"
          },
          "resultLength": {
            "type": "integer",
            "format": "int32"
          },
          "durationMs": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "AiUsageByDayDto": {
        "type": "object",
        "properties": {
          "day": {
            "type": "string",
            "format": "date-time"
          },
          "questions": {
            "type": "integer",
            "format": "int32"
          },
          "inputTokens": {
            "type": "integer",
            "format": "int64"
          },
          "outputTokens": {
            "type": "integer",
            "format": "int64"
          },
          "estimatedCost": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "AiUsageByToolDto": {
        "type": "object",
        "properties": {
          "toolName": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "calls": {
            "type": "integer",
            "format": "int32"
          },
          "failed": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "AiUsageByUserDto": {
        "type": "object",
        "properties": {
          "userName": {
            "type": "string",
            "nullable": true
          },
          "audience": {
            "type": "string",
            "nullable": true
          },
          "questions": {
            "type": "integer",
            "format": "int32"
          },
          "inputTokens": {
            "type": "integer",
            "format": "int64"
          },
          "outputTokens": {
            "type": "integer",
            "format": "int64"
          },
          "estimatedCost": {
            "type": "number",
            "format": "double"
          },
          "lastUsedUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "AiUsageSummaryDto": {
        "type": "object",
        "properties": {
          "fromUtc": {
            "type": "string",
            "format": "date-time"
          },
          "toUtc": {
            "type": "string",
            "format": "date-time"
          },
          "questions": {
            "type": "integer",
            "format": "int32"
          },
          "conversations": {
            "type": "integer",
            "format": "int32"
          },
          "users": {
            "type": "integer",
            "format": "int32"
          },
          "unanswered": {
            "type": "integer",
            "format": "int32"
          },
          "lookups": {
            "type": "integer",
            "format": "int32"
          },
          "failedLookups": {
            "type": "integer",
            "format": "int32"
          },
          "inputTokens": {
            "type": "integer",
            "format": "int64"
          },
          "outputTokens": {
            "type": "integer",
            "format": "int64"
          },
          "estimatedCost": {
            "type": "number",
            "format": "double"
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "inputPricePerMillion": {
            "type": "number",
            "format": "double"
          },
          "outputPricePerMillion": {
            "type": "number",
            "format": "double"
          },
          "retentionDays": {
            "type": "integer",
            "format": "int32"
          },
          "byUser": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AiUsageByUserDto"
            },
            "nullable": true
          },
          "byDay": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AiUsageByDayDto"
            },
            "nullable": true
          },
          "byTool": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AiUsageByToolDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AllTablesChanges": {
        "type": "object",
        "properties": {
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TableChangeEvent"
            },
            "nullable": true
          },
          "tablesSearched": {
            "type": "integer",
            "format": "int32"
          },
          "skipped": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ApiLogoutRequest": {
        "type": "object",
        "properties": {
          "refresh_token": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ApiRefreshRequest": {
        "type": "object",
        "properties": {
          "access_token": {
            "type": "string",
            "nullable": true
          },
          "refresh_token": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AppApplicantDetailsDto": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "nullable": true
          },
          "forenames": {
            "type": "string",
            "nullable": true
          },
          "surname": {
            "type": "string",
            "nullable": true
          },
          "gender": {
            "type": "string",
            "nullable": true
          },
          "dateOfBirth": {
            "type": "string",
            "format": "date"
          },
          "smokerStatus": {
            "type": "string",
            "nullable": true
          },
          "dateLastSmoked": {
            "type": "string",
            "nullable": true
          },
          "nationality": {
            "type": "string",
            "nullable": true
          },
          "address": {
            "$ref": "#/components/schemas/AddressDto"
          },
          "telephoneNumber": {
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "type": "string",
            "nullable": true
          },
          "confirmEmailAddress": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AppBankDetailsDto": {
        "type": "object",
        "properties": {
          "accountName": {
            "type": "string",
            "nullable": true
          },
          "sortCode": {
            "type": "string",
            "nullable": true
          },
          "accountNumber": {
            "type": "string",
            "nullable": true
          },
          "preferredDirectDebitDay": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "AppClientDeclarationDto": {
        "type": "object",
        "properties": {
          "agreed": {
            "type": "boolean"
          },
          "signedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AppClientDetailsDto": {
        "type": "object",
        "properties": {
          "primaryApplicant": {
            "$ref": "#/components/schemas/AppApplicantDetailsDto"
          },
          "secondApplicant": {
            "$ref": "#/components/schemas/AppApplicantDetailsDto"
          }
        },
        "additionalProperties": false
      },
      "AppDoctorDetailsDto": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "nullable": true
          },
          "forenames": {
            "type": "string",
            "nullable": true
          },
          "surname": {
            "type": "string",
            "nullable": true
          },
          "surgeryName": {
            "type": "string",
            "nullable": true
          },
          "addressLine1": {
            "type": "string",
            "nullable": true
          },
          "addressLine2": {
            "type": "string",
            "nullable": true
          },
          "addressLine3": {
            "type": "string",
            "nullable": true
          },
          "townCity": {
            "type": "string",
            "nullable": true
          },
          "postCode": {
            "type": "string",
            "nullable": true
          },
          "telephoneNumber": {
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "type": "string",
            "nullable": true
          },
          "registeredLessThanSixMonths": {
            "type": "string",
            "nullable": true
          },
          "titleJoint": {
            "type": "string",
            "nullable": true
          },
          "forenamesJoint": {
            "type": "string",
            "nullable": true
          },
          "surnameJoint": {
            "type": "string",
            "nullable": true
          },
          "surgeryNameJoint": {
            "type": "string",
            "nullable": true
          },
          "addressLine1Joint": {
            "type": "string",
            "nullable": true
          },
          "addressLine2Joint": {
            "type": "string",
            "nullable": true
          },
          "addressLine3Joint": {
            "type": "string",
            "nullable": true
          },
          "townCityJoint": {
            "type": "string",
            "nullable": true
          },
          "postCodeJoint": {
            "type": "string",
            "nullable": true
          },
          "telephoneNumberJoint": {
            "type": "string",
            "nullable": true
          },
          "emailAddressJoint": {
            "type": "string",
            "nullable": true
          },
          "registeredLessThanSixMonthsJoint": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AppEamraConsentDto": {
        "type": "object",
        "properties": {
          "authoriseMedicalAccess": {
            "type": "string",
            "nullable": true
          },
          "requestCopyOfReport": {
            "type": "string",
            "nullable": true
          },
          "consentTimestampUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "authoriseMedicalAccessJoint": {
            "type": "string",
            "nullable": true
          },
          "requestCopyOfReportJoint": {
            "type": "string",
            "nullable": true
          },
          "consentTimestampJointUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AppMedicalHistoryDto": {
        "type": "object",
        "properties": {
          "heightCm": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "weightKg": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "occupation": {
            "type": "string",
            "nullable": true
          },
          "occupationCode": {
            "type": "string",
            "nullable": true
          },
          "heartCondition": {
            "type": "string",
            "nullable": true
          },
          "heartConditionDetails": {
            "type": "string",
            "nullable": true
          },
          "cancerHistory": {
            "type": "string",
            "nullable": true
          },
          "cancerDetails": {
            "type": "string",
            "nullable": true
          },
          "diabetesHistory": {
            "type": "string",
            "nullable": true
          },
          "diabetesDetails": {
            "type": "string",
            "nullable": true
          },
          "mentalHealthHistory": {
            "type": "string",
            "nullable": true
          },
          "mentalHealthDetails": {
            "type": "string",
            "nullable": true
          },
          "respiratoryHistory": {
            "type": "string",
            "nullable": true
          },
          "respiratoryDetails": {
            "type": "string",
            "nullable": true
          },
          "musculoskeletalHistory": {
            "type": "string",
            "nullable": true
          },
          "musculoskeletalDetails": {
            "type": "string",
            "nullable": true
          },
          "neurologicalHistory": {
            "type": "string",
            "nullable": true
          },
          "neurologicalDetails": {
            "type": "string",
            "nullable": true
          },
          "otherConditions": {
            "type": "string",
            "nullable": true
          },
          "otherConditionsDetails": {
            "type": "string",
            "nullable": true
          },
          "heightCmJoint": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "weightKgJoint": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "occupationJoint": {
            "type": "string",
            "nullable": true
          },
          "occupationCodeJoint": {
            "type": "string",
            "nullable": true
          },
          "heartConditionJoint": {
            "type": "string",
            "nullable": true
          },
          "heartConditionDetailsJoint": {
            "type": "string",
            "nullable": true
          },
          "cancerHistoryJoint": {
            "type": "string",
            "nullable": true
          },
          "cancerDetailsJoint": {
            "type": "string",
            "nullable": true
          },
          "diabetesHistoryJoint": {
            "type": "string",
            "nullable": true
          },
          "diabetesDetailsJoint": {
            "type": "string",
            "nullable": true
          },
          "mentalHealthHistoryJoint": {
            "type": "string",
            "nullable": true
          },
          "mentalHealthDetailsJoint": {
            "type": "string",
            "nullable": true
          },
          "respiratoryHistoryJoint": {
            "type": "string",
            "nullable": true
          },
          "respiratoryDetailsJoint": {
            "type": "string",
            "nullable": true
          },
          "musculoskeletalHistoryJoint": {
            "type": "string",
            "nullable": true
          },
          "musculoskeletalDetailsJoint": {
            "type": "string",
            "nullable": true
          },
          "neurologicalHistoryJoint": {
            "type": "string",
            "nullable": true
          },
          "neurologicalDetailsJoint": {
            "type": "string",
            "nullable": true
          },
          "otherConditionsJoint": {
            "type": "string",
            "nullable": true
          },
          "otherConditionsDetailsJoint": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AppProductQuoteVariationDto": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "originalValue": {
            "type": "string",
            "nullable": true
          },
          "newValue": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AppProductSelectionDto": {
        "type": "object",
        "properties": {
          "productSelectionId": {
            "type": "string",
            "format": "uuid"
          },
          "productType": {
            "type": "integer",
            "format": "int32"
          },
          "coverBasis": {
            "type": "integer",
            "format": "int32"
          },
          "coverAmount": {
            "type": "number",
            "format": "double"
          },
          "criticalIllnessCoverAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "termYears": {
            "type": "integer",
            "format": "int32"
          },
          "benefitOwner": {
            "type": "integer",
            "format": "int32"
          },
          "premiumAmount": {
            "type": "number",
            "format": "double"
          },
          "waiverPrimary": {
            "type": "boolean"
          },
          "waiverSecond": {
            "type": "boolean"
          },
          "includesTpd": {
            "type": "boolean"
          },
          "commissionType": {
            "type": "integer",
            "format": "int32"
          },
          "commissionEntitlement": {
            "type": "number",
            "format": "double"
          },
          "isVerified": {
            "type": "boolean"
          },
          "decision": {
            "type": "integer",
            "format": "int32"
          },
          "referralNotes": {
            "type": "string",
            "nullable": true
          },
          "validQuote": {
            "type": "boolean"
          },
          "quoteDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "quoteExpiresAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lifeOnlyIllustrationUrl": {
            "type": "string",
            "nullable": true
          },
          "coreIllustrationUrl": {
            "type": "string",
            "nullable": true
          },
          "plusIllustrationUrl": {
            "type": "string",
            "nullable": true
          },
          "quoteNotes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "quoteVariations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AppProductQuoteVariationDto"
            },
            "nullable": true
          },
          "quoteNotesByTier": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "nullable": true
          },
          "quoteVariationsByTier": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AppProductQuoteVariationDto"
              }
            },
            "nullable": true
          },
          "lifeOnlyPremium": {
            "type": "number",
            "format": "double"
          },
          "corePremium": {
            "type": "number",
            "format": "double"
          },
          "plusPremium": {
            "type": "number",
            "format": "double"
          },
          "quoteHistory": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AppQuoteHistoryEntryDto"
            },
            "nullable": true
          },
          "inBasket": {
            "type": "boolean"
          },
          "basketTier": {
            "type": "string",
            "nullable": true
          },
          "purchased": {
            "type": "boolean"
          },
          "purchasedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "purchasedTier": {
            "type": "string",
            "nullable": true
          },
          "planNumber": {
            "type": "string",
            "nullable": true
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AppQuoteHistoryEntryDto": {
        "type": "object",
        "properties": {
          "quoteHistoryEntryId": {
            "type": "string",
            "format": "uuid"
          },
          "quoteDate": {
            "type": "string",
            "format": "date-time"
          },
          "coverAmount": {
            "type": "number",
            "format": "double"
          },
          "lifeOnlyReferenceNumber": {
            "type": "string",
            "nullable": true
          },
          "coreReferenceNumber": {
            "type": "string",
            "nullable": true
          },
          "plusReferenceNumber": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "AppUnderwritingDecisionDto": {
        "type": "object",
        "properties": {
          "decision": {
            "type": "integer",
            "format": "int32"
          },
          "referralNotes": {
            "type": "string",
            "nullable": true
          },
          "adviserEmail": {
            "type": "string",
            "nullable": true
          },
          "decisionAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "referredAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ApplicationJourneyResponse": {
        "type": "object",
        "properties": {
          "applicationJourneyId": {
            "type": "string",
            "format": "uuid"
          },
          "applicationReference": {
            "type": "string",
            "nullable": true
          },
          "brokerId": {
            "type": "integer",
            "format": "int32"
          },
          "currentStep": {
            "type": "string",
            "nullable": true
          },
          "furthestStep": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "isLocked": {
            "type": "boolean"
          },
          "isPreDecisionLocked": {
            "type": "boolean"
          },
          "clientDetails": {
            "$ref": "#/components/schemas/AppClientDetailsDto"
          },
          "products": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AppProductSelectionDto"
            },
            "nullable": true
          },
          "medicalHistory": {
            "$ref": "#/components/schemas/AppMedicalHistoryDto"
          },
          "eAmraConsent": {
            "$ref": "#/components/schemas/AppEamraConsentDto"
          },
          "doctorDetails": {
            "$ref": "#/components/schemas/AppDoctorDetailsDto"
          },
          "decision": {
            "$ref": "#/components/schemas/AppUnderwritingDecisionDto"
          },
          "bankDetails": {
            "$ref": "#/components/schemas/AppBankDetailsDto"
          },
          "clientDeclaration": {
            "$ref": "#/components/schemas/AppClientDeclarationDto"
          },
          "referralNotes": {
            "type": "string",
            "nullable": true
          },
          "adviserEmail": {
            "type": "string",
            "nullable": true
          },
          "referredAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "submittedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ApplicationJourneySummaryResponse": {
        "type": "object",
        "properties": {
          "applicationJourneyId": {
            "type": "string",
            "format": "uuid"
          },
          "applicationReference": {
            "type": "string",
            "nullable": true
          },
          "brokerId": {
            "type": "integer",
            "format": "int32"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "currentStep": {
            "type": "string",
            "nullable": true
          },
          "clientName": {
            "type": "string",
            "nullable": true
          },
          "plans": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PlanSummaryItem"
            },
            "nullable": true
          },
          "hasAttachment": {
            "type": "boolean"
          },
          "createdOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedOnUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "ApproveBatchRequest": {
        "type": "object",
        "properties": {
          "reviewedHash": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ApprovePayeeAccountRequest": {
        "type": "object",
        "properties": {
          "confirmModulusOverride": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "AssembleBatchRequest": {
        "type": "object",
        "properties": {
          "originatorId": {
            "type": "integer",
            "format": "int32"
          },
          "kindId": {
            "type": "integer",
            "format": "int32"
          },
          "entryDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "AssignRolesDto": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "string",
            "nullable": true
          },
          "userRoles": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "embodyEmbodiable": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "nullable": true
          },
          "embodyEmbodiableType": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          },
          "embodyPermission": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AssistantChatRequest": {
        "type": "object",
        "properties": {
          "conversationId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AssistantChatResponse": {
        "type": "object",
        "properties": {
          "conversationId": {
            "type": "integer",
            "format": "int64"
          },
          "reply": {
            "type": "string",
            "nullable": true
          },
          "toolsUsed": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AssistantToolUse"
            },
            "nullable": true
          },
          "refused": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "AssistantStatusResponse": {
        "type": "object",
        "properties": {
          "available": {
            "type": "boolean"
          },
          "audience": {
            "type": "string",
            "nullable": true
          },
          "reason": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AssistantToolUse": {
        "type": "object",
        "properties": {
          "tool": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "succeeded": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "BacsProblemFileDto": {
        "type": "object",
        "properties": {
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "documentType": {
            "type": "string",
            "nullable": true
          },
          "reportDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "receivedDatetime": {
            "type": "string",
            "format": "date-time"
          },
          "problem": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BacsReasonCodeDto": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "group": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BacsReasonCodesDto": {
        "type": "object",
        "properties": {
          "arudd": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BacsReasonCodeDto"
            },
            "nullable": true
          },
          "auddis": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BacsReasonCodeDto"
            },
            "nullable": true
          },
          "addacs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BacsReasonCodeDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BalanceSheetDto": {
        "type": "object",
        "properties": {
          "ledgerId": {
            "type": "integer",
            "format": "int32"
          },
          "ledgerCode": {
            "type": "string",
            "nullable": true
          },
          "ledgerName": {
            "type": "string",
            "nullable": true
          },
          "accountingPeriodId": {
            "type": "integer",
            "format": "int32"
          },
          "financialYear": {
            "type": "integer",
            "format": "int32"
          },
          "periodNo": {
            "type": "integer",
            "format": "int32"
          },
          "asAtDate": {
            "type": "string",
            "format": "date-time"
          },
          "assets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FinancialStatementLineDto"
            },
            "nullable": true
          },
          "liabilities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FinancialStatementLineDto"
            },
            "nullable": true
          },
          "equity": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FinancialStatementLineDto"
            },
            "nullable": true
          },
          "totalAssets": {
            "type": "number",
            "format": "double"
          },
          "totalLiabilities": {
            "type": "number",
            "format": "double"
          },
          "totalEquity": {
            "type": "number",
            "format": "double"
          },
          "unclosedResult": {
            "type": "number",
            "format": "double"
          },
          "unclosedResultCurrentYear": {
            "type": "number",
            "format": "double"
          },
          "unclosedResultPriorYears": {
            "type": "number",
            "format": "double"
          },
          "totalLiabilitiesAndEquity": {
            "type": "number",
            "format": "double"
          },
          "difference": {
            "type": "number",
            "format": "double"
          },
          "unrolledPriorYears": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BankAccountDetailDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "sortCode": {
            "type": "string",
            "nullable": true
          },
          "accountNumber": {
            "type": "string",
            "nullable": true
          },
          "iban": {
            "type": "string",
            "nullable": true
          },
          "bic": {
            "type": "string",
            "nullable": true
          },
          "currencyCode": {
            "type": "string",
            "nullable": true
          },
          "legalEntityId": {
            "type": "integer",
            "format": "int32"
          },
          "legalEntityCode": {
            "type": "string",
            "nullable": true
          },
          "legalEntityName": {
            "type": "string",
            "nullable": true
          },
          "reconcileFromDate": {
            "type": "string",
            "format": "date-time"
          },
          "openingStatementBalance": {
            "type": "number",
            "format": "double"
          },
          "isActive": {
            "type": "boolean"
          },
          "createdOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "changedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastChangeBy": {
            "type": "string",
            "nullable": true
          },
          "nominals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BankAccountNominalDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BankAccountInput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "sortCode": {
            "type": "string",
            "nullable": true
          },
          "accountNumber": {
            "type": "string",
            "nullable": true
          },
          "iban": {
            "type": "string",
            "nullable": true
          },
          "bic": {
            "type": "string",
            "nullable": true
          },
          "currencyCode": {
            "type": "string",
            "nullable": true
          },
          "legalEntityId": {
            "type": "integer",
            "format": "int32"
          },
          "reconcileFromDate": {
            "type": "string",
            "format": "date-time"
          },
          "openingStatementBalance": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "BankAccountMutationResult": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "id": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "errorCode": {
            "$ref": "#/components/schemas/BankAccountServiceError"
          },
          "error": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BankAccountNominalDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "bankAccountId": {
            "type": "integer",
            "format": "int32"
          },
          "accountId": {
            "type": "integer",
            "format": "int32"
          },
          "ledgerCode": {
            "type": "string",
            "nullable": true
          },
          "accountCode": {
            "type": "string",
            "nullable": true
          },
          "accountName": {
            "type": "string",
            "nullable": true
          },
          "shareLabel": {
            "type": "string",
            "nullable": true
          },
          "checkNonNegative": {
            "type": "boolean"
          },
          "effectiveFrom": {
            "type": "string",
            "format": "date-time"
          },
          "effectiveTo": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastChangeBy": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BankAccountNominalInput": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "integer",
            "format": "int32"
          },
          "shareLabel": {
            "type": "string",
            "nullable": true
          },
          "checkNonNegative": {
            "type": "boolean"
          },
          "effectiveFrom": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "BankAccountServiceError": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7
        ],
        "type": "integer",
        "format": "int32"
      },
      "BankAccountSummaryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "sortCodeMasked": {
            "type": "string",
            "nullable": true
          },
          "accountNumberMasked": {
            "type": "string",
            "nullable": true
          },
          "currencyCode": {
            "type": "string",
            "nullable": true
          },
          "legalEntityCode": {
            "type": "string",
            "nullable": true
          },
          "reconcileFromDate": {
            "type": "string",
            "format": "date-time"
          },
          "isActive": {
            "type": "boolean"
          },
          "nominals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BankAccountNominalDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BankAccountUpdateInput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "reconcileFromDate": {
            "type": "string",
            "format": "date-time"
          },
          "openingStatementBalance": {
            "type": "number",
            "format": "double"
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "BankApplyAllRequest": {
        "type": "object",
        "properties": {
          "accountName": {
            "type": "string",
            "nullable": true
          },
          "accountNumber": {
            "type": "string",
            "nullable": true
          },
          "sortCode": {
            "type": "string",
            "nullable": true
          },
          "mandateRef": {
            "type": "string",
            "nullable": true
          },
          "ddCollectionDay": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BankAutoMatchResult": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "notFound": {
            "type": "boolean"
          },
          "error": {
            "type": "string",
            "nullable": true
          },
          "referenceGroups": {
            "type": "integer",
            "format": "int32"
          },
          "internalTransferGroups": {
            "type": "integer",
            "format": "int32"
          },
          "draftJournalGroups": {
            "type": "integer",
            "format": "int32"
          },
          "statementLinesMatched": {
            "type": "integer",
            "format": "int32"
          },
          "glLinesMatched": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "BankDetailsBatchResponseDto": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BankDetailsResponseDto"
            },
            "nullable": true
          },
          "missingIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          },
          "retrievedAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "BankDetailsRequestDto": {
        "type": "object",
        "properties": {
          "sortCode": {
            "type": "string",
            "nullable": true
          },
          "accountNumber": {
            "type": "string",
            "nullable": true
          },
          "accountName": {
            "type": "string",
            "nullable": true
          },
          "policyId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "ddCollectionDay": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "dateOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "mandateRef": {
            "type": "string",
            "nullable": true
          },
          "lastChangedBy": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BankDetailsResponseDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "sortCode": {
            "type": "string",
            "nullable": true
          },
          "accountNumber": {
            "type": "string",
            "nullable": true
          },
          "accountName": {
            "type": "string",
            "nullable": true
          },
          "ddCollectionDay": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "dateOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "mandateRef": {
            "type": "string",
            "nullable": true
          },
          "lastChangedBy": {
            "type": "string",
            "nullable": true
          },
          "changedOnUTC": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdOnUTC": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BankLineJournalRequest": {
        "type": "object",
        "properties": {
          "nominalAccountId": {
            "type": "integer",
            "format": "int32"
          },
          "contraAccountId": {
            "type": "integer",
            "format": "int32"
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BankManualMatchRequest": {
        "type": "object",
        "properties": {
          "statementLineIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "journalLineIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BankMatchError": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11,
          12
        ],
        "type": "integer",
        "format": "int32"
      },
      "BankMatchGroupDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "matchTypeId": {
            "type": "integer",
            "format": "int32"
          },
          "matchTypeName": {
            "type": "string",
            "nullable": true
          },
          "statementTotal": {
            "type": "number",
            "format": "double"
          },
          "glTotal": {
            "type": "number",
            "format": "double"
          },
          "latestDate": {
            "type": "string",
            "format": "date-time"
          },
          "matchedOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "matchedBy": {
            "type": "string",
            "nullable": true
          },
          "statementLines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BankMatchGroupStatementLineDto"
            },
            "nullable": true
          },
          "glLines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BankMatchGroupGlLineDto"
            },
            "nullable": true
          },
          "canUnmatch": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "BankMatchGroupGlLineDto": {
        "type": "object",
        "properties": {
          "journalLineId": {
            "type": "integer",
            "format": "int64"
          },
          "journalId": {
            "type": "integer",
            "format": "int64"
          },
          "journalNo": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "ledgerCode": {
            "type": "string",
            "nullable": true
          },
          "accountCode": {
            "type": "string",
            "nullable": true
          },
          "effectiveDate": {
            "type": "string",
            "format": "date-time"
          },
          "value": {
            "type": "number",
            "format": "double"
          },
          "sourceReference": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BankMatchGroupStatementLineDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "bookingDate": {
            "type": "string",
            "format": "date-time"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "bankReference": {
            "type": "string",
            "nullable": true
          },
          "counterpartyName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BankMatchMutationResult": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "id": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "errorCode": {
            "$ref": "#/components/schemas/BankMatchError"
          },
          "error": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BankMatchReasonRequest": {
        "type": "object",
        "properties": {
          "reason": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BankMatchSettingsDto": {
        "type": "object",
        "properties": {
          "referenceWindowBusinessDays": {
            "type": "integer",
            "format": "int32"
          },
          "amountWindowBusinessDays": {
            "type": "integer",
            "format": "int32"
          },
          "staleAfterDays": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "BankMatchSuggestionDto": {
        "type": "object",
        "properties": {
          "statementLineId": {
            "type": "integer",
            "format": "int64"
          },
          "journalLineId": {
            "type": "integer",
            "format": "int64"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "statementDate": {
            "type": "string",
            "format": "date-time"
          },
          "glDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "BankMatchWorkbenchDto": {
        "type": "object",
        "properties": {
          "bankAccountId": {
            "type": "integer",
            "format": "int32"
          },
          "bankAccountName": {
            "type": "string",
            "nullable": true
          },
          "reconcileFromDate": {
            "type": "string",
            "format": "date-time"
          },
          "from": {
            "type": "string",
            "format": "date-time"
          },
          "to": {
            "type": "string",
            "format": "date-time"
          },
          "settings": {
            "$ref": "#/components/schemas/BankMatchSettingsDto"
          },
          "nominals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BankAccountNominalDto"
            },
            "nullable": true
          },
          "statementLines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BankWorkbenchStatementLineDto"
            },
            "nullable": true
          },
          "glLines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BankWorkbenchGlLineDto"
            },
            "nullable": true
          },
          "suggestions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BankMatchSuggestionDto"
            },
            "nullable": true
          },
          "groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BankMatchGroupDto"
            },
            "nullable": true
          },
          "unmatchedStatementLines": {
            "type": "integer",
            "format": "int32"
          },
          "openGlLines": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "BankReconciliationDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "bankAccountId": {
            "type": "integer",
            "format": "int32"
          },
          "asAtDate": {
            "type": "string",
            "format": "date-time"
          },
          "statementBalance": {
            "type": "number",
            "format": "double"
          },
          "unclearedTotal": {
            "type": "number",
            "format": "double"
          },
          "unpresentedTotal": {
            "type": "number",
            "format": "double"
          },
          "unrecordedReceipts": {
            "type": "number",
            "format": "double"
          },
          "unrecordedPayments": {
            "type": "number",
            "format": "double"
          },
          "adjustedBankBalance": {
            "type": "number",
            "format": "double"
          },
          "nominalTotal": {
            "type": "number",
            "format": "double"
          },
          "difference": {
            "type": "number",
            "format": "double"
          },
          "statusId": {
            "type": "integer",
            "format": "int32"
          },
          "statusName": {
            "type": "string",
            "nullable": true
          },
          "preparedBy": {
            "type": "string",
            "nullable": true
          },
          "firstPreparedBy": {
            "type": "string",
            "nullable": true
          },
          "preparedOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "signedOffBy": {
            "type": "string",
            "nullable": true
          },
          "signedOffOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "signOffModeId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "signOffModeName": {
            "type": "string",
            "nullable": true
          },
          "reopenedBy": {
            "type": "string",
            "nullable": true
          },
          "reopenedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "reopenReason": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BankReconciliationError": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11
        ],
        "type": "integer",
        "format": "int32"
      },
      "BankReconciliationGlItemDto": {
        "type": "object",
        "properties": {
          "journalLineId": {
            "type": "integer",
            "format": "int64"
          },
          "journalId": {
            "type": "integer",
            "format": "int64"
          },
          "journalNo": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "ledgerCode": {
            "type": "string",
            "nullable": true
          },
          "accountId": {
            "type": "integer",
            "format": "int32"
          },
          "accountCode": {
            "type": "string",
            "nullable": true
          },
          "effectiveDate": {
            "type": "string",
            "format": "date-time"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "sourceReference": {
            "type": "string",
            "nullable": true
          },
          "isStale": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "BankReconciliationMutationResult": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "id": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "errorCode": {
            "$ref": "#/components/schemas/BankReconciliationError"
          },
          "error": {
            "type": "string",
            "nullable": true
          },
          "signOffModeId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BankReconciliationNominalDto": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "integer",
            "format": "int32"
          },
          "ledgerCode": {
            "type": "string",
            "nullable": true
          },
          "accountCode": {
            "type": "string",
            "nullable": true
          },
          "shareLabel": {
            "type": "string",
            "nullable": true
          },
          "balance": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "BankReconciliationPrepareRequest": {
        "type": "object",
        "properties": {
          "asAtDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "BankReconciliationReportDto": {
        "type": "object",
        "properties": {
          "bankAccountId": {
            "type": "integer",
            "format": "int32"
          },
          "bankAccountName": {
            "type": "string",
            "nullable": true
          },
          "asAtDate": {
            "type": "string",
            "format": "date-time"
          },
          "reconcileFromDate": {
            "type": "string",
            "format": "date-time"
          },
          "statementId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "statementRef": {
            "type": "string",
            "nullable": true
          },
          "statementClosingDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "statementBalance": {
            "type": "number",
            "format": "double"
          },
          "statementRolledForwardLines": {
            "type": "integer",
            "format": "int32"
          },
          "statementRolledForwardAmount": {
            "type": "number",
            "format": "double"
          },
          "unclearedLodgements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BankReconciliationGlItemDto"
            },
            "nullable": true
          },
          "unpresentedPayments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BankReconciliationGlItemDto"
            },
            "nullable": true
          },
          "unrecordedReceipts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BankReconciliationStatementItemDto"
            },
            "nullable": true
          },
          "unrecordedPayments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BankReconciliationStatementItemDto"
            },
            "nullable": true
          },
          "unclearedTotal": {
            "type": "number",
            "format": "double"
          },
          "unpresentedTotal": {
            "type": "number",
            "format": "double"
          },
          "unrecordedReceiptsTotal": {
            "type": "number",
            "format": "double"
          },
          "unrecordedPaymentsTotal": {
            "type": "number",
            "format": "double"
          },
          "adjustedBankBalance": {
            "type": "number",
            "format": "double"
          },
          "nominals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BankReconciliationNominalDto"
            },
            "nullable": true
          },
          "nominalTotal": {
            "type": "number",
            "format": "double"
          },
          "difference": {
            "type": "number",
            "format": "double"
          },
          "staleAfterDays": {
            "type": "integer",
            "format": "int32"
          },
          "staleCount": {
            "type": "integer",
            "format": "int32"
          },
          "reconciliation": {
            "$ref": "#/components/schemas/BankReconciliationDto"
          },
          "signedOffThrough": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "earliestOpenRecDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BankReconciliationStatementItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "statementId": {
            "type": "integer",
            "format": "int32"
          },
          "bookingDate": {
            "type": "string",
            "format": "date-time"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "bankReference": {
            "type": "string",
            "nullable": true
          },
          "counterpartyName": {
            "type": "string",
            "nullable": true
          },
          "remittanceInfo": {
            "type": "string",
            "nullable": true
          },
          "isStale": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "BankShareCheckDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "bankAccountId": {
            "type": "integer",
            "format": "int32"
          },
          "bankAccountName": {
            "type": "string",
            "nullable": true
          },
          "bankAccountNominalId": {
            "type": "integer",
            "format": "int32"
          },
          "accountId": {
            "type": "integer",
            "format": "int32"
          },
          "ledgerCode": {
            "type": "string",
            "nullable": true
          },
          "accountCode": {
            "type": "string",
            "nullable": true
          },
          "shareLabel": {
            "type": "string",
            "nullable": true
          },
          "checkDate": {
            "type": "string",
            "format": "date-time"
          },
          "balance": {
            "type": "number",
            "format": "double"
          },
          "statusId": {
            "type": "integer",
            "format": "int32"
          },
          "detectedOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "emailSent": {
            "type": "boolean"
          },
          "acknowledgedBy": {
            "type": "string",
            "nullable": true
          },
          "acknowledgedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "acknowledgeNote": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BankShareCheckError": {
        "enum": [
          0,
          1,
          2,
          3
        ],
        "type": "integer",
        "format": "int32"
      },
      "BankShareCheckMutationResult": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "id": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "errorCode": {
            "$ref": "#/components/schemas/BankShareCheckError"
          },
          "error": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BankShareCheckRunResult": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "error": {
            "type": "string",
            "nullable": true
          },
          "checkDate": {
            "type": "string",
            "format": "date-time"
          },
          "mappingsChecked": {
            "type": "integer",
            "format": "int32"
          },
          "breaches": {
            "type": "integer",
            "format": "int32"
          },
          "newBreaches": {
            "type": "integer",
            "format": "int32"
          },
          "emailSent": {
            "type": "boolean"
          },
          "emailNote": {
            "type": "string",
            "nullable": true
          },
          "breachDetails": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BankShareCheckDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BankStatementDetailDto": {
        "type": "object",
        "properties": {
          "statement": {
            "$ref": "#/components/schemas/BankStatementSummaryDto"
          },
          "bankAccountName": {
            "type": "string",
            "nullable": true
          },
          "messageId": {
            "type": "string",
            "nullable": true
          },
          "lines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BankStatementLineDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BankStatementImportError": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7
        ],
        "type": "integer",
        "format": "int32"
      },
      "BankStatementImportResult": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "errorCode": {
            "$ref": "#/components/schemas/BankStatementImportError"
          },
          "error": {
            "type": "string",
            "nullable": true
          },
          "problems": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "statementIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          },
          "linesImported": {
            "type": "integer",
            "format": "int32"
          },
          "pendingSkipped": {
            "type": "integer",
            "format": "int32"
          },
          "duplicatesSkipped": {
            "type": "integer",
            "format": "int32"
          },
          "autoMatchedLines": {
            "type": "integer",
            "format": "int32"
          },
          "autoMatchNote": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BankStatementLineDetailDto": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "endToEndId": {
            "type": "string",
            "nullable": true
          },
          "instructionId": {
            "type": "string",
            "nullable": true
          },
          "mandateId": {
            "type": "string",
            "nullable": true
          },
          "remittanceInfo": {
            "type": "string",
            "nullable": true
          },
          "counterpartyName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BankStatementLineDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "bookingDate": {
            "type": "string",
            "format": "date-time"
          },
          "valueDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "bankReference": {
            "type": "string",
            "nullable": true
          },
          "endToEndId": {
            "type": "string",
            "nullable": true
          },
          "instructionId": {
            "type": "string",
            "nullable": true
          },
          "mandateId": {
            "type": "string",
            "nullable": true
          },
          "bankTxCode": {
            "type": "string",
            "nullable": true
          },
          "remittanceInfo": {
            "type": "string",
            "nullable": true
          },
          "counterpartyName": {
            "type": "string",
            "nullable": true
          },
          "counterpartyAccountMasked": {
            "type": "string",
            "nullable": true
          },
          "matchStatusId": {
            "type": "integer",
            "format": "int32"
          },
          "matchGroupId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "excludeReason": {
            "type": "string",
            "nullable": true
          },
          "draftJournalId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "detailCount": {
            "type": "integer",
            "format": "int32"
          },
          "details": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BankStatementLineDetailDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BankStatementSummaryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "bankAccountId": {
            "type": "integer",
            "format": "int32"
          },
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "statementId": {
            "type": "string",
            "nullable": true
          },
          "electronicSeqNo": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "fromDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "toDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "openingBalance": {
            "type": "number",
            "format": "double"
          },
          "openingBalanceDate": {
            "type": "string",
            "format": "date-time"
          },
          "closingBalance": {
            "type": "number",
            "format": "double"
          },
          "closingBalanceDate": {
            "type": "string",
            "format": "date-time"
          },
          "statusId": {
            "type": "integer",
            "format": "int32"
          },
          "lineCount": {
            "type": "integer",
            "format": "int32"
          },
          "unmatchedCount": {
            "type": "integer",
            "format": "int32"
          },
          "pendingSkipped": {
            "type": "integer",
            "format": "int32"
          },
          "duplicatesSkipped": {
            "type": "integer",
            "format": "int32"
          },
          "continuityOverrideReason": {
            "type": "string",
            "nullable": true
          },
          "importedOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "importedBy": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BankStatementUploadRequest": {
        "type": "object",
        "properties": {
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "content": {
            "type": "string",
            "format": "byte",
            "nullable": true
          },
          "continuityOverrideReason": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BankWorkbenchGlLineDto": {
        "type": "object",
        "properties": {
          "journalLineId": {
            "type": "integer",
            "format": "int64"
          },
          "journalId": {
            "type": "integer",
            "format": "int64"
          },
          "journalNo": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "batchId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "ledgerId": {
            "type": "integer",
            "format": "int32"
          },
          "ledgerCode": {
            "type": "string",
            "nullable": true
          },
          "accountId": {
            "type": "integer",
            "format": "int32"
          },
          "accountCode": {
            "type": "string",
            "nullable": true
          },
          "effectiveDate": {
            "type": "string",
            "format": "date-time"
          },
          "debit": {
            "type": "number",
            "format": "double"
          },
          "credit": {
            "type": "number",
            "format": "double"
          },
          "value": {
            "type": "number",
            "format": "double"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "narrative": {
            "type": "string",
            "nullable": true
          },
          "sourceReference": {
            "type": "string",
            "nullable": true
          },
          "suggestedStatementLineId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "isStale": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "BankWorkbenchStatementLineDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "statementId": {
            "type": "integer",
            "format": "int32"
          },
          "bookingDate": {
            "type": "string",
            "format": "date-time"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "bankReference": {
            "type": "string",
            "nullable": true
          },
          "endToEndId": {
            "type": "string",
            "nullable": true
          },
          "remittanceInfo": {
            "type": "string",
            "nullable": true
          },
          "counterpartyName": {
            "type": "string",
            "nullable": true
          },
          "detailCount": {
            "type": "integer",
            "format": "int32"
          },
          "matchStatusId": {
            "type": "integer",
            "format": "int32"
          },
          "excludeReason": {
            "type": "string",
            "nullable": true
          },
          "suggestedJournalLineId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "draftJournalId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "draftJournalStatusId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isStale": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "BatchJobDto": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "order": {
            "type": "integer",
            "format": "int32"
          },
          "haltChainOnFailure": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "BatchJobOutcome": {
        "type": "object",
        "properties": {
          "jobKey": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "runId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "itemsProcessed": {
            "type": "integer",
            "format": "int32"
          },
          "itemsFailed": {
            "type": "integer",
            "format": "int32"
          },
          "error": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BatchJobReport": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "lines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BatchReportLine"
            },
            "nullable": true,
            "readOnly": true
          },
          "counts": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true,
            "readOnly": true
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "readOnly": true
          },
          "error": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BatchReportLine": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "nullable": true
          },
          "reference": {
            "type": "string",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "before": {
            "type": "string",
            "nullable": true
          },
          "after": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BatchRunDetailDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "jobKey": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "triggeredBy": {
            "type": "string",
            "nullable": true
          },
          "isDryRun": {
            "type": "boolean"
          },
          "startedOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "finishedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "itemsProcessed": {
            "type": "integer",
            "format": "int32"
          },
          "itemsFailed": {
            "type": "integer",
            "format": "int32"
          },
          "warningCount": {
            "type": "integer",
            "format": "int32"
          },
          "machineName": {
            "type": "string",
            "nullable": true
          },
          "errorDetail": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "string",
            "format": "date-span",
            "nullable": true,
            "readOnly": true
          },
          "report": {
            "$ref": "#/components/schemas/BatchJobReport"
          },
          "rawReport": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BatchRunDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "jobKey": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "triggeredBy": {
            "type": "string",
            "nullable": true
          },
          "isDryRun": {
            "type": "boolean"
          },
          "startedOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "finishedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "itemsProcessed": {
            "type": "integer",
            "format": "int32"
          },
          "itemsFailed": {
            "type": "integer",
            "format": "int32"
          },
          "warningCount": {
            "type": "integer",
            "format": "int32"
          },
          "machineName": {
            "type": "string",
            "nullable": true
          },
          "errorDetail": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "string",
            "format": "date-span",
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "BatchRunOutcomeDto": {
        "type": "object",
        "properties": {
          "jobKey": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "runId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "itemsProcessed": {
            "type": "integer",
            "format": "int32"
          },
          "itemsFailed": {
            "type": "integer",
            "format": "int32"
          },
          "error": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BatchSweepDto": {
        "type": "object",
        "properties": {
          "allSucceeded": {
            "type": "boolean"
          },
          "dryRun": {
            "type": "boolean"
          },
          "jobs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BatchRunOutcomeDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BenefitCommissionDisplayDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "benefitDetailsId": {
            "type": "integer",
            "format": "int32"
          },
          "commissionType": {
            "type": "string",
            "nullable": true
          },
          "monthlyPremiumAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "paymentTerm": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "indemnityPaidDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "advisorPercentageSplit": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "advisorIndemnityAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "advisorNonIndemnityAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "advisorRenewalAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "indemnityCommissionAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "nonIndemnityCommissionAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "renewalCommissionAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "indemnityCommissionPercentage": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "nonIndemnityCommissionPercentage": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "renewalCommissionPercentage": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "ifaPercentageSplit": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "ifaIndemnityAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "ifaNonIndemnityAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "ifaRenewalAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "networkPercentageSplit": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "networkIndemnityAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "networkNonIndemnityAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "mortgageClubPercentageSplit": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "mortgageClubIndemnityAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "mortgageClubNonIndemnityAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BenefitCommissionDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "policyId": {
            "type": "integer",
            "format": "int32"
          },
          "benefitDetailsId": {
            "type": "integer",
            "format": "int32"
          },
          "brokerCompanyCommissionId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "lifeProtectionProductId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "ifaCommissionSeq": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "commissionProcessId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "commissionStatusId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "commissionStatus": {
            "type": "string",
            "nullable": true
          },
          "planCommencementDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "ifaId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "advisorId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "networkId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "mortgageClubId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "paymentTerm": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "monthlyPremiumAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "indemnityCommissionPercentage": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "nonIndemnityCommissionPercentage": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "renewalCommissionPercentage": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "mortgageClubCommissionAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "indemnityCommissionAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "nonIndemnityCommissionAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "renewalCommissionAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "ifaPercentageSplit": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "advisorPercentageSplit": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "networkPercentageSplit": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "mortgageClubPercentageSplit": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "ifaIndemnityAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "advisorIndemnityAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "networkIndemnityAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "mortgageClubIndemnityAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isNonIndemnityActive": {
            "type": "boolean"
          },
          "ifaNonIndemnityAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "advisorNonIndemnityAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "networkNonIndemnityAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "mortgageClubNonIndemnityAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "ifaRenewalAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "advisorRenewalAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "networkRenewalAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "mortgageClubRenewalAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "renewalPaymentFrequency": {
            "type": "string",
            "nullable": true
          },
          "nonIndemnityPaymentFrequency": {
            "type": "string",
            "nullable": true
          },
          "renewalPaymentStartDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "renewalPaymentEndDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "indemnityPaidDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "changedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastChangeBy": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BenefitCommissionPositionDto": {
        "type": "object",
        "properties": {
          "benefitCommissionId": {
            "type": "integer",
            "format": "int32"
          },
          "benefitDetailsId": {
            "type": "integer",
            "format": "int32"
          },
          "policyId": {
            "type": "integer",
            "format": "int32"
          },
          "policyNo": {
            "type": "string",
            "nullable": true
          },
          "commissionStatusId": {
            "type": "integer",
            "format": "int32"
          },
          "commissionStatusName": {
            "type": "string",
            "nullable": true
          },
          "monthlyPremiumAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "paymentTerm": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "indemnityCommissionAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "nonIndemnityCommissionAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "ifaPercentageSplit": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "networkPercentageSplit": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "mortgageClubPercentageSplit": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "debtOriginalAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "debtOutstandingAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "debtMonthsProcessed": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "debtStatusName": {
            "type": "string",
            "nullable": true
          },
          "monthsCleared": {
            "type": "integer",
            "format": "int32"
          },
          "creditedToRecipients": {
            "type": "number",
            "format": "double"
          },
          "productName": {
            "type": "string",
            "nullable": true
          },
          "productCoverType": {
            "type": "string",
            "nullable": true
          },
          "sumAssuredAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BenefitDetailsBatchResponseDto": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BenefitDetailsDto"
            },
            "nullable": true
          },
          "missingIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          },
          "retrievedAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "BenefitDetailsDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "productType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "groupType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "planType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "paymentFrequency": {
            "type": "string",
            "nullable": true
          },
          "paymentAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "grossPremiumAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "netPremiumAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "policyTerm": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "policyFeeAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "zeroPercentIndicator": {
            "type": "boolean",
            "nullable": true
          },
          "premiumFactor": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "termFactor": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "arrearsFactor": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "tpdType": {
            "type": "string",
            "nullable": true
          },
          "tpdTypeDescription": {
            "type": "string",
            "nullable": true
          },
          "tpdLoadingRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "tpdPremiumAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "waiverOfPremiumAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "waiverBenefitIdentifier": {
            "type": "string",
            "nullable": true
          },
          "waiverDeferredIndicator": {
            "type": "boolean",
            "nullable": true
          },
          "waiverDeferredToAge": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "productCoverType": {
            "type": "string",
            "nullable": true
          },
          "productName": {
            "type": "string",
            "nullable": true
          },
          "coverBasisType": {
            "type": "string",
            "nullable": true
          },
          "sumAssuredAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "indexationType": {
            "type": "string",
            "nullable": true
          },
          "indexationRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "interestRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "lastChangedBy": {
            "type": "string",
            "nullable": true
          },
          "changedOnUTC": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdOnUTC": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "policyIdFromLink": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "origoBenefitId": {
            "type": "string",
            "nullable": true
          },
          "indemnityCommissionPercentage": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "nonIndemnityCommissionPercentage": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "renewalCommissionPercentage": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "indemnityCommissionAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "nonIndemnityCommissionAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "renewalCommissionAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "commissionTermMonths": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "brokerSharePercentage": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BenefitDetailsRequestDto": {
        "type": "object",
        "properties": {
          "startDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "productType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "groupType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "planType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "paymentFrequency": {
            "type": "string",
            "nullable": true
          },
          "paymentAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "grossPremiumAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "netPremiumAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "policyTerm": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "policyFeeAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "zeroPercentIndicator": {
            "type": "boolean",
            "nullable": true
          },
          "premiumFactor": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "termFactor": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "arrearsFactor": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "tpdType": {
            "type": "string",
            "nullable": true
          },
          "tpdTypeDescription": {
            "type": "string",
            "nullable": true
          },
          "tpdLoadingRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "tpdPremiumAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "waiverOfPremiumAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "waiverBenefitIdentifier": {
            "type": "string",
            "nullable": true
          },
          "waiverDeferredIndicator": {
            "type": "boolean",
            "nullable": true
          },
          "waiverDeferredToAge": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "productCoverType": {
            "type": "string",
            "nullable": true
          },
          "productName": {
            "type": "string",
            "nullable": true
          },
          "coverBasisType": {
            "type": "string",
            "nullable": true
          },
          "sumAssuredAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "indexationType": {
            "type": "string",
            "nullable": true
          },
          "indexationRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "interestRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "policyIdFromLink": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BrokerCommissionDto": {
        "type": "object",
        "properties": {
          "familyId": {
            "type": "integer",
            "format": "int32"
          },
          "groupName": {
            "type": "string",
            "nullable": true
          },
          "planTypeDescription": {
            "type": "string",
            "nullable": true
          },
          "activeToSell": {
            "type": "boolean"
          },
          "commissionType": {
            "type": "integer",
            "format": "int32"
          },
          "commissionPercentage": {
            "type": "number",
            "format": "double"
          },
          "paymentTerm": {
            "type": "integer",
            "format": "int32"
          },
          "brokerCompanyPercentageSplit": {
            "type": "number",
            "format": "double"
          },
          "networkPercentageSplit": {
            "type": "number",
            "format": "double"
          },
          "mortgageClubPercentageSplit": {
            "type": "number",
            "format": "double"
          },
          "advanceIndemnityAtIssue": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "BrokerCommissionResponseDto": {
        "type": "object",
        "properties": {
          "familyId": {
            "type": "integer",
            "format": "int32"
          },
          "groupName": {
            "type": "string",
            "nullable": true
          },
          "planTypeDescription": {
            "type": "string",
            "nullable": true
          },
          "activeToSell": {
            "type": "boolean"
          },
          "commissionType": {
            "type": "integer",
            "format": "int32"
          },
          "commissionPercentage": {
            "type": "number",
            "format": "double"
          },
          "paymentTerm": {
            "type": "integer",
            "format": "int32"
          },
          "brokerCompanyPercentageSplit": {
            "type": "number",
            "format": "double"
          },
          "networkPercentageSplit": {
            "type": "number",
            "format": "double"
          },
          "mortgageClubPercentageSplit": {
            "type": "number",
            "format": "double"
          },
          "advanceIndemnityAtIssue": {
            "type": "boolean"
          },
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "commissionStatusId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "createdOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "changedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastChangeBy": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BrokerCompanyDetailsDto": {
        "required": [
          "firmName"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "statusId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "fcaNumber": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isMortgageClub": {
            "type": "boolean"
          },
          "isNetwork": {
            "type": "boolean"
          },
          "parentNetworkId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "parentNetwork": {
            "type": "string",
            "nullable": true
          },
          "parentMortgageClubId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "parentMortgageClub": {
            "type": "string",
            "nullable": true
          },
          "firmName": {
            "type": "string",
            "nullable": true
          },
          "ltroRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "direct2CustomerCode": {
            "type": "string",
            "nullable": true
          },
          "commissionPhase": {
            "type": "integer",
            "format": "int32"
          },
          "address1": {
            "type": "string",
            "nullable": true
          },
          "address2": {
            "type": "string",
            "nullable": true
          },
          "address3": {
            "type": "string",
            "nullable": true
          },
          "address4": {
            "type": "string",
            "nullable": true
          },
          "postCode": {
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "type": "string",
            "nullable": true
          },
          "workTelephone": {
            "type": "string",
            "nullable": true
          },
          "mortgageClubNumber": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "mortgageClubPercentage": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "parentMortgageClubPercentage": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "createdOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "changedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastChangeBy": {
            "type": "string",
            "nullable": true
          },
          "clearedFields": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BrokerCompanyKind": {
        "enum": [
          1,
          2,
          3
        ],
        "type": "integer",
        "format": "int32"
      },
      "BrokerCompanyRef": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "firmName": {
            "type": "string",
            "nullable": true
          },
          "kind": {
            "$ref": "#/components/schemas/BrokerCompanyKind"
          },
          "fcaNumber": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "emailAddress": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BrokerDetailsDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "brokerCompanyId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "brokerCompany": {
            "type": "string",
            "nullable": true
          },
          "personTitleId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "personTitle": {
            "type": "string",
            "nullable": true
          },
          "networkId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "network": {
            "type": "string",
            "nullable": true
          },
          "mortgageClubId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "mortgageClub": {
            "type": "string",
            "nullable": true
          },
          "fcA_No": {
            "maximum": 9999999,
            "minimum": 100000,
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "dateOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "statusId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "firstnames": {
            "type": "string",
            "nullable": true
          },
          "surname": {
            "type": "string",
            "nullable": true
          },
          "sex": {
            "type": "string",
            "nullable": true
          },
          "dateOfBirth": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "address1": {
            "type": "string",
            "nullable": true
          },
          "address2": {
            "type": "string",
            "nullable": true
          },
          "address3": {
            "type": "string",
            "nullable": true
          },
          "address4": {
            "type": "string",
            "nullable": true
          },
          "postCode": {
            "type": "string",
            "nullable": true
          },
          "countryOfResidence": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "workTelephone": {
            "type": "string",
            "nullable": true
          },
          "mobileTelephone": {
            "type": "string",
            "nullable": true
          },
          "lastChangedBy": {
            "type": "string",
            "nullable": true
          },
          "changedOnUTC": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdOnUTC": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "userProfileId": {
            "type": "string",
            "nullable": true
          },
          "brokerCompanyFCA": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "loginStatus": {
            "$ref": "#/components/schemas/BrokerLoginStatus"
          },
          "clearedFields": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BrokerEntityType": {
        "enum": [
          0,
          1,
          2,
          3
        ],
        "type": "integer",
        "format": "int32"
      },
      "BrokerFieldChange": {
        "type": "object",
        "properties": {
          "field": {
            "type": "string",
            "nullable": true
          },
          "from": {
            "type": "string",
            "nullable": true
          },
          "to": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BrokerLinkCopy": {
        "type": "object",
        "properties": {
          "brokerDetailsId": {
            "type": "integer",
            "format": "int32"
          },
          "brokerName": {
            "type": "string",
            "nullable": true
          },
          "changes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BrokerFieldChange"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BrokerListDetailsDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "brokerName": {
            "type": "string",
            "nullable": true
          },
          "parentCompany": {
            "type": "string",
            "nullable": true
          },
          "isCompany": {
            "type": "boolean"
          },
          "isMortgageClub": {
            "type": "boolean"
          },
          "isNetwork": {
            "type": "boolean"
          },
          "fcaNumber": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "hasUserAccount": {
            "type": "boolean"
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BrokerListDetailsDtoPagedResult": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BrokerListDetailsDto"
            },
            "nullable": true
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "BrokerLoginCreateRequest": {
        "required": [
          "role"
        ],
        "type": "object",
        "properties": {
          "role": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "BrokerLoginStatus": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "format": "int32"
      },
      "BrokerPolicyListItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "policyNumber": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "createdOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "changedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "clientNames": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "productNames": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "dateOnRisk": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "monthlyAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BrokerPolicyListItemDtoPagedResult": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BrokerPolicyListItemDto"
            },
            "nullable": true
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "BrokerUserProfileCreateDto": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "nullable": true
          },
          "firstnames": {
            "type": "string",
            "nullable": true
          },
          "surname": {
            "type": "string",
            "nullable": true
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "phoneNumber": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BrokerWithUserProfileCreateDto": {
        "type": "object",
        "properties": {
          "broker": {
            "$ref": "#/components/schemas/BrokerDetailsDto"
          },
          "userProfile": {
            "$ref": "#/components/schemas/BrokerUserProfileCreateDto"
          }
        },
        "additionalProperties": false
      },
      "BuyNowLoadRequest": {
        "type": "object",
        "properties": {
          "brokerId": {
            "type": "integer",
            "format": "int32"
          },
          "xmlContent": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BuyNowLoadResponse": {
        "type": "object",
        "properties": {
          "applicationJourneyId": {
            "type": "string",
            "format": "uuid"
          },
          "applicationReference": {
            "type": "string",
            "nullable": true
          },
          "isExisting": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ChangeEvent": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "nullable": true
          },
          "whenUtc": {
            "type": "string",
            "format": "date-time"
          },
          "by": {
            "type": "string",
            "nullable": true
          },
          "changes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FieldChange"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ChangePasswordRequestDto": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "string",
            "nullable": true
          },
          "currentPassword": {
            "type": "string",
            "nullable": true
          },
          "newPassword": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CheckPolicyDto": {
        "type": "object",
        "properties": {
          "policyId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "customerIdsToCheck": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "policyNo": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ClearPremiumsRequestDto": {
        "type": "object",
        "properties": {
          "benefitDetailsId": {
            "type": "integer",
            "format": "int32"
          },
          "premiumCount": {
            "type": "integer",
            "format": "int32"
          },
          "receiptDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "amountOverride": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "overrideReason": {
            "type": "string",
            "nullable": true
          },
          "waiverFunded": {
            "type": "boolean"
          },
          "fundingNominal": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ClearPremiumsResponseDto": {
        "type": "object",
        "properties": {
          "succeeded": {
            "type": "boolean"
          },
          "cleared": {
            "type": "integer",
            "format": "int32"
          },
          "total": {
            "type": "number",
            "format": "double"
          },
          "failures": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ClearanceSweepResponseDto": {
        "type": "object",
        "properties": {
          "cleared": {
            "type": "integer",
            "format": "int32"
          },
          "held": {
            "type": "integer",
            "format": "int32"
          },
          "missingDays": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "date-time"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CloseCheckDto": {
        "type": "object",
        "properties": {
          "check": {
            "type": "string",
            "nullable": true
          },
          "passed": {
            "type": "boolean"
          },
          "blocking": {
            "type": "boolean"
          },
          "detail": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CloseChecklistDto": {
        "type": "object",
        "properties": {
          "accountingPeriodId": {
            "type": "integer",
            "format": "int32"
          },
          "ledgerId": {
            "type": "integer",
            "format": "int32"
          },
          "ledgerCode": {
            "type": "string",
            "nullable": true
          },
          "financialYear": {
            "type": "integer",
            "format": "int32"
          },
          "periodNo": {
            "type": "integer",
            "format": "int32"
          },
          "statusId": {
            "type": "integer",
            "format": "int32"
          },
          "startDate": {
            "type": "string",
            "format": "date-time"
          },
          "endDate": {
            "type": "string",
            "format": "date-time"
          },
          "blocked": {
            "type": "boolean"
          },
          "checks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CloseCheckDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CoaMutationResult": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "accountId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "errorCode": {
            "$ref": "#/components/schemas/CoaServiceError"
          },
          "error": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CoaServiceError": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11
        ],
        "type": "integer",
        "format": "int32"
      },
      "CoaTemplateAccountDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "accountCode": {
            "type": "string",
            "nullable": true
          },
          "accountName": {
            "type": "string",
            "nullable": true
          },
          "accountClassId": {
            "type": "integer",
            "format": "int32"
          },
          "parentAccountCode": {
            "type": "string",
            "nullable": true
          },
          "isControlAccount": {
            "type": "boolean"
          },
          "controlTypeId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "allowManualJournal": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CoaTemplateDetailDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "templateCode": {
            "type": "string",
            "nullable": true
          },
          "templateName": {
            "type": "string",
            "nullable": true
          },
          "version": {
            "type": "integer",
            "format": "int32"
          },
          "ledgerCount": {
            "type": "integer",
            "format": "int32"
          },
          "accounts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CoaTemplateAccountDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CoaTemplateInput": {
        "type": "object",
        "properties": {
          "templateCode": {
            "type": "string",
            "nullable": true
          },
          "templateName": {
            "type": "string",
            "nullable": true
          },
          "accounts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TemplateAccountInput"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CommissionOptionsResponse": {
        "type": "object",
        "properties": {
          "families": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FamilyCommissionOption"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CommissionPolicySummaryDto": {
        "type": "object",
        "properties": {
          "policyId": {
            "type": "integer",
            "format": "int32"
          },
          "policyNo": {
            "type": "string",
            "nullable": true
          },
          "createdOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "customerNames": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "brokerName": {
            "type": "string",
            "nullable": true
          },
          "firmName": {
            "type": "string",
            "nullable": true
          },
          "benefitCount": {
            "type": "integer",
            "format": "int32"
          },
          "unmatchedCount": {
            "type": "integer",
            "format": "int32"
          },
          "debtOutstanding": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "CommissionRecipientAccountDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "recipientTypeId": {
            "type": "integer",
            "format": "int32"
          },
          "recipientTypeName": {
            "type": "string",
            "nullable": true
          },
          "partyId": {
            "type": "integer",
            "format": "int32"
          },
          "partyName": {
            "type": "string",
            "nullable": true
          },
          "balance": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "CommissionRecipientEntryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "entryTypeId": {
            "type": "integer",
            "format": "int32"
          },
          "entryTypeName": {
            "type": "string",
            "nullable": true
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "effectiveDate": {
            "type": "string",
            "format": "date-time"
          },
          "benefitCommissionId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "premiumCollectionRecordId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "commissionPaymentRunId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "narrative": {
            "type": "string",
            "nullable": true
          },
          "runningBalance": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "CommissionRecipientStatementDto": {
        "type": "object",
        "properties": {
          "account": {
            "$ref": "#/components/schemas/CommissionRecipientAccountDto"
          },
          "entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CommissionRecipientEntryDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CommissionReclaimCatchUpDto": {
        "type": "object",
        "properties": {
          "applied": {
            "type": "boolean"
          },
          "reclaimedTotal": {
            "type": "number",
            "format": "double"
          },
          "policies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CommissionReclaimCatchUpPolicyDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CommissionReclaimCatchUpPolicyDto": {
        "type": "object",
        "properties": {
          "policyId": {
            "type": "integer",
            "format": "int32"
          },
          "policyNo": {
            "type": "string",
            "nullable": true
          },
          "reclaimedTotal": {
            "type": "number",
            "format": "double"
          },
          "atRiskAmount": {
            "type": "number",
            "format": "double"
          },
          "error": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CommissionRemittanceDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "brokerCompanyId": {
            "type": "integer",
            "format": "int32"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "runDate": {
            "type": "string",
            "format": "date-time"
          },
          "paymentDate": {
            "type": "string",
            "format": "date-time"
          },
          "bacsReference": {
            "type": "string",
            "nullable": true
          },
          "transferReference": {
            "type": "string",
            "nullable": true
          },
          "statusId": {
            "type": "integer",
            "format": "int32"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "recipientEmail": {
            "type": "string",
            "nullable": true
          },
          "sentOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CompleteRegistrationRequestDto": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "nullable": true
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "newPassword": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateJournalRequest": {
        "type": "object",
        "properties": {
          "ledgerId": {
            "type": "integer",
            "format": "int32"
          },
          "accountingPeriodId": {
            "type": "integer",
            "format": "int32"
          },
          "journalDate": {
            "type": "string",
            "format": "date-time"
          },
          "effectiveDate": {
            "type": "string",
            "format": "date-time"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "lines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/JournalLineInput"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateLedgerRequest": {
        "type": "object",
        "properties": {
          "ledgerCode": {
            "type": "string",
            "nullable": true
          },
          "ledgerName": {
            "type": "string",
            "nullable": true
          },
          "legalEntityId": {
            "type": "integer",
            "format": "int32"
          },
          "ledgerTypeId": {
            "type": "integer",
            "format": "int32"
          },
          "fundId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "coaTemplateId": {
            "type": "integer",
            "format": "int32"
          },
          "currencyCode": {
            "type": "string",
            "nullable": true
          },
          "financialYear": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          },
          "interLedgerPairs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InterLedgerPairRequest"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateLedgerResult": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "ledgerId": {
            "type": "integer",
            "format": "int32"
          },
          "accountCount": {
            "type": "integer",
            "format": "int32"
          },
          "periodCount": {
            "type": "integer",
            "format": "int32"
          },
          "errorCode": {
            "$ref": "#/components/schemas/LedgerFactoryError"
          },
          "error": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateNewBusinessRequest": {
        "type": "object",
        "properties": {
          "policy": {
            "$ref": "#/components/schemas/PolicyDto"
          },
          "broker": {
            "$ref": "#/components/schemas/BrokerDetailsDto"
          },
          "bank": {
            "$ref": "#/components/schemas/BankDetailsRequestDto"
          },
          "doctor": {
            "$ref": "#/components/schemas/DoctorDetailsDto"
          },
          "uw": {
            "$ref": "#/components/schemas/UWDetailsDto"
          },
          "customers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NewBusinessCustomerDto"
            },
            "nullable": true
          },
          "benefits": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BenefitDetailsDto"
            },
            "nullable": true
          },
          "links": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LinkBlueprintDto"
            },
            "nullable": true
          },
          "skipDuplicateLinks": {
            "type": "boolean"
          },
          "quoteReference": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "commissionType": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "pricingSource": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "thirdPartyCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreatePolicyLinkDto": {
        "type": "object",
        "properties": {
          "policyId": {
            "type": "integer",
            "format": "int32"
          },
          "customerDetailsId": {
            "type": "integer",
            "format": "int32"
          },
          "benefitDetailsId": {
            "type": "integer",
            "format": "int32"
          },
          "doctorDetailsId": {
            "type": "integer",
            "format": "int32"
          },
          "uwDetailsId": {
            "type": "integer",
            "format": "int32"
          },
          "brokerDetailsId": {
            "type": "integer",
            "format": "int32"
          },
          "lastChangedBy": {
            "type": "string",
            "nullable": true
          },
          "changedOnUTC": {
            "type": "string",
            "format": "date-time"
          },
          "createdOnUTC": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "CreatePostingRuleChangeRequest": {
        "type": "object",
        "properties": {
          "changeTypeId": {
            "type": "integer",
            "format": "int32"
          },
          "targetPostingRuleId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "payload": {
            "$ref": "#/components/schemas/PostingRuleInput"
          }
        },
        "additionalProperties": false
      },
      "CreateRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateSupportCaseDto": {
        "type": "object",
        "properties": {
          "customerDetailsId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "policyId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "category": {
            "type": "string",
            "nullable": true
          },
          "subject": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "source": {
            "type": "string",
            "nullable": true
          },
          "createdByUserId": {
            "type": "string",
            "nullable": true
          },
          "createdByUser": {
            "type": "string",
            "nullable": true
          },
          "fromAddress": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateTemplateVersionResult": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "coaTemplateId": {
            "type": "integer",
            "format": "int32"
          },
          "version": {
            "type": "integer",
            "format": "int32"
          },
          "errorCode": {
            "$ref": "#/components/schemas/LedgerFactoryError"
          },
          "error": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateUserRequestDto": {
        "required": [
          "email",
          "password",
          "username"
        ],
        "type": "object",
        "properties": {
          "forenames": {
            "type": "string",
            "nullable": true
          },
          "surname": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "username": {
            "type": "string",
            "nullable": true
          },
          "password": {
            "type": "string",
            "nullable": true
          },
          "phoneNumber": {
            "type": "string",
            "nullable": true
          },
          "userRoles": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CustomerApplyAllRequest": {
        "type": "object",
        "properties": {
          "address1": {
            "type": "string",
            "nullable": true
          },
          "address2": {
            "type": "string",
            "nullable": true
          },
          "address3": {
            "type": "string",
            "nullable": true
          },
          "address4": {
            "type": "string",
            "nullable": true
          },
          "postCode": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "mobileTelephone": {
            "type": "string",
            "nullable": true
          },
          "homeTelephone": {
            "type": "string",
            "nullable": true
          },
          "workTelephone": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CustomerDetailsDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "dateOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "invNo": {
            "type": "string",
            "nullable": true
          },
          "statusId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "cinNo": {
            "type": "string",
            "nullable": true
          },
          "customerRefNo": {
            "type": "string",
            "nullable": true
          },
          "isPrimaryCustomer": {
            "type": "boolean"
          },
          "cRecType": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "personTitlesId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "surname": {
            "type": "string",
            "nullable": true
          },
          "firstname": {
            "type": "string",
            "nullable": true
          },
          "fullname": {
            "type": "string",
            "nullable": true
          },
          "hasUserAccount": {
            "type": "boolean"
          },
          "sex": {
            "type": "string",
            "nullable": true
          },
          "dateOfBirth": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "address1": {
            "type": "string",
            "nullable": true
          },
          "address2": {
            "type": "string",
            "nullable": true
          },
          "address3": {
            "type": "string",
            "nullable": true
          },
          "address4": {
            "type": "string",
            "nullable": true
          },
          "postCode": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "homeTelephone": {
            "type": "string",
            "nullable": true
          },
          "workTelephone": {
            "type": "string",
            "nullable": true
          },
          "mobileTelephone": {
            "type": "string",
            "nullable": true
          },
          "occupationTitle": {
            "type": "string",
            "nullable": true
          },
          "nationality": {
            "type": "string",
            "nullable": true
          },
          "nationality2": {
            "type": "string",
            "nullable": true
          },
          "nationality3": {
            "type": "string",
            "nullable": true
          },
          "countryOfResidence": {
            "type": "string",
            "nullable": true
          },
          "mailingAddress1": {
            "type": "string",
            "nullable": true
          },
          "mailingAddress2": {
            "type": "string",
            "nullable": true
          },
          "mailingAddress3": {
            "type": "string",
            "nullable": true
          },
          "mailingAddress4": {
            "type": "string",
            "nullable": true
          },
          "mailingPostcode": {
            "type": "string",
            "nullable": true
          },
          "taxCountry1": {
            "type": "string",
            "nullable": true
          },
          "taxIdentificationNumber1": {
            "type": "string",
            "nullable": true
          },
          "taxNoTinReason1": {
            "type": "string",
            "nullable": true
          },
          "taxNoTinExplanation1": {
            "type": "string",
            "nullable": true
          },
          "taxCountry2": {
            "type": "string",
            "nullable": true
          },
          "taxIdentificationNumber2": {
            "type": "string",
            "nullable": true
          },
          "taxNoTinReason2": {
            "type": "string",
            "nullable": true
          },
          "taxNoTinExplanation2": {
            "type": "string",
            "nullable": true
          },
          "taxCountry3": {
            "type": "string",
            "nullable": true
          },
          "taxIdentificationNumber3": {
            "type": "string",
            "nullable": true
          },
          "taxNoTinReason3": {
            "type": "string",
            "nullable": true
          },
          "taxNoTinExplanation3": {
            "type": "string",
            "nullable": true
          },
          "isPep": {
            "type": "boolean"
          },
          "pepType": {
            "type": "string",
            "nullable": true
          },
          "pepConfirmedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "pepReviewDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastChangedBy": {
            "type": "string",
            "nullable": true
          },
          "changedOnUTC": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdOnUTC": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "policyDocuments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GatewayPolicyDocuments"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CustomerMatchPersonDto": {
        "type": "object",
        "properties": {
          "customerDetailsId": {
            "type": "integer",
            "format": "int32"
          },
          "cinNo": {
            "type": "string",
            "nullable": true
          },
          "firstnames": {
            "type": "string",
            "nullable": true
          },
          "surname": {
            "type": "string",
            "nullable": true
          },
          "dateOfBirth": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "address": {
            "type": "string",
            "nullable": true
          },
          "postcode": {
            "type": "string",
            "nullable": true
          },
          "mobileTelephone": {
            "type": "string",
            "nullable": true
          },
          "hasLogin": {
            "type": "boolean"
          },
          "createdOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "policies": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CustomerMatchReviewCandidateDto": {
        "type": "object",
        "properties": {
          "person": {
            "$ref": "#/components/schemas/CustomerMatchPersonDto"
          },
          "tier": {
            "type": "integer",
            "format": "int32"
          },
          "score": {
            "type": "integer",
            "format": "int32"
          },
          "reasons": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CustomerMatchReviewDetailDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "newCustomer": {
            "$ref": "#/components/schemas/CustomerMatchPersonDto"
          },
          "ownCinNo": {
            "type": "string",
            "nullable": true
          },
          "appliedCinNo": {
            "type": "string",
            "nullable": true
          },
          "tier": {
            "type": "integer",
            "format": "int32"
          },
          "score": {
            "type": "integer",
            "format": "int32"
          },
          "source": {
            "type": "string",
            "nullable": true
          },
          "globalPolicyId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "policyNo": {
            "type": "string",
            "nullable": true
          },
          "statusId": {
            "type": "integer",
            "format": "int32"
          },
          "createdOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "resolvedBy": {
            "type": "string",
            "nullable": true
          },
          "resolvedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "note": {
            "type": "string",
            "nullable": true
          },
          "candidates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerMatchReviewCandidateDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CustomerMatchReviewListItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "customerDetailsId": {
            "type": "integer",
            "format": "int32"
          },
          "customerName": {
            "type": "string",
            "nullable": true
          },
          "dateOfBirth": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "ownCinNo": {
            "type": "string",
            "nullable": true
          },
          "appliedCinNo": {
            "type": "string",
            "nullable": true
          },
          "tier": {
            "type": "integer",
            "format": "int32"
          },
          "score": {
            "type": "integer",
            "format": "int32"
          },
          "source": {
            "type": "string",
            "nullable": true
          },
          "policyNo": {
            "type": "string",
            "nullable": true
          },
          "statusId": {
            "type": "integer",
            "format": "int32"
          },
          "createdOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "candidateCount": {
            "type": "integer",
            "format": "int32"
          },
          "bestCandidateName": {
            "type": "string",
            "nullable": true
          },
          "bestCandidateCinNo": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CustomerPortfolioAvailabilityDto": {
        "type": "object",
        "properties": {
          "hasLife": {
            "type": "boolean"
          },
          "hasBond": {
            "type": "boolean"
          },
          "hasStructured": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CustomerServiceDiaryEntryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "customerDetailsId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "policyId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "statusId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "eventTypeId": {
            "type": "integer",
            "format": "int32"
          },
          "eventTypeName": {
            "type": "string",
            "nullable": true
          },
          "createdByUserId": {
            "type": "string",
            "nullable": true
          },
          "createdByUser": {
            "type": "string",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "binNo": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "fileCreatedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isAdviserOnly": {
            "type": "boolean"
          },
          "createdOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "changedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastChangeBy": {
            "type": "string",
            "nullable": true
          },
          "policyNumber": {
            "type": "string",
            "nullable": true
          },
          "statusName": {
            "type": "string",
            "nullable": true
          },
          "benefitProductCoverType": {
            "type": "string",
            "nullable": true
          },
          "benefitProductName": {
            "type": "string",
            "nullable": true
          },
          "benefitCoverBasisType": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CustomerServiceDiaryEntryDtoPagedResult": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerServiceDiaryEntryDto"
            },
            "nullable": true
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "CustomerServiceDiaryEntryDtoServiceDiaryPageResult": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerServiceDiaryEntryDto"
            },
            "nullable": true
          },
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "hasPrevious": {
            "type": "boolean",
            "readOnly": true
          },
          "hasNext": {
            "type": "boolean",
            "readOnly": true
          },
          "retrievedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "message": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CustomerServiceDiaryFileDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "policyId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "statusId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "createdByUserId": {
            "type": "string",
            "nullable": true
          },
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "binNo": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "eventTypeId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "eventTypeName": {
            "type": "string",
            "nullable": true
          },
          "fileCreatedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "lastChangeBy": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CustomerServiceEmailRequestDto": {
        "type": "object",
        "properties": {
          "subject": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "isBodyHtml": {
            "type": "boolean"
          },
          "replyTo": {
            "type": "string",
            "nullable": true
          },
          "caseReference": {
            "type": "string",
            "nullable": true
          },
          "attachments": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CustomerUpdateDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "customerRefNo": {
            "type": "string",
            "nullable": true
          },
          "cRecType": {
            "type": "string",
            "nullable": true
          },
          "personTitlesId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "firstnames": {
            "type": "string",
            "nullable": true
          },
          "surname": {
            "type": "string",
            "nullable": true
          },
          "sex": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "maxLength": 256,
            "minLength": 0,
            "type": "string",
            "format": "email",
            "nullable": true
          },
          "mobileTelephone": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "format": "tel",
            "nullable": true
          },
          "homeTelephone": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "format": "tel",
            "nullable": true
          },
          "workTelephone": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "format": "tel",
            "nullable": true
          },
          "occupation1": {
            "type": "string",
            "nullable": true
          },
          "address1": {
            "maxLength": 200,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "address2": {
            "maxLength": 200,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "address3": {
            "maxLength": 200,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "address4": {
            "maxLength": 200,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "postcode": {
            "maxLength": 20,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "mailingAddress1": {
            "maxLength": 200,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "mailingAddress2": {
            "maxLength": 200,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "mailingAddress3": {
            "maxLength": 200,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "mailingAddress4": {
            "maxLength": 200,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "mailingPostcode": {
            "maxLength": 20,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "clearedFields": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DashboardAlertRow": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "severity": {
            "$ref": "#/components/schemas/PaymentsOpsSeverity"
          },
          "raisedOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "lastSeenOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "notified": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "DashboardBatchRow": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "originator": {
            "type": "string",
            "nullable": true
          },
          "kind": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "statusId": {
            "type": "integer",
            "format": "int32"
          },
          "entryDate": {
            "type": "string",
            "format": "date-time"
          },
          "itemCount": {
            "type": "integer",
            "format": "int32"
          },
          "totalAmount": {
            "type": "number",
            "format": "double"
          },
          "submitByLocal": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "overdue": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "DashboardHeldRow": {
        "type": "object",
        "properties": {
          "direction": {
            "type": "string",
            "nullable": true
          },
          "holdReasonId": {
            "type": "integer",
            "format": "int32"
          },
          "holdReason": {
            "type": "string",
            "nullable": true
          },
          "count": {
            "type": "integer",
            "format": "int32"
          },
          "total": {
            "type": "number",
            "format": "double"
          },
          "oldestSinceUtc": {
            "type": "string",
            "format": "date-time"
          },
          "entryDatePassed": {
            "type": "boolean"
          },
          "passedCount": {
            "type": "integer",
            "format": "int32"
          },
          "passedTotal": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "DecisionQuoteProductResult": {
        "type": "object",
        "properties": {
          "productSelectionId": {
            "type": "string",
            "format": "uuid"
          },
          "productType": {
            "type": "string",
            "nullable": true
          },
          "coverBasis": {
            "type": "string",
            "nullable": true
          },
          "coverAmount": {
            "type": "number",
            "format": "double"
          },
          "criticalIllnessCoverAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "termYears": {
            "type": "integer",
            "format": "int32"
          },
          "benefitOwner": {
            "type": "string",
            "nullable": true
          },
          "waiverPrimary": {
            "type": "boolean"
          },
          "waiverSecond": {
            "type": "boolean"
          },
          "wopSingle": {
            "type": "string",
            "nullable": true
          },
          "wopJoint": {
            "type": "string",
            "nullable": true
          },
          "includesTpd": {
            "type": "boolean"
          },
          "commissionType": {
            "type": "string",
            "nullable": true
          },
          "commissionEntitlement": {
            "type": "number",
            "format": "double"
          },
          "standardPremium": {
            "type": "number",
            "format": "double"
          },
          "plusPremium": {
            "type": "number",
            "format": "double"
          },
          "variations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DecisionQuoteVariation"
            },
            "nullable": true
          },
          "quoteNotes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "variationsByTier": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DecisionQuoteVariation"
              }
            },
            "nullable": true
          },
          "quoteNotesByTier": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "nullable": true
          },
          "illustrationUrls": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          },
          "inBasket": {
            "type": "boolean"
          },
          "basketTier": {
            "type": "string",
            "nullable": true
          },
          "purchased": {
            "type": "boolean"
          },
          "purchasedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "planNumber": {
            "type": "string",
            "nullable": true
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "quoteDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "validQuote": {
            "type": "boolean"
          },
          "isQuoteExpired": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "DecisionQuoteResponse": {
        "type": "object",
        "properties": {
          "applicationJourneyId": {
            "type": "string",
            "format": "uuid"
          },
          "applicationReference": {
            "type": "string",
            "nullable": true
          },
          "furthestStep": {
            "type": "string",
            "nullable": true
          },
          "primaryClientName": {
            "type": "string",
            "nullable": true
          },
          "secondClientName": {
            "type": "string",
            "nullable": true
          },
          "isJointApplication": {
            "type": "boolean"
          },
          "decision": {
            "type": "string",
            "nullable": true
          },
          "decisionValue": {
            "type": "integer",
            "format": "int32"
          },
          "journeyStatus": {
            "type": "string",
            "nullable": true
          },
          "isPreDecisionLocked": {
            "type": "boolean"
          },
          "referredAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "decisionAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "referralNotes": {
            "type": "string",
            "nullable": true
          },
          "adviserEmail": {
            "type": "string",
            "nullable": true
          },
          "hasQuoteResults": {
            "type": "boolean"
          },
          "products": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DecisionQuoteProductResult"
            },
            "nullable": true
          },
          "basketNotices": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "illustrationUrls": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          },
          "newBusinessXmlByProduct": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "additionalProperties": {
                "type": "string"
              }
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DecisionQuoteVariation": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "originalValue": {
            "type": "string",
            "nullable": true
          },
          "newValue": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DecisionRequest": {
        "type": "object",
        "properties": {
          "note": {
            "type": "string",
            "nullable": true
          },
          "candidateCustomerDetailsId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DiaryEventType": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "createdOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "changedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastChangeBy": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DiaryEventTypeDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "status": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DiaryEventTypeNameDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DirectQuoteResponse": {
        "type": "object",
        "properties": {
          "directQuoteId": {
            "type": "string",
            "format": "uuid"
          },
          "quoteReference": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "currentStep": {
            "type": "string",
            "nullable": true
          },
          "furthestStep": {
            "type": "string",
            "nullable": true
          },
          "canResume": {
            "type": "boolean"
          },
          "stateJson": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DirectQuoteSummaryResponse": {
        "type": "object",
        "properties": {
          "directQuoteId": {
            "type": "string",
            "format": "uuid"
          },
          "quoteReference": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "currentStep": {
            "type": "string",
            "nullable": true
          },
          "furthestStep": {
            "type": "string",
            "nullable": true
          },
          "clientName": {
            "type": "string",
            "nullable": true
          },
          "benefitCount": {
            "type": "integer",
            "format": "int32"
          },
          "monthlyPremium": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "createdOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedOnUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "DismissPostingExceptionRequest": {
        "type": "object",
        "properties": {
          "note": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DoctorApplyAllRequest": {
        "type": "object",
        "properties": {
          "lifeCustomerId": {
            "type": "integer",
            "format": "int32"
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "firstnames": {
            "type": "string",
            "nullable": true
          },
          "surname": {
            "type": "string",
            "nullable": true
          },
          "surgeryName": {
            "type": "string",
            "nullable": true
          },
          "workTelephone": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "address1": {
            "type": "string",
            "nullable": true
          },
          "address2": {
            "type": "string",
            "nullable": true
          },
          "address3": {
            "type": "string",
            "nullable": true
          },
          "address4": {
            "type": "string",
            "nullable": true
          },
          "postCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DoctorDetailsDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "surgeryName": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "firstnames": {
            "type": "string",
            "nullable": true
          },
          "surname": {
            "type": "string",
            "nullable": true
          },
          "address1": {
            "type": "string",
            "nullable": true
          },
          "address2": {
            "type": "string",
            "nullable": true
          },
          "address3": {
            "type": "string",
            "nullable": true
          },
          "address4": {
            "type": "string",
            "nullable": true
          },
          "postCode": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "workTelephone": {
            "type": "string",
            "nullable": true
          },
          "mobileTelephone": {
            "type": "string",
            "nullable": true
          },
          "lastChangedBy": {
            "type": "string",
            "nullable": true
          },
          "changedOnUTC": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdOnUTC": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DocumentLetterheadAdminDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "brandKey": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "headerHtml": {
            "type": "string",
            "nullable": true
          },
          "footerHtml": {
            "type": "string",
            "nullable": true
          },
          "css": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "DocumentTemplateAdminDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "templateKey": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "bodyHtml": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "EmailTemplateAdminDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "templateKey": {
            "type": "string",
            "nullable": true
          },
          "templateName": {
            "type": "string",
            "nullable": true
          },
          "fromAddress": {
            "type": "string",
            "nullable": true
          },
          "subjectTemplate": {
            "type": "string",
            "nullable": true
          },
          "bodyTemplate": {
            "type": "string",
            "nullable": true
          },
          "isHtml": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "EmailTemplateListItemDto": {
        "type": "object",
        "properties": {
          "systemEmailTemplateId": {
            "type": "integer",
            "format": "int32"
          },
          "templateKey": {
            "type": "string",
            "nullable": true
          },
          "templateName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EnterPayeeAccountRequest": {
        "type": "object",
        "properties": {
          "brokerCompanyId": {
            "type": "integer",
            "format": "int32"
          },
          "sortCode": {
            "type": "string",
            "nullable": true
          },
          "accountNumber": {
            "type": "string",
            "nullable": true
          },
          "accountName": {
            "type": "string",
            "nullable": true
          },
          "dueDiligenceReference": {
            "type": "string",
            "nullable": true
          },
          "dueDiligenceSignedOffBy": {
            "type": "string",
            "nullable": true
          },
          "dueDiligenceSignedOffOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "requestModulusOverride": {
            "type": "boolean"
          },
          "modulusOverrideReason": {
            "type": "string",
            "nullable": true
          },
          "confirmedSortCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ErrorLogRequestDto": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "context": {
            "type": "string",
            "nullable": true
          },
          "severity": {
            "type": "string",
            "nullable": true
          },
          "appLayer": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FamilyCommissionOption": {
        "type": "object",
        "properties": {
          "familyId": {
            "type": "integer",
            "format": "int32"
          },
          "commissionTypes": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FeeSettingsDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "setUpFeeEnabled": {
            "type": "boolean"
          },
          "setUpFeeAmount": {
            "type": "number",
            "format": "double"
          },
          "planChargeEnabled": {
            "type": "boolean"
          },
          "planChargeAmount": {
            "type": "number",
            "format": "double"
          },
          "providerFeeEnabled": {
            "type": "boolean"
          },
          "providerFeeAmount": {
            "type": "number",
            "format": "double"
          },
          "monthlyRunDayOfMonth": {
            "type": "integer",
            "format": "int32"
          },
          "createdOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FeeSettingsPageDto": {
        "type": "object",
        "properties": {
          "current": {
            "$ref": "#/components/schemas/FeeSettingsDto"
          },
          "nextMonthlyRunDate": {
            "type": "string",
            "format": "date-time"
          },
          "history": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FeeSettingsDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FeeSettingsUpdateDto": {
        "type": "object",
        "properties": {
          "basedOnId": {
            "type": "integer",
            "format": "int32"
          },
          "setUpFeeEnabled": {
            "type": "boolean"
          },
          "setUpFeeAmount": {
            "type": "number",
            "format": "double"
          },
          "planChargeEnabled": {
            "type": "boolean"
          },
          "planChargeAmount": {
            "type": "number",
            "format": "double"
          },
          "providerFeeEnabled": {
            "type": "boolean"
          },
          "providerFeeAmount": {
            "type": "number",
            "format": "double"
          },
          "monthlyRunDayOfMonth": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "FieldChange": {
        "type": "object",
        "properties": {
          "field": {
            "type": "string",
            "nullable": true
          },
          "from": {
            "type": "string",
            "nullable": true
          },
          "to": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FinancialStatementLineDto": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "integer",
            "format": "int32"
          },
          "accountCode": {
            "type": "string",
            "nullable": true
          },
          "accountName": {
            "type": "string",
            "nullable": true
          },
          "accountClassId": {
            "type": "integer",
            "format": "int32"
          },
          "isControlAccount": {
            "type": "boolean"
          },
          "controlTypeId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "period": {
            "type": "number",
            "format": "double"
          },
          "amount": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "ForgotPasswordRequestDto": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FullPolicyDetailsDisplay": {
        "type": "object",
        "properties": {
          "allCustomerDisplayDetails": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerDetailsDto"
            },
            "nullable": true
          },
          "customerDisplayDetails": {
            "$ref": "#/components/schemas/CustomerDetailsDto"
          },
          "policylinkrecords": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PolicyLinkDto"
            },
            "nullable": true
          },
          "policyDisplaysDetails": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PolicyDto"
            },
            "nullable": true
          },
          "benefitDisplayDetails": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BenefitDetailsDto"
            },
            "nullable": true
          },
          "bankDisplayDetails": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BankDetailsResponseDto"
            },
            "nullable": true
          },
          "brokerDisplayDetails": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BrokerDetailsDto"
            },
            "nullable": true
          },
          "doctorDisplayDetails": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DoctorDetailsDto"
            },
            "nullable": true
          },
          "allBenefitDetails": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BenefitDetailsDto"
            },
            "nullable": true
          },
          "commissionDisplayDetails": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BenefitCommissionDisplayDto"
            },
            "nullable": true
          },
          "underwritingDisplayDetails": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UnderwritingDisplayDto"
            },
            "nullable": true
          },
          "collectionDisplayDetails": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PremiumCollectionDisplayDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FullPolicyDetailsDisplayPagedResult": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FullPolicyDetailsDisplay"
            },
            "nullable": true
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "FullUserDetailsDisplay": {
        "type": "object",
        "properties": {
          "customerDisplayDetails": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerDetailsDto"
            },
            "nullable": true
          },
          "allCustomerDisplayDetails": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerDetailsDto"
            },
            "nullable": true
          },
          "policylinkrecords": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PolicyLinkDto"
            },
            "nullable": true
          },
          "policyDisplaysDetails": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PolicyDto"
            },
            "nullable": true
          },
          "benefitDisplayDetails": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BenefitDetailsDto"
            },
            "nullable": true
          },
          "bankDisplayDetails": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BankDetailsResponseDto"
            },
            "nullable": true
          },
          "brokerDisplayDetails": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BrokerDetailsDto"
            },
            "nullable": true
          },
          "doctorDisplayDetails": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DoctorDetailsDto"
            },
            "nullable": true
          },
          "documents": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerServiceDiaryFileDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FundDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "fundCode": {
            "type": "string",
            "nullable": true
          },
          "fundName": {
            "type": "string",
            "nullable": true
          },
          "productGroupType": {
            "type": "string",
            "nullable": true
          },
          "ledgerCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "FundInput": {
        "type": "object",
        "properties": {
          "fundCode": {
            "type": "string",
            "nullable": true
          },
          "fundName": {
            "type": "string",
            "nullable": true
          },
          "productGroupType": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GatewayPolicyDocuments": {
        "type": "object",
        "properties": {
          "eventTypeId": {
            "type": "integer",
            "format": "int32"
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "binNo": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "GlDimensionMutationResult": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "id": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "errorCode": {
            "$ref": "#/components/schemas/GlDimensionServiceError"
          },
          "error": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GlDimensionServiceError": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5
        ],
        "type": "integer",
        "format": "int32"
      },
      "GlLookupItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GlLookupsDto": {
        "type": "object",
        "properties": {
          "legalEntities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GlLookupItemDto"
            },
            "nullable": true
          },
          "ledgerTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GlLookupItemDto"
            },
            "nullable": true
          },
          "funds": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GlLookupItemDto"
            },
            "nullable": true
          },
          "coaTemplates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GlLookupItemDto"
            },
            "nullable": true
          },
          "accountClasses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GlLookupItemDto"
            },
            "nullable": true
          },
          "controlTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GlLookupItemDto"
            },
            "nullable": true
          },
          "ledgerStatuses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GlLookupItemDto"
            },
            "nullable": true
          },
          "periodStatuses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GlLookupItemDto"
            },
            "nullable": true
          },
          "journalStatuses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GlLookupItemDto"
            },
            "nullable": true
          },
          "amountSources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GlLookupItemDto"
            },
            "nullable": true
          },
          "eventTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GlLookupItemDto"
            },
            "nullable": true
          },
          "ruleChangeStatuses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GlLookupItemDto"
            },
            "nullable": true
          },
          "ruleChangeTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GlLookupItemDto"
            },
            "nullable": true
          },
          "postingExceptionStatuses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GlLookupItemDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "HeldPaymentItemDto": {
        "type": "object",
        "properties": {
          "runItemId": {
            "type": "integer",
            "format": "int32"
          },
          "brokerCompanyId": {
            "type": "integer",
            "format": "int32"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "paymentInstructionId": {
            "type": "integer",
            "format": "int64"
          }
        },
        "additionalProperties": false
      },
      "InFlightPremiumDto": {
        "type": "object",
        "properties": {
          "recordId": {
            "type": "integer",
            "format": "int32"
          },
          "benefitId": {
            "type": "integer",
            "format": "int32"
          },
          "dueDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "outcome": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "InterLedgerPairRequest": {
        "type": "object",
        "properties": {
          "accountCode": {
            "type": "string",
            "nullable": true
          },
          "counterpartyLedgerId": {
            "type": "integer",
            "format": "int32"
          },
          "counterpartyAccountCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "IpAddressActionType": {
        "enum": [
          1,
          2
        ],
        "type": "integer",
        "format": "int32"
      },
      "IpAddressSetting": {
        "required": [
          "ip",
          "ipHex"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "ip": {
            "type": "string",
            "nullable": true
          },
          "ipHex": {
            "type": "string",
            "nullable": true
          },
          "ipRangeEnd": {
            "type": "string",
            "nullable": true
          },
          "ipRangeEndHex": {
            "type": "string",
            "nullable": true
          },
          "isIpRange": {
            "type": "boolean"
          },
          "approximateCountryByRange": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "$ref": "#/components/schemas/IpAddressActionType"
          },
          "settingType": {
            "$ref": "#/components/schemas/IpAddressSettingType"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "changedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "IpAddressSettingDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "ip": {
            "type": "string",
            "nullable": true
          },
          "ipRangeEnd": {
            "type": "string",
            "nullable": true
          },
          "isIpRange": {
            "type": "boolean"
          },
          "isSingleIpOrCidr": {
            "type": "boolean"
          },
          "type": {
            "$ref": "#/components/schemas/IpAddressActionType"
          },
          "settingsType": {
            "$ref": "#/components/schemas/IpAddressSettingType"
          }
        },
        "additionalProperties": false
      },
      "IpAddressSettingType": {
        "enum": [
          1,
          4,
          8,
          16
        ],
        "type": "integer",
        "format": "int32"
      },
      "IpCheckDto": {
        "required": [
          "ip"
        ],
        "type": "object",
        "properties": {
          "ip": {
            "type": "string",
            "nullable": true
          },
          "userProfileId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "JournalDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "ledgerId": {
            "type": "integer",
            "format": "int32"
          },
          "journalNo": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "journalTypeId": {
            "type": "integer",
            "format": "int32"
          },
          "accountingPeriodId": {
            "type": "integer",
            "format": "int32"
          },
          "journalDate": {
            "type": "string",
            "format": "date-time"
          },
          "effectiveDate": {
            "type": "string",
            "format": "date-time"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "statusId": {
            "type": "integer",
            "format": "int32"
          },
          "reversalOfJournalId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          },
          "createdOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "submittedBy": {
            "type": "string",
            "nullable": true
          },
          "submittedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "postedBy": {
            "type": "string",
            "nullable": true
          },
          "postedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "approvedViaTesterBypass": {
            "type": "boolean"
          },
          "lines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/JournalLineDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "JournalLineDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "lineNo": {
            "type": "integer",
            "format": "int32"
          },
          "accountId": {
            "type": "integer",
            "format": "int32"
          },
          "accountCode": {
            "type": "string",
            "nullable": true
          },
          "accountName": {
            "type": "string",
            "nullable": true
          },
          "debit": {
            "type": "number",
            "format": "double"
          },
          "credit": {
            "type": "number",
            "format": "double"
          },
          "narrative": {
            "type": "string",
            "nullable": true
          },
          "globalPolicyId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "platform": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "JournalLineInput": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "integer",
            "format": "int32"
          },
          "debit": {
            "type": "number",
            "format": "double"
          },
          "credit": {
            "type": "number",
            "format": "double"
          },
          "narrative": {
            "type": "string",
            "nullable": true
          },
          "globalPolicyId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "platform": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "JournalMutationResult": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "journalId": {
            "type": "integer",
            "format": "int64"
          },
          "reversalJournalId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "errorCode": {
            "$ref": "#/components/schemas/JournalServiceError"
          },
          "error": {
            "type": "string",
            "nullable": true
          },
          "postingErrorNumber": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "JournalServiceError": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11,
          12,
          13,
          14,
          15,
          16
        ],
        "type": "integer",
        "format": "int32"
      },
      "JournalSummaryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "ledgerId": {
            "type": "integer",
            "format": "int32"
          },
          "ledgerCode": {
            "type": "string",
            "nullable": true
          },
          "journalDate": {
            "type": "string",
            "format": "date-time"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "totalDebit": {
            "type": "number",
            "format": "double"
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          },
          "submittedBy": {
            "type": "string",
            "nullable": true
          },
          "submittedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "statusId": {
            "type": "integer",
            "format": "int32"
          },
          "journalTypeId": {
            "type": "integer",
            "format": "int32"
          },
          "journalNo": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "postedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "postedBy": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LapseCandidateDto": {
        "type": "object",
        "properties": {
          "policyId": {
            "type": "integer",
            "format": "int32"
          },
          "policyNo": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "lapseClockStart": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "daysOnLapseClock": {
            "type": "integer",
            "format": "int32"
          },
          "oldestUnpaidDueDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "reason": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LapsedPolicyDto": {
        "type": "object",
        "properties": {
          "policyId": {
            "type": "integer",
            "format": "int32"
          },
          "policyNo": {
            "type": "string",
            "nullable": true
          },
          "lapseClockStart": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "daysOnLapseClock": {
            "type": "integer",
            "format": "int32"
          },
          "emailStatus": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LedgerAccountDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "accountCode": {
            "type": "string",
            "nullable": true
          },
          "accountName": {
            "type": "string",
            "nullable": true
          },
          "accountClassId": {
            "type": "integer",
            "format": "int32"
          },
          "parentAccountId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isControlAccount": {
            "type": "boolean"
          },
          "controlTypeId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "counterpartyLedgerId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "allowManualJournal": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "LedgerAccountInput": {
        "type": "object",
        "properties": {
          "accountCode": {
            "type": "string",
            "nullable": true
          },
          "accountName": {
            "type": "string",
            "nullable": true
          },
          "accountClassId": {
            "type": "integer",
            "format": "int32"
          },
          "parentAccountId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "controlTypeId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "allowManualJournal": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "LedgerDetailDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "ledgerCode": {
            "type": "string",
            "nullable": true
          },
          "ledgerName": {
            "type": "string",
            "nullable": true
          },
          "legalEntityId": {
            "type": "integer",
            "format": "int32"
          },
          "ledgerTypeId": {
            "type": "integer",
            "format": "int32"
          },
          "fundId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "coaTemplateId": {
            "type": "integer",
            "format": "int32"
          },
          "currencyCode": {
            "type": "string",
            "nullable": true
          },
          "statusId": {
            "type": "integer",
            "format": "int32"
          },
          "accounts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LedgerAccountDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LedgerFactoryError": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11
        ],
        "type": "integer",
        "format": "int32"
      },
      "LedgerSummaryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "ledgerCode": {
            "type": "string",
            "nullable": true
          },
          "ledgerName": {
            "type": "string",
            "nullable": true
          },
          "legalEntityId": {
            "type": "integer",
            "format": "int32"
          },
          "ledgerTypeId": {
            "type": "integer",
            "format": "int32"
          },
          "fundId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "currencyCode": {
            "type": "string",
            "nullable": true
          },
          "statusId": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "LegalEntityDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "entityCode": {
            "type": "string",
            "nullable": true
          },
          "entityName": {
            "type": "string",
            "nullable": true
          },
          "companyRegNo": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "fyStartMonth": {
            "type": "integer",
            "format": "int32"
          },
          "ledgerCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "LegalEntityInput": {
        "type": "object",
        "properties": {
          "entityCode": {
            "type": "string",
            "nullable": true
          },
          "entityName": {
            "type": "string",
            "nullable": true
          },
          "companyRegNo": {
            "type": "string",
            "nullable": true
          },
          "fyStartMonth": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "LinkBlueprintDto": {
        "type": "object",
        "properties": {
          "customerIndex": {
            "type": "integer",
            "format": "int32"
          },
          "benefitIndex": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "LinkReviewDto": {
        "type": "object",
        "properties": {
          "caseReference": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Login2FaRequest": {
        "type": "object",
        "properties": {
          "pending_token": {
            "type": "string",
            "nullable": true
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "recoveryCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LoginRequest": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "nullable": true
          },
          "password": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LookupItem": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MandateToCancelDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "reference": {
            "type": "string",
            "nullable": true
          },
          "statusId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "lodged": {
            "type": "boolean"
          },
          "zeroCWaitsForInFlight": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "MappableNominalDto": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "integer",
            "format": "int32"
          },
          "ledgerCode": {
            "type": "string",
            "nullable": true
          },
          "accountCode": {
            "type": "string",
            "nullable": true
          },
          "accountName": {
            "type": "string",
            "nullable": true
          },
          "currentlyMappedTo": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MappingApprovalOutcome": {
        "type": "object",
        "properties": {
          "changeId": {
            "type": "integer",
            "format": "int64"
          },
          "success": {
            "type": "boolean"
          },
          "error": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MappingImportAction": {
        "enum": [
          0,
          1,
          2,
          3,
          4
        ],
        "type": "integer",
        "format": "int32"
      },
      "MappingImportOutcome": {
        "type": "object",
        "properties": {
          "eventCode": {
            "type": "string",
            "nullable": true
          },
          "ruleCode": {
            "type": "string",
            "nullable": true
          },
          "target": {
            "type": "string",
            "nullable": true
          },
          "action": {
            "$ref": "#/components/schemas/MappingImportAction"
          },
          "changeId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MappingPack": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "exportedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "rules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MappingPackRule"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MappingPackImportResult": {
        "type": "object",
        "properties": {
          "outcomes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MappingImportOutcome"
            },
            "nullable": true
          },
          "submitted": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "failed": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "MappingPackLine": {
        "type": "object",
        "properties": {
          "accountCode": {
            "type": "string",
            "nullable": true
          },
          "side": {
            "type": "string",
            "nullable": true
          },
          "amountSource": {
            "type": "string",
            "nullable": true
          },
          "rate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "narrativeTemplate": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MappingPackRule": {
        "type": "object",
        "properties": {
          "eventCode": {
            "type": "string",
            "nullable": true
          },
          "ruleCode": {
            "type": "string",
            "nullable": true
          },
          "ledgerCode": {
            "type": "string",
            "nullable": true
          },
          "ledgerTypeCode": {
            "type": "string",
            "nullable": true
          },
          "productGroupType": {
            "type": "string",
            "nullable": true
          },
          "productType": {
            "type": "string",
            "nullable": true
          },
          "effectiveFrom": {
            "type": "string",
            "format": "date-time"
          },
          "effectiveTo": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "postsNothing": {
            "type": "boolean"
          },
          "lines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MappingPackLine"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MiEmbedConfig": {
        "type": "object",
        "properties": {
          "reportId": {
            "type": "string",
            "nullable": true
          },
          "embedUrl": {
            "type": "string",
            "nullable": true
          },
          "token": {
            "type": "string",
            "nullable": true
          },
          "expiresUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "MiRefreshStatus": {
        "type": "object",
        "properties": {
          "state": {
            "type": "string",
            "nullable": true
          },
          "refreshType": {
            "type": "string",
            "nullable": true
          },
          "startedUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endedUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isRunning": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "MissingReturnsDayDto": {
        "type": "object",
        "properties": {
          "day": {
            "type": "string",
            "format": "date-time"
          },
          "heldCollections": {
            "type": "integer",
            "format": "int32"
          },
          "heldAmount": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "ModulusRuleSetListDto": {
        "type": "object",
        "properties": {
          "sets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModulusRuleSetSummaryDto"
            },
            "nullable": true
          },
          "todayUk": {
            "type": "string",
            "format": "date-time"
          },
          "noneInForce": {
            "type": "boolean"
          },
          "inForceIsStale": {
            "type": "boolean"
          },
          "staleAfterMonths": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "ModulusRuleSetSummaryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "validFrom": {
            "type": "string",
            "format": "date-time"
          },
          "specVersion": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "weightRowCount": {
            "type": "integer",
            "format": "int32"
          },
          "substitutionCount": {
            "type": "integer",
            "format": "int32"
          },
          "contentSha256": {
            "type": "string",
            "nullable": true
          },
          "loadedBy": {
            "type": "string",
            "nullable": true
          },
          "loadedOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "inForce": {
            "type": "boolean"
          },
          "scheduled": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ModulusRuleSetUploadRequest": {
        "type": "object",
        "properties": {
          "weightTableText": {
            "type": "string",
            "nullable": true
          },
          "substitutionText": {
            "type": "string",
            "nullable": true
          },
          "weightTableFileName": {
            "type": "string",
            "nullable": true
          },
          "substitutionFileName": {
            "type": "string",
            "nullable": true
          },
          "validFrom": {
            "type": "string",
            "format": "date-time"
          },
          "specVersion": {
            "type": "string",
            "nullable": true
          },
          "confirmValidImmediately": {
            "type": "boolean"
          },
          "confirmFewerRows": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ModulusRuleSetUploadResult": {
        "type": "object",
        "properties": {
          "outcome": {
            "$ref": "#/components/schemas/ModulusUploadOutcome"
          },
          "ruleSetId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "messages": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ModulusUploadOutcome": {
        "enum": [
          1,
          2,
          3,
          4
        ],
        "type": "integer",
        "format": "int32"
      },
      "MonthlyFeeRunDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "periodMonth": {
            "type": "string",
            "format": "date-time"
          },
          "runDate": {
            "type": "string",
            "format": "date-time"
          },
          "runOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "runBy": {
            "type": "string",
            "nullable": true
          },
          "planChargeCount": {
            "type": "integer",
            "format": "int32"
          },
          "planChargeTotal": {
            "type": "number",
            "format": "double"
          },
          "providerFeeCount": {
            "type": "integer",
            "format": "int32"
          },
          "providerFeeTotal": {
            "type": "number",
            "format": "double"
          },
          "noPremiumCount": {
            "type": "integer",
            "format": "int32"
          },
          "feeSettingsId": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "MonthlyFeeRunResultDto": {
        "type": "object",
        "properties": {
          "outcome": {
            "type": "string",
            "nullable": true
          },
          "isPreview": {
            "type": "boolean"
          },
          "periodMonth": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "runDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "nextRunDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "runId": {
            "type": "integer",
            "format": "int32"
          },
          "policyCount": {
            "type": "integer",
            "format": "int32"
          },
          "planChargeCount": {
            "type": "integer",
            "format": "int32"
          },
          "planChargeTotal": {
            "type": "number",
            "format": "double"
          },
          "providerFeeCount": {
            "type": "integer",
            "format": "int32"
          },
          "providerFeeTotal": {
            "type": "number",
            "format": "double"
          },
          "noPremiumCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "NbSubmitProductRequest": {
        "type": "object",
        "properties": {
          "productSelectionId": {
            "type": "string",
            "format": "uuid"
          },
          "basketTier": {
            "type": "string",
            "nullable": true
          },
          "referenceNumber": {
            "type": "string",
            "nullable": true
          },
          "cachedXml": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "NbSubmitProductResult": {
        "type": "object",
        "properties": {
          "productSelectionId": {
            "type": "string",
            "format": "uuid"
          },
          "success": {
            "type": "boolean"
          },
          "policyNumber": {
            "type": "string",
            "nullable": true
          },
          "referenceNumber": {
            "type": "string",
            "nullable": true
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "NbSubmitRequest": {
        "type": "object",
        "properties": {
          "applicationJourneyId": {
            "type": "string",
            "format": "uuid"
          },
          "products": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NbSubmitProductRequest"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "NbSubmitResponse": {
        "type": "object",
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NbSubmitProductResult"
            },
            "nullable": true
          },
          "allSucceeded": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "NewBusinessCustomerDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "dateOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "invNo": {
            "type": "string",
            "nullable": true
          },
          "statusId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "cinNo": {
            "type": "string",
            "nullable": true
          },
          "customerRefNo": {
            "type": "string",
            "nullable": true
          },
          "isPrimaryCustomer": {
            "type": "boolean"
          },
          "cRecType": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "personTitlesId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "surname": {
            "type": "string",
            "nullable": true
          },
          "firstname": {
            "type": "string",
            "nullable": true
          },
          "fullname": {
            "type": "string",
            "nullable": true
          },
          "hasUserAccount": {
            "type": "boolean"
          },
          "sex": {
            "type": "string",
            "nullable": true
          },
          "dateOfBirth": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "address1": {
            "type": "string",
            "nullable": true
          },
          "address2": {
            "type": "string",
            "nullable": true
          },
          "address3": {
            "type": "string",
            "nullable": true
          },
          "address4": {
            "type": "string",
            "nullable": true
          },
          "postCode": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "homeTelephone": {
            "type": "string",
            "nullable": true
          },
          "workTelephone": {
            "type": "string",
            "nullable": true
          },
          "mobileTelephone": {
            "type": "string",
            "nullable": true
          },
          "occupationTitle": {
            "type": "string",
            "nullable": true
          },
          "nationality": {
            "type": "string",
            "nullable": true
          },
          "nationality2": {
            "type": "string",
            "nullable": true
          },
          "nationality3": {
            "type": "string",
            "nullable": true
          },
          "countryOfResidence": {
            "type": "string",
            "nullable": true
          },
          "mailingAddress1": {
            "type": "string",
            "nullable": true
          },
          "mailingAddress2": {
            "type": "string",
            "nullable": true
          },
          "mailingAddress3": {
            "type": "string",
            "nullable": true
          },
          "mailingAddress4": {
            "type": "string",
            "nullable": true
          },
          "mailingPostcode": {
            "type": "string",
            "nullable": true
          },
          "taxCountry1": {
            "type": "string",
            "nullable": true
          },
          "taxIdentificationNumber1": {
            "type": "string",
            "nullable": true
          },
          "taxNoTinReason1": {
            "type": "string",
            "nullable": true
          },
          "taxNoTinExplanation1": {
            "type": "string",
            "nullable": true
          },
          "taxCountry2": {
            "type": "string",
            "nullable": true
          },
          "taxIdentificationNumber2": {
            "type": "string",
            "nullable": true
          },
          "taxNoTinReason2": {
            "type": "string",
            "nullable": true
          },
          "taxNoTinExplanation2": {
            "type": "string",
            "nullable": true
          },
          "taxCountry3": {
            "type": "string",
            "nullable": true
          },
          "taxIdentificationNumber3": {
            "type": "string",
            "nullable": true
          },
          "taxNoTinReason3": {
            "type": "string",
            "nullable": true
          },
          "taxNoTinExplanation3": {
            "type": "string",
            "nullable": true
          },
          "isPep": {
            "type": "boolean"
          },
          "pepType": {
            "type": "string",
            "nullable": true
          },
          "pepConfirmedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "pepReviewDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastChangedBy": {
            "type": "string",
            "nullable": true
          },
          "changedOnUTC": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdOnUTC": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "policyDocuments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GatewayPolicyDocuments"
            },
            "nullable": true
          },
          "doctor": {
            "$ref": "#/components/schemas/DoctorDetailsDto"
          },
          "uw": {
            "$ref": "#/components/schemas/UWDetailsDto"
          }
        },
        "additionalProperties": false
      },
      "NextWorkingDayResult": {
        "type": "object",
        "properties": {
          "succeeded": {
            "type": "boolean"
          },
          "error": {
            "type": "string",
            "nullable": true
          },
          "clock": {
            "$ref": "#/components/schemas/SimulationClockStatus"
          },
          "fromDate": {
            "type": "string",
            "format": "date-time"
          },
          "daysRun": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "date-time"
            },
            "nullable": true
          },
          "failedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "jobs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BatchJobOutcome"
            },
            "nullable": true
          },
          "cleared": {
            "type": "integer",
            "format": "int32"
          },
          "held": {
            "type": "integer",
            "format": "int32"
          },
          "debtsOpened": {
            "type": "integer",
            "format": "int32"
          },
          "recoveries": {
            "type": "integer",
            "format": "int32"
          },
          "reversals": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "NominalActivityDto": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "integer",
            "format": "int32"
          },
          "accountingPeriodId": {
            "type": "integer",
            "format": "int32"
          },
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NominalActivityRowDto"
            },
            "nullable": true
          },
          "totalDebit": {
            "type": "number",
            "format": "double"
          },
          "totalCredit": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "NominalActivityRowDto": {
        "type": "object",
        "properties": {
          "journalId": {
            "type": "integer",
            "format": "int64"
          },
          "journalNo": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "journalDate": {
            "type": "string",
            "format": "date-time"
          },
          "journalStatusId": {
            "type": "integer",
            "format": "int32"
          },
          "debit": {
            "type": "number",
            "format": "double"
          },
          "credit": {
            "type": "number",
            "format": "double"
          },
          "narrative": {
            "type": "string",
            "nullable": true
          },
          "journalDescription": {
            "type": "string",
            "nullable": true
          },
          "sourceSystem": {
            "type": "string",
            "nullable": true
          },
          "sourceReference": {
            "type": "string",
            "nullable": true
          },
          "sourceLineReference": {
            "type": "string",
            "nullable": true
          },
          "globalPolicyId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "platform": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "NominalBankLinkDto": {
        "type": "object",
        "properties": {
          "bankAccountId": {
            "type": "integer",
            "format": "int32"
          },
          "bankAccountName": {
            "type": "string",
            "nullable": true
          },
          "shareLabel": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OccupationDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "code": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OccupationSearchResult": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "nullable": true
          },
          "count": {
            "type": "integer",
            "format": "int32"
          },
          "occupations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OccupationDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OpeningBalanceError": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11,
          12,
          13,
          14,
          15
        ],
        "type": "integer",
        "format": "int32"
      },
      "OpeningBalanceLoadRequest": {
        "type": "object",
        "properties": {
          "ledgerId": {
            "type": "integer",
            "format": "int32"
          },
          "journalDate": {
            "type": "string",
            "format": "date-time"
          },
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "content": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OpeningBalanceResult": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "ledgerId": {
            "type": "integer",
            "format": "int32"
          },
          "journalId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "lineCount": {
            "type": "integer",
            "format": "int32"
          },
          "totalDebit": {
            "type": "number",
            "format": "double"
          },
          "totalCredit": {
            "type": "number",
            "format": "double"
          },
          "errorCode": {
            "$ref": "#/components/schemas/OpeningBalanceError"
          },
          "error": {
            "type": "string",
            "nullable": true
          },
          "sqlErrorNumber": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "offendingAccountCodes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OpeningBalanceStatusDto": {
        "type": "object",
        "properties": {
          "ledgerId": {
            "type": "integer",
            "format": "int32"
          },
          "ledgerCode": {
            "type": "string",
            "nullable": true
          },
          "journalId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "statusId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "journalNo": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "journalDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          },
          "createdOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "postedBy": {
            "type": "string",
            "nullable": true
          },
          "postedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lineCount": {
            "type": "integer",
            "format": "int32"
          },
          "totalDebit": {
            "type": "number",
            "format": "double"
          },
          "totalCredit": {
            "type": "number",
            "format": "double"
          },
          "canLoad": {
            "type": "boolean"
          },
          "blockedReason": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OriginatorItem": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "allowsDebits": {
            "type": "boolean"
          },
          "allowsCredits": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "PartyLedgerAccountDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "partyId": {
            "type": "integer",
            "format": "int32"
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "accountRef": {
            "type": "string",
            "nullable": true
          },
          "balance": {
            "type": "number",
            "format": "double"
          },
          "entryCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "PartyLedgerBackfillResult": {
        "type": "object",
        "properties": {
          "salesAccountsCreated": {
            "type": "integer",
            "format": "int32"
          },
          "purchaseAccountsCreated": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "PartyLedgerMutationResult": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "entryId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "errorCode": {
            "$ref": "#/components/schemas/PartyLedgerServiceError"
          },
          "error": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PartyLedgerServiceError": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5
        ],
        "type": "integer",
        "format": "int32"
      },
      "PartyLedgerStatementDto": {
        "type": "object",
        "properties": {
          "account": {
            "$ref": "#/components/schemas/PartyLedgerAccountDto"
          },
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PartyLedgerStatementRowDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PartyLedgerStatementRowDto": {
        "type": "object",
        "properties": {
          "journalLineId": {
            "type": "integer",
            "format": "int64"
          },
          "journalId": {
            "type": "integer",
            "format": "int64"
          },
          "journalNo": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "journalDate": {
            "type": "string",
            "format": "date-time"
          },
          "narrative": {
            "type": "string",
            "nullable": true
          },
          "journalDescription": {
            "type": "string",
            "nullable": true
          },
          "debit": {
            "type": "number",
            "format": "double"
          },
          "credit": {
            "type": "number",
            "format": "double"
          },
          "runningBalance": {
            "type": "number",
            "format": "double"
          },
          "journalStatusId": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "PayeeAccountSummary": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "brokerCompanyId": {
            "type": "integer",
            "format": "int32"
          },
          "brokerCompanyName": {
            "type": "string",
            "nullable": true
          },
          "brokerCompanyKind": {
            "type": "string",
            "nullable": true
          },
          "fcaNumber": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "sortCode": {
            "type": "string",
            "nullable": true
          },
          "accountNumberMasked": {
            "type": "string",
            "nullable": true
          },
          "accountName": {
            "type": "string",
            "nullable": true
          },
          "statusId": {
            "type": "integer",
            "format": "int32"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "supersedesId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "effectiveFromUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "dueDiligenceReference": {
            "type": "string",
            "nullable": true
          },
          "dueDiligenceSignedOffBy": {
            "type": "string",
            "nullable": true
          },
          "dueDiligenceSignedOffOn": {
            "type": "string",
            "format": "date-time"
          },
          "modulusOutcome": {
            "type": "string",
            "nullable": true
          },
          "modulusOverrideReason": {
            "type": "string",
            "nullable": true
          },
          "modulusOverrideApprovedBy": {
            "type": "string",
            "nullable": true
          },
          "enteredBy": {
            "type": "string",
            "nullable": true
          },
          "enteredOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "approvedBy": {
            "type": "string",
            "nullable": true
          },
          "approvedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "testerBypassUsed": {
            "type": "boolean"
          },
          "rejectedBy": {
            "type": "string",
            "nullable": true
          },
          "rejectReason": {
            "type": "string",
            "nullable": true
          },
          "suspendedBy": {
            "type": "string",
            "nullable": true
          },
          "suspendReason": {
            "type": "string",
            "nullable": true
          },
          "callBack": {
            "$ref": "#/components/schemas/PayeeCallBackSummary"
          }
        },
        "additionalProperties": false
      },
      "PayeeAccountVerificationView": {
        "type": "object",
        "properties": {
          "account": {
            "$ref": "#/components/schemas/PayeeAccountSummary"
          },
          "accountNumber": {
            "type": "string",
            "nullable": true
          },
          "current": {
            "$ref": "#/components/schemas/PayeeAccountSummary"
          },
          "currentAccountNumber": {
            "type": "string",
            "nullable": true
          },
          "affectedInstructionCount": {
            "type": "integer",
            "format": "int32"
          },
          "affectedInstructionTotal": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "PayeeCallBackSummary": {
        "type": "object",
        "properties": {
          "numberDialled": {
            "type": "string",
            "nullable": true
          },
          "numberSource": {
            "type": "string",
            "nullable": true
          },
          "contactName": {
            "type": "string",
            "nullable": true
          },
          "calledOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "outcome": {
            "type": "string",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "recordedBy": {
            "type": "string",
            "nullable": true
          },
          "recordedOnUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "PayeeDetail": {
        "type": "object",
        "properties": {
          "brokerCompanyId": {
            "type": "integer",
            "format": "int32"
          },
          "brokerCompanyName": {
            "type": "string",
            "nullable": true
          },
          "brokerCompanyKind": {
            "type": "string",
            "nullable": true
          },
          "fcaNumber": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "accounts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PayeeAccountSummary"
            },
            "nullable": true
          },
          "heldForPayeeChangeCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "PaymentBatchDetailDto": {
        "type": "object",
        "properties": {
          "batch": {
            "$ref": "#/components/schemas/PaymentBatchDto"
          },
          "lines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PaymentInstructionDto"
            },
            "nullable": true
          },
          "files": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PaymentFileDto"
            },
            "nullable": true
          },
          "separateApproverFromRelease": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "PaymentBatchDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "originatorId": {
            "type": "integer",
            "format": "int32"
          },
          "originatorCode": {
            "type": "string",
            "nullable": true
          },
          "kindId": {
            "type": "integer",
            "format": "int32"
          },
          "kind": {
            "type": "string",
            "nullable": true
          },
          "entryDate": {
            "type": "string",
            "format": "date-time"
          },
          "statusId": {
            "type": "integer",
            "format": "int32"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "itemCount": {
            "type": "integer",
            "format": "int32"
          },
          "totalAmount": {
            "type": "number",
            "format": "double"
          },
          "contentHash": {
            "type": "string",
            "nullable": true
          },
          "originatorServiceUserNumber": {
            "type": "string",
            "nullable": true
          },
          "originatorSortCode": {
            "type": "string",
            "nullable": true
          },
          "originatorAccountNumberMasked": {
            "type": "string",
            "nullable": true
          },
          "originatorBacsUserName": {
            "type": "string",
            "nullable": true
          },
          "assembledOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "assembledBy": {
            "type": "string",
            "nullable": true
          },
          "approvedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "approvedBy": {
            "type": "string",
            "nullable": true
          },
          "testerBypassUsed": {
            "type": "boolean"
          },
          "rejectedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "rejectedBy": {
            "type": "string",
            "nullable": true
          },
          "rejectReason": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PaymentFileDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "batchId": {
            "type": "integer",
            "format": "int64"
          },
          "channelCode": {
            "type": "string",
            "nullable": true
          },
          "volumeSerial": {
            "type": "string",
            "nullable": true
          },
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "sha256": {
            "type": "string",
            "nullable": true
          },
          "byteLength": {
            "type": "integer",
            "format": "int32"
          },
          "recordCount": {
            "type": "integer",
            "format": "int32"
          },
          "totalAmount": {
            "type": "number",
            "format": "double"
          },
          "processingDate": {
            "type": "string",
            "format": "date-time"
          },
          "statusId": {
            "type": "integer",
            "format": "int32"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "createdOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          },
          "downloadedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "downloadedBy": {
            "type": "string",
            "nullable": true
          },
          "downloadCount": {
            "type": "integer",
            "format": "int32"
          },
          "lastDownloadedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "submittedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "submittedBy": {
            "type": "string",
            "nullable": true
          },
          "bureauReference": {
            "type": "string",
            "nullable": true
          },
          "voidedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "voidedBy": {
            "type": "string",
            "nullable": true
          },
          "voidReason": {
            "type": "string",
            "nullable": true
          },
          "rejectedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "rejectedBy": {
            "type": "string",
            "nullable": true
          },
          "rejectReason": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PaymentInstructionDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "originatorId": {
            "type": "integer",
            "format": "int32"
          },
          "originatorCode": {
            "type": "string",
            "nullable": true
          },
          "directionId": {
            "type": "integer",
            "format": "int32"
          },
          "direction": {
            "type": "string",
            "nullable": true
          },
          "transactionCode": {
            "type": "string",
            "nullable": true
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "counterpartySortCode": {
            "type": "string",
            "nullable": true
          },
          "counterpartyAccountNumberMasked": {
            "type": "string",
            "nullable": true
          },
          "counterpartyAccountNumber": {
            "type": "string",
            "nullable": true
          },
          "counterpartyAccountName": {
            "type": "string",
            "nullable": true
          },
          "accountNameInFile": {
            "type": "string",
            "nullable": true
          },
          "bacsReference": {
            "type": "string",
            "nullable": true
          },
          "entryDate": {
            "type": "string",
            "format": "date-time"
          },
          "sourceSystem": {
            "type": "string",
            "nullable": true
          },
          "sourceReference": {
            "type": "string",
            "nullable": true
          },
          "statusId": {
            "type": "integer",
            "format": "int32"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "batchId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "holdReason": {
            "type": "string",
            "nullable": true
          },
          "holdReasonId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "cancelReason": {
            "type": "string",
            "nullable": true
          },
          "createdOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          },
          "changedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastChangeBy": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PaymentRunHistoryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "runDate": {
            "type": "string",
            "format": "date-time"
          },
          "statusId": {
            "type": "integer",
            "format": "int32"
          },
          "statusName": {
            "type": "string",
            "nullable": true
          },
          "itemCount": {
            "type": "integer",
            "format": "int32"
          },
          "totalPaid": {
            "type": "number",
            "format": "double"
          },
          "createdOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "lastChangeBy": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PaymentRunResponseDto": {
        "type": "object",
        "properties": {
          "runId": {
            "type": "integer",
            "format": "int32"
          },
          "runDate": {
            "type": "string",
            "format": "date-time"
          },
          "paid": {
            "type": "integer",
            "format": "int32"
          },
          "totalPaid": {
            "type": "number",
            "format": "double"
          },
          "carriedForward": {
            "type": "integer",
            "format": "int32"
          },
          "carriedForwardTotal": {
            "type": "number",
            "format": "double"
          },
          "isPreview": {
            "type": "boolean"
          },
          "handedOver": {
            "type": "integer",
            "format": "int32"
          },
          "entryDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "held": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HeldPaymentItemDto"
            },
            "nullable": true
          },
          "belowMinimum": {
            "type": "integer",
            "format": "int32"
          },
          "belowMinimumTotal": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "PaymentsDashboardDto": {
        "type": "object",
        "properties": {
          "generatedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "today": {
            "type": "string",
            "format": "date-time"
          },
          "earliestEntryDate": {
            "type": "string",
            "format": "date-time"
          },
          "submissionCutOffLocalTime": {
            "type": "string",
            "nullable": true
          },
          "cutOffConfirmed": {
            "type": "boolean",
            "readOnly": true
          },
          "batches": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DashboardBatchRow"
            },
            "nullable": true
          },
          "held": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DashboardHeldRow"
            },
            "nullable": true
          },
          "tiles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PaymentsOpsTile"
            },
            "nullable": true
          },
          "openAlerts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DashboardAlertRow"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PaymentsLookupsDto": {
        "type": "object",
        "properties": {
          "originators": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OriginatorItem"
            },
            "nullable": true
          },
          "directions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LookupItem"
            },
            "nullable": true
          },
          "batchKinds": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LookupItem"
            },
            "nullable": true
          },
          "instructionStatuses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LookupItem"
            },
            "nullable": true
          },
          "batchStatuses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LookupItem"
            },
            "nullable": true
          },
          "earliestEntryDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "redateEntryDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PaymentsOpsSeverity": {
        "enum": [
          0,
          1,
          2,
          3
        ],
        "type": "integer",
        "format": "int32"
      },
      "PaymentsOpsTile": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "count": {
            "type": "integer",
            "format": "int32"
          },
          "amount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "severity": {
            "$ref": "#/components/schemas/PaymentsOpsSeverity"
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "link": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PendingUnrollDto": {
        "type": "object",
        "properties": {
          "unrollId": {
            "type": "integer",
            "format": "int64"
          },
          "closeJournalId": {
            "type": "integer",
            "format": "int64"
          },
          "requestedBy": {
            "type": "string",
            "nullable": true
          },
          "requestedOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "reason": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PeriodMutationResult": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "accountingPeriodId": {
            "type": "integer",
            "format": "int32"
          },
          "errorCode": {
            "$ref": "#/components/schemas/PeriodServiceError"
          },
          "error": {
            "type": "string",
            "nullable": true
          },
          "failedChecks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CloseCheckDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PeriodServiceError": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11,
          12,
          13,
          14,
          15,
          16,
          17,
          18,
          19,
          20,
          21,
          22,
          23,
          24,
          25,
          26,
          27,
          28
        ],
        "type": "integer",
        "format": "int32"
      },
      "PermissionAction": {
        "enum": [
          1,
          2,
          4,
          8,
          16,
          32,
          64,
          128
        ],
        "type": "integer",
        "format": "int32"
      },
      "PermissionDto": {
        "required": [
          "claimIdentifier"
        ],
        "type": "object",
        "properties": {
          "claimIdentifier": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "relatedEntityType": {
            "type": "string",
            "nullable": true
          },
          "actionType": {
            "$ref": "#/components/schemas/PermissionAction"
          },
          "displayOrder": {
            "type": "integer",
            "format": "int32"
          },
          "roleClaims": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PersonTitlesDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "personTitle": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PlanSummaryItem": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PolicyCancellationRequestDto": {
        "type": "object",
        "properties": {
          "requestedBy": {
            "type": "string",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PolicyDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "policyNumber": {
            "type": "string",
            "nullable": true
          },
          "statusId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "brokerDetailsId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "bankDetailsId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "lastChangedBy": {
            "type": "string",
            "nullable": true
          },
          "changedOnUTC": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdOnUTC": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "policyIdFromLink": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "PolicyFeeChargeDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "feeTypeId": {
            "type": "integer",
            "format": "int32"
          },
          "feeType": {
            "type": "string",
            "nullable": true
          },
          "periodMonth": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "chargeDate": {
            "type": "string",
            "format": "date-time"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "hadClearedPremium": {
            "type": "boolean"
          },
          "policyFeeRunId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "createdOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PolicyFeesDto": {
        "type": "object",
        "properties": {
          "policyId": {
            "type": "integer",
            "format": "int32"
          },
          "charges": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PolicyFeeChargeDto"
            },
            "nullable": true
          },
          "setUpFeeTotal": {
            "type": "number",
            "format": "double"
          },
          "planChargeCount": {
            "type": "integer",
            "format": "int32"
          },
          "planChargeTotal": {
            "type": "number",
            "format": "double"
          },
          "providerFeeCount": {
            "type": "integer",
            "format": "int32"
          },
          "providerFeeTotal": {
            "type": "number",
            "format": "double"
          },
          "total": {
            "type": "number",
            "format": "double"
          },
          "noPremiumCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "PolicyLapseRunDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "runDate": {
            "type": "string",
            "format": "date-time"
          },
          "runOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "runBy": {
            "type": "string",
            "nullable": true
          },
          "qualifiedCount": {
            "type": "integer",
            "format": "int32"
          },
          "heldCount": {
            "type": "integer",
            "format": "int32"
          },
          "lapsedCount": {
            "type": "integer",
            "format": "int32"
          },
          "failedCount": {
            "type": "integer",
            "format": "int32"
          },
          "noEmailCount": {
            "type": "integer",
            "format": "int32"
          },
          "capExceeded": {
            "type": "boolean"
          },
          "policyLapseSettingsId": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "PolicyLapseRunResultDto": {
        "type": "object",
        "properties": {
          "outcome": {
            "type": "string",
            "nullable": true
          },
          "isPreview": {
            "type": "boolean"
          },
          "runDate": {
            "type": "string",
            "format": "date-time"
          },
          "lapseAfterDays": {
            "type": "integer",
            "format": "int32"
          },
          "maxLapsesPerRun": {
            "type": "integer",
            "format": "int32"
          },
          "lapseRunEnabled": {
            "type": "boolean"
          },
          "qualifiedCount": {
            "type": "integer",
            "format": "int32"
          },
          "heldCount": {
            "type": "integer",
            "format": "int32"
          },
          "candidates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LapseCandidateDto"
            },
            "nullable": true
          },
          "lapsed": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LapsedPolicyDto"
            },
            "nullable": true
          },
          "failures": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "runId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PolicyLapseSettingsDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "lapseAfterDays": {
            "type": "integer",
            "format": "int32"
          },
          "lapseRunEnabled": {
            "type": "boolean"
          },
          "maxLapsesPerRun": {
            "type": "integer",
            "format": "int32"
          },
          "goLiveRuleEnabled": {
            "type": "boolean"
          },
          "goLiveDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PolicyLapseSettingsPageDto": {
        "type": "object",
        "properties": {
          "current": {
            "$ref": "#/components/schemas/PolicyLapseSettingsDto"
          },
          "history": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PolicyLapseSettingsDto"
            },
            "nullable": true
          },
          "runs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PolicyLapseRunDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PolicyLapseSettingsUpdateDto": {
        "type": "object",
        "properties": {
          "basedOnId": {
            "type": "integer",
            "format": "int32"
          },
          "lapseAfterDays": {
            "type": "integer",
            "format": "int32"
          },
          "lapseRunEnabled": {
            "type": "boolean"
          },
          "maxLapsesPerRun": {
            "type": "integer",
            "format": "int32"
          },
          "goLiveRuleEnabled": {
            "type": "boolean"
          },
          "goLiveDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PolicyLinkDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "policyId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "customerDetailsId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "benefitDetailsId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "doctorDetailsId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "uwDetailsId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "brokerDetailsId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "bankDetailsId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "userProfileId": {
            "type": "string",
            "nullable": true
          },
          "lastChangedBy": {
            "type": "string",
            "nullable": true
          },
          "changedOnUTC": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdOnUTC": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PolicyPaymentMandateDetailsDto": {
        "type": "object",
        "properties": {
          "policyId": {
            "type": "integer",
            "format": "int32"
          },
          "mandateReference": {
            "type": "string",
            "nullable": true
          },
          "providerMandateId": {
            "type": "string",
            "nullable": true
          },
          "statusId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "statusReason": {
            "type": "string",
            "nullable": true
          },
          "activatedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "cancelledOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "premiumAmount": {
            "type": "number",
            "format": "double"
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "collectionFrequency": {
            "type": "string",
            "nullable": true
          },
          "collectionDayOfMonth": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "firstCollectionAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastSuccessfulCollectionAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastCollectionAttemptAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "nextScheduledCollectionAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "firstCollectionOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastSuccessfulCollectionOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastCollectionAttemptOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "nextScheduledCollectionOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastChangeBy": {
            "type": "string",
            "nullable": true
          },
          "changedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdOnUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "PolicyTerminationDto": {
        "type": "object",
        "properties": {
          "policyId": {
            "type": "integer",
            "format": "int32"
          },
          "policyNo": {
            "type": "string",
            "nullable": true
          },
          "statusId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "canTerminate": {
            "type": "boolean"
          },
          "termination": {
            "$ref": "#/components/schemas/PolicyTerminationRecordDto"
          },
          "effectiveOn": {
            "type": "string",
            "format": "date-time"
          },
          "oldestUnpaidDueDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "daysUnpaid": {
            "type": "integer",
            "format": "int32"
          },
          "unpaidPremiums": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UnpaidPremiumDto"
            },
            "nullable": true
          },
          "writeOffAmount": {
            "type": "number",
            "format": "double"
          },
          "inFlightPremiums": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InFlightPremiumDto"
            },
            "nullable": true
          },
          "refundDueAmount": {
            "type": "number",
            "format": "double"
          },
          "mandates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MandateToCancelDto"
            },
            "nullable": true
          },
          "unschedulableBenefits": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "emailRecipient": {
            "type": "string",
            "nullable": true
          },
          "emailRecipientName": {
            "type": "string",
            "nullable": true
          },
          "commissionToReclaim": {
            "type": "number",
            "format": "double"
          },
          "commissionAtRisk": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "PolicyTerminationRecordDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "policyId": {
            "type": "integer",
            "format": "int32"
          },
          "reason": {
            "type": "string",
            "nullable": true
          },
          "requestedBy": {
            "type": "string",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "effectiveOn": {
            "type": "string",
            "format": "date-time"
          },
          "oldestUnpaidDueDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "daysUnpaid": {
            "type": "integer",
            "format": "int32"
          },
          "writtenOffDueCount": {
            "type": "integer",
            "format": "int32"
          },
          "writtenOffAmount": {
            "type": "number",
            "format": "double"
          },
          "inFlightCollectionRecordId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "inFlightOutcome": {
            "type": "string",
            "nullable": true
          },
          "refundDueAmount": {
            "type": "number",
            "format": "double"
          },
          "commissionReclaimedTotal": {
            "type": "number",
            "format": "double"
          },
          "commissionAtRiskAmount": {
            "type": "number",
            "format": "double"
          },
          "emailStatus": {
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "type": "string",
            "nullable": true
          },
          "createdOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PolicyWithDocumentsDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "policyNumber": {
            "type": "string",
            "nullable": true
          },
          "statusId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "brokerDetailsId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "bankDetailsId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "lastChangedBy": {
            "type": "string",
            "nullable": true
          },
          "changedOnUTC": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdOnUTC": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "policyIdFromLink": {
            "type": "integer",
            "format": "int32"
          },
          "documents": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerServiceDiaryFileDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PostingExceptionActionResult": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "statusId": {
            "type": "integer",
            "format": "int32"
          },
          "replayedJournalBatchId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "wasAlreadyPosted": {
            "type": "boolean"
          },
          "errorCode": {
            "$ref": "#/components/schemas/PostingExceptionServiceError"
          },
          "error": {
            "type": "string",
            "nullable": true
          },
          "postingError": {
            "$ref": "#/components/schemas/PostingServiceError"
          }
        },
        "additionalProperties": false
      },
      "PostingExceptionDetailDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "sourceSystem": {
            "type": "string",
            "nullable": true
          },
          "sourceReference": {
            "type": "string",
            "nullable": true
          },
          "eventTypeCode": {
            "type": "string",
            "nullable": true
          },
          "ledgerId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "globalPolicyId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "reason": {
            "type": "string",
            "nullable": true
          },
          "statusId": {
            "type": "integer",
            "format": "int32"
          },
          "retryCount": {
            "type": "integer",
            "format": "int32"
          },
          "createdOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "resolvedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "resolvedBy": {
            "type": "string",
            "nullable": true
          },
          "replayedJournalBatchId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "resolutionNote": {
            "type": "string",
            "nullable": true
          },
          "eventPayload": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PostingExceptionServiceError": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7
        ],
        "type": "integer",
        "format": "int32"
      },
      "PostingExceptionSummaryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "sourceSystem": {
            "type": "string",
            "nullable": true
          },
          "sourceReference": {
            "type": "string",
            "nullable": true
          },
          "eventTypeCode": {
            "type": "string",
            "nullable": true
          },
          "ledgerId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "globalPolicyId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "reason": {
            "type": "string",
            "nullable": true
          },
          "statusId": {
            "type": "integer",
            "format": "int32"
          },
          "retryCount": {
            "type": "integer",
            "format": "int32"
          },
          "createdOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "resolvedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "resolvedBy": {
            "type": "string",
            "nullable": true
          },
          "replayedJournalBatchId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "resolutionNote": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PostingMapRowDto": {
        "type": "object",
        "properties": {
          "eventTypeId": {
            "type": "integer",
            "format": "int32"
          },
          "eventCode": {
            "type": "string",
            "nullable": true
          },
          "eventName": {
            "type": "string",
            "nullable": true
          },
          "sourceSystem": {
            "type": "string",
            "nullable": true
          },
          "allowsSignedAmounts": {
            "type": "boolean"
          },
          "rules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PostingRuleDto"
            },
            "nullable": true
          },
          "openExceptions": {
            "type": "integer",
            "format": "int32"
          },
          "pendingChanges": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PostingRuleChangeSummaryDto"
            },
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/PostingMapStatus"
          }
        },
        "additionalProperties": false
      },
      "PostingMapStatus": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "format": "int32"
      },
      "PostingRuleChangeDetailDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "changeTypeId": {
            "type": "integer",
            "format": "int32"
          },
          "targetPostingRuleId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "eventTypeId": {
            "type": "integer",
            "format": "int32"
          },
          "eventCode": {
            "type": "string",
            "nullable": true
          },
          "ruleCode": {
            "type": "string",
            "nullable": true
          },
          "statusId": {
            "type": "integer",
            "format": "int32"
          },
          "appliedPostingRuleId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "rejectionReason": {
            "type": "string",
            "nullable": true
          },
          "createdOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          },
          "submittedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "submittedBy": {
            "type": "string",
            "nullable": true
          },
          "approvedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "approvedBy": {
            "type": "string",
            "nullable": true
          },
          "approvedViaTesterBypass": {
            "type": "boolean"
          },
          "payload": {
            "$ref": "#/components/schemas/PostingRuleInput"
          },
          "currentRule": {
            "$ref": "#/components/schemas/PostingRuleDto"
          }
        },
        "additionalProperties": false
      },
      "PostingRuleChangeSummaryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "changeTypeId": {
            "type": "integer",
            "format": "int32"
          },
          "targetPostingRuleId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "eventTypeId": {
            "type": "integer",
            "format": "int32"
          },
          "eventCode": {
            "type": "string",
            "nullable": true
          },
          "ruleCode": {
            "type": "string",
            "nullable": true
          },
          "statusId": {
            "type": "integer",
            "format": "int32"
          },
          "appliedPostingRuleId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "rejectionReason": {
            "type": "string",
            "nullable": true
          },
          "createdOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          },
          "submittedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "submittedBy": {
            "type": "string",
            "nullable": true
          },
          "approvedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "approvedBy": {
            "type": "string",
            "nullable": true
          },
          "approvedViaTesterBypass": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "PostingRuleDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "eventTypeId": {
            "type": "integer",
            "format": "int32"
          },
          "eventCode": {
            "type": "string",
            "nullable": true
          },
          "ruleCode": {
            "type": "string",
            "nullable": true
          },
          "productGroupType": {
            "type": "string",
            "nullable": true
          },
          "productType": {
            "type": "string",
            "nullable": true
          },
          "ledgerTypeId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "ledgerId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "effectiveFrom": {
            "type": "string",
            "format": "date-time"
          },
          "effectiveTo": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "postsNothing": {
            "type": "boolean"
          },
          "specificity": {
            "type": "integer",
            "format": "int32"
          },
          "lines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PostingRuleLineDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PostingRuleInput": {
        "type": "object",
        "properties": {
          "eventTypeId": {
            "type": "integer",
            "format": "int32"
          },
          "ruleCode": {
            "type": "string",
            "nullable": true
          },
          "productGroupType": {
            "type": "string",
            "nullable": true
          },
          "productType": {
            "type": "string",
            "nullable": true
          },
          "ledgerTypeId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "ledgerId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "effectiveFrom": {
            "type": "string",
            "format": "date-time"
          },
          "effectiveTo": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "postsNothing": {
            "type": "boolean"
          },
          "lines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PostingRuleLineInput"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PostingRuleLineDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "lineNo": {
            "type": "integer",
            "format": "int32"
          },
          "accountCode": {
            "type": "string",
            "nullable": true
          },
          "side": {
            "type": "string",
            "nullable": true
          },
          "amountSourceId": {
            "type": "integer",
            "format": "int32"
          },
          "amountSourceCode": {
            "type": "string",
            "nullable": true
          },
          "rate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "narrativeTemplate": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PostingRuleLineInput": {
        "type": "object",
        "properties": {
          "lineNo": {
            "type": "integer",
            "format": "int32"
          },
          "accountCode": {
            "type": "string",
            "nullable": true
          },
          "side": {
            "type": "string",
            "nullable": true
          },
          "amountSourceId": {
            "type": "integer",
            "format": "int32"
          },
          "rate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "narrativeTemplate": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PostingRuleMutationResult": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "changeId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "appliedPostingRuleId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "errorCode": {
            "$ref": "#/components/schemas/PostingRuleServiceError"
          },
          "error": {
            "type": "string",
            "nullable": true
          },
          "validationErrors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PostingRuleValidationError"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PostingRuleServiceError": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11,
          12,
          13,
          14,
          15
        ],
        "type": "integer",
        "format": "int32"
      },
      "PostingRuleValidationCode": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11,
          12,
          13,
          14,
          15,
          16,
          17,
          18,
          19,
          20,
          21,
          22,
          23,
          24,
          25,
          26
        ],
        "type": "integer",
        "format": "int32"
      },
      "PostingRuleValidationError": {
        "type": "object",
        "properties": {
          "code": {
            "$ref": "#/components/schemas/PostingRuleValidationCode"
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "field": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PostingServiceError": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11,
          12
        ],
        "type": "integer",
        "format": "int32"
      },
      "PremiumCollectionDisplayDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "benefitDetailsId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "premiumDueDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "premiumCollectionDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "collectionStatus": {
            "type": "string",
            "nullable": true
          },
          "collectionStatusId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "amount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "bacsRunReference": {
            "type": "string",
            "nullable": true
          },
          "collectionAttempts": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "paymentMethod": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PriceDirectQuoteRequest": {
        "type": "object",
        "properties": {
          "requestXml": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PriceDirectQuoteResponse": {
        "type": "object",
        "properties": {
          "responseXml": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProblemDetails": {
        "type": "object",
        "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
          }
        },
        "additionalProperties": { }
      },
      "ProductStartDateEntry": {
        "type": "object",
        "properties": {
          "productSelectionId": {
            "type": "string",
            "format": "uuid"
          },
          "startDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "ProfitAndLossDto": {
        "type": "object",
        "properties": {
          "ledgerId": {
            "type": "integer",
            "format": "int32"
          },
          "ledgerCode": {
            "type": "string",
            "nullable": true
          },
          "ledgerName": {
            "type": "string",
            "nullable": true
          },
          "accountingPeriodId": {
            "type": "integer",
            "format": "int32"
          },
          "financialYear": {
            "type": "integer",
            "format": "int32"
          },
          "periodNo": {
            "type": "integer",
            "format": "int32"
          },
          "periodStartDate": {
            "type": "string",
            "format": "date-time"
          },
          "periodEndDate": {
            "type": "string",
            "format": "date-time"
          },
          "yearStartDate": {
            "type": "string",
            "format": "date-time"
          },
          "income": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FinancialStatementLineDto"
            },
            "nullable": true
          },
          "expenses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FinancialStatementLineDto"
            },
            "nullable": true
          },
          "periodIncome": {
            "type": "number",
            "format": "double"
          },
          "periodExpenses": {
            "type": "number",
            "format": "double"
          },
          "periodResult": {
            "type": "number",
            "format": "double"
          },
          "yearToDateIncome": {
            "type": "number",
            "format": "double"
          },
          "yearToDateExpenses": {
            "type": "number",
            "format": "double"
          },
          "yearToDateResult": {
            "type": "number",
            "format": "double"
          },
          "yearEndClosed": {
            "type": "boolean"
          },
          "unrolledPriorYears": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProtectionProductAdminDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "productType": {
            "type": "integer",
            "format": "int32"
          },
          "familyId": {
            "type": "integer",
            "format": "int32"
          },
          "familyName": {
            "type": "string",
            "nullable": true
          },
          "productDisplayName": {
            "type": "string",
            "nullable": true
          },
          "coverBasis": {
            "type": "string",
            "nullable": true
          },
          "d2cCode": {
            "type": "string",
            "nullable": true
          },
          "cicCode": {
            "type": "string",
            "nullable": true
          },
          "cicType": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "policyFee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "changedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProtectionProductDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "productDisplayName": {
            "type": "string",
            "nullable": true
          },
          "productType": {
            "type": "integer",
            "format": "int32"
          },
          "groupName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProtectionProductFamilyDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProtectionProductUpdateDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "isActive": {
            "type": "boolean"
          },
          "policyFee": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "changedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProtectionTermRange": {
        "type": "object",
        "properties": {
          "minimumTerm": {
            "type": "integer",
            "format": "int32"
          },
          "maximumTerm": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "ReasonRequest": {
        "type": "object",
        "properties": {
          "reason": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RecordCallBackRequest": {
        "type": "object",
        "properties": {
          "numberDialled": {
            "type": "string",
            "nullable": true
          },
          "numberSourceId": {
            "type": "integer",
            "format": "int32"
          },
          "contactName": {
            "type": "string",
            "nullable": true
          },
          "calledOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "outcomeId": {
            "type": "integer",
            "format": "int32"
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RecordChangeEvent": {
        "type": "object",
        "properties": {
          "recordKey": {
            "type": "string",
            "nullable": true
          },
          "recordLabel": {
            "type": "string",
            "nullable": true
          },
          "action": {
            "type": "string",
            "nullable": true
          },
          "whenUtc": {
            "type": "string",
            "format": "date-time"
          },
          "by": {
            "type": "string",
            "nullable": true
          },
          "changes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FieldChange"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RecordHistory": {
        "type": "object",
        "properties": {
          "recordLabel": {
            "type": "string",
            "nullable": true
          },
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ChangeEvent"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RecordLineOutcomeRequest": {
        "type": "object",
        "properties": {
          "reason": {
            "type": "string",
            "nullable": true
          },
          "amount": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "RecordReturnsDayConfirmationDto": {
        "type": "object",
        "properties": {
          "returnsDay": {
            "type": "string",
            "format": "date-time"
          },
          "reason": {
            "type": "string",
            "nullable": true
          },
          "bureauReference": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RefundDueDto": {
        "type": "object",
        "properties": {
          "policyId": {
            "type": "integer",
            "format": "int32"
          },
          "policyNo": {
            "type": "string",
            "nullable": true
          },
          "reason": {
            "type": "string",
            "nullable": true
          },
          "effectiveOn": {
            "type": "string",
            "format": "date-time"
          },
          "refundDueAmount": {
            "type": "number",
            "format": "double"
          },
          "commissionAtRiskAmount": {
            "type": "number",
            "format": "double"
          },
          "openCommissionDebt": {
            "type": "number",
            "format": "double"
          },
          "premiums": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RefundDuePremiumDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RefundDuePremiumDto": {
        "type": "object",
        "properties": {
          "recordId": {
            "type": "integer",
            "format": "int32"
          },
          "dueDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "collectedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ReinsuranceDeductionDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "kind": {
            "type": "string",
            "nullable": true
          },
          "periodMonth": {
            "type": "string",
            "format": "date-time"
          },
          "policyId": {
            "type": "integer",
            "format": "int32"
          },
          "policyNo": {
            "type": "string",
            "nullable": true
          },
          "benefitDetailsId": {
            "type": "integer",
            "format": "int32"
          },
          "basisId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "familyId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "originalSumAssured": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "currentSumAssured": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "lifeCount": {
            "type": "integer",
            "format": "int32"
          },
          "multiLifeFactor": {
            "type": "number",
            "format": "double"
          },
          "daysInForce": {
            "type": "integer",
            "format": "int32"
          },
          "daysInMonth": {
            "type": "integer",
            "format": "int32"
          },
          "livesTotal": {
            "type": "number",
            "format": "double"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "isCapped": {
            "type": "boolean"
          },
          "reason": {
            "type": "string",
            "nullable": true
          },
          "reversesDeductionId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "lives": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReinsuranceLifeDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ReinsuranceLifeDto": {
        "type": "object",
        "properties": {
          "customerDetailsId": {
            "type": "integer",
            "format": "int32"
          },
          "sex": {
            "type": "string",
            "nullable": true
          },
          "smoker": {
            "type": "boolean",
            "nullable": true
          },
          "smokerStatus": {
            "type": "string",
            "nullable": true
          },
          "dateOfBirth": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "entryAge": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "policyYear": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "rateEntryAge": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "ratePolicyYear": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "rate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isCapped": {
            "type": "boolean"
          },
          "monthlyAmount": {
            "type": "number",
            "format": "double"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "reason": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ReinsuranceRunDetailDto": {
        "type": "object",
        "properties": {
          "run": {
            "$ref": "#/components/schemas/ReinsuranceRunDto"
          },
          "totalRows": {
            "type": "integer",
            "format": "int32"
          },
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReinsuranceDeductionDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ReinsuranceRunDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "periodMonth": {
            "type": "string",
            "format": "date-time"
          },
          "runDate": {
            "type": "string",
            "format": "date-time"
          },
          "runOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "runBy": {
            "type": "string",
            "nullable": true
          },
          "deductionCount": {
            "type": "integer",
            "format": "int32"
          },
          "deductionTotal": {
            "type": "number",
            "format": "double"
          },
          "exceptionCount": {
            "type": "integer",
            "format": "int32"
          },
          "cappedCount": {
            "type": "integer",
            "format": "int32"
          },
          "reversalCount": {
            "type": "integer",
            "format": "int32"
          },
          "reversalTotal": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "ReinsuranceRunResultDto": {
        "type": "object",
        "properties": {
          "outcome": {
            "type": "string",
            "nullable": true
          },
          "isPreview": {
            "type": "boolean"
          },
          "periodMonth": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "runDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "nextRunDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "runId": {
            "type": "integer",
            "format": "int32"
          },
          "deductionCount": {
            "type": "integer",
            "format": "int32"
          },
          "deductionTotal": {
            "type": "number",
            "format": "double"
          },
          "exceptionCount": {
            "type": "integer",
            "format": "int32"
          },
          "cappedCount": {
            "type": "integer",
            "format": "int32"
          },
          "reversalCount": {
            "type": "integer",
            "format": "int32"
          },
          "reversalTotal": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "ReinsuranceSettingsDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "runEnabled": {
            "type": "boolean"
          },
          "runDayOfMonth": {
            "type": "integer",
            "format": "int32"
          },
          "createdOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ReinsuranceSettingsPageDto": {
        "type": "object",
        "properties": {
          "current": {
            "$ref": "#/components/schemas/ReinsuranceSettingsDto"
          },
          "nextRunDate": {
            "type": "string",
            "format": "date-time"
          },
          "history": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReinsuranceSettingsDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ReinsuranceSettingsUpdateDto": {
        "type": "object",
        "properties": {
          "basedOnId": {
            "type": "integer",
            "format": "int32"
          },
          "runEnabled": {
            "type": "boolean"
          },
          "runDayOfMonth": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "RejectOpeningBalanceRequest": {
        "type": "object",
        "properties": {
          "reason": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RejectPostingRuleChangeRequest": {
        "type": "object",
        "properties": {
          "reason": {
            "type": "string",
            "nullable": true
          },
          "reviewedSubmissionStamp": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RejectRequest": {
        "type": "object",
        "properties": {
          "reason": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RejectReturnsDayConfirmationDto": {
        "type": "object",
        "properties": {
          "note": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ResetPasswordRequestDto": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "nullable": true
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "newPassword": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ResolvedDocumentTemplateDto": {
        "type": "object",
        "properties": {
          "templateKey": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "bodyHtml": {
            "type": "string",
            "nullable": true
          },
          "brandKey": {
            "type": "string",
            "nullable": true
          },
          "headerHtml": {
            "type": "string",
            "nullable": true
          },
          "footerHtml": {
            "type": "string",
            "nullable": true
          },
          "css": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RestorePointDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "databaseName": {
            "type": "string",
            "nullable": true
          },
          "takenBy": {
            "type": "string",
            "nullable": true
          },
          "takenOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "businessUkDate": {
            "type": "string",
            "format": "date-time"
          },
          "offsetDays": {
            "type": "integer",
            "format": "int32"
          },
          "migrationCount": {
            "type": "integer",
            "format": "int32"
          },
          "latestMigration": {
            "type": "string",
            "nullable": true
          },
          "sizeBytes": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "lastRestoredOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastRestoredBy": {
            "type": "string",
            "nullable": true
          },
          "schemaMatches": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "RestorePointsStatus": {
        "type": "object",
        "properties": {
          "simulationAllowed": {
            "type": "boolean"
          },
          "gateReason": {
            "type": "string",
            "nullable": true
          },
          "configured": {
            "type": "boolean"
          },
          "notConfiguredReason": {
            "type": "string",
            "nullable": true
          },
          "maxRestorePoints": {
            "type": "integer",
            "format": "int32"
          },
          "points": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RestorePointDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RestoreRequest": {
        "type": "object",
        "properties": {
          "confirmName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ReturnsCoverageDto": {
        "type": "object",
        "properties": {
          "guardEnabled": {
            "type": "boolean"
          },
          "heldCollections": {
            "type": "integer",
            "format": "int32"
          },
          "heldAmount": {
            "type": "number",
            "format": "double"
          },
          "missingDays": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MissingReturnsDayDto"
            },
            "nullable": true
          },
          "confirmations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReturnsDayConfirmationDto"
            },
            "nullable": true
          },
          "problemFiles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BacsProblemFileDto"
            },
            "nullable": true
          },
          "loadFailed": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ReturnsDayConfirmationDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "returnsDay": {
            "type": "string",
            "format": "date-time"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "reason": {
            "type": "string",
            "nullable": true
          },
          "bureauReference": {
            "type": "string",
            "nullable": true
          },
          "recordedBy": {
            "type": "string",
            "nullable": true
          },
          "recordedOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "decidedBy": {
            "type": "string",
            "nullable": true
          },
          "decidedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "decisionNote": {
            "type": "string",
            "nullable": true
          },
          "canApprove": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ReturnsDayConfirmationResultDto": {
        "type": "object",
        "properties": {
          "succeeded": {
            "type": "boolean"
          },
          "error": {
            "type": "string",
            "nullable": true
          },
          "id": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ReverseJournalRequest": {
        "type": "object",
        "properties": {
          "accountingPeriodId": {
            "type": "integer",
            "format": "int32"
          },
          "journalDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "ReviewedChange": {
        "type": "object",
        "properties": {
          "changeId": {
            "type": "integer",
            "format": "int64"
          },
          "submittedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RoleDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "isRemovable": {
            "type": "boolean"
          },
          "roleClaims": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RunDayResult": {
        "type": "object",
        "properties": {
          "succeeded": {
            "type": "boolean"
          },
          "error": {
            "type": "string",
            "nullable": true
          },
          "clock": {
            "$ref": "#/components/schemas/SimulationClockStatus"
          },
          "jobs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BatchJobOutcome"
            },
            "nullable": true
          },
          "cleared": {
            "type": "integer",
            "format": "int32"
          },
          "held": {
            "type": "integer",
            "format": "int32"
          },
          "debtsOpened": {
            "type": "integer",
            "format": "int32"
          },
          "recoveries": {
            "type": "integer",
            "format": "int32"
          },
          "reversals": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "RunForwardRequest": {
        "type": "object",
        "properties": {
          "days": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "SalesAndQuotesDailyRow": {
        "type": "object",
        "properties": {
          "day": {
            "type": "string",
            "format": "date-time"
          },
          "lifeQuotes": {
            "type": "integer",
            "format": "int32"
          },
          "lifeSales": {
            "type": "integer",
            "format": "int32"
          },
          "bondSales": {
            "type": "integer",
            "format": "int32"
          },
          "structuredSales": {
            "type": "integer",
            "format": "int32"
          },
          "totalSales": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "SalesLedgerCustomerDetailDto": {
        "type": "object",
        "properties": {
          "customer": {
            "$ref": "#/components/schemas/SalesLedgerCustomerDto"
          },
          "policies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SalesLedgerCustomerPolicyDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SalesLedgerCustomerDto": {
        "type": "object",
        "properties": {
          "cinNo": {
            "type": "string",
            "nullable": true
          },
          "customerDetailsId": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "policyCount": {
            "type": "integer",
            "format": "int32"
          },
          "hasJointPolicy": {
            "type": "boolean"
          },
          "balance": {
            "type": "number",
            "format": "double"
          },
          "entryCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "SalesLedgerCustomerPolicyDto": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "integer",
            "format": "int32"
          },
          "globalPolicyId": {
            "type": "integer",
            "format": "int32"
          },
          "policyNo": {
            "type": "string",
            "nullable": true
          },
          "holders": {
            "type": "string",
            "nullable": true
          },
          "isJoint": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          },
          "balance": {
            "type": "number",
            "format": "double"
          },
          "entryCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "SaveBankDetailsRequest": {
        "type": "object",
        "properties": {
          "applicationJourneyId": {
            "type": "string",
            "format": "uuid"
          },
          "bankDetails": {
            "$ref": "#/components/schemas/AppBankDetailsDto"
          }
        },
        "additionalProperties": false
      },
      "SaveClientDeclarationRequest": {
        "type": "object",
        "properties": {
          "applicationJourneyId": {
            "type": "string",
            "format": "uuid"
          },
          "clientDeclaration": {
            "$ref": "#/components/schemas/AppClientDeclarationDto"
          }
        },
        "additionalProperties": false
      },
      "SaveClientDetailsRequest": {
        "type": "object",
        "properties": {
          "applicationJourneyId": {
            "type": "string",
            "format": "uuid"
          },
          "clientDetails": {
            "$ref": "#/components/schemas/AppClientDetailsDto"
          }
        },
        "additionalProperties": false
      },
      "SaveDecisionRequest": {
        "type": "object",
        "properties": {
          "applicationJourneyId": {
            "type": "string",
            "format": "uuid"
          },
          "decision": {
            "$ref": "#/components/schemas/AppUnderwritingDecisionDto"
          }
        },
        "additionalProperties": false
      },
      "SaveDirectQuoteRequest": {
        "type": "object",
        "properties": {
          "directQuoteId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "step": {
            "type": "string",
            "nullable": true
          },
          "clientName": {
            "type": "string",
            "nullable": true
          },
          "benefitCount": {
            "type": "integer",
            "format": "int32"
          },
          "monthlyPremium": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "stateJson": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SaveDirectQuoteResponse": {
        "type": "object",
        "properties": {
          "directQuoteId": {
            "type": "string",
            "format": "uuid"
          },
          "quoteReference": {
            "type": "string",
            "nullable": true
          },
          "currentStep": {
            "type": "string",
            "nullable": true
          },
          "furthestStep": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SaveDoctorDetailsRequest": {
        "type": "object",
        "properties": {
          "applicationJourneyId": {
            "type": "string",
            "format": "uuid"
          },
          "doctorDetails": {
            "$ref": "#/components/schemas/AppDoctorDetailsDto"
          }
        },
        "additionalProperties": false
      },
      "SaveEamraConsentRequest": {
        "type": "object",
        "properties": {
          "applicationJourneyId": {
            "type": "string",
            "format": "uuid"
          },
          "eAmraConsent": {
            "$ref": "#/components/schemas/AppEamraConsentDto"
          }
        },
        "additionalProperties": false
      },
      "SaveJourneyStepResponse": {
        "type": "object",
        "properties": {
          "applicationJourneyId": {
            "type": "string",
            "format": "uuid"
          },
          "currentStep": {
            "type": "string",
            "nullable": true
          },
          "furthestStep": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "isLocked": {
            "type": "boolean"
          },
          "isComplete": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "SaveMedicalHistoryRequest": {
        "type": "object",
        "properties": {
          "applicationJourneyId": {
            "type": "string",
            "format": "uuid"
          },
          "medicalHistory": {
            "$ref": "#/components/schemas/AppMedicalHistoryDto"
          }
        },
        "additionalProperties": false
      },
      "SaveProductDetailsRequest": {
        "type": "object",
        "properties": {
          "applicationJourneyId": {
            "type": "string",
            "format": "uuid"
          },
          "products": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AppProductSelectionDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SaveProductStartDatesRequest": {
        "type": "object",
        "properties": {
          "applicationJourneyId": {
            "type": "string",
            "format": "uuid"
          },
          "startDates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProductStartDateEntry"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SaveReferralScreeningRequest": {
        "type": "object",
        "properties": {
          "applicationJourneyId": {
            "type": "string",
            "format": "uuid"
          },
          "referralNotes": {
            "type": "string",
            "nullable": true
          },
          "adviserEmail": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SendEmailRequestDto": {
        "type": "object",
        "properties": {
          "to": {
            "type": "string",
            "nullable": true
          },
          "cc": {
            "type": "string",
            "nullable": true
          },
          "bcc": {
            "type": "string",
            "nullable": true
          },
          "subject": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "isBodyHtml": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "SendTemplateEmailRequestDto": {
        "type": "object",
        "properties": {
          "templateKey": {
            "type": "string",
            "nullable": true
          },
          "to": {
            "type": "string",
            "nullable": true
          },
          "cc": {
            "type": "string",
            "nullable": true
          },
          "bcc": {
            "type": "string",
            "nullable": true
          },
          "replacements": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SessionTokens": {
        "type": "object",
        "properties": {
          "access_token": {
            "type": "string",
            "nullable": true
          },
          "refresh_token": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SetAiAbilityRequest": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "SimulateCleanDayRequestDto": {
        "type": "object",
        "properties": {
          "day": {
            "type": "string",
            "format": "date-time"
          },
          "deliver": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "SimulateMandateEventsRequestDto": {
        "type": "object",
        "properties": {
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SimulatedMandateEventDto"
            },
            "nullable": true
          },
          "effectiveDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "deliver": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "SimulatePercentReturnsRequestDto": {
        "type": "object",
        "properties": {
          "fileId": {
            "type": "integer",
            "format": "int64"
          },
          "percent": {
            "type": "integer",
            "format": "int32"
          },
          "seed": {
            "type": "integer",
            "format": "int32"
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "reportDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "deliver": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "SimulateRejectionsRequestDto": {
        "type": "object",
        "properties": {
          "fileId": {
            "type": "integer",
            "format": "int64"
          },
          "rejections": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SimulatedRecordOutcomeDto"
            },
            "nullable": true
          },
          "reportDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "deliver": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "SimulateReturnsRequestDto": {
        "type": "object",
        "properties": {
          "fileId": {
            "type": "integer",
            "format": "int64"
          },
          "returns": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SimulatedRecordOutcomeDto"
            },
            "nullable": true
          },
          "reportDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "deliver": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "SimulatedMandateEventDto": {
        "type": "object",
        "properties": {
          "mandateReference": {
            "type": "string",
            "nullable": true
          },
          "reasonCode": {
            "type": "string",
            "nullable": true
          },
          "newAccountName": {
            "type": "string",
            "nullable": true
          },
          "newAccountNumber": {
            "type": "string",
            "nullable": true
          },
          "newSortCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SimulatedRecordOutcomeDto": {
        "type": "object",
        "properties": {
          "recordIndex": {
            "type": "integer",
            "format": "int32"
          },
          "code": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SimulatedReportDto": {
        "type": "object",
        "properties": {
          "succeeded": {
            "type": "boolean"
          },
          "error": {
            "type": "string",
            "nullable": true
          },
          "adviceType": {
            "type": "string",
            "nullable": true
          },
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "items": {
            "type": "integer",
            "format": "int32"
          },
          "deliveredTo": {
            "type": "string",
            "nullable": true
          },
          "xml": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SimulationCleanDayOutcome": {
        "enum": [
          0,
          1,
          2,
          3,
          4
        ],
        "type": "integer",
        "format": "int32"
      },
      "SimulationClockStatus": {
        "type": "object",
        "properties": {
          "simulationAllowed": {
            "type": "boolean"
          },
          "gateReason": {
            "type": "string",
            "nullable": true
          },
          "offsetDays": {
            "type": "integer",
            "format": "int32"
          },
          "realUtcNow": {
            "type": "string",
            "format": "date-time"
          },
          "businessUtcNow": {
            "type": "string",
            "format": "date-time"
          },
          "realUkDate": {
            "type": "string",
            "format": "date-time"
          },
          "businessUkDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "SimulationDayStatus": {
        "type": "object",
        "properties": {
          "clock": {
            "$ref": "#/components/schemas/SimulationClockStatus"
          },
          "clockMovedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastRun": {
            "$ref": "#/components/schemas/SimulationLastRun"
          },
          "currentDayRun": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "SimulationLastRun": {
        "type": "object",
        "properties": {
          "triggeredBy": {
            "type": "string",
            "nullable": true
          },
          "startedOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "finishedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "jobs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SimulationLastRunJob"
            },
            "nullable": true
          },
          "allSucceeded": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "SimulationLastRunJob": {
        "type": "object",
        "properties": {
          "jobKey": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "itemsProcessed": {
            "type": "integer",
            "format": "int32"
          },
          "itemsFailed": {
            "type": "integer",
            "format": "int32"
          },
          "error": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SimulationRunForwardBatchFailure": {
        "type": "object",
        "properties": {
          "batchId": {
            "type": "integer",
            "format": "int64"
          },
          "kind": {
            "type": "string",
            "nullable": true
          },
          "entryDate": {
            "type": "string",
            "format": "date-time"
          },
          "errorCode": {
            "type": "string",
            "nullable": true
          },
          "error": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SimulationRunForwardDay": {
        "type": "object",
        "properties": {
          "dayNumber": {
            "type": "integer",
            "format": "int32"
          },
          "businessUkDate": {
            "type": "string",
            "format": "date-time"
          },
          "workingDay": {
            "type": "boolean",
            "nullable": true
          },
          "cleanDay": {
            "$ref": "#/components/schemas/SimulationCleanDayOutcome"
          },
          "cleanDayNote": {
            "type": "string",
            "nullable": true
          },
          "chainSucceeded": {
            "type": "boolean",
            "nullable": true
          },
          "failedJobs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SimulationRunForwardJobFailure"
            },
            "nullable": true
          },
          "cleared": {
            "type": "integer",
            "format": "int32"
          },
          "held": {
            "type": "integer",
            "format": "int32"
          },
          "debtsOpened": {
            "type": "integer",
            "format": "int32"
          },
          "recoveries": {
            "type": "integer",
            "format": "int32"
          },
          "reversals": {
            "type": "integer",
            "format": "int32"
          },
          "batchesCleared": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "failedBatches": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SimulationRunForwardBatchFailure"
            },
            "nullable": true
          },
          "succeeded": {
            "type": "boolean"
          },
          "failedStep": {
            "$ref": "#/components/schemas/SimulationRunForwardStep"
          },
          "error": {
            "type": "string",
            "nullable": true
          },
          "startedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "finishedUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SimulationRunForwardJobFailure": {
        "type": "object",
        "properties": {
          "jobKey": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "error": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SimulationRunForwardState": {
        "enum": [
          0,
          1,
          2,
          3,
          4
        ],
        "type": "integer",
        "format": "int32"
      },
      "SimulationRunForwardStatus": {
        "type": "object",
        "properties": {
          "state": {
            "$ref": "#/components/schemas/SimulationRunForwardState"
          },
          "startedBy": {
            "type": "string",
            "nullable": true
          },
          "startedUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "finishedUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "daysRequested": {
            "type": "integer",
            "format": "int32"
          },
          "startBusinessDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "currentDay": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "currentStep": {
            "$ref": "#/components/schemas/SimulationRunForwardStep"
          },
          "stopRequested": {
            "type": "boolean"
          },
          "failedDay": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "failedStep": {
            "$ref": "#/components/schemas/SimulationRunForwardStep"
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "days": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SimulationRunForwardDay"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SimulationRunForwardStep": {
        "enum": [
          0,
          1,
          2,
          3
        ],
        "type": "integer",
        "format": "int32"
      },
      "StartApplicationJourneyRequest": {
        "type": "object",
        "properties": {
          "brokerId": {
            "type": "integer",
            "format": "int32"
          },
          "messageId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "StartApplicationJourneyResponse": {
        "type": "object",
        "properties": {
          "applicationJourneyId": {
            "type": "string",
            "format": "uuid"
          },
          "applicationReference": {
            "type": "string",
            "nullable": true
          },
          "currentStep": {
            "type": "string",
            "nullable": true
          },
          "furthestStep": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "StatutoryExportDto": {
        "type": "object",
        "properties": {
          "ledgerId": {
            "type": "integer",
            "format": "int32"
          },
          "ledgerCode": {
            "type": "string",
            "nullable": true
          },
          "accountingPeriodId": {
            "type": "integer",
            "format": "int32"
          },
          "financialYear": {
            "type": "integer",
            "format": "int32"
          },
          "periodNo": {
            "type": "integer",
            "format": "int32"
          },
          "periodStartDate": {
            "type": "string",
            "format": "date-time"
          },
          "periodEndDate": {
            "type": "string",
            "format": "date-time"
          },
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StatutoryExportRowDto"
            },
            "nullable": true
          },
          "totalDebit": {
            "type": "number",
            "format": "double"
          },
          "totalCredit": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "StatutoryExportError": {
        "enum": [
          0,
          1,
          2,
          3,
          4
        ],
        "type": "integer",
        "format": "int32"
      },
      "StatutoryExportResult": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "ledgerId": {
            "type": "integer",
            "format": "int32"
          },
          "export": {
            "$ref": "#/components/schemas/StatutoryExportDto"
          },
          "errorCode": {
            "$ref": "#/components/schemas/StatutoryExportError"
          },
          "error": {
            "type": "string",
            "nullable": true
          },
          "unmappedAccountCodes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "StatutoryExportRowDto": {
        "type": "object",
        "properties": {
          "externalAccountCode": {
            "type": "string",
            "nullable": true
          },
          "externalAccountName": {
            "type": "string",
            "nullable": true
          },
          "debit": {
            "type": "number",
            "format": "double"
          },
          "credit": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "StatutoryMappingInput": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "integer",
            "format": "int32"
          },
          "externalAccountCode": {
            "type": "string",
            "nullable": true
          },
          "externalAccountName": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "StatutoryMappingListDto": {
        "type": "object",
        "properties": {
          "ledgerId": {
            "type": "integer",
            "format": "int32"
          },
          "ledgerCode": {
            "type": "string",
            "nullable": true
          },
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StatutoryMappingRowDto"
            },
            "nullable": true
          },
          "unmappedCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "StatutoryMappingRowDto": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "integer",
            "format": "int32"
          },
          "accountCode": {
            "type": "string",
            "nullable": true
          },
          "accountName": {
            "type": "string",
            "nullable": true
          },
          "accountClassId": {
            "type": "integer",
            "format": "int32"
          },
          "accountIsActive": {
            "type": "boolean"
          },
          "mappingId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "externalAccountCode": {
            "type": "string",
            "nullable": true
          },
          "externalAccountName": {
            "type": "string",
            "nullable": true
          },
          "mappingIsActive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "SubmitFileRequest": {
        "type": "object",
        "properties": {
          "bureauReference": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SubmittedPaymentFileDetailDto": {
        "type": "object",
        "properties": {
          "file": {
            "$ref": "#/components/schemas/SubmittedPaymentFileDto"
          },
          "records": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SubmittedPaymentRecordDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SubmittedPaymentFileDto": {
        "type": "object",
        "properties": {
          "fileId": {
            "type": "integer",
            "format": "int64"
          },
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "kind": {
            "type": "string",
            "nullable": true
          },
          "processingDate": {
            "type": "string",
            "format": "date-time"
          },
          "recordCount": {
            "type": "integer",
            "format": "int32"
          },
          "totalAmount": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "SubmittedPaymentRecordDto": {
        "type": "object",
        "properties": {
          "index": {
            "type": "integer",
            "format": "int32"
          },
          "reference": {
            "type": "string",
            "nullable": true
          },
          "accountName": {
            "type": "string",
            "nullable": true
          },
          "accountNumberMasked": {
            "type": "string",
            "nullable": true
          },
          "transactionCode": {
            "type": "string",
            "nullable": true
          },
          "amount": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "SupportCaseCreatedDto": {
        "type": "object",
        "properties": {
          "caseId": {
            "type": "integer",
            "format": "int32"
          },
          "caseReference": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SupportCaseDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "caseReference": {
            "type": "string",
            "nullable": true
          },
          "customerDetailsId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "policyId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "category": {
            "type": "string",
            "nullable": true
          },
          "subject": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "source": {
            "type": "string",
            "nullable": true
          },
          "createdByUser": {
            "type": "string",
            "nullable": true
          },
          "createdOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "messages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SupportCaseMessageDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SupportCaseMessageDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "direction": {
            "type": "string",
            "nullable": true
          },
          "fromAddress": {
            "type": "string",
            "nullable": true
          },
          "toAddress": {
            "type": "string",
            "nullable": true
          },
          "subject": {
            "type": "string",
            "nullable": true
          },
          "bodyText": {
            "type": "string",
            "nullable": true
          },
          "bodyHtml": {
            "type": "string",
            "nullable": true
          },
          "receivedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "hasAttachments": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "SupportReviewItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "fromAddress": {
            "type": "string",
            "nullable": true
          },
          "toAddress": {
            "type": "string",
            "nullable": true
          },
          "subject": {
            "type": "string",
            "nullable": true
          },
          "bodyText": {
            "type": "string",
            "nullable": true
          },
          "receivedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "extractedReference": {
            "type": "string",
            "nullable": true
          },
          "hasAttachments": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "TableChangeEvent": {
        "type": "object",
        "properties": {
          "schema": {
            "type": "string",
            "nullable": true
          },
          "table": {
            "type": "string",
            "nullable": true
          },
          "recordKey": {
            "type": "string",
            "nullable": true
          },
          "recordLabel": {
            "type": "string",
            "nullable": true
          },
          "action": {
            "type": "string",
            "nullable": true
          },
          "whenUtc": {
            "type": "string",
            "format": "date-time"
          },
          "by": {
            "type": "string",
            "nullable": true
          },
          "changes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FieldChange"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TemplateAccountInput": {
        "type": "object",
        "properties": {
          "accountCode": {
            "type": "string",
            "nullable": true
          },
          "accountName": {
            "type": "string",
            "nullable": true
          },
          "accountClassId": {
            "type": "integer",
            "format": "int32"
          },
          "parentAccountCode": {
            "type": "string",
            "nullable": true
          },
          "controlTypeId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "allowManualJournal": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "TesterBypassStatusDto": {
        "type": "object",
        "properties": {
          "allowed": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "TrialBalanceDto": {
        "type": "object",
        "properties": {
          "ledgerId": {
            "type": "integer",
            "format": "int32"
          },
          "ledgerCode": {
            "type": "string",
            "nullable": true
          },
          "accountingPeriodId": {
            "type": "integer",
            "format": "int32"
          },
          "financialYear": {
            "type": "integer",
            "format": "int32"
          },
          "periodNo": {
            "type": "integer",
            "format": "int32"
          },
          "comparativePeriodId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TrialBalanceRowDto"
            },
            "nullable": true
          },
          "totalDebit": {
            "type": "number",
            "format": "double"
          },
          "totalCredit": {
            "type": "number",
            "format": "double"
          },
          "unrolledPriorYears": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TrialBalanceRowDto": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "integer",
            "format": "int32"
          },
          "accountCode": {
            "type": "string",
            "nullable": true
          },
          "accountName": {
            "type": "string",
            "nullable": true
          },
          "accountClassId": {
            "type": "integer",
            "format": "int32"
          },
          "isControlAccount": {
            "type": "boolean"
          },
          "periodDebit": {
            "type": "number",
            "format": "double"
          },
          "periodCredit": {
            "type": "number",
            "format": "double"
          },
          "closingBalance": {
            "type": "number",
            "format": "double"
          },
          "comparativePeriodDebit": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "comparativePeriodCredit": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "comparativeClosingBalance": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TwoFactorConfirmRequest": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TwoFactorDisableRequest": {
        "type": "object",
        "properties": {
          "password": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TwoFactorSetupResponse": {
        "type": "object",
        "properties": {
          "sharedKey": {
            "type": "string",
            "nullable": true
          },
          "otpAuthUri": {
            "type": "string",
            "nullable": true
          },
          "session": {
            "$ref": "#/components/schemas/SessionTokens"
          }
        },
        "additionalProperties": false
      },
      "UWDetailsDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "refNo": {
            "type": "string",
            "nullable": true
          },
          "statusId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "statusName": {
            "type": "string",
            "nullable": true
          },
          "enquiryId": {
            "type": "string",
            "nullable": true
          },
          "height": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "weight": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "bmi": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "bmiLoadingLife": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "bmiLoadingCi": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "emLife": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "emCi": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "loadReason1": {
            "type": "string",
            "nullable": true
          },
          "loadReason2": {
            "type": "string",
            "nullable": true
          },
          "loadReason3": {
            "type": "string",
            "nullable": true
          },
          "loadReason4": {
            "type": "string",
            "nullable": true
          },
          "loadReason5": {
            "type": "string",
            "nullable": true
          },
          "eamraConsent": {
            "type": "boolean",
            "nullable": true
          },
          "eamraReportRequested": {
            "type": "boolean",
            "nullable": true
          },
          "eamraDateSigned": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastChangedBy": {
            "type": "string",
            "nullable": true
          },
          "changedOnUTC": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdOnUTC": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UnderwritingDisplayDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "customerDetailsIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "bmiLoadingLife": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "bmiLoadingCi": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "emLife": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "emCi": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isRated": {
            "type": "boolean"
          },
          "smokerStatus": {
            "type": "string",
            "nullable": true
          },
          "dateLastSmoked": {
            "type": "string",
            "nullable": true
          },
          "height": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "weight": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "bmi": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "loadReason1": {
            "type": "string",
            "nullable": true
          },
          "loadReason2": {
            "type": "string",
            "nullable": true
          },
          "loadReason3": {
            "type": "string",
            "nullable": true
          },
          "loadReason4": {
            "type": "string",
            "nullable": true
          },
          "loadReason5": {
            "type": "string",
            "nullable": true
          },
          "eamraConsent": {
            "type": "boolean",
            "nullable": true
          },
          "eamraDateSigned": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UnpaidPremiumDto": {
        "type": "object",
        "properties": {
          "benefitId": {
            "type": "integer",
            "format": "int32"
          },
          "dueDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "recordId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateJournalRequest": {
        "type": "object",
        "properties": {
          "accountingPeriodId": {
            "type": "integer",
            "format": "int32"
          },
          "journalDate": {
            "type": "string",
            "format": "date-time"
          },
          "effectiveDate": {
            "type": "string",
            "format": "date-time"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "lines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/JournalLineInput"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UserActivityItem": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "occurredOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "eventType": {
            "type": "string",
            "nullable": true
          },
          "userId": {
            "type": "string",
            "nullable": true
          },
          "userName": {
            "type": "string",
            "nullable": true
          },
          "userEmail": {
            "type": "string",
            "nullable": true
          },
          "attemptedEmail": {
            "type": "string",
            "nullable": true
          },
          "performedBy": {
            "type": "string",
            "nullable": true
          },
          "ipAddress": {
            "type": "string",
            "nullable": true
          },
          "userAgent": {
            "type": "string",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UserActivityItemPagedResult": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UserActivityItem"
            },
            "nullable": true
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "UserDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "forenames": {
            "type": "string",
            "nullable": true
          },
          "surname": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "userName": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "emailConfirmed": {
            "type": "boolean"
          },
          "phoneNumber": {
            "type": "string",
            "nullable": true
          },
          "phoneNumberConfirmed": {
            "type": "boolean"
          },
          "twoFactorEnabled": {
            "type": "boolean"
          },
          "isLockedOut": {
            "type": "boolean"
          },
          "indefiniteLockout": {
            "type": "boolean"
          },
          "lockoutEnd": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lockoutEnabled": {
            "type": "boolean"
          },
          "accessFailedCount": {
            "type": "integer",
            "format": "int32"
          },
          "changePassword": {
            "type": "boolean"
          },
          "password": {
            "type": "string",
            "nullable": true
          },
          "confirmPassword": {
            "type": "string",
            "nullable": true
          },
          "userRoles": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "isRemovable": {
            "type": "boolean"
          },
          "brokerRecordCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "UserDtoPagedResult": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UserDto"
            },
            "nullable": true
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "UserEditDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "forenames": {
            "type": "string",
            "nullable": true
          },
          "surname": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "userName": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "emailConfirmed": {
            "type": "boolean"
          },
          "phoneNumber": {
            "type": "string",
            "nullable": true
          },
          "phoneNumberConfirmed": {
            "type": "boolean"
          },
          "twoFactorEnabled": {
            "type": "boolean"
          },
          "isLockedOut": {
            "type": "boolean"
          },
          "indefiniteLockout": {
            "type": "boolean"
          },
          "lockoutEnd": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lockoutEnabled": {
            "type": "boolean"
          },
          "accessFailedCount": {
            "type": "integer",
            "format": "int32"
          },
          "changePassword": {
            "type": "boolean"
          },
          "password": {
            "type": "string",
            "nullable": true
          },
          "confirmPassword": {
            "type": "string",
            "nullable": true
          },
          "userRoles": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "isRemovable": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ValidateEmailedLinkRequestDto": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "nullable": true
          },
          "code": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "VersionedTable": {
        "type": "object",
        "properties": {
          "schema": {
            "type": "string",
            "nullable": true
          },
          "table": {
            "type": "string",
            "nullable": true
          },
          "keyColumn": {
            "type": "string",
            "nullable": true
          },
          "periodStartColumn": {
            "type": "string",
            "nullable": true
          },
          "periodEndColumn": {
            "type": "string",
            "nullable": true
          },
          "actorColumn": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "YearEndRejectionDto": {
        "type": "object",
        "properties": {
          "submittedBy": {
            "type": "string",
            "nullable": true
          },
          "rejectedBy": {
            "type": "string",
            "nullable": true
          },
          "rejectedOnUtc": {
            "type": "string",
            "format": "date-time"
          },
          "reason": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "YearEndResult": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "ledgerId": {
            "type": "integer",
            "format": "int32"
          },
          "financialYear": {
            "type": "integer",
            "format": "int32"
          },
          "journalIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "nextYearPeriodsCreated": {
            "type": "integer",
            "format": "int32"
          },
          "nextYearNote": {
            "type": "string",
            "nullable": true
          },
          "errorCode": {
            "$ref": "#/components/schemas/PeriodServiceError"
          },
          "error": {
            "type": "string",
            "nullable": true
          },
          "sqlErrorNumber": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "failedChecks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CloseCheckDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "YearEndStatusDto": {
        "type": "object",
        "properties": {
          "ledgerId": {
            "type": "integer",
            "format": "int32"
          },
          "financialYear": {
            "type": "integer",
            "format": "int32"
          },
          "journalIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "awaitingApproval": {
            "type": "boolean"
          },
          "posted": {
            "type": "boolean"
          },
          "submittedBy": {
            "type": "string",
            "nullable": true
          },
          "submittedOnUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "openPeriodCount": {
            "type": "integer",
            "format": "int32"
          },
          "pendingUnroll": {
            "$ref": "#/components/schemas/PendingUnrollDto"
          },
          "rejections": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/YearEndRejectionDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "YearEndUnrollResult": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "ledgerId": {
            "type": "integer",
            "format": "int32"
          },
          "financialYear": {
            "type": "integer",
            "format": "int32"
          },
          "unrollId": {
            "type": "integer",
            "format": "int64"
          },
          "closeJournalId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "reversalJournalId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "reopenedPeriodCount": {
            "type": "integer",
            "format": "int32"
          },
          "errorCode": {
            "$ref": "#/components/schemas/PeriodServiceError"
          },
          "error": {
            "type": "string",
            "nullable": true
          },
          "sqlErrorNumber": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "description": "JWT Authorization header using the Bearer scheme.",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "security": [
    {
      "bearerAuth": [ ]
    }
  ],
  "tags": [
    {
      "name": "Account"
    },
    {
      "name": "Address"
    },
    {
      "name": "Admin"
    },
    {
      "name": "AiAdmin"
    },
    {
      "name": "AiAssistant"
    },
    {
      "name": "ApplicationJourneys"
    },
    {
      "name": "BacsReturnsCoverage"
    },
    {
      "name": "BacsSimulator"
    },
    {
      "name": "Bank"
    },
    {
      "name": "Batch"
    },
    {
      "name": "Benefit"
    },
    {
      "name": "BenefitCommission"
    },
    {
      "name": "Broker"
    },
    {
      "name": "CommissionOperations"
    },
    {
      "name": "Company"
    },
    {
      "name": "CompanyCommission"
    },
    {
      "name": "Customer"
    },
    {
      "name": "CustomerMatchReview"
    },
    {
      "name": "CustomerPortfolio"
    },
    {
      "name": "CustomerServiceDiary"
    },
    {
      "name": "Diagnostics"
    },
    {
      "name": "DiaryEventTypes"
    },
    {
      "name": "DirectQuotes"
    },
    {
      "name": "Display"
    },
    {
      "name": "Doctor"
    },
    {
      "name": "DocumentTemplates"
    },
    {
      "name": "GlBank"
    },
    {
      "name": "GlDimensions"
    },
    {
      "name": "GlFinancialStatements"
    },
    {
      "name": "GlJournals"
    },
    {
      "name": "GlLedgers"
    },
    {
      "name": "GlLookups"
    },
    {
      "name": "GlOpeningBalance"
    },
    {
      "name": "GlPartyLedgers"
    },
    {
      "name": "GlPeriods"
    },
    {
      "name": "GlPostingExceptions"
    },
    {
      "name": "GlPostingMap"
    },
    {
      "name": "GlPostingRules"
    },
    {
      "name": "GlStatutoryExport"
    },
    {
      "name": "GlTrialBalance"
    },
    {
      "name": "History"
    },
    {
      "name": "LifeProtectionAdminFees"
    },
    {
      "name": "LifeReinsurance"
    },
    {
      "name": "Mi"
    },
    {
      "name": "ModulusRuleSets"
    },
    {
      "name": "Newbusiness"
    },
    {
      "name": "Notifications"
    },
    {
      "name": "Occupation"
    },
    {
      "name": "Payees"
    },
    {
      "name": "PaymentBatches"
    },
    {
      "name": "PaymentFiles"
    },
    {
      "name": "PaymentInstructions"
    },
    {
      "name": "PaymentsDashboard"
    },
    {
      "name": "PaymentsLookups"
    },
    {
      "name": "PersonTitles"
    },
    {
      "name": "Policies"
    },
    {
      "name": "PolicyFeeCharge"
    },
    {
      "name": "PolicyLapse"
    },
    {
      "name": "PolicyLink"
    },
    {
      "name": "PolicyPaymentMandates"
    },
    {
      "name": "PolicyTermination"
    },
    {
      "name": "ProtectionProducts"
    },
    {
      "name": "Reports"
    },
    {
      "name": "Security"
    },
    {
      "name": "SimulationClock"
    },
    {
      "name": "SimulationRestorePoints"
    },
    {
      "name": "Support"
    },
    {
      "name": "TemplatesAdmin"
    },
    {
      "name": "TesterBypass"
    },
    {
      "name": "User"
    },
    {
      "name": "UserActivity"
    },
    {
      "name": "UW"
    }
  ]
}