1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 15:42:48 -05:00

[PM-15814]Alert owners of reseller-managed orgs to renewal events (#5193)

* Changes for the admin console alert

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>

* Fix the failing test

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>

* Add the feature flag

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>

---------

Signed-off-by: Cy Okeke <cokeke@bitwarden.com>
This commit is contained in:
cyprain-okeke
2024-12-31 18:06:29 +01:00
committed by GitHub
parent 83404efebd
commit d924c6721a
5 changed files with 37 additions and 6 deletions

View File

@ -7,7 +7,11 @@ public record OrganizationMetadataResponse(
bool IsManaged,
bool IsOnSecretsManagerStandalone,
bool IsSubscriptionUnpaid,
bool HasSubscription)
bool HasSubscription,
bool HasOpenInvoice,
DateTime? InvoiceDueDate,
DateTime? InvoiceCreatedDate,
DateTime? SubPeriodEndDate)
{
public static OrganizationMetadataResponse From(OrganizationMetadata metadata)
=> new(
@ -15,5 +19,9 @@ public record OrganizationMetadataResponse(
metadata.IsManaged,
metadata.IsOnSecretsManagerStandalone,
metadata.IsSubscriptionUnpaid,
metadata.HasSubscription);
metadata.HasSubscription,
metadata.HasOpenInvoice,
metadata.InvoiceDueDate,
metadata.InvoiceCreatedDate,
metadata.SubPeriodEndDate);
}