mirror of
https://github.com/bitwarden/server.git
synced 2025-04-07 14:08:13 -05: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;
|
Type = source.Type;
|
||||||
CardBrand = source.CardBrand;
|
CardBrand = source.CardBrand;
|
||||||
Description = source.Description;
|
Description = source.Description;
|
||||||
|
NeedsVerification = source.NeedsVerification;
|
||||||
}
|
}
|
||||||
|
|
||||||
public PaymentMethodType Type { get; set; }
|
public PaymentMethodType Type { get; set; }
|
||||||
public string CardBrand { get; set; }
|
public string CardBrand { get; set; }
|
||||||
public string Description { get; set; }
|
public string Description { get; set; }
|
||||||
|
public bool NeedsVerification { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class BillingSubscription
|
public class BillingSubscription
|
||||||
|
@ -35,6 +35,7 @@ namespace Bit.Core.Models.Business
|
|||||||
(source.BankAccount.Status == "verified" ? "verified" :
|
(source.BankAccount.Status == "verified" ? "verified" :
|
||||||
source.BankAccount.Status == "errored" ? "invalid" :
|
source.BankAccount.Status == "errored" ? "invalid" :
|
||||||
source.BankAccount.Status == "verification_failed" ? "verification failed" : "unverified");
|
source.BankAccount.Status == "verification_failed" ? "verification failed" : "unverified");
|
||||||
|
NeedsVerification = source.BankAccount.Status == "new" || source.BankAccount.Status == "validated";
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
@ -84,6 +85,7 @@ namespace Bit.Core.Models.Business
|
|||||||
public PaymentMethodType Type { get; set; }
|
public PaymentMethodType Type { get; set; }
|
||||||
public string CardBrand { get; set; }
|
public string CardBrand { get; set; }
|
||||||
public string Description { get; set; }
|
public string Description { get; set; }
|
||||||
|
public bool NeedsVerification { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class BillingSubscription
|
public class BillingSubscription
|
||||||
|
Loading…
x
Reference in New Issue
Block a user