1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-06 10:32:49 -05:00

remove charge and add balance to billing models

This commit is contained in:
Kyle Spearrin
2019-02-18 17:09:56 -05:00
parent 2397c6d862
commit 250784d197
3 changed files with 4 additions and 64 deletions

View File

@ -11,13 +11,13 @@ namespace Bit.Core.Models.Api
public BillingResponseModel(BillingInfo billing)
: base("billing")
{
CreditAmount = billing.CreditAmount;
Balance = billing.Balance;
PaymentSource = billing.PaymentSource != null ? new BillingSource(billing.PaymentSource) : null;
Transactions = billing.Transactions?.Select(t => new BillingTransaction(t));
Invoices = billing.Invoices?.Select(i => new BillingInvoice(i));
}
public decimal CreditAmount { get; set; }
public decimal Balance { get; set; }
public BillingSource PaymentSource { get; set; }
public IEnumerable<BillingInvoice> Invoices { get; set; }
public IEnumerable<BillingTransaction> Transactions { get; set; }