public async Task <PayRunInvoiceDetailViewResponse> GetDetailsAsync(Guid payRunId, Guid invoiceId)
        {
            // Get pay run
            var payRun = await _payRunGateway
                         .GetPayRunAsync(payRunId)
                         .EnsureExistsAsync($"Pay Run with id {payRunId} not found");

            // Get pay run invoice
            var invoice = await _payRunInvoiceGateway.GetPayRunInvoiceDetailAsync(payRunId, invoiceId, false);

            return(CreateResponse(payRun, invoice));
        }