1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-22 12:15:36 +01:00

added bank account source information to apis

This commit is contained in:
Kyle Spearrin 2017-08-13 00:50:58 -04:00
parent e8c6183dcd
commit 45141cf5d2
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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