1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 07:36:14 -05:00

subscription renewal reminder emails

This commit is contained in:
Kyle Spearrin
2018-05-11 08:29:23 -04:00
parent 4e6e215d35
commit 053096c1a1
16 changed files with 199 additions and 29 deletions

View File

@ -1,18 +0,0 @@
using System;
using Bit.Core.Models.Table;
namespace Bit.Core.Models.Api
{
public class AuthTokenResponseModel : ResponseModel
{
public AuthTokenResponseModel(string token, User user = null)
: base("authToken")
{
Token = token;
Profile = user == null ? null : new ProfileResponseModel(user, null);
}
public string Token { get; set; }
public ProfileResponseModel Profile { get; set; }
}
}

View File

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
namespace Bit.Core.Models.Mail
{
public class InvoiceUpcomingViewModel : BaseMailModel
{
public decimal AmountDue { get; set; }
public DateTime DueDate { get; set; }
public List<string> Items { get; set; }
public bool MentionInvoices { get; set; }
}
}

View File

@ -6,6 +6,7 @@ namespace Bit.Core.Models.Mail
{
public string Subject { get; set; }
public IEnumerable<string> ToEmails { get; set; }
public IEnumerable<string> BccEmails { get; set; }
public string HtmlContent { get; set; }
public string TextContent { get; set; }
public IDictionary<string, object> MetaData { get; set; }