mirror of
https://github.com/bitwarden/server
synced 2026-01-03 09:03:44 +00:00
[AC 480]Add the organization name to the stripe invoice (#2772)
* Adding organization name on subscription and update * Changes after running dotnet format -v diag * Change the OrganizationName to GetName * Change GetName to OwnerName * Change the OwnerName to SubscriberName * Reverting the changes made by dotnet format-v diag * Removing extract space * resolve the lint issue * Fix whitespace formatting issue * Resolving pr comment on changing organization * Fixing the failing test * Using the ISubscriber interface for consistent * fixing the whitescapes * Resolving the PR comments * resolving the whitespace format * Remove unnecessary directive * Resolving the whitespace issue * changes for organization instead of subscriber * resolving the failing test * Resolve lint issue by removing unnecessary directive * Resolve the PR comment * remove these blank lines * Fixing whitespace formatting
This commit is contained in:
@@ -84,6 +84,11 @@ public class User : ITableObject<Guid>, ISubscriber, IStorable, IStorableSubscri
|
||||
return Name;
|
||||
}
|
||||
|
||||
public string SubscriberName()
|
||||
{
|
||||
return string.IsNullOrWhiteSpace(Name) ? Email : Name;
|
||||
}
|
||||
|
||||
public string BraintreeCustomerIdPrefix()
|
||||
{
|
||||
return "u";
|
||||
@@ -104,6 +109,11 @@ public class User : ITableObject<Guid>, ISubscriber, IStorable, IStorableSubscri
|
||||
return true;
|
||||
}
|
||||
|
||||
public string SubscriberType()
|
||||
{
|
||||
return "Subscriber";
|
||||
}
|
||||
|
||||
public Dictionary<TwoFactorProviderType, TwoFactorProvider> GetTwoFactorProviders()
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(TwoFactorProviders))
|
||||
|
||||
Reference in New Issue
Block a user