/// <summary>
        ///
        /// </summary>
        /// <param name="name">Endpoint name</param>
        /// <param name="url">URL</param>
        /// <param name="method">HTTP Method</param>
        /// <param name="token">Bearer token</param>
        /// <param name="orgId">Owner of an endpoint</param>
        /// <returns>created HTTP notification endpoint</returns>
        public async Task <HTTPNotificationEndpoint> CreateHttpEndpointBearerAsync(string name, string url,
                                                                                   HTTPNotificationEndpoint.MethodEnum method, string token, string orgId)
        {
            Arguments.CheckNonEmptyString(name, nameof(name));
            Arguments.CheckNonEmptyString(url, nameof(url));
            Arguments.CheckNotNull(method, nameof(method));
            Arguments.CheckNonEmptyString(token, nameof(token));
            Arguments.CheckNonEmptyString(orgId, nameof(orgId));

            var endpoint = new HTTPNotificationEndpoint(type: NotificationEndpointType.Http, method: method, url: url,
                                                        orgID: orgId,
                                                        name: name, authMethod: HTTPNotificationEndpoint.AuthMethodEnum.Bearer, token: token,
                                                        status: NotificationEndpointBase.StatusEnum.Active);

            return((HTTPNotificationEndpoint) await CreateEndpointAsync(endpoint));
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="name">Endpoint name</param>
        /// <param name="url">URL</param>
        /// <param name="method">HTTP Method</param>
        /// <param name="username">HTTP Basic Username</param>
        /// <param name="password">HTTP Basic Password</param>
        /// <param name="orgId">Owner of an endpoint</param>
        /// <returns>created HTTP notification endpoint</returns>
        public async Task <HTTPNotificationEndpoint> CreateHttpEndpointBasicAuthAsync(string name, string url,
                                                                                      HTTPNotificationEndpoint.MethodEnum method, string username, string password, string orgId)
        {
            Arguments.CheckNonEmptyString(name, nameof(name));
            Arguments.CheckNonEmptyString(url, nameof(url));
            Arguments.CheckNotNull(method, nameof(method));
            Arguments.CheckNonEmptyString(username, nameof(username));
            Arguments.CheckNonEmptyString(password, nameof(password));
            Arguments.CheckNonEmptyString(orgId, nameof(orgId));

            var endpoint = new HTTPNotificationEndpoint(type: NotificationEndpointType.Http, method: method, url: url,
                                                        orgID: orgId,
                                                        name: name, authMethod: HTTPNotificationEndpoint.AuthMethodEnum.Basic, username: username,
                                                        password: password,
                                                        status: NotificationEndpointBase.StatusEnum.Active);

            return((HTTPNotificationEndpoint) await CreateEndpointAsync(endpoint).ConfigureAwait(false));
        }