/// <summary>Creates KycPage from byte array.</summary>
        /// <param name="idempotencyKey">Idempotency key for this request.</param>
        /// <param name="userId">User identifier.</param>
        /// <param name="kycDocumentId">KycDocument identifier.</param>
        /// <param name="binaryData">The byte array the KycPage will be created from.</param>
        public void CreateKycPage(String idempotencyKey, String userId, String kycDocumentId, byte[] binaryData)
        {
            String fileContent = Convert.ToBase64String(binaryData);

            KycPagePostDTO kycPage = new KycPagePostDTO(fileContent);

            this.CreateObject <KycPageDTO, KycPagePostDTO>(idempotencyKey, MethodKey.UsersCreateKycPage, kycPage, userId, kycDocumentId);
        }
        public Task CreateKycPage(string idempotencyKey, string userId, string kycDocumentId, byte[] binaryData)
        {
            var targetUrl   = $"{_baseUrl}/users/{userId}/KYC/documents/{kycDocumentId}/pages";
            var fileContent = Convert.ToBase64String(binaryData);

            var kycPage = new KycPagePostDTO(fileContent);

            return(CreateEntity <KycPageDTO, KycPagePostDTO>(targetUrl, kycPage, idempotencyKey));
        }