using System;
using gehGassi.Dto.Common;
namespace gehGassi.Dto.Subscriptions
{
///
/// DTO für ein Abonnement eines AppUsers
///
public class AppUserSubscriptionDto
{
///
/// Id des Abonnements des App-Users
///
public long Id { get; set; }
///
/// Id des Abonnements
///
public string SubscriptionId { get; set; }
///
/// Code des Abonnements
///
public string SubscriptionCode { get; set; }
///
/// Dauer des Abonnements
///
public SubscriptionLengthDto SubscriptionLength { get; set; }
///
/// Preis des Abonnements in Euro
///
public decimal SubscriptionPrice { get; set; }
///
/// Art des Abonnements - für welchen Benutzer-Typ?
///
public AppModeDto SubscriptionAppMode { get; set; }
///
/// Name des Abonnements
///
public string SubscriptionName { get; set; }
///
/// Zeit in Tagen die als Toleranz bei Ablauf akzeptiert wird
///
public int SubscriptionGracePeriodInDays { get; set; }
///
/// Ist das Abonnement gültig?
///
public bool IsValid { get; set; }
///
/// Wann läuft das Abonnement ab?
///
public DateTimeOffset? ExpirationDate { get; set; }
///
/// Wann läuft das Abonnement ab? Mit Toleranzzeit
///
public DateTimeOffset? ExpirationDateWithGrace { get; set; }
///
/// Wann wurde das Abonnement zuletzt verlängert?
///
public DateTimeOffset? LastRenewalDate { get; set; }
///
/// Wurde das Abonnement manuell erstellt?
///
public bool Manual { get; set; }
///
/// Plattform auf der das Abonnement erstellt wurde
///
public PlatformDto Platform { get; set; }
///
/// Wann wurde das Abonnement erstellt?
///
public DateTimeOffset Created { get; set; }
}
}