1
0
mirror of https://github.com/bitwarden/server synced 2025-12-16 08:13:33 +00:00

[euvr] Separate Billing Payment/History APIs (#1932)

* [euvr] Separate Billing Payment/History APIs

* Formatting

* Created AccountsBillingController // Deprecated GetBilling // Simplified PaymentService helpers

* Formatting
This commit is contained in:
Vincent Salucci
2022-04-04 11:40:28 -05:00
committed by GitHub
parent 6f60d24f5a
commit 9a1a7543c5
6 changed files with 232 additions and 76 deletions

View File

@@ -0,0 +1,18 @@
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; }
}
}