registertenant

RegisterTenantInfo Schema

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "tenant": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "address": {
          "type": "object",
          "properties": {
            "street": {
              "type": "string"
            },
            "streetNumber": {
              "type": "string"
            },
            "zipCode": {
              "type": "string"
            },
            "city": {
              "type": "string"
            },
            "country": {
              "type": "string"
            }
          },
          "required": [
            "street",
            "streetNumber",
            "zipCode",
            "city",
            "country"
          ]
        },
        "invoiceAddress": {
          "type": "object",
          "properties": {
            "street": {
              "type": "string"
            },
            "streetNumber": {
              "type": "string"
            },
            "zipCode": {
              "type": "string"
            },
            "city": {
              "type": "string"
            },
            "country": {
              "type": "string"
            }
          },
          "required": [
            "street",
            "streetNumber",
            "zipCode",
            "city",
            "country"
          ]
        }
      },
      "required": [
        "key",
        "name",
        "address",
        "invoiceAddress"
      ]
    },
    "user": {
      "type": "object",
      "properties": {
        "email": {
          "type": "string"
        },
        "password": {
          "type": "string"
        },
        "firstName": {
          "type": "string"
        },
        "lastName": {
          "type": "string"
        }
      },
      "required": [
        "email",
        "password",
        "firstName",
        "lastName"
      ]
    }
  },
  "required": [
    "tenant",
    "user"
  ]
}

TenantRegistrationInfo Schema

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "key": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "address": {
      "type": "object",
      "properties": {
        "street": {
          "type": "string"
        },
        "streetNumber": {
          "type": "string"
        },
        "zipCode": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "country": {
          "type": "string"
        }
      },
      "required": [
        "street",
        "streetNumber",
        "zipCode",
        "city",
        "country"
      ]
    },
    "invoiceAddress": {
      "type": "object",
      "properties": {
        "street": {
          "type": "string"
        },
        "streetNumber": {
          "type": "string"
        },
        "zipCode": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "country": {
          "type": "string"
        }
      },
      "required": [
        "street",
        "streetNumber",
        "zipCode",
        "city",
        "country"
      ]
    }
  },
  "required": [
    "key",
    "name",
    "address",
    "invoiceAddress"
  ]
}

UserRegistrationInfo Schema

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "email": {
      "type": "string"
    },
    "password": {
      "type": "string"
    },
    "firstName": {
      "type": "string"
    },
    "lastName": {
      "type": "string"
    }
  },
  "required": [
    "email",
    "password",
    "firstName",
    "lastName"
  ]
}

AddressRegistrationInfo Schema

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "street": {
      "type": "string"
    },
    "streetNumber": {
      "type": "string"
    },
    "zipCode": {
      "type": "string"
    },
    "city": {
      "type": "string"
    },
    "country": {
      "type": "string"
    }
  },
  "required": [
    "street",
    "streetNumber",
    "zipCode",
    "city",
    "country"
  ]
}

RegisterTenantResponseInfo Schema

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "tenant": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "format": "^[a-z\\-]+$"
        },
        "name": {
          "type": "string"
        },
        "address": {
          "type": "object",
          "properties": {
            "street": {
              "type": "string"
            },
            "streetNumber": {
              "type": "string"
            },
            "zipCode": {
              "type": "string"
            },
            "city": {
              "type": "string"
            },
            "country": {
              "type": "string"
            }
          },
          "required": [
            "street",
            "streetNumber",
            "zipCode",
            "city",
            "country"
          ]
        },
        "invoiceAddress": {
          "type": "object",
          "properties": {
            "street": {
              "type": "string"
            },
            "streetNumber": {
              "type": "string"
            },
            "zipCode": {
              "type": "string"
            },
            "city": {
              "type": "string"
            },
            "country": {
              "type": "string"
            }
          },
          "required": [
            "street",
            "streetNumber",
            "zipCode",
            "city",
            "country"
          ]
        },
        "contact": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string"
            },
            "email": {
              "type": "string",
              "format": "email"
            },
            "phone": {
              "type": "string"
            }
          },
          "required": [
            "name",
            "email",
            "phone"
          ]
        },
        "isActivated": {
          "type": "boolean"
        },
        "registeredOn": {
          "type": "object",
          "format": "date-time"
        }
      },
      "required": [
        "key",
        "name",
        "address",
        "invoiceAddress",
        "contact",
        "isActivated",
        "registeredOn"
      ]
    },
    "user": {
      "type": "object",
      "properties": {
        "email": {
          "type": "string",
          "format": "email"
        },
        "firstName": {
          "type": "string"
        },
        "lastName": {
          "type": "string"
        },
        "isActivated": {
          "type": "boolean"
        },
        "roles": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "registeredOn": {
          "type": "object",
          "format": "date-time"
        }
      },
      "required": [
        "email",
        "firstName",
        "lastName",
        "isActivated",
        "roles",
        "registeredOn"
      ]
    }
  },
  "required": [
    "tenant",
    "user"
  ]
}

TenantResponseInfo Schema

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "key": {
      "type": "string",
      "format": "^[a-z\\-]+$"
    },
    "name": {
      "type": "string"
    },
    "address": {
      "type": "object",
      "properties": {
        "street": {
          "type": "string"
        },
        "streetNumber": {
          "type": "string"
        },
        "zipCode": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "country": {
          "type": "string"
        }
      },
      "required": [
        "street",
        "streetNumber",
        "zipCode",
        "city",
        "country"
      ]
    },
    "invoiceAddress": {
      "type": "object",
      "properties": {
        "street": {
          "type": "string"
        },
        "streetNumber": {
          "type": "string"
        },
        "zipCode": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "country": {
          "type": "string"
        }
      },
      "required": [
        "street",
        "streetNumber",
        "zipCode",
        "city",
        "country"
      ]
    },
    "contact": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "email": {
          "type": "string",
          "format": "email"
        },
        "phone": {
          "type": "string"
        }
      },
      "required": [
        "name",
        "email",
        "phone"
      ]
    },
    "isActivated": {
      "type": "boolean"
    },
    "registeredOn": {
      "type": "object",
      "format": "date-time"
    }
  },
  "required": [
    "key",
    "name",
    "address",
    "invoiceAddress",
    "contact",
    "isActivated",
    "registeredOn"
  ]
}

UserResponseInfo Schema

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "email": {
      "type": "string",
      "format": "email"
    },
    "firstName": {
      "type": "string"
    },
    "lastName": {
      "type": "string"
    },
    "isActivated": {
      "type": "boolean"
    },
    "roles": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "registeredOn": {
      "type": "object",
      "format": "date-time"
    }
  },
  "required": [
    "email",
    "firstName",
    "lastName",
    "isActivated",
    "roles",
    "registeredOn"
  ]
}

TenantContactResponseInfo Schema

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "email": {
      "type": "string",
      "format": "email"
    },
    "phone": {
      "type": "string"
    }
  },
  "required": [
    "name",
    "email",
    "phone"
  ]
}

UserRoleResponseInfo Schema

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    }
  },
  "required": [
    "name"
  ]
}

AddressResponseInfo Schema

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "street": {
      "type": "string"
    },
    "streetNumber": {
      "type": "string"
    },
    "zipCode": {
      "type": "string"
    },
    "city": {
      "type": "string"
    },
    "country": {
      "type": "string"
    }
  },
  "required": [
    "street",
    "streetNumber",
    "zipCode",
    "city",
    "country"
  ]
}