Example #1
0
        /// <summary>***Now depreciated and soon to be removed from this class (already moved to ApiKyc.cs)*** Gets the list of all the uploaded documents for all users.</summary>
        /// <param name="pagination">Pagination.</param>
        /// <param name="filter">Filter.</param>
        /// <param name="sort">Sort.</param>
        /// <returns>Collection of all users' uploaded documents.</returns>
        public async Task <ListPaginated <KycDocumentDTO> > GetKycDocuments(Pagination pagination, FilterKycDocuments filter, Sort sort = null)
        {
            if (filter == null)
            {
                filter = new FilterKycDocuments();
            }

            return(await this.GetList <KycDocumentDTO>(MethodKey.ClientGetKycDocuments, pagination, sort, filter.GetValues()));
        }
        /// <summary>Gets a list of all the uploaded documents for the particular user.</summary>
        /// <param name="userId">User identifier.</param>
        /// <param name="pagination">Pagination.</param>
        /// <param name="filter">Filter.</param>
        /// <param name="sort">Sort.</param>
        /// <returns>Collection of user's uploaded documents.</returns>
        public ListPaginated <KycDocumentDTO> GetKycDocuments(String userId, Pagination pagination, FilterKycDocuments filter, Sort sort = null)
        {
            if (filter == null)
            {
                filter = new FilterKycDocuments();
            }

            return(this.GetList <KycDocumentDTO>(MethodKey.UsersGetKycDocuments, pagination, userId, sort, filter.GetValues()));
        }
        public async Task <ListPaginated <KycDocumentDTO> > GetKycDocuments(string userId, Pagination pagination, FilterKycDocuments filter, Sort sort = null)
        {
            var targetUrl = $"{_baseUrl}/users/{userId}/KYC/documents";

            if (filter == null)
            {
                filter = new FilterKycDocuments();
            }
            return(await GetList <KycDocumentDTO>(targetUrl, pagination, sort, filter.GetValues()));
        }
Example #4
0
        /// <summary>Gets the list of all the uploaded documents for all users.</summary>
        /// <param name="pagination">Pagination.</param>
        /// <param name="filter">Filter.</param>
        /// <param name="sort">Sort.</param>
        /// <returns>Collection of all users' uploaded documents.</returns>
        public ListPaginated<KycDocumentDTO> GetKycDocuments(Pagination pagination, FilterKycDocuments filter, Sort sort = null)
        {
            if (filter == null) filter = new FilterKycDocuments();

            return this.GetList<KycDocumentDTO>(MethodKey.ClientGetKycDocuments, pagination, null, sort, filter.GetValues());
        }
Example #5
0
        public async Task <ListPaginated <KycDocumentDTO> > GetKycDocuments(Pagination pagination, FilterKycDocuments filter, Sort sort = null)
        {
            var targetUrl = $"{_baseUrl}/KYC/documents";

            return(await GetList <KycDocumentDTO>(targetUrl, pagination, sort));
        }
Example #6
0
        /// <summary>Gets a list of all the uploaded documents for the particular user.</summary>
        /// <param name="userId">User identifier.</param>
        /// <param name="pagination">Pagination.</param>
        /// <param name="filter">Filter.</param>
        /// <param name="sort">Sort.</param>
        /// <returns>Collection of user's uploaded documents.</returns>
        public ListPaginated<KycDocumentDTO> GetKycDocuments(String userId, Pagination pagination, FilterKycDocuments filter, Sort sort = null)
        {
            if (filter == null) filter = new FilterKycDocuments();

            return this.GetList<KycDocumentDTO>(MethodKey.UsersGetKycDocuments, pagination, userId, sort, filter.GetValues());
        }