mirror of
https://github.com/bitwarden/server.git
synced 2025-06-28 06:36:15 -05:00

* [NO LOGIC] [PM-21104] Organize Core.Billing tax code * Add PreviewTaxAmountCommand and expose through TaxController * Add PreviewTaxAmountCommandTests * Run dotnet format
19 lines
540 B
C#
19 lines
540 B
C#
using Bit.Core.Billing.Models;
|
|
using Bit.Core.Billing.Tax.Models;
|
|
|
|
namespace Bit.Api.Billing.Models.Responses;
|
|
|
|
public record PaymentMethodResponse(
|
|
long AccountCredit,
|
|
PaymentSource PaymentSource,
|
|
string SubscriptionStatus,
|
|
TaxInformation TaxInformation)
|
|
{
|
|
public static PaymentMethodResponse From(PaymentMethod paymentMethod) =>
|
|
new(
|
|
paymentMethod.AccountCredit,
|
|
paymentMethod.PaymentSource,
|
|
paymentMethod.SubscriptionStatus,
|
|
paymentMethod.TaxInformation);
|
|
}
|