{
  "openapi": "3.0.0",
  "info": {
    "title": "BillHive Admin Portal",
    "version": "0.0.1",
    "description": "Facade for Admin Portal. It contains all Admin portal related APIs.",
    "contact": {
      "name": "MAggarwal",
      "email": "mohit.aggarwal@pentair.com"
    }
  },
  "paths": {
    "/notifications": {
      "post": {
        "x-controller-name": "NotificationController",
        "x-operation-name": "create",
        "tags": [
          "Notification"
        ],
        "summary": "Send a notification",
        "description": "Sends an email (for example a template test send) to the given recipients through the platform SMTP server.",
        "responses": {
          "200": {
            "description": "Notification model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Notification"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewNotification"
              }
            }
          }
        },
        "operationId": "NotificationController.create"
      }
    },
    "/payment-gateway-masters/{id}": {
      "get": {
        "x-controller-name": "PaymentGatewayMasterController",
        "x-operation-name": "findById",
        "tags": [
          "PaymentGatewayMasterController"
        ],
        "responses": {
          "200": {
            "description": "PaymentGatewayMaster model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentGatewayMasterWithRelations"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentGatewayMaster.Filter"
                }
              }
            }
          }
        ],
        "operationId": "PaymentGatewayMasterController.findById"
      }
    },
    "/payment-gateway-masters": {
      "get": {
        "x-controller-name": "PaymentGatewayMasterController",
        "x-operation-name": "find",
        "tags": [
          "PaymentGatewayMasterController"
        ],
        "responses": {
          "200": {
            "description": "Array of PaymentGatewayMaster model instances",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentGatewayMastersWithRelations"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentGatewayMaster.Filter1"
                }
              }
            }
          }
        ],
        "operationId": "PaymentGatewayMasterController.find"
      }
    },
    "/payment-gateway-methods/{gatewayId}": {
      "get": {
        "x-controller-name": "PaymentGatewayMasterController",
        "x-operation-name": "findGatewayMethodsById",
        "tags": [
          "PaymentGatewayMasterController"
        ],
        "responses": {
          "200": {
            "description": "PaymentGatewayMaster model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentGatewayMasterWithRelations"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "gatewayId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentGatewayMaster.Filter"
                }
              }
            }
          }
        ],
        "operationId": "PaymentGatewayMasterController.findGatewayMethodsById"
      }
    },
    "/payment-gateway-methods/{id}": {
      "delete": {
        "x-controller-name": "PaymentGatewayMasterController",
        "x-operation-name": "deleteById",
        "tags": [
          "PaymentGatewayMasterController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "PaymentGatewayMethod DELETE success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "PaymentGatewayMasterController.deleteById"
      }
    },
    "/payment-gateway-methods": {
      "post": {
        "x-controller-name": "PaymentGatewayMasterController",
        "x-operation-name": "createPaymentGatewayMethod",
        "tags": [
          "PaymentGatewayMasterController"
        ],
        "responses": {
          "200": {
            "description": "PaymentGatewayMethod model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentGatewayMethod"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewPaymentGatewayMethod"
              }
            }
          }
        },
        "operationId": "PaymentGatewayMasterController.createPaymentGatewayMethod"
      }
    },
    "/payment-method-masters": {
      "get": {
        "x-controller-name": "PaymentMethodMasterController",
        "x-operation-name": "find",
        "tags": [
          "PaymentMethodMasterController"
        ],
        "responses": {
          "200": {
            "description": "Array of PaymentMethodMaster model instances",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentMethodMastersWithRelations"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentMethodMaster.Filter"
                }
              }
            }
          }
        ],
        "operationId": "PaymentMethodMasterController.find"
      }
    },
    "/periods": {
      "get": {
        "x-controller-name": "PeriodController",
        "x-operation-name": "find",
        "tags": [
          "PeriodController"
        ],
        "responses": {
          "200": {
            "description": "Array of Period model instances",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PeriodWithRelations"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Period.Filter"
                }
              }
            }
          }
        ],
        "operationId": "PeriodController.find"
      }
    },
    "/ping": {
      "get": {
        "x-controller-name": "PingController",
        "x-operation-name": "ping",
        "tags": [
          "PingController"
        ],
        "responses": {
          "200": {
            "description": "Ping Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PingResponse"
                }
              }
            }
          }
        },
        "operationId": "PingController.ping"
      }
    },
    "/roles": {
      "get": {
        "x-controller-name": "RoleController",
        "x-operation-name": "find",
        "tags": [
          "Access Management"
        ],
        "summary": "List roles",
        "description": "Lists the roles that can be assigned to admin team members: the client roles of the admin client in the admin realm.",
        "responses": {
          "200": {
            "description": "Array of Keycloak client roles",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object"
                  }
                }
              }
            }
          }
        },
        "operationId": "RoleController.find"
      }
    },
    "/templates/{id}/mergefields": {
      "get": {
        "x-controller-name": "TemplateController",
        "x-operation-name": "getMergedFields",
        "tags": [
          "TemplateController"
        ],
        "responses": {
          "200": {
            "description": "Return value of TemplateController.getMergedFields"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Template.Filter"
                }
              }
            }
          }
        ],
        "operationId": "TemplateController.getMergedFields"
      }
    },
    "/templates/{id}/select": {
      "patch": {
        "x-controller-name": "TemplateController",
        "x-operation-name": "selectTemplate",
        "tags": [
          "TemplateController"
        ],
        "summary": "Select a template",
        "description": "Selects a template as the active template for its category and type.",
        "responses": {
          "204": {
            "description": "Template SELECT success"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "templateSource": {
                    "type": "string"
                  }
                },
                "required": [
                  "templateSource"
                ]
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "TemplateController.selectTemplate"
      }
    },
    "/templates/{id}": {
      "patch": {
        "x-controller-name": "TemplateController",
        "x-operation-name": "updateById",
        "tags": [
          "TemplateController"
        ],
        "summary": "Update a Template",
        "description": "Updates the Template.",
        "responses": {
          "204": {
            "description": "Template PATCH success"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TemplateViewPartialExcluding_templateId_"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "TemplateController.updateById"
      },
      "get": {
        "x-controller-name": "TemplateController",
        "x-operation-name": "findById",
        "tags": [
          "TemplateController"
        ],
        "responses": {
          "200": {
            "description": "Array of Template model instances",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TemplateViewWithRelations"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemplateView.Filter"
                }
              }
            }
          }
        ],
        "operationId": "TemplateController.findById"
      },
      "delete": {
        "x-controller-name": "TemplateController",
        "x-operation-name": "deleteById",
        "tags": [
          "TemplateController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Template DELETE success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "TemplateController.deleteById"
      }
    },
    "/templates": {
      "post": {
        "x-controller-name": "TemplateController",
        "x-operation-name": "login",
        "tags": [
          "TemplateController"
        ],
        "responses": {
          "200": {
            "description": "Return value of TemplateController.login"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewTemplate"
              }
            }
          }
        },
        "operationId": "TemplateController.login"
      },
      "get": {
        "x-controller-name": "TemplateController",
        "x-operation-name": "find",
        "tags": [
          "TemplateController"
        ],
        "responses": {
          "200": {
            "description": "Array of Template model instances",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TemplateViewWithRelations"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemplateView.Filter"
                }
              }
            }
          }
        ],
        "operationId": "TemplateController.find"
      }
    },
    "/tenants/{tenantId}/payment-gateways/{pgCode}/onboarding/invite": {
      "post": {
        "x-controller-name": "TenantPaymentGatewayOnboardingController",
        "x-operation-name": "inviteOnboarding",
        "tags": [
          "TenantPaymentGatewayOnboardingController"
        ],
        "responses": {
          "200": {
            "description": "Invite emailed to the tenant's administrators (or not needed when already active)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "action": {
                      "type": "string",
                      "enum": [
                        "started",
                        "resent",
                        "not-needed"
                      ]
                    },
                    "processInstanceId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "pgCode",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "TenantPaymentGatewayOnboardingController.inviteOnboarding"
      }
    },
    "/tenants/{tenantId}/payment-gateways/{pgCode}/onboarding/sync": {
      "post": {
        "x-controller-name": "TenantPaymentGatewayOnboardingController",
        "x-operation-name": "syncOnboarding",
        "tags": [
          "TenantPaymentGatewayOnboardingController"
        ],
        "responses": {
          "200": {
            "description": "Status refreshed from the gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentGatewayOnboardingState"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "pgCode",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "TenantPaymentGatewayOnboardingController.syncOnboarding"
      }
    },
    "/tenants/{tenantId}/payment-gateways/{pgCode}/onboarding": {
      "get": {
        "x-controller-name": "TenantPaymentGatewayOnboardingController",
        "x-operation-name": "getOnboarding",
        "tags": [
          "TenantPaymentGatewayOnboardingController"
        ],
        "responses": {
          "200": {
            "description": "Onboarding status, workflow and recent gateway events",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "state": {
                      "$ref": "#/components/schemas/PaymentGatewayOnboardingState",
                      "nullable": true
                    },
                    "workflowRunning": {
                      "type": "boolean",
                      "nullable": true
                    },
                    "events": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/PaymentGatewayOnboardingEvent"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "pgCode",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "TenantPaymentGatewayOnboardingController.getOnboarding"
      }
    },
    "/tenants/{id}": {
      "delete": {
        "x-controller-name": "TenantController",
        "x-operation-name": "deleteById",
        "tags": [
          "TenantController"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Tenant Successful deleted"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "TenantController.deleteById"
      }
    },
    "/tenants": {
      "post": {
        "x-controller-name": "TenantController",
        "x-operation-name": "create",
        "tags": [
          "TenantController"
        ],
        "responses": {
          "200": {
            "description": "Sign-up accepted. The same answer is returned whether or not the email is already registered.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewTenant"
              }
            }
          }
        },
        "operationId": "TenantController.create"
      },
      "get": {
        "x-controller-name": "TenantController",
        "x-operation-name": "find",
        "tags": [
          "TenantController"
        ],
        "responses": {
          "200": {
            "description": "Return value of TenantController.find"
          }
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Tenant.Filter"
                }
              }
            }
          }
        ],
        "operationId": "TenantController.find"
      }
    },
    "/users/{emailId}": {
      "patch": {
        "x-controller-name": "UserController",
        "x-operation-name": "updateById",
        "tags": [
          "Access Management"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "User PATCH success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "emailId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserPartial"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "UserController.updateById"
      },
      "delete": {
        "x-controller-name": "UserController",
        "x-operation-name": "deleteById",
        "tags": [
          "Access Management"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "User DELETE success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "emailId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "UserController.deleteById"
      }
    },
    "/users/{email}": {
      "get": {
        "x-controller-name": "UserController",
        "x-operation-name": "findById",
        "tags": [
          "Access Management"
        ],
        "responses": {
          "200": {
            "description": "Return value of UserController.findById"
          }
        },
        "parameters": [
          {
            "name": "email",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/User.Filter"
                }
              }
            }
          }
        ],
        "operationId": "UserController.findById"
      }
    },
    "/users": {
      "post": {
        "x-controller-name": "UserController",
        "x-operation-name": "create",
        "tags": [
          "Access Management"
        ],
        "description": "Create User",
        "responses": {
          "200": {
            "description": "Successful execution",
            "content": {
              "application/json": {}
            }
          },
          "500": {
            "description": ""
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewUser"
              }
            }
          }
        },
        "operationId": "UserController.create"
      },
      "get": {
        "x-controller-name": "UserController",
        "x-operation-name": "find",
        "tags": [
          "Access Management"
        ],
        "responses": {
          "200": {
            "description": "Return value of UserController.find"
          }
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/User.Filter"
                }
              }
            }
          }
        ],
        "operationId": "UserController.find"
      }
    },
    "/whoami": {
      "get": {
        "x-controller-name": "AuthController",
        "x-operation-name": "whoami",
        "tags": [
          "Auth"
        ],
        "responses": {
          "200": {
            "description": "Return value of AuthController.whoami"
          }
        },
        "operationId": "AuthController.whoami"
      }
    }
  },
  "components": {
    "securitySchemes": {
      "jwt": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      },
      "apiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key"
      }
    },
    "schemas": {
      "NewUser": {
        "title": "NewUser",
        "type": "object",
        "description": "(tsType: Omit<User, 'id' | 'userId' | 'refreshToken' | 'status' | 'password' | 'keycloakId'>, schemaOptions: { title: 'NewUser', exclude: [ 'id', 'userId', 'refreshToken', 'status', 'password', 'keycloakId' ] })",
        "properties": {
          "tenantId": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "dailyDigest": {
            "type": "boolean"
          }
        },
        "required": [
          "firstName",
          "email",
          "roles"
        ],
        "additionalProperties": false,
        "x-typescript-type": "Omit<User, 'id' | 'userId' | 'refreshToken' | 'status' | 'password' | 'keycloakId'>"
      },
      "User": {
        "title": "User",
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "Active",
              "Inactive",
              "Suspended",
              "Deleted"
            ]
          },
          "id": {
            "type": "string"
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "keycloakId": {
            "type": "string"
          },
          "dailyDigest": {
            "type": "boolean"
          }
        },
        "required": [
          "firstName",
          "email",
          "roles"
        ],
        "additionalProperties": false
      },
      "UserPartial": {
        "title": "UserPartial",
        "type": "object",
        "description": "(tsType: Partial<User>, schemaOptions: { partial: true })",
        "properties": {
          "tenantId": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "Active",
              "Inactive",
              "Suspended",
              "Deleted"
            ]
          },
          "id": {
            "type": "string"
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "keycloakId": {
            "type": "string"
          },
          "dailyDigest": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "Partial<User>"
      },
      "NewTenant": {
        "title": "NewTenant",
        "type": "object",
        "description": "(tsType: CreateTenantRequest, schemaOptions: { title: 'NewTenant' })",
        "properties": {
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "companyName": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          }
        },
        "required": [
          "firstName",
          "lastName",
          "email",
          "companyName",
          "phone"
        ],
        "additionalProperties": false,
        "x-typescript-type": "CreateTenantRequest"
      },
      "CreateTenantRequest": {
        "title": "CreateTenantRequest",
        "type": "object",
        "properties": {
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "companyName": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          }
        },
        "required": [
          "firstName",
          "lastName",
          "email",
          "companyName",
          "phone"
        ],
        "additionalProperties": false
      },
      "PaymentGatewayOnboardingState": {
        "title": "PaymentGatewayOnboardingState",
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string"
          },
          "pgCode": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "description": "payment_gateway.status (Active only once onboarding is ACTIVE)"
          },
          "onboardingStatus": {
            "type": "string",
            "enum": [
              "NOT_STARTED",
              "INVITED",
              "EMAIL_PENDING",
              "KYC_PENDING",
              "KYC_SUBMITTED",
              "ACTION_REQUIRED",
              "ACTIVE",
              "SUSPENDED",
              "FAILED"
            ]
          },
          "statusReason": {
            "type": "string"
          },
          "externalAccountId": {
            "type": "string"
          },
          "activatedAt": {
            "type": "string"
          },
          "lastSyncedAt": {
            "type": "string"
          },
          "duplicate": {
            "type": "boolean",
            "description": "Webhook only: true when the event was already processed"
          }
        },
        "additionalProperties": false
      },
      "PaymentGatewayOnboardingEvent": {
        "title": "PaymentGatewayOnboardingEvent",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "gatewayCode": {
            "type": "string"
          },
          "externalAccountId": {
            "type": "string"
          },
          "eventType": {
            "type": "string"
          },
          "eventTime": {
            "type": "string",
            "format": "date-time"
          },
          "payloadHash": {
            "type": "string"
          },
          "payload": {
            "type": "object"
          },
          "processedAt": {
            "type": "string",
            "format": "date-time"
          },
          "createdTs": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "gatewayCode",
          "payloadHash"
        ],
        "additionalProperties": false
      },
      "NewTemplate": {
        "title": "NewTemplate",
        "type": "object",
        "description": "(tsType: Omit<TemplateView, 'templateId'>, schemaOptions: { title: 'NewTemplate', exclude: [ 'templateId' ] })",
        "properties": {
          "tenantId": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "content": {
            "type": "string",
            "nullable": true
          },
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "subject": {
            "type": "string",
            "nullable": true
          },
          "fileFormat": {
            "type": "string",
            "nullable": true
          },
          "contentFormat": {
            "type": "string",
            "nullable": true
          },
          "active": {
            "type": "boolean",
            "nullable": true
          },
          "default": {
            "type": "boolean",
            "nullable": true
          },
          "isSelected": {
            "type": "boolean",
            "nullable": true
          },
          "updatedTs": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "recipientEntity": {
            "type": "string",
            "nullable": true
          },
          "category": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "nullable": true
          },
          "triggerEvent": {
            "type": "string",
            "nullable": true
          },
          "templateSource": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "Omit<TemplateView, 'templateId'>"
      },
      "TemplateView": {
        "title": "TemplateView",
        "type": "object",
        "properties": {
          "templateId": {
            "type": "string",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "content": {
            "type": "string",
            "nullable": true
          },
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "subject": {
            "type": "string",
            "nullable": true
          },
          "fileFormat": {
            "type": "string",
            "nullable": true
          },
          "contentFormat": {
            "type": "string",
            "nullable": true
          },
          "active": {
            "type": "boolean",
            "nullable": true
          },
          "default": {
            "type": "boolean",
            "nullable": true
          },
          "isSelected": {
            "type": "boolean",
            "nullable": true
          },
          "updatedTs": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "recipientEntity": {
            "type": "string",
            "nullable": true
          },
          "category": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "nullable": true
          },
          "triggerEvent": {
            "type": "string",
            "nullable": true
          },
          "templateSource": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TemplateViewPartialExcluding_templateId_": {
        "title": "TemplateViewPartialExcluding_templateId_",
        "type": "object",
        "description": "(tsType: Omit<Partial<TemplateView>, 'templateId'>, schemaOptions: { partial: true, exclude: [ 'templateId' ] })",
        "properties": {
          "tenantId": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "content": {
            "type": "string",
            "nullable": true
          },
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "subject": {
            "type": "string",
            "nullable": true
          },
          "fileFormat": {
            "type": "string",
            "nullable": true
          },
          "contentFormat": {
            "type": "string",
            "nullable": true
          },
          "active": {
            "type": "boolean",
            "nullable": true
          },
          "default": {
            "type": "boolean",
            "nullable": true
          },
          "isSelected": {
            "type": "boolean",
            "nullable": true
          },
          "updatedTs": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "recipientEntity": {
            "type": "string",
            "nullable": true
          },
          "category": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "nullable": true
          },
          "triggerEvent": {
            "type": "string",
            "nullable": true
          },
          "templateSource": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "Omit<Partial<TemplateView>, 'templateId'>"
      },
      "TemplateViewWithRelations": {
        "title": "TemplateViewWithRelations",
        "type": "object",
        "description": "(tsType: TemplateViewWithRelations, schemaOptions: { includeRelations: true })",
        "properties": {
          "templateId": {
            "type": "string",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "content": {
            "type": "string",
            "nullable": true
          },
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "subject": {
            "type": "string",
            "nullable": true
          },
          "fileFormat": {
            "type": "string",
            "nullable": true
          },
          "contentFormat": {
            "type": "string",
            "nullable": true
          },
          "active": {
            "type": "boolean",
            "nullable": true
          },
          "default": {
            "type": "boolean",
            "nullable": true
          },
          "isSelected": {
            "type": "boolean",
            "nullable": true
          },
          "updatedTs": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "recipientEntity": {
            "type": "string",
            "nullable": true
          },
          "category": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "nullable": true
          },
          "triggerEvent": {
            "type": "string",
            "nullable": true
          },
          "templateSource": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "TemplateViewWithRelations"
      },
      "PeriodWithRelations": {
        "title": "PeriodWithRelations",
        "type": "object",
        "description": "(tsType: PeriodWithRelations, schemaOptions: { includeRelations: true })",
        "properties": {
          "id": {
            "type": "string",
            "nullable": false,
            "format": "uuid"
          },
          "periodName": {
            "type": "string",
            "nullable": false
          },
          "term": {
            "type": "number",
            "nullable": false
          },
          "period": {
            "type": "string",
            "nullable": false,
            "enum": [
              "Day",
              "Week",
              "Month",
              "Year"
            ]
          },
          "tenantId": {
            "type": "string",
            "nullable": false
          },
          "isOpted": {
            "type": "boolean",
            "nullable": false
          },
          "isTrial": {
            "type": "boolean",
            "nullable": false
          },
          "termLength": {
            "type": "integer",
            "nullable": false,
            "minimum": 1
          }
        },
        "required": [
          "periodName",
          "term",
          "period",
          "tenantId",
          "isOpted",
          "isTrial"
        ],
        "additionalProperties": false,
        "x-typescript-type": "PeriodWithRelations"
      },
      "PaymentMethodMaster": {
        "title": "PaymentMethodMaster",
        "type": "object",
        "properties": {
          "methodId": {
            "type": "string",
            "format": "uuid"
          },
          "methodName": {
            "type": "string"
          },
          "methodCode": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "createdTs": {
            "type": "string",
            "format": "date-time"
          },
          "updatedTs": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "methodName",
          "methodCode",
          "status"
        ],
        "additionalProperties": false
      },
      "PaymentMethodMastersWithRelations": {
        "title": "PaymentMethodMastersWithRelations",
        "type": "object",
        "description": "(tsType: PaymentMethodMastersWithRelations, schemaOptions: { includeRelations: true })",
        "properties": {
          "paymentGateways": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PaymentMethodMaster"
            }
          },
          "count": {
            "type": "number"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "PaymentMethodMastersWithRelations"
      },
      "PaymentGatewayMaster": {
        "title": "PaymentGatewayMaster",
        "type": "object",
        "properties": {
          "gatewayName": {
            "type": "string",
            "nullable": false
          },
          "gatewayId": {
            "type": "string",
            "nullable": false
          },
          "gatewayCode": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": false
          },
          "createdTs": {
            "type": "string",
            "format": "date-time",
            "nullable": false
          },
          "updatedTs": {
            "type": "string",
            "format": "date-time",
            "nullable": false
          },
          "supportedCurrencies": {
            "type": "string",
            "nullable": true
          },
          "apiKey": {
            "type": "string",
            "nullable": false
          },
          "apiSecret": {
            "type": "string",
            "nullable": false
          },
          "externalAccountId": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "gatewayName",
          "gatewayId",
          "status",
          "createdTs",
          "updatedTs",
          "apiKey",
          "apiSecret"
        ],
        "additionalProperties": false
      },
      "PaymentGatewayMastersWithRelations": {
        "title": "PaymentGatewayMastersWithRelations",
        "type": "object",
        "description": "(tsType: PaymentGatewayMastersWithRelations, schemaOptions: { includeRelations: true })",
        "properties": {
          "paymentGateways": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PaymentGatewayMaster"
            }
          },
          "count": {
            "type": "number"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "PaymentGatewayMastersWithRelations"
      },
      "PaymentGatewayMasterWithRelations": {
        "title": "PaymentGatewayMasterWithRelations",
        "type": "object",
        "description": "(tsType: PaymentGatewayMasterWithRelations, schemaOptions: { includeRelations: true })",
        "properties": {
          "gatewayName": {
            "type": "string",
            "nullable": false
          },
          "gatewayId": {
            "type": "string",
            "nullable": false
          },
          "gatewayCode": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": false
          },
          "createdTs": {
            "type": "string",
            "format": "date-time",
            "nullable": false
          },
          "updatedTs": {
            "type": "string",
            "format": "date-time",
            "nullable": false
          },
          "supportedCurrencies": {
            "type": "string",
            "nullable": true
          },
          "apiKey": {
            "type": "string",
            "nullable": false
          },
          "apiSecret": {
            "type": "string",
            "nullable": false
          },
          "externalAccountId": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "gatewayName",
          "gatewayId",
          "status",
          "createdTs",
          "updatedTs",
          "apiKey",
          "apiSecret"
        ],
        "additionalProperties": false,
        "x-typescript-type": "PaymentGatewayMasterWithRelations"
      },
      "PaymentGatewayMethod": {
        "title": "PaymentGatewayMethod",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "gatewayId": {
            "type": "string",
            "nullable": false
          },
          "methodId": {
            "type": "string",
            "nullable": false
          },
          "createdTs": {
            "type": "string",
            "format": "date-time",
            "nullable": false
          },
          "updatedTs": {
            "type": "string",
            "format": "date-time",
            "nullable": false
          },
          "currency": {
            "type": "string",
            "nullable": false
          }
        },
        "required": [
          "gatewayId",
          "methodId",
          "currency"
        ],
        "additionalProperties": false
      },
      "NewPaymentGatewayMethod": {
        "title": "NewPaymentGatewayMethod",
        "type": "object",
        "description": "(tsType: Omit<PaymentGatewayMethod, 'id' | 'createdTs' | 'updatedTs'>, schemaOptions: { title: 'NewPaymentGatewayMethod', exclude: [ 'id', 'createdTs', 'updatedTs' ] })",
        "properties": {
          "gatewayId": {
            "type": "string",
            "nullable": false
          },
          "methodId": {
            "type": "string",
            "nullable": false
          },
          "currency": {
            "type": "string",
            "nullable": false
          }
        },
        "required": [
          "gatewayId",
          "methodId",
          "currency"
        ],
        "additionalProperties": false,
        "x-typescript-type": "Omit<PaymentGatewayMethod, 'id' | 'createdTs' | 'updatedTs'>"
      },
      "Receiver": {
        "title": "Receiver",
        "type": "object",
        "properties": {
          "to": {
            "type": "string"
          },
          "cc": {
            "type": "string"
          },
          "bcc": {
            "type": "string"
          }
        },
        "required": [
          "to"
        ],
        "additionalProperties": false
      },
      "Attachment": {
        "title": "Attachment",
        "type": "object",
        "properties": {
          "attachmentType": {
            "type": "string",
            "enum": [
              "URL",
              "String",
              "Encoded-string"
            ]
          },
          "filename": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "content": {
            "type": "string"
          },
          "encoding": {
            "type": "string"
          },
          "bucket": {
            "type": "string"
          }
        },
        "required": [
          "attachmentType",
          "filename"
        ],
        "additionalProperties": false
      },
      "Notification": {
        "title": "Notification",
        "type": "object",
        "properties": {
          "notificationId": {
            "type": "string"
          },
          "sender": {
            "type": "string"
          },
          "subject": {
            "type": "string"
          },
          "body": {
            "type": "string"
          },
          "receiver": {
            "$ref": "#/components/schemas/Receiver"
          },
          "type": {
            "type": "string",
            "enum": [
              "PUSH",
              "EMAIL",
              "SMS"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "Pending",
              "Scheduled",
              "Rescheduled",
              "Delivered",
              "Failed",
              "Opened"
            ]
          },
          "tenantId": {
            "type": "string"
          },
          "accountId": {
            "type": "string"
          },
          "sentTs": {
            "type": "string",
            "format": "date-time"
          },
          "plannedDate": {
            "type": "string",
            "format": "date"
          },
          "name": {
            "type": "string"
          },
          "attachments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Attachment"
            }
          }
        },
        "required": [
          "sender",
          "receiver",
          "type",
          "tenantId"
        ],
        "additionalProperties": false
      },
      "NewNotification": {
        "title": "NewNotification",
        "type": "object",
        "description": "(tsType: Omit<Notification, 'notificationId' | 'sender' | 'status' | 'tenantId' | 'sentTs' | 'plannedDate'>, schemaOptions: { title: 'NewNotification', exclude: [ 'notificationId', 'sender', 'status', 'tenantId', 'sentTs', 'plannedDate' ] })",
        "properties": {
          "subject": {
            "type": "string"
          },
          "body": {
            "type": "string"
          },
          "receiver": {
            "$ref": "#/components/schemas/Receiver"
          },
          "type": {
            "type": "string",
            "enum": [
              "PUSH",
              "EMAIL",
              "SMS"
            ]
          },
          "accountId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "attachments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Attachment"
            }
          }
        },
        "required": [
          "receiver",
          "type"
        ],
        "additionalProperties": false,
        "x-typescript-type": "Omit<Notification, 'notificationId' | 'sender' | 'status' | 'tenantId' | 'sentTs' | 'plannedDate'>"
      },
      "PaymentGatewayMaster.Filter": {
        "type": "object",
        "title": "PaymentGatewayMaster.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "gatewayName": {
                    "type": "boolean"
                  },
                  "gatewayId": {
                    "type": "boolean"
                  },
                  "gatewayCode": {
                    "type": "boolean"
                  },
                  "status": {
                    "type": "boolean"
                  },
                  "createdTs": {
                    "type": "boolean"
                  },
                  "updatedTs": {
                    "type": "boolean"
                  },
                  "supportedCurrencies": {
                    "type": "boolean"
                  },
                  "apiKey": {
                    "type": "boolean"
                  },
                  "apiSecret": {
                    "type": "boolean"
                  },
                  "externalAccountId": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "gatewayName",
                    "gatewayId",
                    "gatewayCode",
                    "status",
                    "createdTs",
                    "updatedTs",
                    "supportedCurrencies",
                    "apiKey",
                    "apiSecret",
                    "externalAccountId"
                  ],
                  "example": "gatewayName"
                },
                "uniqueItems": true
              }
            ],
            "title": "PaymentGatewayMaster.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<PaymentGatewayMaster>"
      },
      "PaymentGatewayMaster.Filter1": {
        "type": "object",
        "title": "PaymentGatewayMaster.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "where": {
            "title": "PaymentGatewayMaster.WhereFilter",
            "type": "object",
            "additionalProperties": true
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "gatewayName": {
                    "type": "boolean"
                  },
                  "gatewayId": {
                    "type": "boolean"
                  },
                  "gatewayCode": {
                    "type": "boolean"
                  },
                  "status": {
                    "type": "boolean"
                  },
                  "createdTs": {
                    "type": "boolean"
                  },
                  "updatedTs": {
                    "type": "boolean"
                  },
                  "supportedCurrencies": {
                    "type": "boolean"
                  },
                  "apiKey": {
                    "type": "boolean"
                  },
                  "apiSecret": {
                    "type": "boolean"
                  },
                  "externalAccountId": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "gatewayName",
                    "gatewayId",
                    "gatewayCode",
                    "status",
                    "createdTs",
                    "updatedTs",
                    "supportedCurrencies",
                    "apiKey",
                    "apiSecret",
                    "externalAccountId"
                  ],
                  "example": "gatewayName"
                },
                "uniqueItems": true
              }
            ],
            "title": "PaymentGatewayMaster.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<PaymentGatewayMaster>"
      },
      "PaymentMethodMaster.Filter": {
        "type": "object",
        "title": "PaymentMethodMaster.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "where": {
            "title": "PaymentMethodMaster.WhereFilter",
            "type": "object",
            "additionalProperties": true
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "methodId": {
                    "type": "boolean"
                  },
                  "methodName": {
                    "type": "boolean"
                  },
                  "methodCode": {
                    "type": "boolean"
                  },
                  "status": {
                    "type": "boolean"
                  },
                  "createdTs": {
                    "type": "boolean"
                  },
                  "updatedTs": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "methodId",
                    "methodName",
                    "methodCode",
                    "status",
                    "createdTs",
                    "updatedTs"
                  ],
                  "example": "methodId"
                },
                "uniqueItems": true
              }
            ],
            "title": "PaymentMethodMaster.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<PaymentMethodMaster>"
      },
      "Period.Filter": {
        "type": "object",
        "title": "Period.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "where": {
            "title": "Period.WhereFilter",
            "type": "object",
            "additionalProperties": true
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "periodName": {
                    "type": "boolean"
                  },
                  "term": {
                    "type": "boolean"
                  },
                  "period": {
                    "type": "boolean"
                  },
                  "tenantId": {
                    "type": "boolean"
                  },
                  "isOpted": {
                    "type": "boolean"
                  },
                  "isTrial": {
                    "type": "boolean"
                  },
                  "termLength": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "id",
                    "periodName",
                    "term",
                    "period",
                    "tenantId",
                    "isOpted",
                    "isTrial",
                    "termLength"
                  ],
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "Period.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<Period>"
      },
      "PingResponse": {
        "type": "object",
        "title": "PingResponse",
        "properties": {
          "greeting": {
            "type": "string"
          },
          "date": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "headers": {
            "type": "object",
            "properties": {
              "Content-Type": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        }
      },
      "Template.Filter": {
        "type": "object",
        "title": "Template.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "templateId": {
                    "type": "boolean"
                  },
                  "tenantId": {
                    "type": "boolean"
                  },
                  "content": {
                    "type": "boolean"
                  },
                  "isDefault": {
                    "type": "boolean"
                  },
                  "active": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "boolean"
                  },
                  "description": {
                    "type": "boolean"
                  },
                  "format": {
                    "type": "boolean"
                  },
                  "version": {
                    "type": "boolean"
                  },
                  "type": {
                    "type": "boolean"
                  },
                  "subject": {
                    "type": "boolean"
                  },
                  "isOpted": {
                    "type": "boolean"
                  },
                  "fileName": {
                    "type": "boolean"
                  },
                  "fileFormat": {
                    "type": "boolean"
                  },
                  "recipientEntity": {
                    "type": "boolean"
                  },
                  "trialExpiryReminderLeadDays": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "templateId",
                    "tenantId",
                    "content",
                    "isDefault",
                    "active",
                    "name",
                    "description",
                    "format",
                    "version",
                    "type",
                    "subject",
                    "isOpted",
                    "fileName",
                    "fileFormat",
                    "recipientEntity",
                    "trialExpiryReminderLeadDays"
                  ],
                  "example": "templateId"
                },
                "uniqueItems": true
              }
            ],
            "title": "Template.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<Template>"
      },
      "TemplateView.Filter": {
        "type": "object",
        "title": "TemplateView.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "where": {
            "title": "TemplateView.WhereFilter",
            "type": "object",
            "additionalProperties": true
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "templateId": {
                    "type": "boolean"
                  },
                  "tenantId": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "boolean"
                  },
                  "content": {
                    "type": "boolean"
                  },
                  "fileName": {
                    "type": "boolean"
                  },
                  "subject": {
                    "type": "boolean"
                  },
                  "fileFormat": {
                    "type": "boolean"
                  },
                  "contentFormat": {
                    "type": "boolean"
                  },
                  "active": {
                    "type": "boolean"
                  },
                  "default": {
                    "type": "boolean"
                  },
                  "isSelected": {
                    "type": "boolean"
                  },
                  "updatedTs": {
                    "type": "boolean"
                  },
                  "recipientEntity": {
                    "type": "boolean"
                  },
                  "category": {
                    "type": "boolean"
                  },
                  "type": {
                    "type": "boolean"
                  },
                  "triggerEvent": {
                    "type": "boolean"
                  },
                  "templateSource": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "templateId",
                    "tenantId",
                    "name",
                    "content",
                    "fileName",
                    "subject",
                    "fileFormat",
                    "contentFormat",
                    "active",
                    "default",
                    "isSelected",
                    "updatedTs",
                    "recipientEntity",
                    "category",
                    "type",
                    "triggerEvent",
                    "templateSource"
                  ],
                  "example": "templateId"
                },
                "uniqueItems": true
              }
            ],
            "title": "TemplateView.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<TemplateView>"
      },
      "Tenant.Filter": {
        "type": "object",
        "title": "Tenant.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "where": {
            "title": "Tenant.WhereFilter",
            "type": "object",
            "additionalProperties": true
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "boolean"
                  },
                  "address": {
                    "type": "boolean"
                  },
                  "city": {
                    "type": "boolean"
                  },
                  "country": {
                    "type": "boolean"
                  },
                  "pincode": {
                    "type": "boolean"
                  },
                  "state": {
                    "type": "boolean"
                  },
                  "status": {
                    "type": "boolean"
                  },
                  "timezone": {
                    "type": "boolean"
                  },
                  "firstLogin": {
                    "type": "boolean"
                  },
                  "keycloakId": {
                    "type": "boolean"
                  },
                  "batchNo": {
                    "type": "boolean"
                  },
                  "baseCurrencyCode": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "id",
                    "name",
                    "address",
                    "city",
                    "country",
                    "pincode",
                    "state",
                    "status",
                    "timezone",
                    "firstLogin",
                    "keycloakId",
                    "batchNo",
                    "baseCurrencyCode"
                  ],
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "Tenant.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<Tenant>"
      },
      "User.Filter": {
        "type": "object",
        "title": "User.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "where": {
            "title": "User.WhereFilter",
            "type": "object",
            "additionalProperties": true
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "tenantId": {
                    "type": "boolean"
                  },
                  "firstName": {
                    "type": "boolean"
                  },
                  "lastName": {
                    "type": "boolean"
                  },
                  "email": {
                    "type": "boolean"
                  },
                  "status": {
                    "type": "boolean"
                  },
                  "id": {
                    "type": "boolean"
                  },
                  "roles": {
                    "type": "boolean"
                  },
                  "keycloakId": {
                    "type": "boolean"
                  },
                  "dailyDigest": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "tenantId",
                    "firstName",
                    "lastName",
                    "email",
                    "status",
                    "id",
                    "roles",
                    "keycloakId",
                    "dailyDigest"
                  ],
                  "example": "tenantId"
                },
                "uniqueItems": true
              }
            ],
            "title": "User.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<User>"
      }
    }
  },
  "security": [
    {
      "jwt": []
    },
    {
      "apiKeyAuth": []
    }
  ],
  "servers": [
    {
      "url": "https://admin-facade.billhive.in"
    }
  ]
}