mirror of
https://github.com/bitwarden/server.git
synced 2025-05-15 00:19:11 -05:00

* [EC-634] Extract GenerateLicenseAsync to a query (#2373) * [EC-637] Add license sync to server (#2453) * [EC-1036] Show correct license sync date (#2626) * Update method name per new pattern
21 lines
529 B
C#
21 lines
529 B
C#
namespace Bit.Core.Models.OrganizationConnectionConfigs;
|
|
|
|
public class BillingSyncConfig : IConnectionConfig
|
|
{
|
|
public string BillingSyncKey { get; set; }
|
|
public Guid CloudOrganizationId { get; set; }
|
|
public DateTime? LastLicenseSync { get; set; }
|
|
|
|
public bool Validate(out string exception)
|
|
{
|
|
if (string.IsNullOrWhiteSpace(BillingSyncKey))
|
|
{
|
|
exception = "Failed to get Billing Sync Key";
|
|
return false;
|
|
}
|
|
|
|
exception = "";
|
|
return true;
|
|
}
|
|
}
|