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:
parent
e8c6183dcd
commit
45141cf5d2
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user