mirror of
https://github.com/bitwarden/server
synced 2025-12-14 23:33:41 +00:00
* [euvr] Separate Billing Payment/History APIs * Formatting * Created AccountsBillingController // Deprecated GetBilling // Simplified PaymentService helpers * Formatting
20 lines
654 B
C#
20 lines
654 B
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using Bit.Core.Models.Api;
|
|
using Bit.Core.Models.Business;
|
|
|
|
namespace Bit.Api.Models.Response
|
|
{
|
|
public class BillingHistoryResponseModel : ResponseModel
|
|
{
|
|
public BillingHistoryResponseModel(BillingInfo billing)
|
|
: base("billingHistory")
|
|
{
|
|
Transactions = billing.Transactions?.Select(t => new BillingTransaction(t));
|
|
Invoices = billing.Invoices?.Select(i => new BillingInvoice(i));
|
|
}
|
|
public IEnumerable<BillingInvoice> Invoices { get; set; }
|
|
public IEnumerable<BillingTransaction> Transactions { get; set; }
|
|
}
|
|
}
|