mirror of
https://github.com/bitwarden/server.git
synced 2025-07-05 10:02:47 -05:00
[AC-2568] Added invoices and transaction history endpoints. Added cursor paging for each (#4692)
* Added invoices and transaction history endpoints. Added cursor paging for each * Removed try/catch since it's handled by middleware. Updated condition to use pattern matching * Added unit tests for PaymentHistoryService * Removed organizationId from account billing controller endpoints
This commit is contained in:
@ -38,6 +38,7 @@ public class BillingHistoryInfo
|
||||
{
|
||||
public BillingInvoice(Invoice inv)
|
||||
{
|
||||
Id = inv.Id;
|
||||
Date = inv.Created;
|
||||
Url = inv.HostedInvoiceUrl;
|
||||
PdfUrl = inv.InvoicePdf;
|
||||
@ -46,6 +47,7 @@ public class BillingHistoryInfo
|
||||
Amount = inv.Total / 100M;
|
||||
}
|
||||
|
||||
public string Id { get; set; }
|
||||
public decimal Amount { get; set; }
|
||||
public DateTime? Date { get; set; }
|
||||
public string Url { get; set; }
|
||||
|
Reference in New Issue
Block a user