{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/profit-rhino/json-schema/profit-rhino-prresponse-login-model-schema.json",
  "title": "PRResponse_LoginModel_",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/profit-rhino-auth-api-openapi.yml#/components/schemas/PRResponse_LoginModel_",
  "type": "object",
  "properties": {
    "status": {
      "type": "boolean"
    },
    "message": {
      "type": "string"
    },
    "responseData": {
      "$ref": "#/$defs/LoginModel"
    }
  },
  "$defs": {
    "LoginModel": {
      "type": "object",
      "properties": {
        "returnData": {
          "$ref": "#/$defs/LoginReturnDataModel"
        }
      }
    },
    "LoginReturnDataModel": {
      "type": "object",
      "properties": {
        "token": {
          "type": "string"
        },
        "companyName": {
          "type": "string"
        },
        "companyLogo": {
          "type": "string"
        },
        "companyMobileLogo": {
          "type": "string"
        },
        "redirectUrl": {
          "type": "string"
        },
        "redirect": {
          "type": "boolean"
        },
        "termAccepted": {
          "type": "boolean"
        },
        "deviceId": {
          "type": "string"
        },
        "userTypeId": {
          "format": "int32",
          "type": "integer"
        },
        "taskNumberAutoIncrement": {
          "type": "boolean"
        },
        "isSinglePartDB": {
          "type": "boolean"
        },
        "subscriptionStatus": {
          "enum": [
            "TrialExpired",
            "CreditHold",
            "InGracePeriod",
            "GoodStanding"
          ],
          "type": "string"
        },
        "subscriptionStatusString": {
          "type": "string",
          "readOnly": true
        },
        "subscriptionName": {
          "type": "string"
        },
        "daysLeft": {
          "format": "int32",
          "type": "integer"
        }
      }
    }
  }
}