1
0
mirror of https://github.com/bitwarden/server synced 2025-12-20 02:03:46 +00:00

[EC-429] Provider details screen updated with Type, BillingPhone and Organization details (#2666)

This commit is contained in:
Rui Tomé
2023-02-07 10:31:50 +00:00
committed by GitHub
parent 7290776871
commit f331188763
4 changed files with 44 additions and 5 deletions

View File

@@ -14,10 +14,13 @@ public class ProviderEditModel : ProviderViewModel
Name = provider.Name;
BusinessName = provider.BusinessName;
BillingEmail = provider.BillingEmail;
BillingPhone = provider.BillingPhone;
}
[Display(Name = "Billing Email")]
public string BillingEmail { get; set; }
[Display(Name = "Billing Phone Number")]
public string BillingPhone { get; set; }
[Display(Name = "Business Name")]
public string BusinessName { get; set; }
public string Name { get; set; }
@@ -28,6 +31,7 @@ public class ProviderEditModel : ProviderViewModel
existingProvider.Name = Name;
existingProvider.BusinessName = BusinessName;
existingProvider.BillingEmail = BillingEmail?.ToLowerInvariant()?.Trim();
existingProvider.BillingPhone = BillingPhone?.ToLowerInvariant()?.Trim();
return existingProvider;
}
}