diff --git a/src/Core/Models/Api/Response/BillingResponseModel.cs b/src/Core/Models/Api/Response/BillingResponseModel.cs index 5d92422e4f..cea98a8367 100644 --- a/src/Core/Models/Api/Response/BillingResponseModel.cs +++ b/src/Core/Models/Api/Response/BillingResponseModel.cs @@ -48,11 +48,13 @@ namespace Bit.Core.Models.Api Type = source.Type; CardBrand = source.CardBrand; Description = source.Description; + NeedsVerification = source.NeedsVerification; } public PaymentMethodType Type { get; set; } public string CardBrand { get; set; } public string Description { get; set; } + public bool NeedsVerification { get; set; } } public class BillingSubscription diff --git a/src/Core/Models/Business/BillingInfo.cs b/src/Core/Models/Business/BillingInfo.cs index 7c5ecce737..d39c98814a 100644 --- a/src/Core/Models/Business/BillingInfo.cs +++ b/src/Core/Models/Business/BillingInfo.cs @@ -35,6 +35,7 @@ namespace Bit.Core.Models.Business (source.BankAccount.Status == "verified" ? "verified" : source.BankAccount.Status == "errored" ? "invalid" : source.BankAccount.Status == "verification_failed" ? "verification failed" : "unverified"); + NeedsVerification = source.BankAccount.Status == "new" || source.BankAccount.Status == "validated"; break; default: break; @@ -84,6 +85,7 @@ namespace Bit.Core.Models.Business public PaymentMethodType Type { get; set; } public string CardBrand { get; set; } public string Description { get; set; } + public bool NeedsVerification { get; set; } } public class BillingSubscription