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

org tax information

This commit is contained in:
Kyle Spearrin
2017-10-25 12:41:07 -04:00
parent 8ba3e27a7d
commit e41461f8fc
10 changed files with 61 additions and 13 deletions

View File

@ -29,6 +29,7 @@ namespace Bit.Core.Models.Api
[EncryptedString]
[StringLength(1000)]
public string CollectionName { get; set; }
public string Country { get; set; }
public virtual OrganizationSignup ToOrganizationSignup(User user)
{
@ -43,6 +44,7 @@ namespace Bit.Core.Models.Api
AdditionalStorageGb = AdditionalStorageGb.GetValueOrDefault(0),
BillingEmail = BillingEmail,
BusinessName = BusinessName,
BusinessCountry = Country,
CollectionName = CollectionName
};
}

View File

@ -19,6 +19,11 @@ namespace Bit.Core.Models.Api
Id = organization.Id.ToString();
Name = organization.Name;
BusinessName = organization.BusinessName;
BusinessAddress1 = organization.BusinessAddress1;
BusinessAddress2 = organization.BusinessAddress2;
BusinessAddress3 = organization.BusinessAddress3;
BusinessCountry = organization.BusinessCountry;
BusinessTaxNumber = organization.BusinessTaxNumber;
BillingEmail = organization.BillingEmail;
Plan = organization.Plan;
PlanType = organization.PlanType;
@ -32,6 +37,11 @@ namespace Bit.Core.Models.Api
public string Id { get; set; }
public string Name { get; set; }
public string BusinessName { get; set; }
public string BusinessAddress1 { get; set; }
public string BusinessAddress2 { get; set; }
public string BusinessAddress3 { get; set; }
public string BusinessCountry { get; set; }
public string BusinessTaxNumber { get; set; }
public string BillingEmail { get; set; }
public string Plan { get; set; }
public Enums.PlanType PlanType { get; set; }

View File

@ -6,6 +6,7 @@ namespace Bit.Core.Models.Business
{
public string Name { get; set; }
public string BusinessName { get; set; }
public string BusinessCountry { get; set; }
public string BillingEmail { get; set; }
public User Owner { get; set; }
public string OwnerKey { get; set; }

View File

@ -11,6 +11,11 @@ namespace Bit.Core.Models.Table
public Guid Id { get; set; }
public string Name { get; set; }
public string BusinessName { get; set; }
public string BusinessAddress1 { get; set; }
public string BusinessAddress2 { get; set; }
public string BusinessAddress3 { get; set; }
public string BusinessCountry { get; set; }
public string BusinessTaxNumber { get; set; }
public string BillingEmail { get; set; }
public string Plan { get; set; }
public PlanType PlanType { get; set; }