mirror of
https://github.com/bitwarden/server
synced 2026-03-02 11:21:31 +00:00
19 lines
581 B
C#
19 lines
581 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using Bit.Api.Billing.Models.Requests.Payment;
|
|
using Bit.Core.Billing.Enums;
|
|
using Bit.Core.Billing.Payment.Models;
|
|
|
|
namespace Bit.Api.Billing.Models.Requests.PreviewInvoice;
|
|
|
|
public record PreviewPremiumUpgradeProrationRequest
|
|
{
|
|
[Required]
|
|
public required ProductTierType TargetProductTierType { get; set; }
|
|
|
|
[Required]
|
|
public required MinimalBillingAddressRequest BillingAddress { get; set; }
|
|
|
|
public (ProductTierType, BillingAddress) ToDomain() =>
|
|
(TargetProductTierType, BillingAddress.ToDomain());
|
|
}
|