示例#1
0
        public async Task <byte[]> GetFileAsync(string merchantId, string fileId)
        {
            byte[] response = await _runner.RunWithDefaultErrorHandlingAsync(() => _filesApi.GetAsync(merchantId, fileId));

            return(response);
        }
        public async Task <byte[]> GetFileAsync(string invoiceId, string fileId)
        {
            HttpResponseMessage response = await _runner.RunAsync(() => _filesApi.GetAsync(invoiceId, fileId));

            return(await response.Content.ReadAsByteArrayAsync());
        }