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
19 lines
546 B
C#
19 lines
546 B
C#
using Bit.Core.Models.Api;
|
|
using Bit.Core.Models.Business;
|
|
|
|
namespace Bit.Api.Models.Response
|
|
{
|
|
public class BillingPaymentResponseModel : ResponseModel
|
|
{
|
|
public BillingPaymentResponseModel(BillingInfo billing)
|
|
: base("billingPayment")
|
|
{
|
|
Balance = billing.Balance;
|
|
PaymentSource = billing.PaymentSource != null ? new BillingSource(billing.PaymentSource) : null;
|
|
}
|
|
|
|
public decimal Balance { get; set; }
|
|
public BillingSource PaymentSource { get; set; }
|
|
}
|
|
}
|