mirror of
https://github.com/bitwarden/server.git
synced 2025-07-04 17:42:49 -05:00
return invoices and transactions on billing api
This commit is contained in:
@ -958,6 +958,14 @@ namespace Bit.Core.Services
|
||||
});
|
||||
billingInfo.Charges = charges?.Data?.OrderByDescending(c => c.Created)
|
||||
.Select(c => new BillingInfo.BillingCharge(c));
|
||||
|
||||
var invoices = await invoiceService.ListAsync(new InvoiceListOptions
|
||||
{
|
||||
CustomerId = customer.Id,
|
||||
Limit = 20
|
||||
});
|
||||
billingInfo.Invoices = invoices?.Data?.OrderByDescending(i => i.Date)
|
||||
.Select(i => new BillingInfo.BillingInvoice2(i));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user