{
  "x-generator": "NSwag v13.15.5.0 (NJsonSchema v10.6.6.0 (Newtonsoft.Json v13.0.0.0))",
  "openapi": "3.0.0",
  "info": {
    "title": "LoaVerification.Api",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://verify-api.ocas.ca"
    }
  ],
  "paths": {
    "/api/v1/recaptcha": {
      "post": {
        "tags": [
          "Recaptcha"
        ],
        "operationId": "Recaptcha_VerifyRecaptchaToken",
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 1
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Preferred locale (en-CA, fr-CA).",
            "schema": {
              "type": "string",
              "default": "en-CA"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          },
          "400": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestProblemDetailsDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings": {
      "get": {
        "tags": [
          "Settings"
        ],
        "operationId": "Settings_GetSettings",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Preferred locale (en-CA, fr-CA).",
            "schema": {
              "type": "string",
              "default": "en-CA"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "400": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestProblemDetailsDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/offers": {
      "post": {
        "tags": [
          "ApplicantOffers"
        ],
        "operationId": "ApplicantOffers_GetApplicantOffersByParam",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Preferred locale (en-CA, fr-CA).",
            "schema": {
              "type": "string",
              "default": "en-CA"
            }
          }
        ],
        "requestBody": {
          "x-name": "params",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApplicantSearchOptions"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicantDto"
                }
              }
            }
          },
          "400": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestProblemDetailsDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/templates": {
      "post": {
        "tags": [
          "Templates"
        ],
        "operationId": "Templates_GetTemplate",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Preferred locale (en-CA, fr-CA).",
            "schema": {
              "type": "string",
              "default": "en-CA"
            }
          }
        ],
        "requestBody": {
          "x-name": "params",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TemplateSearchOptions"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestProblemDetailsDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/lookups": {
      "get": {
        "tags": [
          "Lookups"
        ],
        "operationId": "Lookups_GetLookups",
        "parameters": [
          {
            "name": "showTestColleges",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "x-position": 1
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "Preferred locale (en-CA, fr-CA).",
            "schema": {
              "type": "string",
              "default": "en-CA"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LookupsDto"
                }
              }
            }
          },
          "400": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestProblemDetailsDto"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "BadRequestProblemDetailsDto": {
        "type": "object",
        "additionalProperties": {
          "nullable": true
        },
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          },
          "errors": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/ErrorDto"
            }
          }
        }
      },
      "ErrorDto": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "field": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ApplicantDto": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "collegeId": {
            "type": "string",
            "format": "guid",
            "nullable": true
          },
          "collegeName": {
            "type": "string",
            "nullable": true
          },
          "collegeCode": {
            "type": "string",
            "nullable": true
          },
          "fullLegalName": {
            "type": "string",
            "nullable": true
          },
          "isFuzzyMatch": {
            "type": "boolean",
            "nullable": true
          },
          "fuzzyMatchType": {
            "type": "string",
            "nullable": true
          },
          "declarePassportNumber": {
            "type": "string",
            "nullable": true
          },
          "declareStudentId": {
            "type": "string",
            "nullable": true
          },
          "currentOffers": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/OfferDto"
            }
          },
          "futureOffers": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/OfferDto"
            }
          },
          "invalidOffers": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/InvalidOfferDto"
            }
          }
        }
      },
      "OfferDto": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "campus": {
            "type": "string",
            "nullable": true
          },
          "dliNumber": {
            "type": "string",
            "nullable": true
          },
          "isPaid": {
            "type": "boolean",
            "nullable": true
          },
          "issuedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "expirationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "offerState": {
            "nullable": true,
            "$ref": "#/components/schemas/OfferState"
          },
          "programCode": {
            "type": "string",
            "nullable": true
          },
          "programTitle": {
            "type": "string",
            "nullable": true
          },
          "programStartDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "payments": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/PaymentDto"
            }
          },
          "futureProgram": {
            "nullable": true,
            "$ref": "#/components/schemas/FutureProgramDto"
          }
        }
      },
      "OfferState": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "Accepted",
          "Declined",
          "DeferralRequested",
          "Paid",
          "PreAdmitAccepted",
          "PreAdmitted",
          "PreRegistered",
          "RefundRequested",
          "Revoked",
          "Sent",
          "Withdrawn"
        ],
        "enum": [
          "Accepted",
          "Declined",
          "DeferralRequested",
          "Paid",
          "PreAdmitAccepted",
          "PreAdmitted",
          "PreRegistered",
          "RefundRequested",
          "Revoked",
          "Sent",
          "Withdrawn"
        ]
      },
      "PaymentDto": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "receiptType": {
            "type": "string",
            "nullable": true
          },
          "receiptDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "receiptAmount": {
            "type": "number",
            "format": "decimal",
            "nullable": true
          },
          "receiptNumber": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "FutureProgramDto": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "title": {
            "type": "string",
            "nullable": true
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "campus": {
            "type": "string",
            "nullable": true
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "length": {
            "type": "number",
            "format": "decimal",
            "nullable": true
          }
        }
      },
      "InvalidOfferDto": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "isPaid": {
            "type": "boolean",
            "nullable": true
          },
          "issuedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "offerState": {
            "nullable": true,
            "$ref": "#/components/schemas/OfferState"
          },
          "payments": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/PaymentDto"
            }
          },
          "reason": {
            "type": "string",
            "nullable": true
          },
          "reasonSource": {
            "type": "string",
            "nullable": true
          },
          "reasonOther": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ApplicantSearchOptions": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "collegeId": {
            "type": "string",
            "format": "guid"
          },
          "dateOfBirth": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "passportNumber": {
            "type": "string"
          },
          "studentId": {
            "type": "string"
          },
          "month": {
            "type": "string"
          },
          "year": {
            "type": "string"
          }
        }
      },
      "TemplateSearchOptions": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "templateCode": {
            "type": "string",
            "nullable": true
          },
          "data": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "LookupsDto": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "colleges": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CollegeDto"
            }
          },
          "months": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MonthDto"
            }
          },
          "terms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TermDto"
            }
          },
          "iasLookups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IasLookupDto"
            }
          }
        }
      },
      "CollegeDto": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "extension": {
            "type": "string"
          },
          "website": {
            "type": "string"
          },
          "enforceApplicantIdentifierFormat": {
            "type": "boolean"
          },
          "applicantIdentifierFormat": {
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/ApplicantIdentifierType"
          }
        }
      },
      "ApplicantIdentifierType": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "StudentId",
          "ApplicantId"
        ],
        "enum": [
          "StudentId",
          "ApplicantId"
        ]
      },
      "MonthDto": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "number": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "shortName": {
            "type": "string",
            "nullable": true
          },
          "longName": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "TermDto": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "startDate": {
            "type": "string",
            "format": "date-time"
          },
          "endDate": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "IasLookupDto": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "type": {
            "$ref": "#/components/schemas/IasLookupType"
          },
          "id": {
            "type": "string"
          },
          "content": {
            "type": "string"
          }
        }
      },
      "IasLookupType": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "OfferStates",
          "ReceiptTypes",
          "OfferRefundStates",
          "OfferDeferralStates",
          "OfferRevokeTypes",
          "OfferWithdrawTypes",
          "OfferDeclineReasonTypes"
        ],
        "enum": [
          "OfferStates",
          "ReceiptTypes",
          "OfferRefundStates",
          "OfferDeferralStates",
          "OfferRevokeTypes",
          "OfferWithdrawTypes",
          "OfferDeclineReasonTypes"
        ]
      }
    }
  },
  "tags": [
    {
      "name": "Recaptcha"
    },
    {
      "name": "Settings"
    },
    {
      "name": "ApplicantOffers"
    },
    {
      "name": "Templates"
    },
    {
      "name": "Lookups"
    }
  ]
}