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

custom id fields for paypal

This commit is contained in:
Kyle Spearrin
2019-02-01 09:18:34 -05:00
parent 11f353050f
commit 9882815e4a
5 changed files with 49 additions and 7 deletions

View File

@ -13,6 +13,8 @@ namespace Bit.Core.Models.Table
string BillingEmailAddress();
string BillingName();
string BraintreeCustomerIdPrefix();
string BraintreeIdField();
string GatewayIdField();
IPaymentService GetPaymentService(GlobalSettings globalSettings);
}
}

View File

@ -68,6 +68,16 @@ namespace Bit.Core.Models.Table
return "o";
}
public string BraintreeIdField()
{
return "organization_id";
}
public string GatewayIdField()
{
return "organizationId";
}
public long StorageBytesRemaining()
{
if(!MaxStorageGb.HasValue)

View File

@ -63,6 +63,16 @@ namespace Bit.Core.Models.Table
return "u";
}
public string BraintreeIdField()
{
return "user_id";
}
public string GatewayIdField()
{
return "userId";
}
public Dictionary<TwoFactorProviderType, TwoFactorProvider> GetTwoFactorProviders()
{
if(string.IsNullOrWhiteSpace(TwoFactorProviders))