- Add ReactivatePipeline to handle subscription reactivation, including scaling Docker services, health verification, status updates, audit logging, and broadcasting status changes. - Introduce RotateCredentialsPipeline for OAuth2 credential rotation, managing the deletion of old apps, creation of new ones, credential storage, access verification, and audit logging. - Create StepRunner to manage job step execution, including lifecycle management and progress broadcasting via SignalR. - Implement SuspendPipeline for subscription suspension, scaling down services, updating statuses, logging audits, and broadcasting changes. - Add UpdateScreenLimitPipeline to update Xibo CMS screen limits and record snapshots. - Introduce XiboFeatureManifests for hardcoded feature ACLs per role. - Add docker-compose.dev.yml for local development with PostgreSQL setup.
39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
namespace OTSSignsOrchestrator.Server.Data.Entities;
|
|
|
|
public enum CustomerPlan
|
|
{
|
|
Essentials,
|
|
Pro
|
|
}
|
|
|
|
public enum CustomerStatus
|
|
{
|
|
PendingPayment,
|
|
Provisioning,
|
|
Active,
|
|
Suspended,
|
|
Decommissioned
|
|
}
|
|
|
|
public class Customer
|
|
{
|
|
public Guid Id { get; set; }
|
|
public string Abbreviation { get; set; } = string.Empty;
|
|
public string CompanyName { get; set; } = string.Empty;
|
|
public string AdminEmail { get; set; } = string.Empty;
|
|
public string AdminFirstName { get; set; } = string.Empty;
|
|
public string AdminLastName { get; set; } = string.Empty;
|
|
public CustomerPlan Plan { get; set; }
|
|
public int ScreenCount { get; set; }
|
|
public string? StripeCustomerId { get; set; }
|
|
public string? StripeSubscriptionId { get; set; }
|
|
public string? StripeCheckoutSessionId { get; set; }
|
|
public CustomerStatus Status { get; set; }
|
|
public int FailedPaymentCount { get; set; }
|
|
public DateTime? FirstPaymentFailedAt { get; set; }
|
|
public DateTime CreatedAt { get; set; }
|
|
|
|
public ICollection<Instance> Instances { get; set; } = [];
|
|
public ICollection<Job> Jobs { get; set; } = [];
|
|
}
|