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 Invoices { get; set; } public IEnumerable Transactions { get; set; } } }